/* =====================================================
   sections.css — стили секций v3
   ===================================================== */

/* =================================================
   HEADER
   ================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 0;
  transition: all 400ms var(--ease);
}

.header.is-scrolled {
  padding: 12px 0;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--text-0);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.header__logo:hover { color: var(--text-0); }

.header__logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--accent);
  flex-shrink: 0;
}

.header__logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header__logo-text {
  line-height: 1;
}

.header__nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.header__nav a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  border-radius: 999px;
  transition: all 300ms var(--ease);
  text-decoration: none;
}

.header__nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 300ms var(--ease);
}

.header__nav a:hover {
  color: var(--text-0);
}

.header__nav a:hover::after { width: 24px; }

.header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-0);
  text-decoration: none;
}

.header__phone i { width: 16px; height: 16px; color: var(--accent); }

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-0);
}

.header__burger i { width: 20px; height: 20px; }

@media (max-width: 1100px) {
  .header__nav { display: none; }
  .header__phone { display: none; }
  .header__burger { display: grid; }
}

.mobile-nav {
  position: fixed;
  top: 76px; left: 0; right: 0;
  z-index: 49;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  transform: translateY(-110%);
  transition: transform 400ms var(--ease);
}

.mobile-nav.is-open { transform: translateY(0); }

.mobile-nav a {
  display: block;
  padding: 16px;
  color: var(--text-1);
  font-weight: 500;
  font-size: 18px;
  border-radius: var(--r-sm);
  text-decoration: none;
}

/* Скрыто по запросу владельца (2026-06-10): мобильное меню перекрывает топбар.
   JS-логика (initMobileNav, бургер) оставлена — на случай возврата. */
.mobile-nav { display: none !important; }

/* =================================================
   HERO v4 — кинематографичный
   ================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 80px 0 60px;
  overflow: hidden;
  isolation: isolate;
}

.hero--v4 { padding-top: 70px; }

/* Background slides — cross-fade */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 8s var(--ease-out);
  filter: grayscale(30%) contrast(1.1) brightness(0.55);
}

.hero-bg__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero--v4::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255, 90, 31, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 80%);
  z-index: 1;
  pointer-events: none;
}

/* Top live ticker */
.hero-ticker {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
  overflow: hidden;
}

.hero-ticker__live {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.hero-ticker__pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-ticker__track {
  display: flex;
  gap: 32px;
  flex: 1;
  white-space: nowrap;
  animation: marqueeScroll 50s linear infinite;
}

.hero-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
}

.hero-ticker__dot {
  color: var(--accent);
}

.hero-ticker__time {
  flex-shrink: 0;
  color: var(--text-1);
  font-family: 'Menlo', 'Consolas', monospace;
  letter-spacing: 0.2em;
}

/* Hero content */
.hero__container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero__top {
  margin-bottom: 40px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-1);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8.6vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 56px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero__title-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.hero__title-line:nth-child(2) { padding-left: clamp(20px, 5vw, 80px); }
.hero__title-line:nth-child(3) { padding-left: clamp(0px, 1.5vw, 24px); }

.hero__title-line .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out);
}

.hero__title-line .word.is-in { transform: translateY(0); }

.hero__title-line:nth-child(2) .word { transition-delay: 0.08s; }
.hero__title-line:nth-child(3) .word { transition-delay: 0.16s; }

/* Акцент: Instrument Serif Italic между геометрических Unbounded-строк.
   Это даёт editorial-feel и контраст к прямым "Алюминий." / "Под ключ." */
.hero__title .accent {
  font-family: var(--font-accent);
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  /* слегка крупнее, чтобы курсив дышал рядом с геометрией */
  font-size: 1.08em;
  line-height: 0.95;
  /* лёгкое смещение, чтобы оптически выровнять baseline */
  position: relative;
  top: 0.04em;
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 60px;
}

.hero__subtitle {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-1);
  max-width: 600px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Stats ribbon внутри hero */
.hero__stats {
  display: flex;
  gap: 0;
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid var(--line-strong);
}

.hero-stat {
  flex: 1;
  padding: 24px 0;
  padding-right: 32px;
  border-right: 1px solid var(--line);
  position: relative;
}

.hero-stat:last-child { border-right: 0; }

