/*!
Theme Name: Ssktech Theme
Author: Ssktech Theme
Version: 1.0.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, li {
    list-style: none;
}

button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.container {
    max-width: 1204px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    position: relative;
}

*::-webkit-scrollbar {
    -webkit-appearance: none;
    cursor: default;
}

*::-webkit-scrollbar:vertical {
    width: 4px;
    cursor: default;
}

*::-webkit-scrollbar:horizontal {
    height: 4px;
    cursor: default;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -khtml-border-radius: 6px;
    border-radius: 6px;
    cursor: default;
}

*::-webkit-scrollbar-track {
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -khtml-border-radius: 6px;
    border-radius: 6px;
    background-color: #EFEFEF;
    cursor: default;
}

html {
    scroll-behavior: smooth;
}

/* golos-text-regular - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/golos-text-v7-cyrillic_latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* golos-text-500 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/golos-text-v7-cyrillic_latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --main-color: #0d0d0d;
    --muted-color: #808080;
    --heading-color: #999;
    --light-color: #f2f2f2;
    --border-color: #dedede;
    --section-radius: 48px;
    --card-radius: 16px;
}

body {
    color: var(--main-color);
    background: #fff;
    font: 400 16px/1.375 "Golos Text", Arial, sans-serif;
    letter-spacing: -.04em;
}

button, input, select {
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}

button {
    border: 0;
    background: transparent;
}

h1, h2, h3, strong {
    font-weight: 400;
}

h1, h2 {
    font-size: 50px;
    line-height: 1.04;
}

h3 {
    font-size: 24px;
    line-height: 1.2;
}

h1 span, h2 span {
    color: var(--heading-color);
}
 

[hidden] {
    display: none !important;
}

.section {
    padding: 120px 28px;
    scroll-margin-top: 24px;
}

.section h2 {
    margin-bottom: 64px;
}

.section-intro {
    margin-bottom: 64px;
}

.section-intro h2 {
    margin-bottom: 24px;
}

.section-muted {
    background: var(--light-color);
    max-width: 1440px;
    margin: 0 auto;
}

#selection {
    position: relative;
    z-index: 1;
}

#priorities, #equipment, #confidence {
    margin-top: -35px;
    border-radius: 0 0 var(--section-radius) var(--section-radius);
}

.section-dark {
    background: var(--main-color);
    color: #fff;
}

.rounded, .photo-section {
    border-radius: var(--section-radius);
}

.rounded-top {
    border-radius: var(--section-radius) var(--section-radius) 0 0;
}

.rounded-bottom {
    border-radius: 0 0 var(--section-radius) var(--section-radius);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 24px;
    border-radius: 12px;
    background: var(--main-color);
    color: #fff;
    text-align: center;
    transition: background-color .2s, color .2s;
}

.button:hover {
    background: #343434;
}

.button.village-link.disable {
    pointer-events: none;
    opacity: .3;
}

.button-light {
    background: var(--light-color);
    color: var(--main-color);
}

.button-light:hover {
    background: var(--border-color);
}

.muted, .info-card p, figcaption, .steps-list p, .review-text {
    color: var(--muted-color);
}

.text-button, .text-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all .3s;
}

.form .text-button:hover {
    color: var(--main-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--muted-color);
    font-size: 14px;
    line-height: 1.2;
}

.tags li {
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 12px;
    background: #fff;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Шапка и первый экран */
.header-shell {
    height: var(--header-height, 72px);
}

