/* Self-hosted шрифты — перенесены с Google Fonts 13.07 (скорость + приватность + 152-ФЗ) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/manrope-latin-IRggexSg.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-weight: 400;
  font-display: swap;
  src: url('/fonts/manrope-latin-IRggexSg.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-weight: 500;
  font-display: swap;
  src: url('/fonts/manrope-latin-IRggexSg.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-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-latin-IRggexSg.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-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-latin-IRggexSg.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-weight: 300;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-ggOxSuXd.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-weight: 400;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-ggOxSuXd.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-weight: 500;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-ggOxSuXd.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-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-ggOxSuXd.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-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-ggOxSuXd.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-weight: 300;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-ext-ggqxSuXd.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-ext-ggqxSuXd.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-ext-ggqxSuXd.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-ext-ggqxSuXd.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic-ext-ggqxSuXd.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-PXDTzYgA.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: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-PXDTzYgA.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: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-PXDTzYgA.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: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-PXDTzYgA.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: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/playfair-display-cyrillic-DTjYgFE_.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/playfair-display-cyrillic-DTjYgFE_.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-display-cyrillic-DTjYgFE_.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/playfair-display-cyrillic-DTjYgFE_.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ─── Токены ─────────────────────────────────────────────── */
:root {
  /* Цвета */
  --c-dark:       #0F0F0F;
  --c-dark-2:     #1A1A1A;
  --c-dark-3:     #252525;
  --c-light:      #F8F6F0;
  --c-white:      #FFFFFF;
  --c-teal:       #2A8C8C;
  --c-teal-light: #3AACAC;
  --c-gold:       #C4A265;
  --c-gold-light: #D4B87A;
  --c-text:       #1A1A1A;
  --c-muted:      #6B7280;
  --c-border:     rgba(196,162,101,0.2);

  /* Шрифты */
  --f-heading: 'Playfair Display', Georgia, serif;
  --f-body:    'Manrope', -apple-system, sans-serif;

  /* Размеры */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Отступы */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Вертикальный отступ секций — раздельно ПК/мобайл (переопределяется в @media) */
  --section-gap: 4.5rem; /* десктоп */

  /* Скругления */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  /* Переходы */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);

  /* Контейнер */
  --container: 1280px;
  --container-pad: clamp(1rem, 5vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
  color: var(--c-text);
  background: var(--c-light);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Типографика ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-heading);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-xl),  2.5vw, var(--text-3xl)); }
h4 { font-size: clamp(var(--text-lg),  2vw,   var(--text-2xl)); }

/* ─── Контейнер ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─── Кнопки ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--f-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-gold);
  color: var(--c-dark);
}
.btn-primary:hover {
  background: var(--c-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(196,162,101,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.btn-teal {
  background: var(--c-teal);
  color: var(--c-white);
}
.btn-teal:hover {
  background: var(--c-teal-light);
  transform: translateY(-1px);
}

/* ─── Золотая черта (декор) ─────────────────────────────── */
.gold-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--c-gold);
  margin-bottom: var(--space-4);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-3);
}

/* ─── Секции ────────────────────────────────────────────── */
.section { padding-block: var(--section-gap); }
.section-dark { background: var(--c-dark); color: var(--c-white); }
.section-light { background: var(--c-light); }
/* Заголовки H2 на бежевых секциях — фирменный teal (как на главной) */
.section-light h2 { color: var(--c-teal); }

/* ─── Шапка страницы (единый hero с фоновым фото для всех страниц) ─── */
.page-hero {
  position: relative;
  min-height: clamp(460px, 66vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-dark) url('/images/hero.webp') center / cover no-repeat;
  padding-top: calc(72px + clamp(var(--space-12), 6vw, var(--space-20)));
  padding-bottom: clamp(var(--space-12), 6vw, var(--space-20));
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.page-hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--space-8) var(--space-16);
}
/* Хлебные крошки — на всю ширину сверху */
.page-hero > .container > .breadcrumbs { grid-column: 1 / -1; align-self: start; }
.page-hero-content { max-width: 700px; }
@media (max-width: 1024px) {
  .page-hero > .container { grid-template-columns: 1fr; }
}
.page-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--c-white);
  margin-top: var(--space-4);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.5);
}
.page-hero-sub {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 560px;
}