.hero-stat__value {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  text-shadow: 0 4px 20px rgba(255, 90, 31, 0.3);
}

.hero-stat__label {
  font-size: 13px;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-scroll__mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--text-2);
  border-radius: 12px;
  position: relative;
}

.hero-scroll__wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 1.6s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* Гигантский фоновый wordmark */
.hero-wordmark {
  position: absolute;
  bottom: -20px;
  right: -10px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(160px, 22vw, 360px);
  font-weight: 800;
  line-height: 0.7;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 32px; }
  .hero__actions { justify-content: flex-start; }
  .hero__stats { flex-wrap: wrap; gap: 24px 0; }
  .hero-stat { flex: 0 0 50%; border-right: 0; padding-right: 0; }
  .hero-wordmark { font-size: 100px; bottom: -10px; right: 0; }
  .hero-scroll { display: none; }
  .hero-ticker__track { animation-duration: 30s; }
}

/* =================================================
   HERO v2 — СПЛИТ
   ================================================= */
.hero--v2 {
  background: var(--bg-0);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  min-height: 60vh;
}

.hero-split__title {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 24px 0 28px;
}

.hero-split__line {
  display: block;
  overflow: hidden;
}

.hero-split__line:nth-child(2) { padding-left: clamp(0px, 6vw, 100px); }

.hero-split__line .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}

.hero-split__line .word.is-in { transform: translateY(0); }
.hero-split__line:nth-child(2) .word { transition-delay: 0.08s; }

.hero-split__subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-1);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-split__right {
  display: grid;
  gap: 16px;
}

.hero-split__image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  filter: grayscale(10%) contrast(1.05);
}

.hero-split__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 90, 31, 0.15));
}

.hero-split__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg-0);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
}

.hero-split__badge-num { font-size: 22px; }
.hero-split__badge-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; }

.hero-split__images-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100px;
}

.hero-split__thumb {
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md);
  filter: grayscale(20%) contrast(1.05);
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-split__right { order: -1; }
}

/* =================================================
   HERO v3 — РЕДАКЦИОННЫЙ
   ================================================= */
.hero--v3 {
  background: var(--bg-0);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  display: flex;
  align-items: stretch;
}

.hero-v3__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
  filter: grayscale(80%) contrast(1.1) brightness(0.4);
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

.hero--v3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6) 80%);
  z-index: 1;
  pointer-events: none;
}

.hero-v3__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.hero-v3__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.hero-v3__quote-mark {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: serif;
  font-size: 200px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  pointer-events: none;
}

.hero-v3__quote {
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin: 0 0 32px;
  max-width: 1100px;
}

.hero-v3__quote .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  margin: 0 0.05em;
}

.hero-v3__quote .word.is-in { transform: translateY(0); }
.hero-v3__quote .word:nth-child(2) { transition-delay: 0.08s; }
.hero-v3__quote .word:nth-child(3) { transition-delay: 0.16s; }

.hero-v3__quote .accent { color: var(--accent); font-style: italic; font-weight: 400; }

.hero-v3__sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-1);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-v3__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-v3__bottom {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-v3__stat {
  text-align: center;
}

.hero-v3__stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-v3__stat-label {
  font-size: 12px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .hero-v3__bottom { gap: 32px; }
  .hero-v3__stat-num { font-size: 28px; }
}

/* =================================================
   MARQUEE
   ================================================= */
.marquee--accent .marquee__item { color: var(--text-0); }
.marquee--accent .marquee__item--accent { color: var(--accent); }

/* =================================================
   ABOUT
   ================================================= */
.about {
  background: var(--bg-0);
}

.about__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 100px;
  align-items: start;
}

.about__lead {
  font-size: clamp(20px, 2.4vw, 32px);
  color: var(--text-0);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 24px 0 32px;
}

.about__text p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 580px;
}

.about__visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.about__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%);
  z-index: 1;
}

.about__visual-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 240px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.05em;
  z-index: 2;
  opacity: 0.15;
}

.about__visual-num {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}

.about__visual-text {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 3;
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about__layout { grid-template-columns: 1fr; gap: 60px; }
}

/* =================================================
   DIRECTIONS (bento)
   ================================================= */
