/* ============================================================================
   Дата-центр Красные ворота — site.css
   Built on Drill Kit Design System tokens (colors_and_type.css).
   Marketing-site layer: centered container, sections, header/footer, buttons,
   blocks, forms, pricing, tabs, FAQ, modal, hero variants.
   Stays faithful to DS: OKLCH tokens, flat surfaces, 1px borders, tight radii,
   no gradients/textures, filled icons, IBM Plex Sans/Mono, first-class dark.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: 2px; }

/* ---- ACCENT PRESETS (Tweak) — remap brand interactive vars only ---------- */
[data-accent="teal"]   { /* default — DS brand */ }
[data-accent="azure"] {
  --bg-brand: var(--color-info-600); --bg-brand-hover: var(--color-info-700); --bg-brand-press: var(--color-info-800);
  --bg-brand-tint: var(--color-info-50); --text-brand: var(--color-info-700);
  --border-brand: var(--color-info-500); --border-focus: var(--color-info-500);
}
[data-accent="emerald"] {
  --bg-brand: var(--color-success-600); --bg-brand-hover: var(--color-success-700); --bg-brand-press: var(--color-success-800);
  --bg-brand-tint: var(--color-success-50); --text-brand: var(--color-success-700);
  --border-brand: var(--color-success-500); --border-focus: var(--color-success-500);
}
[data-accent="indigo"] {
  --bg-brand: oklch(0.520 0.170 275); --bg-brand-hover: oklch(0.450 0.165 275); --bg-brand-press: oklch(0.380 0.150 275);
  --bg-brand-tint: oklch(0.965 0.020 275); --text-brand: oklch(0.470 0.165 275);
  --border-brand: oklch(0.600 0.170 275); --border-focus: oklch(0.600 0.170 275);
}
.dark[data-accent="azure"]   { --text-brand: var(--color-info-300); --bg-brand: var(--color-info-500); --bg-brand-hover: var(--color-info-400); --border-brand: var(--color-info-400); --border-focus: var(--color-info-400); --bg-brand-tint: oklch(from var(--color-info-500) l c h / 0.14); }
.dark[data-accent="emerald"] { --text-brand: var(--color-success-300); --bg-brand: var(--color-success-500); --bg-brand-hover: var(--color-success-400); --border-brand: var(--color-success-400); --border-focus: var(--color-success-400); --bg-brand-tint: oklch(from var(--color-success-500) l c h / 0.14); }
.dark[data-accent="indigo"]  { --text-brand: oklch(0.78 0.13 275); --bg-brand: oklch(0.62 0.17 275); --bg-brand-hover: oklch(0.70 0.16 275); --border-brand: oklch(0.66 0.17 275); --border-focus: oklch(0.66 0.17 275); --bg-brand-tint: oklch(0.62 0.17 275 / 0.16); }

/* ---- THEME TRANSITION (smooth tweak switching) --------------------------- */
html.theme-anim, html.theme-anim * { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }

/* ---- BASE TYPE ----------------------------------------------------------- */
body {
  background: var(--bg-app); color: var(--text-primary);
  font-family: var(--font-sans); font-size: var(--fs-lg); line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "lnum" 1; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text-brand);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.center::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.center { justify-content: center; }

/* ---- ICONS --------------------------------------------------------------- */
.ic { width: 24px; height: 24px; flex: 0 0 auto; fill: currentColor; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 28px; height: 28px; }

