/* a.sh — стили сайта. Шрифты локальные (static/fonts), без запросов к сторонним серверам. */

@font-face { font-family: "Tektur"; font-style: normal; font-display: swap; font-weight: 400 900; font-stretch: 75% 100%;
  src: url("../fonts/tektur-cyrillic-standard-normal.4dd916a2a009.woff2") format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Tektur"; font-style: normal; font-display: swap; font-weight: 400 900; font-stretch: 75% 100%;
  src: url("../fonts/tektur-latin-standard-normal.da5c3beab8d2.woff2") format("woff2-variations");
  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: "Golos Text"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/golos-text-cyrillic-400-normal.a82793f97f91.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/golos-text-latin-400-normal.4b88b42724af.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: "Golos Text"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/golos-text-cyrillic-500-normal.97abfef86e34.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/golos-text-latin-500-normal.b0c19f244d45.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: "Golos Text"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/golos-text-cyrillic-600-normal.894768c4c711.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/golos-text-latin-600-normal.2938437410d6.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: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/jetbrains-mono-cyrillic-400-normal.82462194ebb6.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/jetbrains-mono-latin-400-normal.caf0dfde4e44.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: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/jetbrains-mono-cyrillic-500-normal.af752ba91433.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/jetbrains-mono-latin-500-normal.a21e038a03f7.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: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/jetbrains-mono-cyrillic-700-normal.0acce7891daa.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/jetbrains-mono-latin-700-normal.69002db50656.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 {
  /* Вертикальный ритм между блоками — меняется в одном месте. */
  --space: clamp(48px, 6vw, 80px);
  --bg: #0A0B0D;
  --bg-2: #0D0E11;
  --panel: #13151A;
  --line: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.08);
  --line-3: rgba(255,255,255,0.1);
  --text: #FFFFFF;
  --muted: #94A3B8;
  --dim: #64748B;
  --soft: #CBD5E1;
  --log: #7D8796;
  --chip-border: #2A2F38;
  --display: "Tektur", "Golos Text", system-ui, sans-serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; overflow-x: hidden; }
