/* Evercode, направление "The well-kept board" (seed 1280568443).
   Доска плиток без пустых клеток: страница устроена так же, как релизный чек-лист,
   который приложение обязано заполнить целиком, прежде чем уйти в стор. */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/hanken-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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/hanken-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-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a0d14;
  --surface: #131824;
  --surface-2: #1b2232;
  --ink: #e9edf3;
  --muted: #8891a1;
  --accent: #5a9bfc;
  --accent-ink: #0a0d14;
  --paper: #e9edf3;
  --paper-ink: #0a0d14;

  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-small: 0.8125rem;
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-mid: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  --t-head: clamp(2.25rem, 1.5rem + 3.1vw, 3.75rem);
  --t-display: clamp(4rem, 1.9rem + 10.6vw, 11.875rem);

  --gap: 8px;
  --margin: 10px;
  --row: 104px;
  --section: clamp(6rem, 11vw, 12.5rem);
  --radius: 8px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 160ms;
  --t-hover: 180ms;
  --t-reveal: 760ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-top: 5rem; }

h1, h2, h3 { font-weight: 500; text-wrap: balance; hyphens: none; }
.display { font-size: var(--t-display); line-height: 0.86; letter-spacing: -0.05em; font-weight: 500; }
.head { font-size: var(--t-head); line-height: 1.0; letter-spacing: -0.03em; font-weight: 500; }
.mid { font-size: var(--t-mid); line-height: 1.25; letter-spacing: -0.015em; }
.small { font-size: var(--t-small); line-height: 1.4; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* controls ,,, */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); font-weight: 500;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button-quiet { background: var(--surface-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #7bb0ff; }
  .button-quiet:hover { background: #242c3f; }
  .link:hover { color: var(--accent); }
}
.link { transition: color var(--t-hover) ease; }
.underlined { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }

/* движение: содержимое видно и без скрипта ,,, */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 620ms var(--ease-out), transform 760ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .shutter { animation: shutter-open 1050ms var(--ease-in-out) 100ms both; }
  .shutter img { animation: shutter-settle 1500ms var(--ease-soft) 100ms both; }
}
@keyframes shutter-open { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes shutter-settle { from { transform: scale(1.12); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
}

/* ДОСКА ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-inline: var(--margin); }
.tile { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); padding: 22px; }
.tile-ink { background: var(--paper); color: var(--paper-ink); }
.tile-accent { background: var(--accent); color: var(--accent-ink); }
.tile-step { background: var(--surface-2); }
.tile-photo { padding: 0; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(0.92); }

/* ГЕРОЙ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, */
.hero {
  display: grid; gap: var(--gap); padding: var(--margin);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 60px minmax(230px, 1.22fr) minmax(176px, 0.88fr);
  min-height: 100svh;
}
.hero-bar { grid-column: 1 / -1; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: var(--gap); }
.mark-tile { display: grid; place-items: center; background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); }
.mark-tile span { font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.nav-tile { display: flex; align-items: center; gap: 28px; padding-left: 50%; background: var(--surface); border-radius: var(--radius); }
.nav-tile a { font-size: var(--t-small); letter-spacing: 0.01em; }
.act-tile { display: flex; align-items: center; padding: 0 26px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-weight: 500; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.act-tile:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .act-tile:hover { background: #7bb0ff; } }

.hero-name { grid-column: 1 / 7; grid-row: 2; display: flex; align-items: flex-end; container-type: inline-size; }
.hero-name .wordmark { font-size: clamp(3rem, 22cqw, 11.5rem); line-height: 0.8; letter-spacing: -0.055em; font-weight: 500; }
.hero-pic-a { grid-column: 7 / 13; grid-row: 2; }
.hero-pic-b { grid-column: 1 / 7; grid-row: 3; }
.hero-say { grid-column: 7 / 10; grid-row: 3; }
.hero-say-2 { grid-column: 10 / 13; grid-row: 3; }
.hero-say p, .hero-say-2 p { font-size: var(--t-mid); line-height: 1.22; letter-spacing: -0.015em; max-width: 22ch; }

/* ОТ РЕПОЗИТОРИЯ К РЕВЬЮ ,,,,,,,,,,,,,,,,,,,,,,,,, */
.flow { padding: var(--section) var(--margin); }
.flow-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.flow-top h2 { grid-column: 1 / 5; }
.flow-top p { grid-column: 6 / 11; font-size: var(--t-body); max-width: 46ch; }
.flow-diagram { margin-top: clamp(40px, 5vw, 72px); width: 100%; }
.flow-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 28px; }
.flow-legend h3 { font-size: var(--t-mid); line-height: 1.1; margin-bottom: 10px; }
.flow-legend p { font-size: var(--t-body); max-width: 34ch; }

/* КАК ПРОХОДИТ РЕЛИЗ ,,,,,,,,,,,,,,,,,,,,,,,,,,, */
.gates { padding-top: calc(var(--section) / 2); }
.gates .board { grid-auto-rows: var(--row); }
.g-c6 { grid-column: span 6; } .g-c3 { grid-column: span 3; }
.g-r4 { grid-row: span 4; } .g-r2 { grid-row: span 2; }
.g-head { display: flex; align-items: flex-start; }
.g-label { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.g-name { display: block; font-size: var(--t-mid); line-height: 1.1; letter-spacing: -0.015em; }
.g-note { display: block; margin-top: 6px; font-size: var(--t-small); max-width: 30ch; }
.tile-ink .g-note, .tile-accent .g-note { color: #3c4556; }
.ui-crop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ui-crop > [data-ui] { position: absolute; font-size: var(--s, 64px); }

/* увеличенные настоящие элементы интерфейса; внутри data-ui действуют свои правила */
[data-ui] { font-family: ui-monospace, 'SF Mono', Menlo, monospace; line-height: 1; } /* taste-skill-ignore: настоящий фрагмент интерфейса, моноширинный по делу */
.ui-box { width: 1em; height: 1em; border: 0.075em solid currentColor; border-radius: 0.12em; }
.ui-figure { font-size: 1em; font-weight: 500; letter-spacing: -0.04em; font-family: var(--font); }
.ui-chip { padding: 0.28em 0.5em; border-radius: 0.18em; background: var(--accent); color: var(--accent-ink); }
.ui-word { padding: 0.3em 0.55em; border-radius: 0.18em; background: var(--paper); color: var(--paper-ink); letter-spacing: 0.02em; }
.ui-switch { width: 2.1em; height: 1.16em; border-radius: 1em; background: var(--accent); position: relative; }
.ui-switch::after { content: ""; position: absolute; top: 0.13em; right: 0.13em; width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--accent-ink); }
.ui-discs { display: flex; }
.ui-discs span { width: 1.25em; height: 1.25em; border-radius: 50%; display: grid; place-items: center; font-size: 0.42em; font-family: var(--font); }
.ui-discs span + span { margin-left: -0.38em; }
.ui-key { width: 1.15em; height: 1.15em; border-radius: 0.14em; background: var(--surface-2); display: grid; place-items: center; font-size: 0.5em; color: var(--ink); }
.ui-keys { display: flex; gap: 0.12em; }

/* ЧТО НУЖНО ОТ ВАС ,,,,,,,,,,,,,,,,,,,,,,, */
.spec { background: var(--surface); padding: var(--section) var(--margin) clamp(3.5rem, 6vw, 6rem); margin-top: var(--section); }
.spec-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: baseline; justify-content: space-between; margin-bottom: clamp(32px, 4vw, 56px); }
.spec table { width: 100%; border-collapse: collapse; font-size: var(--t-mid); font-weight: 400; }
.spec th { text-align: left; font-weight: 400; font-size: var(--t-small); color: var(--muted); padding: 0 12px 14px 0; }
.spec td { padding: 18px 12px 18px 0; vertical-align: top; line-height: 1.2; letter-spacing: -0.015em; }
.spec tbody tr:nth-child(odd) { background: var(--surface-2); }
.spec td:first-child { padding-left: 16px; border-radius: var(--radius) 0 0 var(--radius); width: 34%; }
.spec td:nth-child(2) { width: 22%; }
.spec td:nth-child(3) { width: 24%; }
.spec td:last-child { text-align: right; padding-right: 16px; border-radius: 0 var(--radius) var(--radius) 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.spec-check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.spec-check input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); cursor: pointer; }
.spec-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.spec-verdict p { font-size: var(--t-mid); letter-spacing: -0.015em; }

/* КОМПАНИЯ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, */
.about { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.about h2 { grid-column: 1 / 13; margin-bottom: clamp(32px, 4vw, 56px); }
.about-facts { grid-column: 1 / 4; display: flex; flex-direction: column; gap: 20px; }
.about-facts div { font-size: var(--t-small); }
.about-facts dt { color: var(--muted); }
.about-facts dd { margin: 2px 0 0; }
.about-text { grid-column: 5 / 13; }
.about-text p { font-size: var(--t-mid); line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; }
.about-text p + p { margin-top: 1em; }

/* ВОПРОСЫ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, */
.faq-head { background: var(--accent); color: var(--accent-ink); min-height: 40svh; display: flex; align-items: flex-end; padding: var(--section) var(--margin) 40px; }
.faq-band { padding: 56px var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.faq-band:nth-child(odd) { background: var(--surface); }
.faq-band h3 { grid-column: 1 / 6; font-size: var(--t-mid); line-height: 1.15; letter-spacing: -0.02em; }
.faq-band p { grid-column: 7 / 13; font-size: var(--t-body); line-height: 1.5; max-width: 54ch; }

/* СВЯЗЬ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, */
.band-photo { margin: clamp(3.5rem, 6vw, 6rem) var(--margin) 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 7; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(0.92); }
.contact { background: var(--paper); color: var(--paper-ink); min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--section) var(--margin) 12vh; container-type: inline-size; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: clamp(28px, 4vw, 48px); font-size: var(--t-small); color: #4a5365; }
.contact-mail { font-size: clamp(2rem, 6.1cqw, 7rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 500; display: inline-block; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .contact-mail:hover { color: #2f6ad0; } }

/* ПОДВАЛ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, */
.footer { padding: var(--margin); }
.mark-blocks { display: flex; gap: 4px; align-items: flex-end; height: 34svh; min-height: 180px; }
.mark-blocks span { flex: 1 1 0; display: grid; place-items: center; color: var(--bg); font-size: clamp(1.75rem, 8.6vw, 8rem); font-weight: 500; line-height: 1; border-radius: 2px; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 56px; }
.footer-links { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; font-size: var(--t-small); }
.footer-links strong { font-weight: 500; color: var(--muted); }
.footer-contact { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 10px; font-size: var(--t-small); }
.footer-end { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 56px; font-size: var(--t-small); color: var(--muted); }

/* СТРАНИЦЫ ТЕКСТА ,,,,,,,,,,,,,,,,,,,,,,,,,,, */
.topbar { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: var(--gap); padding: var(--margin); }
.doc { padding: clamp(48px, 7vw, 104px) var(--margin) var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.doc h1 { grid-column: 1 / 11; margin-bottom: 24px; font-size: clamp(3rem, 8.6vw, 8rem); line-height: 0.88; letter-spacing: -0.05em; font-weight: 500; }
.doc-band { grid-column: 1 / 13; margin-bottom: clamp(44px, 6vw, 80px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 6; }
.doc-band img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(0.92); }
.doc-lead { grid-column: 1 / 8; font-size: var(--t-mid); line-height: 1.3; letter-spacing: -0.015em; margin-bottom: clamp(40px, 5vw, 72px); }
.doc-body { grid-column: 1 / 8; }
.doc-side { grid-column: 9 / 13; }
.doc-body h2 { font-size: var(--t-mid); line-height: 1.15; margin: clamp(40px, 4vw, 56px) 0 14px; letter-spacing: -0.02em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { font-size: var(--t-body); line-height: 1.55; max-width: 62ch; }
.doc-body p + p { margin-top: 0.9em; }
.doc-body ul { margin: 14px 0 0; padding-left: 1.1em; }
.doc-body li + li { margin-top: 8px; }
.doc-card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.doc-card + .doc-card { margin-top: var(--gap); }
.doc-card p { font-size: var(--t-small); }
.doc-card strong { font-weight: 500; }

/* ТЕЛЕФОН ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, */
@media (max-width: 700px) {
  :root { --gap: 6px; --row: 92px; }
  .hero { grid-template-rows: 52px auto auto auto; min-height: auto; }
  .hero-bar { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .nav-tile { padding-left: 18px; gap: 16px; }
  .band-photo { aspect-ratio: 3 / 2; }
  .act-tile { padding: 0 16px; font-size: var(--t-small); }
  .hero-name { grid-column: 1 / -1; grid-row: 2; min-height: 30svh; }
  .hero-pic-a { grid-column: 1 / -1; grid-row: 3; aspect-ratio: 4 / 3; }
  .hero-say { grid-column: 1 / 7; grid-row: 4; aspect-ratio: 1; }
  .hero-say-2 { grid-column: 7 / 13; grid-row: 4; aspect-ratio: 1; }
  .hero-pic-b { grid-column: 1 / -1; grid-row: 5; aspect-ratio: 3 / 2; }
  .hero-say p, .hero-say-2 p { font-size: var(--t-body); }
  .flow-top h2, .flow-top p { grid-column: 1 / -1; }
  .flow-top p { margin-top: 18px; }
  .flow-legend { grid-template-columns: 1fr; gap: 24px; }
  .gates .board { grid-auto-rows: 28vw; }
  /* на телефоне подпись плитки занимает низ, поэтому фрагмент уходит наверх и ужимается */
  .ui-crop > [data-ui] { font-size: calc(var(--s, 64px) * 0.44); bottom: auto !important; top: 7% !important; left: 7% !important; right: auto !important; }
  .g-c6 { grid-column: span 12; } .g-c3 { grid-column: span 6; }
  .g-r4 { grid-row: span 3; } .g-r2 { grid-row: span 2; }
  .spec thead { display: none; }
  .spec table, .spec tbody, .spec tr, .spec td { display: block; width: auto; }
  .spec tbody tr { padding: 16px; border-radius: var(--radius); }
  .spec tbody tr + tr { margin-top: 6px; }
  .spec td { padding: 0; width: auto !important; }
  .spec td:first-child { padding-left: 0; font-size: var(--t-mid); }
  .spec td:not(:first-child) { font-size: var(--t-small); color: var(--muted); text-align: left; padding-top: 6px; }
  .about-facts, .about-text, .about h2 { grid-column: 1 / -1; }
  .about-text { margin-top: 36px; }
  .faq-band h3, .faq-band p { grid-column: 1 / -1; }
  .faq-band p { margin-top: 14px; }
  .mark-blocks { height: 22svh; min-height: 120px; }
  .footer-links { grid-column: span 6; }
  .footer-contact { grid-column: 1 / -1; margin-top: 28px; }
  .doc h1, .doc-lead, .doc-body, .doc-side, .doc-band { grid-column: 1 / -1; }
  .doc-band { aspect-ratio: 3 / 2; }
  .doc-side { margin-top: 48px; }
}

.ui-slider { display: block; width: 4.6em; height: 0.22em; border-radius: 0.11em; background: #39425c; position: relative; }
.ui-slider::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: inherit; background: var(--accent); }
.ui-slider::after { content: ""; position: absolute; left: 62%; top: 50%; width: 0.9em; height: 0.9em; margin: -0.45em 0 0 -0.45em; border-radius: 50%; background: var(--paper); }
.ui-field { display: block; width: 4.4em; height: 1.2em; border-radius: 0.14em; background: var(--surface); border: 0.05em solid #39425c; position: relative; }
.ui-field::before { content: ""; position: absolute; left: 0.2em; top: 0.44em; width: 2.3em; height: 0.16em; border-radius: 0.05em; background: #4a5365; }
.ui-field::after { content: ""; position: absolute; left: 2.7em; top: 0.3em; width: 0.07em; height: 0.56em; background: var(--accent); }
.ui-shot { display: block; width: 1.5em; height: 2.9em; border-radius: 0.3em; background: var(--surface); border: 0.05em solid #39425c; position: relative; }
.ui-shot i { position: absolute; left: 0.16em; right: 0.16em; top: 0.26em; height: 0.46em; border-radius: 0.07em; background: #39425c; }
.ui-shot::after { content: ""; position: absolute; left: 0.16em; width: 0.62em; top: 0.86em; height: 0.16em; border-radius: 0.06em; background: #2a3147; }

@media (max-width: 560px) {
  .nav-tile a:nth-of-type(1), .nav-tile a:nth-of-type(3) { display: none; }
}

/* Между телефоном и широким экраном плитки узкие: крупный фрагмент уезжал под край
   больше чем наполовину и читался как обрезанный текст, а не как макро. */
@media (min-width: 701px) and (max-width: 1100px) {
  .ui-crop > [data-ui] { font-size: calc(var(--s, 64px) * 0.58); bottom: auto !important; top: 10% !important; left: 7% !important; right: auto !important; }
}