.directions {
  background: var(--bg-0);
}

/* =================================================
   PROJECTS
   ================================================= */
.projects {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* =================================================
   DIRECTIONS — раскрытие направлений
   ================================================= */
.dir-blocks {
  display: flex;
  flex-direction: column;
  gap: 120px;
  margin-top: 120px;
}

.dir-block {
  position: relative;
}

.dir-block__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.dir-block--right .dir-block__inner {
  grid-template-columns: 1fr 1.1fr;
}

.dir-block--right .dir-block__visual { order: 2; }
.dir-block--right .dir-block__content { order: 1; }

.dir-block__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-1);
}

.dir-block__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out);
}

.dir-block__visual:hover img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.1);
}

.dir-block__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 90, 31, 0.15));
  pointer-events: none;
}

.dir-block__num {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: -0.04em;
  mix-blend-mode: difference;
}

.dir-block__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: var(--bg-0);
  border-radius: var(--r-md);
  margin-bottom: 28px;
}

.dir-block__title {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.dir-block__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-1);
  margin-bottom: 32px;
  max-width: 560px;
}

/* Subtypes */
.dir-subtypes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.dir-subtype {
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all 400ms var(--ease);
}

.dir-subtype:hover {
  border-color: var(--accent-line);
  background: var(--bg-2);
  transform: translateY(-3px);
}

.dir-subtype__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-sm);
  margin-bottom: 16px;
}

.dir-subtype__icon i { width: 20px; height: 20px; }

.dir-subtype__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-0);
}

.dir-subtype__text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* Stats внутри блока */
.dir-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding: 28px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dir-stat__value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.dir-stat__label {
  font-size: 13px;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .dir-block__inner,
  .dir-block--right .dir-block__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .dir-block--right .dir-block__visual { order: 1; }
  .dir-block--right .dir-block__content { order: 2; }
  .dir-subtypes { grid-template-columns: 1fr; }
  .dir-blocks { gap: 80px; margin-top: 80px; }
}

/* =================================================
   IT-ОТДЕЛ — фирменный блок с терминалом
   ================================================= */
.it-section {
  position: relative;
  margin-top: 40px;
  padding: 64px 56px;
  background: linear-gradient(180deg, #050810, #0a0e1a);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2xl);
  overflow: hidden;
  isolation: isolate;
}

.it-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(255, 90, 31, 0.1), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.it-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

.it-section__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 56px;
}

.terminal {
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  font-family: 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid var(--line);
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.terminal__title {
  margin-left: 12px;
  font-size: 11px;
  color: var(--text-2);
}

.terminal__body {
  padding: 20px 24px;
  min-height: 280px;
  color: #d4d4d4;
}

.terminal__line {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal__prompt {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
  user-select: none;
}

.terminal__cmd {
  color: #fff;
}

.terminal__out {
  color: #888;
}

.terminal__line--ok .terminal__out { color: #4ade80; }

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.it-section__content .eyebrow {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.it-section__content .eyebrow::before {
  background: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.it-section__content .dir-block__title { font-size: clamp(28px, 3.5vw, 44px); }

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
}

.tech-pill {
  display: inline-flex;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-0);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 300ms var(--ease);
}

.tech-pill:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.tech-pill--sm {
  padding: 5px 10px;
  font-size: 11px;
}

/* Продукты IT-отдела */
.it-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.it-product {
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  transition: all 400ms var(--ease);
  position: relative;
  overflow: hidden;
}

.it-product:hover {
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}

.it-product__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.it-product__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.it-product__url {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  color: var(--accent);
}

.it-product__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-0);
  background: var(--accent);
  border-radius: 999px;
}

.it-product__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin-bottom: 24px;
}

.it-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-1);
}

.it-feature i { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

.it-product__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .it-section { padding: 40px 24px; }
  .it-section__grid { grid-template-columns: 1fr; gap: 40px; }
  .it-products { grid-template-columns: 1fr; }
  .it-product__features { grid-template-columns: 1fr; }
}

/* =================================================
   PRODUCTION
   ================================================= */
.production {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

.production__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.production__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.production__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
}

.production__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.8));
}

.production__visual-caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.production__visual-caption h4 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #fff;
}

.production__visual-caption p {
  font-size: 13px;
  color: var(--text-2);
}

