/* Brand variables */
:root {
    --bg: #000000;
    --bg-soft: #03131c;
    --primary: #00f6ff;
    --primary-soft: #00f6ff55;
    --accent: #ff8a00;
    --text: #d7faff;
    --muted: #94a4b0;
    --radius: 14px;
    --shadow-soft: 0 0 40px rgba(0, 246, 255, 0.12);
    --shadow-card: 0 0 24px rgba(0, 0, 0, 0.9);
    --container-max: 1120px;
    --font-main: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color-scheme: dark;
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #021018 0, #000 52%, #000 100%);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Top nav */
.top-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    background: radial-gradient(circle at top, #04161f 0, #020b11 40%, #000 100%);
    border-bottom: 1px solid #00f6ff22;
    backdrop-filter: blur(14px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(255, 138, 0, 0.7);
    object-fit: cover;
}

.nav-title {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 16px;
}

.nav-links a {
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #000;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
}

/* Hero */
.hero {
    padding: 140px 0 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
}

.hero-label {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 14px;
}

.hero-sub {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 10px;
}

.hero-micro {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.hero-meta {
    font-size: 16px;
    color: var(--muted);
}

.hero-media {
    display: flex;
    justify-content: center;
}

.hero-image {
    border-radius: var(--radius);
    border: 1px solid var(--primary-soft);
    box-shadow: var(--shadow-card);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ffbf40);
    color: #000;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-ghost {
    border-color: #00f6ff55;
    color: var(--primary);
    background: transparent;
}

.btn-ghost:hover {
    background: #00f6ff0d;
}

.btn-large {
    padding: 16px 34px;
    font-size: 17px;
}

/* Sections */
.section {
    padding: 30px 0;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.section-lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 720px;
    margin-bottom: 30px;
}

.section-footnote {
    font-size: 16px;
    color: var(--muted);
    margin-top: 18px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* Cards */
.card {
    padding: 24px 22px;
    border-radius: var(--radius);
    border: 1px solid #00f6ff30;
    background: radial-gradient(circle at top left, #051b29 0, #02070d 40%, #000 100%);
    box-shadow: var(--shadow-card);
    font-size: 18px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
}

.card h4 {
    margin-top: 10px;
    margin-bottom: 6px;
    color: var(--text);
}

.card ul {
    padding-left: 18px;
}

.card-image {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #00f6ff33;
    margin-bottom: 10px;
}

/* Cases */
.case {
    border-radius: var(--radius);
    border: 1px solid #00f6ff40;
    background: radial-gradient(circle at top, #052334 0, #01070d 45%, #000 100%);
    padding: 24px 22px;
    margin-bottom: 26px;
    box-shadow: var(--shadow-card);
    font-size: 18px;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.case h3 {
    margin: 0;
}

.case h4 {
    margin-bottom: 8px;
}

.case ul {
    padding-left: 18px;
}

.case-mini {
    display: block;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #00f6ff33;
    margin: 16px 0 4px;
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

/* Pricing */
.pricing-card .price {
    font-size: 26px;
    margin-bottom: 6px;
}

.pricing-card .price span {
    font-size: 18px;
    color: var(--muted);
}

.note {
    font-size: 16px;
    color: var(--muted);
    margin-top: 10px;
}

/* CTA */
.hero-cta {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

.hero-cta h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero-cta .hero-sub {
    max-width: 680px;
    margin: 0 auto 24px;
}

.small {
    font-size: 16px;
}

/* Contacts */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    font-size: 14px;
}

/* Footer */
footer {
    border-top: 1px solid #00f6ff22;
    padding: 20px 0 28px;
    font-size: 14px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: center;
}

  .zoom-overlay {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
  }

  .zoom-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .zoom-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-radius: 6px;
    background: #fff;
  }

    .slider {
      max-width: 100%;
      overflow: hidden;
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.5);
      background: #000;
    }

    .slider-track {
      display: flex;
      transition: transform 0.5s ease;
    }

    .slide {
      flex: 0 0 100%;
    }

    .slide img {
      display: block;
      width: 100%;
      height: auto;
    }

/* Language switching (для inline-текста) */
.lang-en,
.lang-ru {
    /* по умолчанию оба видимы, но переключаем через класс на body */
}

body.lang-en-active .lang-en {
    display: inline;
}
body.lang-en-active .lang-ru {
    display: none;
}

body.lang-ru-active .lang-ru {
    display: inline;
}
body.lang-ru-active .lang-en {
    display: none;
}

/* Блок справа в шапке: переключатель + CTA */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #00f6ff55;
    overflow: hidden;
    background: #020910;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
    min-width: 32px;
}

.lang-btn-active {
    background: #00f6ff1a;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 960px) {
    .hero-grid,
    .grid-2,
    .grid-3,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 120px;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .card,
    .case {
        padding: 20px 18px;
    }

    .btn,
    .nav-cta {
        font-size: 13px;
    }
}
