/* MaraCraft — токены из дизайн-системы макета */
@font-face { font-family: 'Roboto'; font-weight: 400 700; font-display: swap; src: url(../fonts/roboto-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto'; font-weight: 400 700; font-display: swap; src: url(../fonts/roboto-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-weight: 400 700; font-display: swap; src: url(../fonts/roboto-latin.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: 'Roboto Condensed'; font-weight: 100 900; font-display: swap; src: url(../fonts/roboto-condensed-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto Condensed'; font-weight: 100 900; font-display: swap; src: url(../fonts/roboto-condensed-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto Condensed'; font-weight: 100 900; font-display: swap; src: url(../fonts/roboto-condensed-latin.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; }

:root {
  --raw-900: #082032;
  --raw-700: #2c394b;
  --raw-500: #334756;
  --raw-200: #d2d2d2;
  --white: #ffffff;
  --accent: #37beb0;
  --accent-2: #0c6170;
  --accent-3: #a4e5e0;
  --accent-4: #dbf5f0;

  --font-heading: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --sec-y: clamp(64px, 9vw, 120px);
  --radius: 20px;
  --hdr-h: 96px;

  /* тёмная тема по умолчанию */
  --bg: var(--raw-900);
  --ink: var(--white);
  --ink-muted: var(--raw-200);
  --border: rgba(210, 210, 210, 0.16);
  --link: var(--accent);
  /* обрезанные превью: всегда верх первого экрана (Марина, 07.11.2026) */
  --preview-crop-position: top center;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--raw-900); color: var(--white); font: 400 17px/1.4 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1, h2 { font-family: var(--font-heading); line-height: 1; }
h3 {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--raw-900); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 960px; }

/* ── Секции и темы ── */
.sec { padding: var(--sec-y) 0; background: var(--bg); color: var(--ink); position: relative; }
.sec--dark { --bg: var(--raw-900); }
.sec--dark2 { --bg: var(--raw-700); }
.sec--mint { --bg: var(--accent-4); --ink: var(--raw-900); --ink-muted: var(--raw-500); --border: rgba(8, 32, 50, 0.14); --link: var(--accent-2); }
.sec--paper { --bg: var(--white); --ink: var(--raw-900); --ink-muted: var(--raw-500); --border: rgba(8, 32, 50, 0.14); --link: var(--accent-2); }
.main--paper { background: var(--white); color: var(--raw-900); }
.main--paper .article-page { flex: 1; }
.sec--accent { --bg: var(--accent); --ink: var(--raw-900); --ink-muted: var(--raw-900); --border: rgba(8, 32, 50, 0.18); --link: var(--raw-900); overflow: hidden; }
.page-top { padding-top: clamp(32px, 4vw, 56px); }

/* ── Типографика ── */
.display, .hero__h { font: 400 clamp(44px, 6.2vw, 72px)/1 var(--font-heading); text-transform: uppercase; }
.display-md { font: 400 clamp(32px, 4vw, 44px)/1 var(--font-heading); text-transform: uppercase; margin-bottom: 20px; }
.h-card { font: 400 clamp(22px, 2.4vw, 28px)/1 var(--font-heading); text-transform: uppercase; margin-bottom: 20px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 14px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--link); margin-bottom: 18px; }
.eyebrow--dark { color: var(--raw-900); }
.muted { color: var(--ink-muted); font-size: 18px; line-height: 1.4; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.4; color: var(--ink-muted); max-width: 720px; margin: 20px 0 28px; }
.c-accent { color: var(--accent); }
.c-muted { color: var(--raw-200); }
.mt { margin-top: 48px; }

/* ── Кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 9999px; background: var(--accent); color: var(--raw-900); font: 700 16px/1.4 var(--font-heading); letter-spacing: 0; text-transform: uppercase; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(55, 190, 176, .35); }
/* Все кнопки сайта одного размера: шрифт Roboto Condensed 16px жирный (700) заглавными; высота 52px, на десктопе 55px (модификаторы --lg и --sm размер не меняют) */
@media (min-width: 961px) { .btn { min-height: 55px; } }
.btn--white { background: var(--white); color: var(--raw-900); }
.btn--dark { background: var(--raw-900); color: var(--white); width: 100%; }
.btn--dark:hover { box-shadow: 0 10px 30px rgba(8, 32, 50, .3); }
.tlink { font: 700 16px/1.4 var(--font-heading); text-transform: uppercase; color: var(--link); text-decoration: none; letter-spacing: 0; }
.tlink { transition: filter .15s; }
.tlink:hover { filter: brightness(.78); }

/* ── Шапка ── */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--raw-700); }
.hdr__in { height: var(--hdr-h); display: flex; align-items: center; gap: 32px; }
.hdr__logo { display: block; }
.hdr__logo img { height: calc(var(--hdr-h) - 12px); width: auto; }
.hdr__nav { margin-left: auto; }
.hdr__nav ul { display: flex; align-items: center; gap: 22px; }
.hdr__nav li + li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--raw-200); margin-right: 22px; vertical-align: middle; }
.hdr__nav a, .hdr__nav .nav-articles {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font: 400 15px/1.4 var(--font-body);
  letter-spacing: 0;
}
.mnav a, .mnav .nav-articles, .ftr ul a, .ftr .nav-articles {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}
.ftr ul a, .ftr .nav-articles { color: var(--raw-200); }
.hdr__nav .nav-articles, .mnav .nav-articles, .ftr .nav-articles {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.mnav .nav-articles { text-align: left; }
.hdr__nav a:hover, .hdr__nav a[aria-current], .hdr__nav .nav-articles:hover, .mnav .nav-articles:hover, .ftr .nav-articles:hover { color: var(--accent); }
button.tlink[data-article-drawer-open] { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; color: inherit; }
.hdr__burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; padding: 10px; flex-direction: column; justify-content: center; gap: 8px; }
.hdr__burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s; }
.hdr__burger[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }
.mnav { background: var(--raw-700); border-top: 1px solid var(--border); padding: 12px var(--gutter) 24px; }
.mnav li a,
.mnav li .nav-articles { display: block; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); font: 400 17px/1.4 var(--font-body); text-align: left; }
.mnav .btn { margin-top: 20px; width: 100%; }

@media (max-width: 1080px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: flex; }
}
@media (max-width: 600px) { :root { --hdr-h: 72px; } }

/* ── Хлебные крошки ── */
.crumbs { margin-bottom: clamp(24px, 4vw, 48px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--link); }

/* ── Первый экран ── */
.hero { padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 7vw, 96px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__sub { margin-top: 28px; font-size: 19px; line-height: 1.4; }
.hero__lead { margin-top: 16px; font-size: 20px; line-height: 1.4; color: var(--raw-200); max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; margin-top: 34px; padding-bottom: 30px; border-bottom: 1px solid var(--border); max-width: 560px; }
.hero__img { width: 100%; height: auto; }
.me { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.me img { width: 78px; height: 78px; border-radius: 50%; flex-shrink: 0; }
.me p { font-size: 14px; line-height: 1.4; }
.me b { display: block; font-size: 15px; text-transform: uppercase; color: var(--raw-200); margin-bottom: 4px; }
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__img { max-width: 620px; }
}

/* ── Раскладка «заголовок слева, контент справа» ── */
.split { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.split__side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.split__side .eyebrow { margin-bottom: 0; }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; gap: 28px; align-items: start; } }

.ticks { display: flex; flex-direction: column; gap: 12px; }
.split__side .ticks { padding-top: 20px; border-top: 1px solid var(--border); align-self: stretch; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.4; }
.ticks svg { flex-shrink: 0; color: var(--link); margin-top: 1px; }

/* ── Карточки услуг ── */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1180px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .grid3 { grid-template-columns: 1fr; }
  .scard { min-height: 0; }
}
.scard { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 260px; padding: 24px 26px; border-radius: var(--radius); background: var(--white); color: var(--raw-900); text-decoration: none; box-shadow: 0 14px 36px rgba(8, 32, 50, .10); }
.scard .ico-tile { margin-bottom: 8px; }
.scard__t { font: 400 26px/1 var(--font-body); text-transform: uppercase; overflow-wrap: anywhere; }
.scard__d { font-size: 15px; line-height: 1.4; color: var(--raw-900); }
.scard__f { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(8, 32, 50, .14); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; }
.scard__p { font: 500 clamp(19px, 3.6vw, 23px)/1.4 var(--font-body); color: var(--accent-2); white-space: normal; }
.pfrom { font-size: .72em; font-weight: 400; }
.scard__go { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--accent-4); color: var(--accent-2); display: grid; place-items: center; transition: background .2s, color .2s; }
.scard:hover .scard__go { background: var(--accent-2); color: var(--white); }

/* ── Плитки работ ── */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1180px) { .grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.wtile { display: flex; flex-direction: column; border-radius: 16px; background: var(--raw-500); border: 1px solid var(--border); color: var(--white); text-decoration: none; transition: border-color .2s, transform .2s; overflow: hidden; min-width: 0; }
.wtile:hover { border-color: var(--accent); transform: translateY(-2px); }
.wtile__cap { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; min-width: 0; }
.wtile__n { font: 500 15px/1 var(--font-body); }
.wtile__d { font-size: 12px; color: var(--raw-200); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtile--all { justify-content: flex-end; gap: 4px; padding: 20px; min-height: 160px; background: none; border: 2px solid var(--accent); color: var(--accent); }
.wtile--all .wtile__d { color: var(--accent); }
@media (max-width: 480px) { .wtile__cap { padding: 10px 12px 12px; } .wtile__n { font-size: 14px; } .wtile__d { font-size: 11px; } }

/* ── Превью сайта: рамка браузера + прокрутка скриншота ── */
.shot { display: block; background: #0f1d2b; }
.shot__bar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; background: #13263a; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.shot__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); flex-shrink: 0; }
.shot__bar i:first-child { background: var(--accent); }
.shot__bar span { margin-left: 8px; min-width: 0; font-size: 11px; line-height: 1.4; color: var(--raw-200); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot__view { display: block; position: relative; aspect-ratio: 1 / var(--view, .625); overflow: hidden; }
.shot__view img { width: 100%; height: auto; will-change: transform; }
.shot__view { cursor: ns-resize; }
.shot--empty .shot__view { display: grid; place-items: center; font: 600 22px/1.4 var(--font-body); color: rgba(255, 255, 255, .35); }
.shot-tall { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.shot-tall .shot__bar { height: 34px; padding: 0 16px; gap: 7px; }
.shot-tall .shot__bar i { width: 10px; height: 10px; }
.shot-tall .shot__bar span { font-size: 13px; }
.shot-hint { margin-top: 14px; font-size: 14px; }
@media (hover: none) { .shot-hint { display: none; } }

/* ── Кейс ── */
.case { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--raw-700); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; min-width: 0; }
.case .eyebrow { margin: 0; }
.case__t { font: 400 clamp(28px, 3vw, 40px)/1 var(--font-body); text-transform: uppercase; }
.case__t a { color: var(--white); text-decoration: none; }
.case__t a:hover { color: var(--accent); }
.case__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case__grid--lg { margin: 28px 0 32px; }
.case__grid dt { font: 500 13px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.case__grid dd { font-size: 16px; line-height: 1.4; }
@media (max-width: 640px) { .case__grid { grid-template-columns: 1fr; } }

.urls { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-bottom: 8px; }
.urls__row { padding: 14px 18px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--border); min-width: 0; }
.urls__row span { display: block; font: 500 12px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--raw-200); margin-bottom: 8px; }
.urls__row code { font: 14px/1.4 ui-monospace, 'SF Mono', Menlo, monospace; overflow-wrap: anywhere; }
.urls__row--bad code { color: #ff9b8a; }
.urls__row--good { border-color: rgba(55, 190, 176, .5); }
.urls__row--good code { color: var(--accent); }

/* ── Страница услуги ── */
.svc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc--aside-pilot .svc__aside { display: flex; flex-direction: column; gap: 22px; min-width: 0; margin-top: 78px; }
.svc--aside-pilot .svc__others { width: 100%; text-align: center; }
.svc--aside-pilot .svc__others .chips--compact { width: 100%; justify-content: center; align-content: center; }
.svc__ico { width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.svc__list { padding: clamp(24px, 3vw, 40px); }
.svc__note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--ink-muted); font-size: 15px; }
@media (max-width: 960px) {
  .svc { grid-template-columns: 1fr; }
  .svc--aside-pilot .svc__aside { margin-top: 0; }
}
/* Первый блок страницы услуги — ровно один экран под шапкой; содержимое вписывает скрипт (fitScreens) */
@media (min-width: 961px) {
  .fit-screen { min-height: calc(100vh - var(--hdr-h)); min-height: calc(100dvh - var(--hdr-h)); padding-bottom: clamp(24px, 4vh, 48px); display: flex; flex-direction: column; }
  .fit-screen > .wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .fit-screen .crumbs { margin-bottom: clamp(16px, 3vh, 48px); }
  .fit-screen .svc { margin: auto 0; align-items: center; }
}
/* Каталог услуг: слева заголовок и вводный текст, справа услуги одной колонкой */
@media (min-width: 961px) {
  .svc-catalog .split { grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
  .svc-catalog.fit-screen .split { margin: 0; }
}
/* услуги — белыми строками: иконка | название | описание | цена → */
.svc-cat__list { display: flex; flex-direction: column; gap: 10px; }
.svc-cat__list .scard { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: 'i t f' 'i d f'; align-items: center; gap: 4px 20px; min-height: 0; padding: 12px 20px; border-radius: 16px; }
.svc-cat__list .scard .ico-tile { grid-area: i; }
.svc-cat__list .scard__t { grid-area: t; align-self: end; }
.svc-cat__list .scard__d { grid-area: d; align-self: start; }
.svc-cat__list .scard__f { grid-area: f; }
.svc-cat__list .scard .ico-tile { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.svc-cat__list .scard__t { font-size: 18px; }
.svc-cat__list .scard__d { font-size: 14px; line-height: 1.4; color: var(--raw-500); }
.svc-cat__list .scard__f { margin: 0; padding: 0; border: 0; gap: 16px; flex-wrap: nowrap; justify-content: flex-end; }
.svc-cat__list .scard__p { font-size: 19px; white-space: nowrap; }
/* узко: название и цена в строку, описание под ними */
@media (max-width: 760px) {
  .svc-cat__list .scard { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: 'i t f' 'i d d'; gap: 4px 14px; padding: 14px 16px; }
  .svc-cat__list .scard .ico-tile { grid-area: i; align-self: start; }
  .svc-cat__list .scard__t { grid-area: t; }
  .svc-cat__list .scard__d { grid-area: d; }
  .svc-cat__list .scard__f { grid-area: f; }
  .svc-cat__list .scard__go { display: none; }
}
/* Страница «Статьи»: список строк во всю ширину сетки */
.alist { margin-top: 40px; border-top: 1px solid var(--border); }
.alist__item { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 20px; align-items: center; padding: 24px 8px; border-bottom: 1px solid var(--border); color: var(--white); text-decoration: none; transition: background .2s; }
.alist__item--thumb { grid-template-columns: 96px minmax(0, 1fr) 40px; gap: 20px; }
.alist__thumb { flex-shrink: 0; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .06); }
img.preview-crop,
.preview-crop > img,
.alist__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--preview-crop-position);
}
.shot__view img { object-position: var(--preview-crop-position); }
.alist__item:hover { background: rgba(255, 255, 255, .04); }
.alist__t { font: 500 clamp(18px, 1.6vw, 22px)/1 var(--font-body); transition: color .2s; }
.alist__item:hover .alist__t { color: var(--accent); }
.alist__d { display: block; margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--raw-200); }
.alist__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); border: 1px solid var(--border); }
@media (max-width: 600px) {
  .alist__item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .alist__item--thumb { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .alist__thumb { width: 72px; height: 54px; }
  .alist__go { display: none; }
}
.card { border-radius: 24px; background: var(--white); color: var(--raw-900); box-shadow: 0 14px 36px rgba(8, 32, 50, .10); --border: rgba(8, 32, 50, .14); --ink-muted: var(--raw-500); --link: var(--accent-2); }
.kv { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.kv__i { min-width: 180px; padding: 16px 22px; border-radius: 16px; background: var(--white); }
.kv__i span { display: block; font: 500 12px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--raw-500); margin-bottom: 8px; }
.kv__i b { font: 400 26px/1.4 var(--font-body); color: var(--accent-2); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 10px 18px; border-radius: 9999px; border: 1px solid var(--border); color: var(--white); text-decoration: none; font-size: 15px; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips--compact { gap: 6px; justify-content: center; align-content: center; }
.chips--compact li:not(.chips__lead) { display: contents; }
.chips--compact .chips__lead-t {
  display: inline-block;
  padding: 5px 2px 5px 0;
  font: 600 13px/1.3 var(--font-body);
  color: var(--link);
}
.chips--compact a { padding: 5px 10px; font-size: 13px; line-height: 1.3; background: var(--white); }
.chips--compact a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Портфолио ── */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 40px; }
@media (max-width: 400px) { .works { grid-template-columns: 1fr; } }
/* Карточка портфолио: превью, название, одна строка описания и ссылка на сайт — компактно */
.work { padding: 20px 22px 22px; border-radius: var(--radius); background: var(--raw-500); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; overflow: hidden; min-width: 0; }
.work__shot { display: block; margin: -20px -22px 10px; }
.work__t { font: 500 20px/1 var(--font-body); }
.work__t a { color: var(--white); text-decoration: none; }
.work__t a:hover { color: var(--accent); }
.work__d { color: var(--raw-200); font-size: 15px; line-height: 1.4; }
.work__links { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.work__ext { display: inline-flex; align-items: center; gap: 6px; color: var(--raw-200); font-size: 14px; text-decoration: none; }
.work__ext:hover { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 9999px; border: 1px solid var(--border); font-size: 13px; color: var(--ink-muted); }

.row-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 0; }
.ticks + .row-cta { margin-top: 28px; }
.split__side > .ticks + .row-cta { margin-top: 0; }
.services-intro .split__side { gap: 28px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.facts dt { font: 500 12px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--raw-200); margin-bottom: 8px; }
.facts dd { font-size: 17px; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.feats li { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.feats span { font: 16px/1.4 var(--font-body); color: var(--accent); }
.feats h3 { font-size: 24px; font-weight: 500; margin: 14px 0 10px; }
.feats p { color: var(--raw-200); font-size: 16px; line-height: 1.4; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr; } }
.next { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font: 400 20px/1.4 var(--font-body); text-transform: uppercase; }

/* ── Цены ── */
.table-wrap { margin: 40px 0 24px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 16px; }
.ptable th, .ptable td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--border); }
.ptable thead th { font: 500 13px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--raw-200); }
.ptable thead th { background: rgba(255, 255, 255, .06); }
.ptable tbody th { font-weight: 400; }
.ptable a { color: var(--white); text-decoration: none; }
.ptable a:hover { color: var(--accent); }
.ptable td { color: var(--white); font-family: var(--font-body); font-size: 18px; white-space: nowrap; }
.note { padding: 20px 24px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--raw-200); margin-bottom: 32px; }
.note b { color: var(--white); font-weight: 500; }