/* ---- LAYOUT -------------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section.tight { padding-block: 56px; }
.section--alt { background: var(--bg-container); border-block: 1px solid var(--border-default); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-5xl); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 0; }
.section-head p { color: var(--text-secondary); font-size: var(--fs-xl); margin: 14px 0 0; }
@media (max-width: 720px){ .section { padding-block: 60px; } .section-head h2 { font-size: 30px; } .section-head p { font-size: var(--fs-lg); } }

/* ---- BUTTONS (DS: radius 6px, bg steps on hover/press, no opacity) ------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: 600; line-height: 1;
  padding: 13px 20px; border-radius: var(--radius-button-md); border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s; white-space: nowrap;
}
.btn .ic, .btn .ic-sm { width: 18px; height: 18px; }
.btn-primary { background: var(--bg-brand); color: var(--text-on-brand); white-space: nowrap; }
.btn-primary:hover { background: var(--bg-brand-hover); }
.btn-primary:active { background: var(--bg-brand-press); }
.btn-secondary { background: var(--bg-container); color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-neutral); border-color: var(--text-tertiary); }
.btn-secondary:active { background: var(--bg-neutral-press); }
.btn-ghost { background: transparent; color: var(--text-brand); border-color: var(--border-brand); }
.btn-ghost:hover { background: var(--bg-brand-tint); }
.btn-tint { background: var(--bg-brand-tint); color: var(--text-brand); }
.btn-tint:hover { background: var(--bg-brand-tint); border-color: var(--border-brand); }
.btn-lg { padding: 16px 26px; font-size: var(--fs-xl); }
.btn-sm { padding: 9px 14px; font-size: var(--fs-md); }
.btn-block { width: 100%; }

/* link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 7px; color: var(--text-brand); font-weight: 600; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---- BLOCK / CARD (DS Block: 1px border, 8px radius, flat, no shadow) ---- */
.block { background: var(--bg-container); border: 1px solid var(--border-default); border-radius: var(--radius-card); }
.block-pad { padding: var(--spacing-margin); }
.card-hover { transition: border-color .2s, background-color .2s; }
.card-hover:hover { border-color: var(--border-strong); }

/* status pill / badge (pill radius) */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600;
  padding: 4px 11px; border-radius: var(--radius-pill); border: 1px solid var(--border-default);
  background: var(--bg-container); color: var(--text-secondary); white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary); }
.badge--brand { background: var(--bg-brand-tint); color: var(--text-brand); border-color: transparent; }
.badge--brand .dot { background: currentColor; }
.badge--ok { background: var(--bg-success-tint); color: var(--text-success); border-color: transparent; }
.badge--ok .dot { background: currentColor; }
.dot-live { position: relative; }
.dot-live::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid currentColor; opacity:.4; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0%{transform:scale(.6);opacity:.6} 100%{transform:scale(1.6);opacity:0} }
@media (prefers-reduced-motion: reduce){ .dot-live::after{ animation:none; } }

/* mono tag */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-secondary); background: var(--bg-neutral); border: 1px solid var(--border-default); border-radius: var(--radius-button-sm); padding: 4px 9px; }

/* ============================================================================
   HEADER
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in oklch, var(--bg-app) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-default); transition: background-color .2s, box-shadow .2s; }
.site-header.scrolled { background: var(--bg-app); box-shadow: var(--shadow-popover); }
.header-row { display: flex; align-items: center; gap: 28px; height: 92px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { width: 38px; height: 38px; color: var(--text-brand); }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-size: var(--fs-lg); font-weight: 700; letter-spacing: .01em; }
.brand-name span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-tertiary); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a { padding: 9px 13px; border-radius: var(--radius-button-sm); font-size: var(--fs-lg); color: var(--text-secondary); transition: background-color .2s, color .2s; white-space: nowrap; }
.main-nav a:hover { background: var(--bg-neutral); color: var(--text-primary); }
.main-nav a.active { color: var(--text-primary); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-lg); color: var(--text-primary); padding: 9px 14px; border-radius: var(--radius-button-md); border: 1px solid var(--border-default); transition: border-color .2s, background-color .2s; white-space: nowrap; }
.header-phone:hover { border-color: var(--border-brand); color: var(--text-brand); }
.header-phone .ic { color: var(--text-brand); width: 18px; height: 18px; }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-button-md); border: 1px solid var(--border-default); background: var(--bg-container); }

@media (max-width: 980px){
  .main-nav, .header-phone { display: none; }
  .burger { display: inline-flex; }
}

/* mobile drawer */
.m-drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.m-drawer.open { display: block; }
.m-drawer .scrim { position: absolute; inset: 0; background: var(--bg-overlay); }
.m-drawer .panel { position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 340px); background: var(--bg-elevated); box-shadow: var(--shadow-drawer-r); padding: 20px; display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform .2s cubic-bezier(0,.55,.45,1); }
.m-drawer.open .panel { transform: translateX(0); }
.m-drawer .panel a { padding: 13px 12px; border-radius: var(--radius-button-md); font-size: var(--fs-2xl); color: var(--text-primary); border-bottom: 1px solid var(--border-default); }
.m-drawer .panel a:hover { background: var(--bg-neutral); }
.m-drawer .drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ---- MOBILE TAB BAR ------------------------------------------------------ */
.tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--bg-elevated); border-top: 1px solid var(--border-default); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); grid-template-columns: repeat(4,1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; font-size: var(--fs-xs); color: var(--text-tertiary); border-radius: var(--radius-button-sm); }
.tabbar a .ic { width: 22px; height: 22px; }
.tabbar a.active { color: var(--text-brand); }
@media (max-width: 980px){ .tabbar { display: grid; } body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); } }

