:root {
  --bg: #1f2a38;
  --bg-2: #203551;
  --bg-3: #172130;
  --blue: #194c7b;
  --accent: #67caf0;
  --primary: #0088ff;
  --text: #f4f4f4;
  --muted: #a9b6c6;
  --line: rgba(255, 255, 255, .12);
  --radius: 14px;
  --container: 1240px;
  --ff-head: "Raleway", Arial, sans-serif;
  --ff-text: "Inter", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--ff-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--ff-head); margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 32px;
  font: 600 14px/1 var(--ff-head); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 30px rgba(0, 136, 255, .3); }
.btn--primary:hover { background: #1a95ff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 136, 255, .45); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--bg); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 12px; }
.btn--lg { height: 64px; padding: 0 44px; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-scrolled { background: rgba(23, 33, 48, .86); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; gap: 40px; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--accent); flex-shrink: 0; }
.logo__mark { width: 38px; height: 38px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; color: var(--text); }
.logo__text b { font: 800 18px/1.1 var(--ff-head); letter-spacing: .06em; }
.logo__text small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 32px; margin-right: auto; }
.nav a { font: 500 14px var(--ff-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--accent); }
.header__right { display: flex; align-items: center; gap: 24px; }
.header__phone { font: 600 16px var(--ff-head); white-space: nowrap; }
.header__phone:hover { color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 80px; overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 45%, rgba(25, 76, 123, .55), transparent 70%),
    radial-gradient(500px 400px at 72% 50%, rgba(103, 202, 240, .12), transparent 70%),
    linear-gradient(180deg, rgba(23, 33, 48, .2) 60%, var(--bg)),
    url("https://images.unsplash.com/photo-1455165814004-1126a7199f9b?auto=format&fit=crop&w=2000&q=70") center / cover no-repeat,
    var(--bg-3);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-3) 0%, rgba(23, 33, 48, .85) 40%, rgba(23, 33, 48, .2) 100%); }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; opacity: .25;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%);
}
.hero__truss { position: absolute; right: 4%; top: 50%; width: min(46vw, 640px); transform: translateY(-46%); color: rgba(103, 202, 240, .28); }
.hero__truss path { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 3.2s ease forwards; }
.hero__weld { fill: #fff; filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 22px var(--accent)) drop-shadow(0 0 40px var(--primary)); animation: flicker .12s infinite alternate; }
.hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flicker { from { opacity: .75; } to { opacity: 1; } }

.hero__inner { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font: 500 13px var(--ff-head); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--accent); }
.hero__title { font-size: clamp(42px, 7vw, 96px); font-weight: 500; line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
.hero__title span { color: var(--accent); font-weight: 700; font-size: .62em; letter-spacing: .01em; }
.hero__lead { max-width: 520px; margin-top: 32px; font-size: 18px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

.stats { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 80px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 780px; }
.stats li { flex: 1 1 200px; padding: 28px 32px 0 0; }
.stats li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.stats b { display: block; font: 500 clamp(40px, 4.4vw, 58px)/1 var(--ff-head); }
.stats li > span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 180px; }

/* ===== Sections ===== */
.section { padding: 130px 0; position: relative; }
.section__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 64px; }
.label { color: var(--accent); font: 600 13px var(--ff-head); letter-spacing: .16em; text-transform: uppercase; }
.h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 500; line-height: 1.05; text-transform: uppercase; }

/* About */
.about { background: var(--bg); }
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.about__text { display: grid; gap: 20px; color: var(--muted); font-size: 17px; }
.about__lead { color: var(--text); font-size: 22px; line-height: 1.5; font-family: var(--ff-head); font-weight: 500; }
.about__photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(23, 33, 48, .95)); }
.about__photo figcaption { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; display: grid; gap: 6px; }
.about__photo figcaption b { font: 600 28px var(--ff-head); color: var(--accent); text-transform: uppercase; }
.about__photo figcaption span { color: var(--text); font-size: 15px; }
.about__card { background: linear-gradient(160deg, var(--bg-2), var(--bg-3)); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.about__card-row { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.about__card-row:first-child { padding-top: 0; }
.about__card-row span { font-size: 13px; color: var(--muted); }
.about__card-row b { font: 600 17px var(--ff-head); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--accent); font: 600 14px var(--ff-head); letter-spacing: .06em; text-transform: uppercase; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Services */
.services { background: var(--bg-3); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { position: relative; background: var(--bg-3); display: flex; flex-direction: column; transition: background .35s; overflow: hidden; }
.service::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; z-index: 2; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .45s; }
.service:hover { background: var(--bg-2); }
.service:hover::before { transform: scaleX(1); }
.service__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 33, 48, .05) 40%, var(--bg-3)); transition: opacity .35s; }
.service:hover .service__img::after { opacity: .6; }
.service__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.85); transition: transform .8s ease, filter .5s; }
.service:hover .service__img img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.service__body { position: relative; padding: 8px 36px 44px; flex: 1; }
.service__num { display: block; font: 600 15px var(--ff-head); color: var(--accent); margin-bottom: 14px; }
.service h3 { font-size: 21px; font-weight: 600; line-height: 1.25; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .01em; }
.service p { color: var(--muted); font-size: 15px; }
.service--wide { grid-column: span 2; }
.service--wide .service__img { aspect-ratio: auto; height: 100%; min-height: 260px; }
.service--wide { display: grid; grid-template-columns: 1.15fr 1fr; }
.service--wide .service__img::after { background: linear-gradient(90deg, transparent 50%, var(--bg-3)); }
.service--wide .service__body { display: flex; flex-direction: column; justify-content: center; padding: 44px 40px; }
.service--wide h3 { font-size: 26px; }
.service--new .service__num::after { content: "Новое направление"; margin-left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(103, 202, 240, .14); color: var(--accent); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.cta-line { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 32px 40px; border: 1px dashed rgba(103, 202, 240, .4); border-radius: var(--radius); }
.cta-line p { font: 500 19px var(--ff-head); }

/* Steps */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: s; }
.steps__list li { counter-increment: s; position: relative; padding-top: 72px; }
.steps__list li::before { content: "0" counter(s); position: absolute; top: 0; left: 0; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font: 600 15px var(--ff-head); background: var(--bg); z-index: 1; }
.steps__list li::after { content: ""; position: absolute; top: 26px; left: 52px; right: -24px; height: 1px; background: var(--line); }
.steps__list li:last-child::after { display: none; }
.steps__list b { display: block; font: 600 20px var(--ff-head); text-transform: uppercase; margin-bottom: 10px; }
.steps__list p { color: var(--muted); font-size: 15px; }