/* ── Шаги 01-02-03 ── */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; counter-reset: s; }
.steps3 li { position: relative; display: flex; flex-direction: column; gap: 16px; padding-right: 20px; font-size: 18px; line-height: 1.4; }
.steps3 span { width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--raw-900); display: grid; place-items: center; font: 700 18px/1.4 var(--font-body); }
.steps3 li:not(:last-child)::after { content: ''; position: absolute; left: 62px; right: 14px; top: 24px; height: 1px; background: rgba(255, 255, 255, .7); }
.steps3--dark span { background: var(--accent); }
/* 26.10.2026: межбуквенное расстояние везде обычное (letter-spacing: 0), никакой разрядки */
/* Шаги «Как считается стоимость» на странице «Цены» — как «Partnership process» на ALANELI */
.flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
/* пунктир через центры кругов: штрихи бегут слева направо */
.flow::before { content: ''; position: absolute; z-index: 1; top: 112px; left: calc((100% - 48px) / 6); right: calc((100% - 48px) / 6); height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); animation: flow-run 1s linear infinite; }
.flow__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 20px 28px; text-align: center; }
.flow__no { align-self: center; padding: 5px 10px; border-radius: 10px; background: var(--accent); color: var(--raw-900); font: 700 11px/1.4 var(--font-body); letter-spacing: 0; }
.flow__halo { --ring: 10px; position: relative; z-index: 2; width: 80px; height: 80px; margin: 16px 0 12px; border-radius: 50%; display: grid; place-items: center; background: var(--raw-500); border: 1px solid var(--border); color: var(--accent); box-shadow: 0 0 0 var(--ring) rgba(55, 190, 176, .08); animation: flow-wave 3.6s ease-in-out infinite; }
.flow__step p { max-width: 26ch; font-size: 17px; line-height: 1.4; color: var(--white); }
/* микроанимация: шаги по очереди подсвечиваются и приподнимаются волной 01 → 03 */
.flow__step:nth-child(2) .flow__halo { animation-delay: 1.2s; }
.flow__step:nth-child(3) .flow__halo { animation-delay: 2.4s; }
@keyframes flow-run { to { background-position: 16px 0; } }
@keyframes flow-run-v { to { background-position: 0 16px; } }
@keyframes flow-wave {
  /* мягко: чуть больше и чуть светлее кольцо, без вспышки */
  0%, 40%, 100% { transform: none; box-shadow: 0 0 0 var(--ring) rgba(55, 190, 176, .08); }
  20% { transform: scale(1.03); box-shadow: 0 0 0 calc(var(--ring) + 2px) rgba(55, 190, 176, .13); }
}
/* узко: шаги строками, круг слева, пунктир вниз между кругами */
@media (max-width: 760px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .flow::before { display: none; }
  .flow__step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-items: center; padding: 16px; text-align: left; }
  .flow__halo { --ring: 6px; grid-column: 1; grid-row: 1 / span 2; width: 56px; height: 56px; margin: 0; }
  .flow__halo svg { width: 26px; height: 26px; }
  .flow__no { grid-column: 2; justify-self: start; }
  .flow__step p { grid-column: 2; max-width: none; }
  .flow__step:not(:last-child)::after { content: ''; position: absolute; z-index: 1; left: 43px; top: calc(50% + 28px); width: 2px; height: calc(100% - 40px); background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); animation: flow-run-v 1s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .flow::before, .flow__step::after, .flow__halo { animation: none; } }
.steps3--dark li:not(:last-child)::after { background: var(--border); }
@media (max-width: 700px) {
  .steps3 { grid-template-columns: 1fr; gap: 18px; }
  .steps3 li { flex-direction: row; align-items: center; }
  .steps3 span { flex-shrink: 0; }
  .steps3 li::after { display: none; }
}

/* ── Контакт ── */
.contact__rings::before, .contact__rings::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.contact__rings::before { width: 700px; height: 700px; right: -120px; top: 50%; transform: translateY(-50%); border: 1.5px solid rgba(55, 190, 176, .35); }
.contact__rings::after { width: 900px; height: 900px; right: -220px; top: 50%; transform: translateY(-50%); border: 1px solid rgba(55, 190, 176, .2); }
.contact__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact .display { color: var(--ink); }
.direct { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 44px; }
.direct > span { margin-right: 8px; }
@media (max-width: 960px) { .contact__in { grid-template-columns: 1fr; } }
/* Страница «Контакты»: один экран, форма шире — поля длиннее, сама форма ниже */
@media (min-width: 961px) {
  .contact--page.fit-screen > .wrap:not(.contact__in) { flex: 0 0 auto; }
  .contact--page.fit-screen > .contact__in { display: grid; flex: 0 0 auto; width: 100%; margin-top: auto; margin-bottom: auto; }
}