/* ============================================================================
   FOOTER (always dark — DS dark surfaces)
   ========================================================================== */
.site-footer { background: var(--color-neutral-950); color: var(--color-neutral-300); border-top: 1px solid var(--color-neutral-800); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-block: 56px; }
.footer-brand .logo { width: 40px; height: 40px; color: var(--color-brand-400); }
.footer-brand .brand-name b { color: #fff; }
.footer-brand p { color: var(--color-neutral-400); font-size: var(--fs-md); max-width: 240px; margin: 16px 0 0; }
.footer-col h4 { color: #fff; font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); font-weight: 500; margin: 0 0 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { color: var(--color-neutral-400); font-size: var(--fs-md); }
.footer-col a:hover { color: var(--color-brand-300); }
.footer-contacts a { display: flex; gap: 9px; align-items: flex-start; }
.footer-contacts .ic { width: 18px; height: 18px; color: var(--color-brand-400); margin-top: 2px; }
.footer-bottom { border-top: 1px solid var(--color-neutral-800); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: var(--fs-sm); color: var(--color-neutral-500); }
.footer-bottom a { color: var(--color-neutral-400); }
.footer-bottom a:hover { color: var(--color-brand-300); }
.footer-bottom .links { display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   MODALS
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .scrim { position: absolute; inset: 0; background: var(--bg-overlay); backdrop-filter: blur(2px); }
.modal .dialog { position: relative; width: 100%; max-width: 460px; background: var(--bg-elevated); border-radius: var(--radius-card); box-shadow: var(--shadow-modal); padding: 28px; max-height: 90vh; overflow: auto; animation: modalIn .2s cubic-bezier(0,.55,.45,1); }
@keyframes modalIn { from { transform: translateY(8px); opacity: 0; } }
.modal .dialog h3 { font-size: var(--fs-3xl); margin: 0 0 4px; letter-spacing: -.01em; }
.modal .dialog .sub { color: var(--text-secondary); font-size: var(--fs-md); margin: 0 0 20px; }
.modal .x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-button-md); color: var(--text-tertiary); background: transparent; border: 1px solid transparent; }
.modal .x:hover { background: var(--bg-neutral); color: var(--text-primary); }

/* ---- FORMS (DS: input radius 2px, border-color focus, no ring) ----------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.field .req { color: var(--text-error); }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-sans); font-size: var(--fs-lg); color: var(--text-primary);
  background: var(--bg-container); border: 1px solid var(--border-default); border-radius: var(--radius-input);
  padding: 11px 12px; transition: border-color .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-placeholder); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--input-focus-color); }
.select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.textarea { resize: vertical; min-height: 96px; }
.field.err .input, .field.err .select, .field.err .textarea { border-color: var(--border-error); }
.field .msg { font-size: var(--fs-sm); color: var(--text-error); display: none; }
.field.err .msg { display: block; }
/* Чекбокс согласия на обработку ПДн */
.field label.consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 400; font-family: var(--font-sans);
  text-transform: none; letter-spacing: 0; color: var(--text-secondary); line-height: 1.45; }
.field label.consent input[type=checkbox] { width: 17px; height: 17px; flex: 0 0 auto; margin: 2px 0 0;
  accent-color: var(--text-brand); cursor: pointer; }
.field label.consent a { color: var(--text-brand); text-decoration: underline; text-underline-offset: 2px; }
.field.err label.consent { color: var(--text-error); }
.field.err label.consent input[type=checkbox] { outline: 2px solid var(--border-error); outline-offset: 1px; border-radius: 2px; }
.form-ok { display: none; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 18px 0; }
.form-ok .ic { width: 52px; height: 52px; color: var(--text-success); }
.form-ok h4 { font-size: var(--fs-2xl); margin: 0; }
.form-ok p { color: var(--text-secondary); margin: 0; }
form.sent .form-body { display: none; }
form.sent .form-ok { display: flex; animation: okIn .4s cubic-bezier(.2,.7,.3,1) both; }
form.sent .form-ok .ic { animation: okPop .55s cubic-bezier(.2,1.5,.4,1) .05s both; }
@keyframes okIn  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes okPop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* Toast-уведомления */
.dc-toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 10px; width: min(92vw, 410px); pointer-events: none; }
.dc-toast { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; cursor: pointer;
  border-radius: var(--radius-card); background: var(--bg-elevated); border: 1px solid var(--border-default);
  box-shadow: var(--shadow-toast); color: var(--text-primary); font-size: var(--fs-md); line-height: 1.4;
  pointer-events: auto; animation: toastIn .32s cubic-bezier(.2,.7,.3,1); }