.hero {
    padding: 28px;
    background: var(--light-color) url("images/hero.jpg") center / cover;
    border-radius: 0 0 var(--section-radius) var(--section-radius);
    max-width: 1440px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.site-header, .main-nav ul, .header-contacts, .socials, .logo {
    display: flex;
    align-items: center;
}

.site-header {
    position: fixed;
    top: var(--header-inset, 28px);
    right: var(--header-inset, 28px);
    left: var(--header-inset, 28px);
    z-index: 99;
    max-height: calc(100dvh - var(--header-inset, 28px) * 2); 
    box-shadow: 0 4px 20px #0000000d;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 48px;
    background: #fff;
    border-radius: 100px;
    max-width: 1204px;
    margin: 0 auto;
}

.logo {
    flex-shrink: 0;
    gap: 12px;
}

.logo > img {
    
    height: 48px;
}

.logo span {
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.logo small {
    display: block;
    color: var(--muted-color);
    font-size: 7.63px;
    letter-spacing: 0;
    font-weight: 400;
}

.main-nav ul {
    gap: 2px;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.main-nav > ul a:hover  {
    background: var(--light-color);
}

.header-contacts {
    gap: 24px;
    white-space: nowrap;
}

.socials {
    gap: 10px;
}

.social-link, .social-link img {
    width: 36px;
    height: 36px;
}

.menu-toggle, .header-phone img {
    display: none;
}

.hero-section {
    margin-top: 28px;
}

 

.hero-card {
    max-width: 728px;
    padding: 48px;
    border-radius: var(--section-radius);
    background: #fff;
}

.hero-copy h1 {
    margin-bottom: 24px;
}

.hero-copy .button {
    margin-top: 40px;
    width: 100%;
    max-width: 420px;
}

.hero-card .tags {
    margin-top: 80px;
    gap: 8px;
    color: var(--main-color);
    font-size: 16px;
    line-height: 22px;
}

.hero-card .tags li {
    padding: 8px 16px;
}

 
.info-card {
    padding: 24px;
    border-radius: var(--card-radius);
    background: #fff;
}

.info-card h3 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px; 
}

.choice-grid h3 { 
    min-height: 58px;
}

.info-icon {
    flex-shrink: 0;
    width: 29px;
    height: 29px;
}

.choice-grid .info-card {
    display: flex;
    flex-direction: column;
}
 

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 32px;
    transition: all .3s;
}
.inline-link:hover {
    color: var(--muted-color);
}

.inline-link img, .equipment-link img {
    width: 20px;
    height: 20px;
}

.equipment-link {
    color: #000;
    background: url("images/equipment.jpg") center / cover;
}
 

.equipment-link h3 {
    display: block;
    max-width: 310px;
}

.equipment-link img {
    display: inline-block;
    vertical-align: middle;
}

.proof-grid h3 {
    margin-bottom: 32px;
}

/* Каталог домов и посёлков */
.property-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.card-media {
    display: grid;
    overflow: hidden;
    aspect-ratio: 1600 / 908;
}

.card-media > * {
    grid-area: 1 / 1;
}

.card-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 0;
}

.card-badge {
    align-self: start;
    justify-self: start;
    z-index: 1;
    margin: 16px;
    padding: 4px 10px;
    border-radius: 100px;
    background: #fff;
    font-size: 14px;
    line-height: 1.2;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    background: #fff;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.card-heading + p, .village-card h3 + p {
    margin-top: -8px;
}

.payment {
    white-space: nowrap;
}

.payment strong {
    margin-left: 6px;
    font-size: 24px;
}

.card-body .button {
    width: 100%;
    margin-top: auto;
}

.village-map {
    width: 100%;
    aspect-ratio: 1204 / 382;
    min-height: 320px;
    overflow: hidden;
    border-radius: var(--card-radius);
    background: var(--light-color);
}

.map-status {
    padding: 24px;
    color: var(--muted-color);
}

.map-balloon a {
    display: inline-block;
    margin-top: 12px;
    text-decoration: underline;
}

.filter-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 64px 0 32px;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.filter-tabs button {
    padding: 13px 20px;
    border-radius: 12px;
    color: var(--muted-color);
}

.filter-tabs button[aria-pressed="true"], .filter-tabs button:hover {
    background: var(--light-color);
    color: var(--main-color);
}

.villages-more {
    width: 100%;
    margin-top: 32px;
    gap: 6px;
}

.sold-label {
    display: grid;
    place-items: center;
    color: #fff;
    background: #000a;
    backdrop-filter: blur(2px);
    font-size: 24px;
}


/* Диалог и состояния интерфейса */
.dialog, .house-dialog {
    position: fixed;
    inset: 0;
    max-width: 680px;
    width: calc(100% - 32px);
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 32px;
    border: 0;
    border-radius: 24px;
    color: var(--main-color);
}

.dialog::backdrop, .house-dialog::backdrop {
    background: #000a;
    backdrop-filter: blur(2px);
}

.dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.dialog h2 {
    font-size: 32px;
}

.dialog-close {
    padding: 8px;
    border-radius: 8px;
    background: var(--light-color);
}

.dialog-content {
    display: grid;
    gap: 20px;
}

.dialog-content > img {
    width: 100%;
    border-radius: var(--card-radius);
}

/* Модальное окно дома: галерея, характеристики и заявка */
/* Модальное окно дома: галерея, характеристики и заявка */
html:has(dialog[open]) {
    overflow: hidden;
}

.house-dialog {
    max-width: 1204px;
    padding: 48px;
    border-radius: 48px;
    overscroll-behavior: contain;
}

