/* ===== Fonts ===== */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-500italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-600italic.woff2') format('woff2'); }

@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 300; font-display: swap; src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 700; font-display: swap; src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-700.woff2') format('woff2'); }

@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/xpage/fonts/jetbrains-mono-v24-cyrillic_latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/xpage/fonts/jetbrains-mono-v24-cyrillic_latin-500.woff2') format('woff2'); }

/* ===== Tokens ===== */
:root {
  --bg:        #foebe3;
  --bg-card:   #fdfbf7;
  --bg-deep:   #1a1613;

  --ink:   #1a1613;
  --ink-2: #3a342e;
  --ink-3: #6b6259;
  --ink-4: #9a9187;
  --ink-5: #c7beb2;

  --rule:        #e4ddd1;
  --rule-strong: #d6ccbd;

  --accent-2:   #9a4830;
  --hero-muted: #b8a898; /* мягкое золото в герое */

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --r-md: 10px;
  --t:    0.24s cubic-bezier(.2,.7,.2,1);
}

/* ===== Page wrapper (только для локального превью) ===== */
.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 28px 80px;
}

/* ===== Promo wrap — корень изоляции стилей ===== */
.b_wrap {
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  border-radius: var(--r-md);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.b_wrap *, .b_wrap *::before, .b_wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }
.b_wrap a  { color: inherit; text-decoration: none; }
.b_wrap em { font-style: italic; }

/* ===== Hero ===== */
.b_wrap .b_hero {
  border-radius: var(--r-md);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(to right, rgba(14,9,6,1) 0%, rgba(14,9,6,0.97) 35%, rgba(14,9,6,0.7) 52%, rgba(14,9,6,0.2) 68%, transparent 82%),
    url('image/blue.jpg');
  background-size: cover;
  background-position: center right;
  padding: 72px 56px 64px;
  color: #fff;
  overflow: hidden;
}
.b_wrap .b_hero_inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
}
.b_wrap .b_hero_meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: oklch(0.82 0.09 50);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.b_wrap .b_hero_meta::before { content: ''; width: 28px; height: 1px; background: oklch(0.82 0.09 50); }
.b_wrap .b_hero_meta em { font-style: normal; color: oklch(0.82 0.09 50); }
.b_wrap .b_hero_pct_lbl em { font-style: normal; color: oklch(0.82 0.09 50); }
.b_wrap .b_hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 22px;
}
.b_wrap .b_hero h1 em { font-weight: 400; color: oklch(0.82 0.09 50); }
.b_wrap .b_hero_kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  max-width: 460px;
}
.b_wrap .b_hero_kicker strong { font-weight: 500; font-style: normal; color: oklch(0.82 0.09 50); }
.b_wrap .b_hero_pct_box {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: flex-end;
}
.b_wrap .b_hero_pct_img { width: 260px; height: auto; display: inline-block; }
.b_wrap .b_hero_pct_lbl {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--hero-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ===== Body ===== */
.b_wrap .b_body { padding: 64px 56px 72px; }
.b_wrap .b_body_inner { max-width: 980px; margin: 0 auto; }

/* ===== Cards grid ===== */
.b_wrap .b_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.b_wrap .b_card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 32px 28px;
}
.b_wrap .b_card .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.b_wrap .b_card .eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--ink-5); }
.b_wrap .b_card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.b_wrap .b_card h3 em    { color: var(--accent-2); font-weight: 400; }
.b_wrap .b_card p        { font-size: 17px; color: var(--ink-3); line-height: 1.6; }
.b_wrap .b_card p strong { color: var(--ink); font-weight: 600; }

/* Conditions card */
.b_wrap .b_card_cond ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.b_wrap .b_card_cond li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink);
  line-height: 1.3;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
}
.b_wrap .b_card_cond li:last-child { border-bottom: none; padding-bottom: 0; }
.b_wrap .b_card_cond li .idx {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  text-transform: uppercase;
  padding-top: 2px;
}
.b_wrap .b_card_cond li em     { color: var(--accent-2); }
.b_wrap .b_card_cond li strong { font-style: normal; font-weight: 600; color: var(--accent-2); }

/* ===== Exceptions ===== */
.b_wrap .b_exceptions {
  margin-bottom: 56px;
  padding: 24px 28px;
  background: #f5e0d4;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.b_wrap .b_exceptions_head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
}
.b_wrap .b_exceptions_head .lbl {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.b_wrap .b_exceptions_head .lbl::before { content: ''; width: 18px; height: 1px; background: var(--ink-5); }
.b_wrap .b_exceptions_head .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 23px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.b_wrap .b_exceptions_list { display: flex; flex-wrap: wrap; gap: 10px; }
.b_wrap .b_exc_chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
}
.b_wrap .b_exc_chip::before {
  content: '—';
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
}

/* ===== CTA ===== */
.b_wrap .b_cta {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.b_wrap .b_cta_btns {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.b_wrap .b_btn,
.b_wrap .b_btn_outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.b_wrap .b_btn {
  background: var(--ink);
  color: #fff !important;
  border: 1px solid transparent;
}
.b_wrap .b_btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.b_wrap .b_btn_outline {
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--rule-strong);
}
.b_wrap .b_btn_outline:hover { border-color: var(--ink); transform: translateY(-1px); }
.b_wrap .b_btn .arr,
.b_wrap .b_btn_outline .arr { font-size: 14px; line-height: 1; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .b_wrap .b_hero_inner   { grid-template-columns: 1fr; gap: 32px; }
  .b_wrap .b_hero_pct_box { text-align: left; }
  .b_wrap .b_grid         { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 820px) {
  .page                 { padding: 0; }
  .b_wrap .b_hero       { padding: 56px 24px 48px; }
  .b_wrap .b_body       { padding: 48px 0 56px; }
  .b_wrap .b_grid       { gap: 22px; margin-bottom: 40px; padding: 0 24px; }
  .b_wrap .b_card       { padding: 26px 22px; }
  .b_wrap .b_exceptions { padding: 22px 24px; }
  .b_wrap .b_cta        { padding: 28px 24px 0; }
  .b_wrap .b_cta_btns   { flex-direction: column; align-items: stretch; }
  .b_wrap .b_btn,
  .b_wrap .b_btn_outline { justify-content: center; }
}

@media (max-width: 480px) {
  .b_wrap .b_hero h1 { font-size: 34px; }
}