/* ─── Сетка карточек ────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

/* ─── Скроллбар ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-dark-2); }
::-webkit-scrollbar-thumb { background: var(--c-gold); border-radius: 3px; }

/* ─── Утилиты ───────────────────────────────────────────── */
.text-gold   { color: var(--c-gold); }
.text-teal   { color: var(--c-teal); }
.text-muted  { color: var(--c-muted); }
.text-center { text-align: center; }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* Скрыть элемент на мобиле (≤640px) — напр. лишние кнопки в hero */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
  :root { --section-gap: 3.25rem; } /* мобайл: компактнее, чем ПК */
}

/* ─── FAQ-аккордеон на страницах — единый стиль с аккордеоном главной ─── */
/* Покрывает обе разметки: .faq-q/.faq-a (лендинги) и .article-faq summary/.faq-answer (блог) */
.faq-wrap { max-width: 880px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.faq-item:first-of-type { border-top: 1px solid rgba(0, 0, 0, 0.12); }
.faq-q,
.article-faq .faq-item > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-3);
  font-family: var(--f-heading);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--c-dark);
  transition: color var(--transition);
}
.faq-q::-webkit-details-marker,
.article-faq .faq-item > summary::-webkit-details-marker { display: none; }
.faq-q::after,
.article-faq .faq-item > summary::after {
  content: '+';
  font-size: 1.4em;
  line-height: 1;
  color: var(--c-teal);
  flex-shrink: 0;
}
.faq-item[open] .faq-q::after,
.article-faq .faq-item[open] > summary::after { content: '–'; }
.faq-q:hover,
.article-faq .faq-item > summary:hover { color: var(--c-teal); background: rgba(0, 0, 0, 0.025); }
.faq-item[open] { background: rgba(0, 0, 0, 0.015); }
.faq-a,
.faq-answer {
  margin: 0;
  padding: 0 var(--space-3) var(--space-4);
  color: #3a3a3a;
  line-height: 1.7;
}
.faq-answer p { margin: 0 0 var(--space-4); color: #3a3a3a; line-height: 1.7; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ─── Таблицы — единый стиль на всех страницах (как на главной) ─── */
/* Покрывает обе разметки: <table class="seo-table"> и «голый» <table> внутри .table-wrap */
.seo-table-wrap,
.table-wrap {
  margin: var(--space-4) 0 var(--space-6);
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}
.seo-table,
.table-wrap > table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  background: #fff;
}
.seo-table th, .seo-table td,
.table-wrap > table th, .table-wrap > table td {
  padding: 0.9em 1.1em;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.seo-table thead th,
.table-wrap > table thead th {
  background: var(--c-teal);
  color: #fff;
  font-weight: 600;
  font-family: var(--f-heading);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.seo-table tbody td:first-child,
.table-wrap > table tbody td:first-child { font-weight: 700; color: var(--c-dark); }
.seo-table tbody tr:nth-child(even) td,
.table-wrap > table tbody tr:nth-child(even) td { background: rgba(0, 0, 0, 0.022); }
.seo-table tbody tr:hover td,
.table-wrap > table tbody tr:hover td { background: rgba(42, 140, 140, 0.08); }
.seo-table tbody tr:last-child td,
.table-wrap > table tbody tr:last-child td { border-bottom: none; }
@media (max-width: 600px) {
  .seo-table, .table-wrap > table { font-size: 0.85rem; min-width: 460px; }
  .seo-table th, .seo-table td,
  .table-wrap > table th, .table-wrap > table td { padding: 0.6em 0.7em; }
}
