/* МедиаCDN Pro — corporate styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #070b14;
  --bg2: #0d1424;
  --bg3: #111827;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent2: #06b6d4;
  --green: #10b981;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --radius: 12px;
  --shadow: 0 24px 48px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,11,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo__mark {
  background: var(--gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.logo__text { font-size: 1.05rem; }

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover { color: #fff; }

.header__cta { margin-left: 0.5rem; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
}

.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59,130,246,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(6,182,212,0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  pointer-events: none;
}

.hero__inner { position: relative; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero__badge .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* About (for crawlers & visitors) */
.section--about {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.about-block__text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-block__text strong {
  color: var(--text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.about-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 999px;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Clients */
.clients {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.clients__label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.clients__logos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.clients__logos span {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--bg2);
}

.section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.section__head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section__head p { color: var(--muted); }

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
}

.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-4px);
}

.card__icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.12);
  border-radius: 10px;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.card ul li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.25rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.split__content > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.checklist li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Map panel */
.map-panel {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-panel__header {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-family: "SF Mono", Monaco, Consolas, monospace;
}

.map-panel__grid {
  position: relative;
  height: 280px;
  background:
    radial-gradient(circle at 30% 40%, rgba(59,130,246,0.08) 0%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.node {
  position: absolute;
  font-size: 0.65rem;
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: 4px;
  white-space: nowrap;
}

.node--active::after {
  content: "";
  position: absolute;
  top: -3px; right: -3px;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.node--pulse {
  animation: node-pulse 2s infinite;
}

@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}

.map-panel__footer {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.map-panel__footer em {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.map-panel__footer em.green { background: var(--green); }
.map-panel__footer em.blue { background: var(--accent); }

/* Pricing */
.price-card {
  position: relative;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: rgba(59,130,246,0.5);
  background: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, var(--surface) 40%);
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card__head h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.price-card__head p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.price-card__price {
  margin-bottom: 1.5rem;
}

.price-card__price .amount {
  font-size: 2rem;
  font-weight: 800;
}

.price-card__price .period {
  font-size: 0.9rem;
  color: var(--muted);
}

.price-card__features {
  flex: 1;
  margin-bottom: 1rem;
}

.price-card__features li {
  padding: 0.45rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding-left: 1.4rem;
  position: relative;
}

.price-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.price-card__extra {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* License */
.section--license {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.license-block {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
}

.license-block__icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.license-block h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.license-block > .license-block__content > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.license-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.license-details dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.license-details dd {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "SF Mono", Monaco, Consolas, monospace;
}

.license-note {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1rem;
  background: rgba(59,130,246,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-info strong {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-info a { color: var(--accent2); }
.contact-info a:hover { text-decoration: underline; }

.contact-form {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--accent);
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.form-note a { color: var(--accent2); }

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__links strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.footer__links a {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer__links a:hover { color: #fff; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg3);
  border: 1px solid var(--green);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .cards--3,
  .hero__stats,
  .split,
  .footer__inner,
  .license-details {
    grid-template-columns: 1fr;
  }

  .price-card--featured { transform: none; }

  .nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg2);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__cta { display: none; }
  .burger { display: flex; margin-left: auto; }

  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .footer__links { grid-template-columns: 1fr; }
  .license-block { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { padding-top: 110px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
