/* ===== Шрифты ===== */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ===== Переменные ===== */
:root {
  --bg: #FBF8F5;
  --bg-alt: #F4EDE6;
  --accent: #E8B4B8;
  --accent-dark: #C98A91;
  --green: #7A9E7E;
  --text: #2E2A28;
  --muted: #6B625C;
  --green-dark: #4E7553;
  --accent-strong: #A8626B;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(46, 42, 40, 0.08);
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

/* ===== Компоненты ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { text-align: center; margin-bottom: 40px; }
.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: 600 1rem/1 var(--font-body); padding: 16px 28px; border-radius: 999px;
  transition: background .2s, transform .2s; }
.btn--primary { background: var(--text); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn--ghost:hover { background: var(--text); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
html:not(.js) #submit-btn { display: none; }

/* Появление блоков: только при включённом JS */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ===== Шапка ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 245, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid rgba(46, 42, 40, .06); }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: var(--header-h); }
.js .header__inner { flex-wrap: nowrap; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--text); }
.header__phone { display: none; text-decoration: none; font-weight: 600; white-space: nowrap; }
.header__cta { display: none; padding: 12px 22px; }
.burger { display: none; }

/* Мобильное меню: только при JS */
@media (max-width: 1023px) {
  /* Без JS: обычный ряд ссылок под логотипом */
  .nav { order: 3; width: 100%; padding-bottom: 8px; }
  .nav a { padding: 6px 0; color: var(--text); }
  /* С JS: выпадающая панель под бургером */
  .js .nav { position: absolute; left: 0; right: 0; top: var(--header-h); width: auto; display: none;
    background: var(--bg); padding: 12px 20px 20px; flex-direction: column; border-bottom: 1px solid rgba(46,42,40,.08); }
  .js .nav a { padding: 10px 0; font-size: 1.05rem; }
  .js .nav.is-open { display: flex; }
  .logo { order: 1; }
  .js .burger { display: block; order: 2; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
  .burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 10px; right: 10px;
    height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .burger span { top: 21px; }
  .burger span::before { left: 0; right: 0; top: -7px; }
  .burger span::after { left: 0; right: 0; top: 7px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
}
@media (min-width: 1024px) {
  .header__phone, .header__cta { display: inline-block; }
}

/* ===== Hero ===== */
.hero { padding: 40px 0 56px; }
.hero__inner { display: grid; gap: 32px; align-items: center; }
.hero__eyebrow { color: var(--green-dark); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 12px; }
.hero__lead { color: var(--muted); font-size: 1.1rem; max-width: 34em; margin-bottom: 24px; }
.hero__perks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; }
.hero__perks li::before { content: "\2022"; color: var(--accent-dark); margin-right: 8px; }
.hero__media img { border-radius: 28px; box-shadow: var(--shadow); width: 100%; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

/* ===== Каталог ===== */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(46, 42, 40, .12); }
/* .js .reveal перебивает transform и transition, поэтому дублируем с большей специфичностью */
.js .card.reveal { transition: opacity .6s ease, transform .25s ease, box-shadow .25s ease; }
.js .card.reveal.is-visible:hover { transform: translateY(-4px); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.card__body h3 { margin: 0; }
.card__price { color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.card__btn { text-align: center; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Преимущества ===== */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: 1fr; }
.feature { background: #fff; padding: 28px; border-radius: var(--radius); }
.feature__icon { color: var(--text); display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: var(--accent);
  align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(4, 1fr); } }

/* ===== Шаги ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: 1fr; }
.step__num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--green-dark); color: #fff;
  font-weight: 600; align-items: center; justify-content: center; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ===== Отзывы ===== */
.reviews { display: grid; gap: 24px; grid-template-columns: 1fr; }
.review { margin: 0; background: #fff; padding: 28px; border-radius: var(--radius); }
.review blockquote { margin: 0 0 16px; font-size: 1.05rem; }
.review figcaption { color: var(--muted); font-weight: 600; font-size: .95rem; }
.note { text-align: center; color: var(--muted); font-size: .85rem; margin: 24px 0 0; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

/* ===== Контакты и форма ===== */
.contact { display: grid; gap: 32px; }
.contact__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; color: var(--muted); }
.contact__list a { color: var(--text); font-weight: 600; }
.form { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form .note { margin: 0; text-align: left; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input { width: 100%; padding: 14px 16px; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid #8A817B; border-radius: 12px; }
.field input:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(168, 98, 107, .25); }
.field--error input { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: .875rem; margin: 6px 0 0; }
.field__error:empty { display: none; }
.form__status { margin: 0; color: #2F6B3B; font-weight: 600; }
.form__status:empty { display: none; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* ===== Подвал ===== */
.footer { background: var(--text); color: #EDE7E1; padding: 32px 0 96px; font-size: .95rem; }
.footer__inner { display: flex; flex-direction: column; gap: 8px; }
.footer__brand { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.footer__social { display: flex; gap: 16px; }
.footer__social a { text-decoration: none; }
.footer__social a:hover { text-decoration: underline; }
.footer__legal { font-size: .85rem; color: #CFC7C0; }
@media (min-width: 900px) {
  .footer { padding-bottom: 32px; }
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Кнопка звонка: только мобильные */
.call-fab { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; text-align: center; text-decoration: none;
  background: var(--accent-strong); color: #fff; font-weight: 600; padding: 16px; border-radius: 999px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .call-fab { display: none; } }
@media (max-width: 899px) { html { scroll-padding-bottom: 88px; } }
