/* ============================================================
   Dr. Romanika aesthetic center — базовые стили
   Палитра взята с фотографий интерьера: тёмно-синий мрамор,
   кремовая штукатурка, латунь/золото, белый мрамор.
   ============================================================ */

:root {
  /* Цвет */
  --navy-900: #08142b;
  --navy-800: #0d1e3d;
  --navy-700: #12294f;
  --navy-500: #1e3e6e;
  --navy-300: #4a648f;

  --cream-50: #fcfaf6;
  --cream-100: #f5efe5;
  --cream-200: #ede4d6;
  --sand-300: #ded0b9;
  --sand-400: #c9b696;

  --gold-700: #8f6f18;
  --gold-600: #a5811c;
  --gold-500: #c9a227;
  --gold-400: #dcb95f;
  --gold-200: #f0e0b4;

  --ink: #16203a;
  --muted: #6c7488;
  --line: rgba(22, 32, 58, 0.12);
  --line-gold: rgba(201, 162, 39, 0.35);

  /* Шрифт */
  --font-display: "Cormorant Garamond", "Noto Serif Armenian", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Noto Sans Armenian", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Italianno", "Cormorant Garamond", cursive;

  /* Ритм */
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --sec: clamp(64px, 9vw, 128px);
  --header-h: 96px;

  --radius: 2px;
  --radius-lg: 4px;

  --shadow-soft: 0 24px 60px -32px rgba(8, 20, 43, 0.35);
  --shadow-card: 0 2px 4px rgba(8, 20, 43, 0.04), 0 18px 40px -28px rgba(8, 20, 43, 0.4);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* ---------- Типографика ---------- */
.h-xl { font-size: clamp(40px, 6.4vw, 82px); }
.h-lg { font-size: clamp(32px, 4.6vw, 58px); }
.h-md { font-size: clamp(26px, 3vw, 38px); }
.h-sm { font-size: clamp(21px, 2.1vw, 26px); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-500);
  flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-500);
}

.lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- Раскладка ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--cream { background: var(--cream-100); }
.section--navy { background: var(--navy-900); color: var(--cream-100); }
.section--navy .lede, .section--navy .muted { color: rgba(245, 239, 229, 0.62); }
.section--navy .eyebrow { color: var(--gold-400); }

