/* Лендинг в стиле гайда: цвета и шрифты из talks/2026-10-hungary-guide/style.css. */

@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('fonts/montserrat-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('fonts/montserrat-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('fonts/montserrat-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('fonts/montserrat-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('fonts/montserrat-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+20BD; }
@font-face { font-family: 'Montserrat'; font-weight: 900; font-display: swap; src: url('fonts/montserrat-cyrillic-900-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 900; font-display: swap; src: url('fonts/montserrat-latin-900-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Montserrat'; font-weight: 900; font-display: swap; src: url('fonts/montserrat-latin-ext-900-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+20BD; }
@font-face { font-family: 'Literata'; font-weight: 400; font-display: swap; src: url('fonts/literata-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-weight: 400; font-display: swap; src: url('fonts/literata-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Literata'; font-weight: 400; font-display: swap; src: url('fonts/literata-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+20BD; }
@font-face { font-family: 'Literata'; font-weight: 600; font-display: swap; src: url('fonts/literata-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-weight: 600; font-display: swap; src: url('fonts/literata-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Literata'; font-weight: 600; font-display: swap; src: url('fonts/literata-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+20BD; }
@font-face { font-family: 'Literata'; font-weight: 700; font-display: swap; src: url('fonts/literata-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-weight: 700; font-display: swap; src: url('fonts/literata-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --blue: #BCDDEE;
  --blue-soft: #EAF4F9;
  --sand: #F2E3C5;
  --amber: #E8BC6E;
  --deep: #17506F;
  --deep-ink: #0F3A52;
  --ink: #141414;
  --mute: #5C5C5C;
  --line: #C6D6DF;
  --head: 'Montserrat', 'Arial', sans-serif;
  --body: 'Literata', 'Georgia', serif;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 clamp(17px, 0.5vw + 15px, 19px)/1.55 var(--body);
  font-kerning: normal;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
p, ul, ol, h1, h2, h3, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 700; }
a { color: var(--deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

mark {
  padding: 0 0.2em;
  background: var(--sand);
  color: var(--deep-ink);
  font-weight: 700;
}

h1, h2, h3 { color: var(--deep-ink); font-family: var(--head); text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(32px, 3.7vw, 54px); line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-weight: 800; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.18; }
h3 { font-weight: 800; font-size: 18px; line-height: 1.3; }

.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--deep-ink);
  color: #fff;
}
.skip:focus { top: 8px; }

/* Шапка */
.adline { padding-block: 6px; background: var(--deep-ink); color: #E6EFF4; font: 700 12px/1.4 var(--head); letter-spacing: 0.02em; }
.adline .wrap { display: block; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.topbar__row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.topbar__brand { font: 800 16px/1 var(--head); }
.topbar__nav { display: flex; gap: 24px; margin-left: auto; font: 700 14px/1 var(--head); }
.topbar__nav a { color: var(--deep-ink); text-decoration: none; }
.topbar__nav a:hover { text-decoration: underline; }

.tag {
  display: inline-block;
  padding: 4px 8px;
  background: var(--blue-soft);
  color: var(--deep);
  font: 700 12px/1.2 var(--head);
  letter-spacing: 0.03em;
}
.tag--light { background: #fff; color: var(--deep-ink); }

.btn {
  display: inline-block;
  padding: 16px 26px;
  border: 0;
  background: var(--deep);
  color: #fff;
  font: 800 16px/1.2 var(--head);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--deep-ink); }
.btn--small { padding: 11px 16px; font-size: 14px; white-space: nowrap; }

.link { color: var(--deep-ink); font: 700 16px/1.2 var(--head); }

/* Первый экран */
.hero { background: var(--blue-soft); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
  /* Текст — по сетке страницы, снимок — до правого края окна. */
  padding-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
}
.hero__text { padding-block: clamp(44px, 7vw, 96px); }
.eyebrow { margin-bottom: 18px; color: var(--deep); font: 800 15px/1.3 var(--head); }
.lead { margin-top: 24px; max-width: 34em; font-size: 1.14em; }
.hero__warn {
  margin-top: 24px;
  max-width: 34em;
  padding: 16px 20px;
  border-left: 6px solid var(--amber);
  background: #fff;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero__photo { position: relative; min-height: 100%; }
.hero__photo img { position: absolute; inset: 0; object-position: center 62%; }

/* Разделы */
.section { padding-block: var(--section); }
.section--tint { background: var(--blue-soft); }
.section--deep { background: var(--deep-ink); color: #fff; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .num { color: var(--amber); }

.head { display: flex; flex-direction: column; gap: 10px; }
.head--wide { margin-bottom: clamp(28px, 4vw, 44px); max-width: 860px; }
.num { color: var(--deep); font: 900 clamp(32px, 3.4vw, 44px)/1 var(--head); letter-spacing: -0.01em; }

.two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 5vw, 72px); }

.prose > * + * { margin-top: 14px; }
.source { color: var(--ink); font-size: 15px; line-height: 1.45; }
.note { margin-top: 24px; color: var(--mute); font-size: 0.92em; }
.rule { padding-left: 16px; border-left: 6px solid var(--amber); }
.rule--spaced { margin-top: clamp(24px, 3vw, 36px); }

.panel { padding: clamp(22px, 3vw, 32px); }
.panel--blue { background: var(--blue); }
.panel--sand { background: var(--sand); }
.panel--amber { background: var(--amber); }
.panel h3, .panel__title { margin-bottom: 14px; color: var(--deep-ink); font: 800 18px/1.3 var(--head); }
.panel > p + p { margin-top: 12px; }

.list li { position: relative; padding-left: 20px; }
.list li + li { margin-top: 8px; }
.list li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--deep);
}
.list--wide li + li { margin-top: 12px; }

.basis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }

/* Кому не подходит */
.misfit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.misfit li { padding: 24px; border-top: 6px solid var(--amber); background: rgba(255, 255, 255, 0.08); }
.misfit p { margin-top: 10px; color: #E6EFF4; font-size: 0.95em; }

/* Процесс */
.process { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.steps { counter-reset: step; }
.steps li { position: relative; padding: 12px 0 12px 44px; border-top: 1px solid var(--line); counter-increment: step; }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 8px;
  left: 0;
  color: var(--deep);
  font: 900 24px/1.3 var(--head);
}
.steps li:first-child::before { top: -4px; }

/* Документы */
.docs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 40px); }
.docs h3 { margin-bottom: 12px; }
.docs__photo { max-height: 340px; overflow: hidden; }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(24px, 3vw, 40px); margin-top: clamp(24px, 3vw, 36px); }
.columns--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.columns--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stop { margin-top: 16px; max-width: 46em; }

/* Цена */
.price { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.price__value {
  color: var(--deep-ink);
  font: 900 clamp(32px, 3.4vw, 46px)/1.1 var(--head);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.price__total p + p { margin-top: 8px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 0 12px 10px 0; border-bottom: 2px solid var(--deep); color: var(--deep-ink); font: 700 14px/1.25 var(--head); text-align: left; }
tbody th, td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
tbody th { font: inherit; }
.r { padding-right: 0; text-align: right; }
th.r { white-space: nowrap; }
td.r { color: var(--deep-ink); font: 800 18px/1.3 var(--head); }

/* Гарантии */
.promise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Подвал */
.footer { padding-block: 36px; background: var(--deep-ink); color: #E6EFF4; font-size: 15px; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px 40px; align-items: start; }
.footer p + p { margin-top: 6px; }
.footer .tag { justify-self: start; }

@media (max-width: 1020px) {
  .topbar__nav { display: none; }
  .topbar .btn { margin-left: auto; }
  .misfit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs__photo { grid-column: 1 / -1; max-height: 260px; }
  .columns, .columns--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .topbar__row { gap: 10px; min-height: 58px; }
  .hero__grid, .two, .basis, .process, .promise, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: 0; padding-inline: 0; }
  .hero__text { padding-inline: var(--gutter); }
  .hero__photo { height: 62vw; max-height: 340px; min-height: 0; }
  .misfit, .docs, .columns, .columns--two, .columns--four { grid-template-columns: minmax(0, 1fr); }
  th, td { padding-right: 8px; font-size: 15px; }
  th { font-size: 13px; }
}

@media (max-width: 420px) {
  th.r { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
