/* ============ Spektr — modern site ============ */
:root {
  --navy-900: #062430;
  --navy-800: #08313f;
  --navy-700: #0a4257;
  --navy-600: #0d5670;
  --petrol: #00506b;
  --accent: #12b5c9;
  --accent-2: #38d0e0;
  --amber: #f5a623;
  --ink: #10222b;
  --body: #3a4a52;
  --muted: #6b7a82;
  --line: #e2e8ec;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --bg-softer: #eaf1f4;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(8, 49, 63, .06), 0 2px 8px rgba(8, 49, 63, .05);
  --shadow-md: 0 6px 24px rgba(8, 49, 63, .10);
  --shadow-lg: 0 20px 50px rgba(8, 49, 63, .18);
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--petrol); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 1.5px solid transparent; transition: all .22s ease; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #04252c; box-shadow: 0 8px 20px rgba(18, 181, 201, .35); }
.btn--primary:hover { background: var(--accent-2); color: #04252c; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn--dark { background: var(--petrol); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .98rem; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s;
}
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-phone span { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #0e5a74 0%, transparent 60%),
              linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--petrol) 100%);
  color: #dbe9ef;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0 108px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: 22px; }
.hero h1 .hl { color: var(--accent-2); }
.hero-lead { font-size: 1.18rem; color: #b9d2dc; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 2rem; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.hero-stats .stat span { font-size: .9rem; color: #93b4c0; }

/* spectrum visual */
.hero-visual { position: relative; }
.spectrum {
  display: flex; align-items: flex-end; gap: 7px; height: 300px;
  padding: 28px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; backdrop-filter: blur(4px); box-shadow: var(--shadow-lg);
}
.spectrum i {
  flex: 1; display: block; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, var(--accent) 0%, var(--accent-2) 100%);
  animation: bar 2.6s ease-in-out infinite; transform-origin: bottom;
}
@keyframes bar { 0%, 100% { transform: scaleY(.35); opacity: .75; } 50% { transform: scaleY(1); opacity: 1; } }
.hero-badge {
  position: absolute; bottom: -22px; left: -14px; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9rem;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }

/* trust strip */
.trust { background: var(--navy-800); color: #9fbdc8; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.trust-inner span { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 26px; }
.trust-badges b { color: #cfe2ea; font-weight: 700; font-size: .95rem; letter-spacing: .02em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-lead { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 34px; color: var(--body); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-softer); border: 2px solid var(--accent);
  background-image: linear-gradient(135deg, transparent 45%, var(--accent) 45%, var(--accent) 55%, transparent 55%);
}
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent);
  font-weight: 800; background: var(--bg-softer); width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; font-size: .8rem; top: 4px;
}
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-card b { font-size: 1.9rem; color: var(--petrol); font-weight: 800; letter-spacing: -.02em; display: block; }
.stat-card span { color: var(--muted); font-size: .92rem; }

/* ---------- SKD overview ---------- */
.skd-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.skd-figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-md); }
.skd-figure img { margin: 0 auto; }

/* ---------- Subsystem cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0e7; }
.card:hover::before { transform: scaleX(1); }
.card-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-softer); color: var(--petrol); display: grid; place-items: center; margin-bottom: 18px; }
.card-ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--body); font-size: .98rem; margin-bottom: 16px; }
.card .card-meta { color: var(--muted); font-size: .88rem; }
.card-more { font-weight: 600; color: var(--accent); font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.card-more:hover { color: var(--petrol); }
.card-detail { display: none; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.card.open .card-detail { display: block; }
.card-detail ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.card-detail li { position: relative; padding-left: 22px; font-size: .95rem; }
.card-detail li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.svc .num { font-size: .85rem; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.svc h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.svc p { font-size: .95rem; color: var(--body); margin: 0; }

/* ---------- Certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform .2s, box-shadow .2s; text-align: center;
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert-thumb { height: 200px; display: grid; place-items: center; padding: 16px; background: var(--bg-soft); }
.cert-thumb img { max-height: 100%; width: auto; object-fit: contain; }
.cert p { font-size: .85rem; padding: 12px 14px; margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-softer); color: var(--petrol); display: grid; place-items: center; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item b { display: block; color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.contact-item a, .contact-item p { margin: 0; color: var(--body); font-size: 1.02rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--petrol)); color: #fff; border-radius: var(--radius); padding: 54px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9d2dc; max-width: 620px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #91adb8; padding: 60px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { max-width: 320px; font-size: .95rem; }
.footer-logo { height: 40px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .92; }
.footer-col h4 { color: #cfe2ea; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #91adb8; font-size: .95rem; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .85rem; color: #6d8791; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(6, 36, 48, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 30px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 24px; right: 30px; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; background: none; border: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .about-grid, .skd-overview, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .svc-grid, .cards { grid-template-columns: 1fr 1fr; }
  .footer-top { gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav, .header-phone span { display: none; }
  .nav-toggle { display: block; }
  .nav.open { display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; padding: 16px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav.open a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--bg-soft); }
  .svc-grid, .cards, .stat-cards { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .hero-stats { gap: 26px; }
}