.dc-toast.hide { animation: toastOut .24s ease forwards; }
.dc-toast .ic { width: 21px; height: 21px; flex: 0 0 auto; margin-top: 1px; }
.dc-toast--success .ic { color: var(--text-success); }
.dc-toast--error { border-color: var(--border-error); }
.dc-toast--error .ic { color: var(--text-error); }
@keyframes toastIn  { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(18px); } }

/* Cookie-баннер */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--bg-elevated); border-top: 1px solid var(--border-default);
  box-shadow: 0 -8px 30px -16px oklch(0 0 0 / .3); animation: cookieIn .35s cubic-bezier(.2,.7,.3,1); }
.cookie-bar[hidden] { display: none; }
.cookie-bar.hide { animation: cookieOut .28s ease forwards; }
.cookie-inner { display: flex; align-items: center; gap: 18px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; flex: 1 1 380px; min-width: 260px; color: var(--text-secondary); font-size: var(--fs-md); line-height: 1.5; }
.cookie-inner a { color: var(--text-brand); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-actions .btn { white-space: nowrap; }
@keyframes cookieIn  { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes cookieOut { to { opacity: 0; transform: translateY(100%); } }
@media (max-width: 980px){ .cookie-bar { bottom: calc(78px + env(safe-area-inset-bottom)); } }
@media (max-width: 620px){ .cookie-actions { flex: 1 1 100%; } .cookie-actions .btn { flex: 1; } }
@media (prefers-reduced-motion: reduce){
  form.sent .form-ok, form.sent .form-ok .ic, .dc-toast { animation: none; }
}

/* ============================================================================
   HERO (3 variants via [data-hero])
   ========================================================================== */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-default); }
.hero .container { padding-block: 76px 84px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 18px 0 0; font-weight: 700; }
.hero h1 .hl { color: var(--text-brand); }
.hero .lead { color: var(--text-secondary); font-size: var(--fs-2xl); line-height: 1.5; max-width: 520px; margin: 22px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* instrument readout strip */
.readouts { display: grid; gap: 1px; background: var(--border-default); border: 1px solid var(--border-default); border-radius: var(--radius-card); overflow: hidden; }
.readout-cell { background: var(--bg-container); padding: 18px 20px; }
.readout-cell .rk { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-tertiary); display: flex; align-items: center; gap: 7px; }
.readout-cell .rk .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-success); color: var(--text-success); }
.readout-cell .rv { font-family: var(--font-mono); font-feature-settings: "tnum" 1; font-size: 34px; font-weight: 600; letter-spacing: -.01em; margin-top: 8px; line-height: 1; }
.readout-cell .rv small { font-size: var(--fs-lg); color: var(--text-tertiary); font-weight: 500; }

/* media frame (image-slot wrapper, styled like a monitor) */
.media-frame { position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius-card); background: var(--bg-neutral); overflow: hidden; }
/* Слот-изображения заполняют рамку и кадрируются по центру — одинаковая высота у всех карточек */
.media-frame .slot-img, .svc-media .slot-img, .post-media .slot-img,
.article-media .slot-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.slot-empty { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: var(--text-tertiary); background: var(--bg-neutral); }
.slot-empty .ic { width: 30px; height: 30px; opacity: .7; }
.slot-empty span { font-size: var(--fs-sm); }
.media-caption { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 7px; flex-wrap: wrap; z-index: 2; }
.media-caption .badge { background: color-mix(in oklch, var(--color-neutral-950) 62%, transparent); color: #fff; border-color: transparent; backdrop-filter: blur(4px); }
.media-caption .badge .ic { width: 14px; height: 14px; color: var(--color-brand-300); }
.frame-tl { position: absolute; top: 10px; left: 12px; z-index: 2; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: color-mix(in oklch, var(--color-neutral-950) 55%, transparent); padding: 3px 8px; border-radius: var(--radius-button-sm); backdrop-filter: blur(4px); }

/* Variant 1: split (default) */
.hero[data-hero="1"] .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero[data-hero="1"] .readouts { grid-template-columns: repeat(2,1fr); margin-top: 38px; max-width: 480px; }
.hero[data-hero="1"] .media-frame { aspect-ratio: 4/3.4; }

/* Variant 2: centered + full instrument strip */
.hero[data-hero="2"] .hero-grid { display: block; text-align: center; }
.hero[data-hero="2"] .eyebrow { justify-content: center; }
.hero[data-hero="2"] h1 { margin-inline: auto; max-width: 16ch; }
.hero[data-hero="2"] .lead { margin-inline: auto; text-align: center; max-width: 640px; }
.hero[data-hero="2"] .hero-cta { justify-content: center; }
.hero[data-hero="2"] .readouts { grid-template-columns: repeat(4,1fr); margin-top: 48px; }
.hero[data-hero="2"] .media-frame { margin-top: 36px; aspect-ratio: 21/7; }
.hero[data-hero="2"] .readout-cell { text-align: left; }

/* Variant 3: editorial — big type left, vertical readout rail right, media band full width */
.hero[data-hero="3"] .hero-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 48px; align-items: end; }
.hero[data-hero="3"] h1 { font-size: clamp(44px, 6.6vw, 82px); }
.hero[data-hero="3"] .readouts { grid-template-columns: 1fr; margin-top: 0; }
.hero[data-hero="3"] .media-frame { margin-top: 44px; aspect-ratio: 24/7; }