.house-close, .form-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid #00000005;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 5px #00000014;
}

.house-close img, .form-modal-close img {
    width: 28px;
}

.house-layout {
    display: grid;
    grid-template-columns: minmax(0, 480fr) minmax(0, 580fr);
    gap: 48px;
}

.house-visuals, .house-details, .house-gallery {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.house-visuals {
    gap: 32px;
}

.house-gallery {
    gap: 12px;
}

.house-photo {
    display: grid;
    overflow: hidden;
    border-radius: 16px;
}

.house-photo > * {
    grid-area: 1 / 1;
}

.house-main-image {
    width: 100%;
    aspect-ratio: 480 / 273;
    object-fit: cover;
}

.house-energy, .house-counter {
    z-index: 2;
    pointer-events: none;
    justify-self: start;
    margin: 14px;
    border-radius: 50px;
}

.house-energy  {
    padding: 0 10px;
}

.house-energy2 {
    background: #F2F2F2;
    display: flex;
    align-items: center;
    border-radius: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    line-height: 1;
}
.house-energy {
    display: flex;
    align-items: center;
    align-self: start;
    gap: 6px; 
    background: #faf9f8;
}

.house-details-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.house-energy img {
    width: 22px;
}

.house-counter {
    align-self: end;
    padding: 1px 11px;
    color: #fff;
    background: #1b1b1bcc;
}

.house-specs, .house-fields {
    display: grid;
    gap: 12px;
}

.house-specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.house-slider, .house-thumbnails {
    width: 100%;
    min-width: 0;
}

.house-gallery-arrow {
    z-index: 2;
    align-self: center;
    justify-self: start;
    display: grid; 
    margin: 12px;
    width: 36px;
	min-width:36px;
    border-radius: 50%;
    color: var(--main-color);
    background: #fffffff0;
    font-size: 28px;
    line-height: 32px;
	height: 36px;
}

.house-gallery-next {
    justify-self: end;
}

.house-gallery-arrow.swiper-button-disabled {
    opacity: .4;
    cursor: default;
}

.house-thumbnails button {
    overflow: hidden;
    border-radius: 8px;
    background: var(--light-color);
}

.house-thumbnails img {
    width: 100%;
    aspect-ratio: 111 / 62;
    object-fit: cover;
}

.house-thumbnails [aria-pressed="true"] {
    outline: 2px solid var(--main-color);
    outline-offset: -2px;
}

.house-dialog :focus-visible {
    border: 1px solid #0D0D0D;
}

.house-plan {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #f2f2f2;
}

.house-plan h3 {
    font-size: 18px;
}

.house-plan p, .house-specs li > span:last-child {
    color: var(--muted-color);
    font-size: 14px;
    line-height: 18px;
}

.house-details h2 {
    font-size: 40px;
    letter-spacing: -.04em;
    margin-bottom: 0;
}

.house-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.house-prices p {
    white-space: nowrap;
}

.house-prices strong {
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.04em;
}

.house-escrow {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #2f832f;
    background: #e8f9e8;
    font-size: 14px;
}

.house-escrow img {
    width: 20px;
}

.house-escrow img:last-child {
    width: 16px;
}

/* Подсказка об эскроу-счёте */
.escrow-help {
    position: relative;
}

.escrow-tooltip {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    width: min(320px, calc(100vw - 80px));
    padding-top: 8px;
    color: var(--main-color);
    font-size: 14px;
    line-height: 1.4;
}

.escrow-tooltip span {
    display: block;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px #00000014;
}

.house-specs li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
}

.house-specs strong {
    font-weight: 500;
}

.house-spec-icon {
    width: 40px;
    aspect-ratio: 1;
    background: url('images/house-specs.png') -12.13px -25.6px / 284.67px 98.13px no-repeat;
}

.house-specs li:nth-child(2) .house-spec-icon { background-position-x: -122.15px; }
.house-specs li:nth-child(3) .house-spec-icon { background-position-x: -180.59px; }
.house-specs li:nth-child(4) .house-spec-icon { background-position-x: -237.2px; }

.house-form {
    margin-top: 20px;
    max-width: 522px;
}

.house-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 12px 0;
}

.house-form .consent-field {
    margin-top: -6px;
}


/* Формы подбора, расчёта и записи */
.photo-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-position: center;
    background-size: cover;
    max-width: 1440px;
    margin: 0 auto;
}

