/* ==========================================================================
   Абрикос — базовые стили (общие для всех страниц)
   ========================================================================== */

/* ---------- Шрифты (локальные, без внешних запросов) ---------- */
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/cormorant-garamond-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/cormorant-garamond-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/cormorant-garamond-rub-wght-normal.woff2) format("woff2");
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/cormorant-garamond-cyrillic-wght-italic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/cormorant-garamond-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-rub-wght-normal.woff2) format("woff2");
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Noto Serif Armenian";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/noto-serif-armenian-armenian-500-normal.woff2) format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}
/* Армянская версия (/hy/): весь текст — Noto Serif Armenian (заголовки) и Noto Sans Armenian (текст), лицензия OFL.
   Файлы скачиваются только на армянских страницах: на русских эти шрифты нигде не указаны. */
@font-face {
  font-family: "Abrikos Arm Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  /* у Cormorant очень маленькие строчные — армянские буквы чуть уменьшаем, чтобы заголовки были того же «веса» */
  size-adjust: 86%;
  src: url(../fonts/noto-serif-armenian-armenian-wght-normal.woff2) format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}
@font-face {
  font-family: "Abrikos Arm Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  size-adjust: 96%;
  src: url(../fonts/noto-sans-armenian-armenian-wght-normal.woff2) format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

/* ---------- Токены ---------- */
:root {
  color-scheme: dark;

  --bg: #100805;
  --bg-2: #160c07;
  --surface: #1c110a;
  --surface-2: #24160d;
  --surface-3: #2e1c11;

  --cream: #f6ead8;
  --text: #ece0cd;
  --muted: #b29b82;
  --faint: #9a8570;

  --gold: #d9b26f;
  --gold-2: #f0d49a;
  --gold-3: #a8834a;
  --apricot: #f6a12c;
  --apricot-2: #ffc35c;
  --apricot-3: #e07a12;
  --ember: #e4572e;

  --line: rgba(217, 178, 111, 0.16);
  --line-2: rgba(217, 178, 111, 0.32);

  --grad-apricot: linear-gradient(135deg, #ffd27a 0%, #f6a12c 45%, #e07a12 100%);
  --grad-gold: linear-gradient(120deg, #a8834a 0%, #f0d49a 40%, #d9b26f 60%, #a8834a 100%);

  --font-display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-arm: "Noto Serif Armenian", "Sylfaen", serif;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 32px;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(246, 161, 44, 0.25), 0 18px 50px -12px rgba(246, 161, 44, 0.45);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
/* Армянская версия: армянские буквы — из Noto, латиница, цифры и ₽ — из тех же шрифтов, что и на русской */
html[lang="hy"] {
  --font-display: "Cormorant", "Abrikos Arm Serif", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Abrikos Arm Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-arm: "Noto Serif Armenian", "Abrikos Arm Serif", "Sylfaen", serif;
}
/* у армянского шрифта нет курсива — выделяем цветом, без «искусственного» наклона */
/* армянские слова длиннее (խորհրդանիշը, նախուտեստներ) — на телефоне заголовки чуть мельче, чтобы слово влезало в строку */
html[lang="hy"] .h2 { font-size: clamp(32px, 5.6vw, 68px); }
html[lang="hy"] em,
html[lang="hy"] .display em,
html[lang="hy"] .hero__sub,
html[lang="hy"] .marquee span,
html[lang="hy"] .mhero__sub { font-style: normal; }

/* ---------- Сброс ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--apricot-2);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(246, 161, 44, 0.35); color: var(--cream); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--apricot);
  color: #1a0d05;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Зерно плёнки поверх всего — даёт «дорогую» фактуру */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Раскладка ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.eyebrow--left::before { display: none; }

.arm {
  font-family: var(--font-arm);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.h2 em,
.display em {
  font-style: italic;
  font-weight: 500;
  background: var(--grad-apricot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}

.price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--apricot-2);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  color: #241004;
  background: var(--grad-apricot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 30px -10px rgba(246, 161, 44, 0.7);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 18px 40px -12px rgba(246, 161, 44, 0.85); }
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  color: var(--cream);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- Орнаментальный разделитель ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2));
}
.divider::after { background: linear-gradient(90deg, var(--line-2), transparent); }
.divider svg { width: 34px; height: 34px; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(16, 8, 5, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo { display: block; flex: none; }
.header__logo img { width: 128px; height: auto; filter: drop-shadow(0 4px 18px rgba(246, 161, 44, 0.25)); }

.nav { display: none; }
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 8px 2px;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--gold-2); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__cta { display: none; }

/* Переключатель языка: на русской странице — «ՀԱՅ», на армянской — «РУС» */
.lang-pill {
  flex: none;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-pill[lang="hy"] { font-family: var(--font-arm); font-weight: 600; letter-spacing: 0.04em; font-size: 14px; }
.lang-pill:hover { background: rgba(246, 161, 44, 0.12); color: var(--apricot-2); }
.lang-pill--sm { height: 38px; min-width: 40px; padding: 0 10px; }

.burger {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger span { position: relative; }
.burger span::before,
.burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 30px); }
  .nav a { white-space: nowrap; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
  .header__logo img { width: 140px; }
}
/* Узкий компьютер: разделы, кнопки и переключатель языка вместе не помещаются — кнопку брони оставляем
   на первом экране и в разделе «Контакты», а на армянской (слова длиннее) убираем из шапки обе кнопки:
   «Ճաշացանկ» есть среди разделов. */
@media (min-width: 1080px) and (max-width: 1279px) {
  .header__cta.btn--ghost { display: none; }
  html[lang="hy"] .header__cta { display: none; }
}

/* Мобильное меню на весь экран */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(246, 161, 44, 0.16), transparent 60%),
    rgba(14, 7, 4, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; }
/* auto-отступы центрируют, но при нехватке высоты меню просто прокручивается */
.mobile-nav > :first-child { margin-top: auto; }
.mobile-nav > :last-child { margin-bottom: auto; }
.mobile-nav li a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1.25;
  color: var(--cream);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.mobile-nav li a:hover { color: var(--apricot-2); }
.nav-open .mobile-nav li a { opacity: 1; transform: none; }
.nav-open .mobile-nav li:nth-child(2) a { transition-delay: 0.04s; }
.nav-open .mobile-nav li:nth-child(3) a { transition-delay: 0.08s; }
.nav-open .mobile-nav li:nth-child(4) a { transition-delay: 0.12s; }
.nav-open .mobile-nav li:nth-child(5) a { transition-delay: 0.16s; }
.nav-open .mobile-nav li:nth-child(6) a { transition-delay: 0.2s; }
.mobile-nav__foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1080px) { .mobile-nav { display: none; } }
.nav-open { overflow: hidden; }

/* ---------- Подвал ---------- */
.footer {
  position: relative;
  padding: 72px 0 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, #0b0503 100%);
  color: var(--muted);
  font-size: 14px;
}
.footer__grid {
  display: grid;
  gap: 36px;
}
.footer__logo img { width: 170px; }
.footer__tag { margin-top: 14px; max-width: 32ch; }
.footer h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer li a { display: inline-block; padding: 6px 0; }
.footer a:hover { color: var(--gold-2); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--faint);
}
@media (min-width: 820px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Появление при прокрутке ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Телефоны и планшеты: без эффектов, которые пересчитываются в каждом кадре прокрутки ----------
   Зерно с режимом смешивания поверх всей страницы и размытие подложки (backdrop-filter) у закреплённых панелей
   на недорогих телефонах заметно тормозят прокрутку. Внешне почти незаметно: зерно рисуется обычным слоем,
   панели становятся чуть плотнее. */
@media (pointer: coarse) {
  .grain { mix-blend-mode: normal; opacity: 0.035; }
  .btn--ghost { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16, 8, 5, 0.94); }
}