@media (max-width: 900px){
  .hero[data-hero="1"] .hero-grid, .hero[data-hero="3"] .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero[data-hero="1"] .media-frame, .hero[data-hero="3"] .media-frame { aspect-ratio: 16/10; }
  .hero[data-hero="2"] .readouts { grid-template-columns: repeat(2,1fr); }
  .hero[data-hero="3"] .readouts { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 560px){
  .hero[data-hero="1"] .readouts, .hero[data-hero="3"] .readouts { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================================
   SERVICE CARDS
   ========================================================================== */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 900px){ .cards-3 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.svc-card { display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, border-color .28s ease; }
.svc-card .svc-media { aspect-ratio: 16/10; background: var(--bg-neutral); border-bottom: 1px solid var(--border-default); position: relative; overflow: hidden; }
.svc-card .svc-media .slot-img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.svc-card:hover { transform: translateY(-6px); border-color: var(--border-strong);
  box-shadow: 0 22px 44px -20px oklch(0 0 0 / .38); }
.svc-card:hover .svc-media .slot-img { transform: scale(1.06); }
.svc-card .svc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.svc-card .svc-ic { width: 44px; height: 44px; border-radius: var(--radius-button-md); background: var(--bg-brand-tint); color: var(--text-brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.svc-card h3 { font-size: var(--fs-2xl); margin: 0 0 8px; letter-spacing: -.01em; }
.svc-card .svc-desc { color: var(--text-secondary); font-size: var(--fs-md); margin: 0 0 16px; flex: 0 0 auto; }
.svc-feats { display: flex; flex-direction: column; gap: 9px; margin: 0 0 18px; }
.svc-feats li { display: flex; align-items: center; gap: 9px; font-size: var(--fs-md); color: var(--text-secondary); }
.svc-feats .ic { width: 17px; height: 17px; color: var(--text-success); }
.svc-price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-default); display: flex; align-items: baseline; gap: 8px; }
.svc-price .p { font-family: var(--font-mono); font-feature-settings: "tnum" 1; font-size: var(--fs-3xl); font-weight: 600; }
.svc-price .per { color: var(--text-tertiary); font-size: var(--fs-md); font-family: var(--font-mono); }
.svc-actions { display: flex; gap: 10px; margin-top: 16px; }
.svc-actions .btn { flex: 1; }
.svc-pop { position: absolute; top: 14px; right: 14px; z-index: 3; }

/* feature grid (about / what's included) */
.feat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (max-width: 640px){ .feat-grid { grid-template-columns: 1fr; } }
.feat { display: flex; gap: 14px; padding: 20px; }
.feat .feat-ic { width: 46px; height: 46px; flex: 0 0 auto; border-radius: var(--radius-button-md); background: var(--bg-brand-tint); color: var(--text-brand); display: inline-flex; align-items: center; justify-content: center; }
.feat h4 { font-size: var(--fs-xl); margin: 2px 0 6px; }
.feat p { color: var(--text-secondary); font-size: var(--fs-md); margin: 0; }

/* check list (simple) */
.checklist { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (max-width: 560px){ .checklist { grid-template-columns: 1fr; } }
.checklist li { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border: 1px solid var(--border-default); border-radius: var(--radius-button-md); background: var(--bg-container); font-size: var(--fs-lg); }
.checklist .ic { width: 19px; height: 19px; color: var(--text-success); flex: 0 0 auto; }

/* ============================================================================
   PRICING TABLE
   ========================================================================== */
.price-table { width: 100%; border-collapse: collapse; background: var(--bg-container); border: 1px solid var(--border-default); border-radius: var(--radius-card); overflow: hidden; }
.price-table caption { caption-side: top; text-align: left; }
.ptable-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: var(--bg-neutral); border-bottom: 1px solid var(--border-default); }
.ptable-head .ic { color: var(--text-brand); }
.ptable-head h3 { font-size: var(--fs-2xl); margin: 0; }
.ptable-head p { color: var(--text-tertiary); font-size: var(--fs-md); margin: 2px 0 0; }
.price-table th, .price-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--border-default); vertical-align: top; }
.price-table thead th { font-family: var(--font-mono); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); font-weight: 500; padding-block: 12px; background: var(--bg-app); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr { transition: background-color .15s; }
.price-table tbody tr:hover { background: var(--bg-neutral); }
.price-table .svc-name { font-weight: 600; font-size: var(--fs-lg); }
.price-table .svc-det { color: var(--text-tertiary); font-size: var(--fs-md); margin-top: 3px; font-family: var(--font-mono); }
.price-table .price-col { text-align: right; white-space: nowrap; }
.price-table .price-val { font-family: var(--font-mono); font-feature-settings: "tnum" 1; font-weight: 600; font-size: var(--fs-xl); }
.price-table .price-free { color: var(--text-success); }
@media (max-width: 640px){
  .price-table th:nth-child(1) { width: auto; }
  .price-table th, .price-table td { padding: 13px 16px; }
  .price-table .price-val { font-size: var(--fs-lg); }
}

/* ============================================================================
   TABS (infrastructure)
   ========================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); background: var(--bg-container); color: var(--text-secondary); font-size: var(--fs-md); font-weight: 500; transition: all .2s; }
.tab .ic { width: 18px; height: 18px; }
.tab:hover { border-color: var(--border-strong); color: var(--text-primary); }
.tab.active { background: var(--bg-brand); color: var(--text-on-brand); border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }

/* ============================================================================
   FAQ
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--bg-container); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; text-align: left; font-size: var(--fs-xl); font-weight: 600; background: transparent; transition: background-color .2s; }
.faq-q:hover { background: var(--bg-neutral); }
.faq-q .ic { color: var(--text-brand); transition: transform .2s; flex: 0 0 auto; }
.faq-item.open .faq-q .toggle-plus { display: none; }
.faq-item:not(.open) .faq-q .toggle-minus { display: none; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 420px; border-top: 1px solid var(--border-default); }
.faq-item.open .faq-q { padding-bottom: 14px; }
.faq-a p { color: var(--text-secondary); font-size: var(--fs-lg); margin: 0; padding: 16px 22px 22px; }

/* ============================================================================
   CONTACTS
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .contact-cards { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 13px; padding: 18px; align-items: flex-start; }
.contact-card .ic { width: 40px; height: 40px; padding: 9px; border-radius: var(--radius-button-md); background: var(--bg-brand-tint); color: var(--text-brand); box-sizing: border-box; }
.contact-card .ck { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); }
.contact-card .cv { font-size: var(--fs-lg); font-weight: 600; margin-top: 3px; }
.contact-card a.cv:hover { color: var(--text-brand); }
.map-frame { margin-top: 14px; border: 1px solid var(--border-default); border-radius: var(--radius-card); overflow: hidden; height: 240px; background: var(--bg-neutral); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2); }

/* ============================================================================
   BREADCRUMBS / misc
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-md); color: var(--text-tertiary); margin-bottom: 18px; }
.crumbs a, .crumbs .cur { white-space: nowrap; }
.crumbs a:hover { color: var(--text-brand); }
.crumbs .sep { color: var(--border-strong); }
.crumbs .cur { color: var(--text-secondary); }

.cta-band { background: var(--bg-container); border: 1px solid var(--border-default); border-radius: var(--radius-card); padding: 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: var(--fs-5xl); margin: 0 0 12px; letter-spacing: -.02em; }
.cta-band p { color: var(--text-secondary); font-size: var(--fs-xl); max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-meta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; color: var(--text-tertiary); font-size: var(--fs-md); }
.cta-meta span { display: inline-flex; align-items: center; gap: 7px; }
.cta-meta .ic { width: 17px; height: 17px; color: var(--text-brand); }

/* sticky price sidebar (service detail) */
.detail-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 36px; align-items: stretch; }
.svc-detail-media { aspect-ratio: 16/9; margin: 0 0 32px; }
@media (max-width: 900px){ .detail-grid { grid-template-columns: 1fr; } }
.price-side { position: sticky; top: 108px; }
.price-side .amount { font-family: var(--font-mono); font-feature-settings:"tnum" 1; font-size: 40px; font-weight: 600; letter-spacing: -.01em; }
.price-side .per { color: var(--text-tertiary); font-family: var(--font-mono); }

/* blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px){ .blog-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; position: relative;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, border-color .28s ease; }
/* вся карточка кликабельна — растягиваем ссылку «Читать далее» на весь блок */
.post-card .link-arrow::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card:hover .link-arrow .ic { transform: translateX(4px); }
.post-card .post-media { aspect-ratio: 16/10; background: var(--bg-neutral); border-bottom: 1px solid var(--border-default); position: relative; overflow: hidden; }
.post-card .post-media .slot-img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.post-card:hover { transform: translateY(-6px); border-color: var(--border-strong);
  box-shadow: 0 22px 44px -20px oklch(0 0 0 / .38); }
@media (prefers-reduced-motion: reduce){
  .svc-card, .post-card, .svc-card .slot-img, .post-card .slot-img { transition: none; }
  .svc-card:hover, .post-card:hover { transform: none; }
  .svc-card:hover .slot-img, .post-card:hover .slot-img { transform: none; }
}
.post-card:hover .post-media .slot-img { transform: scale(1.06); }
.post-card .post-cat { position: absolute; top: 12px; left: 12px; z-index: 2; }
.post-card .post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .post-date { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-tertiary); }
.post-card h3 { font-size: var(--fs-xl); line-height: 1.25; margin: 9px 0 10px; letter-spacing: -.01em; }
.post-card .post-ex { color: var(--text-secondary); font-size: var(--fs-md); margin: 0 0 16px; flex: 1; }