.form { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 70px rgba(8, 32, 50, .22); }
.form__title { font: 600 30px/1 var(--font-body); }
.form label:not(.check) { display: flex; flex-direction: column; gap: 8px; font: 500 12px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--raw-500); }
.form input[type="text"], .form input[type="email"], .form textarea, .quiz input[type="text"], .quiz input[type="email"], .quiz textarea { width: 100%; min-height: 54px; padding: 14px 18px; border-radius: 12px; border: 1px solid transparent; background: #eceded; color: var(--raw-900); font: 400 16px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; resize: vertical; }
.form input:focus, .form textarea:focus, .quiz input:focus, .quiz textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.form [aria-invalid="true"], .quiz [aria-invalid="true"] { border-color: #e0604e; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--raw-500); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-2); flex-shrink: 0; }
.check.is-err { color: #c0412f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__row label { min-width: 0; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.form__err { margin-top: -8px; color: #c2412f; font-size: 14px; line-height: 1.4; }
.form__err[hidden] { display: none; }
.form__ok { padding: 14px 18px; border-radius: 12px; background: var(--accent-4); color: var(--accent-2); font-weight: 500; }


/* ── Квиз ── */
.quiz { width: min(1120px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--white); color: var(--raw-900); box-shadow: 0 40px 100px rgba(0, 0, 0, .5); overflow: hidden; }
.quiz::backdrop { background: rgba(8, 32, 50, .78); backdrop-filter: blur(4px); }
.quiz[open] { animation: qin .25s ease-out; }
@keyframes qin { from { opacity: 0; transform: translateY(12px); } }
/* одна высота на всех шагах (шаг «Контакты» выше остальных); не помещается — прокрутка внутри */
.quiz__in { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: min(680px, calc(100dvh - 32px)); }
.quiz__side { background: var(--accent-4); padding: 36px 32px; display: flex; flex-direction: column; gap: 32px; overflow-y: auto; }
.quiz__brand { font: 400 24px/1 var(--font-body); text-transform: uppercase; }
.quiz__steps { display: flex; flex-direction: column; }
.quiz__steps li { position: relative; padding-bottom: 20px; color: rgba(8, 32, 50, .4); }
.quiz__go { display: grid; grid-template-columns: 36px 1fr; gap: 14px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
button.quiz__go { cursor: pointer; }
button.quiz__go:hover b { color: var(--accent-2); }
.quiz__steps li:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 1.5px; background: rgba(8, 32, 50, .15); }
.quiz__steps li.is-done::before { background: var(--accent); }
.quiz__steps .dot { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(8, 32, 50, .2); background: var(--white); display: grid; place-items: center; font: 600 13px/1.4 var(--font-body); }
.quiz__steps .is-now { color: var(--raw-900); }
.quiz__steps .is-now .dot { background: var(--accent); border-color: var(--accent); }
.quiz__steps .is-done { color: var(--raw-500); }
.quiz__steps .is-done .dot { border-color: var(--accent); color: var(--accent-2); }
.quiz__steps b { display: block; font: 500 16px/1.4 var(--font-body); padding-top: 8px; }
.quiz__steps small { display: block; font-size: 13px; line-height: 1.4; color: var(--raw-500); margin-top: 4px; }
.quiz__me { margin-top: auto; display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--raw-500); }
.quiz__me img { width: 52px; height: 52px; border-radius: 50%; }
.quiz__me b { display: block; color: var(--raw-900); font-size: 14px; text-transform: uppercase; }
.quiz__main { position: relative; padding: 40px clamp(20px, 4vw, 48px) 32px; display: flex; flex-direction: column; overflow-y: auto; }
.quiz__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--raw-500); display: grid; place-items: center; }
.quiz__close:hover { background: #eceded; color: var(--raw-900); }
.quiz__bar { height: 4px; border-radius: 4px; background: #eceded; margin-right: 52px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.quiz__meta { display: flex; justify-content: space-between; gap: 12px; margin: 14px 52px 0 0; font: 500 12px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--raw-500); }
.quiz__form { flex-grow: 1; display: flex; flex-direction: column; }
.quiz__q { font: 400 clamp(28px, 3.4vw, 44px)/1 var(--font-body); text-transform: uppercase; margin-top: 28px; }
.quiz__q:focus { outline: none; }
.quiz__hint { color: var(--raw-500); margin-top: 10px; font-size: 16px; }
.quiz__body { margin-top: 28px; }
.quiz__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quiz__opt { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px; border: 1.5px solid rgba(8, 32, 50, .14); border-radius: 14px; background: var(--white); color: var(--raw-900); text-align: left; font-size: 16px; line-height: 1.4; transition: border-color .15s, background .15s; }
.quiz__opt:hover { border-color: var(--accent); }
.quiz__opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(55, 190, 176, .10); }
.quiz__opt svg { flex-shrink: 0; color: var(--accent-2); }
.quiz__opt .mark { margin-left: auto; width: 20px; height: 20px; flex-shrink: 0; border: 1.5px solid var(--raw-500); border-radius: 6px; display: grid; place-items: center; color: var(--white); }
.quiz__opt.is-radio .mark { border-radius: 50%; }
.quiz__opt[aria-pressed="true"] .mark { background: var(--accent); border-color: var(--accent); }
.quiz__other { margin-top: 14px; }
.quiz__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.quiz__fields .quiz__wide, .quiz__fields .check { grid-column: 1 / -1; }
@media (max-width: 560px) { .quiz__fields { grid-template-columns: minmax(0, 1fr); } }
.quiz__fields label:not(.check) { display: flex; flex-direction: column; gap: 8px; font: 500 12px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--raw-500); }
.quiz__nav { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.quiz__nav[hidden] { display: none; }
.quiz__back { border: 0; background: none; color: var(--raw-500); font: 700 16px/1.4 var(--font-heading); text-transform: uppercase; padding: 12px 0; }
.quiz__back[hidden] { display: block; visibility: hidden; }
.quiz__next[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.quiz__done { text-align: left; }
.quiz__done p { color: var(--raw-500); font-size: 17px; margin-top: 12px; }
.quiz__done .tlink { display: inline-block; margin-top: 28px; color: var(--accent-2); background: none; border: 0; padding: 0; }
.quiz__aside { margin-top: auto; padding-top: 16px; }
.quiz.is-calc .quiz__aside { position: sticky; bottom: 0; margin-top: 12px; padding: 12px 0 0; background: var(--accent-4); box-shadow: 0 -8px 16px rgba(8, 32, 50, .06); }
.quiz__tip { font-size: 13px; line-height: 1.4; color: var(--raw-500); }
.quiz__tip[hidden], .quiz__sum[hidden] { display: none; }
.quiz__sum { margin-top: 8px; font: 500 12px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--raw-500); }
.quiz__sum b { display: block; margin-top: 4px; font: 500 20px/1.3 var(--font-body); text-transform: none; color: var(--raw-900); }
.quiz__total { color: var(--raw-500); font-size: 16px; margin-bottom: 16px; }
.quiz__total b { font-weight: 600; color: var(--raw-900); }
.quiz__opt small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--raw-500); font-weight: 400; }
.quiz.is-calc .quiz__go { grid-template-columns: 36px minmax(0, 1fr); }
.quiz.is-calc .quiz__go > span:last-child { min-width: 0; }
.quiz__hint-sum { font-weight: 600; color: var(--raw-900); }
.svc__cost-note { margin: 0 0 28px; color: var(--raw-500); font-size: 16px; line-height: 1.4; max-width: 720px; }
.svc__main > .row-cta.svc__cta { margin-top: 0; }
body:not(.deck) .sec.svc-cost-catalog { padding-top: calc(var(--sec-y) / 2); padding-bottom: calc(var(--sec-y) / 2); }
body:not(.deck) .svc-cost-catalog + .sec.contact { padding-top: calc(var(--sec-y) / 2); }
body:not(.deck) .svc-cost-catalog--page { padding-top: calc(var(--sec-y) / 2); padding-bottom: calc(var(--sec-y) / 2); }
body:not(.deck) .svc-top + .svc-cost-catalog--page,
body:not(.deck) .page-top.fit-screen + .svc-cost-catalog--page { padding-top: calc(var(--sec-y) / 2); }
body:not(.deck) .svc-cost-catalog--page + .svc-works-sec { padding-top: calc(var(--sec-y) / 2); }
body:not(.deck) .svc-cost-catalog--page + .sec--mint:has(.faq-acc) { padding-top: calc(var(--sec-y) / 2); }
body:not(.deck) .svc-cost-catalog--page + .sec--mint:has(.chips) { padding-top: calc(var(--sec-y) / 2); padding-bottom: calc(var(--sec-y) / 2); }
.svc-cost-catalog .h-card { margin-bottom: 20px; }
.svc-cost-catalog__p { margin: 0 0 16px; max-width: none; font-size: 17px; line-height: 1.4; color: var(--ink-muted); }
.svc-cost-banner {
  margin-top: 20px;
  width: 100%;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--raw-900);
  border: 2px solid var(--accent);
}
.svc-cost-banner__p { margin: 0; max-width: none; font-size: 17px; line-height: 1.4; color: var(--raw-900); }
.svc-cost-banner__p strong { font-weight: 600; color: var(--raw-900); }
.svc-cost-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0 8px; align-items: stretch; }
.svc-cost-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--border);
}
.svc-cost-card__n {
  position: absolute;
  right: clamp(8px, 1.5vw, 16px);
  bottom: clamp(4px, 1vw, 12px);
  margin: 0;
  font: 700 clamp(56px, 8vw, 96px)/0.9 var(--font-body);
  letter-spacing: -0.03em;
  color: var(--accent-3);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.svc-cost-card__t { position: relative; z-index: 1; margin: 0; font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.svc-cost-card__d { position: relative; z-index: 1; margin: 0; flex: 1; font-size: 16px; line-height: 1.4; color: var(--ink-muted); }
@media (max-width: 900px) { .svc-cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-cost-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 860px) {
  .quiz__in { grid-template-columns: 1fr; }
  .quiz__side { display: none; }
  .quiz__opts { grid-template-columns: 1fr; }
  .quiz.is-calc .quiz__hint:not(.is-err) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 560px) {
  .quiz { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .quiz__in { min-height: 100dvh; max-height: 100dvh; }
  .quiz__main { padding: 24px 16px 20px; }
  .quiz__opt { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ══ Главная в формате презентации ══════════════════════════════════════
   Каждый блок — экран во всю высоту; «Работы» — лента вбок, которую двигает вертикальная прокрутка.
   Режим включается на широких и достаточно высоких экранах; на телефоне — обычная прокрутка и свайп вбок. */

/* Обзор работ: построчный список */
.wlist { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
@media (min-width: 1600px) { .wlist { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 6), auto); grid-auto-flow: column; column-gap: 32px; } }

.wrow { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: 'n go' 'n ext'; align-items: center; column-gap: 14px; row-gap: 2px; padding: 10px 8px; border-bottom: 1px solid var(--border); transition: background .2s; }
.wrow:hover { background: rgba(255, 255, 255, .04); }
/* Вся строка ведёт на страницу работы: ссылка названия растянута на строку, адрес сайта — поверх */
.wrow { position: relative; cursor: pointer; }
.wrow__go::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.wrow:hover .wrow__t { color: var(--accent); }
.wrow__ext { position: relative; z-index: 1; }
.wrow__n { grid-area: n; font: 500 14px/1.4 var(--font-body); color: var(--accent); }
.wrow__go { grid-area: go; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--white); text-decoration: none; }
.wrow__go:hover .wrow__t { color: var(--accent); }
.wrow__t { font: 500 20px/1 var(--font-body); white-space: nowrap; transition: color .2s; }
.wrow__d { font-size: 13px; line-height: 1.4; color: var(--raw-200); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.wrow__ext { grid-area: ext; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.wrow__ext:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .wrow { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'go' 'ext'; padding: 12px 4px; }
  .wrow__n, .wrow__d { display: none; }
  .wrow__t { font-size: 18px; white-space: normal; }
  .wrow__ext { font-size: 12px; }
}

/* Иконка услуги в мятной плашке */
.ico-tile { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: var(--accent-4); color: var(--accent-2); display: grid; place-items: center; }
.svc__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.svc__head .eyebrow { margin: 0; }
.svc__head .ico-tile { background: var(--white); width: 60px; height: 60px; }

/* Слайд проекта */
.proj { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.proj__t { font: 400 clamp(40px, 5vw, 64px)/1 var(--font-heading); text-transform: uppercase; margin-bottom: 10px; overflow-wrap: break-word; hyphens: manual; }
.proj__url { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 16px; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.proj__url:hover { text-decoration: underline; text-underline-offset: 3px; }
.proj__d { color: var(--raw-200); font-size: 18px; line-height: 1.4; margin-bottom: 20px; }
.proj .tags { margin-bottom: 28px; }
.proj__shot { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.proj__shot .shot__bar { height: 32px; padding: 0 14px; gap: 7px; }
.proj__shot .shot__bar i { width: 10px; height: 10px; }
.proj__shot .shot__bar span { font-size: 13px; }
.proj--page { padding-top: 8px; align-items: start; }
@media (max-width: 900px) { .proj--page { grid-template-columns: 1fr; } }

/* Лента «Работы»: по умолчанию (телефон) — свайп вбок */
.hs { background: var(--raw-700); color: var(--white); --ink: var(--white); --ink-muted: var(--raw-200); --border: rgba(210, 210, 210, .16); --link: var(--accent); }
.hs__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--sec-y) var(--gutter); scrollbar-width: none; }
.hs__track::-webkit-scrollbar { display: none; }
.hs .panel { scroll-snap-align: center; flex: 0 0 88%; }
@media not ((min-width: 1200px) and (min-height: 620px)) {
  .hs { overflow-x: clip; }
  .hs .panel,
  .hs .works-intro { flex: 0 0 100%; max-width: 100%; scroll-snap-align: start; }
  .hs__track { scroll-padding-inline: var(--gutter); }
}
.hs .works-intro { flex-basis: 100%; }
.hs[style*='--n:1'] .hs__track { overflow-x: hidden; scroll-snap-type: none; }
.hs[style*='--n:1'] .panel,
.hs[style*='--n:1'] .works-intro,
.hs[style*='--n:1'] .services-intro { flex: 0 0 100%; max-width: 100%; width: 100%; }
.hs .works-intro > .wrap { padding: 0; }
.hs .proj { grid-template-columns: 1fr; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--raw-500); }
.hs__bar, .hs__stops { display: none; }

/* Навигация презентации — только на широком экране (планшеты — обычная прокрутка и свайп лент) */
.dots, .deck-nav { display: none; }

@media (min-width: 1200px) and (min-height: 620px) {
  html:has(body.deck:not(.deck-vert)) { scroll-behavior: auto; scroll-padding-top: 0; } /* презентация с лентами — скрипт */
  /* Лендинг: колесо, стрелки и меню двигает скрипт; место под шапку уже есть в отступе экрана */
  html:has(body.deck-vert) { scroll-behavior: auto; scroll-padding-top: 0; overflow-x: hidden; }
  body.deck-vert { overflow-x: hidden; }
  .deck.deck-vert .screen { scroll-margin-top: 0; }
  .deck .hdr { position: fixed; left: 0; right: 0; background: rgba(44, 57, 75, .92); backdrop-filter: blur(8px); }
  .deck .screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr-h) + 16px) 0 80px; }
  /* Главная-лендинг: экран не ниже окна; содержимое сжимается не больше чем на 12%, иначе экран выше окна */
  .deck.deck-vert .screen { min-height: 100vh; min-height: 100dvh; height: auto; }
  .deck .screen > .wrap { width: 100%; }

  /* Лента: секция высотой N экранов, внутри прилипший экран, трек сдвигается скриптом */
  .hs { position: relative; height: calc(var(--n) * 100vh); height: calc(var(--n) * 100dvh); } /* точную высоту ставит скрипт */
  .hs__pin { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
  .hs__track { width: calc(var(--n) * 100%); height: 100%; gap: 0; padding: 0; overflow: visible; scroll-snap-type: none; transform: translate3d(calc(var(--p, 0) * -100% * (var(--n) - 1) / var(--n)), 0, 0); will-change: transform; }
  .hs .panel, .hs .works-intro { flex: 0 0 calc(100% / var(--n)); height: 100%; padding: calc(var(--hdr-h) + 24px) var(--gutter) 96px; display: flex; flex-direction: column; justify-content: center; }
  .hs .proj { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-content: center; border-radius: 0; background: none; width: 100%; }
  .hs .works-intro > .wrap { padding: 0; width: 100%; }
  .hs__stops { display: block; position: absolute; inset: 0; pointer-events: none; }
  .hs__stops i { display: block; height: 100vh; height: 100dvh; }
  .hs__bar { display: flex; align-items: center; gap: 20px; position: absolute; left: 0; right: 0; bottom: 36px; margin: 0 auto; font: 500 13px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--raw-200); pointer-events: none; }
  .hs__count { color: var(--white); min-width: 64px; }
  .hs__line { position: relative; width: 240px; height: 2px; background: var(--border); }
  .hs__line i { position: absolute; left: 0; top: 0; height: 100%; width: calc(100% / var(--n)); background: var(--accent); transform: translateX(calc(var(--p, 0) * 100% * (var(--n) - 1))); }
  .hs__hint { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
  .proj__shot .shot__view { aspect-ratio: auto; height: min(58vh, 560px); }
  .proj__shot .shot__view img { min-height: 100%; }

  /* Точки разделов справа — на тёмной подложке, контент до них не доходит */
  .hs .works-intro > .wrap { padding-right: 0; }
  .dots { display: flex; flex-direction: column; gap: 4px; position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; padding: 8px 6px; border-radius: 9999px; background: rgba(8, 32, 50, .72); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
  .dots a { position: relative; display: grid; place-items: center; width: 34px; height: 30px; text-decoration: none; color: rgba(255, 255, 255, .55); font: 500 12px/1.4 var(--font-body); letter-spacing: 0; border-radius: 9999px; }
  .dots a:hover { color: #fff; }
  .dots a.is-on { color: var(--raw-900); background: var(--accent); }
  .dots b { font-weight: 500; }
  .dots span { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); padding: 6px 10px; border-radius: 9999px; background: rgba(8, 32, 50, .92); color: #fff; white-space: nowrap; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .dots a:hover span, .dots a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

  /* Стрелки внизу по центру, как в макете */
  .deck-nav { display: flex; gap: 2px; position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; padding: 4px; border-radius: 9999px; background: rgba(8, 32, 50, .88); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .deck-nav button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: #fff; display: grid; place-items: center; }
  .deck-nav button:hover:not([disabled]) { background: rgba(255, 255, 255, .1); }
  .deck-nav button[disabled] { color: rgba(255, 255, 255, .22); cursor: default; }

  /* Экраны компактнее, чтобы помещались в высоту */
  .deck .scard { min-height: 0; padding: 18px 20px; gap: 8px; }
  .deck .scard .ico-tile { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 4px; }
  .deck .scard__t { font-size: 24px; }
  .deck .scard__d { font-size: 14px; line-height: 1.4; }
  .deck .scard__f { padding-top: 12px; }
  .deck .grid3 { gap: 16px; }
  .deck .wlist .wrow { padding: 9px 8px; }
  .deck .wlist .wrow__t { font-size: 19px; }
  .deck .works-intro { padding-bottom: 84px; }
  .deck .prices__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
  .deck .table-wrap { margin-top: 0; }
  .deck .ptable th, .deck .ptable td { padding: 12px 10px; }
}
@media (min-width: 1200px) and (min-height: 620px) and (max-height: 820px) {
  .deck .display { font-size: clamp(40px, 7vh, 64px); }
  .deck .scard { padding: 18px 20px; }
  .deck .scard__t { font-size: 22px; }
  .deck .split__side { gap: 14px; }
  .deck .hero__img { max-height: 60vh; width: auto; }
}

/* Цены: шаги столбиком */
.steps3--col { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
.steps3--col li { flex-direction: row; align-items: center; }
.steps3--col span { flex-shrink: 0; }
.steps3--col li { position: relative; padding-bottom: 26px; align-items: flex-start; }
.steps3--col li > p { padding-top: 12px; }
.steps3.steps3--col li:not(:last-child)::after { display: block; left: 24px; right: auto; top: 52px; bottom: 4px; width: 1.5px; height: auto; }
.prices__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; } /* колонка не шире экрана — таблица прокручивается внутри */

/* Кнопка «Наверх» — левый нижний угол */
.totop { position: fixed; left: 20px; bottom: 20px; z-index: 45; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(8, 32, 50, .88); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--accent); color: var(--raw-900); border-color: var(--accent); }
.totop[hidden] { display: grid; }
@media (max-width: 600px) { .totop { left: 16px; bottom: 16px; width: 46px; height: 46px; } }


/* Таблица цен: ссылка «Обсудить» с пунктиром */
.ptable__act { text-align: right !important; }
.dlink { border: 0; padding: 0; background: none; color: var(--accent); font: 700 16px/1.4 var(--font-heading); text-transform: uppercase; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.dlink:hover { text-decoration-style: solid; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Первый экран: на небольших экранах всё чуть мельче, кнопка и «Мои работы» — в один ряд */
.hero__h { font-size: clamp(34px, min(4.7vw, 8.2vh), 72px); }
.hero__sub { font-size: clamp(16px, 1.35vw, 19px); margin-top: clamp(16px, 2.4vh, 28px); }
.hero__lead { font-size: clamp(15px, 1.4vw, 20px); }
.hero__cta { flex-wrap: nowrap; gap: clamp(16px, 2.6vw, 48px); margin-top: clamp(20px, 3.4vh, 34px); padding-bottom: clamp(18px, 3vh, 30px); }
.hero__cta .btn--lg { white-space: nowrap; }
.hero__cta .tlink { white-space: nowrap; }
.me { margin-top: clamp(16px, 3vh, 30px); }
@media (max-width: 380px) { .hero__cta { gap: 12px; } .hero__cta .btn--lg { padding: 0 14px; } }

/* Одна колонка (до 1600px): компактная строка — номер, лого, название и адрес в одну линию */
@media (min-width: 641px) and (max-width: 1599px) {
  .wrow { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: 'n go ext'; padding: 7px 8px; }
  .wrow__d { display: none; }
  .wrow__ext { justify-self: end; }
  .hs .wrow { padding: 6px 8px; }
}


/* Лента «Услуги» — мятная тема */
.hs--mint { background: var(--accent-4); color: var(--raw-900); --ink: var(--raw-900); --ink-muted: var(--raw-500); --border: rgba(8, 32, 50, .14); --link: var(--accent-2); }
.hs--mint .hs__bar { color: var(--raw-500); }
.hs--mint .hs__count { color: var(--raw-900); }
.hs--mint .hs__line i { background: var(--accent-2); }
.hs--mint .svc-panel { background: none; }
@media not ((min-width: 1200px) and (min-height: 620px)) { .hs .services-intro { flex-basis: 100%; } }
.hs .services-intro > .wrap { padding: 0; }
.svc--panel { width: 100%; align-items: center; }
.svc__t { margin-bottom: 4px; }
.svc--panel .lead { margin: 16px 0 24px; }
.svc--panel .kv { margin-bottom: 28px; }
.svc--panel .svc__list .ticks { gap: 10px; }
/* на телефоне экраны услуг — карточки в свайпе, как работы */
@media not ((min-width: 1200px) and (min-height: 620px)) { .hs--mint .svc-panel { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .55); } }
/* Планшет и узкое окно: лента «Услуги/Работы» — одна колонка, без двухколоночного сжатия */
@media (min-width: 641px) and (max-width: 1199px) {
  .hs .split { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .hs .services-intro .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hs .services-intro .grid3 { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .svc--panel .display { font-size: clamp(36px, min(4.6vw, 7vh), 64px); }
  .deck .svc--panel .lead { font-size: clamp(16px, 1.3vw, 19px); }
  .deck .svc__list { padding: clamp(20px, 2.4vw, 36px); }
  .deck .svc__list .ticks li { font-size: 15px; }
  .hs .services-intro .split,
  .deck .services-intro > .wrap.split { grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 48px; }
}

/* Обзор услуг на узком desktop в deck: две колонки карточек, описание в карточке скрыто */
@media (min-width: 1200px) and (max-width: 1399px) and (min-height: 620px) {
  .hs .services-intro .split,
  .deck .services-intro > .wrap.split { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 36px; }
  .services-intro .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .services-intro .scard { padding: 16px 18px; gap: 8px; }
  .services-intro .scard .ico-tile { width: 44px; height: 44px; }
  .services-intro .scard__t { font-size: 20px; }
  .services-intro .scard__d { display: none; }
  .services-intro .scard__p { font-size: 19px; }
  .services-intro .muted { font-size: 15px; line-height: 1.4; }
  .services-intro .ticks li { font-size: 14px; }
}

/* Экраны услуг на низких окнах: список плотнее */
@media (min-width: 1200px) and (min-height: 620px) and (max-height: 780px) {
  .deck .svc__list { padding: 18px 22px; }
  .deck .svc__list .h-card { margin-bottom: 12px; font-size: 20px; }
  .deck .svc--panel .svc__list .ticks { gap: 5px; }
  .deck .svc__list .ticks li { font-size: 14px; }
  .deck .svc__note { margin-top: 12px; padding-top: 10px; font-size: 13px; }
}

/* Презентация: колонки экрана выравниваются по центру; если колонка не помещается по высоте,
   скрипт уменьшает её (zoom) — без внутренней прокрутки */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .screen .split, .deck .screen .prices__in, .deck .screen .contact__in, .hs .split, .svc--panel { align-items: center; }
  .hs[style*='--n:1'] .hs__track { transform: none !important; }
}

/* В режиме презентации экраны всегда в две колонки (левая — заголовок, правая — содержимое) */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .screen .split, .hs .split { grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
  .svc--panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); }
}
@media (min-width: 1400px) and (min-height: 620px) {
  .deck .screen .split, .hs .split { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); }
}
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .deck .hero__img { max-height: calc(100dvh - var(--hdr-h) - 120px); width: auto; max-width: 100%; justify-self: center; }
}
/* Очень низкие окна: левая часть экрана услуги компактнее (она не прокручивается) */
@media (min-width: 1200px) and (min-height: 620px) and (max-height: 700px) {
  .deck .svc__head { margin-bottom: 10px; }
  .deck .svc__head .ico-tile { width: 44px; height: 44px; }
  .deck .svc--panel .display { font-size: clamp(32px, 6.4vh, 44px); }
  .deck .svc--panel .lead { font-size: 15px; margin: 10px 0 16px; }
  .deck .svc--panel .kv { margin-bottom: 16px; gap: 10px; }
  .deck .svc--panel .kv__i { padding: 10px 16px; min-width: 150px; }
  .deck .svc--panel .kv__i b { font-size: 20px; }
}
@media (min-width: 1200px) and (min-height: 620px) and (max-height: 700px) {
  .deck .me img { width: 56px; height: 56px; }
  .deck .hero__lead { margin-top: 10px; }
  .deck .hero { padding-bottom: 72px; }
}
/* Экраны услуг на телефоне */
@media not ((min-width: 1200px) and (min-height: 620px)) {
  .svc-panel .display { font-size: clamp(30px, 8vw, 44px); }
  .svc-panel .kv { flex-wrap: nowrap; gap: 10px; }
  .svc-panel .kv__i { min-width: 0; flex: 1; padding: 12px 14px; }
  .svc-panel .kv__i b { font-size: 20px; }
  .svc-panel .btn--lg { white-space: nowrap; }
  .svc-panel .svc { gap: 20px; }
}

/* Цены: таблица компактнее, примечание без нижнего отступа */
.prices .note { margin-bottom: 0; }
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .prices .table-wrap { margin-bottom: 18px; }
  .deck .prices .ptable th, .deck .prices .ptable td { padding: 11px 10px; }
  .deck .prices .note { padding: 16px 20px; font-size: 15px; }
}

/* Единые поля слева и справа на всех экранах и страницах (от 900px):
   справа — место под номера разделов, слева — под кнопку «Наверх». Контент к ним не прилипает. */
@media (min-width: 900px) {
  :root { --side: max(var(--gutter), 104px); }
  .wrap { padding-left: var(--side); padding-right: var(--side); }
}
@media (min-width: 1200px) and (min-height: 620px) {
  .hs .panel { padding-left: var(--side); padding-right: var(--side); }
  .hs .works-intro > .wrap, .hs .services-intro > .wrap { padding-left: 0; padding-right: 0; }
}

/* Лента вбок: сдвиг догоняет прокрутку плавно, а не дёргается вслед за колесом.
   --p (0…1, позиция в ленте) задаёт скрипт; @property позволяет анимировать её как число. */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
@media (min-width: 1200px) and (min-height: 620px) {
  .hs { transition: --p .25s linear; } /* лёгкое сглаживание; основной разгон/торможение — у прокрутки */
}
@media (prefers-reduced-motion: reduce) { .hs { transition: none; } }
/* Полос прокрутки на сайте нет нигде: квиз и таблица на телефоне прокручиваются без видимой полосы */
.quiz__side, .quiz__main, .table-wrap { scrollbar-width: none; }
.quiz__side::-webkit-scrollbar, .quiz__main::-webkit-scrollbar, .table-wrap::-webkit-scrollbar { display: none; }

/* Длинная правая колонка. Левая колонка всегда стоит по центру экрана по вертикали:
   — обычный экран растёт по высоте, левая колонка прилипает и центрируется в видимой области;
   — в ленте сетка занимает высоту экрана, левая по центру, правая выровнена по верху и прокручивается скриптом */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .screen.is-tall { justify-content: flex-start; }
  .deck .screen.is-tall > .wrap { align-items: start; }
  .deck .screen.is-tall > .wrap > :first-child {
    position: sticky; top: calc(var(--hdr-h) + 16px); height: calc(100dvh - var(--hdr-h) - 96px);
    display: flex; flex-direction: column; justify-content: center;
  }
  .hs .panel.is-tall { justify-content: flex-start; }
  .hs .panel.is-tall > :is(.wrap, .svc) { height: 100%; }
  .hs .panel.is-tall :is(.split, .svc) { align-items: center; grid-template-rows: minmax(0, 100%); } /* ряд = высота экрана, длинная колонка выходит за него */
  .hs .panel.is-tall :is(.split, .svc) > :last-child { align-self: start; }
  .hs .panel :is(.split, .svc) > :last-child { will-change: transform; }
}
/* Экран услуги: «Стоимость» и «Смета» всегда в один ряд */
.svc--panel .kv { flex-wrap: nowrap; }
.svc--panel .kv__i { min-width: 0; flex: 1 1 0; max-width: 240px; }

