
    :root {
      --bg: #0b0c0f;
      --bg-soft: #111317;
      --card: #15171c;
      --border: #1f2933;
      --text-main: #f9fafb;
      --text-muted: #9ca3af;
      --accent: #2563eb;
      --accent-soft: rgba(37, 99, 235, 0.12);
      --accent-strong: #1d4ed8;
      --danger: #ef4444;
      --success: #22c55e;
      --radius-lg: 18px;
      --radius-md: 14px;
      --shadow-soft: 0 22px 70px rgba(15, 23, 42, 0.75);
      --transition: all 0.22s ease;
    }

    body[data-theme="light"] {
      --bg: #f3f4f6;
      --bg-soft: #ffffff;
      --card: #ffffff;
      --border: #e5e7eb;
      --text-main: #111827;
      --text-muted: #6b7280;
      --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html {
      scroll-behavior: smooth;
    }
    body {
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top, #1f2937 0, var(--bg) 45%, #020617 100%);
      color: var(--text-main);
      line-height: 1.6;
      overflow-x: hidden;
    }
    body[data-theme="light"] {
      background: radial-gradient(circle at top, #e5f0ff 0, #f3f4f6 40%, #e5e7eb 100%);
    }

    h1, h2, h3 {
      font-family: "Manrope", system-ui, sans-serif;
      letter-spacing: -0.03em;
    }

    .container {
      width: min(1120px, 100%);
      margin: 0 auto;
      padding: 0 16px;
    }

    /* HEADER */
    header {
      position: fixed;
      inset: 0 0 auto 0;
      z-index: 1000;
      backdrop-filter: blur(18px);
      background: linear-gradient(to bottom,
        rgba(10, 12, 16, 0.96),
        rgba(10, 12, 16, 0.9),
        transparent
      );
      border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }
    body[data-theme="light"] header {
      background: linear-gradient(to bottom,
        rgba(249, 250, 251, 0.97),
        rgba(249, 250, 251, 0.93),
        transparent
      );
      border-bottom-color: rgba(148, 163, 184, 0.25);
    }

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

    .logo {
      display: flex;
      align-items: center;
      /*gap: 10px;*/
      font-family: "Manrope", sans-serif;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-size: 0.95rem;
      color: var(--text-main);
      text-decoration: none;
    }
    .logo span {
      background: linear-gradient(135deg, #2563eb, #22c55e);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 20px;
      list-style: none;
    }
    .nav-links a {
      font-size: 0.9rem;
      color: var(--text-muted);
      text-decoration: none;
      padding: 4px 0;
      position: relative;
      transition: var(--transition);
    }
    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -3px;
      width: 0;
      height: 2px;
      border-radius: 999px;
      background: var(--accent);
      transition: var(--transition);
    }
    .nav-links a:hover {
      color: var(--text-main);
    }
    .nav-links a:hover::after {
      width: 100%;
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 8px 16px;
      font-size: 0.9rem;
      font-weight: 600;
      border-radius: 999px;
      border: 1px solid transparent;
      cursor: pointer;
      text-decoration: none;
      transition: var(--transition);
      white-space: nowrap;
    }
    .btn-primary {
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      color: #f9fafb;
      box-shadow: 0 18px 50px rgba(37, 99, 235, 0.55);
    }
    .btn-primary:hover {
      filter: brightness(1.05);
      transform: translateY(-1px);
      box-shadow: 0 22px 60px rgba(37, 99, 235, 0.7);
    }
    .btn-ghost {
      background: transparent;
      color: var(--text-muted);
      border-color: var(--border);
    }
    .btn-ghost:hover {
      color: var(--text-main);
      border-color: var(--accent);
      background: rgba(148, 163, 184, 0.06);
    }

    .icon-btn {
      width: 34px;
      height: 34px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(15, 23, 42, 0.9);
      color: var(--text-main);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: var(--transition);
      flex-shrink: 0;
      font-size: 0.85rem;
    }
    body[data-theme="light"] .icon-btn {
      background: #f9fafb;
    }
    .icon-btn:hover {
      border-color: var(--accent);
      transform: translateY(-1px);
    }

    .lang-switch {
      display: inline-flex;
      border-radius: 999px;
      border: 1px solid var(--border);
      overflow: hidden;
      background: rgba(15, 23, 42, 0.9);
      font-size: 0.8rem;
    }
    body[data-theme="light"] .lang-switch {
      background: #f9fafb;
    }
    .lang-btn {
      border: none;
      background: transparent;
      padding: 5px 10px;
      cursor: pointer;
      color: var(--text-muted);
      transition: var(--transition);
      min-width: 36px;
    }
    .lang-btn.active {
      background: var(--accent-soft);
      color: var(--text-main);
    }

    .mobile-toggle {
      display: none;
      border: none;
      background: transparent;
      color: var(--text-main);
      font-size: 1.4rem;
    }

    /* HERO */
    .hero {
      padding-top: 112px;
      padding-bottom: 56px;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      gap: 40px;
      align-items: center;
    }

    .hero-kicker {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--text-muted);
      margin-bottom: 8px;
    }
    .hero-title {
      font-size: clamp(2rem, 3.2vw + 1rem, 3rem);
      line-height: 1.1;
      font-weight: 800;
      margin-bottom: 14px;
    }
    .hero-title span.accent {
      background: linear-gradient(135deg, #2563eb, #22c55e);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero-subtitle {
      font-size: 1rem;
      color: var(--text-muted);
      max-width: 520px;
      margin-bottom: 18px;
    }

    .hero-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 18px;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 0.78rem;
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid var(--border);
    }
    body[data-theme="light"] .badge {
      background: #f9fafb;
    }
    .badge i {
      color: var(--accent);
      font-size: 0.8rem;
    }

    .hero-metrics {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 22px;
    }
    .metric {
      border-radius: 14px;
      padding: 10px 11px;
      border: 1px solid var(--border);
      background: rgba(15, 23, 42, 0.85);
    }
    body[data-theme="light"] .metric {
      background: #ffffff;
    }
    .metric strong {
      font-size: 1.05rem;
    }
    .metric span {
      display: block;
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-top: 3px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin-bottom: 10px;
    }

    .hero-note {
      font-size: 0.84rem;
      color: var(--text-muted);
    }
    .hero-note i {
      color: var(--success);
      margin-right: 4px;
    }

    .hero-card {
      border-radius: var(--radius-lg);
      padding: 18px;
      background: var(--card);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
    }

    .hero-top {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 14px;
    }
    .hero-photo {
      width: 60px;
      height: 60px;
      border-radius: 999px;
      overflow: hidden;
      border: 2px solid var(--accent-soft);
      background: radial-gradient(circle at top, #1f2933, #020617);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      font-weight: 700;
      color: #f9fafb;
    }
    .hero-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hero-name {
      font-size: 0.9rem;
    }
    .hero-name strong {
      display: block;
      font-size: 1rem;
      margin-bottom: 2px;
    }
    .hero-name span {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .hero-list {
      list-style: none;
      margin: 0 0 14px;
      padding: 0;
    }
    .hero-list li {
      font-size: 0.86rem;
      color: var(--text-main);
      display: flex;
      gap: 8px;
      align-items: flex-start;
      margin-bottom: 6px;
    }
    .hero-list li i {
      margin-top: 3px;
      font-size: 0.8rem;
      color: var(--success);
    }

    .hero-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 0.78rem;
      border: 1px solid var(--border);
      color: var(--text-muted);
    }
    .hero-pill i {
      color: #facc15;
    }

    /* SECTIONS */
    section {
      padding: 40px 0;
    }

    .section-head {
      margin-bottom: 22px;
    }
    .section-kicker {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--text-muted);
      margin-bottom: 5px;
    }
    .section-title {
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .section-subtitle {
      font-size: 0.94rem;
      color: var(--text-muted);
      max-width: 540px;
    }

    /* GRID + CARDS */
    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }
    .card {
      background: var(--card);
      border-radius: var(--radius-md);
      padding: 14px 14px 16px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
    }
    .card small {
      font-size: 0.74rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-muted);
    }
    .card h3 {
      font-size: 1rem;
      margin: 7px 0 5px;
    }
    .card p {
      font-size: 0.9rem;
      color: var(--text-muted);
      margin-bottom: 8px;
    }
    .card-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 8px;
    }
    .price-tag {
      font-weight: 600;
      color: var(--text-main);
    }
    .badge-soft {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 8px;
      border-radius: 999px;
      font-size: 0.75rem;
      border: 1px solid var(--border);
      color: var(--text-muted);
    }
    .badge-soft i {
      color: var(--success);
    }

    /* CASES */
    .cases-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }
    .case {
      background: var(--card);
      border-radius: var(--radius-md);
      padding: 12px 12px 14px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
    }
    .case-header {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-bottom: 5px;
    }
    .case h3 {
      font-size: 0.98rem;
      margin-bottom: 6px;
    }
    .case-block {
      font-size: 0.84rem;
      color: var(--text-muted);
      margin-bottom: 4px;
    }
    .case-block strong {
      color: var(--text-main);
    }

    /* ABOUT */
    .two-cols {
      display: grid;
      grid-template-columns: 1.15fr 1fr;
      gap: 16px;
    }
    .list-check {
      list-style: none;
    }
    .list-check li {
      display: flex;
      gap: 8px;
      margin-bottom: 6px;
      font-size: 0.9rem;
      color: var(--text-main);
    }
    .list-check li i {
      margin-top: 2px;
      font-size: 0.9rem;
      color: var(--success);
    }
    .steps {
      list-style: none;
      counter-reset: step;
    }
    .steps li {
      counter-increment: step;
      position: relative;
      padding-left: 30px;
      margin-bottom: 7px;
      font-size: 0.9rem;
      color: var(--text-main);
    }
    .steps li::before {
      content: counter(step);
      position: absolute;
      left: 0;
      top: 2px;
      width: 20px;
      height: 20px;
      border-radius: 999px;
      background: var(--bg-soft);
      border: 1px solid var(--border);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    /* CONTACT */
    .contact {
      padding-bottom: 60px;
    }
    .contact-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
      gap: 16px;
    }
    .contact-card {
      background: var(--card);
      border-radius: var(--radius-lg);
      padding: 16px 14px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
    }
    .contact-list {
      list-style: none;
      margin: 8px 0 12px;
    }
    .contact-list li {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 0.9rem;
      color: var(--text-main);
      margin-bottom: 6px;
    }
    .contact-list li i {
      color: var(--accent);
    }
    .contact-note {
      font-size: 0.86rem;
      color: var(--text-muted);
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 9px;
    }
    .field {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .field label {
      font-size: 0.82rem;
      color: var(--text-muted);
    }
    .field input,
    .field textarea {
      background: rgba(15, 23, 42, 0.96);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 7px 9px;
      font-size: 0.9rem;
      color: var(--text-main);
      outline: none;
      transition: var(--transition);
    }
    body[data-theme="light"] .field input,
    body[data-theme="light"] .field textarea {
      background: #f9fafb;
    }
    .field input:focus,
    .field textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
    }
    textarea {
      min-height: 90px;
      resize: vertical;
    }
    .form-hint {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    /* FOOTER */
    footer {
      border-top: 1px solid var(--border);
      padding: 10px 0 16px;
      font-size: 0.78rem;
      color: var(--text-muted);
      text-align: center;
    }

    /* LANG VISIBILITY */
    html[lang="ru"] .lang-ru { display: inline !important; }
    html[lang="ru"] .lang-en { display: none !important; }
    html[lang="en"] .lang-ru { display: none !important; }
    html[lang="en"] .lang-en { display: inline !important; }

    /* RESPONSIVE */
    @media (max-width: 900px) {
      .hero-grid {
        grid-template-columns: 1fr;
      }
      .hero-card {
        margin-top: 8px;
      }
      .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .cases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .two-cols,
      .contact-grid {
        grid-template-columns: 1fr;
      }
    }
    @media (max-width: 720px) {
      .nav-links {
        position: fixed;
        inset: 54px 0 auto 0;
        background: var(--bg-soft);
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 16px 12px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
      }
      .nav-links.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
      }
      .nav-right .btn-primary {
        display: none;
      }
      .mobile-toggle {
        display: block;
      }
      .hero {
        padding-top: 92px;
      }
      .grid-3,
      .cases-grid {
        grid-template-columns: 1fr;
      }
      .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    @media (max-width: 480px) {
      .hero-metrics {
        grid-template-columns: 1fr;
      }
    }
  
  /* --- LANGUAGE SWITCH FIX --- */
html[lang="ru"] .lang-ru { display: inline !important; }
html[lang="ru"] .lang-en { display: none !important; }

html[lang="en"] .lang-ru { display: none !important; }
html[lang="en"] .lang-en { display: inline !important; }

/* --- LANGUAGE FADE ANIMATION --- */

/* Все языковые элементы — плавный переход */
.lang-ru,
.lang-en {
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Скрытые языковые элементы — плавно исчезают */
html[lang="ru"] .lang-en,
html[lang="en"] .lang-ru {
  opacity: 0;
  pointer-events: none; /* чтобы скрытый текст не кликтался */
}

