/* ==========================================================================
   Base: reset, типографика, контейнеры, «плиточные» блоки
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-width: 320px; overflow-x: hidden;
  font-family: var(--font-body); font-size: var(--fs-16); line-height: var(--lh-body); font-weight: 500;
  color: var(--c-ink); background: var(--c-paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--c-blue-600); text-decoration-thickness: 1.5px; text-underline-offset: .18em; transition: color var(--t-fast); }
a:hover { color: var(--c-blue-700); }
:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-xs); }
::selection { background: var(--c-blue-100); color: var(--c-ink); }
p, li, dd, td, th { overflow-wrap: anywhere; hyphens: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-8) 0; }

/* --- Заголовки: Unbounded, крупно, как у rb.ru, но крупнее --- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  margin: 0 0 .5em; font-family: var(--font-display); font-weight: 700; line-height: var(--lh-head);
  letter-spacing: -.02em; color: var(--c-ink); text-wrap: balance; overflow-wrap: break-word; hyphens: manual;
}
@media (max-width: 480px) { h1, h2, h3, .h1, .h2, .h3 { hyphens: auto; overflow-wrap: anywhere; } }
h1, .h1 { font-size: var(--fs-56); line-height: var(--lh-tight); letter-spacing: -.035em; }
h2, .h2 { font-size: var(--fs-40); letter-spacing: -.03em; }
h3, .h3 { font-size: var(--fs-24); }
h4, .h4 { font-size: var(--fs-20); letter-spacing: -.01em; }
.lead { font-size: var(--fs-20); line-height: 1.5; color: var(--c-ink-2); font-weight: 500; max-width: 60ch; }
.small { font-size: var(--fs-14); color: var(--c-ink-3); }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.kicker {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: var(--sp-4); max-width: 100%; white-space: normal; overflow-wrap: anywhere;
  font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-blue-700);
}
.kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* --- Контейнеры --- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.stack > * + * { margin-top: var(--stack, var(--sp-4)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: var(--z-modal); padding: 12px 18px; background: var(--c-ink); color: #fff; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ==========================================================================
   «Плитки» — каждый информационный блок выделен как у Яндекс Директа:
   своя подложка, крупное скругление, зазор между плитками
   ========================================================================== */
.tiles { display: flex; flex-direction: column; gap: var(--section-gap); padding: var(--section-gap); }
.block {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-block); padding: var(--block-pad) 0;
  background: var(--c-white);
}
.block > .container { position: relative; z-index: 1; }
.block--white { background: var(--c-white); }
.block--mist  { background: var(--c-mist); }
.block--blue  { background: var(--c-blue-50); }
.block--green { background: var(--c-green-50); }
.block--cream { background: var(--c-retro-cream); }
.block--ink   { background: var(--c-blue-900); color: #fff; }
.block--ink h2, .block--ink h3, .block--ink .h2 { color: #fff; }
.block--ink .lead, .block--ink p { color: #D6E6F8; }
.block--ink .kicker { color: var(--c-retro-mint); }
.block--ink a { color: #9FD0FF; }

.block__head > * { min-width: 0; }
.block__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); margin-bottom: clamp(28px, 4vw, 56px); max-width: 980px; }
.block__head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: var(--sp-8); }
.block__head h2 { margin: 0; }
.block__head .lead { margin: 0; }
@media (max-width: 900px) { .block__head--split { grid-template-columns: 1fr; } }

/* Вложенная карточка внутри плитки */
.card > * { min-width: 0; }
.card {
  position: relative; min-width: 0;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 32px); box-shadow: var(--sh-1);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-fast);
}
.card--flat { box-shadow: none; }
.card--tint { background: rgba(255,255,255,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--c-blue-200); }
.card h3 { font-size: var(--fs-20); margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }

/* Сетки */
.grid { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* Иконки из спрайта (обводка задаётся здесь, чтобы работали градиенты) */
.i { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.22em;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
/* Градиентные варианты: синий → тёмно-синий, «топливо» синий → бирюза → зелёный, зелёный, ретро */
.i--grad  { stroke: url(#ig-fuel); }
.i--blue  { stroke: url(#ig-blue); }
.i--green { stroke: url(#ig-green); }
.i--retro { stroke: url(#ig-retro); }
.i--thick { stroke-width: 2.1; }
.i--lg { width: 28px; height: 28px; }
.i--xl { width: 40px; height: 40px; }
.ico-badge {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; flex: none;
  background: var(--c-blue-50); color: var(--c-blue-700);
}
.ico-badge--green { background: var(--c-green-50); color: var(--c-green-700); }
.ico-badge--cream { background: var(--c-retro-cream); color: var(--c-retro-cherry); }
.ico-badge .i { width: 28px; height: 28px; }