.grid { display: grid; gap: clamp(24px, 3vw, 48px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Подпись бренда: золотой росчерк ---------- */
/* Повторяет линию под словом «Dr. Romanika» в логотипе.
   Используется как разделитель разделов по всему сайту. */
.swoosh { display: block; width: min(260px, 60%); height: 14px; overflow: visible; }
.swoosh path {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  transition: none;
}
.is-visible .swoosh path, .swoosh.is-drawn path { stroke-dashoffset: 0; }
.swoosh--center { margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: var(--cream-50);
  --btn-bd: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--gold-600), var(--gold-400));
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--navy-900); border-color: var(--gold-500); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--gold { --btn-bg: transparent; --btn-fg: var(--gold-600); --btn-bd: var(--gold-500); }
.btn--light { --btn-bg: transparent; --btn-fg: var(--cream-100); --btn-bd: rgba(240, 224, 180, 0.4); }
.btn--sm { padding: 12px 22px; font-size: 11.5px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-600);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-gold);
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.link-more:hover { gap: 16px; border-color: var(--gold-500); }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: none;
}
/* Фон шапки виден всегда: в первом экране меню проходит над тёмной
   мраморной панелью, и без подложки пункты становятся нечитаемыми. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream-50);
  border-bottom: 1px solid rgba(22, 32, 58, 0.08);
  transition: none;
}
.header.is-stuck { height: var(--header-h); }
.header.is-stuck::before {
  background: var(--cream-50);
  border-bottom-color: var(--line-gold);
  box-shadow: 0 10px 30px -24px rgba(8, 20, 43, 0.22);
}
.header .wrap { max-width: 1480px; display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); position: relative; z-index: 2; }

.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 66px; width: auto; transition: none; }
.logo-text b { line-height: .9; }
.header.is-stuck .logo img { height: 66px; }
.logo-text { display: none; flex-direction: column; line-height: 1; }
.logo--text .logo-text { display: flex; }
.logo--text img { display: none; }
.logo-text b {
  font-family: var(--font-script);
  font-size: 44px;
  font-weight: 400;
  background: linear-gradient(96deg, var(--gold-700), var(--gold-400) 45%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-text span {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--gold-600);
  margin-top: -2px;
  padding-left: 3px;
}

.nav { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 30px); margin-inline: auto; min-width: 0; }
.nav a, .nav button {
  font-size: clamp(12px, 1vw, 14.5px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}
.nav a::after, .nav > li > button::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 1px;
  background: var(--gold-500);
  transition: right .35s var(--ease);
}
.nav a:hover::after, .nav li:hover > button::after,
.nav a[aria-current="page"]::after, .nav > li > button.is-current::after { right: 0; }

.nav-drop { position: relative; }
.nav-drop > button { display: inline-flex; align-items: center; gap: 7px; }
.nav-drop > button svg { transition: transform .3s var(--ease); }
.nav-drop:hover > button svg, .nav-drop.is-open > button svg { transform: rotate(180deg); }
.drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 290px;
  background: var(--cream-50);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav-drop:hover .drop, .nav-drop.is-open .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop a {
  display: block;
  padding: 11px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-left: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding-left .3s var(--ease);
}
.drop a::after { display: none; }
.drop a:hover { background: var(--cream-100); border-left-color: var(--gold-500); padding-left: 22px; }
.drop hr { border: 0; border-top: 1px solid var(--line); margin: 8px 16px; }

.header-side { display: flex; align-items: center; gap: 14px; flex: none; }
.header-tel { font-size: 13px; letter-spacing: 0.04em; white-space: nowrap; }
.header-tel:hover { color: var(--gold-600); }

/* Переключатель языка */
.lang { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 40px; padding: 3px; }
.lang button {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 40px;
  color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang button[aria-pressed="true"] { background: var(--navy-800); color: var(--cream-50); }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"]:hover { color: var(--cream-50); }

/* Бургер */
.burger { display: none; width: 42px; height: 42px; position: relative; flex: none; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.is-menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-menu-open .burger span:nth-child(2) { opacity: 0; }
.is-menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1400px) {
  .header-tel { display: none; }
}

@media (max-width: 1280px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(400px, 88vw);
    background: var(--cream-50);
    border-left: 1px solid var(--line-gold);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 24px) 32px 40px;
    overflow-y: auto;
    transform: translateX(101%);
    transition: transform .5s var(--ease);
    margin: 0;
  }
  .is-menu-open .nav { transform: translateX(0); }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav > li > button { display: block; width: 100%; padding: 17px 0; font-size: 14px; text-align: left; }
  .nav .nav-drop > button { display: flex; align-items: center; justify-content: space-between; }
  .drop {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 12px 14px;
    min-width: 0;
    display: none;
  }
  .nav-drop.is-open .drop { display: block; }
  .nav-drop:hover .drop { transform: none; }
  .drop a { padding: 10px 0; font-size: 11.5px; }
  .drop a:hover { background: none; padding-left: 8px; }
  .drop hr { margin: 6px 0; }
}

/* Узкие телефоны: логотип и переключатель ужимаем, чтобы бургер влез */
@media (max-width: 1180px) {
  /* меню уезжает в шторку, поэтому правый блок прижимаем к краю */
  .header-side { margin-left: auto; }
}
@media (max-width: 600px) {
  :root { --header-h: 78px; }
  .header.is-stuck { height: var(--header-h); }
  .header .wrap { gap: 6px; padding-inline: 16px; }
  .logo img { height: 54px; }
  .header.is-stuck .logo img { height: 54px; }
  .logo-text b { font-size: 36px; }
  .logo-text span { font-size: 9px; letter-spacing: .24em; }
  .header-side { gap: 4px; }
  .lang { padding: 2px; }
  .lang button { padding: 6px 8px; font-size: 10px; letter-spacing: .04em; }
  .burger { width: 40px; margin-right: -8px; }
  .burger span { left: 9px; right: 9px; }
}
@media (max-width: 380px) {
  .logo-text b { font-size: 31px; }
  .logo-text span { font-size: 8px; }
  .lang button { padding: 6px 6px; font-size: 9.5px; }
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 43, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  z-index: 80;
  transition: opacity .4s var(--ease), visibility .4s;
}
.is-menu-open .scrim, .is-modal-open .scrim { opacity: 1; visibility: visible; }