/* Единое поле у краёв окна (--edge): от края до контента. В правом поле по центру — панель номеров,
   в левом — кнопка «Наверх»; зазоры до контента и до края равны. Одинаково на всех экранах и страницах. */
:root { --pill: 48px; --pill-gap: 32px; --edge: var(--gutter); } /* поле у края = зазор + панель + зазор */
@media (min-width: 900px) {
  :root { --side: max(var(--gutter), calc(var(--pill) + 2 * var(--pill-gap))); --edge: max(var(--side), calc((var(--vw, 100vw) - 1312px) / 2 + var(--side))); }
  .wrap { padding-left: var(--side); padding-right: var(--side); }
}
@media (min-width: 1200px) and (min-height: 620px) {
  .hs .panel { padding-left: var(--edge); padding-right: var(--edge); }
  .dots { width: var(--pill); right: calc((var(--edge) - var(--pill)) / 2); padding: 8px 6px; box-sizing: border-box; align-items: center; }
  .dots a { width: 34px; }
  .totop { left: calc((var(--edge) - 52px) / 2); }
}

/* Пара «кнопка + текстовая ссылка» везде как на первом экране: в один ряд, одного масштаба */
.row-cta, .hero__cta { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(16px, 2.6vw, 48px); }
.row-cta .btn, .hero__cta .btn { white-space: nowrap; }
.row-cta .tlink, .hero__cta .tlink { white-space: nowrap; }