.selection-section {
    background-image: linear-gradient(#0004, #0004), url("images/selection.jpg");
}

.budget-section {
    background-image:  url("images/budget.png");
}

.request-section {
    background-image: linear-gradient(#0006, #0006), url("images/request.jpg");
    background-position: center bottom;
} 

.form-panel {
    padding: 48px;
    background: #fff;
    border-radius: var(--section-radius);
}

.selection-panel, .budget-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    gap: 96px;
}

.form-panel .section-intro {
    margin: 0;
}

.lead-form, .lead-form label {
    display: flex;
    flex-direction: column;
}

.lead-form {
    gap: 20px;
}

.lead-form label {
    gap: 8px;
}

.lead-form input, .lead-form select {
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
}

.lead-form input::placeholder {
    color: var(--muted-color);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.form-actions .button {
    flex: 1;
}

#name-error, #phone-error, #fio-error {
    display: none!important;
}

input.error + p {
    color: red;
}

input.error {
    border: 1px solid red!important;
}

.form-consent {
    color: var(--muted-color);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.form-status {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.budget-layout {
    gap: 64px;
    align-items: center;
}

.budget-layout .lead-form {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
}

.budget-benefits {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.budget-benefits li {
    display: flex;
    gap: 12px;
}

.budget-benefits img {
    width: 22px;
    height: 22px;
}

.budget-benefits .muted {
    margin-top: 4px;
}

.request-panel {
    max-width: 704px;
}

.request-panel h2 {
    letter-spacing: -.04em;
}

.request-panel .lead-form {
    margin-top: 48px;
}

.request-panel .consent-field {
    margin-top: -6px;
}

/* Пошаговый подбор дома */
.selection-panel {
    grid-template-columns: minmax(0, 448fr) minmax(0, 585fr);
    gap: 75px;
}

.quiz-step {
    display: grid;
    gap: 40px;
    min-width: 0;
}

.quiz-group {
    min-width: 0;
    border: 0;
}

.quiz-group legend {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.2;
}

.quiz-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

.quiz-options-four {
    justify-content: space-between;
    column-gap: 16px;
}

.lead-form .quiz-option {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.selection-quiz .quiz-option {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.lead-form input[type="radio"], .lead-form input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    accent-color: var(--main-color);
    cursor: pointer;
}

.quiz-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
}

.quiz-actions .button {
    flex: 1;
    gap: 6px;
}

.quiz-next img {
    width: 18px;
    height: 18px;
}

.quiz-contact-fields {
    display: grid;
    gap: 17px;
}

.quiz-contact-method legend {
    font-size: 16px;
    margin-bottom: 18px;
}

.quiz-contact-method .quiz-options {
    column-gap: 40px;
}

.quiz-option img {
    width: 20px;
    height: 20px;
    margin-right: -4px;
}

.quiz-submit {
    display: grid;
    gap: 14px;
}

.quiz-submit .quiz-actions {
    margin-top: 0;
}

.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted-color);
    font-size: 14px;
    line-height: 18px;
}

.consent-field label {
    display: inline;
    cursor: pointer;
}


/* Просмотр объекта и технология строительства */
#viewing {
    max-width: 1440px;
    margin-inline: auto;
}

.viewing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
}

.viewing-layout .section-intro {
    margin: 0;
}

.viewing-layout .button {
    margin-top: 64px;
    width: 100%;
}

.viewing-gallery {
    display: grid;
    grid-template-columns: .78fr 1fr;
    min-width: 0;
    gap: 12px;
    margin-top: -96px;
    margin-bottom: -96px;
    margin-right: min(0px, calc((1204px - min(100vw, 1440px)) / 2 + 24px));
}

.viewing-gallery > div {
    display: grid;
    gap: 12px;
    min-width: 0;
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.viewing-gallery img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    border-radius: 24px;
}

.viewing-gallery > div img {
    aspect-ratio: 270 / 178;
}

.tour-banner {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-right: 24px;
    border-radius: var(--card-radius);
    overflow: hidden;
    color: #fff;
    background: var(--main-color);
}

.tour-banner > img {
    align-self: stretch;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-banner > div {
    padding: 28px 0;
}

.tour-banner p {
    margin-top: 12px;
    color: #ccc;
}
/* Шаги покупки */
.steps-layout {
    display: grid;
    grid-template-columns: minmax(0, 653fr) minmax(0, 471fr);
    align-items: center;
    gap: 80px;
}

.steps-list {
    display: grid;
    gap: 28px;
}

.steps-list p {
    margin-top: 8px;
}

.steps-image {
    width: 100%;
    aspect-ratio: 471 / 754;
    object-fit: cover;
    border-radius: var(--section-radius);
}

/* О компании */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.about-copy > p + p {
    margin-top: 24px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
    text-align: center;
}

.stats dt {
    font-size: 50px;
    line-height: 1.2;
}

.stats dd {
    color: var(--muted-color);
    white-space: nowrap;
}

 
.company-video, .media-grid video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: var(--card-radius);
    background: #d6d6d6;
}