/* article body */
.article { max-width: 760px; margin-inline: auto; }
.article .lead { font-size: var(--fs-2xl); line-height: 1.5; color: var(--text-secondary); }
.article-media { position: relative; margin: 32px 0; aspect-ratio: 16/8; background: var(--bg-neutral); border: 1px solid var(--border-default); border-radius: var(--radius-card); overflow: hidden; }
.prose { font-size: var(--fs-xl); line-height: 1.66; color: var(--text-secondary); }
.prose h2 { font-size: var(--fs-3xl); color: var(--text-primary); margin: 38px 0 14px; letter-spacing: -.01em; }
.prose h3 { font-size: var(--fs-2xl); color: var(--text-primary); margin: 30px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 4px; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { display: flex; gap: 11px; align-items: flex-start; }
.prose ul li .ic { width: 20px; height: 20px; color: var(--text-brand); flex: 0 0 auto; margin-top: 4px; }
.prose ol { counter-reset: n; display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; }
.prose ol li { counter-increment: n; display: flex; gap: 13px; align-items: flex-start; }
.prose ol li::before { content: counter(n); flex: 0 0 auto; width: 28px; height: 28px; border-radius: var(--radius-button-sm); background: var(--bg-brand-tint); color: var(--text-brand); font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-md); display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.callout { display: flex; gap: 14px; padding: 20px 22px; border: 1px solid var(--border-brand); background: var(--bg-brand-tint); border-radius: var(--radius-card); margin: 28px 0; }
.callout .ic { color: var(--text-brand); flex: 0 0 auto; }
.callout p { margin: 0; color: var(--text-primary); font-size: var(--fs-lg); }

/* generic two-col utility */
.stack-lg { display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px){ .grid-2 { grid-template-columns: 1fr; } }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* skip link */
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--bg-brand); color: var(--text-on-brand); padding: 10px 16px; border-radius: var(--radius-button-md); }
.skip:focus { left: 8px; }

/* ============================================================================
   QUICK CONTACTS (мессенджеры / связь с нами)
   ========================================================================== */