/* ---------- Заголовок страницы ---------- */
.page-head {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(48px, 6vw, 84px);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(222, 208, 185, 0.5), transparent 60%),
    var(--cream-100);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -30%;
  width: 46%;
  height: 160%;
  background: url("../img/leaf-shadow.svg") right center / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--gold-600); }
.crumbs span { color: var(--sand-400); }

/* ---------- Карточки ---------- */
.card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-gold); }
.card h3 { font-size: clamp(20px, 2vw, 25px); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); margin-bottom: 0; }

/* ---------- Stable rendering: no entrance/reveal animation ---------- */
.reveal,
.reveal.is-visible,
.reveal[data-delay="1"],
.reveal[data-delay="2"],
.reveal[data-delay="3"],
.reveal[data-delay="4"],
.reveal[data-delay="5"] {
  opacity: 1;
  transform: none;
  transition: none;
  transition-delay: 0s;
}

/* ---------- Полоса-призыв ---------- */
.cta-band { position: relative; background: var(--navy-900); color: var(--cream-100); overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/marble-navy.svg") center / cover no-repeat;
  opacity: 0.85;
}
.cta-band .wrap { position: relative; z-index: 1; text-align: center; padding-block: clamp(64px, 8vw, 108px); }
.cta-band h2 { color: var(--cream-50); margin-bottom: 16px; }
.cta-band p { color: rgba(245, 239, 229, 0.68); max-width: 54ch; margin: 0 auto 34px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy-900); color: rgba(245, 239, 229, 0.7); padding-top: clamp(56px, 7vw, 88px); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 20px; }
.footer a:hover { color: var(--gold-400); }
.footer li { margin-bottom: 11px; }
.footer .logo-text b { font-size: 46px; }
.footer .logo img { height: 74px; }
.footer-about p { max-width: 34ch; margin-top: 18px; color: rgba(245, 239, 229, 0.55); font-size: 14px; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(240, 224, 180, 0.28);
  border-radius: 50%;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.socials a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.footer-bottom {
  border-top: 1px solid rgba(240, 224, 180, 0.16);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(245, 239, 229, 0.45);
}

/* ---------- Модальное окно записи ---------- */
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cream-50);
  border: 1px solid var(--line-gold);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
  transform: translateY(20px) scale(.98);
  transition: transform .5s var(--ease);
}
.modal.is-open .modal-box { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.modal-close:hover { color: var(--gold-600); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 300;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}
.field textarea { min-height: 96px; resize: vertical; }
.field.has-error input, .field.has-error select { border-color: #b4443a; }
.field .err { display: none; font-size: 12px; color: #b4443a; margin-top: 6px; }
.field.has-error .err { display: block; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.form-ok { display: none; text-align: center; padding: 20px 0; }
.form-ok svg { margin: 0 auto 18px; color: var(--gold-500); }
.is-sent .form-ok { display: block; }
.is-sent .modal-form { display: none; }

/* ---------- Способы связи в окне ---------- */
.modal-box--ways { width: min(520px, 100%); }
.ways-lead { font-size: 14.5px; color: var(--muted); margin: 10px 0 26px; }
.ways { display: grid; gap: 10px; }
.way {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.way:hover { border-color: var(--gold-500); transform: translateX(4px); }
.way-ic {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--gold-700);
}
.way--wa .way-ic { background: rgba(37, 211, 102, .12); color: #128c4a; }
.way-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.way-tx b { font-weight: 400; font-size: 16.5px; }
.way-tx i { font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.way > svg { color: var(--gold-600); flex: none; }
.ways-more { margin-top: 24px; }

/* ---------- Мелочи ---------- */
.is-squeezed { display: none !important; }
/* последняя ступень сжатия — уплотняем само меню */
.is-nav-tight .nav { gap: 16px; }
.is-nav-tight .nav a, .is-nav-tight .nav > li > button { font-size: 12px; letter-spacing: .06em; }

.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;
}
.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 200;
  background: var(--navy-800); color: var(--cream-50);
  padding: 10px 18px; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .swoosh path { stroke-dashoffset: 0; }
}

@media print {
  .header, .footer, .cta-band, .modal, .scrim, .burger { display: none !important; }
  body { background: #fff; }
}

/* ---------- Дополнения к каркасу ---------- */
.nav-wrap { display: contents; }
.nav-cta { display: none; }
@media (max-width: 1280px) {
  .header-side > .btn { display: none; }
  .nav-cta { display: block; border-bottom: 0 !important; margin-top: 26px; }
  .nav-cta .btn { width: 100%; }
}

.sec-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { margin-bottom: 18px; }
.sec-head--center { max-width: 60ch; margin-inline: auto; text-align: center; }
.sec-head--center .lede { margin-inline: auto; }

/* Поле поиска */
.search {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 20px;
  border-radius: 60px;
  color: var(--muted);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.search:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1); }
.search svg { flex: none; }
.search input {
  flex: 1;
  border: 0;
  background: none;
  padding: 12px 0;
  font-size: 16px;
  color: var(--ink);
}
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search--sm { padding: 2px 16px; }
.search--sm input { padding: 9px 0; font-size: 15px; }

/* Служебная подсказка для того, кто наполняет сайт */
.build-note {
  margin-top: 40px;
  padding: 14px 18px;
  border-left: 2px solid var(--gold-500);
  background: var(--cream-100);
  font-size: 13px;
  color: var(--muted);
}


/* ============================================================
   Stable first paint / Armenian typography
   ============================================================ */
html.i18n-pending body { visibility: hidden; }
html.i18n-ready body { visibility: visible; }

/* Armenian glyph metrics are taller/wider than the Latin/Cyrillic display font.
   Keep the visual scale consistent with Russian and English instead of letting
   headings/nav/buttons grow disproportionately. */
html[data-lang="hy"] {
  --font-display: "Noto Serif Armenian", "Sylfaen", Georgia, serif;
  --font-body: "Noto Sans Armenian", "Segoe UI", Arial, sans-serif;
}
html[data-lang="hy"] .h-xl { font-size: clamp(34px, 5.2vw, 66px); line-height: 1.14; }
html[data-lang="hy"] .h-lg { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.18; }
html[data-lang="hy"] .h-md { font-size: clamp(23px, 2.6vw, 34px); line-height: 1.2; }
html[data-lang="hy"] .h-sm { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.22; }
html[data-lang="hy"] .nav a,
html[data-lang="hy"] .nav button {
  font-size: clamp(11px, .88vw, 13px);
  letter-spacing: .055em;
  line-height: 1.45;
}
html[data-lang="hy"] .drop a { font-size: 11px; letter-spacing: .035em; }
html[data-lang="hy"] .btn {
  font-size: 11px;
  letter-spacing: .08em;
}
html[data-lang="hy"] .btn--sm { font-size: 10.5px; }
html[data-lang="hy"] .eyebrow {
  font-size: 10.5px;
  letter-spacing: .16em;
  line-height: 1.5;
}
html[data-lang="hy"] .lede { font-size: clamp(15px, 1.25vw, 17px); line-height: 1.65; }
html[data-lang="hy"] .card h3 { font-size: clamp(19px, 1.8vw, 23px); }
html[data-lang="hy"] .cat-intro-text { font-size: clamp(18px, 2vw, 26px); }
html[data-lang="hy"] .way-tx b { font-size: 15.5px; }

@media (max-width: 1280px) {
  html[data-lang="hy"] .nav a,
  html[data-lang="hy"] .nav > li > button { font-size: 13px; letter-spacing: .035em; }
}

@media (min-width: 1281px) and (max-width: 1500px) {
  html[data-lang="hy"] .header-side > .btn { display: none; }
  html[data-lang="hy"] .nav { gap: 14px; }
}