/* СМИ и отзывы */
figcaption {
    margin-top: 16px;
}

.reviews-subtitle {
    margin: 64px 0 32px;
}

.review-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: var(--card-radius);
    background: #fff;
    height: auto;
}

.review-person, .stars {
    display: flex;
    align-items: center;
}

.review-person {
    gap: 14px;
    margin-bottom: 16px;
}

.avatar, .review-source {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.avatar-letter {
    display: grid;
    place-items: center;
    color: #718096;
    background: var(--light-color);
}

.review-source {
    margin-left: auto;
}

.stars {
    gap: 4px;
    margin-top: 6px;
}

.avatar-text {
    background: #F0F1F4;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #738295;
}

.review-text {
    max-height: 400px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    padding-right: 10px;
}

.reviews-carousel {
    display: grid;
    align-items: center;
}

.reviews-swiper, .reviews-arrow {
    grid-area: 1 / 1;
}

.reviews-swiper {
    width: 100%;
    min-width: 0;
}

.reviews-arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px #0001;
    z-index: 2;
}

.reviews-arrow img {
    width: 24px;
    height: 24px;
}

.reviews-prev {
    justify-self: start;
    transform: translateX(-50%);
}
 

.reviews-next {
    justify-self: end;
    transform: translateX(50%);
}

.reviews-arrow:disabled {
    opacity: .4;
    cursor: default;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faq-layout h2 {
    margin-top: 16px;
}

.faq-item {
    padding: 28px 0;
    border-top: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    text-align: left;
    font-size: 24px;
    line-height: 1.2;
}

.faq-icons {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: transform .3s ease;
}

.faq-icons::before, .faq-icons::after {
    content: "";
    grid-area: 1 / 1;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.faq-icons::after {
    transform: rotate(90deg);
    transition: transform .3s ease, opacity .3s ease;
}

.faq-item.is-open .faq-icons {
    transform: rotate(180deg);
}

.faq-item.is-open .faq-icons::after {
    transform: rotate(0);
    opacity: 0;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .3s ease, opacity .3s ease;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-answer p {
    padding-top: 20px;
    color: var(--muted-color);
}

 
/* Контакты и подвал */
.contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 490fr) minmax(0, 694fr);
    gap: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow-wrap: anywhere;
}

.contact-details h2 {
    margin-bottom: 0;
}

.contact-list, .contact-group {
    display: grid;
    gap: 20px;
}

.contact-group {
    gap: 6px;
}

.contact-row, .contact-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .3s;
}

.contact-row:hover {
    color: var(--muted-color);
}
.text-link {
    transition: all .3s;
}
.text-link:hover {
    color: var(--main-color);
}