/* Подписи полей форм — обычным шрифтом, без капса */
.form label:not(.check), .quiz__fields label:not(.check) { font: 500 15px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--raw-900); }
.form input::placeholder, .form textarea::placeholder, .quiz input::placeholder, .quiz textarea::placeholder { color: #8a949b; }
/* Шаги «01 → 02 → 03»: в ряд, когда колонке хватает ширины; иначе — вертикальный таймлайн */
.contact__text { container-type: inline-size; min-width: 0; }
@container (max-width: 600px) {
  .steps3--contact { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
}
/* Вертикальный таймлайн: кружок слева, текст справа, кружки соединены линией */
@container (max-width: 600px) {
  .steps3--contact li { flex-direction: row; align-items: flex-start; gap: 18px; padding: 0 0 30px; position: relative; }
  .steps3--contact li span { flex-shrink: 0; }
  .steps3--contact li > p { padding-top: 12px; }
  .steps3--contact li:not(:last-child)::after { display: block; left: 24px; right: auto; top: 52px; bottom: 4px; width: 1.5px; height: auto; }
}

/* Левый блок по центру по вертикали относительно правого — на всех страницах */
.split, .svc { align-items: center; }
/* Внутренние страницы (не главная и не «один экран»): левая и правая колонки — по верху */
body:not(.deck) .sec:not(.fit-screen) .split { align-items: start; }
body:not(.deck) .svc.svc--aside-pilot { align-items: start; }

/* Подвал экрана (режим презентации): полоса снизу в стиле шапки — в ней вся нижняя навигация:
   «Наверх» слева, стрелки по центру, в лентах — счётчик, прогресс и «Листайте вбок».
   Контент экрана живёт между шапкой и подвалом; длинная колонка уходит под подвал, а не на кнопки. */
:root { --foot-h: 84px; }
.deck-foot { display: none; }
@media (min-width: 1200px) and (min-height: 620px) {
  .deck-foot { display: block; position: fixed; left: 0; right: 0; bottom: 0; height: var(--foot-h); z-index: 30; background: rgba(44, 57, 75, .92); backdrop-filter: blur(8px); border-top: 1px solid rgba(255, 255, 255, .06); }
  .deck .screen { padding-bottom: calc(var(--foot-h) + 16px); }
  .hs .panel, .hs .works-intro { padding-bottom: calc(var(--foot-h) + 20px); }
  .deck .screen.is-tall > .wrap > :first-child { height: calc(100dvh - var(--hdr-h) - var(--foot-h) - 32px); }
  .deck-nav { bottom: calc((var(--foot-h) - 54px) / 2); z-index: 40; }
  .deck .totop { bottom: calc((var(--foot-h) - 52px) / 2); }
  /* счётчик, прогресс и подсказка той ленты, что на экране (у самих лент свой счётчик скрыт) */
  .hs__bar { display: none; }
  .foot-bar { height: 100%; display: flex; align-items: center; gap: 20px; padding: 0 var(--edge); font: 500 13px/1.4 var(--font-body); letter-spacing: 0; text-transform: uppercase; color: var(--raw-200); opacity: 0; transition: opacity .3s; }
  .deck-foot.has-lane .foot-bar { opacity: 1; }
  .deck-foot { transition: --p .25s linear; }
  .foot-count { color: #fff; min-width: 64px; }
  .foot-bar .hs__line { width: 240px; background: rgba(255, 255, 255, .16); }
  .foot-hint { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
}

/* Панель номеров справа — на прозрачной подложке; на светлых разделах (мятный, бирюзовый) номера тёмные */
@media (min-width: 1200px) and (min-height: 620px) {
  .dots { background: none; border-color: transparent; backdrop-filter: none; transition: color .3s; color: #fff; }
  .dots a { color: rgba(255, 255, 255, .55); transition: color .3s, background .3s; }
  .dots a:hover { color: #fff; }
  .dots a.is-on { color: var(--raw-900); background: var(--accent); }
  .dots.is-light a { color: rgba(8, 32, 50, .5); }
  .dots.is-light a:hover { color: var(--raw-900); }
  .dots.is-light a.is-on { color: #fff; background: var(--accent-2); }
}

/* Подвал — цвет текущего экрана (ставит скрипт), без своей полосы; на светлых экранах текст тёмный */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck-foot { background: var(--raw-900); backdrop-filter: none; border-top: 0; transition: --p .25s linear, background-color .35s; }
  .deck-foot.is-light .foot-bar { color: var(--raw-500); }
  .deck-foot.is-light .foot-count { color: var(--raw-900); }
  .deck-foot.is-light .hs__line { background: rgba(8, 32, 50, .16); }
  .deck-foot.is-light .hs__line i { background: var(--accent-2); }
}
/* Шапка — свой сплошной фон на всех экранах */
@media (min-width: 1200px) and (min-height: 620px) { .deck .hdr { background: var(--raw-700); backdrop-filter: none; } }

/* Первый экран всегда помещается по высоте: размеры зависят и от ширины, и от высоты окна;
   обе колонки — по центру по вертикали */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck #hero > .wrap { align-items: center; }
  .deck .hero__h { font-size: clamp(32px, min(4.7vw, 6.8vh), 72px); }
  .deck .hero__sub { font-size: clamp(15px, min(1.35vw, 2.3vh), 19px); margin-top: clamp(10px, 2.2vh, 28px); }
  .deck .hero__lead { font-size: clamp(14px, min(1.4vw, 2.3vh), 20px); margin-top: clamp(6px, 1.4vh, 16px); }
  .deck .hero__cta { margin-top: clamp(14px, 3vh, 34px); padding-bottom: clamp(12px, 2.6vh, 30px); }
  .deck .me { margin-top: clamp(12px, 2.6vh, 30px); }
  .deck .me img { width: clamp(44px, 7.5vh, 78px); height: clamp(44px, 7.5vh, 78px); }
  .deck .hero__img { max-height: calc(100dvh - var(--hdr-h) - var(--foot-h) - 48px); }
}

/* Фото: кнопка-аватар и просмотр крупно */
.me__photo { flex-shrink: 0; padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.me__photo:hover { transform: scale(1.06); box-shadow: 0 0 0 3px var(--accent); }
.me__photo img { display: block; border-radius: 50%; }
.zoom { padding: 0; border: 0; background: none; max-width: min(92vw, 92dvh); max-height: 92dvh; overflow: visible; cursor: zoom-out; }
.zoom::backdrop { background: rgba(8, 32, 50, .86); backdrop-filter: blur(4px); }
.zoom[open] { animation: zin .25s ease-out; }
@keyframes zin { from { opacity: 0; transform: scale(.92); } }
.zoom img { display: block; width: min(92vw, 92dvh, 1000px); height: auto; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.zoom__close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--raw-900); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
@media (max-width: 600px) { .zoom__close { top: 8px; right: 8px; } }

/* Форма заявки в режиме презентации: шире и ниже — имя и контакт в один ряд, размеры от высоты окна */
@media (min-width: 1200px) and (min-height: 620px) {
}

/* Карточка кейса на главной: размеры от высоты окна, чтобы всегда помещалась между шапкой и подвалом */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck #kejsy .case { padding: clamp(20px, 3.4vh, 40px) clamp(24px, 2.6vw, 40px); gap: clamp(12px, 2.2vh, 24px); }
  .deck #kejsy .case__t { font-size: clamp(26px, min(3vw, 4.6vh), 40px); }
  .deck #kejsy .case__grid { gap: clamp(14px, 2vh, 24px); }
  .deck #kejsy .case__grid dd { font-size: clamp(14px, 1.9vh, 16px); line-height: 1.4; }
  .deck #kejsy .urls { gap: clamp(8px, 1.2vh, 12px); }
  .deck #kejsy .urls__row { padding: clamp(10px, 1.5vh, 14px) 16px; }
  .deck #kejsy .urls__row code { font-size: clamp(12px, 1.6vh, 14px); line-height: 1.4; }
}



/* ── Подвал сайта ── */
.ftr { background: var(--raw-900); border-top: 1px solid rgba(210, 210, 210, .12); padding: 32px 0; color: var(--raw-200); font-size: 14px; }
.ftr__in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.ftr__logo img { height: 44px; width: auto; }
.ftr ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.ftr li + li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--raw-200); margin-right: 22px; vertical-align: middle; opacity: .6; }
.ftr ul a { color: var(--raw-200); text-decoration: none; text-transform: uppercase; }
.ftr ul a:hover { color: var(--accent); }
.ftr p { margin-left: auto; }
@media (max-width: 720px) { .ftr p { margin-left: 0; width: 100%; } }
/* В режиме презентации подвал — последняя остановка; нижняя полоса навигации под ним в его цвет */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .ftr { padding-bottom: calc(var(--foot-h) + 24px); }
}

/* Список работ в одну колонку: адрес сайта — всегда одной строкой, переносится название */
@media (min-width: 641px) and (max-width: 1599px) {
  .wrow__t { white-space: normal; }
  .wrow__ext { white-space: nowrap; }
}

/* Колонка «Мои работы» рядом со списком — только в режиме презентации */
@media (min-width: 1200px) and (max-width: 1599px) and (min-height: 620px) {
  .works-intro .split { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 40px; }
}
/* Страница «Цены»: таблица и примечание — на все 12 колонок */
/* равные отступы от шагов вверх (до заголовка) и вниз (до таблицы): 62px на компьютере, 56px на телефоне */
.prices--page .prices__in { gap: 34px; }
.prices--page .table-wrap { margin-top: 0; }
@media (max-width: 760px) { .prices--page .prices__in { gap: 40px; } }
/* три равные колонки (услуга, описание, стоимость) и узкая последняя — по ширине ссылки «Обсудить» */
.prices--page .ptable { table-layout: fixed; }
.prices--page .ptable thead th:last-child { width: 8em; }
/* по верху: первые строки всех ячеек на одной линии */
.prices--page .ptable tbody td, .prices--page .ptable tbody th { vertical-align: baseline; }
/* стоимость — по центру колонки: и заголовок, и цены */
.prices--page .ptable thead th:nth-child(3), .prices--page .ptable tbody td:nth-child(3) { text-align: center; }
.ptable .ptable__d { font: 400 15px/1.4 var(--font-body); color: var(--raw-200); white-space: normal; }
/* Таблица цен на узком экране — список: название услуги, под ним цена и «Обсудить» */
@media (max-width: 700px) {
  .ptable thead { display: none; }
  .ptable, .ptable tbody { display: block; }
  .ptable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .ptable th, .ptable td { padding: 0; border: 0; }
  .ptable tbody th, .ptable .ptable__d { grid-column: 1 / -1; font-size: 16px; }
  .ptable .ptable__d { font-size: 14px; }
  .prices--page .ptable { table-layout: auto; }
  .ptable td { font-size: 17px; }
}

/* Переключатель языков RU · EN · ES */
.langs { display: flex; align-items: center; gap: 2px; font: 500 13px/1.4 var(--font-body); letter-spacing: 0; }
.langs a, .langs span { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 6px; border-radius: 9999px; color: var(--raw-200); text-decoration: none; }
.langs a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.langs span[aria-current] { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(55, 190, 176, .5); }
.langs--mnav { margin-top: 18px; gap: 8px; }
.langs--mnav a, .langs--mnav span { min-width: 48px; height: 40px; font-size: 15px; }
/* Узкий телефон: кнопка и ссылка переносятся, если вместе не помещаются (длинные испанские подписи) */
@media (max-width: 480px) { .hero__cta, .row-cta { flex-wrap: wrap; } }

/* Заголовок первого экрана: в испанском слова длиннее — чуть мельче, чтобы осталось 3 строки */
.hero__h:lang(es) { font-size: clamp(30px, min(4vw, 5.9vh), 62px); }
@media (min-width: 1200px) and (min-height: 620px) { .deck .hero__h:lang(es) { font-size: clamp(30px, min(4vw, 5.9vh), 62px); } }
@media (max-width: 480px) { .hero__h:lang(es) { font-size: 32px; } }
/* Заголовок первого экрана всегда в 3 строки: размер ограничен шириной колонки текста */
.hero__text { container-type: inline-size; min-width: 0; }
.hero__h, .deck .hero__h { font-size: clamp(30px, min(4.7vw, 6.8vh, 11.2cqi), 72px); }
.hero__h:lang(es), .deck .hero__h:lang(es) { font-size: clamp(28px, min(4vw, 5.9vh, 9.4cqi), 62px); }
@media (max-width: 480px) { .hero__h { font-size: min(34px, 11.2cqi); } .hero__h:lang(es) { font-size: min(32px, 9.4cqi); } }

/* Первый экран: заголовок + подзаголовок. Размер заголовка — по ширине колонки (длинные фразы на en/es) */
.hero__h .c-accent { display: block; }
.hero__h, .deck .hero__h, .hero__h:lang(es), .deck .hero__h:lang(es) { font-size: clamp(30px, min(4.7vw, 7vh, 10cqi), 72px); }
.hero__lead { margin-top: clamp(14px, 2.6vh, 28px); max-width: 560px; color: var(--raw-200); }
@media (max-width: 480px) { .hero__h, .hero__h:lang(es) { font-size: min(36px, 10cqi); } }
.hero__h:lang(ru), .deck .hero__h:lang(ru) { font-size: clamp(32px, min(5.9vw, 9vh, 13.6cqi), 88px); }
@media (max-width: 480px) { .hero__h:lang(ru) { font-size: min(44px, 13.6cqi); } }
.hero__lead, .deck .hero__lead { margin-top: clamp(16px, 3.2vh, 32px); font-size: clamp(16px, min(1.45vw, 2.5vh), 20px); line-height: 1.4; }

/* Кнопки и пункты меню — никогда не в две строки */
.btn, .hdr__nav a, .langdd__btn { white-space: nowrap; }
.hdr__nav ul { flex-wrap: nowrap; }
.hdr__in { gap: clamp(16px, 2vw, 32px); }
.hdr__nav ul { gap: clamp(12px, 1.4vw, 22px); }
.hdr__nav li + li::before { margin-right: clamp(12px, 1.4vw, 22px); }

/* Выпадающий список языков */
.langdd { position: relative; }
.langdd__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 16px 0 20px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9999px; background: none; color: #fff; font: 700 16px/1.4 var(--font-heading); text-transform: uppercase; letter-spacing: 0; cursor: pointer; }
.langdd__btn:hover, .langdd__btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.langdd__btn svg { transition: transform .2s; }
.langdd__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.langdd__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 160px; padding: 6px; border-radius: 14px; background: var(--raw-900); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.langdd__list a, .langdd__list span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--raw-200); text-decoration: none; font-size: 15px; }
.langdd__list b { width: 22px; font: 500 12px/1.4 var(--font-body); letter-spacing: 0; color: var(--accent); }
.langdd__list a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.langdd__list span[aria-current] { color: #fff; }
@media (max-width: 1080px) { .langdd { margin-left: auto; } .hdr__burger { margin-left: 4px; } }
@media (max-width: 480px) { .langdd { display: none; } .hdr__burger { margin-left: auto; } }

/* Первый экран: декоративная картинка — только когда есть место справа от текста */
@media (max-width: 960px) { .hero__img { display: none; } }

/* Заголовок первого экрана: ровно три строки, один размер на всех языках —
   по самой длинной строке («Web Development»), строки не переносятся */
.hero__h > span { display: block; white-space: nowrap; }
.hero__h, .deck .hero__h, .hero__h:lang(ru), .hero__h:lang(es), .deck .hero__h:lang(ru), .deck .hero__h:lang(es) { font-size: clamp(30px, min(5.4vw, 7.6vh, 13.6cqi), 80px); }
@media (max-width: 480px) { .hero__h, .hero__h:lang(ru), .hero__h:lang(es) { font-size: min(40px, 13.6cqi); } }
/* Цена и срок в плашках — одной строкой, в том числе на телефоне */
.kv__i b { white-space: nowrap; font-size: clamp(16px, 2vw, 26px); }
body:not(.deck) .svc .kv { flex-wrap: nowrap; gap: 10px; }
body:not(.deck) .svc .kv__i { flex: 1 1 0; min-width: 0; padding: 12px 14px; }
.svc--panel .kv, .svc-panel .kv { flex-wrap: nowrap; }
.svc--panel .kv__i, .svc-panel .kv__i { flex: 1 1 0; max-width: none; min-width: 0; }

/* Политика конфиденциальности */
.legal h2 { font: 400 clamp(22px, 2.4vw, 28px)/1 var(--font-heading); text-transform: uppercase; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--raw-200); font-size: 16px; line-height: 1.4; }
.legal p > strong { font-family: var(--font-body); font-weight: 700; }
.sec--paper .legal p, .sec--paper .legal li, .sec--paper .legal h2 { color: var(--raw-900); }
.legal p + p { margin-top: 12px; }
/* Маркированные и нумерованные списки: отступ слева всегда 30px, список не стоит на одной линии с абзацами (Марина, 29.10.2026) */
.legal ul:not(.article-list) { list-style: disc; padding-left: 30px; margin: 10px 0; display: grid; gap: 6px; }
.legal ol:not(.article-list):not(.article-toc__list) { padding-left: 30px; margin: 10px 0; }
.legal .article-list { list-style: none; padding-left: 30px; margin: 16px 0 24px; }
.article__body h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--raw-900);
}
.article-table-wrap { margin: 20px 0 28px; overflow-x: auto; }
.article-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.article-table th,
.article-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.1; font-size: 16px; font-weight: 400; color: var(--raw-900); }
.article-table th { font-weight: 600; }
@media (max-width: 700px) {
  .article-table th, .article-table td { padding: 5px; }
  .article-table-wrap:has(th:nth-child(3)) { overflow: visible; }
  .article-table-wrap:has(th:nth-child(3)) .article-table,
  .article-table-wrap:has(th:nth-child(3)) .article-table tbody { display: block; }
  .article-table-wrap:has(th:nth-child(3)) thead { display: none; }
  .article-table-wrap:has(th:nth-child(3)) tr { display: block; margin: 0 0 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .article-table-wrap:has(th:nth-child(3)) td { display: block; padding: 5px 0; border: 0; }
  .article-table-wrap:has(th:nth-child(3)) td:first-child { font-weight: 600; }
  .article-table-wrap:has(th:nth-child(3)) td:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 600; }
}
.article__body h3:first-child { margin-top: 0; }
.article__body .article-points + h3,
.article__body .article-tariffs + h3 { margin-top: 32px; }
.article-points {
  display: grid;
  gap: 12px;
  margin: 20px 0 28px;
}
@media (min-width: 720px) {
  .article-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
.article-point {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--accent-4);
}
.article-point h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--accent-2); }
.article-point p { margin: 0; font-size: 15px; line-height: 1.4; }
.article-tariffs {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}
@media (min-width: 560px) {
  .article-tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
.article-tariff {
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(8, 32, 50, 0.12);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 32, 50, .06);
}
.article-tariff h3 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 600;
  color: var(--accent-2);
}
.article-tariff p { margin: 0; font-size: 16px; line-height: 1.4; }
.article-tariffs--stat { align-items: stretch; }
.article-tariffs--stat .article-tariff {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 18px 16px 16px;
  gap: 8px;
}
.article-tariffs--stat .article-tariff h3 { margin: 0; font-size: clamp(17px, 2vw, 19px); }
.article-tariff__body {
  margin: 0;
  max-width: 20em;
  font-size: 16px;
  line-height: 1.4;
  color: var(--raw-900);
}
.article-tariff__val {
  font-weight: 600;
  font-size: 1.125em;
  color: var(--raw-900);
  white-space: nowrap;
}
.article-tariff__sub {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--raw-500);
}
.article-list {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 16px;
  line-height: 1.4;
}
.article-list--num { counter-reset: artli; gap: 14px; }
.article-list--num > li {
  counter-increment: artli;
  display: grid;
  grid-template-columns: 1.85rem 1fr;
  column-gap: 10px;
  align-items: start;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}
.article-list--num > li::before {
  content: counter(artli) ".";
  grid-column: 1;
  grid-row: 1 / -1;
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  text-align: right;
}
.article-list--num > li > * { grid-column: 2; }
.article-list--bullet { gap: 8px; }
.article-list--bullet > li {
  position: relative;
  padding: 0 0 0 18px;
  border: 0;
  background: none;
  border-radius: 0;
}
.article-list--bullet > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}
.article-list__lead {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--raw-900);
  line-height: 1.4;
}
.article-list__text {
  display: block;
  color: var(--raw-900);
  line-height: 1.4;
}
.article-byline {
  margin-top: 36px;
  padding: 20px 22px;
  border-radius: 16px;
  border-left: 4px solid var(--accent-2);
  background: var(--accent-4);
}
.article-byline p { margin: 0; font-size: 16px; line-height: 1.4; }
.legal a { color: var(--accent); }
.check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ftr p a { color: var(--raw-200); }
.ftr p a:hover { color: var(--accent); }

