/* ==========================================================================
   МАСТЕРСКАЯ ЗАВИВКИ И КОЛОРИСТИКИ — дизайн-система
   «Изумрудная Япония × русская гостиная»
   Cormorant (дисплей) + Manrope (текст). Изумруд × золото × дерево × бумага.
   ========================================================================== */

:root {
  /* Палитра */
  --paper: #f6f0e4;        /* бумага-крем */
  --paper-2: #efe6d2;      /* бумага теплее */
  --card: #fffdf7;         /* карточка */
  --ink: #22302a;          /* основной текст */
  --ink-soft: #55645d;
  --emerald: #0c3b2e;      /* изумруд */
  --emerald-2: #15513f;
  --emerald-3: #08281e;    /* глубокий */
  --sage: #3e7a63;
  --moss: #9db8a4;
  --mist: #dce7de;         /* светлый шалфейный */
  --gold: #c2a15e;         /* золото */
  --gold-2: #e0c68e;       /* светлое золото */
  --gold-3: #9c7c3d;       /* тёмное золото */
  --wood: #7c4f2b;         /* дерево/орех */
  --wood-2: #5d3a20;
  --wood-3: #9a6a41;
  --line: rgba(12, 59, 46, .16);
  --line-gold: rgba(194, 161, 94, .55);
  --err: #a13a30;

  /* Форма */
  --r-sm: 3px;
  --r: 8px;
  --r-lg: 16px;
  --shadow-1: 0 2px 10px rgba(26, 44, 36, .07), 0 1px 3px rgba(26, 44, 36, .06);
  --shadow-2: 0 12px 34px rgba(26, 44, 36, .14), 0 3px 8px rgba(26, 44, 36, .08);
  --shadow-frame: 0 18px 44px rgba(26, 34, 30, .22);

  /* Типографика */
  --font-serif: "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-xs: .79rem;
  --t-sm: .92rem;
  --t-md: 1rem;
  --t-lg: 1.125rem;
  --display: clamp(2.1rem, 1.2rem + 3.2vw, 3.6rem);
  --display-2: clamp(1.7rem, 1rem + 2.2vw, 2.6rem);
  --h-sec: clamp(1.55rem, .9rem + 2vw, 2.35rem);

  /* Сетка */
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius-px: 40px;

  /* Motion */
  --ease: cubic-bezier(.22, .7, .25, 1);
  --t-fast: .22s;
  --t-mid: .45s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-md);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { border: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--emerald-3); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.14; text-wrap: balance; }