.production__visual-num {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 800;
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

@media (max-width: 900px) {
  .production__layout { grid-template-columns: 1fr; gap: 60px; }
}

/* =================================================
   PRODUCTION (новая magazine-раскладка prod-list / prod-step)
   ================================================= */
.prod-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin: 60px 0 80px;
  align-items: start;
}

/* чередование L/R: номер с одной стороны, контент с другой */
.prod-step--l .prod-step__num   { grid-column: 1; }
.prod-step--l .prod-step__inner { grid-column: 2; }
.prod-step--r .prod-step__num   { grid-column: 2; }
.prod-step--r .prod-step__inner { grid-column: 1; }

.prod-step__num {
  font-family: var(--font-display, system-ui);
  font-size: 96px;
  font-weight: 800;
  color: var(--accent, #ff5a1f);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.prod-step__inner { color: var(--text-1, #fff); }
.prod-step__icon { color: var(--accent, #ff5a1f); margin-bottom: 16px; }
.prod-step__icon svg { width: 28px; height: 28px; display: block; }
.prod-step__title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
}
.prod-step__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2, rgba(255,255,255,0.65));
  margin: 0;
}

.prod-image {
  position: relative;
  border-radius: var(--r-lg, 20px);
  overflow: hidden;
  border: 1px solid var(--line, rgba(255,255,255,0.1));
  aspect-ratio: 16/9;
  max-width: 70%;
  margin: 0 auto;
}
.prod-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
  display: block;
}
.prod-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7));
  pointer-events: none;
}
.prod-image__caption {
  position: absolute;
  bottom: 32px; left: 32px; right: 32px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.prod-image__num {
  font-family: var(--font-display, system-ui);
  font-size: 64px;
  font-weight: 800;
  color: var(--accent, #ff5a1f);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.prod-image__label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-align: right;
  max-width: 240px;
}

@media (max-width: 900px) {
  .prod-list { grid-template-columns: 1fr; gap: 40px; margin: 40px 0 60px; }
  .prod-step--l .prod-step__num,
  .prod-step--r .prod-step__num   { grid-column: 1; }
  .prod-step--l .prod-step__inner,
  .prod-step--r .prod-step__inner { grid-column: 1; }
  .prod-step__num { font-size: 64px; }
  .prod-image { max-width: 100%; }
  .prod-image__num { font-size: 44px; }
}

/* =================================================
   ADVANTAGES (bento)
   ================================================= */
.advantages {
  background: var(--bg-0);
}

/* =================================================
   PARTNERS
   ================================================= */
.partners-section {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* =================================================
   CONTACT
   ================================================= */
.contact {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact__info-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 40px 0 40px;
}

.contact__info-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  background: var(--bg-1);
  text-decoration: none;
  color: inherit;
  transition: background 400ms var(--ease);
}

a.contact__info-item:hover { background: var(--bg-2); }

.contact__info-item-text { flex: 1; }
.contact__info-item-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.contact__info-item-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-0);
}

.contact__form {
  padding: 48px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2xl);
}

.contact__form-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.contact__form-sub {
  color: var(--text-2);
  margin-bottom: 32px;
  font-size: 15px;
}

.contact__form-result {
  padding: 16px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  margin-top: 20px;
  display: none;
}

.contact__form-result.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.contact__form-result.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
}

@media (max-width: 900px) {
  .contact__layout { grid-template-columns: 1fr; gap: 60px; }
  .contact__form { padding: 32px 24px; }
}

/* =================================================
   FOOTER
   ================================================= */
.footer {
  background: var(--bg-0);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--text-0);
  margin-bottom: 16px;
}

/* Гигантский фоновый wordmark в футере */
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(120px, 22vw, 360px);
  line-height: 0.7;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  text-align: center;
  margin: 60px -20px 40px;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

.footer__brand-desc {
  color: var(--text-2);
  font-size: 14px;
  max-width: 320px;
}

.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-bottom: 24px;
}

.footer__col-list a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-1);
  text-decoration: none;
  transition: color 300ms var(--ease);
}

.footer__col-list a:hover { color: var(--accent); }

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-2);
}

.footer__bottom-links {
  display: flex;
  gap: 32px;
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
