/*
Theme Name: RK Agency
Theme URI: https://rk-agency.ru
Author: RK Agency
Description: Тёмная тема маркетингового агентства полного цикла на зелёно-синей палитре. Разработка, продвижение, дизайн, портфолио, блог и форма заявок.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rk-agency
*/

:root{
    --bg: #090d0b;
    --bg-soft: #0e1512;
    --surface: #121a17;
    --surface-2: #171f1b;
    --border: rgba(230,255,244,0.09);
    --border-strong: rgba(230,255,244,0.16);
    --text: #eef3f0;
    --text-muted: #8ea79c;
    --text-dim: #5c716a;
    --green: #00e08a;
    --green-soft: #0a4a34;
    --blue: #2f7bff;
    --blue-soft: #0c2a55;
    --gradient: linear-gradient(120deg, var(--green) 0%, var(--blue) 100%);
    --gradient-soft: linear-gradient(120deg, rgba(0,224,138,0.14), rgba(47,123,255,0.14));
    --radius: 14px;
  }

  *{ margin:0; padding:0; box-sizing:border-box; }

  html{ scroll-behavior: smooth; }

  body{
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
  }

  body::before{
    content:'';
    position: fixed;
    inset: 0;
    background-image:
      radial-gradient(circle, rgba(230,255,244,0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
    pointer-events: none;
    z-index: 0;
  }

  .wrap{ max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
  .wrap-wide{ max-width: 1480px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

  h1,h2,h3,h4{ font-family: 'Unbounded', sans-serif; font-weight: 600; letter-spacing: -0.01em; }

  a{ color: inherit; text-decoration: none; }

  .eyebrow{
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .eyebrow::before{
    content:'';
    width: 18px; height: 1px;
    background: var(--gradient);
  }

  /* ---------- HEADER ---------- */
  header{
    position: sticky; top:0; z-index: 50;
    background: rgba(9,13,11,0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .nav{
    display:flex; align-items:center; justify-content:space-between;
    gap: 20px;
    padding: 14px 32px;
    max-width: 1360px; margin: 0 auto;
  }
  .logo{
    font-family:'Unbounded', sans-serif;
    font-weight: 700; font-size: 16px;
    display:flex; align-items:center; gap:11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .logo-mark{
    width: 34px; height: 34px;
    flex-shrink: 0;
    display:block;
  }
  .logo-text{ display:flex; flex-direction:column; line-height: 1.15; }
  .logo-text b{ font-size: 14.5px; letter-spacing: 0.01em; }
  .logo span{
    color: var(--text-muted); font-weight: 500; font-size: 11.5px; font-family:'Inter';
    text-transform: none; letter-spacing: 0;
    white-space: nowrap;
  }

  /* ---- nav links / dropdowns ---- */
  .nav-links{ display:flex; align-items:center; gap: 4px; flex-shrink: 0; }
  .nav-item{ position: relative; }
  .nav-trigger{
    display:flex; align-items:center; gap: 5px;
    background:none; border:none; cursor:pointer;
    font-family:'Inter', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--text-muted);
    padding: 9px 10px; white-space:nowrap;
    transition: color .2s;
  }
  .nav-trigger:hover{ color: var(--text); }
  .nav-trigger .chev{ width:8px; height:8px; flex-shrink:0; transition: transform .2s ease; }
  .nav-item.open .nav-trigger{ color: var(--green); }
  .nav-item.open .nav-trigger .chev{ transform: rotate(180deg); }

  .dropdown{
    position: absolute; top: calc(100% + 10px); left: 0;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 14px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease;
    box-shadow: 0 26px 50px -20px rgba(0,0,0,0.6);
    z-index: 60;
  }
  .nav-item.align-right .dropdown{ left: auto; right: 0; }
  .nav-item.open .dropdown{ opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

  .dropdown-cards{ display:grid; grid-template-columns: repeat(3, 208px); gap: 2px; }
  .drop-card{ display:flex; flex-direction:column; gap: 7px; padding: 15px 13px; border-radius: 11px; transition: background .16s; }
  .drop-card:hover{ background: var(--bg-soft); }
  .drop-num{ font-family:'JetBrains Mono'; font-size: 10.5px; color: var(--green); }
  .drop-card h4{ font-size: 13.5px; font-weight: 600; font-family:'Unbounded', sans-serif; }
  .drop-card p{ font-size: 12px; color: var(--text-muted); line-height: 1.5; }

  .dropdown-list{ display:flex; flex-direction:column; gap: 1px; min-width: 290px; }
  .drop-line{ display:flex; flex-direction:column; gap: 2px; padding: 9px 13px; border-radius: 9px; transition: background .16s; }
  .drop-line:hover{ background: var(--bg-soft); }
  .dl-title{ font-size: 13px; font-weight: 600; color: var(--text); }
  .dl-note{ font-size: 11.5px; color: var(--text-dim); }

  /* ---- nested two-level dropdown (Услуги) ---- */
  .dropdown-nested{ display:flex; gap: 14px; }
  .nested-categories{
    display:flex; flex-direction:column; gap: 1px;
    min-width: 196px; border-right: 1px solid var(--border); padding-right: 14px;
  }
  .cat-trigger{
    display:flex; align-items:center; justify-content:space-between; gap: 10px;
    width: 100%; background:none; border:none; text-align:left; cursor:pointer;
    padding: 10px 12px; border-radius: 9px;
    font-family:'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--text-muted);
    transition: background .15s, color .15s;
  }
  .cat-trigger:hover{ background: var(--bg-soft); color: var(--text); }
  .cat-trigger.active{ background: var(--bg-soft); color: var(--green); }
  .cat-trigger .cat-arrow{ width: 7px; height: 7px; opacity: .55; flex-shrink:0; transform: rotate(-90deg); }
  .nested-panel{ flex: 1; min-width: 300px; display:flex; align-items:stretch; }
  .nested-group{ display:none; flex-direction:column; gap: 1px; width:100%; }
  .nested-group.active{ display:flex; }
  .nested-group .drop-card{ padding: 12px 13px; }

  .mobile-toggle{
    display:none; flex-direction:column; justify-content:center; gap: 5px;
    width: 38px; height: 38px; background:none; border: 1px solid var(--border-strong);
    border-radius: 10px; cursor: pointer; flex-shrink: 0;
  }
  .mobile-toggle span{ width: 16px; height: 1.5px; background: var(--text); margin: 0 auto; transition: transform .2s, opacity .2s; }
  .mobile-toggle.active span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .mobile-toggle.active span:nth-child(2){ opacity: 0; }
  .mobile-toggle.active span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

  .nav-cta{
    display:flex; align-items:center; gap: 22px;
    flex-shrink: 0;
  }
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600; font-size: 14.5px;
    cursor: pointer; border: none;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  }
  .btn-primary{
    background: var(--gradient);
    color: #06110c;
  }
  .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(0,224,138,0.45); }
  .btn-ghost{
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
  }
  .btn-ghost:hover{ border-color: var(--green); color: var(--green); }
  .phone-mini{ font-family:'JetBrains Mono'; font-size: 13.5px; color: var(--text-muted); }

  /* ---------- HERO ---------- */
  .hero{
    padding: 108px 0 80px;
    position: relative;
  }
  .hero-grid{
    display:grid; grid-template-columns: 1.05fr 0.85fr; gap: 60px; align-items: center;
  }
  .hero h1{
    font-size: 52px;
    line-height: 1.08;
    margin: 22px 0 22px;
  }
  .hero h1 em{
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero p{
    color: var(--text-muted);
    font-size: 17px;
    max-width: 480px;
    margin-bottom: 34px;
  }
  .hero-actions{ display:flex; gap: 14px; align-items:center; }
  .hero-actions .btn{ padding: 15px 28px; font-size: 15px; }
  .trust-note{ font-size: 13px; color: var(--text-dim); margin-top: 20px; font-family:'JetBrains Mono'; }

  /* growth chart signature element */
  .chart-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 26px 22px;
    position: relative;
    overflow: hidden;
  }
  .chart-card::after{
    content:'';
    position: absolute; inset:0;
    background: radial-gradient(circle at 100% 0%, rgba(47,123,255,0.16), transparent 55%),
                radial-gradient(circle at 0% 100%, rgba(0,224,138,0.14), transparent 55%);
    pointer-events: none;
  }
  .chart-head{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom: 18px; }
  .chart-head .label{ font-family:'JetBrains Mono'; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }
  .chart-head .value{ font-family:'Unbounded'; font-size: 26px; color: var(--green); margin-top: 4px; }
  .chart-svg{ width: 100%; height: 168px; display:block; }
  .chart-grid line{ stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; }
  .chart-area{
    fill: url(#areaGrad);
    opacity: 0;
    animation: fadeArea 1.4s ease forwards .6s;
  }
  .chart-path{
    fill:none; stroke: url(#lineGrad); stroke-width: 2.5; stroke-linecap: round;
    stroke-dasharray: 700; stroke-dashoffset: 700;
    animation: draw 2s ease forwards .3s;
  }
  .chart-dot{ animation: pop .4s ease forwards; opacity:0; }
  .chart-dot:nth-of-type(1){ animation-delay: .2s; }
  .chart-dot:nth-of-type(2){ animation-delay: .9s; }
  .chart-dot:nth-of-type(3){ animation-delay: 1.3s; }
  .chart-dot:nth-of-type(4){ animation-delay: 1.65s; }
  .chart-dot:nth-of-type(5){ animation-delay: 1.95s; }
  .chart-bump{ animation: pop .5s ease forwards; opacity:0; }
  .chart-bump:nth-of-type(1){ animation-delay: 1.5s; }
  .chart-bump:nth-of-type(2){ animation-delay: 2.1s; }
  .chart-tick{ font-family:'JetBrains Mono'; font-size: 9px; fill: var(--text-dim); }
  .chart-bump{ font-family:'JetBrains Mono'; font-size: 9.5px; fill: var(--text-muted); }
  @keyframes draw{ to{ stroke-dashoffset: 0; } }
  @keyframes fadeArea{ to{ opacity: 1; } }
  @keyframes pop{ to{ opacity:1; } }

  .chart-metrics{
    display:flex; justify-content: space-between;
    margin-top: 18px; padding-top: 16px;
    border-top: 1px solid var(--border);
    position: relative;
  }
  .chart-metrics .metric{ display:flex; flex-direction:column; gap: 4px; }
  .chart-metrics .metric .v{ font-family:'Unbounded'; font-size: 16px; font-weight: 600; }
  .chart-metrics .metric.up .v{ color: var(--green); }
  .chart-metrics .metric.down .v{ color: #5fc9ff; }
  .chart-metrics .metric .l{ font-family:'JetBrains Mono'; font-size: 10.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }

  /* ---------- STATS ---------- */
  .stats{
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
  }
  .stats-grid{
    display:grid; grid-template-columns: repeat(4,1fr);
  }
  .stat{
    padding: 34px 28px;
    border-right: 1px solid var(--border);
  }
  .stat:last-child{ border-right:none; }
  .stat .num{
    font-family:'Unbounded'; font-size: 34px; font-weight: 700;
    background: var(--gradient); -webkit-background-clip:text; background-clip:text; color: transparent;
  }
  .stat .cap{ color: var(--text-muted); font-size: 13.5px; margin-top: 6px; }

  /* ---------- SECTION SHARED ---------- */
  section{ padding: 96px 0; position: relative; }
  .section-head{ max-width: 620px; margin-bottom: 52px; }
  .section-head h2{ font-size: 34px; margin-top: 14px; }
  .section-head p{ color: var(--text-muted); margin-top: 14px; font-size: 15.5px; }

  /* ---------- SERVICES ---------- */
  .services-grid{
    display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  }
  .service-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color .2s, transform .2s;
  }
  .service-card:hover{ border-color: var(--border-strong); transform: translateY(-4px); }
  .service-icon{
    width: 42px; height: 42px; border-radius: 10px;
    display:flex; align-items:center; justify-content:center;
    background: var(--gradient-soft);
    margin-bottom: 20px;
  }
  .service-icon svg{ width: 20px; height: 20px; }
  .service-card h3{ font-size: 17px; margin-bottom: 10px; }
  .service-card p{ color: var(--text-muted); font-size: 14px; }
  .service-card .tag{
    display:inline-block; margin-top: 16px;
    font-family:'JetBrains Mono'; font-size: 11.5px; color: var(--green);
  }

  /* ---------- WHY US ---------- */
  .why{ background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .why-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
  .why-item{
    padding: 8px 28px 8px 0;
    border-left: 2px solid var(--border-strong);
    padding-left: 22px;
  }
  .why-item.active{ border-image: var(--gradient) 1; }
  .why-item .n{ font-family:'JetBrains Mono'; color: var(--text-dim); font-size: 12.5px; }
  .why-item h4{ font-size: 16.5px; margin: 10px 0 10px; }
  .why-item p{ color: var(--text-muted); font-size: 14px; }

  /* ---------- PORTFOLIO ---------- */
  .portfolio-grid{
    display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  }
  .port-card{
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
  }
  .port-thumb{
    height: 170px;
    background: linear-gradient(135deg, var(--green-soft), var(--blue-soft));
    position: relative;
  }
  .port-thumb::before{
    content: attr(data-tag);
    position: absolute; top: 14px; left: 14px;
    font-family:'JetBrains Mono'; font-size: 11px; letter-spacing:.06em;
    background: rgba(9,13,11,0.6); border: 1px solid var(--border-strong);
    padding: 5px 10px; border-radius: 999px; color: var(--text);
  }
  .port-body{ padding: 20px; }
  .port-body h4{ font-size: 15.5px; margin-bottom: 6px; }
  .port-body p{ color: var(--text-muted); font-size: 13.5px; }

  /* ---------- TESTIMONIAL ---------- */
  .testi{ background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .testi-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
  .testi-card{
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 24px;
  }
  .testi-quote{ font-size: 14.5px; color: var(--text); line-height: 1.6; margin-bottom: 20px; }
  .testi-person{ display:flex; align-items:center; gap: 12px; }
  .testi-avatar{ width:36px; height:36px; border-radius: 50%; background: var(--gradient); flex-shrink:0; }
  .testi-person .name{ font-size: 13.5px; font-weight: 600; }
  .testi-person .role{ font-size: 12px; color: var(--text-dim); }

  /* ---------- CTA ---------- */
  .cta-section{ padding: 100px 0; }
  .cta-box{
    border-radius: 24px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    padding: 64px 56px;
    position: relative;
    overflow: hidden;
    display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items:center;
  }
  .cta-box::before{
    content:'';
    position:absolute; width: 460px; height: 460px; border-radius: 50%;
    background: var(--gradient);
    opacity: .16; filter: blur(80px);
    top: -180px; right: -140px;
  }
  .cta-box h2{ font-size: 32px; position:relative; }
  .cta-box p{ color: var(--text-muted); margin-top: 14px; max-width: 420px; position:relative; }
  .cta-form{ display:flex; flex-direction:column; gap: 12px; position:relative; }
  .cta-form input{
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter';
  }
  .cta-form input::placeholder{ color: var(--text-dim); }
  .cta-form input:focus{ outline: 2px solid var(--green); outline-offset: 1px; }
  .cta-form .btn{ margin-top: 4px; }
  .cta-form .fine{ font-size: 11.5px; color: var(--text-dim); }

  /* ---------- FOOTER ---------- */
  footer{ border-top: 1px solid var(--border); padding: 56px 0 30px; }
  .foot-grid{ display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
  .foot-brand .logo{ margin-bottom: 14px; }
  .foot-brand p{ color: var(--text-muted); font-size: 13.5px; max-width: 260px; }
  .foot-col h5{ font-family:'JetBrains Mono'; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 16px; }
  .foot-col a{ display:block; color: var(--text-muted); font-size: 14px; margin-bottom: 11px; transition: color .2s; }
  .foot-col a:hover{ color: var(--green); }
  .foot-bottom{
    padding-top: 18px; border-top: 1px solid var(--border);
    font-size: 12.5px; color: var(--text-dim);
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 1240px){
    .mobile-toggle{ display:flex; }

    .nav-links{
      position: fixed; top: 0; right: -100%; bottom: 0;
      width: min(340px, 86vw);
      background: var(--bg-soft);
      border-left: 1px solid var(--border-strong);
      flex-direction: column; align-items: stretch;
      gap: 0; padding: 84px 20px 30px;
      overflow-y: auto;
      transition: right .28s ease;
      z-index: 55;
    }
    .nav-links.mobile-open{ right: 0; }

    .nav-item{ width: 100%; border-bottom: 1px solid var(--border); }
    .nav-trigger{ width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 14.5px; }
    .nav-link-simple{ width:100%; }

    .dropdown{
      position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
      background: none; border: none; box-shadow: none; padding: 0 4px 14px;
      max-height: 0; overflow: hidden; transition: max-height .22s ease, padding .22s ease;
    }
    .nav-item.open .dropdown{ max-height: 900px; }
    .nav-item.align-right .dropdown{ right: auto; }

    .dropdown-cards{ grid-template-columns: 1fr; gap: 2px; }
    .dropdown-list{ min-width: 0; }

    .dropdown-nested{ flex-direction: column; gap: 4px; }
    .nested-categories{ min-width: 0; border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 6px; }
    .cat-trigger .cat-arrow{ transform: rotate(0deg); }
    .cat-trigger.active .cat-arrow{ transform: rotate(180deg); }
    .nested-panel{ min-width: 0; }
  }

  .nav-overlay{
    display:none; position: fixed; inset:0; background: rgba(5,8,7,0.55);
    backdrop-filter: blur(2px); z-index: 54;
  }
  .nav-overlay.active{ display:block; }

  @media (max-width: 980px){
    .hero-grid{ grid-template-columns: 1fr; }
    .hero h1{ font-size: 38px; }
    .stats-grid{ grid-template-columns: repeat(2,1fr); }
    .stat{ border-bottom: 1px solid var(--border); }
    .services-grid, .why-grid, .portfolio-grid, .testi-grid{ grid-template-columns: repeat(2,1fr); }
    .cta-box{ grid-template-columns: 1fr; padding: 40px 28px; }
    .foot-grid{ grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 620px){
    .wrap{ padding: 0 20px; }
    .wrap-wide{ padding: 0 20px; }
    .services-grid, .why-grid, .portfolio-grid, .testi-grid{ grid-template-columns: 1fr; }
    .foot-grid{ grid-template-columns: 1fr; }
    .hero{ padding-top: 90px; }
  }

  @media (prefers-reduced-motion: reduce){
    .chart-path, .chart-dot{ animation: none !important; stroke-dashoffset:0; opacity:1; }
    html{ scroll-behavior:auto; }
  }

/* ============ INNER PAGES ============ */

/* Page hero / breadcrumb banner */
.page-hero{
  padding: 148px 0 56px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb{
  display:flex; align-items:center; gap: 8px;
  font-family:'JetBrains Mono'; font-size: 12px; color: var(--text-dim);
  margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a{ color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover{ color: var(--green); }
.breadcrumb .sep{ opacity: .5; }
.page-hero h1{ font-size: 40px; max-width: 720px; }
.page-hero p{ color: var(--text-muted); font-size: 15.5px; margin-top: 16px; max-width: 620px; }
.page-hero-meta{ display:flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.page-hero-meta div{ display:flex; flex-direction:column; gap: 3px; }
.page-hero-meta .n{ font-family:'Unbounded'; font-size: 20px; color: var(--green); }
.page-hero-meta .l{ font-family:'JetBrains Mono'; font-size: 10.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }

/* Prose / long-form text */
.prose{ max-width: 740px; }
.prose h2{ font-size: 25px; margin: 8px 0 16px; }
.prose h3{ font-size: 18px; margin: 28px 0 10px; font-family:'Unbounded'; }
.prose p{ color: var(--text-muted); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.prose ul{ margin: 0 0 20px; padding-left: 20px; color: var(--text-muted); }
.prose li{ margin-bottom: 9px; font-size: 14.5px; line-height: 1.6; }
.prose li::marker{ color: var(--green); }
.prose strong{ color: var(--text); font-weight: 600; }

/* Content section layout: prose + side card */
.content-split{ display:grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.side-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; position: sticky; top: 96px;
}
.side-card h4{ font-size: 15px; margin-bottom: 14px; font-family:'Unbounded'; }
.side-card ul{ list-style:none; display:flex; flex-direction:column; gap: 12px; margin-bottom: 20px; }
.side-card li{ display:flex; align-items:flex-start; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.side-card li::before{
  content:''; width: 6px; height: 6px; border-radius: 2px; margin-top: 5px; flex-shrink:0;
  background: var(--gradient); transform: rotate(45deg);
}
.side-card .btn{ width: 100%; }

/* Icon feature blocks */
.icon-list{ display:grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin: 20px 0 36px; }
.icon-block{
  display:flex; gap: 14px; padding: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
}
.icon-block .ic{
  width: 36px; height: 36px; border-radius: 9px; flex-shrink:0;
  background: var(--gradient-soft); display:flex; align-items:center; justify-content:center;
}
.icon-block .ic svg{ width: 17px; height: 17px; }
.icon-block h5{ font-size: 14px; margin-bottom: 5px; }
.icon-block p{ font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* Section anchors offset for sticky header */
.anchor-section{ scroll-margin-top: 96px; padding-top: 56px; }
.anchor-section:first-of-type{ padding-top: 0; }

/* Divider */
.hr-soft{ border: none; border-top: 1px solid var(--border); margin: 56px 0; }

/* Filter tabs (portfolio) */
.filter-tabs{ display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-tab{
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .18s ease; font-family:'Inter';
}
.filter-tab:hover{ border-color: var(--green); color: var(--text); }
.filter-tab.active{ background: var(--gradient); color: #06110c; border-color: transparent; }

/* Blog / post list */
.post-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.post-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display:flex; flex-direction:column;
}
.post-thumb{ height: 130px; background: linear-gradient(135deg, var(--green-soft), var(--blue-soft)); }
.post-body{ padding: 20px; display:flex; flex-direction:column; gap: 10px; flex:1; }
.post-date{ font-family:'JetBrains Mono'; font-size: 11px; color: var(--text-dim); }
.post-body h3{ font-size: 15.5px; line-height: 1.35; }
.post-body p{ font-size: 13px; color: var(--text-muted); line-height: 1.55; flex:1; }
.post-link{ font-family:'JetBrains Mono'; font-size: 12px; color: var(--green); margin-top: 4px; }

/* Jobs */
.job-card{
  display:flex; justify-content:space-between; align-items:center; gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 12px;
}
.job-info h3{ font-size: 15.5px; margin-bottom: 6px; }
.job-info .meta{ display:flex; gap: 14px; font-family:'JetBrains Mono'; font-size: 11.5px; color: var(--text-dim); }
.job-empty{
  text-align:center; padding: 56px 24px; background: var(--surface);
  border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-muted);
}
.job-empty h3{ color: var(--text); font-size: 18px; margin-bottom: 10px; }

/* Contacts */
.contact-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.contact-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.contact-card .label{ font-family:'JetBrains Mono'; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.contact-card .value{ font-family:'Unbounded'; font-size: 17px; }
.contact-card a.value{ color: var(--text); }
.contact-card a.value:hover{ color: var(--green); }
.map-box{
  height: 340px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface);
  display:flex; align-items:center; justify-content:center;
  color: var(--text-dim); font-family:'JetBrains Mono'; font-size: 13px;
  background-image: radial-gradient(circle, rgba(230,255,244,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Legal / privacy page */
.legal p, .legal li{ color: var(--text-muted); }
.legal .updated{ font-family:'JetBrains Mono'; font-size: 12px; color: var(--text-dim); margin-bottom: 32px; }

@media (max-width: 900px){
  .content-split{ grid-template-columns: 1fr; }
  .side-card{ position: static; }
  .icon-list{ grid-template-columns: 1fr; }
  .post-grid{ grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .job-card{ flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px){
  .page-hero{ padding-top: 118px; }
  .page-hero h1{ font-size: 30px; }
  .post-grid{ grid-template-columns: 1fr; }
}

/* ============ QUOTE PANEL (форма заявки) ============ */
.quote-panel{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 28px 26px;
  overflow: hidden;
}
.quote-panel::before{
  content:'';
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: var(--gradient); opacity: .18; filter: blur(60px);
  top: -90px; right: -70px; pointer-events: none;
}
.quote-head{ display:flex; align-items:center; gap: 14px; margin-bottom: 20px; position:relative; }
.quote-icon{
  width: 42px; height: 42px; border-radius: 12px; flex-shrink:0;
  background: var(--gradient); display:flex; align-items:center; justify-content:center;
}
.quote-icon svg{ width: 19px; height: 19px; }
.quote-head h3{ font-size: 17px; font-family:'Unbounded'; margin-bottom: 3px; }
.quote-head p{ font-size: 12.5px; color: var(--text-dim); }

.quote-pills{ display:flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; position:relative; }
.pill{
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-muted); font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all .18s ease; font-family:'Inter';
}
.pill:hover{ border-color: var(--green); color: var(--text); }
.pill.active{ background: var(--gradient); color: #06110c; border-color: transparent; }

.quote-form{ display:flex; flex-direction:column; gap: 11px; position:relative; }
.field-icon{ position: relative; }
.field-icon svg{
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; stroke: var(--text-dim); pointer-events:none;
  transition: stroke .2s;
}
.field-icon input{
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 13px 16px 13px 40px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter';
  transition: border-color .2s;
}
.field-icon input::placeholder{ color: var(--text-dim); }
.field-icon input:focus{ outline:none; border-color: var(--green); }
.field-icon input:focus + svg,
.field-icon:focus-within svg{ stroke: var(--green); }

.quote-submit{
  position: relative; margin-top: 4px; overflow: hidden;
}
.quote-submit .btn-spinner{
  display:none; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(6,17,12,0.35); border-top-color: #06110c;
  animation: spin .7s linear infinite;
}
.quote-submit.loading .btn-label{ display:none; }
.quote-submit.loading .btn-spinner{ display:inline-block; }
.quote-submit:disabled{ cursor: default; opacity: .85; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.quote-form .fine{ font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.quote-form .fine a{ color: var(--text-dim); text-decoration: underline; }

.quote-success{
  display:none; flex-direction:column; align-items:flex-start; gap: 4px;
  padding: 10px 2px 4px; position: relative;
}
.quote-panel.submitted .quote-pills,
.quote-panel.submitted .quote-form{ display:none; }
.quote-panel.submitted .quote-success{ display:flex; animation: fadeUp .4s ease; }
.success-check{
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient); display:flex; align-items:center; justify-content:center;
  margin-bottom: 12px;
}
.success-check svg{ width: 22px; height: 22px; }
.quote-success h3{ font-size: 16.5px; font-family:'Unbounded'; margin-bottom: 4px; }
.quote-success p{ font-size: 13px; color: var(--text-muted); }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(8px);} to{ opacity:1; transform:none; } }

@media (max-width: 620px){
  .quote-panel{ padding: 22px 20px; }
}

/* ============ ФОНОВЫЙ "ДОЖДЬ" ИЗ НАЗВАНИЙ ПРОЕКТОВ ============ */
.rk-logo-rain{
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* Гарантия: весь реальный контент страницы всегда поверх дождя,
   независимо от порядка отрисовки внутри секций. */
body > *:not(.rk-logo-rain):not(header):not(.nav-overlay){
  position: relative;
  z-index: 2;
}

.rk-rain-chip{
  position: absolute;
  left: 10%;
  top: -15%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.6);
  opacity: var(--op, .32);
  filter: saturate(.75);
  animation-name: rk-fall;
  animation-duration: 22s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.rk-rain-chip img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-rain-chip.rk-green{ border-color: rgba(0, 224, 138, 0.28); }
.rk-rain-chip.rk-blue{ border-color: rgba(47, 123, 255, 0.28); }

@keyframes rk-fall{
  0%   { transform: translateY(-20vh) translateX(0) rotate(var(--r0, -3deg)); opacity: 0; }
  8%   { opacity: var(--op, .32); }
  92%  { opacity: var(--op, .32); }
  100% { transform: translateY(120vh) translateX(var(--dx, 24px)) rotate(var(--r1, 4deg)); opacity: 0; }
}

.rk-rain-chip:nth-child(1){ left:81%; animation-duration:17.3s; animation-delay:-19.3s; --r0:-3deg; --r1:-3deg; --dx:-22px; --op:0.28; }
.rk-rain-chip:nth-child(2){ left:86%; animation-duration:24.9s; animation-delay:-14.2s; --r0:3deg; --r1:0deg; --dx:-28px; --op:0.21; }
.rk-rain-chip:nth-child(3){ left:27%; animation-duration:18.8s; animation-delay:-15.7s; --r0:2deg; --r1:-3deg; --dx:15px; --op:0.27; }
.rk-rain-chip:nth-child(4){ left:69%; animation-duration:21.0s; animation-delay:-11.7s; --r0:-2deg; --r1:6deg; --dx:25px; --op:0.2; }
.rk-rain-chip:nth-child(5){ left:20%; animation-duration:24.4s; animation-delay:-8.8s; --r0:-4deg; --r1:-3deg; --dx:18px; --op:0.24; }
.rk-rain-chip:nth-child(6){ left:11%; animation-duration:20.6s; animation-delay:-9.3s; --r0:-1deg; --r1:3deg; --dx:-14px; --op:0.28; }
.rk-rain-chip:nth-child(7){ left:93%; animation-duration:21.5s; animation-delay:-3.2s; --r0:0deg; --r1:-5deg; --dx:5px; --op:0.23; }
.rk-rain-chip:nth-child(8){ left:80%; animation-duration:23.4s; animation-delay:-22.4s; --r0:3deg; --r1:-3deg; --dx:15px; --op:0.21; }
.rk-rain-chip:nth-child(9){ left:84%; animation-duration:18.7s; animation-delay:-7.5s; --r0:-5deg; --r1:-3deg; --dx:25px; --op:0.21; }
.rk-rain-chip:nth-child(10){ left:35%; animation-duration:21.4s; animation-delay:-21.7s; --r0:-4deg; --r1:-1deg; --dx:-8px; --op:0.22; }
.rk-rain-chip:nth-child(11){ left:34%; animation-duration:24.4s; animation-delay:-17.8s; --r0:-5deg; --r1:3deg; --dx:10px; --op:0.21; }
.rk-rain-chip:nth-child(12){ left:93%; animation-duration:18.9s; animation-delay:-12.0s; --r0:-2deg; --r1:4deg; --dx:14px; --op:0.26; }
.rk-rain-chip:nth-child(13){ left:87%; animation-duration:19.9s; animation-delay:-20.0s; --r0:-6deg; --r1:-3deg; --dx:22px; --op:0.21; }
.rk-rain-chip:nth-child(14){ left:40%; animation-duration:20.8s; animation-delay:-1.7s; --r0:3deg; --r1:5deg; --dx:-10px; --op:0.22; }
.rk-rain-chip:nth-child(15){ left:63%; animation-duration:20.7s; animation-delay:-23.8s; --r0:1deg; --r1:-4deg; --dx:-14px; --op:0.21; }
.rk-rain-chip:nth-child(16){ left:95%; animation-duration:22.7s; animation-delay:-6.8s; --r0:3deg; --r1:0deg; --dx:27px; --op:0.26; }
.rk-rain-chip:nth-child(17){ left:46%; animation-duration:18.6s; animation-delay:-25.9s; --r0:2deg; --r1:1deg; --dx:-25px; --op:0.28; }
.rk-rain-chip:nth-child(18){ left:14%; animation-duration:17.8s; animation-delay:-4.2s; --r0:4deg; --r1:0deg; --dx:8px; --op:0.21; }
.rk-rain-chip:nth-child(19){ left:48%; animation-duration:23.2s; animation-delay:-12.2s; --r0:-2deg; --r1:2deg; --dx:25px; --op:0.3; }
.rk-rain-chip:nth-child(20){ left:87%; animation-duration:24.6s; animation-delay:-17.7s; --r0:2deg; --r1:6deg; --dx:-13px; --op:0.28; }
.rk-rain-chip:nth-child(21){ left:43%; animation-duration:17.3s; animation-delay:-11.3s; --r0:1deg; --r1:-6deg; --dx:16px; --op:0.29; }
.rk-rain-chip:nth-child(22){ left:33%; animation-duration:27.7s; animation-delay:-19.8s; --r0:2deg; --r1:-5deg; --dx:25px; --op:0.27; }

@media (max-width: 680px){
  .rk-rain-chip:nth-child(n+11){ display: none; }
}

/* ============ BITRIX PRICING PAGE ============ */
.price-toggle-wrap{ display:flex; justify-content:center; margin: 32px 0 44px; }
.price-toggle{
  display:inline-flex; align-items:center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 5px;
}
.price-toggle button{
  display:flex; align-items:center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border:none; cursor:pointer;
  background: transparent; color: var(--text-muted);
  font-family:'Inter'; font-size: 14px; font-weight: 600;
  transition: all .18s ease;
}
.price-toggle button.active{ background: var(--gradient); color: #06110c; }
.price-toggle .badge{
  font-family:'JetBrains Mono'; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.18); color: inherit;
}
.price-toggle button:not(.active) .badge{ background: rgba(255,90,90,0.16); color: #ff8a8a; }

.price-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 22px; display:flex; flex-direction:column;
}
.price-card .pc-label{ font-family:'JetBrains Mono'; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.price-card .pc-title{ font-family:'Unbounded'; font-size: 18px; margin-bottom: 18px; }
.price-card .pc-meta{ display:flex; flex-direction:column; gap: 10px; margin-bottom: 20px; }
.price-card .pc-meta-item{ display:flex; align-items:baseline; gap: 6px; }
.price-card .pc-meta-item .n{ font-family:'Unbounded'; font-size: 16px; color: var(--text); }
.price-card .pc-meta-item .l{ font-size: 12.5px; color: var(--text-dim); }
.price-card select.pc-select{
  width: 100%; min-width: 0; box-sizing: border-box;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 9px 12px; color: var(--text);
  font-family:'Unbounded'; font-size: 15px; margin-bottom: 6px;
}
.price-card .pc-price-block{ padding-top: 14px; border-top: 1px solid var(--border); margin-bottom: 16px; }
.price-card .pc-old-row{ display:flex; align-items:center; gap: 8px; margin-bottom: 4px; }
.price-card .pc-old{ font-size: 13px; color: var(--text-dim); text-decoration: line-through; }
.price-card .pc-discount{
  font-family:'JetBrains Mono'; font-size: 11px; font-weight: 700;
  color: #ff8a8a; background: rgba(255,90,90,0.12); padding: 2px 7px; border-radius: 999px;
}
.price-card .pc-new{ font-family:'Unbounded'; font-size: 28px; font-weight: 700; color: var(--green); line-height:1.2; }
.price-card .pc-per{ font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.price-card .btn{ width: 100%; }

.price-terms{
  margin-top: 44px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.price-terms summary{
  cursor: pointer; padding: 18px 22px; font-family:'Unbounded'; font-size: 14.5px;
  display:flex; align-items:center; justify-content:space-between; list-style:none;
}
.price-terms summary::-webkit-details-marker{ display:none; }
.price-terms summary::after{ content:'+'; font-size: 20px; color: var(--text-dim); transition: transform .2s; }
.price-terms[open] summary::after{ transform: rotate(45deg); }
.price-terms .pt-body{ padding: 0 22px 22px; color: var(--text-muted); font-size: 13.5px; line-height: 1.7; }
.price-terms .pt-body ul{ padding-left: 18px; }
.price-terms .pt-body li{ margin-bottom: 8px; }
.price-terms .pt-body a{ color: var(--green); }

@media (max-width: 980px){
  .price-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .price-grid{ grid-template-columns: 1fr; }
  .price-toggle{ flex-direction:column; width:100%; }
  .price-toggle button{ width:100%; justify-content:center; }
}

/* ============ MAIN CRM PRICING TABLE ============ */
.price-grid-main{ display:grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: start; }
.price-grid-main .price-card{ min-width: 0; }
.price-grid-main .pc-ent-extra a{ display:block; overflow-wrap: break-word; }
.pc-feature-list{ display:flex; flex-direction:column; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.pc-feature-row{ display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.pc-feature-row .fn{ font-size: 13px; color: var(--text-muted); display:flex; align-items:center; gap: 6px; }
.pc-feature-row .fn .mini-badge{
  font-family:'JetBrains Mono'; font-size: 9.5px; font-weight: 700; color: #06110c;
  background: var(--gradient); padding: 1px 6px; border-radius: 999px;
}
.price-card{ position: relative; }
.price-card.popular{ border-color: var(--green); }
.pc-popular-badge{
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #06110c; font-family:'Unbounded'; font-size: 11px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.pc-desc{ font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: -12px 0 18px; min-height: 34px; }
.price-card.free .pc-new{ font-size: 22px; }
.pc-features{ margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display:flex; flex-wrap: wrap; gap: 6px; }
.pc-features span{ font-size: 10.5px; color: var(--text-dim); background: var(--bg-soft); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.pc-old-row.pc-hidden{ display: none; }
.pc-ent-extra{ display:flex; flex-direction:column; gap: 4px; margin-bottom: 10px; }
.pc-ent-extra a{ font-size: 11.5px; color: var(--green); }

@media (max-width: 1180px){
  .price-grid-main{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px){
  .price-grid-main{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px){
  .price-grid-main{ grid-template-columns: 1fr; }
}

/* ============ DETAILED COMPARISON TABLE ============ */
.compare-scroll{ overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
.compare-table{ width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; background: var(--surface); }
.compare-table thead th{
  background: var(--surface-2); padding: 16px 14px; text-align: left;
  font-family:'Unbounded'; font-size: 13.5px; font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
}
.compare-table thead th:first-child{ min-width: 240px; }
.compare-table thead th:not(:first-child){ text-align: center; min-width: 110px; }
.compare-table thead th.col-free{ background: #0e1a15; }
.compare-table thead th.col-enterprise{ background: #1a1424; }
.compare-table tbody td{ padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.compare-table tbody td:not(:first-child){ text-align: center; }
.compare-table tbody td.col-free{ background: rgba(0,224,138,0.04); }
.compare-table tbody td.col-enterprise{ background: rgba(190,120,255,0.05); }
.compare-table tbody tr:last-child td{ border-bottom: none; }
.compare-table tbody tr:hover td{ background: var(--bg-soft); }
.compare-cat-row td{
  padding: 13px 14px; font-family:'Unbounded'; font-size: 14px; font-weight: 700;
  letter-spacing: .02em; color: #eafff5;
  background: linear-gradient(90deg, rgba(0,224,138,0.16), rgba(47,123,255,0.08) 60%, transparent) !important;
  border-left: 3px solid var(--green) !important;
  border-bottom: 1px solid var(--border-strong) !important;
}
.compare-val{ font-size: 12px; color: var(--text-muted); font-family:'JetBrains Mono'; }

#compareFixedHeader{
  position: fixed; z-index: 40; overflow: hidden; display: none;
  box-shadow: 0 10px 20px -8px rgba(0,0,0,0.6);
  border-bottom: 1px solid var(--border-strong);
}
#compareFixedHeader table{ table-layout: fixed; border-collapse: separate; border-spacing: 0; margin: 0; }
#compareFixedHeader th{
  background: var(--surface-2); padding: 16px 14px; text-align: left;
  font-family:'Unbounded'; font-size: 13.5px; font-weight: 600;
  border-bottom: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#compareFixedHeader th:not(:first-child){ text-align: center; }
#compareFixedHeader th.col-free{ background: #0e1a15; }
#compareFixedHeader th.col-enterprise{ background: #1a1424; }

.tg{
  display: inline-block; width: 30px; height: 16px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border-strong); position: relative;
  vertical-align: middle;
}
.tg::after{
  content:''; position:absolute; top: 1px; left: 1px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--text-dim); transition: none;
}
.tg.on{ background: rgba(0,224,138,0.18); border-color: rgba(0,224,138,0.5); }
.tg.on::after{ left: auto; right: 1px; background: var(--green); }
.tg.on.col-enterprise{ background: rgba(190,120,255,0.2); border-color: rgba(190,120,255,0.55); }
.tg.on.col-enterprise::after{ background: #c98bff; }

.compare-intro{ display:flex; align-items:center; justify-content:space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.compare-legend{ display:flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); }
.compare-legend span{ display:flex; align-items:center; gap: 7px; }

@media (max-width: 720px){
  .compare-table{ min-width: 760px; }
}
