:root { --accent: #74624e; --accent-dark: #514332; }
html { scroll-behavior: smooth; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a88964; outline-offset: 4px; }
.header { position: relative; z-index: 10; }
.contacts { position: relative; gap: 16px; }
.contacts__item { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; border: 0; color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.contacts__item svg { display: block; width: 23px; height: 23px; }
.contacts__item:hover, .contacts__item[aria-expanded=true] { background: var(--accent); transform: translateY(-1px); }
.contact-card { position: absolute; z-index: 20; top: calc(100% + 20px); right: 0; width: 310px; max-width: calc(100vw - 32px); padding: 25px 24px 22px; background: #fcfaf6; color: #28241f; border: 1px solid #e6dfd4; border-radius: 12px; box-shadow: 0 14px 45px #17100a2b; }
.contact-card::before { content: ''; position: absolute; right: 52px; top: -6px; width: 10px; height: 10px; background: #fcfaf6; border-top: 1px solid #e6dfd4; border-left: 1px solid #e6dfd4; transform: rotate(45deg); }
#contact-phone::before { right: 14px; }
.contact-card__label { margin: 0 25px 13px 0; font-size: 11px; letter-spacing: .08em; color: #83796d; text-transform: uppercase; }
.contact-card__value { display: block; font-size: 19px; line-height: 1.5; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-card__action { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 13px; color: var(--accent); border-bottom: 1px solid #c7bbaa; padding-bottom: 4px; }
.contact-card__action:hover { color: var(--accent-dark); }
.contact-card__close { position: absolute; right: 10px; top: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #827464; font-size: 24px; cursor: pointer; }
.contact-card__close:hover { background: #ece5da; }
.hero { height: auto; min-height: 700px; padding: 110px 5vw 90px; background: linear-gradient(90deg, rgba(12,9,6,.68), rgba(12,9,6,.29) 55%, rgba(12,9,6,.05)), url('assets/hero-warm-interior.png') center 58% / cover; }
.hero__title { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.2; letter-spacing: -.025em; max-width: 710px; white-space: normal; text-wrap: balance; }
.hero__text { max-width: 590px; font-size: 16px; line-height: 1.65; margin-top: 25px; white-space: normal; color: #f0ebe5; }
.hero__button { margin: 35px 0 0; max-width: 100%; width: 300px; height: 66px; border-radius: 10px; background: #e6ded3; font-size: 17px; transition: background .2s, transform .2s; }
.hero__button:hover { background: #f6eee2; transform: translateY(-2px); }
.hero .desk { display: none; }
body.quiz-open { overflow: hidden; }
.quiz { border: 0; border-radius: 16px; padding: 0; width: min(1120px, calc(100% - 40px)); max-width: none; height: min(730px, calc(100dvh - 48px)); max-height: none; background: #fff; color: #292722; box-shadow: 0 32px 120px #0006; }
.quiz::backdrop { background: #17130fc9; backdrop-filter: blur(5px); }
.quiz[open] { display: grid; grid-template-columns: minmax(0, 1fr) 245px; }
.quiz__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.quiz__header { padding: 25px 34px 20px; border-bottom: 1px solid #ebe8e2; padding-right: 58px; }
.quiz__eyebrow { margin: 0; font-size: 11px; line-height: 1.6; letter-spacing: .09em; text-transform: uppercase; color: #79756e; }
.quiz__body { padding: 32px 34px 16px; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.quiz__title { margin: 0 0 13px; font-size: clamp(22px, 2.2vw, 29px); line-height: 1.3; font-weight: 400; letter-spacing: -.025em; }
.quiz__subtitle { margin: 0 0 24px; color: #817a70; font-size: 13px; line-height: 1.65; }
.quiz__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.quiz__option { border: 1px solid #dedad3; border-radius: 7px; padding: 17px 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; font-size: 14px; line-height: 1.5; transition: background .15s, border-color .15s; }
.quiz__option:hover { border-color: #a08d75; background: #fbf9f5; }
.quiz__option:has(input:checked) { border-color: #8a7356; background: #f4efe7; box-shadow: inset 0 0 0 1px #8a7356; }
.quiz__option input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.quiz__option strong { font-weight: 500; display: block; margin-bottom: 6px; }
.quiz__option small { display: block; color: #746e65; font-size: 12px; line-height: 1.65; }
.quiz__options--packages .quiz__option { align-items: flex-start; min-height: 122px; }
.quiz__options--packages input { margin-top: 3px; }
.quiz__option--consult { grid-column: 1 / -1; min-height: auto !important; }
.quiz__field { display: block; margin-top: 22px; max-width: 450px; font-size: 13px; line-height: 1.6; }
.quiz__field input { display: block; width: 100%; margin-top: 8px; padding: 14px 15px; border: 1px solid #d5d0c7; border-radius: 7px; background: #fff; color: #292722; font-size: 16px; }
.quiz__field input:focus { outline-color: #a88964; }
.quiz__field input[aria-invalid=true] { border-color: #b84132; }
.quiz__field [hidden], [hidden] { display: none !important; }
.quiz__unit { display: flex; align-items: center; gap: 12px; }
.quiz__unit input { max-width: 220px; }
.quiz__error { min-height: 20px; margin: 10px 0 0; font-size: 12px; color: #a13325; }
.quiz__footer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 15px; padding: 15px 28px 25px 34px; background: #fff; }
.quiz__progress-label { display: block; font-size: 11px; color: #80796e; margin-bottom: 12px; }
.quiz__progress { width: 100%; height: 4px; accent-color: #897254; display: block; border: 0; border-radius: 4px; overflow: hidden; }
.quiz__progress::-webkit-progress-bar { background: #e9e5de; }
.quiz__progress::-webkit-progress-value { background: #897254; }
.quiz__progress::-moz-progress-bar { background: #897254; }
.quiz__button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 7px; min-height: 46px; padding: 12px 22px; background: var(--accent); color: #fff; font-size: 14px; cursor: pointer; text-decoration: none; }
.quiz__button:hover { background: var(--accent-dark); }
.quiz__button:disabled { opacity: .4; cursor: default; }
.quiz__back { border: 1px solid #dedad3; background: #fff; color: #625a50; padding: 12px 17px; }
.quiz__back:hover { background: #f2eee8; }
.quiz__aside { background: #f4f1ec; padding: 60px 22px 28px; display: flex; flex-direction: column; gap: 20px; }
.quiz__brand { font-size: 20px; line-height: 1.1; letter-spacing: .06em; }
.quiz__aside img { display: block; width: 100%; height: 145px; object-fit: cover; border-radius: 8px; }
.quiz__aside-label { margin-top: auto; font-size: 10px; letter-spacing: .16em; color: #948574; }
.quiz__aside-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 29px; font-weight: 500; line-height: 1.05; margin: 0; }
.quiz__tip { margin: 0; padding: 17px; background: #eae4db; border-radius: 8px; font-size: 12px; line-height: 1.8; color: #62594e; }
.quiz__close { position: absolute; right: 15px; top: 12px; width: 34px; height: 34px; border: 0; background: transparent; color: #766c60; font-size: 27px; cursor: pointer; border-radius: 50%; }
.quiz__close:hover { background: #e8e1d7; }
.quiz__note { font-size: 12px; line-height: 1.7; color: #80786c; margin: 24px 0 0; }
.quiz__review { padding: 18px 22px; margin-top: 22px; border-radius: 8px; background: #f7f4ef; }
.quiz__review dl { margin: 0; }
.quiz__review dt { color: #898074; font-size: 11px; margin-top: 14px; }
.quiz__review dt:first-child { margin-top: 0; }
.quiz__review dd { margin: 4px 0 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.quiz__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.quiz__copy-status { font-size: 12px; color: #5c6c48; min-height: 20px; margin-top: 10px; }
.quiz__text-copy { width: 100%; height: 220px; padding: 14px; font: inherit; font-size: 12px; line-height: 1.6; border: 1px solid #d5d0c7; border-radius: 7px; }
@media (min-width: 1441px) { .how__img, .scope__img { left: auto; right: 0; } }
@media (max-width: 1100px) { .how, .scope { padding-left: 5vw; } .how__img, .scope__img { left: 59%; opacity: .65; } .how .section__title, .scope .section__title { font-size: 34px; } }
@media (max-width: 760px) {
 .header { height: 68px; padding: 0 20px; } .logo { font-size: 18px; line-height: 20px; margin-right: auto; } .nav__link { font-size: 14px; } .contacts { gap: 8px; margin-left: 22px; } .contacts__item { width: 23px; height: 23px; } .contacts__item:nth-child(n+3) { display: none; }
 .hero { padding: 85px 24px 65px; min-height: 660px; background-position: 62% center; } .hero__title { max-width: 490px; font-size: 34px; } .hero__text { font-size: 14px; max-width: 420px; } .hero__button { width: 270px; }
 .how, .scope { height: auto; padding: 65px 24px 0; } .how .section__title, .scope .section__title { font-size: 31px; line-height: 1.15; white-space: normal; } .how__text { font-size: 16px; line-height: 1.65; white-space: normal; } .section .desk { display: none; } .how__img, .scope__img { position: relative; left: auto; right: auto; top: auto; width: min(100%, 540px); height: auto; opacity: 1; margin: 30px auto 0; mask-image: none; -webkit-mask-image: none; } .scope__list { width: 100%; } .scope__name { font-size: 16px; white-space: normal; } .scope__sep { margin-right: 20px; } .scope__num { width: 60px; }
 .quiz { width: calc(100% - 20px); height: calc(100dvh - 20px); border-radius: 12px; } .quiz[open] { grid-template-columns: minmax(0, 1fr); } .quiz__aside { display: none; } .quiz__header { padding: 22px 48px 17px 22px; } .quiz__eyebrow { font-size: 10px; } .quiz__body { padding: 25px 22px 10px; } .quiz__title { font-size: 25px; } .quiz__options { grid-template-columns: 1fr; gap: 10px; } .quiz__options--packages .quiz__option { min-height: auto; padding: 14px; } .quiz__footer { padding: 15px 18px 22px 22px; gap: 10px; } .quiz__button { padding: 12px 16px; font-size: 13px; } .quiz__progress-label { font-size: 10px; } .quiz__actions { flex-direction: column; } .quiz__actions .quiz__button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media (max-width: 760px) {
 .contacts { gap: 9px; margin-left: 18px; }
 .contacts__item, .contacts__item:nth-child(n+3) { display: inline-flex; width: 34px; height: 34px; }
 .contacts__item svg { width: 19px; height: 19px; }
 .contact-card { top: calc(100% + 18px); right: 0; padding: 24px 20px 21px; }
}
@media (max-width: 380px) {
 .header { padding-right: 14px; padding-left: 14px; }
 .contacts { gap: 7px; margin-left: 12px; }
 .nav__link { font-size: 12px; }
 .contacts__item, .contacts__item:nth-child(n+3) { width: 32px; height: 32px; }
}
