*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-green); text-decoration: none; }
a:hover { color: var(--c-green-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--c-gold); color: var(--c-ink); }
[hidden] { display: none !important; }
.svg-sprite { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }

/* Контейнер */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.panel .wrap, .hero .wrap, .site-footer .wrap { padding-inline: max(calc(var(--gutter) - var(--inset)), 0px); }

/* Секции */
.sec { padding-block: var(--sec-y); }
.sec--flush-top { padding-top: 0; }
.sec--panel { padding: 0 var(--inset); }
.panel { position: relative; overflow: hidden; border-radius: var(--r-xl); padding-block: var(--panel-y); }
.panel--green { background: var(--c-green-deep); color: var(--c-on-dark); }
.panel--olive { background: var(--c-green); color: var(--c-on-dark); }
.panel--sand { background: var(--c-sand); }
.sec + .sec--panel, .sec--panel + .sec--panel { margin-top: 0; }

/* Типографика */
.title-xl { font-size: var(--fs-h2); font-weight: 500; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.title-md { font-size: var(--fs-h3); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
.lead { font-size: var(--fs-lead); line-height: 1.45; text-wrap: pretty; }
.text { font-size: var(--fs-body); line-height: 1.65; color: var(--c-text); text-wrap: pretty; }
.panel--green .text, .panel--olive .text { color: var(--c-on-dark-80); }
.prose { max-width: 760px; font-size: var(--fs-body); line-height: 1.7; color: var(--c-text); }
.prose h2 { margin: 1.6em 0 .6em; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--c-ink); }
.prose h3 { margin: 1.4em 0 .5em; font-size: 21px; font-weight: 600; color: var(--c-ink); }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose blockquote { padding: 18px 22px; border-radius: var(--r-sm); background: var(--c-sand); }
.prose img { border-radius: var(--r-md); margin: 1.5em 0; }

/* Чип-надзаголовок */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: var(--r-pill); background: var(--c-sand); color: var(--c-green); font-size: var(--fs-xs); font-weight: 600; line-height: 1; }
.chip .icon { font-size: 17px; color: var(--c-gold-ink); }
.chip--on-sand { background: var(--c-bg); }
.chip--dark { background: rgba(213, 179, 107, .16); color: var(--c-gold); }
.chip--dark .icon { color: var(--c-gold); }
.chip--glass { height: 38px; padding: 0 16px 0 12px; background: var(--c-glass); border: 1px solid var(--c-glass-border); color: var(--c-on-dark); font-size: 14px; font-weight: 500; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chip--glass .icon { color: var(--c-gold); font-size: 18px; }

.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.sec-head--center { align-items: center; text-align: center; }
.sec-head--split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 80px); align-items: end; }
.sec-head--split > div { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 26px; border: 0; border-radius: var(--r-pill); font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap; transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn .icon { font-size: 20px; }
.btn--sm { height: 48px; padding: 0 22px; font-size: 14.5px; gap: 8px; }
.btn--sm .icon { font-size: 18px; }
.btn--with-circle { padding: 0 9px 0 28px; gap: 12px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn--block.btn--center { justify-content: center; }
.btn__circle { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--c-ink); color: var(--c-gold); }
.btn--gold { background: var(--c-gold); color: var(--c-ink); }
.btn--gold:hover { background: var(--c-gold-hover); color: var(--c-ink); }
.btn--green { background: var(--c-green); color: var(--c-on-dark); }
.btn--green:hover { background: var(--c-green-deep); color: var(--c-on-dark); }
.btn--green .icon { color: var(--c-gold); }
.btn--sand { background: var(--c-sand); color: var(--c-ink); font-weight: 500; }
.btn--sand:hover { background: var(--c-sand-2); color: var(--c-ink); }
.btn--glass { background: var(--c-glass); border: 1px solid var(--c-glass-border); color: var(--c-on-dark); font-weight: 500; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(250, 247, 240, .24); color: var(--c-on-dark); }
.btn--outline-gold { height: 54px; background: transparent; border: 1px solid rgba(213, 179, 107, .5); color: var(--c-gold); font-size: 15.5px; }
.btn--outline-gold:hover { background: var(--c-gold); color: var(--c-ink); }
.btn--round { width: 52px; height: 52px; padding: 0; font-size: 22px; }
.btn--round:hover { transform: none; }

/* Иконка в плитке */
.ico-tile { flex: none; width: 46px; height: 46px; border-radius: var(--r-xs); display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--c-sand); color: var(--c-green); }
.ico-tile--gold { background: var(--c-gold); color: var(--c-ink); }
.ico-tile--dark { background: var(--c-ink); color: var(--c-gold); }
.ico-tile--ghost { background: rgba(213, 179, 107, .16); color: var(--c-gold); }
.ico-tile--light { background: var(--c-bg); color: var(--c-green); }
.ico-tile--lg { width: 54px; height: 54px; border-radius: 18px; font-size: 26px; }

/* Формы */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; font-weight: 500; color: var(--c-text); }
.field__req { color: var(--c-gold-star); }
.field__opt { font-weight: 400; color: var(--c-muted-2); }
.field__input { width: 100%; height: 56px; padding: 0 20px; font-size: 16px; color: var(--c-ink); background: var(--c-bg); border: 1.5px solid var(--c-sand-2); border-radius: 18px; outline: none; transition: border-color .2s ease, background .2s ease; }
.field__input:focus { border-color: var(--c-green); background: var(--c-white); }
.field__input--area { height: auto; min-height: 100px; padding: 16px 20px; line-height: 1.5; resize: vertical; }
.field__error { display: none; font-size: 13px; color: var(--c-error); }
.field.is-error .field__input { border-color: var(--c-error); }
.field.is-error .field__error { display: block; }

.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-group--even { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); }
.choice { position: relative; }
.choice__input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 18px; border-radius: var(--r-pill); border: 1.5px solid var(--c-sand-2); background: var(--c-white); color: var(--c-ink); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: all .2s ease; }
.choice__box .icon { font-size: 18px; }
.choice__input:checked + .choice__box { background: var(--c-green); border-color: var(--c-green); color: var(--c-on-dark); }
.choice__input:focus-visible + .choice__box { outline: 2px solid var(--c-gold); outline-offset: 2px; }

.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent__input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--c-muted-num); background: var(--c-bg); color: var(--c-on-dark); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all .2s ease; }
.consent__box .icon { opacity: 0; }
.consent__input:checked + .consent__box { background: var(--c-green); border-color: var(--c-green); }
.consent__input:checked + .consent__box .icon { opacity: 1; }
.consent__input:focus-visible + .consent__box { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.consent__text { padding-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--c-ink); }
.consent__text a { text-decoration: underline; text-underline-offset: 3px; }
.consent-field.is-error .consent__box { border-color: var(--c-error); }
.consent-field .field__error { padding-left: 38px; }

/* Анимации появления (класс is-in ставит site.js) */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-zoom] { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.js [data-zoom].is-in { transform: none; }
.js [data-hero] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(150ms + var(--i, 0) * 110ms); }
.js [data-hero].is-in { opacity: 1; transform: none; }
.no-anim [data-reveal], .no-anim [data-stagger] > *, .no-anim [data-zoom], .no-anim [data-hero] { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-stagger] > *, .js [data-zoom], .js [data-hero] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 899px) {
  .sec-head--split { grid-template-columns: minmax(0, 1fr); }
}

/* Декор (кольца) и лента галереи не должны растягивать страницу вбок на узких телефонах. */
html, body { overflow-x: clip; }