/* ---------- Контейнеры и секции ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 900px; }

.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--light { background: var(--card); }
.section--dark {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(62, 122, 99, .35) 0%, transparent 55%),
    linear-gradient(180deg, var(--emerald) 0%, var(--emerald-3) 100%);
  color: #f3ecdc;
}
.section--dark :where(h1,h2,h3,h4) { color: #fff; }
.section--wood {
  background: linear-gradient(180deg, #2b1a0e, #3b2313 60%, #2b1a0e);
  color: #ecdcc0;
}
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

/* Заголовок секции */
.sec-head { max-width: 780px; margin-bottom: clamp(28px, 4.5vw, 52px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--t-xs); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-3); font-weight: 700;
  margin-bottom: 14px;
}
.sec-kicker::before, .sec-kicker::after { content: ""; height: 1px; width: 34px; background: var(--line-gold); }
.sec-kicker--plain::before { display: none; }
.sec-kicker--left { display: flex; }
.sec-kicker--left::after { display: none; }
.section--dark .sec-kicker { color: var(--gold-2); }
.sec-head h2 { font-size: var(--h-sec); margin-bottom: 14px; color: var(--emerald-3); }
.section--dark .sec-head h2 { color: #fff; }
.sec-head p { color: var(--ink-soft); font-size: var(--t-lg); }
.section--dark .sec-head p { color: rgba(243, 236, 220, .78); }

/* Декоративный разделитель-локон */
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px auto; color: var(--gold); }
.orn svg { width: 120px; height: 12px; opacity: .9; }
.orn__dot { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* Сетки */
.grid { display: grid; gap: clamp(18px, 2.6vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 700; font-size: var(--t-md); line-height: 1.15;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--emerald-3); box-shadow: 0 10px 22px rgba(194, 161, 94, .35); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(194, 161, 94, .45); }
.btn--emerald { background: var(--emerald); color: #f6efdf; box-shadow: 0 10px 22px rgba(12, 59, 46, .3); }
.btn--emerald:hover { transform: translateY(-2px); background: var(--emerald-2); }
.btn--ghost { background: transparent; border-color: rgba(243, 236, 220, .45); color: #f3ecdc; }
.btn--ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn--line { background: transparent; border-color: var(--gold-3); color: var(--emerald-3); }
.btn--line:hover { background: rgba(194, 161, 94, .12); }
.btn--sm { padding: 10px 18px; font-size: var(--t-sm); border-radius: 6px; }
.btn--block { width: 100%; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn--lg { padding: 18px 36px; font-size: var(--t-lg); }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* Текстовая ссылка с подчёркиванием-локоном */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--emerald-2); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--gold { color: var(--gold-2); }
.section--dark .link-arrow { color: var(--gold-2); }

/* ---------- Формы ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: var(--t-sm); font-weight: 700; letter-spacing: .04em; }
.field .hint { font-size: var(--t-xs); color: var(--ink-soft); }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold-3); box-shadow: 0 0 0 3px rgba(194, 161, 94, .18);
}
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--emerald-2) 50%), linear-gradient(135deg, var(--emerald-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.form-note { font-size: var(--t-xs); color: var(--ink-soft); }
.field .req { color: var(--err); }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* Флеш-сообщение */
.flash { border-radius: var(--r); padding: 15px 20px; font-weight: 600; display: flex; gap: 12px; align-items: flex-start; }
.flash--ok { background: #e4efe4; color: #24552f; border: 1px solid rgba(36, 85, 47, .25); }
.flash--error { background: #f6e2de; color: var(--err); border: 1px solid rgba(161, 58, 48, .25); }

/* ---------- Шапка ---------- */
.site-header { position: relative; z-index: 60; }
.topbar {
  background: var(--emerald-3); color: rgba(243, 236, 220, .9);
  font-size: var(--t-xs); letter-spacing: .02em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; }
.topbar__meta { display: flex; align-items: center; gap: 20px; }
.topbar__meta a:hover { color: var(--gold-2); }
.topbar__meta svg { width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; opacity: .85; }
.topbar__phone { font-weight: 800; color: #fff; letter-spacing: .04em; }
.topbar__soc { display: flex; gap: 6px; align-items: center; }
.topbar__soc a { display: inline-flex; padding: 4px 7px; border-radius: 4px; transition: color var(--t-fast); }
.topbar__soc svg { width: 15px; height: 15px; margin: 0; }

.navbar { position: sticky; top: 0; z-index: 90; background: var(--paper); border-bottom: 1px solid var(--line); transition: background var(--t-mid), box-shadow var(--t-mid); }
.navbar.is-stuck { background: rgba(246, 240, 228, .94); backdrop-filter: blur(14px); box-shadow: var(--shadow-1); }
.navbar__in { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 82px; }

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; min-width: 0; }
.brand__mark {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--gold-2), var(--gold-3) 68%);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; color: var(--emerald-3);
  font-size: 1.25rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 4px 10px rgba(12, 59, 46, .25);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.08; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.28rem; color: var(--emerald-3); white-space: nowrap; }
.brand__name em { font-style: normal; color: var(--gold-3); }
.brand__sub { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: var(--t-sm); font-weight: 700;
  padding: 10px 13px; border-radius: 6px; color: var(--ink);
  position: relative; transition: color var(--t-fast);
}
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-mid) var(--ease);
}
.nav a:hover { color: var(--emerald-2); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--emerald-2); }
.navbar__cta { display: flex; align-items: center; gap: 12px; flex: none; }
.navbar__phone { display: none; text-align: right; text-decoration: none; }
.navbar__phone b { display: block; font-size: var(--t-md); color: var(--emerald-3); letter-spacing: .02em; }
.navbar__phone span { font-size: var(--t-xs); color: var(--ink-soft); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 46px; height: 46px; padding: 12px; border-radius: 8px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--emerald-3); margin: 5px 0; border-radius: 2px; transition: transform var(--t-mid) var(--ease), opacity var(--t-mid); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--emerald-3); color: rgba(243, 236, 220, .82); position: relative; overflow: hidden; }
.site-footer__top { padding-block: clamp(44px, 6vw, 76px) 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr; gap: clamp(22px, 4vw, 48px); }
.footer-col h4 { color: var(--gold-2); font-family: var(--font-sans); font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; margin-bottom: 18px; font-weight: 800; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; opacity: .92; transition: color var(--t-fast), opacity var(--t-fast); }
.footer-col a:hover { color: var(--gold-2); opacity: 1; }
.footer-about p { font-size: var(--t-sm); opacity: .78; max-width: 42ch; }
.footer-contacts li { display: flex; gap: 10px; font-size: var(--t-sm); align-items: flex-start; }
.footer-contacts svg { width: 15px; height: 15px; margin-top: 4px; color: var(--gold); flex: none; opacity: .9; }
.footer-contacts a { color: #fff; font-weight: 700; }
.site-footer__bottom { border-top: 1px solid rgba(243, 236, 220, .14); padding-block: 18px; font-size: var(--t-xs); opacity: .7; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer-copy em { font-style: normal; color: var(--gold-2); }

/* ---------- Хлебные крошки / page head ---------- */
.page-head { background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-3) 130%); color: #f3ecdc; padding: clamp(36px, 6vw, 64px) 0 clamp(30px, 5vw, 52px); position: relative; overflow: hidden; }
.page-head .orn { margin: 16px auto 6px; }
.page-head h1 { color: #fff; font-size: var(--display); text-align: center; }
.page-head p { text-align: center; color: rgba(243, 236, 220, .8); max-width: 720px; margin: 10px auto 0; }
.page-head__inner { position: relative; z-index: 1; }

/* ---------- Мобильный CTA ---------- */
.mobile-cta {
  position: fixed; left: 14px; right: 14px; bottom: 12px; z-index: 95;
  display: none; box-shadow: var(--shadow-frame);
}

/* Состояния и доступные радио-переключатели записи */
.section--sage { background: var(--mist); }
.state { padding: 26px; border: 1px dashed var(--line-gold); border-radius: var(--r); color: var(--ink-soft); text-align: center; background: rgba(255,255,255,.34); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.daychip, .time-chip { position: relative; }
.daychip input, .time-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.daychip:has(input:focus-visible), .time-chip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