/* Поле «Расскажите о задаче»: без полосы прокрутки и уголка изменения размера */
.form textarea { min-height: 96px; }
.form textarea, .quiz textarea { resize: none; scrollbar-width: none; }
.form textarea::-webkit-scrollbar, .quiz textarea::-webkit-scrollbar { display: none; }
.legal h1 { margin-bottom: 16px; }
.article-index { margin-top: 40px; max-width: 52rem; }
.article-index__item { padding: 28px 0; border-top: 1px solid var(--border); }
.article-index__item:first-child { padding-top: 0; border-top: 0; }
.article-index__item:last-child { padding-bottom: 0; }
.article-index__t { font: 400 clamp(22px, 2.8vw, 32px)/1.4 var(--font-body); text-transform: uppercase; }
.article-index__t a { color: var(--white); text-decoration: none; }
.article-index__t a:hover { color: var(--accent); }
.article-index__d { margin-top: 12px; font-size: 16px; line-height: 1.4; color: var(--raw-200); }
.article__body { margin-top: 24px; }
.article__body > :first-child { margin-top: 0; }
.faq-acc { margin: 40px 0; }
/* Врезка в конце статьи: «Нужна похожая задача?» + кнопка квиза (вместо далёкого блока с формой) */
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 56px; padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--raw-900); color: var(--white); }
.article-cta__t { font: 500 clamp(20px, 2vw, 24px)/1 var(--font-body); }
.article-cta__d { margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--raw-200); }
.article-cta .btn { flex-shrink: 0; }
@media (max-width: 700px) { .article-cta { flex-direction: column; align-items: flex-start; } }
.faq-acc > h2, .sec--paper .legal .faq-acc > h2 { margin-bottom: 30px; }
.faq-acc__list { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fafafa; }
.faq-acc__item { border-bottom: 1px solid var(--border); }
.faq-acc__item:last-child { border-bottom: 0; }
.faq-acc__q { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; padding: 16px 44px 16px 18px; position: relative; }
.faq-acc__q::-webkit-details-marker { display: none; }
.faq-acc__q::marker { content: ''; }
.faq-acc__q::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s;
}
.faq-acc__item[open] > .faq-acc__q::after { transform: translateY(-35%) rotate(-135deg); }
.faq-acc__q h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
  color: var(--raw-900);
}
.faq-acc__a { padding: 0 18px 16px; }
.faq-acc__a p { margin: 0; font-size: 16px; line-height: 1.4; color: var(--raw-900); }
.article-toc { margin: 28px 0 36px; padding: 22px 26px; border-radius: 16px; border: 1px solid var(--border); background: var(--accent-4); }
.article-toc__title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--link);
  margin: 0 0 14px;
}
.article-toc__list {
  margin: 0;
  padding-left: 1.75em;
  list-style: decimal;
  list-style-position: outside;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.2;
}
.article-toc__list li { padding-left: 0.2em; }
.article-toc__list a { color: var(--raw-900); text-decoration: none; font-size: inherit; line-height: inherit; }
.article-toc__list a:hover { color: var(--accent-2); }
.sec--paper .legal h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; line-height: 1; text-transform: uppercase; margin: 40px 0 14px; }
.article-page .article__body,
.article-page .article-toc__list,
.article-page .faq-acc,
.article-page .article-tariffs,
.article-page .article-points,
.article-page .article-byline,
.article-page .article-list,
.article-page .article-tariff__body,
.article-page .article-tariff__val,
.article-page .article-tariff__sub,
.article-drawer__list {
  font-family: var(--font-body);
}
.article-page h1,
.article-page h2,
.article-page .display-md {
  font-family: var(--font-heading);
}
.article-topbar-sentinel { height: 1px; margin: 0; pointer-events: none; }
.article-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: clamp(20px, 3vw, 32px);
  position: sticky;
  top: var(--hdr-h);
  z-index: 45;
  padding: 10px 0 12px;
  background: var(--page-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.article-topbar.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 28px rgba(8, 32, 50, .06);
}
.article-topbar .crumbs { margin-bottom: 0; flex: 1 1 12rem; min-width: 0; }
.article-series {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
}
.article-series__menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--raw-700);
  color: var(--white);
  font: 700 16px/1.4 var(--font-heading);
  text-transform: uppercase;
  transition: background .15s;
}
a.article-series__menu { text-decoration: none; color: var(--white); }
.article-series__menu:hover { background: var(--raw-500); }
.article-series__menu svg { flex-shrink: 0; opacity: .9; }
.article-drawer-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(8, 32, 50, .45); }
.article-drawer {
  position: fixed; z-index: 60; top: 0; right: 0; width: min(520px, 96vw); height: 100%;
  max-height: 100dvh; background: var(--raw-700); color: var(--white);
  transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, .35);
}
.article-drawer.is-open { transform: translateX(0); }
.article-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 16px; border-bottom: 1px solid var(--border); }
.article-drawer__title { font: 400 clamp(18px, 2vw, 22px)/1 var(--font-heading); text-transform: uppercase; margin: 0; color: var(--white); }
.article-drawer__close { flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.article-drawer__close:hover { background: rgba(255, 255, 255, .14); }
.article-drawer__list {
  margin: 0;
  padding: 8px 24px 28px;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  align-content: flex-start;
  scrollbar-color: rgba(255, 255, 255, .35) transparent;
  scrollbar-width: thin;
}
.article-drawer__list::-webkit-scrollbar { width: 8px; }
.article-drawer__list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .28); border-radius: 8px; }
.article-drawer__list::-webkit-scrollbar-track { background: transparent; }
.article-drawer__list li { flex: 0 0 auto; border-top: 1px solid var(--border); }
.article-drawer__list li:first-child { border-top: 0; }
.article-drawer__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border: 0;
  background: none;
  text-decoration: none;
  color: var(--white);
}
a.article-drawer__item:hover .article-drawer__text { color: var(--accent); }
.article-drawer__list li.is-current .article-drawer__item { cursor: default; }
.article-drawer__n {
  flex-shrink: 0;
  width: 1.6em;
  font: 400 12px/1.4 var(--font-body);
  letter-spacing: 0;
  color: var(--raw-200);
  opacity: .65;
}
.article-drawer__text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.4;
}
.article-drawer__list li.is-current .article-drawer__text { color: var(--accent); }
body.article-drawer-open { overflow: hidden; }
@media (max-width: 640px) {
  .article-topbar { flex-direction: column; align-items: stretch; }
  .article-topbar .crumbs { flex: 0 0 auto; }
  .article-series { justify-content: stretch; width: 100%; }
  .article-series__menu { flex: 1; justify-content: center; }
}

/* Подвал: документы — отдельной строкой мелким шрифтом */
.ftr__legal { width: 100%; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; }
.ftr__legal a { color: var(--raw-200); opacity: .75; text-decoration: none; }
.ftr__legal a:hover { color: var(--accent); opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* «← Налево  Направо →» в нижней полосе — кнопки листания ленты */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck-foot:not(.has-lane) .foot-bar { pointer-events: none; visibility: hidden; }
  .foot-side { margin-left: auto; display: inline-flex; align-items: center; gap: 28px; }
  .foot-side button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: color .2s, opacity .2s; }
  .foot-side button:hover { color: var(--accent); }
  .deck-foot.is-light .foot-side button:hover { color: var(--raw-900); }
  .foot-side button:disabled { opacity: .35; cursor: default; color: inherit; }
  .foot-side button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
}

/* Дальний переход сквозь ленту: содержимое коротко гаснет и появляется уже на нужном разделе */
#main { transition: opacity .3s ease; }
#main.is-jump { opacity: 0; transition-duration: .18s; }

/* Футер: сверху логотип и меню, ниже под линией — копирайт (всегда слева) и юридические ссылки */
.ftr { padding: 40px 0 32px; font-size: 14px; }
.ftr__in { display: block; }
.ftr__top { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(210, 210, 210, .12); font-size: 13px; }
.ftr .ftr__bottom p { margin: 0; width: auto; }
.ftr__copy { color: var(--raw-200); }
.ftr__legal { width: auto; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13px; }
@media (max-width: 720px) {
  .ftr__top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ftr__top nav { width: 100%; }
  .ftr__top ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .ftr__top li + li::before { display: none; }
  .ftr__bottom { flex-direction: column; align-items: flex-start; }
}
/* вне режима презентации кнопка «наверх» висит внизу слева — футер оставляет под неё место */
@media not ((min-width: 1200px) and (min-height: 620px)) {
  .ftr { padding-bottom: 96px; }
}

/* Смена языка: страница открывается сразу на том же месте — до восстановления позиции содержимое скрыто */
html.is-restoring #main, html.is-restoring .ftr { opacity: 0; transition: none; }
html.is-restoring { scroll-behavior: auto; }

/* Cookie: окно согласия внизу экрана и ссылка «Настройки cookie» в футере */
.ck { position: fixed; z-index: 70; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(640px, calc(100% - 32px)); display: flex; align-items: center; gap: 14px 24px; padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; background: rgba(8, 32, 50, .96); backdrop-filter: blur(8px); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); color: var(--raw-200); font-size: 14px; line-height: 1.4; }
.ck[hidden] { display: none; }
.ck p { margin: 0; flex: 1 1 auto; }
.ck a { color: var(--accent); }
.ck__btns { display: flex; gap: 10px; flex: none; }
.ck .ck__no { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.ck .ck__no:hover { box-shadow: inset 0 0 0 1px #fff; }
@media (max-width: 600px) { .ck { flex-direction: column; align-items: stretch; bottom: 12px; } .ck__btns .btn { flex: 1; } }
@media (min-width: 1200px) and (min-height: 620px) { .deck .ck { bottom: calc(var(--foot-h) + 12px); } }
.ftr__legal [data-ck-open] { padding: 0; border: 0; background: none; color: var(--raw-200); opacity: .75; font: inherit; cursor: pointer; }
.ftr__legal [data-ck-open]:hover { color: var(--accent); opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* 26.10.2026: узкий шрифт — только у заголовков H1 и H2; длинные названия — обычным шрифтом и без капса */
.scard__t, .wrow__t, .work__t, .case__t, .quiz__q, .article-index__t { text-transform: none; font-weight: 500; line-height: 1; }
.scard__t, .deck .scard__t, .svc-catalog .scard__t, .services-intro .scard__t { font-size: clamp(17px, 1.4vw, 20px); overflow-wrap: normal; hyphens: manual; }

/* База: все заголовки (h1–h6) — межстрочное 1; весь текст — 1.4 (27.10.2026) */
h1, h2, h3, h4, h5, h6 { line-height: 1; }

/* Главная: услуги — те же белые полосы, что на странице услуг (размеры не зависят от общих правил экрана презентации) */
.services-intro .svc-cat__list .scard, .deck .svc-cat__list .scard { padding: 12px 20px; gap: 4px 20px; min-height: 0; }
.services-intro .svc-cat__list .scard .ico-tile, .deck .svc-cat__list .scard .ico-tile { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.services-intro .svc-cat__list .scard__t, .deck .svc-cat__list .scard__t { font-size: 18px; }
.services-intro .svc-cat__list .scard__d, .deck .svc-cat__list .scard__d { display: block; font-size: 14px; line-height: 1.4; }
.services-intro .svc-cat__list .scard__p, .deck .svc-cat__list .scard__p { font-size: 19px; }
.services-intro .svc-cat__list .scard__f, .deck .svc-cat__list .scard__f { padding: 0; margin: 0; border: 0; }

/* Статья и кейс: заголовок слева (6 колонок из 12), оглавление справа (6 колонок) */
.article-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto auto 1fr; column-gap: 40px; align-items: start; }
.article-head > h1 { grid-column: 1 / span 6; grid-row: 1; margin: 0; }
.article-head > .article-lead { grid-column: 1 / span 6; grid-row: 3; margin: 24px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; color: var(--ink-muted); }
.article-head > .article-date { grid-column: 1 / span 6; grid-row: 4; margin: 20px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-muted); }
.article-head > .article-toc { grid-column: 7 / span 6; grid-row: 1 / span 5; margin: 0 0 36px; }
.article-head--solo > h1 { grid-column: 1 / -1; margin-bottom: 20px; }
/* Адрес сайта проекта в начале кейса: сразу под H1, иконка и крупная ссылка без рамки (Марина, 29.10.2026: «на самом видном месте», рамка не нужна) */
.article-head > .article-site { grid-column: 1 / span 6; grid-row: 2; margin: 24px 0 0; }
.article-site a { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.2; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.article-site a svg { flex: none; color: var(--accent-2); }
.article-site a b { color: var(--accent-2); font-weight: 700; }
.article-site a:hover b { text-decoration: underline; }
.article-head--solo > .article-site { grid-column: 1 / -1; margin: 0 0 20px; }
/* Верх букв H1 на одной высоте с верхом букв заголовка оглавления: отступ рамки и поля оглавления 23px, поправка на разницу кегля (верх капители 0.13 кегля при межстрочном 1) */
@media (min-width: 901px) {
  .article-head:not(.article-head--solo) > h1 { margin-top: calc(23px - 0.1308 * (clamp(32px, 4vw, 44px) - clamp(22px, 2.4vw, 28px))); }
}
.article-head--solo > .article-lead { grid-column: 1 / -1; margin: 0 0 20px; }
.article-head--solo > .article-date { grid-column: 1 / -1; margin: 0 0 20px; }
@media (max-width: 900px) {
  .article-head { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .article-head > h1, .article-head > .article-site, .article-head > .article-lead, .article-head > .article-date, .article-head > .article-toc { grid-column: 1 / -1; grid-row: auto; }
  .article-head > .article-site { margin: 0 0 20px; }
  .article-head > h1 { margin-bottom: 20px; }
  .article-head > .article-lead { margin: 0 0 20px; }
  .article-head > .article-date { margin: 0 0 20px; }
}

/* Главная-лендинг: все экраны на одной сетке в 12 колонок.
   Первый экран — 6 + 6; услуги, работы, цены, контакты — 4 + 8 (слева заголовок, справа содержимое). */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .screen > .wrap.hero__in,
  .deck .screen > .wrap.split,
  .deck .screen > .wrap.prices__in {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .deck .screen > .wrap.hero__in > * { grid-column: span 6; min-width: 0; }
  .deck .screen > .wrap.split > :first-child,
  .deck .screen > .wrap.prices__in > :first-child { grid-column: span 4; min-width: 0; }
  .deck .screen > .wrap.split > :last-child,
  .deck .screen > .wrap.prices__in > :last-child { grid-column: span 8; min-width: 0; max-width: none; }
}

/* Главная, десктоп: заголовок первого экрана крупнее; по высоте окна уменьшается, чтобы экран помещался */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .hero__h:lang(ru) { font-size: clamp(40px, min(5.6vw, 8.9vh, 15.6cqi), 88px); }
}

/* Заголовок первого уровня: на этом сайте межстрочное 1 (при 0.8 Roboto Condensed перекрывает верх соседней строки, в частности «Й»; решение Марины 28.10.2026), межбуквенное −0.8px; остальные заголовки — 1, текст — 1.4 */
html h1, html h1[class], .deck .hero__h { line-height: 1; letter-spacing: -.8px; }

/* Заголовки (Roboto Condensed) — максимально жирные, вес 900 (Марина, 27.10.2026); кнопки и ссылки остаются обычным весом */
html h1, html h2, html h1[class], html h2[class], html .display, html .display-md, html .hero__h, html .h-card, html .proj__t, html .legal h2, html .sec--paper .legal h2, html .article-drawer__title { font-weight: 900; }

/* Первый экран: блок кнопок — чуть больше отступ сверху (от текста) и снизу (до линии), на 27.10.2026 +10px при окне 900px */
.deck .hero__cta { margin-top: clamp(18px, 4.2vh, 44px); padding-bottom: clamp(16px, 3.6vh, 40px); }

/* Все кнопки сайта — один размер: на десктопе высота 55px (переключатель языка и «Все статьи» — как .btn) */
@media (min-width: 961px) { .langdd__btn, .article-series__menu { min-height: 55px; } }

/* Первый экран на фоновой картинке (макет 27.10.2026): фото — assets/img/hero-bg.webp, пока его нет — временный фон (круг и рифлёная панель) */
.hero { position: relative; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--raw-900); }
.hero__bg > i { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 32, 50, .94) 0%, rgba(8, 32, 50, .62) 40%, rgba(8, 32, 50, 0) 66%); }
.hero__bg::before { content: ''; position: absolute; right: 9%; top: 50%; width: min(52vw, 84vh); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #34506a 0%, #1b3347 55%, #112435 100%); }
.hero__bg::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 17%; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 18px, rgba(255, 255, 255, .04) 18px 36px); }
/* Фото выровнено вправо и по центру высоты экрана (28.10.2026); верх и низ растворяются в фон.
   Размер фото: высота — не больше 82,8% высоты экрана и не больше 52,2% его ширины (28.10.2026: на 10% меньше прежних 92% и 58%). Меньше числа — меньше фото. */
