/* =========================
   Base / Design System
========================= */
:root{
  --bg: #0b1020;
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.09);
  --card: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.14);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted-2: rgba(255,255,255,.58);

  --accent: #4dd4ff;
  --accent-2: #6cf2b9;
  --warn: #ffcc66;

  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.25);

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1120px;
  --gutter: 22px;

  --h1: clamp(28px, 3.1vw, 44px);
  --h2: clamp(22px, 2.2vw, 32px);
  --h3: clamp(18px, 1.6vw, 22px);
  --p: 16px;
  --lh: 1.65;

  --focus: 0 0 0 4px rgba(77, 212, 255, .25);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(77,212,255,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 0%, rgba(108,242,185,.14), transparent 55%),
    radial-gradient(900px 800px at 50% 120%, rgba(255,204,102,.08), transparent 55%),
    linear-gradient(180deg, #070b16 0%, #0b1020 30%, #070b16 100%);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Selection */
::selection{ background: rgba(77,212,255,.25); color: var(--text); }

/* Links */
a{
  color: inherit;
  text-decoration: none;
}
a:hover{ opacity: .95; }

/* Container */
.container{
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4{ margin: 0 0 10px; }
h1{ font-size: var(--h1); letter-spacing: -0.02em; }
h2{ font-size: var(--h2); letter-spacing: -0.01em; }
h3{ font-size: var(--h3); }
p{
  margin: 0 0 14px;
  font-size: var(--p);
  color: var(--muted);
}
ul{ margin: 10px 0 0; padding-left: 18px; }
li{ margin: 8px 0; color: var(--muted); }

/* =========================
   Header / Nav
========================= */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 22, .72);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo{
  font-weight: 700;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo::before{
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(77,212,255,.12);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a{
  font-size: 14px;
  color: rgba(255,255,255,.78);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.nav-links a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  transform: translateY(-1px);
}
.nav-links a:focus-visible{
  outline: none;
  box-shadow: var(--focus);
}

/* Адаптивное меню для мобильных устройств */
@media (max-width: 980px) {
  nav {
    flex-direction: row;
    align-items: center;
  }

  .logo {
    flex-shrink: 0;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(7, 11, 22, .95);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--stroke);
    border-top: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    width: 280px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.visible {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    text-align: left;
    margin: 5px 0;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .burger {
    display: flex;
    z-index: 101;
  }

  .menu-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .nav-links {
    width: 100%;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: calc(100vh - 60px);
  }
}

/* =========================
   Buttons
========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101a;
  box-shadow: 0 6px 15px rgba(77,212,255,.2);
  border: 1px solid rgba(255,255,255,.15);
  transition: all .3s ease;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}
.btn::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0.85;
  z-index: 1;
}
.btn > *{
  position: relative;
  z-index: 2;
}
.btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(77,212,255,.3);
  background: linear-gradient(135deg, #5bd9ff, #7df2c5);
}
.btn:active{
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(77,212,255,.25);
}
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(77,212,255,.3), 0 8px 20px rgba(77,212,255,.2);
}
.btn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}
.btn--primary{
  background: linear-gradient(135deg, #256eff, #1e5cb9);
  color: white;
  box-shadow: 0 6px 15px rgba(37,110,255,.3);
}
.btn--primary:hover{
  background: linear-gradient(135deg, #3a7dff, #2a6ad9);
  box-shadow: 0 10px 25px rgba(37,110,255,.4);
}
.btn--primary:active{
  background: linear-gradient(135deg, #1e5cb9, #184aa6);
}
.btn--ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
}
.btn--full{
  width: 100%;
}

/* =========================
   Hero
========================= */
.hero{
  position: relative;
  padding: 56px 0 34px;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(77,212,255,.15), transparent 55%),
    radial-gradient(780px 480px at 20% 30%, rgba(108,242,185,.10), transparent 60%);
  pointer-events: none;
}

.hero-content{
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 28px 26px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-content h1{
  color: rgba(255,255,255,.96);
  margin-bottom: 12px;
}
.hero-content p{
  color: rgba(255,255,255,.74);
  margin-bottom: 18px;
  max-width: 980px;
}

/* =========================
   Sections / Content Blocks
========================= */
.section{
  padding: 34px 0;
}

.section-title{
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}
.section-title::after{
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .95;
}

.section-subtitle{
  margin-top: 18px;
  margin-bottom: 10px;
  color: rgba(255,255,255,.90);
}

/* A soft card container for paragraphs/lists/tables */
.content-container{
  margin-top: 14px;
  padding: 18px 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-soft);
}

/* =========================
   Lists (benefits)
========================= */
.benefits-list{
  list-style: none;
  padding-left: 0;
  margin: 12px 0 14px;
}
.benefits-list li{
  position: relative;
  padding: 12px 12px 12px 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.benefits-list li::before{
  content: "✓";
  position: absolute;
  left: 14px;
  top: 10px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #06101a;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* =========================
   Cards grid (examples)
========================= */
.examples-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 10px;
}

.example-card{
  padding: 16px 16px 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.example-card:hover{
  transform: translateY(-2px);
  border-color: rgba(77,212,255,.28);
  background: linear-gradient(180deg, rgba(77,212,255,.10), rgba(255,255,255,.04));
}

.example-card h4{
  margin: 0 0 8px;
  font-size: 16px;
  color: rgba(255,255,255,.92);
}
.example-card p{
  margin: 0;
  color: rgba(255,255,255,.70);
}

/* =========================
   Tables
========================= */
.comparison-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0 14px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-soft);
}

.comparison-table thead th{
  text-align: left;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.86);
  padding: 12px 14px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.comparison-table tbody td{
  padding: 12px 14px;
  color: rgba(255,255,255,.74);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.comparison-table tbody tr:last-child td{
  border-bottom: none;
}

.comparison-table tbody tr:hover td{
  background: rgba(255,255,255,.04);
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3){
  white-space: nowrap;
}

/* =========================
   CTA
========================= */
.cta{
  padding: 40px 0 56px;
}

.cta-content{
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 26px 22px;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(800px 360px at 10% 10%, rgba(77,212,255,.18), transparent 60%),
    radial-gradient(760px 360px at 90% 10%, rgba(108,242,185,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  text-align: center;
}
.cta-content h2{
  margin-bottom: 8px;
}
.cta-content p{
  margin: 0 auto 16px;
  max-width: 760px;
  color: rgba(255,255,255,.75);
}

/* =========================
   Footer
========================= */
footer{
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 11, 22, .55);
  padding: 18px 0;
}
footer p{
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: 14px;
}

/* =========================
   Utilities
========================= */
@media (max-width: 980px){
  .examples-grid{ grid-template-columns: 1fr; }
  nav{ align-items: flex-start; }
  .nav-links{ gap: 6px; }
}

@media (max-width: 640px){
  :root{ --gutter: 16px; }
  .hero{ padding: 44px 0 26px; }
  .hero-content{ padding: 20px 16px; }
  .content-container{ padding: 14px 14px; }
  .nav-links a{ padding: 9px 10px; font-size: 13px; }
  .btn{ width: 100%; }
  .comparison-table thead{ display: none; }
  .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td{
    display: block;
    width: 100%;
  }
  .comparison-table tr{
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .comparison-table td{
    border-bottom: none;
    padding: 10px 12px;
  }
  .comparison-table td::before{
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.55);
    margin-bottom: 4px;
    letter-spacing: .02em;
  }
}

/* =========================
   Reduced motion
========================= */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}

/* =========================
   Mobile Optimization Pack
   (append to the end of styles.css)
========================= */

/* Smooth scrolling (nice on mobile) */
html { scroll-behavior: smooth; }

/* Better tap targets & prevent accidental zooms */
button, .btn, .nav-links a { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

/* Make long text not overflow */
p, h1, h2, h3, h4, td, th { overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 980px){
  /* Header spacing */
  nav{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .logo{
    justify-content: center;
    padding: 6px 0;
  }

  /* Nav becomes horizontal scroll */
  .nav-links{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 8px 2px 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  .nav-links::-webkit-scrollbar{ display: none; }

  .nav-links a{
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
  }
}

@media (max-width: 640px){
  /* General spacing & typography */
  body{ font-size: 15px; }
  .section{ padding: 26px 0; }

  .hero-content{
    padding: 18px 14px;
  }
  .hero-content h1{
    line-height: 1.15;
  }
  .hero-content p{
    font-size: 15px;
  }

  .content-container{
    padding: 14px 12px;
  }

  /* Button full width + comfortable size */
  .btn{
    width: 100%;
    padding: 13px 16px;
    border-radius: 16px;
  }

  /* Benefits list spacing */
  .benefits-list li{
    padding: 12px 12px 12px 42px;
  }

  /* Cards grid already becomes 1 column in your css; keep good spacing */
  .examples-grid{ gap: 12px; }
  .example-card{ padding: 14px; }

  /* Tables: card mode (readable on phones) */
  .comparison-table thead{ display: none; }
  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td{
    display: block;
    width: 100%;
  }

  .comparison-table{
    border-radius: 18px;
    overflow: hidden;
  }

  .comparison-table tr{
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .comparison-table tr:last-child{ border-bottom: none; }

  .comparison-table td{
    padding: 10px 12px;
    border-bottom: none !important;
    background: transparent;
  }

  .comparison-table td::before{
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: .02em;
    color: rgba(255,255,255,.55);
  }

  /* CTA */
  .cta{ padding: 30px 0 44px; }
  .cta-content{ padding: 18px 14px; }
}

/* =========================
   Burger Menu (Mobile)
========================= */

.burger{
  display: none;
  width: 46px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

.burger span{
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  transition: transform .18s ease, opacity .18s ease;
}

@media (max-width: 980px){
  nav{
    position: relative;
  }

  .burger{
    display: inline-flex;
    align-self: center;
    margin-left: auto;
  }

  /* Меню по умолчанию скрыто, открывается по классу .menu-open на body */
  .nav-links{
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(7, 11, 22, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
  }

  .menu-open .nav-links{
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .menu-open .nav-links a{
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
  }

  /* Анимация бургера -> крестик */
  .menu-open .burger span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
  }
  .menu-open .burger span:nth-child(2){
    opacity: 0;
  }
  .menu-open .burger span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Блокировка прокрутки страницы при открытом меню */
  .menu-open{
    overflow: hidden;
    height: 100%;
  }
}

/* Чуть мягче фокус для кнопки */
.burger:focus-visible{
  outline: none;
  box-shadow: var(--focus);
}