a { color: var(--text); }
a:hover { color: var(--soft); }
::selection { background: #FFFFFF; color: #000000; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: #FFF; color: #000; padding: 10px 14px; }
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.display { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; }
/* Контурный текст. Цвет обводки — через --stroke: currentColor тут нельзя, он сам прозрачный. */
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--stroke, #FFFFFF); }

/* Header */
.site-header { position: relative; z-index: 2; padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { text-decoration: none; font-family: var(--mono); font-size: 20px; font-weight: 500; }
.cursor { color: var(--muted); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 14px 22px; font: 600 16px/1 var(--sans); border: none; cursor: pointer; }
.btn-white { background: #FFFFFF; color: #000000; transition: background .3s ease; }
.btn-white:hover { background: #E2E8F0; color: #000000; }
.btn-ghost { background: none; color: var(--text); padding-left: 6px; padding-right: 6px; font-weight: 500; }
.nav .btn-white { min-height: 44px; padding: 12px 22px; font-size: 15px; color: #000000; }
.arrow { transition: transform .3s ease; flex: none; }
.btn:hover .arrow { transform: translate(4px, -4px); }

/* Hero */
/* Первый экран + ленты = ровно высота окна: ленты лежат по нижнему краю экрана, «Услуги» начинаются ниже.
   Видимая часть лент под героем = высота .tapes минус перекрытие 56px. */
/* Фон с линиями лежит на всём первом экране, включая область лент. */
.first-screen { position: relative; overflow: hidden; }
.hero { position: relative; z-index: 1; display: flex; flex-direction: column;
  min-height: calc(100vh - 116px - 2.8vw); min-height: calc(100svh - 116px - 2.8vw); }
.hero > .wrap { width: 100%; }  /* во flex-колонке .wrap иначе сжимается по содержимому */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero-fade { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 15% 100%, rgba(10,11,13,0) 0%, rgba(10,11,13,0.92) 72%); }
.hero-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; padding-top: 32px; padding-bottom: 88px; }
.hero h1 { margin: 0; font-size: clamp(40px, 11vw, 124px); line-height: 0.95; letter-spacing: -0.01em; }
.hero h1 span { display: block; }
.hero h1 .dim { color: var(--dim); }
.hero-row { margin-top: clamp(40px, 7vh, 88px); display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; justify-content: space-between; }
.hero-lead { flex: 1 1 420px; min-width: 0; max-width: 560px; }
.hero-lead p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.xp-card { flex: 0 1 340px; min-width: 0; background-color: var(--panel); background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 16px 16px; border: 1px solid var(--line-2); border-radius: 12px; padding: 24px 26px; }
.xp-card .label { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.xp-card .text { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; }

/* Tapes */
/* Лента наклонена, поэтому на широких экранах её край опускается ниже: высота растёт вместе с шириной (tan 3° ≈ 0.052). */
.tapes { position: relative; z-index: 1; height: calc(172px + 2.8vw); margin-top: -56px; overflow: hidden; }
/* На телефоне карточка опыта стоит под лентами, чтобы ленты помещались на первом экране. */
.xp-mobile { display: none; }
.tape { position: absolute; left: -2%; right: -2%; overflow: hidden; }
.tape-dark { top: 72px; z-index: 1; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: skewY(2deg); padding: 16px 0; }
.tape-white { --stroke: #000000; top: 64px; z-index: 2; background: #FFFFFF; transform: skewY(-3deg); padding: 18px 0; box-shadow: 0 24px 48px -20px rgba(0,0,0,0.9); }
.marquee { display: flex; width: max-content; align-items: center; white-space: nowrap; }
.tape-dark .marquee { gap: 32px; font-size: 16px; font-weight: 500; color: var(--muted); animation: marquee 58s linear infinite reverse; }
.tape-white .marquee { gap: 36px; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 48px; line-height: 1; text-transform: uppercase; color: #000000; animation: marquee 42s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: inherit; flex: none; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* Sections */
.section { padding-top: var(--space); padding-bottom: var(--space); }
#services { padding-top: calc(var(--space) * 0.6); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.section-head h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 0.95; }
.section-head .lead { margin: 0; max-width: 380px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.bordered { border-top: 1px solid var(--line); }

/* Cards */
.card { background: var(--panel); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.service { grid-column: span 5; padding: 36px; display: flex; flex-direction: column; gap: 26px; transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .5s ease; }
.service.is-wide { grid-column: span 7; }
.service:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.14); }
.card-head { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card-head .num { font-family: var(--mono); letter-spacing: 0; }
.service h3 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; font-weight: 600; }
.desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.sub { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--soft); background: rgba(255,255,255,0.03); border: 1px solid var(--line-3); border-radius: 6px; padding: 6px 10px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: #E2E8F0; }
.rows li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--muted); }
.meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 13px; }
.meta .k { color: var(--muted); }

/* Why / log */
.why { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-inner { padding-top: var(--space); padding-bottom: var(--space); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.why-title { position: sticky; top: 32px; }
.why-title h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 0.95; }
.log { min-width: 0; background-color: var(--panel); background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 18px 18px; border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 40px 80px -40px rgba(0,0,0,0.9); }
.log-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.log-body { padding: 28px 24px 32px; font-family: var(--mono); font-size: 15px; line-height: 1.75; }
.log-line { display: flex; gap: 14px; padding: 2px 6px; color: var(--log); transition: background .2s ease; }
.log-line:hover { background: rgba(255,255,255,0.03); }
.log-line > span:first-child { flex: 0 0 8ch; }
.log-line .lvl { flex: 0 0 58px; font-weight: 700; }
.log-line .msg { color: var(--muted); }
.log-line.lvl-ok .lvl { color: #FFFFFF; }
.log-line.lvl-warn .lvl { color: var(--soft); }
.log-line.lvl-warn .msg { color: var(--soft); }
.log-split { margin: 22px 0 14px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.log-split span { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.log-replay { font: 500 14px var(--sans); color: var(--text); background: transparent; border: 1px solid var(--chip-border); padding: 10px 16px; min-height: 44px; cursor: pointer; }
.log-ok { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px; }
.log-ok .lvl { flex: 0 0 58px; font-weight: 700; }
.log-ok .txt { flex: 1 1 200px; font-family: var(--sans); font-size: 16px; }
.log-ok .txt b { font-weight: 600; }
.log-ok .txt span { color: var(--muted); }
.log-ok.play { animation: slide-in .35s ease both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px) } to { opacity: 1; transform: none } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step-title { display: flex; align-items: baseline; gap: 12px; }
.step-title .num { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--muted); }
.step-title h3 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 600; }

/* Works */
.works { position: relative; overflow: hidden; border-top: 1px solid var(--line); background-image: radial-gradient(circle at 18% 28%, rgba(148,163,184,0.14), rgba(10,11,13,0) 38%), radial-gradient(circle at 82% 72%, rgba(255,255,255,0.07), rgba(10,11,13,0) 36%); }
.work { grid-column: span 6; text-decoration: none; color: var(--text); display: flex; flex-direction: column; padding: 16px; background: rgba(19,21,26,0.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); transition: transform .4s ease, border-color .4s ease; }
.work.is-featured { grid-column: span 8; }
.work:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(255,255,255,0.24); }
.shot { position: relative; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); overflow: hidden; aspect-ratio: 16 / 10; }
.work.is-featured .shot { aspect-ratio: 2 / 1; }
.work-next { grid-column: span 4; justify-content: flex-end; gap: 14px; padding: 32px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-style: dashed; border-color: rgba(255,255,255,0.18); box-shadow: none; }
.works-all .section-head h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 0.95; }
.works-all .work-next { grid-column: span 6; }
.lead .more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; color: var(--text); text-decoration: none; }
.lead .more-link:hover .arrow { transform: translate(3px, -3px); }
.lead p { margin: 0; }
.work-next-plus { align-self: flex-start; margin-bottom: auto; font: 300 64px/1 var(--sans); color: var(--dim); transition: color .3s ease, transform .4s ease; }
.work-next:hover .work-next-plus { color: #FFFFFF; transform: rotate(90deg); }
.work-next-title { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 36px); line-height: 1; }
.work-next-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
/* Пока скриншота нет — низкая заглушка, чтобы карточка не была пустой дырой. */
.shot.is-empty { flex-direction: column; align-items: stretch; justify-content: flex-start; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 16px 16px; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(10,11,13,0.6); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2F38; }
.mock-url { margin-left: 12px; flex: 1; max-width: 360px; padding: 5px 12px; border-radius: 6px; background: rgba(255,255,255,0.04); font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(20px, 4vw, 56px); }
.mock-title { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 5vw, 72px); line-height: 0.95; color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,0.22); }
.work:not(.is-featured) .mock-title { font-size: clamp(24px, 3vw, 40px); }
.mock-note { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.reveal { position: absolute; right: 16px; bottom: 16px; background: #FFFFFF; color: #000000; padding: 10px 14px; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s ease; }
.work:hover .reveal, .work:focus-visible .reveal { opacity: 1; transform: none; }
.work-body { padding: 20px 8px 8px; display: flex; flex-direction: column; gap: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #E2E8F0; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 4px 10px; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #FFFFFF; }
.work h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; }
.features { margin: 0; font-size: 13px; color: var(--soft); }
.empty-note { color: var(--muted); }

/* Экспресс-проверка сайта: поле адреса + вывод в стиле терминала (как maintenance.log). */
.check { border-top: 1px solid var(--line); }
.check-fine { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--dim); }
.check-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 40px; }
.check-form { margin: 0 0 12px; }
.check-row { display: flex; align-items: center; background: var(--panel); border: 1px solid var(--line-3); padding: 6px 6px 6px 20px; transition: border-color .2s ease; }
.check-row:focus-within { border-color: #FFFFFF; }
.check-prefix { flex: none; font: 400 18px/1.2 var(--mono); color: var(--dim); }
.check-input { flex: 1 1 auto; min-width: 0; font: 500 18px/1.2 var(--mono); color: var(--text); background: transparent; border: none; border-radius: 0; padding: 14px 12px 14px 1px; }
.check-input:focus { outline: none; }
.check-input::placeholder { color: #3F4856; }
.check-row .btn { flex: none; }
.check-row .btn:disabled { opacity: .6; cursor: progress; }
.check-host { color: var(--dim); }
.check-line { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 6px; }
.check-line .lvl { font-weight: 700; white-space: pre; }
.check-line .txt { font-family: var(--sans); font-size: 16px; line-height: 1.6; }
.check-line .txt b { font-weight: 600; }
.check-line .txt span { color: var(--muted); }
.check-line.is-ok .lvl { color: #FFFFFF; }
.check-line.is-warn .lvl { color: #FDE68A; }
.check-line.is-bad .lvl { color: #FCA5A5; }
.check-line.is-skip { opacity: .55; }
.check-line.is-idle .lvl { color: var(--dim); }
.check-line.is-idle .txt b { font-weight: 500; color: var(--muted); }
.check-line.play { animation: slide-in .35s ease both; }
.check-out.is-loading .check-line.is-idle .lvl { animation: check-pulse 1.4s ease-in-out infinite; }
.check-out.is-loading .check-line.is-idle:nth-child(2) .lvl { animation-delay: .2s; }
.check-out.is-loading .check-line.is-idle:nth-child(3) .lvl { animation-delay: .4s; }
.check-out.is-loading .check-line.is-idle:nth-child(4) .lvl { animation-delay: .6s; }
.check-out.is-loading .check-line.is-idle:nth-child(5) .lvl { animation-delay: .8s; }
.check-out.is-loading .check-line.is-idle:nth-child(6) .lvl { animation-delay: 1s; }
.check-out.is-loading .check-line.is-idle:nth-child(7) .lvl { animation-delay: 1.2s; }
@keyframes check-pulse { 50% { color: #FFFFFF; } }
.check-err { margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(252,165,165,0.3); color: #FCA5A5; font: 400 15px/1.5 var(--sans); }
.check-note { margin: 12px 6px 0; font: 400 14px/1.5 var(--sans); color: var(--dim); }
.check-sum { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; font-family: var(--sans); }
.check-sum > div { display: flex; align-items: baseline; gap: 14px; }
.check-score { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 44px; line-height: 1; }
.check-verdict { font-size: 16px; font-weight: 600; }

/* Contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-inner { padding-top: var(--space); padding-bottom: var(--space); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-aside { position: sticky; top: 32px; }
.contact-aside > :last-child { margin-bottom: 0; }
.contact h2 { margin: 0 0 24px; font-size: clamp(36px, 4.4vw, 60px); line-height: 0.95; }
.contact-text { margin: 0 0 40px; max-width: 360px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.contact-links { display: flex; flex-direction: column; gap: 4px; font-size: 17px; font-weight: 500; }
.contact-links a { display: inline-flex; align-items: baseline; gap: 14px; padding: 8px 0; color: var(--text); text-decoration: none; }
.contact-links .k { flex: 0 0 96px; font-size: 14px; color: var(--muted); }
.contact-links .v { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); text-underline-offset: 6px; transition: text-decoration-color .2s ease; }
.contact-links a:hover .v { text-decoration-color: #FFFFFF; }
.form { margin: 0; background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); padding: clamp(28px, 3.6vw, 44px); display: flex; flex-direction: column; gap: 34px; }
.form fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
.form legend, .form .field-label { display: block; padding: 0; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.form .field-label { margin-bottom: 8px; }
.form legend span { font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--chip-border); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.choice b { font: 600 16px/1.3 var(--sans); }
.choice small { font-size: 14px; line-height: 1.45; color: var(--muted); }
.choice:hover > span { border-color: var(--muted); }
.choice input:checked + span { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }
.choice input:checked + span small { color: #334155; }
.choice input:focus-visible + span { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; font: 500 15px/1.2 var(--sans); border: 1px solid var(--chip-border); color: var(--text); background: transparent; transition: background .2s ease, color .2s ease, border-color .2s ease; cursor: pointer; }
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }
.chip input:focus-visible + span { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.field { width: 100%; font: 500 18px/1.3 var(--sans); color: var(--text); background: transparent; border: none; border-bottom: 1px solid var(--chip-border); padding: 10px 0 16px; border-radius: 0; transition: border-color .2s ease; }
.field::placeholder { color: var(--dim); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
.field-area { display: block; resize: none; overflow: hidden; min-height: 0; height: auto; line-height: 1.5; padding-top: 6px; padding-bottom: 10px; }
.field-area::placeholder { color: var(--dim); opacity: .8; }
.form .field-label span { font-weight: 400; }
.field:focus { outline: none; border-bottom-color: #FFFFFF; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #FFFFFF; cursor: pointer; }
.consent a { color: var(--text); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.form-foot .consent { flex: 1 1 280px; }
.send { font: 600 16px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; padding: 18px 26px; min-height: 56px; gap: 14px; }
.errors { margin: 8px 0 0; padding: 0; list-style: none; color: #FCA5A5; font-size: 14px; }
.form-status { margin: 0; font-size: 15px; }
.form-status.ok { color: #FFFFFF; }
.form-status.err { color: #FCA5A5; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--bg); border-top: 1px solid var(--line); }
.footer-top { position: relative; z-index: 1; padding-top: 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px 48px; }
.footer-brand .logo { font-size: 22px; }
.footer-brand p { margin: 12px 0 0; max-width: 320px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.footer-h { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-list a { display: inline-block; padding: 6px 0; font-size: 15px; color: var(--soft); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); text-underline-offset: 5px; transition: color .2s ease, text-decoration-color .2s ease; }
.footer-list a:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.footer-bottom { position: relative; z-index: 1; margin-top: 40px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 48px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 13px; line-height: 1.6; color: var(--dim); }
.to-top { font-family: var(--mono); font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); text-underline-offset: 5px; padding: 6px 0; }
.to-top:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }


/* Inner pages (документы, кейсы) */
.page { padding-top: 32px; padding-bottom: var(--space); }
.crumbs { margin: 0 0 32px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page h1 { margin: 0 0 32px; font-size: clamp(36px, 5vw, 64px); line-height: 0.95; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--soft); }
.prose h2 { margin: 40px 0 12px; font-size: 22px; line-height: 1.3; color: var(--text); font-weight: 600; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--text); }
.prose .doc-note { padding: 14px 18px; border: 1px solid #854D0E; background: rgba(133,77,14,0.15); color: #FDE68A; font-size: 15px; }
.updated { margin-top: 40px; font-size: 14px; color: var(--dim); }
.case-shot { margin: 0 0 40px; }
.case-shot.is-wide { aspect-ratio: 21 / 9; }
.case-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; }
.case-side { display: flex; flex-direction: column; gap: 20px; }
.case-side .card { padding: 24px; }

/* Messages */
.flash { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--line-3); background: var(--panel); }

@media (max-width: 960px) {
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-title, .contact-aside { position: static; }
  .check-lines { grid-template-columns: 1fr; }
  .choice-grid, .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* Шапка на телефоне: логотип и кнопка в одну строку, разделы доступны прокруткой и из подвала. */
  .site-header { flex-wrap: nowrap; padding-top: 20px; padding-bottom: 20px; }
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav a:not(.btn) { display: none; }
  .nav .btn-white { min-height: 44px; padding: 10px 16px; font-size: 14px; }
  .hero-body { justify-content: flex-start; padding-top: 40px; }
  .hero-row { margin-top: 32px; }
  .hero-lead p { font-size: 17px; }
  .contact-inner { gap: 32px; }
  /* Телефон: первый экран = контент + ленты, вместе ровно высота окна (svh — без панелей браузера).
     Текст стоит по центру своей части, ленты — крестом в полосе фиксированной высоты под ним.
     Карточка опыта перенесена под ленты, иначе на невысоких телефонах ленты уходили за экран. */
  .hero-fade { opacity: 0.45; }
  .first-screen { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .hero { flex: 1 0 auto; min-height: 0; }
  .hero-body { justify-content: center; padding-bottom: 0; }
  .tapes { flex: 0 0 210px; height: auto; margin-top: 0; }
  .hero .xp-card { display: none; }
  .xp-mobile { display: block; position: relative; z-index: 1; margin-top: 8px; }
  .xp-mobile .xp-card { padding: 18px 20px; }
  .tape { left: -20%; right: -20%; }
  .tape-white { top: 50%; transform: translateY(-50%) rotate(-6deg); }
  .tape-dark { top: 50%; transform: translateY(-50%) rotate(9deg); }
  /* Портфолио: на узком экране 21:9 слишком низко, «Подробнее» не нужна — карточка целиком ссылка. */
  .work.is-featured .shot, .case-shot.is-wide { aspect-ratio: 4 / 3; }
  .work .reveal { display: none; }
  .mock-title, .work:not(.is-featured) .mock-title { font-size: clamp(26px, 8vw, 40px); }
  /* Пальцем по ссылкам: высота не меньше 44px. */
  .footer-list a, .to-top, .logo { display: inline-flex; align-items: center; min-height: 44px; }
  .service, .service.is-wide, .work, .work.is-featured { grid-column: 1 / -1; }
  .work-next, .works-all .work-next { padding: 24px; grid-column: 1 / -1; }
  .work-next-plus { font-size: 44px; margin-bottom: 12px; }
  .contact-inner, .case-grid, .footer-top { grid-template-columns: 1fr; }
  .tape-white .marquee { font-size: 34px; }
  .reveal { opacity: 1; transform: none; }
  .chip span { font-size: 15px; padding: 10px 14px; min-height: 44px; }
  .log-body { padding: 20px 16px 24px; font-size: 14px; }
  .log-line { flex-wrap: wrap; column-gap: 12px; row-gap: 0; padding-bottom: 12px; line-height: 1.5; }
  .log-line .msg { flex: 1 1 100%; }
  .check-row { flex-wrap: wrap; padding: 6px 6px 6px 16px; }
  .check-prefix, .check-input { font-size: 16px; }
  .check-row .btn { flex: 1 1 100%; justify-content: center; margin-top: 2px; }
  .check-line { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; padding: 6px 0; }
  .check-line .lvl { font-size: 13px; line-height: 1.85; }
  .check-line .txt { font-size: 15px; }
  .check-sum .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .marquee, .log-ok.play, .check-line.play, .check-out.is-loading .lvl { animation: none !important; }
  .service:hover, .work:hover { transform: none; }
}

/* Невысокие телефоны: компактнее первый экран, чтобы ленты оставались видны целиком. */
@media (max-width: 760px) and (max-height: 720px) {
  .hero-body { padding-top: 16px; }
  .hero-row { margin-top: 22px; }
  .hero-actions { margin-top: 20px; }
  .tapes { flex-basis: 160px; }
}
