/* Оформление «Слои» (выбрано ДВ 11.11.2026). Цвета - по логотипу (ДВ 11.11.2026): красный колец,
   чёрный надписи, белый; фон - нейтральный серый без синего оттенка. Заголовки антиквой. Первый экран - ИТ компании в разрезе: два слоя фото (автоматизация и ИИ над
   инфраструктурой) в красном контуре информационной безопасности. */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-opsz-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/golos-text-cyrillic-wght-normal.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-weight: 400 900; font-display: swap;
  src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-h3: var(--font);
  --fs-body: 18px; --fs-small: 15px; --fs-lead: clamp(19px, .7vw + 14px, 22px);
  --fs-h1: clamp(40px, 3.4vw + 16px, 74px); --fs-h2: clamp(30px, 1.9vw + 17px, 48px); --fs-h3: 20px;
  --fs-fact: clamp(50px, 3.4vw + 22px, 84px);
  --w-head: 600; --w-h3: 600; --ls-head: -.015em; --lh-head: 1.06;
  --sec-pad: clamp(56px, 6vw, 112px);
  --radius: 0; --btn-radius: 2px;

  --bg: #F4F4F4; --surface: #FFFFFF; --surface-2: #EBEBEB;
  --text: #141414; --text-2: #3A3A3A; --muted: #616161;
  --line: #DCDCDC; --line-strong: #8A8A8A;
  /* красный логотипа #FF0902 - на линиях, рамках и точках; для текста и кнопок он темнее,
     чтобы буквы читались (контраст не ниже 4,5:1) */
  --accent: #FF0902; --accent-text: #FFFFFF; --accent-ink: #C80803;
  --link: #141414; --link-line: #FF0902; --focus: #DD0A04;
  --head-bg: rgba(244, 244, 244, .93); --head-solid: #F4F4F4; --nav-hover: #E8E8E8;
  --btn-bg: #DD0A04; --btn-bg-hover: #B30803; --btn-text: #FFFFFF;
  --logo-1: #FF0902; --logo-2: #FF2419; --logo-3: #FF8882; --logo-text: #000000; --logo-halo: #FFFFFF;
  --draft-bg: #141414; --draft-text: #FFFFFF;
  --contact-bg: #FFFFFF; --foot-bg: #141414; --foot-text: #F2F2F2; --foot-muted: #A3A3A3;
  --field-bg: #FFFFFF; --field-border: #8A8A8A; --err: #C80803;
  color-scheme: light;
}
::selection { background: #FFD3CF; color: #141414; }
h1 { font-weight: 600; }

/* ---------- первый экран: слои ---------- */
.hero-b { padding-block: clamp(28px, 4vw, 64px) clamp(44px, 5vw, 80px); border-bottom: 1px solid var(--line); }
.hero-b-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-areas: "text art" "legend legend"; gap: 48px 56px; align-items: center; }
.hero-b-text { grid-area: text; }
.hero-b-text h1 { font-size: clamp(40px, 2.6vw + 18px, 64px); margin-bottom: 24px; }
.hero-b-text .lead { margin-bottom: 30px; }
.hero-b-art { grid-area: art; position: relative; padding: 18px; }
.stack { display: grid; gap: 14px; }
.strip { --i: 0; position: relative; z-index: calc(3 - var(--i)); overflow: hidden; background: #E3E3E3; transition: opacity .35s, filter .35s; }
.strip img { width: 100%; aspect-ratio: 2.3 / 1; object-fit: cover; }
.strip-label { position: absolute; left: 0; top: 0; padding: 6px 12px 7px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.2; }
.sec-frame { position: absolute; inset: 0; border: 2px solid var(--accent); pointer-events: none; transition: border-width .25s; }
.sec-label { position: absolute; right: 28px; top: 0; transform: translateY(-50%); padding: 0 10px; background: var(--bg); color: var(--accent-ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.hero-b-art.has-active .strip { opacity: .42; filter: grayscale(.8); }
.hero-b-art.has-active .strip.is-active, .hero-b-art.sec-active .strip { opacity: 1; filter: none; }
.hero-b-art.sec-active .sec-frame { border-width: 4px; }
/* выход при загрузке (один раз, только CSS): слои лежат стопкой и расходятся,
   затем замыкается контур безопасности и появляется подпись */
@media (prefers-reduced-motion: no-preference) {
  .strip { animation: strip-in 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 140ms + 250ms); }
  .sec-frame { animation: frame-in 1.1s cubic-bezier(.6, 0, .2, 1) 1.15s both; }
  .sec-label { animation: label-in .5s ease 2.1s both; }
}
/* при «уменьшить движение» слои не едут, а проявляются по очереди, контур так же замыкается */
@media (prefers-reduced-motion: reduce) {
  .strip { animation: strip-fade .9s ease both; animation-delay: calc(var(--i) * 320ms + 150ms); }
  .sec-frame { animation: frame-in 1.1s cubic-bezier(.6, 0, .2, 1) .8s both; }
  .sec-label { animation: label-in .5s ease 1.7s both; }
}
@keyframes strip-in { from { transform: translateY(calc(var(--i) * (-100% - 14px))); } to { transform: none; } }
@keyframes strip-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes frame-in { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes label-in { from { opacity: 0; } to { opacity: 1; } }

.hero-b-legend { grid-area: legend; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.lcard { padding-top: 14px; border-top: 2px solid var(--text); transition: border-color .25s; }
.lcard[data-layer="sec"], .lcard.is-active { border-top-color: var(--accent); }
.lcard-name { font-family: var(--font-head); font-weight: 600; font-size: 23px; line-height: 1.12; margin: 0; }
.lcard-name a { color: var(--text); text-decoration: none; }
.lcard-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.lcard-where { margin: 4px 0 12px; font-size: 14px; color: var(--muted); }
.lcard ul { list-style: none; display: grid; gap: 5px; font-size: 16px; }
.lcard a { color: var(--text); text-decoration: none; }
.lcard a:hover { text-decoration: underline; }
.lcard .ext { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 1024px) {
  .hero-b-grid { grid-template-columns: 1fr; grid-template-areas: "text" "art" "legend"; }
  .hero-b-legend { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-b-legend { grid-template-columns: 1fr; }
  .hero-b-art { padding: 12px; }
  .strip img { aspect-ratio: 2 / 1; }
  .sec-label { right: 14px; font-size: 13px; }
}

/* ---------- главная: разделы ---------- */
.facts { padding-block: 48px; background: var(--surface); border-bottom: 1px solid var(--line); }
.fact { border-top: 2px solid var(--text); }
.map-sec { background: var(--bg); }
.map-table tbody tr:hover { background: var(--surface); }
.ext-link::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-2px); }
.projects-sec { background: var(--surface); border-block: 1px solid var(--line); }
.prows { display: grid; gap: clamp(40px, 5vw, 80px); }
.prow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.prow-flip .prow-ph { order: 2; }
.prow-ph { position: relative; display: block; overflow: hidden; }
.prow-ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: no-preference) { .prow-ph:hover img { transform: scale(1.03); } }
.prow-text h3 { font-family: var(--font-head); font-size: clamp(28px, 1.3vw + 20px, 42px); font-weight: 600; line-height: 1.08; margin: 6px 0 14px; }
.prow-text h3 a { color: var(--text); text-decoration: none; }
.prow-text h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.prow-text > p { color: var(--text-2); }
.prow-text .ticks { margin-bottom: 18px; }
@media (max-width: 900px) { .prow { grid-template-columns: 1fr; } .prow-flip .prow-ph { order: 0; } }

.ai-band { padding-block: var(--sec-pad); background: var(--bg); }
.ai-band-ph { width: 100%; max-width: 1280px; margin: 0 auto 44px; padding-inline: 32px; }
.ai-band-ph img { width: 100%; aspect-ratio: 21 / 7; object-fit: cover; }
.ai-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 1024px) { .ai-band-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 720px) { .ai-band-ph { padding-inline: 16px; } .ai-band-ph img { aspect-ratio: 16 / 9; } }
.steps li { border-top: 2px solid var(--text); }
.prices-sec { background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- страницы направлений и проектов: текст и фото рядом ---------- */
.dir-head { padding-block: 24px 64px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dir-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.dir-head h1 { font-size: clamp(38px, 2.8vw + 18px, 68px); }
.dir-head-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dir-head .pcard-meta { margin-bottom: 14px; }
@media (max-width: 900px) { .dir-head-grid { grid-template-columns: 1fr; gap: 24px; } .dir-head-ph { order: -1; } }

.dcard a, .pcard-link, .aicard { border-color: var(--line); }
.items li { border-top: 2px solid var(--text); }
.result { border-top: 3px solid var(--accent); }
.page-head { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.contact { border-top: 2px solid var(--text); }
.office h3 { font-weight: 600; }

.band-kicker { margin: 0 0 10px; font-size: 15px; color: var(--accent-ink); font-weight: 600; }
.dir-group a { color: var(--muted); }