.hero--photo .hero__bg { --photo-h: min(calc(100cqh * .828), calc(100cqw * .522)); }
.hero--photo .hero__bg::before { content: ''; position: absolute; display: block; right: 0; top: 50%; bottom: auto; width: auto; height: var(--photo-h); aspect-ratio: 1536 / 1024; transform: translateY(-50%); border-radius: 0;
  background: url(../img/hero-bg.webp) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, transparent 0, #000 20%, #000 80%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, transparent 0, #000 20%, #000 80%, transparent 100%); mask-composite: intersect; }
.hero--photo .hero__bg::after { display: none; }
@media (max-width: 960px) { .hero__bg > i { background: rgba(8, 32, 50, .78); } }

/* Цифры вертикального меню — в левом поле (зеркально прежнему правому) */
@media (min-width: 1200px) and (min-height: 620px) {
  .dots { right: auto; left: calc((var(--edge) - var(--pill)) / 2); }
  .dots span { right: auto; left: calc(100% + 12px); transform: translate(-6px, -50%); }
  .dots a:hover span, .dots a:focus-visible span { transform: translate(0, -50%); }
}

/* Первый экран: фон идёт до низа окна (нижняя полоса навигации прозрачная — её цвет берётся с секции) */
.hero.sec { background: transparent; }

/* Левое поле контента не меньше 96px, чтобы цифры меню слева не заходили на текст; на широких окнах ширина контента прежняя */
@media (min-width: 1200px) and (min-height: 620px) {
  :root { --wl: max(96px, calc((100vw - 1376px) / 2 + 96px)); }
  .deck .screen > .wrap.hero__in,
  .deck .screen > .wrap.split,
  .deck .screen > .wrap.prices__in,
  .deck .screen > .wrap.contact__in { max-width: 1376px; padding-left: 96px; padding-right: 96px; }
  .dots { left: calc((var(--wl) - var(--pill)) / 2); }
}


/* Единая рамка контента на всех страницах: шапка, заголовки, блоки и подвал начинаются и заканчиваются на одних линиях (Марина, 27.10.2026).
   Рамка шире 1376px не растёт; поле слева не меньше 96px (там цифры меню на главной). */
@media (min-width: 1200px) {
  :root { --wl: max(96px, calc((var(--vw, 100vw) - 1376px) / 2 + 96px)); --edge: var(--wl); }
  .wrap:not(.narrow) { max-width: 1376px; padding-left: 96px; padding-right: 96px; }
}

/* Главная, экран «Услуги и цены» — как внутренняя страница услуг: колонки выровнены по верху, заголовки карточек 20px жирные, внизу слева кнопка */
.services-intro .svc-cat__list .scard__t { font-size: clamp(17px, 1.4vw, 20px); font-weight: 900; }
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .services-intro > .wrap.split { align-items: start; }
}

/* Экран «Услуги и цены» на главной — копия внутренней страницы услуг: хлебные крошки, заголовок, текст, кнопка слева (текст 340px, те же переносы), список справа; межбуквенное заголовка то же */
.services-intro h2.display { letter-spacing: -.8px; }
.services-intro .crumbs { margin-bottom: clamp(16px, 3vh, 48px); }
@media (min-width: 1200px) and (min-height: 620px) {
  /* слева текст 340px (те же переносы, что на внутренней странице), справа список; расстояние между колонками 40px; колонки выровнены по верху */
  .deck .services-intro > .wrap > .split { display: grid; grid-template-columns: 340px minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .deck .services-intro .split__side { max-width: 340px; }
}
/* низкие окна: чуть плотнее список, чтобы экран с крошками помещался в одну высоту окна */
@media (min-width: 1200px) and (min-height: 620px) and (max-height: 820px) {
  .deck .services-intro .svc-cat__list { gap: 8px; }
  .deck .services-intro .svc-cat__list .scard { padding: 9px 20px; }
}

/* Экран «Цены» на главной — светлая тема, как у «Услуг» (мятный фон, тёмный текст) */
.prices.sec--mint .ptable thead th { color: var(--raw-500); background: rgba(8, 32, 50, .06); }
.prices.sec--mint .ptable a, .prices.sec--mint .ptable td { color: var(--raw-900); }
.prices.sec--mint .ptable a:hover { color: var(--accent-2); }
.prices.sec--mint .ptable .ptable__d { color: var(--raw-500); }
.prices.sec--mint .dlink { color: var(--accent-2); }
.prices.sec--mint .note { background: rgba(255, 255, 255, .6); color: var(--raw-500); }
.prices.sec--mint .note b { color: var(--raw-900); }

/* Высота строки одна у таблицы цен и списка работ на главной (--row-h); на низких окнах чуть меньше, чтобы экраны помещались */
@media (min-width: 1200px) and (min-height: 620px) {
  :root { --row-h: 48px; }
  .deck .wlist .wrow { height: var(--row-h); box-sizing: border-box; }
  .deck .prices .ptable tbody th, .deck .prices .ptable tbody td { height: var(--row-h); padding-top: 0; padding-bottom: 0; }
}
@media (min-width: 1200px) and (min-height: 620px) and (max-height: 800px) {
  :root { --row-h: 44px; }
}

/* Главная, экраны «Работы», «Цены», «Контакт»: левая и правая колонки выровнены по верху (как «Услуги»); весь блок по высоте экрана по центру */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .screen > .wrap.split,
  .deck .screen > .wrap.prices__in { align-items: start; }
}

/* Главная, десктоп: одна сетка колонок на всех экранах (Марина, 28.10.2026).
   Первый экран — 6 + 6 (50 на 50); «Услуги и цены» и «Мои работы» — одинаково 4 + 8 (1 к 2); расстояние между колонками 40px.
   «Контакт» — как нижний блок внутренних страниц (/portfolio/ и др.): базовая сетка `.contact__in`, левая часть и форма 1:1 (Марина, 28.10.2026). */
@media (min-width: 1200px) and (min-height: 620px) {
  .deck .screen > .wrap.hero__in,
  .deck .screen > .wrap.split,
  .deck .services-intro > .wrap > .split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; align-items: start; }
  .deck .screen > .wrap.split > :first-child,
  .deck .services-intro > .wrap > .split > :first-child { grid-column: span 4; min-width: 0; }
  .deck .screen > .wrap.split > :last-child,
  .deck .services-intro > .wrap > .split > :last-child { grid-column: span 8; min-width: 0; max-width: none; }
  .deck .services-intro .split__side { max-width: none; }
  .deck .services-intro .split__side > * { max-width: 340px; } /* текст слева, как прежде, 340px — те же переносы; сама колонка такая же, как у «Работ» */
  .deck .services-intro .split__side { gap: 28px; }
}

/* Цвета (Марина, 28.10.2026): все внутренние страницы — светлая тема, светло-салатовый фон (--accent-4); статьи и документы на «бумаге» тоже салатовые.
   Главная: только тёмный и бирюзовый (Тиффани), по очереди — первый экран тёмный, «Услуги» бирюзовый, «Работы» тёмный, «Контакт» бирюзовый. */
.sec--paper { --bg: var(--accent-4); }
.main--paper { background: var(--accent-4); }

/* Базовый фон всех светлых блоков — #edf5f3, почти белый, чуть затонированный (Марина, 28.10.2026): внутренние страницы и два светлых экрана главной («Услуги и цены», «Контакт») */
:root { --page-bg: #edf5f3; }
.sec--mint, .sec--paper { --bg: var(--page-bg); }
.main--paper { background: var(--page-bg); }

/* Светлая тема внутренних страниц: детали, у которых цвет был задан под тёмный фон, берут цвет из темы секции */
.sec--mint .proj__url, .sec--mint .feats span, .sec--mint .alist__go, .sec--mint .urls__row--good code { color: var(--accent-2); }
.sec--mint .proj__d, .sec--mint .facts dt, .sec--mint .feats p, .sec--mint .alist__d, .sec--mint .urls__row span { color: var(--ink-muted); }
.sec--mint .alist__item, .sec--mint .chips a { color: var(--ink); }
.sec--mint .alist__item:hover { background: rgba(8, 32, 50, .05); }
.sec--mint .alist__item:hover .alist__t, .sec--mint .chips a:hover { color: var(--accent-2); }
.sec--mint .chips a:hover { border-color: var(--accent-2); }
.sec--mint .feats li, .sec--mint .urls__row { background: rgba(255, 255, 255, .6); }
.sec--mint .urls__row--bad code { color: #b3412f; }
.sec--mint .urls__row--good { border-color: var(--accent-2); }
.sec--mint .flow__step p { color: var(--ink); }
.sec--mint .legal p, .sec--mint .legal li, .sec--mint .legal h2 { color: var(--ink); }
.sec--mint .legal p.muted { color: var(--ink-muted); }
.sec--mint .legal a, .sec--paper .legal a { color: var(--accent-2); }

/* Бирюзовый (Тиффани) не используем как фон (Марина, 28.10.2026): «Услуги и цены» и «Контакт» на главной и нижний блок внутренних страниц — светло-салатовые с тёмным текстом */
.sec--mint .steps3 li:not(:last-child)::after { background: rgba(8, 32, 50, .25); }

/* Описание услуги в списке на компьютере — всегда одна строка, не переносится (Марина, 28.10.2026); тексты в site.json примерно одной длины, 52–57 знаков. На телефоне и планшете перенос остаётся */
@media (min-width: 1200px) {
  .scard__d, .deck .svc-cat__list .scard__d, .services-intro .svc-cat__list .scard__d, .svc-catalog .svc-cat__list .scard__d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1200px) and (max-width: 1259px) {
  .svc-cat__list .scard__d { font-size: 11.5px; }
}

/* Активный номер экрана (кружок слева) — один цвет на всех экранах: тёмно-бирюзовый (--accent-2) с белой цифрой, как на светлых экранах (Марина, 28.10.2026; Тиффани тут слишком много) */
.dots a.is-on, .dots.is-light a.is-on { color: var(--white); background: var(--accent-2); }

/* Карусель скриншотов в статье: 5 колонок на компьютере, стрелки снаружи, 3 на планшете, 2 на телефоне (без стрелок, свайп); стрелки листают страницами (29.10.2026) */
.carousel { --cols: 5; --gap: 16px; position: relative; margin: 24px 0 32px; padding: 0 64px; }
.carousel__track { display: flex; align-items: center; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); height: auto; scroll-snap-align: start; border-radius: 10px; border: 1px solid var(--border); }
.carousel__slide { cursor: zoom-in; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--raw-700); color: var(--white); cursor: pointer; box-shadow: 0 6px 18px rgba(8, 32, 50, .22); transition: background .15s, opacity .15s; }
.carousel__btn:hover:not(:disabled) { background: var(--raw-500); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
@media (max-width: 900px) { .carousel { --cols: 3; } }
@media (max-width: 600px) { .carousel { --cols: 2; --gap: 12px; padding: 0; } .carousel__btn { display: none; } .carousel__track { overscroll-behavior-x: contain; } } /* на телефоне листают свайпом */

/* Блок «Основные характеристики проекта» в каждом кейсе: белая карточка с рамкой, иконка в плитке, как на плашке услуги (Марина, 29.10.2026; акцентную полосу слева Марина отклонила) */
.article__body .case-facts { margin: 28px 0 32px; padding: 22px 26px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 28px rgba(8, 32, 50, .06); }
.article__body .case-facts__head { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.article__body .case-facts .ico-tile { width: 44px; height: 44px; border-radius: 12px; }
.article__body .case-facts__title { margin: 0; font: 900 20px/1 var(--font-heading); text-transform: uppercase; color: var(--accent-2); }
.article__body .case-facts .article-list { margin: 0; padding-left: 0; } /* внутри карточки отступ задаёт колонка иконки */
/* колонка иконки 44px + зазор 16px: текст пунктов начинается на одной линии с заголовком, маркеров нет (Марина, 29.10.2026) */
.article__body .case-facts .article-list--bullet > li { padding-left: 60px; }
.article__body .case-facts .article-list--bullet > li::before { content: none; }
.article__body .case-facts__k { font-weight: 600; color: var(--raw-900); }
@media (max-width: 600px) { .article__body .case-facts { padding: 18px 18px 18px 20px; } }

/* Тройка связанных элементов в кейсе (сайт, канал, приложение): три карточки в ряд, только рамка без фона (белая заливка в статье только у блока характеристик, Марина 29.10.2026), между ними пунктирные линии со связью; на телефоне друг под другом, линии вертикальные (Марина, 29.10.2026) */
.article__body .case-flow { --gap: 48px; --line: var(--accent-2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 28px 0 32px; }
.article__body .case-flow__item { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 16px; }
.article__body .case-flow__item .ico-tile { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 4px; }
.article__body .case-flow__t { margin: 0; font: 900 20px/1 var(--font-heading); text-transform: uppercase; color: var(--accent-2); }
.article__body .case-flow__d { margin: 0; font-size: 16px; line-height: 1.4; color: var(--raw-900); }
.article__body .case-flow__item:not(:last-child)::after { content: ''; position: absolute; top: 37px; left: calc(100% + 1px); width: calc(var(--gap) - 2px); height: 10px;
  background: radial-gradient(circle at 5px 5px, var(--line) 4px, transparent 4.5px) left center / 10px 10px no-repeat, radial-gradient(circle at 5px 5px, var(--line) 4px, transparent 4.5px) right center / 10px 10px no-repeat, repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px) center / calc(100% - 20px) 2px no-repeat; }
@media (max-width: 760px) {
  .article__body .case-flow { grid-template-columns: minmax(0, 1fr); --gap: 40px; }
  .article__body .case-flow__item:not(:last-child)::after { top: calc(100% + 1px); left: 37px; width: 10px; height: calc(var(--gap) - 2px);
    background: radial-gradient(circle at 5px 5px, var(--line) 4px, transparent 4.5px) center top / 10px 10px no-repeat, radial-gradient(circle at 5px 5px, var(--line) 4px, transparent 4.5px) center bottom / 10px 10px no-repeat, repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px) center / 2px calc(100% - 20px) no-repeat; }
}

/* Коммерческий блок в конце кейса (предложение услуги): рамка акцентного цвета без фона, чтобы не сливался с текстом (Марина, 29.10.2026) */
.article__body .case-offer { margin: 40px 0 8px; padding: 8px 32px 28px; border: 2px solid var(--accent); border-radius: 16px; }
.article__body .case-offer > h2 { margin-top: 28px; }
@media (max-width: 600px) { .article__body .case-offer { padding: 4px 20px 22px; } }

/* Картинка в тексте кейса: по центру, без увеличения сверх собственного размера, рамка как у слайдов карусели (29.10.2026) */
.article__body .case-img { margin: 28px 0 32px; text-align: center; }
.article__body .case-img img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }

/* Галерея скриншотов в тексте кейса: по две в ряд, на телефоне в одну колонку (29.10.2026) */
.article__body .case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 32px; }
.article__body .case-gallery .case-img { margin: 0; }
.article__body .case-gallery .case-img img { display: block; width: 100%; }
.article__body .case-gallery .case-img figcaption { margin: 10px 0 0; font-size: 16px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--text); }
@media (max-width: 600px) { .article__body .case-gallery { grid-template-columns: minmax(0, 1fr); } }

/* Плейсхолдер под скриншот или отзыв в тексте кейса: пунктирная рамка без фона, внутри пометка Марине в квадратных скобках (заменить картинкой или отзывом; 29.10.2026) */
.article__body .case-ph { display: flex; align-items: center; justify-content: center; min-height: 280px; margin: 28px 0 32px; padding: 20px; border: 2px dashed var(--border); border-radius: 16px; text-align: center; }
.article__body .case-ph--review { min-height: 120px; }
.article__body .case-ph figcaption { max-width: 560px; font-size: 16px; line-height: 1.4; color: var(--accent-2); }
@media (max-width: 600px) { .article__body .case-ph { min-height: 200px; padding: 14px; } .article__body .case-ph--review { min-height: 100px; } }