/* Advantages */
.advantages { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.adv__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv { padding: 36px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .02); transition: border-color .3s, transform .3s; }
.adv:hover { border-color: var(--accent); transform: translateY(-4px); }
.adv h3 { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.adv h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.adv p { color: var(--muted); font-size: 15px; }

/* CTA */
.cta { padding: 0; background: var(--bg-2); }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-top: 100px; padding-bottom: 100px;
  background: radial-gradient(600px 300px at 90% 50%, rgba(0, 136, 255, .25), transparent 70%);
}
.cta__inner .label { display: block; margin-bottom: 18px; }
.cta__inner p { margin-top: 20px; color: var(--muted); font-size: 18px; }

/* Contacts */
.contacts { background: var(--bg); }
.contacts__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contacts__main { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contacts__big { font: 500 clamp(28px, 3.4vw, 44px)/1.1 var(--ff-head); transition: color .2s; word-break: break-word; }
.contacts__big--mail { color: var(--accent); }
.contacts__big:hover { color: var(--accent); }
.contacts__big--mail:hover { color: #fff; }
.contacts__addr { margin: 18px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); width: 100%; }
.contacts__addr span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contacts__addr p { margin-top: 8px; font-size: 18px; }
.contacts__map { min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.3) contrast(1.05); }


/* Footer */
.footer { background: var(--bg-3); border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 28px; }
.footer__nav a, .footer__contacts a { color: var(--muted); font: 500 14px var(--ff-head); text-transform: uppercase; letter-spacing: .06em; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--accent); }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer__contacts a { text-transform: none; font-size: 16px; color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 15, 24, .75); backdrop-filter: blur(4px); }
.modal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 44px 40px; transform: translateY(20px); transition: transform .3s; }
.modal__box--wide { max-width: 640px; }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--muted); font-size: 32px; cursor: pointer; line-height: 1; }
.modal__close:hover { color: var(--accent); }
.modal h3 { font-size: 28px; font-weight: 600; text-transform: uppercase; }
.modal__box > p { margin: 10px 0 28px; color: var(--muted); }
.policy { margin-top: 20px; display: grid; gap: 14px; color: var(--muted); }
.policy a { color: var(--accent); }

.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; }
.form label > span { font-size: 13px; color: var(--muted); }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 15px 18px; background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .is-invalid { border-color: #ff6b6b !important; }
.form__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; cursor: pointer; }
.form__check input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.form__note { font-size: 14px; color: var(--accent); min-height: 1em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__truss path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .header__phone { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service--wide { grid-column: 1 / -1; }
  .adv__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .steps__list li:nth-child(3)::after { display: none; }
  }
@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .burger { display: block; }
  .header__right { margin-left: auto; }
  .header__right .btn { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    background: rgba(23, 33, 48, .98); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .header__inner { height: 72px; }
  .header { background: rgba(23, 33, 48, .9); backdrop-filter: blur(12px); }
  .hero { padding: 120px 0 64px; min-height: auto; }
  .hero__truss { width: 90vw; right: -20vw; top: 30%; opacity: .55; }
  .stats li, .stats li + li { flex: 1 1 100%; padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 40px; }
  .about__grid, .contacts__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__lead { font-size: 19px; }
  .services__grid, .adv__grid { grid-template-columns: 1fr; }
  .service--wide { grid-column: auto; grid-template-columns: 1fr; }
  .service--wide .service__img { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .service--wide .service__img::after { background: linear-gradient(180deg, transparent 40%, var(--bg-3)); }
  .service__body, .service--wide .service__body { padding: 4px 24px 32px; }
  .service h3, .service--wide h3 { font-size: 20px; }
  .about__photo { aspect-ratio: 4 / 3; }
  .steps__list { grid-template-columns: 1fr; row-gap: 0; }
  .steps__list li { padding: 0 0 32px 76px; min-height: 84px; }
  .steps__list li::after { display: block !important; top: 52px; bottom: 0; left: 26px; right: auto; width: 1px; height: auto; }
  .steps__list li:last-child::after { display: none !important; }
  .cta-line { padding: 24px; }
  .cta__inner { padding-top: 72px; padding-bottom: 72px; }
  .cta__inner .btn { width: 100%; }
      .footer__contacts { align-items: flex-start; }
  .modal__box { padding: 40px 22px 28px; }
}
