:root {
  --bg: #06101c;
  --bg-soft: #0a1827;
  --panel: rgba(16, 35, 56, 0.82);
  --panel-solid: #102338;
  --text: #eef6ff;
  --muted: #9eb0c3;
  --line: rgba(255,255,255,0.1);
  --accent: #43e4ba;
  --accent-2: #4fa2ff;
  --accent-dark: #103b38;
  --warning: #ffd37a;
  --shadow: 0 24px 80px rgba(0,0,0,0.28);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(79,162,255,0.15), transparent 28%),
    radial-gradient(circle at 100% 20%, rgba(67,228,186,0.12), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(67,228,186,0.24);
  border-radius: 999px;
  background: rgba(67,228,186,0.08);
  color: #9bf7df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.035em; }
h1 { font-size: clamp(42px, 7vw, 78px); max-width: 970px; }
h2 { font-size: clamp(34px, 5vw, 54px); }
h3 { font-size: 23px; }
p { margin: 0 0 18px; color: var(--muted); }
.lead { font-size: clamp(18px, 2vw, 22px); max-width: 780px; }
.muted { color: var(--muted); }
.text-accent { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: .3s ease;
}
.site-header.scrolled {
  background: rgba(6,16,28,0.84);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.navbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -0.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111b;
  box-shadow: 0 8px 30px rgba(67,228,186,.2);
}
.brand-text { white-space: nowrap; }
.brand-mark.brand-mark-image { background: transparent; box-shadow: none; padding: 0; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 7px; }
.nav-links a { padding: 10px 12px; color: #c4d1de; border-radius: 10px; font-size: 14px; font-weight: 700; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.06); color: white; }
.nav-cta { margin-left: 6px; }
.menu-toggle { display: none; border: 1px solid var(--line); color: white; background: rgba(255,255,255,.04); width: 44px; height: 44px; border-radius: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 19px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; font-weight: 800;
  transition: transform .2s ease, background .2s ease, border .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #70f2cf); color: #04111b; box-shadow: 0 12px 30px rgba(67,228,186,.16); }
.btn-secondary { background: rgba(255,255,255,.055); border-color: var(--line); color: white; }
.btn-sm { min-height: 42px; padding: 0 15px; font-size: 14px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero { min-height: 760px; display: flex; align-items: center; position: relative; isolation: isolate; padding: 100px 0 85px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,16,28,.96) 0%, rgba(6,16,28,.82) 47%, rgba(6,16,28,.26) 100%),
    url('../img/site/secure-wallet.webp') 72% center/cover;
  z-index: -2;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 240px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: end; gap: 48px; }
.hero-copy p { max-width: 760px; }
.hero-card { padding: 24px; border: 1px solid var(--line); background: rgba(7,21,34,.68); backdrop-filter: blur(14px); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card .metric { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero-card .metric:last-child { border-bottom: 0; }
.hero-card strong { font-size: 24px; }

.trust-strip { padding: 24px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; gap: 13px; align-items: center; color: #d8e4ee; font-weight: 750; }
.icon-box { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: rgba(67,228,186,.08); border: 1px solid rgba(67,228,186,.16); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,42,66,.76), rgba(10,27,44,.78));
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 16px 50px rgba(0,0,0,.16);
  position: relative;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -60px; top: -60px; background: rgba(67,228,186,.07); }
.card h3 { position: relative; }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(79,162,255,.1); color: #8bc4ff; margin-bottom: 22px; font-size: 19px; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { position: relative; padding: 9px 0 9px 28px; color: #c5d3df; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--accent); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
.media-panel { min-height: 470px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; background: #102338; }
.media-panel img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.media-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6,16,28,.86)); }
.media-caption { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 28px; }
.stat { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.stat strong { display: block; font-size: 29px; color: white; }
.stat span { color: var(--muted); font-size: 13px; }

.price-card { display: flex; flex-direction: column; min-height: 100%; }
.price { font-size: 38px; font-weight: 900; letter-spacing: -.04em; margin: 8px 0; }
.price small { font-size: 14px; color: var(--muted); letter-spacing: 0; font-weight: 600; }
.price-card .btn { margin-top: auto; }
.price-badge { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #06101c; background: var(--accent); border-radius: 999px; padding: 6px 9px; }

.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { background: rgba(255,255,255,.05); color: white; }
.compare td { color: var(--muted); }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--accent); font-weight: 800; }

.page-hero { min-height: 390px; padding: 120px 0 66px; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(79,162,255,.18), transparent 30%); pointer-events: none; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,16,28,.98) 0%, rgba(6,16,28,.84) 52%, rgba(6,16,28,.42) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 42%); pointer-events: none; z-index: -1; }
.page-hero > .container { position: relative; z-index: 1; }
body[data-page="services"] .page-hero::before { background: url('../img/site/server-infrastructure.webp') 68% center/cover; }
body[data-page="solutions"] .page-hero::before { background: url('../img/site/analytics-dashboard.webp') 70% center/cover; }
body[data-page="about"] .page-hero::before { background: url('../img/site/corporate-building.webp') 72% center/cover; }
body[data-page="gallery"] .page-hero::before { background: url('../img/site/global-network.webp') 70% center/cover; }
body[data-page="contact"] .page-hero::before { background: url('../img/site/secure-wallet.webp') 72% center/cover; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #8fa4b7; font-size: 13px; margin-bottom: 24px; }
.breadcrumbs span { color: #5e7183; }

.timeline { border-left: 1px solid rgba(67,228,186,.3); padding-left: 30px; }
.timeline-item { position: relative; padding: 0 0 34px; }
.timeline-item::before { content: ""; position: absolute; left: -37px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(67,228,186,.1); }

.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gallery-item {
  appearance: none; width: 100%; min-height: 250px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12);
  display: block; text-align: left; padding: 0; position: relative; background: var(--panel-solid); color: inherit; cursor: pointer;
  box-shadow: 0 18px 45px rgba(0,0,0,.18); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.gallery-item:hover { transform: translateY(-5px); border-color: rgba(79,162,255,.45); box-shadow: 0 24px 58px rgba(0,0,0,.28); }
.gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item:nth-child(4) { min-height: 330px; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-overlay { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: linear-gradient(180deg, transparent 34%, rgba(3,11,20,.9) 100%); }
.gallery-overlay strong { display: block; color: #fff; font-size: 18px; }
.gallery-overlay small { display: block; color: #9eb0c3; }
.gallery-open { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: #aaf5e2; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: .25s ease; }
.gallery-item:hover .gallery-open, .gallery-item:focus-visible .gallery-open { opacity: 1; transform: none; }

.visual-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.visual-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(18,42,66,.76), rgba(10,27,44,.78)); box-shadow: 0 16px 50px rgba(0,0,0,.16); }
.visual-card > img { width: 100%; height: 245px; object-fit: cover; }
.visual-card-copy { padding: 25px; }
.visual-card-copy h3 { margin-top: 17px; }

.lightbox { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(1,6,12,.92); backdrop-filter: blur(12px); opacity: 0; transition: opacity .18s ease; }
.lightbox.open { opacity: 1; }
.lightbox-content { width: min(1200px, 100%); max-height: calc(100vh - 56px); display: grid; justify-items: center; gap: 14px; }
.lightbox-content img { max-width: 100%; max-height: calc(100vh - 112px); border-radius: 18px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.lightbox-caption { color: #dbe7f0; font-weight: 800; }
.lightbox-close { position: fixed; top: 20px; right: 20px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(10,24,39,.82); color: white; cursor: pointer; font-size: 20px; }
body.lightbox-open { overflow: hidden; }

.form-wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: 24px; align-items: start; }
.contact-panel { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.contact-row { display: grid; grid-template-columns: 45px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border: 0; }
.contact-row i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: rgba(67,228,186,.08); }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 30px; }
.field-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; color: #c9d6e1; font-weight: 800; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid rgba(255,255,255,.12); background: rgba(4,14,24,.62); color: white; border-radius: 12px; padding: 14px 15px; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(67,228,186,.65); box-shadow: 0 0 0 4px rgba(67,228,186,.07); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 12px; color: #7f94a8; }
.form-status { display: none; margin-top: 14px; padding: 13px 15px; border-radius: 12px; background: rgba(67,228,186,.08); color: #aef7e5; border: 1px solid rgba(67,228,186,.16); }
.form-status.show { display: block; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(4,17,27,.3); border-top-color: #04111b; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.legal { max-width: 900px; }
.legal h2 { font-size: 30px; margin-top: 46px; }
.legal h3 { font-size: 21px; margin-top: 30px; }
.legal p, .legal li { color: #aebdca; }
.legal a { color: var(--accent); }
.legal-note { border: 1px solid rgba(255,211,122,.2); background: rgba(255,211,122,.06); color: #f5dba9; padding: 17px; border-radius: 14px; }

.cta-band { border: 1px solid rgba(67,228,186,.18); background: linear-gradient(135deg, rgba(67,228,186,.10), rgba(79,162,255,.09)); border-radius: 28px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { margin-bottom: 10px; font-size: clamp(30px,4vw,46px); }

.site-footer { border-top: 1px solid var(--line); background: #040c15; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 28px; }
.footer-title { color: white; font-weight: 850; margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #8fa4b7; font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 22px; display: flex; justify-content: space-between; gap: 22px; color: #73889b; font-size: 12px; }

.cookie-banner { position: fixed; z-index: 1200; left: 18px; right: 18px; bottom: 18px; display: none; }
.cookie-banner.show { display: block; }
.cookie-inner { width: min(100%, 980px); margin: auto; border: 1px solid rgba(255,255,255,.14); background: rgba(7,19,31,.96); backdrop-filter: blur(18px); box-shadow: var(--shadow); border-radius: 18px; padding: 18px; display: flex; align-items: center; gap: 22px; }
.cookie-copy { flex: 1; }
.cookie-copy strong { display: block; margin-bottom: 4px; }
.cookie-copy p { font-size: 13px; margin: 0; }
.cookie-actions { display: flex; gap: 8px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 78px 16px auto; display: none; flex-direction: column; align-items: stretch; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(6,16,28,.98); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .nav-cta { margin: 6px 0 0; }
  .menu-toggle { display: grid; place-items: center; }
  .hero-grid, .split, .form-wrap { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-card { max-width: 560px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .visual-card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .section { padding: 72px 0; }
  .hero { padding: 76px 0 60px; }
  h1 { font-size: 43px; }
  .grid-2, .grid-3, .grid-4, .trust-grid, .stat-grid, .field-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 1; }
  .gallery-item { min-height: 230px; }
  .gallery-overlay { padding: 18px; }
  .lightbox { padding: 14px; }
  .cta-band { align-items: flex-start; flex-direction: column; padding: 28px; }
  .cookie-inner { align-items: flex-start; flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .brand-text { font-size: 14px; }
}
