/* =============================================
   ИНТЕР-ПЛАТА — Общие стили
   style.css
   ============================================= */

/* === ПЕРЕМЕННЫЕ === */
:root {
  --bg: #070b14;
  --bg2: #0c1220;
  --bg3: #111827;
  --border: #1a2744;
  --border2: #243354;
  --text: #e2e8f0;
  --muted: #64748b;
  --dim: #475569;
  --accent: #3b82f6;
  --accent2: #06b6d4;
  --accent-glow: rgba(59, 130, 246, .12);
  --gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --max: 1140px;
}

/* === СБРОС === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* === НАВИГАЦИЯ === */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 16px 0;
  background: rgba(7, 11, 20, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.logo {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: #fff; display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 16px; font-weight: 500;
  transition: color .2s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: #fff; }
.burger { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.nav-cta {
  padding: 10px 22px; background: var(--gradient); color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: transform .2s;
}
.nav-cta:hover { transform: translateY(-1px); }

/* === КНОПКИ === */
.btn {
  padding: 16px 32px; border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .2s; border: none;
  display: inline-block; text-decoration: none;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59, 130, 246, .25); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border2); }
.btn-ghost:hover { color: #fff; border-color: var(--accent); }

/* === СЕКЦИИ === */
.section { padding: 100px 0; }
.section-tag {
  display: inline-block; padding: 6px 14px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(59, 130, 246, .15);
  margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -.5px; margin-bottom: 16px;
}
.section-sub { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 600px; margin-bottom: 48px; }

/* === PAGE HERO === */
.page-hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, .07) 0%, transparent 55%);
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: 13px; color: var(--dim); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* === ТЕГ (badge) === */
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(59, 130, 246, .15);
}

/* === CTA БЛОК === */
.cta-block {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px; text-align: center; margin-top: 64px;
}
.cta-block h3 { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.cta-block p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

/* === PRICE TABLE (общая для SMD, DIP, Price) === */
.price-table { width: 100%; border-collapse: collapse; margin: 32px 0; }
.price-table th {
  text-align: left; padding: 14px 20px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .5px;
}
.price-table td { padding: 14px 20px; border: 1px solid var(--border); font-size: 14px; }
.price-table tr:hover td { background: var(--bg2); }
.price-val { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 18px; }

/* === FEATURE GRID (SMD, DIP) === */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 36px; }
.feature-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 14px; padding: 28px; transition: all .3s; }
.feature-card:hover { border-color: var(--accent); }
.feature-card h4 { font-family: var(--font-head); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* === CONTENT BLOCK (SMD, DIP) === */
.content-block { max-width: 760px; }
.content-block h2 { font-family: var(--font-head); font-size: 28px; font-weight: 700; margin: 48px 0 16px; letter-spacing: -.3px; }
.content-block h3 { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin: 36px 0 12px; }
.content-block p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.content-block ul { color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0 0 16px 24px; }
.content-block li { margin-bottom: 8px; }

/* === ФУТЕР === */
footer { padding: 48px 0 24px; border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 36px; margin-bottom: 36px; }
.footer-col h4 { font-family: var(--font-head); font-size: 14px; font-weight: 600; margin-bottom: 14px; color: #fff; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-copy { text-align: center; color: var(--dim); font-size: 12px; padding-top: 24px; }

/* === TELEGRAM FLOAT === */
.tg-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(59, 130, 246, .35);
  text-decoration: none; transition: all .3s;
}
.tg-float:hover { transform: scale(1.1); }
.tg-float svg { width: 26px; height: 26px; fill: #fff; }

/* === АНИМАЦИИ === */
.reveal { opacity: 0; transform: translateY(30px); transition: all .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === АДАПТИВ === */
@media (max-width: 1000px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7, 11, 20, .97); backdrop-filter: blur(12px);
    padding: 16px 24px; gap: 0; border-bottom: 1px solid var(--border);
  }
  .nav-links.show { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .burger { display: block; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .page-hero { padding: 110px 0 60px; }
  .section { padding: 64px 0; }
  .price-table th, .price-table td { padding: 10px 12px; font-size: 13px; }
}

@media (max-width: 450px) {
  .logo span { display: none; }
}
