:root {
      --fs-hero:  clamp(40px, 6vw, 72px);
      --fs-h2:    clamp(32px, 4vw, 56px);
      --fs-h3:    clamp(20px, 2.5vw, 28px);
      --fs-body:  16px;
      --fs-small: 13px;
    }

    
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html {
      scroll-behavior: smooth;
      font-size: 16px;
      -webkit-text-size-adjust: 100%;
    }
    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg-deep);
      color: var(--text-main);
      line-height: 1.65;
      font-size: var(--fs-body);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }

    
    .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
    section { padding: 64px 0; }

    
    h1, h2, h3 { font-family: 'Inter', sans-serif; color: var(--text-main); }
    .eyebrow {
      font-size: var(--fs-small);
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--accent);
    }
    .section-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 20px;
    }
    .section-label::before {
      content: '';
      display: block;
      width: 20px;
      height: 2px;
      background: var(--accent);
      border-radius: 1px;
    }

    
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--topbar-bg);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border-bottom: 1px solid var(--border);
      padding: 16px 0;
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .nav-logo {
      font-family: 'Inter', sans-serif;
      font-weight: 700;
      font-size: 1.15rem;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text-main);
      flex-shrink: 0;
      letter-spacing: -0.02em;
    }
    .nav-logo-mark {
      width: 34px; height: 34px;
      background: transparent;
      border-radius: 9px;
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
    }
    .nav-logo-mark img {
      width: 100%; height: 100%;
      object-fit: contain;
      border-radius: 9px;
    }
    .nav-links {
      display: flex;
      gap: 32px;
      list-style: none;
    }
    .nav-links a {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-muted);
      transition: color 0.18s;
    }
    .nav-links a:hover, .nav-links a.active { color: var(--text-main); }
    .nav-links a.active { color: var(--accent); }
    .nav-cta { display: flex; gap: 10px; align-items: center; }

    
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      font-size: var(--fs-body);
      cursor: pointer;
      border: none;
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
      white-space: nowrap;
      text-decoration: none;
      border-radius: 12px;
      padding: 14px 28px;
      min-height: 44px;
      line-height: 1.3;
    }
    .btn:active { transform: scale(0.97); }
    .btn-primary {
      background: var(--accent);
      color: var(--on-accent);
    }
    .btn-primary:hover {
      background: var(--accent-hover);
      transform: translateY(-2px);
      box-shadow: 0 12px 32px var(--accent-mid);
    }
    .btn-outline {
      background: transparent;
      color: var(--text-main);
      border: 1px solid var(--border);
    }
    .btn-outline:hover {
      border-color: var(--border-input);
      background: var(--bg-glass);
      transform: translateY(-1px);
    }
    .btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; min-height: 44px; }
    .btn-lg { padding: 16px 32px; font-size: 17px; min-height: 48px; }
    .btn-full { width: 100%; justify-content: center; }

    
    .pricing-hero {
      padding: 48px 0 40px;
      text-align: center;
    }
    .pricing-hero h1 {
      font-size: var(--fs-hero);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.1;
      margin-bottom: 20px;
    }
    .pricing-hero p {
      font-size: 18px;
      color: var(--text-muted);
      max-width: 480px;
      margin: 0 auto 40px;
      line-height: 1.6;
    }

    
    .billing-toggle {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 100px;
      padding: 6px;
      margin-bottom: 64px;
    }
    .billing-toggle-btn {
      padding: 10px 20px;
      min-height: 44px;
      border-radius: 100px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border: none;
      background: transparent;
      color: var(--text-muted);
      transition: background 0.18s ease, color 0.18s ease;
      font-family: 'Inter', sans-serif;
    }
    .billing-toggle-btn.active {
      background: var(--accent);
      color: var(--on-accent);
    }
    .billing-toggle-badge {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: var(--accent-dim);
      color: var(--accent);
      padding: 3px 8px;
      border-radius: 100px;
      border: 1px solid var(--accent-mid);
    }

    
    .plans-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      align-items: start;
    }
    .plan-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 36px;
      position: relative;
      transition: transform 0.25s ease, border-color 0.25s ease;
    }
    .plan-card:hover {
      transform: translateY(-4px);
      border-color: var(--border-input);
    }
    .plan-card.featured {
      border-color: var(--accent);
      background: linear-gradient(180deg, var(--accent-lt) 0%, var(--bg-card) 60%);
      transform: scale(1.03);
    }
    .plan-card.featured:hover {
      transform: scale(1.03) translateY(-4px);
    }
    .plan-badge {
      position: absolute;
      top: -14px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--accent);
      color: var(--on-accent);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 5px 16px;
      border-radius: 100px;
      white-space: nowrap;
    }

    .plan-name {
      font-family: 'Inter', sans-serif;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -0.01em;
      margin-bottom: 8px;
    }
    .plan-desc {
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 28px;
      line-height: 1.5;
    }
    .plan-price {
      margin-bottom: 8px;
    }
    .plan-price-amount {
      font-family: 'Inter', sans-serif;
      font-size: 48px;
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1;
      color: var(--text-main);
    }
    .plan-price-amount.free-plan {
      font-size: 40px;
    }
    .plan-price-currency {
      font-size: 24px;
      font-weight: 600;
      vertical-align: top;
      margin-top: 8px;
      display: inline-block;
      color: var(--text-muted);
    }
    .plan-price-period {
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 28px;
    }
    .plan-price-old {
      font-size: 14px;
      color: var(--text-muted);
      text-decoration: line-through;
      margin-left: 4px;
    }

    .plan-divider {
      border: none;
      border-top: 1px solid var(--border);
      margin: 24px 0;
    }

    .plan-features {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 32px;
    }
    .plan-features li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 14px;
      line-height: 1.5;
      color: var(--text-main);
    }
    .plan-features li .check {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 1px;
    }
    .plan-features li .check.yes {
      background: var(--badge-success-bg);
      color: var(--badge-success-fg);
    }
    .plan-features li .check.no {
      background: var(--bg-glass);
      color: var(--text-muted);
    }
    .plan-features li.muted { color: var(--text-muted); }

    
    .compare-section { padding: 80px 0 120px; }
    .compare-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }
    .compare-table th {
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      font-size: 15px;
      padding: 16px 20px;
      text-align: left;
      color: var(--text-muted);
      border-bottom: 1px solid var(--border);
    }
    .compare-table th.col-plan {
      text-align: center;
      color: var(--text-main);
      font-size: 16px;
    }
    .compare-table th.col-plan.featured { color: var(--accent); }
    .compare-table td {
      padding: 14px 20px;
      border-bottom: 1px solid var(--border);
      color: var(--text-main);
      vertical-align: middle;
    }
    .compare-table td.col-plan {
      text-align: center;
      color: var(--text-muted);
    }
    .compare-table td.col-plan.featured {
      background: var(--accent-lt);
    }
    .compare-table tr:last-child td { border-bottom: none; }
    .compare-table tr:hover td { background: var(--bg-glass); }
    .compare-table tr:hover td.col-plan.featured { background: var(--accent-dim); }
    .check-icon { color: var(--badge-success-fg); display: inline-flex; align-items: center; justify-content: center; }
    .cross-icon { color: var(--text-muted); opacity: 0.4; display: inline-flex; align-items: center; justify-content: center; }
    .feature-name { color: var(--text-main); }
    .feature-hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
    .table-section-header td {
      padding: 20px 20px 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      border-bottom: none;
      background: none !important;
    }

    
    .faq-section { padding: 80px 0 120px; }
    .faq-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .faq-item {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
    }
    .faq-q {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      padding: 20px 24px;
      cursor: pointer;
      font-weight: 500;
      font-size: 15px;
      transition: color 0.18s;
    }
    .faq-q:hover { color: var(--accent); }
    .faq-arrow {
      flex-shrink: 0;
      width: 24px; height: 24px;
      border-radius: 50%;
      background: var(--bg-glass);
      border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      font-size: 12px;
      transition: transform 0.25s ease, background 0.18s;
      color: var(--text-muted);
    }
    /* FIX UI: CSS-шеврон вместо emoji ▾ */
    .faq-arrow::before {
      content: '';
      display: block;
      width: 6px;
      height: 6px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg);
      margin-top: -2px;
    }
    .faq-a {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease, padding 0.25s ease;
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.7;
      padding: 0 24px;
    }
    .faq-item.open .faq-a {
      max-height: 300px;
      padding: 0 24px 20px;
    }
    .faq-item.open .faq-arrow {
      transform: rotate(180deg);
      background: var(--accent-dim);
      border-color: var(--accent-mid);
      color: var(--accent);
    }

    
    .cta-banner {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 28px;
      padding: 72px;
      text-align: center;
      position: relative;
      overflow: hidden;
      margin-bottom: 120px;
    }
    .cta-banner::before {
      content: '';
      position: absolute;
      top: -80px; left: 50%; transform: translateX(-50%);
      width: 500px; height: 300px;
      background: radial-gradient(ellipse at center, var(--body-glow) 0%, transparent 70%);
      pointer-events: none;
    }
    .cta-banner h2 {
      font-size: var(--fs-h2);
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 16px;
      position: relative;
    }
    .cta-banner p {
      font-size: 17px;
      color: var(--text-muted);
      max-width: 440px;
      margin: 0 auto 36px;
      position: relative;
    }
    .cta-banner-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
      position: relative;
    }
    .cta-trust {
      margin-top: 20px;
      font-size: 13px;
      color: var(--text-muted);
      letter-spacing: 0.04em;
      position: relative;
    }

    
    footer {
      border-top: 1px solid var(--border);
      padding: 40px 0;
    }
    .footer-inner {
      display: grid;
      grid-template-columns: auto 1fr;
      grid-template-areas:
        "brand copy"
        "legal legal"
        "links links";
      gap: 20px 24px;
      align-items: center;
    }
    .footer-inner > .nav-logo { grid-area: brand; }
    .footer-copy {
      grid-area: copy;
      justify-self: end;
      text-align: right;
      font-size: 14px;
      color: var(--text-muted);
    }
    .footer-legal { grid-area: legal; width: 100%; }
    .footer-links {
      grid-area: links;
      display: flex;
      gap: 16px 24px;
      flex-wrap: wrap;
      width: 100%;
    }
    .footer-links a {
      font-size: 14px;
      color: var(--text-muted);
      transition: color 0.18s;
    }
    .footer-links a:hover { color: var(--text-main); }

    
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.in-view {
      opacity: 1;
      transform: translateY(0);
    }

    
    @media (min-width: 768px) {
      .container { padding: 0 24px; }
      section { padding: 96px 0; }
      .pricing-hero { padding: 80px 0 56px; }
    }

    @media (min-width: 1024px) {
      section { padding: 120px 0; }
      .pricing-hero { padding: 100px 0 60px; }
    }

    @media (max-width: 900px) {
      .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
      .plan-card.featured { transform: none; }
      .plan-card.featured:hover { transform: translateY(-4px); }
      .compare-table { display: none; }
      .faq-grid { grid-template-columns: 1fr; }
      .cta-banner { padding: 48px 32px; }
      .nav-links { display: none; }
    }
    @media (max-width: 600px) {
      .pricing-hero { padding: 40px 0 32px; }
      .cta-banner-actions { flex-direction: column; align-items: stretch; }
      .cta-banner-actions .btn { width: 100%; }
      .footer-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
          "brand"
          "copy"
          "legal"
          "links";
        text-align: left;
      }
      .footer-inner > .footer-copy {
        justify-self: start;
        text-align: left;
      }
      .footer-links { justify-content: flex-start; }
      .nav-cta .btn { flex: 1; justify-content: center; }
      .plan-card { padding: 28px 20px; }
    }

    
    .price-monthly { display: inline; }
    .price-yearly  { display: none; }
    body.yearly .price-monthly { display: none; }
    body.yearly .price-yearly  { display: inline; }
    body.yearly .annual-discount { display: inline; }
    .annual-discount { display: none; }