.quick-contacts { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 14px; }
.qc {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--border-default); border-radius: var(--radius-card);
  background: var(--bg-container); transition: border-color .2s, background-color .2s;
}
.qc:hover { border-color: var(--border-brand); background: var(--bg-neutral); }
.qc .qc-ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: var(--radius-button-md); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.qc .qc-ic .ic { width: 22px; height: 22px; }
.qc-ic.is-tg { background: #2aabee; }
.qc-ic.is-wa { background: #25d366; }
.qc-ic.is-max { background: #2f8fff; }
.qc-ic.is-tel { background: var(--bg-brand); }
.qc-ic.is-mail { background: var(--bg-brand); }
.qc-meta { display: flex; flex-direction: column; min-width: 0; }
.qc-meta .qc-k { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); }
.qc-meta .qc-v { font-size: var(--fs-md); font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 360px){ .quick-contacts { grid-template-columns: 1fr; } }

/* compact header call button (mobile) */
.header-cta-compact { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-button-md); background: var(--bg-brand); color: var(--text-on-brand); }
.header-cta-compact:hover { background: var(--bg-brand-hover); }
.header-cta-compact .ic { width: 20px; height: 20px; }

/* drawer contact block */
.drawer-contact { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border-default); display: flex; flex-direction: column; gap: 8px; }
.drawer-msgr { display: flex; gap: 10px; }
.drawer-msgr a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: var(--radius-button-md); color: #fff; font-weight: 600; font-size: var(--fs-md); border: none; }
.drawer-msgr a.tg { background: #2aabee; }
.drawer-msgr a.wa { background: #25d366; }
.drawer-msgr a.mx { background: #2f8fff; }
.drawer-msgr a .ic { width: 20px; height: 20px; }

/* ============================================================================
   POLISH + MOBILE REFINEMENTS
   ========================================================================== */
/* anchor offset under sticky header */
section[id], article[id], [data-screen-label] { scroll-margin-top: 108px; }
.hero h1 { text-wrap: balance; }
.section-head h2, .cta-band h2 { text-wrap: balance; }

/* tablet */
@media (max-width: 760px){
  .contact-card .cv { font-size: var(--fs-md); }
}

/* phone — header */
@media (max-width: 560px){
  .header-row { gap: 12px; height: 74px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-primary { display: none; }
  .header-cta-compact { display: inline-flex; }
  .brand .logo { width: 34px; height: 34px; }
  .site-header .brand .logo-img { height: 54px !important; }
  .brand-name b { font-size: var(--fs-md); }
}
@media (max-width: 380px){
  .brand-name span { display: none; }
}

/* phone — hero */
@media (max-width: 640px){
  .hero .container { padding-block: 44px 52px; }
  .hero h1 { font-size: clamp(31px, 8.4vw, 44px); }
  .hero[data-hero="3"] h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero .lead { font-size: var(--fs-xl); margin-top: 18px; }
  .hero-cta { gap: 10px; margin-top: 24px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .readout-cell { padding: 14px 15px; }
  .readout-cell .rv { font-size: 27px; }
  .hero[data-hero="1"] .readouts, .hero[data-hero="2"] .readouts, .hero[data-hero="3"] .readouts { margin-top: 28px; }
}

/* phone — sections / cards */
@media (max-width: 640px){
  .section { padding-block: 52px; }
  .section.tight { padding-block: 40px; }
  .section-head { margin-bottom: 32px; }
  .svc-actions { flex-wrap: wrap; }
  .svc-actions .btn { flex: 1 1 calc(50% - 5px); }
  .cta-band { padding: 32px 20px; }
  .cta-band h2 { font-size: 26px; }
  .cta-band p { font-size: var(--fs-lg); }
  .cta-actions .btn { flex: 1 1 100%; }
  .cta-meta { gap: 12px 18px; }
  .map-frame { height: 220px; }
  .price-side { position: static; }
}

/* phone — modal becomes bottom sheet */
@media (max-width: 480px){
  .modal { padding: 0; align-items: flex-end; }
  .modal .dialog { max-width: 100%; border-radius: 16px 16px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 92vh; animation: sheetIn .24s cubic-bezier(0,.55,.45,1); }
  @keyframes sheetIn { from { transform: translateY(40px); opacity: .4; } }
}

/* respect reduced motion globally */
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* SEO: H1 на списочных страницах выглядит как section-head h2 */
.section-head h1{font-size:var(--fs-5xl);line-height:1.12;letter-spacing:-.02em;margin:14px 0 0;text-wrap:balance}
@media (max-width:720px){.section-head h1{font-size:30px}}

/* Логотип-картинка: белый на тёмном футере */
.site-footer .logo-img{filter:brightness(0) invert(1)}