.contact-row img {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.contact-group address {
    font-style: normal;
    color: var(--muted-color);
}

.contact-actions {
    gap: 12px;
    margin-top: auto;
}

.contact-actions .button {
    flex: 1;
    gap: 6px;
    padding-right: 12px;
    padding-left: 12px;
}

.contact-actions img {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.contact-map {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    border-radius: var(--card-radius);
}

/* Футер */
.site-footer {
    padding: 32px 28px 48px;
    border-radius: var(--section-radius) var(--section-radius) 0 0;
    background: var(--light-color);
}

.site-footer .container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px 40px;
}

.footer-contacts, .footer-socials, .footer-links, .footer-details p + p {
    display: flex;
    align-items: center;
}

.footer-contacts {
    justify-self: end;
    gap: 40px;
}

.footer-contacts > a {
    transition: all .3s;
}

.footer-contacts > a:hover {
    color: var(--muted-color);
}

.footer-socials { gap: 12px; }
.footer-socials .socials { gap: 8px; }
.footer-socials .social-link, .footer-socials img { width: 32px; height: 32px; }

.footer-details, .footer-links {
    color: var(--muted-color);
    font-size: 13px;
    transition: all .3s;
}

.social-link img{
    transition: all .3s;
    min-width: 36px;
}

.social-link img:hover{
    transform: rotate(360deg);
}

.footer-links a:hover {
    color: var(--main-color); 
}

.footer-disclaimer {
    color: var(--muted-color);
    font-size: 10px;
}

.footer-details { line-height: 1.3; }
.footer-details p + p, .footer-links { gap: 14px; flex-wrap: wrap; }
.footer-links { line-height: 22px; }
.footer-links a { text-decoration: underline; text-underline-offset: 2px; }
.footer-disclaimer { grid-column: 1 / -1; line-height: 1.2; margin-top: -6px; }

 /* Модальные формы */
.form-modal {
    max-width: 710px;
    padding: 48px;
    border-radius: 48px;
    overscroll-behavior: contain;
}

.form-modal h2 {
    margin-bottom: 24px;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -.04em;
}

.form-modal .lead-form {
    margin-top: 40px;
}

.form-modal .quiz-submit {
    margin-top: 20px;
}

.form-modal :focus-visible {
    border: 1px solid #0D0D0D;
}

.house-dialog, .dialog.form-modal {
    --modal-padding: 48px;
    padding: 0;
    overflow: visible;
}

.modal-body {
    max-height: inherit;
    padding: var(--modal-padding);
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: inherit;
}

/* Подтверждение отправки заявки */
.dialog.success-modal {
    max-width: 632px;
    max-height: calc(100dvh - 80px);
}

.success-modal h2 {
    margin-bottom: 14px;
}

.success-icon {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 64px;
    aspect-ratio: 1;
    border: 6px solid #fff;
    border-radius: 50%;
    background: #34c759;
}

.success-icon img {
    width: 28px;
    height: 20px;
}

.success-divider {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

.success-channels {
    display: grid;
    gap: 12px;
}

.success-channels h3 {
    margin-bottom: 4px;
}

.success-channels .button {
    gap: 6px;
}

.success-channels .button img {
    width: 24px;
    height: 24px;
}

/* Плавное появление блоков при прокрутке */
.reveal-pending {
    opacity: 0;
}

.reveal.is-revealing, .hero .site-header, .hero-card {
    animation: reveal-in .95s cubic-bezier(.25, .65, .3, 1) both;
    animation-delay: .2s;
}

.grid > .reveal.is-revealing:nth-child(3n + 2) {
    animation-delay: .25s;
}

.grid > .reveal.is-revealing:nth-child(3n), .hero-card {
    animation-delay: .35s;
}

@keyframes reveal-in {
    from {
        opacity: 0;
        transform: translateY(34px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Страница политики обработки персональных данных */
.policy-page {
    padding: 28px;
    background: var(--light-color);
}

.policy-content {
    padding: 85px 0 80px;
}

.policy-content h1 {
    margin-bottom: 46px;
    letter-spacing: -.04em;
}

.policy-text > h1 + p, .policy-text h2 {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.04em;
}

.policy-text > h1 + p {
    margin-bottom: 36px;
}

.policy-text {
    color: var(--muted-color);
    overflow-wrap: anywhere;
}

.policy-text h2 {
    margin: 36px 0 16px;
    scroll-margin-top: 24px;
}

.policy-text h1, .policy-text h2, .policy-text > h1 + p {
    color: var(--main-color);
}

.policy-text ul {
    padding-left: 24px;
}

.policy-text li {
    list-style: disc;
}

.policy-text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

body:not(.home, .page-template-home-page) {
    padding-top: 28px;
    background: var(--light-color);
}

.h-mob {
    display: none;
}

/* Плашка cookies */
.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    width: calc(100% - 80px);
    max-width: 700px;
    padding: 8px 24px 8px 31px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 24px #00000014;
    margin: auto;
}

.cookie-image { width: 44px; height: 44px; flex-shrink: 0; }
.cookie-notice a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-close {
    position: absolute;
    top: -24px;
    right: -24px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #00000005;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 5px #00000014;
}

.cookie-close img { width: 28px; height: 28px; }
.cookie-notice a:focus-visible, .cookie-close:focus-visible { outline: 2px solid var(--main-color); outline-offset: 3px; }

.page-template-thanks .site-footer {display: none;}
.page-template-thanks .form-modal-close {display: none;}
.thanks-box {
    background: url(images/thxpage-bg.jpg) no-repeat;
    background-size: cover;
    height: 100%;
    min-height: 100vh;
}
.thanks-box.error404-box {
    background: url(images/error-bg.jpg) no-repeat;
    background-size: cover;
    height: 100%;
    min-height: 100vh;
}

body.page-template-thanks,
body.error404 {
    padding-top: 0;
}
