:root {
  --bg: #f4f7ff;
  --card: #ffffff;
  --text: #101828;
  --muted: #5b667a;
  --blue: #0b4dbb;
  --blue-2: #083a8e;
  --yellow: #ffd028;
  --yellow-2: #f2bd00;
  --border: #dbe4ff;
  --shadow: 0 10px 30px rgba(6, 36, 94, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #edf3ff 0%, #f8fbff 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 25, 64, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo__badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #051332;
  background: var(--yellow);
}
.logo strong { display: block; font-size: 15px; letter-spacing: .3px; }
.logo small { display: block; color: #b9c8f5; font-size: 12px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.nav a {
  color: #d9e5ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 4px;
  border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 3px solid rgba(11, 77, 187, .35);
  outline-offset: 2px;
}
.btn--sm { padding: 10px 14px; font-size: 14px; }
.btn--yellow {
  background: var(--yellow);
  color: #1f1f1f;
  border-color: var(--yellow-2);
}
.btn--yellow:hover { background: #ffda46; box-shadow: 0 6px 18px rgba(242, 189, 0, .35); }
.btn--blue {
  background: var(--blue);
  color: #fff;
  border-color: #194fba;
}
.btn--blue:hover { background: var(--blue-2); box-shadow: 0 8px 20px rgba(11, 77, 187, .3); }
.btn--ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--ghost:hover {
  background: rgba(11, 77, 187, .08);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 320px at 85% -20%, rgba(255,208,40,.35), transparent 60%),
    linear-gradient(120deg, #072354 0%, #0c4fbf 60%, #1564d8 100%);
  color: #fff;
  padding: 56px 0 44px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}

.hero__label {
  display: inline-block;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  margin: 0 0 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 800;
  max-width: 760px;
}

.hero__lead {
  margin-top: 16px;
  max-width: 760px;
  color: #ecf2ff;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.65;
}

.phones {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.phone {
  background: #fff;
  color: #0a3f9c;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 44px;
  font-size: clamp(18px, 3.3vw, 26px);
  font-weight: 800;
  box-shadow: var(--shadow);
}
.phone:hover { background: #f7fbff; }
.phone:focus-visible {
  outline: 3px solid rgba(255, 208, 40, .55);
  outline-offset: 2px;
}

.hero__cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__bullets {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.hero__bullets li::before {
  content: '✔';
  color: var(--yellow);
  font-weight: 800;
  margin-right: 8px;
}

.hero__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.media-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  overflow: hidden;
}
.media-card img,
.media-card video {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #dfe8ff;
}
.media-card span {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: #eaf2ff;
}
.media-card--main {
  grid-column: 1 / -1;
}
.media-card--main img,
.media-card--main video { height: 220px; }

.section { padding: clamp(52px, 7vw, 72px) 0; }
.section--alt { background: #f0f5ff; }
.section--blue {
  background: linear-gradient(180deg, #0f3f99 0%, #0a2f73 100%);
  color: #fff;
}
.section--accent {
  background: linear-gradient(180deg, #fff6d9 0%, #fff 100%);
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cards {
  display: grid;
  gap: 14px;
}
.cards--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(10, 46, 117, 0.07);
}
.card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); line-height: 1.62; }
.card small { color: #667085; }

.steps {
  display: grid;
  gap: 12px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.steps li {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 14px;
}
.steps p { margin: 8px 0 0; color: #dce8ff; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.works-grid figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.works-grid img,
.works-grid video {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #dfe8ff;
}
.works-grid figcaption {
  padding: 10px 12px;
  font-size: 14px;
  color: #4b5565;
}
.subhead {
  margin: 26px 0 12px;
  font-size: 24px;
}
.works-grid--all {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.works-grid--all figure img,
.works-grid--all figure video {
  height: 180px;
}
.video-card { grid-column: 1 / -1; }
.video-card video { height: 320px; }

.faq {
  display: grid;
  gap: 10px;
}
details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
details p { color: var(--muted); margin: 10px 0 4px; }

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f2ff;
  border: 1px solid #b9d6ff;
  color: #0b4dbb;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.lead-form {
  background: #fff;
  border: 1px solid #ffe6a0;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid #cdd8ef;
  border-radius: 10px;
  padding: 12px 12px;
  min-height: 44px;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.lead-form input:focus-visible,
.lead-form textarea:focus-visible {
  border-color: #7da9f7;
  box-shadow: 0 0 0 3px rgba(125, 169, 247, .25);
  outline: none;
}
.form-msg {
  min-height: 1.2em;
  margin: 0;
  font-size: 14px;
}
.form-msg.error { color: #b42318; }
.form-msg.success { color: #166534; }

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contacts a { color: var(--blue); }
.contacts__note {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.contacts__note h3 { margin-top: 0; }

/* Process video strip */
.process-media{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px){
  .process-media{grid-template-columns: 1fr;}
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.lightbox.is-open{display:flex;}
.lightbox__img{
  max-width: min(1100px, 100%);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.lightbox__close{
  position:absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 24px;
  cursor:pointer;
}
.lightbox__nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 26px;
  cursor:pointer;
}
.lightbox__prev{left: 14px;}
.lightbox__next{right: 14px;}

.footer {
  background: #081a3d;
  color: #d6e3ff;
  padding: 16px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.footer a { color: #fff; text-decoration: none; }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .cards--3,
  .works-grid,
  .form-wrap,
  .contacts { grid-template-columns: 1fr 1fr; }
  .works-grid--all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-card { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav { display: none; }
  .cards--3,
  .works-grid,
  .form-wrap,
  .contacts,
  .works-grid--all { grid-template-columns: 1fr; }
  .container { width: min(1160px, calc(100% - 24px)); }
  .header__inner { min-height: 64px; }
  .hero { padding-top: 36px; }
  .hero__lead { margin-top: 14px; }
  .hero__cta { gap: 8px; }
  .phone { width: 100%; text-align: center; }
  .hero__cta .btn { flex: 1 1 auto; min-height: 46px; }
  .lead-form { padding: 14px; }
  .video-card video { height: 230px; }
}
