/* Base */
:root {
  --brand-primary: #183867; /* обновлено под цвет заголовков */
  --brand-accent: #00d1ff;
  --brand-dark: #0a1023;
  --brand-light: #f4f7ff;
  --text: #0d1330;
  --muted: #667084;
  --success: #11a36a;
  --danger: #e54b4b;
  --radius: 14px;
  --shadow-1: 0 8px 24px rgba(0, 20, 80, 0.12);
  --shadow-2: 0 20px 48px rgba(0, 20, 80, 0.16);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--brand-light);
  line-height: 1.5;
}
html { scroll-behavior: smooth; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand .logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand .logo-img { height: 34px; width: auto; display: block; }
.brand .tagline { display: none; margin-left: 12px; }
.brand .tagline-line1 { font-weight: 600; color: var(--text); }
.brand .tagline-line2 { color: var(--muted); font-weight: 600; }
.site-nav { display: flex; gap: 18px; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav .btn-primary { color: #fff; }

/* Hamburger */
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; margin-right: 6px; cursor: pointer; }
.nav-toggle .nt-bar { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle[aria-expanded="true"] .nt-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle[aria-expanded="true"] .nt-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle[aria-expanded="true"] .nt-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 0; font-weight: 600; }
.btn-primary { background: var(--brand-primary); color: #fff; box-shadow: var(--shadow-1); }
.btn-accent { background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); color: #fff; box-shadow: var(--shadow-2); }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid rgba(0,0,0,.08); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Sections */
.section { position: relative; padding: 72px 0; }
.section-light { background: var(--brand-light); }
.section-dark { background: radial-gradient(1200px 600px at 20% 20%, rgba(0,71,255,.15), transparent), #070b18; color: #eaf0ff; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(28px, 4vw, 48px); text-transform: uppercase; }
h2 { font-size: clamp(22px, 3vw, 32px); color: #183867; }
p { margin: 0 0 14px; }

/* Hero with animated bg */
.hero { min-height: 70vh; display: grid; place-items: center; overflow: hidden; }
.hero-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-content h1 { color: #fff; }
/* Futuristic title animation */
.hero-title { position: relative; display: inline-block; letter-spacing: 0.02em; filter: drop-shadow(0 2px 12px rgba(0,180,255,.28)); }
.hero-title .ht-line { display: block; overflow: hidden; }
.hero-title .ht-word { display: inline-block; opacity: 0; transform: translateY(24px) scale(.98); animation: ht-pop .7s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-title .ht-char { display: inline-block; opacity: 0; transform: translateY(12px); animation: ht-type .65s ease forwards; }
.hero-title::after { content: ""; position: absolute; left: -10%; right: -10%; height: 2px; bottom: -6px; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,255,255,.9), rgba(0,0,0,0)); transform: translateX(-120%); animation: ht-scan 3s linear infinite; }
@keyframes ht-type { to { opacity: 1; transform: translateY(0); } }
@keyframes ht-pop { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ht-scan { to { transform: translateX(120%); } }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

/* Image blocks */
.block-visual { position: relative; min-height: 70vh; display: grid; place-items: center; overflow: hidden; }
.parallax-bg { background-position: center center; background-size: cover; background-repeat: no-repeat; will-change: transform; }
.block-overlay { position: absolute; inset: 0; background: radial-gradient(800px 400px at 20% 20%, rgba(0,71,255,.16), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.25)); mix-blend-mode: normal; }
.block-inner { position: relative; z-index: 1; color: #fff; text-align: center; padding: 42px 0; }
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* OCR content blocks */
.block-content { width: min(960px, 92vw); margin: 0 auto; text-align: left; background: rgba(6, 12, 28, .55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); padding: 22px 22px; border-radius: 16px; box-shadow: var(--shadow-2); }
.block-content h2 { margin: 0 0 10px; font-size: clamp(20px, 3vw, 28px); color: #fff; }
.block-content p { color: #e8eeff; margin: 8px 0; }
.content-list { margin: 8px 0; padding-left: 18px; color: #e8eeff; }
.content-list li { margin: 6px 0; }
.content-timeline { display: grid; gap: 8px; margin: 10px 0; }
.content-timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 10px 12px; border-radius: 12px; }
.content-timeline .ct-time { color: var(--brand-accent); font-weight: 600; }
.content-timeline .ct-text { color: #e8eeff; }

/* Structured sections from mock */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.stat-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #eaf0ff; padding: 14px; border-radius: 12px; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.prod-tile { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #eaf0ff; padding: 12px; border-radius: 12px; text-align: center; }
/* Products 4x2 grid */
.prod-grid8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 14px; }
.prod-item { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-1); background: #fff; padding: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.prod-img { width: 100%; height: clamp(160px, 20vw, 220px); background-size: contain; background-repeat: no-repeat; background-position: center; transition: transform .25s ease; will-change: transform; }
.prod-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.prod-item:hover .prod-img { transform: scale(1.06); }
@media (max-width: 900px) { .prod-grid8 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .prod-grid8 { grid-template-columns: repeat(2, 1fr); } }
.adv-list { display: grid; gap: 8px; margin-top: 8px; padding-left: 18px; color: #e8eeff; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
}

/* Program section */
.program { overflow: hidden; }
.program .container { position: relative; z-index: 1; }
.program-bg { position: absolute; inset: 0; z-index: 0; }
#program-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.program-gradient { position: absolute; inset: -10%; background: radial-gradient(circle at 20% 30%, rgba(0,71,255,.22), transparent 40%), radial-gradient(circle at 80% 60%, rgba(0,209,255,.18), transparent 50%); filter: blur(40px); }
.program-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.program-card { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; background: rgba(6, 20, 58, .55); border: 1px solid rgba(122, 170, 255, .25); color: #eaf0ff; padding: 14px; border-radius: 14px; overflow: hidden; }
.pc-time { color: var(--brand-accent); font-weight: 700; }
.pc-wave { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 100%); transform: translateX(-120%); pointer-events: none; }
.program-card.animate .pc-wave { animation: wave-scan 1.2s ease-out forwards; }
@keyframes wave-scan { to { transform: translateX(120%); } }
@media (max-width: 900px) { .program-grid { grid-template-columns: 1fr; } .program-card { grid-template-columns: 120px 1fr; } }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.media-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); background: #000; }
.media-img { width: 100%; padding-top: 62%; background-size: cover; background-position: center; filter: contrast(1.05) saturate(1.1); }
/* Geo section: match previous block height */
.geo .media-img { padding-top: 62%; }

/* Reasons block */
.reasons .reasons-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; align-items: start; }
.reasons .reason { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; background: transparent; border: 0; padding: 0; box-shadow: none; }
.reasons .reason-ico { width: 72px; height: 72px; object-fit: contain; filter: saturate(1.2); }
.reasons .reason h3, .reasons .reason p { grid-column: 2; }
.reasons h3 { margin: 0 0 6px; color: #4b5569; font-size: 22px; }
.reasons p { margin: 0; color: #3b4355; margin-top: 6px; }
@media (max-width: 900px) { .reasons p { margin-top: 8px; } }
@media (min-width: 901px) {
  .reasons h3 { margin-bottom: 4px; }
  .reasons p { margin-top: 0; }
}
@media (max-width: 900px) { .reasons .reasons-grid { grid-template-columns: 1fr; } .reasons .reason { grid-template-columns: 64px 1fr; } .reasons .reason-ico { width: 56px; height: 56px; } }

/* About block layout: left full-height photo, text on the right */
.about .about-grid { align-items: stretch; }
.about .about-photo .media-img { height: 100%; padding-top: 0; min-height: 420px; }
@media (max-width: 900px) {
  .about .about-photo .media-img { min-height: 280px; }
}

.check-list { padding-left: 18px; }
.check-list li { margin: 8px 0; }

/* Timeline */
.timeline { display: grid; gap: 10px; margin-top: 12px; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: start; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.timeline-item span { color: var(--brand-accent); font-weight: 600; }

/* Form */
.form { margin-top: 12px; background: #fff; padding: 20px; border-radius: 16px; box-shadow: var(--shadow-1); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-field { display: grid; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label .req { color: var(--danger); margin-left: 4px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #d7dbe7; outline: none; transition: border .2s, box-shadow .2s; font-size: 14px;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(0,71,255,.08); }
.consent .checkbox { display: inline-flex; gap: 8px; align-items: center; padding: 0; margin: 0; }
.consent { justify-items: start; }
.consent .checkbox { justify-content: flex-start; }
.consent .checkbox input { width: 18px; height: 18px; margin: 0; }
.consent .checkbox span { white-space: nowrap; font-size: 14px; }
@media (max-width: 600px) {
  .consent .checkbox span { white-space: normal; word-break: break-word; }
}
.form-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.link-privacy { color: var(--brand-primary); text-decoration: none; }
.form-status { min-height: 20px; font-size: 14px; color: var(--muted); }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* Footer */
.site-footer { display: none; }
.footer-grid { display: none; }
/* Full-width footer banner */
.footer-banner { display: block; width: 100%; }
.footer-banner .footer-img, .footer-img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-2); }
@media (max-width: 600px) {
  /* Full-bleed footer banner on small screens */
  .footer-banner { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .footer-banner .footer-img, .footer-img { border-radius: 0; box-shadow: none; }
}

/* Back-to-top button */
.back-to-top { position: fixed; right: 5px; bottom: 5px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brand-primary); color: #fff; box-shadow: var(--shadow-2); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 1200; }
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.is-visible { display: inline-flex; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.6); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; margin: 5vh auto; width: min(880px, 92%); background: #fff; color: var(--text); border-radius: 16px; box-shadow: var(--shadow-2); padding: 20px; max-height: 90vh; overflow: auto; }
.modal-close { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d7dbe7; background: #fff; cursor: pointer; }
.modal-body p { margin: 10px 0; }

/* Parallax layers */
.parallax .layer { position: absolute; inset: -10%; background: radial-gradient(500px 200px at 20% 30%, rgba(0,71,255,.12), transparent), radial-gradient(600px 180px at 80% 70%, rgba(0,209,255,.1), transparent); pointer-events: none; }

/* Responsive */
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .site-header .container { padding: 10px 0; }
}
@media (max-width: 600px) {
  .form { padding: 14px; border-radius: 12px; }
  .form-field input, .form-field textarea, .form-field select { font-size: 16px; }
}

/* Header mobile/tablet behavior up to 900px */
@media (max-width: 900px) {
  .brand { display: flex; align-items: center; }
  .brand .tagline { display: none !important; }
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 1001; background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(0,0,0,.06); display: none; flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav a { padding: 12px 16px; border-top: 1px solid rgba(0,0,0,.06); }
  .nav-open .site-nav { display: flex; }
}

/* Desktop only: show tagline next to logo */
@media (min-width: 901px) {
  .site-header .container { gap: 16px; }
  .brand { display: flex; align-items: center; }
  .brand .tagline { display: block; }
}

/* Company block */
.company { background: #fff; color: var(--text); }
.company { position: relative; overflow: hidden; }
.company-bg { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#company-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.company .container { position: relative; z-index: 1; }
.company-right { position: relative; z-index: 3; }
.company-left { position: relative; z-index: 1; padding: 5px; }
.company-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.company-left h2 { margin-bottom: 32px; }
.company-sub { color: #4b5569; font-weight: 600; text-transform: none; font-size: 30px; line-height: 1.5; }
.company-points { display: grid; gap: 12px; margin-top: 12px; }
.cp-item { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: start; }
.cp-ico { width: 72px; height: 72px; object-fit: contain; filter: saturate(1.2); }
.company-left p { margin: 8px 0; font-size: 1.5em; line-height: 1.5; }
.company-note { color: #8a93a8; font-size: 26px; margin-top: 8px; }
.company-right { margin: 0; display: flex; flex-direction: column; }
.company-photo { width: 100%; height: 100%; border-radius: 12px; box-shadow: var(--shadow-2); object-fit: cover; }
.company-photo { position: relative; z-index: 4; }
.company-caption { text-align: center; color: #4b5569; margin-top: 8px; font-weight: 600; font-size: 20px; }
@media (max-width: 900px) { .company-grid { grid-template-columns: 1fr; } .company-right { order: -1; } .company-photo { height: auto; } }

/* Company mobile fine-tuning */
@media (max-width: 600px) {
  .company-grid { gap: 18px; }
  .company-left h2 { margin-bottom: 10px; }
  .company-sub { font-size: 18px; line-height: 1.35; }
  .company-left p { font-size: 15px; line-height: 1.5; }
  .cp-item { grid-template-columns: 56px 1fr; gap: 12px; }
  .cp-ico { width: 48px; height: 48px; }
  .company-caption { font-size: 16px; }
}