/* Просмотрщик картинок карусели: крупно на весь экран, стрелки, счётчик, полоса превью внизу (29.10.2026) */
.lb { width: 100vw; height: 100vh; height: var(--lb-h, 100dvh); /* --lb-h выставляет скрипт в пикселях по высоте окна: не зависит от поддержки dvh */ max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--white); overflow: hidden; }
.lb::backdrop { background: rgba(8, 32, 50, .92); backdrop-filter: blur(4px); }
.lb[open] { display: flex; flex-direction: column; } /* без плавного появления: в полупрозрачном состоянии картинка выглядела засвеченной */
.lb__toolbar { position: relative; flex: 0 0 auto; min-height: 64px; padding: 10px 76px 10px 24px; display: flex; align-items: center; gap: 24px; }
.lb__count { flex: none; margin: 0; font: 500 15px/1 var(--font-body); color: rgba(255, 255, 255, .8); }
.lb__zoom-controls { display: flex; align-items: center; justify-content: center; flex: 1; gap: 8px; }
.lb__zoom-controls button { min-height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: var(--raw-700); color: var(--white); font: 700 16px/1 var(--font-heading); }
.lb__fit { text-transform: uppercase; }
.lb__scale { min-width: 48px; text-align: center; font: 400 14px/1.3 var(--font-body); }
.lb__stage { position: relative; flex: 1; min-height: 0; padding: 0 72px; overflow: hidden; }
.lb__viewport { height: 100%; width: 100%; overflow: auto; padding: 16px; overscroll-behavior: contain; }
.lb__img { display: block; max-width: none; max-height: none; width: auto; height: auto; margin: 0 auto; object-fit: contain; border-radius: 0; box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 1; filter: none; }
.lb, .carousel__slide { -webkit-user-select: none; user-select: none; }
.lb img, .carousel__slide { -webkit-user-drag: none; }
.lb__btn { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--raw-900); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transform: translateY(-50%); transition: background .15s; }
.lb__btn:hover { background: var(--accent-4); }
.lb__prev { left: 20px; }
.lb__next { right: 20px; }
.lb__close { top: 8px; right: 12px; transform: none; }
.lb__thumbs { position: relative; flex: 0 0 auto; display: flex; gap: 10px; overflow-x: auto; padding: 12px 20px 18px; scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs > :first-child { margin-left: auto; }
.lb__thumbs > :last-child { margin-right: auto; }
.lb__thumb { flex: 0 0 auto; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; opacity: .55; cursor: pointer; transition: opacity .15s, border-color .15s; }
.lb__thumb:hover { opacity: .9; }
.lb__thumb[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.lb__thumb img { display: block; height: 100%; width: auto; border-radius: 8px; }
@media (max-width: 600px) {
  .lb__toolbar { gap: 8px; padding: 8px 56px 8px 12px; }
  .lb__zoom-controls { gap: 4px; }
  .lb__zoom-controls button { padding: 0 6px; }
  .lb__close { width: 40px; height: 40px; top: 12px; right: 8px; }
  .lb__stage { padding: 0; }
  .lb__prev, .lb__next { display: none; } /* на телефоне листают свайпом */
  .lb__thumb { height: 56px; }
}

/* Страница услуг (30.10.2026): блоки в рамке с иконкой, по два в ряд; широкий блок (Telegram Mini App) выделен рамкой акцентного цвета; зазор между колонками 40px */
.svc-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.svc-calc__meta { margin: 0; font: 400 18px/1.3 var(--font-body); }
.svc__more { margin: 0 0 16px; max-width: 720px; font-size: 17px; line-height: 1.4; color: var(--ink-muted); }
.svc__main > .svc__more:last-of-type { margin-bottom: 28px; }
.svc-works-sec .svc-works-head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 40px; max-width: 640px; }
.svc-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); width: 100%; }
.svc-work { display: flex; flex-direction: column; min-width: 0; }
.svc-work__media { display: block; color: inherit; text-decoration: none; }
.svc-work:hover .svc-work__t { color: var(--accent-2); }
.svc-work .shot { border: 1px solid var(--border); }
.svc-work__cap { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; min-width: 0; }
.svc-work__n { font: 500 14px/1.4 var(--font-body); color: var(--accent); }
.svc-work__t { font: 500 clamp(18px, 1.6vw, 22px)/1 var(--font-body); color: var(--ink); text-decoration: none; transition: color .2s; }
.svc-work__d { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-muted); }
.svc-work__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }
.svc-work__ext { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--accent); text-decoration: none; }
@media (max-width: 720px) { .svc-works { grid-template-columns: 1fr; gap: 32px; } }
body:not(.deck) .sec--mint.svc-works-sec { padding-bottom: calc(var(--sec-y) / 2); }
.wlist--svc {
  align-self: stretch;
  min-width: 0;
  width: 100%;
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  grid-template-rows: none;
  column-gap: 0;
}
body:not(.deck) .sec--mint:has(.wlist--svc) { padding-bottom: calc(var(--sec-y) / 2); }
body:not(.deck) .sec--mint:has(.faq-acc) { padding-top: calc(var(--sec-y) / 2); padding-bottom: calc(var(--sec-y) / 2); }
body:not(.deck) .sec--mint .wrap > .faq-acc { margin: 0; }
body:not(.deck) .sec--mint:has(.chips) + .sec.contact,
body:not(.deck) .sec--mint:has(.faq-acc) + .sec--mint { padding-top: calc(var(--sec-y) / 2); }
.sec--mint .wlist--svc .wrow { cursor: default; }
.sec--mint .wlist--svc .wrow__go { color: var(--ink); }
.sec--mint .wlist--svc .wrow__d { color: var(--ink-muted); }
.sec--mint .wlist--svc .wrow:hover { background: rgba(8, 32, 50, .04); }
@media (min-width: 641px) and (max-width: 1599px) {
  .wlist--svc .wrow { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: 'n go ext'; }
  .wlist--svc .wrow__d { display: -webkit-box; }
}
.svc-top h1 { margin-bottom: 24px; }
.svc-top .ticks { margin-top: 16px; }
.svc-top .muted + .ticks { margin-top: 20px; }
.svc-top { padding-bottom: calc(var(--sec-y) / 2); }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: clamp(32px, 4vw, 56px); }
.svc-box { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--border); border-radius: var(--radius); }
.svc-box--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'main list' 'foot list'; align-content: start; gap: 20px 40px; border: 2px solid var(--accent); }
/* Заливка цвета Тиффани (Марина, 30.10.2026) */
.svc-box--wide { background: #81d8d0; border-color: #81d8d0; color: var(--ink); }
.svc-box--wide .svc-box__head .ico-tile { background: var(--white); }
.svc-box--wide .svc-box__meta, .svc-box--wide .svc-box__meta i, .svc-box--wide .svc-box__meta b { color: var(--ink); }
.svc-box button.tlink { border: 0; padding: 0; background: none; cursor: pointer; }
.svc-box--wide .tlink { color: var(--ink); }
.svc-box .btn--dark { width: auto; }
.svc-box--wide .svc-box__main { grid-area: main; }
.svc-box--wide .svc-box__list { grid-area: list; align-self: start; columns: 2; column-gap: 40px; }
.svc-box--wide .svc-box__list li { break-inside: avoid; margin-bottom: 8px; }
.svc-box--wide .svc-box__foot { grid-area: foot; align-self: end; }
.svc-box__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.svc-box__head .ico-tile { flex: none; background: var(--white); width: 60px; height: 60px; }
.svc-box__t { margin: 0; font-size: clamp(22px, 2vw, 28px); }
.svc-box__lead { margin: 0; }
.svc-box__list { margin: 0; }
.svc-box__foot { margin-top: auto; display: grid; gap: 16px; }
.svc-box__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; margin: 0; font-size: 18px; line-height: 1.4; }
.svc-box__meta i { margin-right: 4px; color: var(--ink-muted); font-style: normal; font-size: 15px; }
.svc-box__meta b { color: var(--accent-2); font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); line-height: 1; }
.svc-box .row-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .svc-box--wide { display: flex; flex-direction: column; }
  .svc-box--wide .svc-box__list { columns: 1; }
}


/* Сводная портфолио: две работы в ряд, широкая и узкая вразбежку. */
.portfolio-page { --bg: #202727; --ink: var(--white); --ink-muted: var(--raw-200); --link: #81d8d0; }
.portfolio-page h1 { line-height: .8; letter-spacing: -.8px; }
.portfolio-page .lead, .portfolio-page .crumbs { line-height: 1.3; }
.portfolio-grid { display: grid; gap: 40px; margin-top: 40px; }
.portfolio-row { display: grid; grid-template-columns: var(--portfolio-columns); gap: 40px; align-items: start; }
.portfolio-card { min-width: 0; }
.portfolio-card__link { display: block; color: inherit; text-decoration: none; }
.portfolio-card__preview { display: block; }
.portfolio-card__preview img { display: block; width: 100%; max-width: none; height: auto; }
.portfolio-card__caption { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: start; gap: 8px 16px; padding-top: 16px; }
.portfolio-card__title { font: 900 clamp(22px, 2.1vw, 30px)/1 var(--font-heading); text-transform: uppercase; overflow-wrap: anywhere; }
.portfolio-card__arrow { display: flex; justify-content: flex-end; color: var(--link); }
.portfolio-card__description { grid-column: 1 / -1; font: 400 16px/1.3 var(--font-body); color: var(--ink-muted); }
.portfolio-card__link:hover .portfolio-card__title { color: var(--link); }
.portfolio-card__link:focus-visible { outline-color: var(--link); outline-offset: 6px; }
@media (max-width: 640px) {
  .portfolio-grid { gap: 32px; margin-top: 32px; }
  .portfolio-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .portfolio-card__title { font-size: 26px; }
}


/* Портфолио: сайты и приложения на одной странице. */
.portfolio-tabs { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; border-bottom: 1px solid var(--border); }
.portfolio-tabs[hidden], .portfolio-panel[hidden] { display: none; }
.portfolio-tabs__tab { min-height: 55px; padding: 0 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink-muted); font: 700 16px/1.3 var(--font-heading); text-transform: uppercase; cursor: pointer; }
.portfolio-tabs__tab[aria-selected="true"] { border-bottom-color: var(--link); color: var(--link); }
.portfolio-tabs__tab:hover { color: var(--ink); }
.article-topics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.article-topics__tab[aria-selected="false"] { background: var(--white); color: var(--raw-900); box-shadow: none; border: 1px solid var(--border); }
.article-topics__count { margin-left: 4px; font-weight: 400; font-size: 13px; line-height: 1; }
[data-article-catalog] { padding-bottom: calc(var(--sec-y) / 3); }
.article-topic-list { margin-top: 40px; }
.article-topic-list:not([hidden]) + .article-topic-list:not([hidden]) { margin-top: 0; }
.article-topic-list[hidden] { display: none; }
.article-topic-list .alist { margin-top: 0; border-top: 1px solid var(--border); }
.article-topic-list:not([hidden]) + .article-topic-list:not([hidden]) .alist { border-top: 0; }
.portfolio-card { scroll-margin-top: calc(var(--hdr-h) + 24px); }
.portfolio-card__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 8px; }
.portfolio-card__actions .tlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; line-height: 1.3; }
.portfolio-card__title a:hover, .portfolio-card__preview:hover + .portfolio-card__caption .portfolio-card__title { color: var(--link); }
.portfolio-grid--apps .portfolio-card { display: block; }
.portfolio-grid--apps .portfolio-card__caption { align-content: start; padding-top: 24px; }
@media (max-width: 640px) {
  .portfolio-tabs { gap: 24px; }
  .portfolio-tabs__tab { min-height: 52px; }
}

/* Приложение: пять исходных скриншотов целиком, одинаковой высоты. */
.portfolio-app-gallery { margin: 0; padding: 0 56px; --gap: 20px; }
.svc-work--app .shot { max-width: 400px; }
.svc-works:has(> .svc-work--app:only-child) { grid-template-columns: minmax(0, 1fr); }
.svc-works .svc-work--app:only-child { max-width: 480px; }
.portfolio-app-gallery .carousel__track { align-items: flex-start; justify-content: space-between; }
.portfolio-app-gallery .carousel__slide { flex: 0 0 auto; width: auto; max-width: none; height: clamp(380px, 38vw, 560px); border: 0; border-radius: 0; }
.portfolio-app-gallery .carousel__btn:disabled { visibility: hidden; }
@media (max-width: 640px) {
  .portfolio-app-gallery { padding: 0; --gap: 16px; }
  .portfolio-app-gallery .carousel__track { justify-content: flex-start; }
  .portfolio-app-gallery .carousel__btn { display: none; }
}

/* 404: на высоту экрана, та же рамка, что у шапки и подвала */
body:has(.miss) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(.miss) main { flex: 1 1 auto; display: flex; flex-direction: column; }
.miss {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(96px, 12vw, 120px);
}
.miss__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(280px, 1.08fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  width: 100%;
}
.miss__copy {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}
@media (min-width: 900px) {
  .miss__copy { margin-left: -46px; }
}
.miss__kicker {
  grid-column: 2;
  margin: 0 0 14px;
  color: var(--accent);
  font: 500 13px/1.3 var(--font-body);
  letter-spacing: 0;
  text-transform: uppercase;
}
.miss__rail {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  align-self: start;
  margin-top: 6px;
}
.miss__rail a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 26px;
  border-radius: 9999px;
  background: none;
  color: rgba(8, 32, 50, .42);
  font: 500 12px/1 var(--font-body);
  letter-spacing: 0;
  text-decoration: none;
}
.miss__rail a:hover { color: var(--raw-900); }
.miss__body { grid-column: 2; grid-row: 2; min-width: 0; }
.miss__h {
  margin: 0;
  color: var(--raw-900);
  font: 900 clamp(34px, 4.4vw, 64px)/1 var(--font-heading);
  letter-spacing: -.8px;
  text-transform: uppercase;
}
.miss__h span { display: block; }
.miss__em { color: var(--accent); }
.miss__note {
  max-width: 38ch;
  margin: 18px 0 0;
  color: var(--raw-500);
  font-size: 16px;
  line-height: 1.3;
}
.miss__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin: 26px 0 0; }
.miss__art { margin: 0; }
.miss__art img { display: block; width: 100%; height: auto; border-radius: 28px; }
.miss__pad {
  display: flex;
  gap: 2px;
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 4px;
  border-radius: 9999px;
  background: rgba(8, 32, 50, .88);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.miss__pad a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.miss__pad a:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 800px) {
  .miss__grid { grid-template-columns: 1fr; }
  .miss__art { max-width: 560px; }
  .miss__h { font-size: clamp(32px, 9vw, 44px); }
}
.article-page pre.article-code { margin: 16px 0 16px 30px; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; font: 400 15px/1.3 var(--font-body); white-space: pre; }
.article-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.1; margin: 16px 0; }
.article-table th, .article-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.article-table th { font-weight: 600; }
@media (max-width: 700px) {
  .article-table th, .article-table td { padding: 5px; }
  .article-table:not(.article-table--2) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .article-table:not(.article-table--2),
  .article-table:not(.article-table--2) tbody,
  .article-table:not(.article-table--2) tr,
  .article-table:not(.article-table--2) td { display: block; width: auto; }
  .article-table:not(.article-table--2) tr { margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; }
  .article-table:not(.article-table--2) td { padding: 5px 0; border: 0; }
  .article-table:not(.article-table--2) td::before { content: attr(data-label); display: block; font-weight: 600; }
}
