/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

html[data-theme="dark"] body,
body.page-sub {
    background: #0e0f12;
    color: #eaeaea;
}

body.page-sub {
    min-height: 100vh;
}

.page-sub .header {
    background: rgba(15, 18, 23, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.page-sub .nav__menu a.active {
    color: #8a9cff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

/* Icon inside buttons (e.g., Telegram) */
.btn .btn__icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn--secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn--secondary:hover {
    background: #667eea;
    color: white;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn--large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav__logo h2 {
    color: #667eea;
    font-size: 1.8rem;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.nav__menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__menu a:hover {
    color: #667eea;
}

.nav__contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__phone {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

/* Header contact links */
.nav__email, .nav__telegram {
    color: var(--nav-link);
    text-decoration: none;
    font-weight: 500;
}
.nav__phone, .nav__email, .nav__telegram {
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.nav__phone:hover, .nav__email:hover, .nav__telegram:hover {
    color: var(--primary-start);
    background-color: rgba(255,255,255,0.04);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.feature__icon {
    font-size: 1.5rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__chart {
    display: flex;
    gap: 2rem;
    align-items: end;
    height: 200px;
}

.chart__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.chart__bar {
    width: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service__card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.service__card:hover {
    transform: translateY(-5px);
}

.service__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service__card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

/* === Modern Design Tokens and Dark Mode (Appended) === */
:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --text: #1a1a1a;
    --muted: #666666;
    --primary-start: #667eea;
    --primary-end: #764ba2;
    --surface: #f8f9fa;
    --header-bg: rgba(255, 255, 255, 0.95);
    --hero-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --nav-link: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1217;
    --text: #e5e7eb;
    --muted: #9aa4b2;
    --primary-start: #6b8cff;
    --primary-end: #8a5cff;
    --surface: #171b22;
    --header-bg: rgba(18, 22, 28, 0.85);
    --hero-bg: radial-gradient(1200px 600px at 50% 10%, rgba(111, 86, 255, 0.15) 0%, transparent 60%),
               radial-gradient(800px 400px at 10% 80%, rgba(177, 255, 122, 0.12) 0%, transparent 55%),
               radial-gradient(900px 500px at 90% 30%, rgba(111, 86, 255, 0.12) 0%, transparent 60%),
               linear-gradient(180deg, #0c0f14 0%, #0f141b 40%, #0b1016 100%);
    --nav-link: #d1d5db;
    --shadow: rgba(0, 0, 0, 0.4);
}

/* Token-based overrides */
body { background-color: var(--bg); color: var(--text); transition: background-color 0.25s ease, color 0.25s ease; }
.header { background: var(--header-bg); box-shadow: 0 2px 20px var(--shadow); }
.header.scrolled { box-shadow: 0 2px 30px var(--shadow); }
.nav__menu a { color: var(--nav-link); }
.nav__menu a:hover { color: var(--primary-start); }
.nav__phone { color: var(--nav-link); }
.section__title { color: var(--text); }
.hero { background: var(--hero-bg); }
.hero__subtitle { color: var(--muted); }
.service__card { background: var(--surface); box-shadow: 0 8px 24px var(--shadow); }
.pricing__card, .case__card, .step { background: var(--surface); box-shadow: 0 8px 24px var(--shadow); }
.btn--primary { background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%); }
.btn--secondary { color: var(--primary-start); border-color: var(--primary-start); }

.nav__contact { gap: 0.75rem; }

.service__card p {
    color: var(--muted);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: var(--bg);
}

.pricing__cta {
    display: flex;
    justify-content: center;
    margin: -1rem 0 2rem; /* подтягиваем ближе к заголовку */
}

.pricing__tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab__button {
    padding: 12px 24px;
    border: 1px solid rgba(0,0,0,0.08);
    background: var(--surface);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--nav-link);
}

.tab__button.active {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: #fff;
    border-color: var(--primary-start);
}

.tab__content {
    display: none;
}

.tab__content.active {
    display: block;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
    align-items: stretch; /* растягиваем карточки по высоте строки */
}

/* Стабильные колонки на десктопе */
@media (min-width: 992px) {
    .pricing__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .pricing__grid { grid-template-columns: repeat(4, 1fr); }
}

.pricing__card {
    background: var(--surface);
    border-radius: 14px;
    padding: 2.2rem;
    position: relative;
    box-shadow: 0 6px 20px var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;              /* флекс-колонка для притягивания кнопки вниз */
    flex-direction: column;
    height: 100%;               /* карточка заполняет высоту ячейки */
}

.pricing__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px var(--shadow);
}

.pricing__card--popular { border: 2px solid var(--primary-start); }

.pricing__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing__header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.pricing__header h3 {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 0.8rem;
}

.pricing__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

.price__old {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 0.95rem;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.price__current {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-start);
    white-space: nowrap;
    letter-spacing: 0.25px;
    font-variant-numeric: tabular-nums;
}

.pricing__features {
    list-style: none;
    margin-bottom: 1.6rem;
    font-size: 1rem;
    line-height: 1.6;
    flex: 1; /* заполняем доступное пространство, кнопка уйдёт вниз */
}

.pricing__features li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    padding-left: 1.6rem;
}

.pricing__features li + li { margin-top: 0.1rem; }

.pricing__features li:last-child {
    border-bottom: none;
}

.pricing__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--primary-start);
    font-weight: 700;
}

/* Кнопка прижата к низу и выровнена по центру */
.pricing__card .btn {
    display: block;
    margin-top: auto;      /* притягиваем кнопку к низу карточки */
    margin-left: auto;     /* центрируем по горизонтали */
    margin-right: auto;
}

/* Технический блок под тарифом */
.pricing__tech {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 0.75rem; /* небольшой отступ до кнопки */
}

.pricing__tech-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.pricing__tech-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.flexible__pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--surface);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow);
}

.calculator {
    margin-top: 1rem;
}

.calculator label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calculator input {
    width: 100%;
    padding: 12px;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 1rem;
    background: var(--bg);
    color: var(--text);
}

.calculator__result { font-size: 1.2rem; color: var(--primary-start); }

.flexible__benefits ul {
    list-style: none;
}

.flexible__benefits li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.flexible__benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-start); font-weight: bold; }

/* Dark theme border tuning */
html[data-theme="dark"] .tab__button { border-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .pricing__features li { border-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .pricing__card { border-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .pricing__tech { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

/* Cases Section */
.cases {
    padding: 80px 0;
    background: white;
}

.case-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.case-back-link:hover {
    background: rgba(148,163,184,0.12);
    border-color: rgba(148,163,184,0.9);
    color: #0f172a;
}

html[data-theme="dark"] .case-back-link,
body.page-sub .case-back-link {
    color: #b6bbc5;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .case-back-link:hover,
body.page-sub .case-back-link:hover {
    color: #eaeaea;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.cases__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.case__card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.case__card:hover {
    transform: translateY(-5px);
}

.case__image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case__placeholder {
    font-size: 4rem;
}

.case__content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case__content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.case__content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.case__stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat {
    text-align: center;
}

.stat__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.stat__label {
    font-size: 0.9rem;
    color: #666;
}

.case__region {
    color: #999;
    font-size: 0.9rem;
}

/* Actions under cases grid */
.cases__actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Dark variant for Cases Section */
.cases--dark {
    background: #0e0f12;
    color: #eaeaea;
}
.cases--dark .section__title { color: #eaeaea; }
.cases--dark .case__card {
    background: #16181d;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.cases--dark .case__content h3 { color: #eaeaea; }
.cases--dark .case__content p { color: #b6bbc5; }
.cases--dark .stat__label { color: #b6bbc5; }
.cases--dark .case__region { color: #8a8f98; }
.cases--dark .case__image { background: linear-gradient(135deg, rgba(102,126,234,0.25) 0%, rgba(118,75,162,0.25) 100%); }
.cases--dark .btn.btn--secondary { background: #1f2228; color: #eaeaea; border: 1px solid rgba(255,255,255,0.08); }
.cases--dark .btn.btn--primary { box-shadow: 0 8px 24px rgba(0,0,0,0.45); }

@media (max-width: 1024px) {
    .cases__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .cases__grid { grid-template-columns: 1fr; }
}

/* News Section */
.news {
    padding: 80px 0;
    background: #f8f9fa;
}

.news--dark {
    background: #0e0f12;
    color: #eaeaea;
}

.news--dark .section__title { color: #eaeaea; }

.news--page {
    min-height: 60vh;
    padding: 100px 0 80px;
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news__card {
    background: #15171c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

.news__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.news__image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(102,126,234,0.25) 0%, rgba(118,75,162,0.25) 100%);
    overflow: hidden;
}

.news__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
}

.news__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news__date {
    font-size: 0.85rem;
    color: #8a8f98;
    margin-bottom: 0.5rem;
}

.news__content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: #eaeaea;
}

.news__content p {
    color: #b6bbc5;
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
}

.news__more {
    color: #8a9cff;
    font-weight: 600;
    font-size: 0.95rem;
}

.news__actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.news__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #8a8f98;
    padding: 2rem 0;
}

.news__article {
    max-width: 820px;
    margin: 0 auto;
}

.news__lead {
    font-size: 1.15rem;
    color: #b6bbc5;
    margin: 1rem 0 1.5rem;
    line-height: 1.6;
}

.news__detail-image {
    margin: 1.5rem 0;
}

.news__detail-image img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.news__body {
    color: #d0d7e2;
    line-height: 1.75;
    font-size: 1.05rem;
}

@media (max-width: 1024px) {
    .news__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .news__grid { grid-template-columns: 1fr; }
}

.site-logo-link {
    color: inherit;
    text-decoration: none;
}

.news__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #8a8f98;
    font-size: 0.92rem;
}

.news__breadcrumbs a {
    color: #b6bbc5;
    text-decoration: none;
}

.news__breadcrumbs a:hover {
    color: #eaeaea;
}

.news__page-header {
    margin-bottom: 2.5rem;
    max-width: 760px;
}

.news__eyebrow {
    color: #8a9cff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.news__page-intro {
    color: #b6bbc5;
    font-size: 1.08rem;
    line-height: 1.65;
    margin-top: 0.75rem;
}

.news__section-title {
    color: #eaeaea;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.news__featured {
    margin-bottom: 3rem;
}

.news__featured-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #15171c;
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.news__featured-link {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    color: inherit;
    text-decoration: none;
}

.news__featured-media {
    min-height: 280px;
    background: linear-gradient(135deg, rgba(102,126,234,0.25) 0%, rgba(118,75,162,0.25) 100%);
}

.news__featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news__featured-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news__featured-body time {
    color: #8a8f98;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.news__featured-body h2 {
    color: #f2f4f8;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.news__featured-body p {
    color: #b6bbc5;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.news__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    align-items: start;
}

.news__article-title {
    color: #f2f4f8;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin: 0.5rem 0 1rem;
}

.news__article-header {
    margin-bottom: 1.5rem;
}

.news__article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: #8a8f98;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.news__meta-dot {
    opacity: 0.6;
}

.news__hero-figure {
    margin: 0 0 2rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.news__hero-figure img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news__h2 {
    color: #f2f4f8;
    font-size: 1.55rem;
    margin: 2rem 0 1rem;
    line-height: 1.25;
}

.news__h3 {
    color: #eaeaea;
    font-size: 1.2rem;
    margin: 1.75rem 0 0.75rem;
}

.news__paragraph {
    color: #d0d7e2;
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.news__list {
    margin: 0 0 1.25rem 1.2rem;
    color: #d0d7e2;
    line-height: 1.7;
}

.news__list li {
    margin-bottom: 0.45rem;
}

.news__quote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #6b8cff;
    background: rgba(107, 140, 255, 0.08);
    border-radius: 0 12px 12px 0;
}

.news__quote p {
    color: #eaeaea;
    font-size: 1.08rem;
    line-height: 1.65;
    margin: 0;
}

.news__figure {
    margin: 2rem 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #15171c;
}

.news__figure img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news__figure figcaption {
    padding: 0.85rem 1rem;
    color: #8a8f98;
    font-size: 0.9rem;
}

.news__cta {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
    border: 1px solid rgba(107, 140, 255, 0.25);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.news__cta p {
    color: #eaeaea;
    margin: 0;
    max-width: 520px;
    line-height: 1.55;
}

.news__article-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.news__share {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: #8a8f98;
}

.news__share a {
    color: #8a9cff;
    text-decoration: none;
    font-weight: 600;
}

.news__recommended {
    position: sticky;
    top: 100px;
    padding: 1.25rem;
    border-radius: 16px;
    background: #15171c;
    border: 1px solid rgba(255,255,255,0.08);
}

.news__sidebar-title {
    color: #eaeaea;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.news__recommended-list {
    display: grid;
    gap: 1rem;
}

.news__recommended-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.news__recommended-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.news__recommended-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.news__recommended-item time {
    display: block;
    color: #8a8f98;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.news__recommended-item h3 {
    color: #eaeaea;
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0;
}

.news__mini-footer {
    padding: 2rem 0 3rem;
    color: #8a8f98;
    font-size: 0.92rem;
}

.news__mini-footer a {
    color: #b6bbc5;
    text-decoration: none;
}

.news__mini-footer a:hover {
    color: #eaeaea;
}

@media (max-width: 1024px) {
    .news__layout {
        grid-template-columns: 1fr;
    }

    .news__recommended {
        position: static;
    }

    .news__featured-link {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .news__cta,
    .news__article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Process Section */
.process {
    padding: 80px 0;
    background: #f8f9fa;
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem 1rem;
}

.step__number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.step p {
    color: #666;
    font-size: 0.9rem;
}

/* Dark variant for Process Section */
.process--dark {
    background: #0e0f12;
    color: #eaeaea;
}
.process--dark .section__title { color: #eaeaea; }
.process--dark .process__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 2.5rem 2rem;
    align-items: start;
    position: relative;
}
.process--dark .step {
    background: #15171c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    padding: 2.25rem 1.5rem;
    text-align: center;
    position: relative;
}
.process--dark .step h3 { color: #eaeaea; }
.process--dark .step p { color: #b6bbc5; }
.process--dark .step__number {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.45);
    position: absolute;
    top: -12px;
    left: -12px;
    border: 2px solid rgba(255,255,255,0.25);
}

/* Decorative dashed connectors between steps (approximation of reference arrows) */
.process--dark .step::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
    background-repeat: no-repeat;
}

/* 1 -> 2 (right curved) */
.process--dark .process__steps .step:nth-child(1)::after {
    width: 180px; height: 120px;
    right: -170px; top: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='120' viewBox='0 0 180 120'><path d='M2,20 C70,25 110,90 178,85' fill='none' stroke='%23a7a9b2' stroke-width='2' stroke-dasharray='6 6'/><polygon points='168,80 178,85 168,90' fill='%23a7a9b2'/></svg>");
}
/* 2 -> 3 (down-left curved) */
.process--dark .process__steps .step:nth-child(2)::after {
    width: 200px; height: 160px;
    left: -160px; top: 110px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='160' viewBox='0 0 200 160'><path d='M198,20 C140,40 70,120 10,140' fill='none' stroke='%23a7a9b2' stroke-width='2' stroke-dasharray='6 6'/><polygon points='16,134 10,140 18,142' fill='%23a7a9b2'/></svg>");
}
/* 3 -> 4 (right curved) */
.process--dark .process__steps .step:nth-child(3)::after {
    width: 180px; height: 120px;
    right: -170px; top: 30px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='120' viewBox='0 0 180 120'><path d='M2,20 C70,25 110,90 178,85' fill='none' stroke='%23a7a9b2' stroke-width='2' stroke-dasharray='6 6'/><polygon points='168,80 178,85 168,90' fill='%23a7a9b2'/></svg>");
}
/* 4 -> 5 (down-left curved) */
.process--dark .process__steps .step:nth-child(4)::after {
    width: 200px; height: 160px;
    left: -160px; top: 110px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='160' viewBox='0 0 200 160'><path d='M198,20 C140,40 70,120 10,140' fill='none' stroke='%23a7a9b2' stroke-width='2' stroke-dasharray='6 6'/><polygon points='16,134 10,140 18,142' fill='%23a7a9b2'/></svg>");
}

/* Hover elevation */
.process--dark .step:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.55);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (max-width: 768px) {
    .process--dark .process__steps { grid-template-columns: 1fr; }
    .process--dark .process__steps .step::after { display: none; }
}

/* Visual elements inside Process steps */
.process--dark .pv-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.process--dark .pv-input {
    width: 100%;
    padding: 14px 16px;
    background: #1f2228;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #eaeaea;
    outline: none;
}
.process--dark .pv-input::placeholder { color: #8a8f98; }

.process--dark .pv-actions { margin-top: 14px; display: flex; justify-content: center; }

.process--dark .pv-table {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    align-items: center;
}
.process--dark .pv-key { color: #eaeaea; font-weight: 600; }
.process--dark .pv-pos { display: flex; gap: 8px; }

.process--dark .pv-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #d3ead6;
    background: rgba(42, 160, 78, 0.18);
    border: 1px solid rgba(42,160,78,0.35);
    box-shadow: 0 0 0 1px rgba(42,160,78,0.15) inset;
}

.process--dark .pv-list { display: grid; gap: 10px; margin-top: 8px; }
.process--dark .pv-item { display: flex; align-items: center; justify-content: space-between; }
.process--dark .pv-item .pv-label { display: inline-flex; align-items: center; gap: 8px; color: #eaeaea; font-weight: 600; }
.process--dark .pv-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #7c3aed; box-shadow: 0 0 8px rgba(124,58,237,0.6);
}
.process--dark .pv-caption { color: #8a8f98; font-size: 0.9rem; margin-top: 8px; }

.process--dark .pv-graph { height: 260px; position: relative; }
.process--dark .pv-graph::after {
    content: "";
    position: absolute; inset: 12px 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='260' viewBox='0 0 800 260'><path d='M20 210 C 120 200, 280 120, 380 140 S 600 200, 780 120' fill='none' stroke='%23d7c778' stroke-width='2' stroke-dasharray='6 6' opacity='0.7'/><rect x='140' y='160' width='90' height='26' rx='8' ry='8' fill='none' stroke='%23d7c778' opacity='0.7'/><rect x='320' y='110' width='100' height='26' rx='8' ry='8' fill='none' stroke='%23d7c778' opacity='0.7'/><rect x='540' y='170' width='90' height='26' rx='8' ry='8' fill='none' stroke='%23d7c778' opacity='0.7'/></svg>");
    background-repeat: no-repeat; background-size: cover;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta__content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta__content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn--primary {
    background: white;
    color: #667eea;
}

.cta .btn--secondary {
    background: transparent;
    color: white;
    border-color: white;
}

/* Dark variant aligned with neon theme */
.cta--dark {
    background: #0e0f12;
    color: #eaeaea;
    position: relative;
    overflow: hidden;
}
.cta--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1000px 400px at 20% 20%, rgba(111,86,255,0.18), transparent 60%),
        radial-gradient(800px 300px at 80% 80%, rgba(156,255,46,0.12), transparent 60%),
        linear-gradient(180deg, rgba(12,14,18,0.9) 0%, rgba(15,18,23,0.9) 100%);
    pointer-events: none;
}
.cta--dark .cta__content h2 { color: #f2f4f8; text-shadow: 0 6px 28px rgba(0,0,0,0.6); }
.cta--dark .cta__content p { color: #d0d7e2; opacity: 1; }

/* Buttons tuned to neon accents */
.cta--dark .btn--primary {
    background: linear-gradient(135deg, #9cff2e 0%, #2dd16b 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(45, 209, 107, 0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.cta--dark .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(45, 209, 107, 0.55), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.cta--dark .btn--secondary {
    background: rgba(255,255,255,0.06);
    color: #eaeaea;
    border-color: rgba(255,255,255,0.7);
}
.cta--dark .btn--secondary:hover {
    background: rgba(255,255,255,0.12);
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: white;
}

.benefits .section__title {
    text-align: center;
    margin-bottom: 2rem;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.benefits__card {
    background: var(--surface);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 6px 20px var(--shadow);
    border: 1px solid rgba(0,0,0,0.08);
}

.benefits__header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.benefits__badge {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.benefits__domain {
    color: var(--muted);
    font-weight: 500;
}

.benefits__list {
    list-style: none;
    line-height: 1.6;
}

.benefits__list li {
    position: relative;
    padding-left: 1.6rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.45rem 0 0.45rem 1.6rem;
}

.benefits__list li:last-child { border-bottom: none; }

.benefits__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--primary-start);
    font-weight: 700;
}

.benefits__stat {
    color: var(--primary-start);
    font-weight: 800;
}

@media (max-width: 768px) {
    .benefits { padding: 60px 0; }
    .benefits__grid { grid-template-columns: 1fr; }
}
/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section h3,
.footer__section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer__section ul {
    list-style: none;
}

.footer__section ul li {
    margin-bottom: 0.5rem;
}

.footer__section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__section ul li a:hover {
    color: white;
}

/* Footer contacts list */
.footer__contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer__contacts li {
    margin-bottom: 0.4rem;
}
.footer__contacts a {
    display: inline-block;
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer__contacts a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.footer__section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer__bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

.footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.footer__legal-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer__legal-links a:hover {
    color: #fff;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.75rem 0 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #b6bbc5;
    cursor: pointer;
}

.form-consent input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.form-consent a {
    color: #8a9cff;
}

/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 5000;
    max-width: 920px;
    margin: 0 auto;
}

.cookie-consent__inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(21, 23, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    color: #eaeaea;
    backdrop-filter: blur(10px);
}

.cookie-consent__text {
    flex: 1 1 280px;
}

.cookie-consent__text strong {
    display: block;
    margin-bottom: 0.35rem;
}

.cookie-consent__text p {
    margin: 0;
    color: #b6bbc5;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent__text a {
    color: #8a9cff;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    white-space: nowrap;
}

/* Legal documents */
.legal {
    padding: 100px 0 60px;
    min-height: 70vh;
}

.legal--dark {
    background: #0e0f12;
    color: #d0d7e2;
}

.legal__container {
    max-width: 900px;
}

.legal__title {
    color: #f2f4f8;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0.4rem 0 0.75rem;
}

.legal__meta {
    color: #8a8f98;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.legal__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.legal__nav a {
    display: inline-flex;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b6bbc5;
    text-decoration: none;
    font-size: 0.85rem;
}

.legal__nav a:hover,
.legal__nav a.is-active {
    color: #eaeaea;
    border-color: rgba(138, 156, 255, 0.45);
    background: rgba(138, 156, 255, 0.1);
}

.legal__body h2 {
    color: #f2f4f8;
    font-size: 1.25rem;
    margin: 1.75rem 0 0.75rem;
}

.legal__body p,
.legal__body li {
    line-height: 1.7;
    margin-bottom: 0.65rem;
}

.legal__body ul,
.legal__body ol {
    margin: 0 0 1rem 1.2rem;
}

.legal__body a {
    color: #8a9cff;
}

.legal__table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.92rem;
}

.legal__table th,
.legal__table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.legal__table th {
    background: rgba(255, 255, 255, 0.04);
    color: #eaeaea;
}

.legal__card {
    margin: 1.25rem 0;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #15171c;
}

.legal__card h2 {
    margin-top: 0;
}

.legal__dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.55rem 1rem;
    margin: 0;
}

.legal__dl dt {
    color: #8a8f98;
}

.legal__dl dd {
    margin: 0;
    color: #eaeaea;
    word-break: break-word;
}

.legal__note {
    color: #8a8f98;
    font-size: 0.92rem;
}

@media (max-width: 640px) {
    .legal__dl {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .legal__dl dt {
        margin-top: 0.55rem;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal__content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal__close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.modal__close:hover {
    color: #333;
}

.order__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order__form input,
.order__form textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.order__form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Consultation Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #333;
}

.popup-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.popup-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.popup .form-group {
    margin-bottom: 20px;
}

.popup .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.popup .form-group input,
.popup .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.popup .form-group input:focus,
.popup .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.popup .form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    display: none;
    text-align: center;
    color: #28a745;
    font-weight: 600;
    margin-top: 20px;
}

.error-message {
    display: none;
    text-align: center;
    color: #dc3545;
    font-weight: 600;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .pricing__grid {
        grid-template-columns: 1fr;
    }
    
    .flexible__pricing {
        grid-template-columns: 1fr;
    }
    
    .cases__grid {
        grid-template-columns: 1fr;
    }
    
    .process__steps {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .cta__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav__container {
        padding: 1rem 15px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .btn--large {
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* Before/After Section */
.before-after {
    padding: 80px 0;
    background: white;
}

.section__subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.before-after__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.before-after__item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.before-after__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.badge--before {
    background: #ff6b6b;
    color: white;
}

.badge--after {
    background: #51cf66;
    color: white;
}

.before-after__header h3 {
    color: #2c3e50;
    margin: 0;
}

.before-after__image {
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.before-after__image .placeholder {
    text-align: center;
    color: #999;
}

.before-after__image .placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.before-after__arrow {
    font-size: 3rem;
    color: #667eea;
}

/* Hero with custom background */
.hero--custom-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero--custom-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

.hero--custom-bg .hero__container {
    position: relative;
    z-index: 1;
}

/* === Neon Dark Hero Overrides === */
html[data-theme="dark"] .nav__logo h2 {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .hero {
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

/* === Overview Section Styles === */
.overview { padding: 64px 0; }
.overview__container { max-width: 1100px; margin: 0 auto; }
.overview__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.overview__footer { margin-top: 24px; }
.overview__title { text-align: center; margin-bottom: 12px; }
.overview__desc { color: #666; text-align: center; }

.overview__card {
    background: rgba(20, 18, 30, 0.8);
    border: 1px solid rgba(120, 70, 255, 0.18);
    border-radius: 16px;
    padding: 18px 18px 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    position: relative;
}

.overview__card-title { color: rgba(220,220,230,0.8); font-weight: 600; margin: 4px 8px 8px; }

.overview__chartwrap { background: rgba(255,255,255,0.02); border-radius: 12px; padding: 8px; }
.overview__chart { width: 100%; height: 240px; display: block; }

.overview__card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(1200px 300px at 50% -80%, rgba(120,70,255,0.15), transparent 55%),
                radial-gradient(700px 250px at 10% 120%, rgba(156,255,46,0.08), transparent 60%),
                radial-gradient(700px 250px at 90% 120%, rgba(255,67,230,0.08), transparent 60%);
    z-index: 0;
}

.overview__card > * { position: relative; z-index: 1; }

/* Chart grid and line */
.overview__chart .grid path { stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.overview__chart .line { filter: drop-shadow(0 0 8px rgba(120,70,255,0.3)); }

/* Animate line drawing */
.overview__chart .line {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawLine 2.8s ease-out forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Dark theme tuning */
html[data-theme="dark"] .overview__desc { color: rgba(220,220,230,0.75); }
html[data-theme="dark"] .overview__card { border-color: rgba(120,70,255,0.28); }

@media (max-width: 980px) {
    .overview__grid { grid-template-columns: 1fr; }
}

/* === SEO Animated Orbits (Dark) === */
/* Container sits above background, below content */
html[data-theme="dark"] .hero .hero__container {
    position: relative;
    z-index: 2;
}

html[data-theme="dark"] .seo-orbits {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    transform: translate3d(0,0,0) translate(calc(var(--plxX, 0px) * 0.25), calc(var(--plxY, 0px) * 0.25));
    will-change: transform;
}

html[data-theme="dark"] .seo-shape {
    position: absolute;
    width: var(--size, 120px);
    height: var(--size, 120px);
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.55)) saturate(1.12);
    opacity: 0.96;
    transform: translate3d(0,0,0);
    animation: bobY var(--bobY, 7s) ease-in-out infinite alternate,
               bobX var(--bobX, 9s) ease-in-out infinite alternate;
}

html[data-theme="dark"] .seo-shape__inner {
    width: 100%;
    height: 100%;
    animation: spin var(--spin, 24s) linear infinite;
}

html[data-theme="dark"] .seo-shape svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: brightness(1.06) contrast(1.04) drop-shadow(0 0 10px rgba(120,70,255,0.25));
    animation: shimmer 5.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes bobY {
    0% { transform: translateY(-6px); }
    100% { transform: translateY(6px); }
}

@keyframes bobX {
    0% { transform: translateX(-5px); }
    100% { transform: translateX(5px); }
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1.02) contrast(1.04) drop-shadow(0 0 10px rgba(120,70,255,0.22)); }
    50%      { filter: brightness(1.12) contrast(1.06) drop-shadow(0 0 18px rgba(120,70,255,0.32)); }
}

/* Visibility control for performance and small screens */
@media (max-width: 980px) {
    html[data-theme="dark"] .seo-orbits { display: none; }
}

html[data-theme="dark"] .hero::before,
html[data-theme="dark"] .hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

html[data-theme="dark"] .hero::before {
    left: -120px;
    top: 40px;
    width: 420px;
    height: 420px;
    background:
        radial-gradient(closest-side, rgba(177,255,122,0.18), transparent 70%),
        conic-gradient(from var(--angle1, 20deg), rgba(111,86,255,0.35) 0 60deg, transparent 60deg 120deg, rgba(177,255,122,0.35) 120deg 180deg, transparent 180deg 240deg, rgba(111,86,255,0.35) 240deg 300deg, transparent 300deg 360deg);
    filter: blur(0.8px) saturate(120%);
    opacity: 0.9;
    border-radius: 50%;
    will-change: transform, filter;
    transform: translate(calc(var(--plxX, 0px) * -0.02), calc(var(--plxY, 0px) * 0.02));
    animation: spinLeft 26s linear infinite, floatLeft 8s ease-in-out infinite alternate, glowPulse 7s ease-in-out infinite;
}

html[data-theme="dark"] .hero::after {
    right: -140px;
    bottom: 60px;
    width: 460px;
    height: 460px;
    background:
        radial-gradient(closest-side, rgba(111,86,255,0.18), transparent 70%),
        conic-gradient(from var(--angle2, -10deg), rgba(177,255,122,0.35) 0 50deg, transparent 50deg 110deg, rgba(111,86,255,0.35) 110deg 180deg, transparent 180deg 250deg, rgba(177,255,122,0.35) 250deg 320deg, transparent 320deg 360deg);
    filter: blur(0.8px) saturate(120%);
    opacity: 0.9;
    border-radius: 50%;
    will-change: transform, filter;
    transform: translate(calc(var(--plxX, 0px) * 0.02), calc(var(--plxY, 0px) * -0.02));
    animation: spinRight 22s linear infinite, floatRight 9s ease-in-out infinite alternate, glowPulse 6.5s ease-in-out infinite;
}

html[data-theme="dark"] .hero__title { color: var(--text); text-shadow: 0 6px 28px rgba(0,0,0,0.6); }
html[data-theme="dark"] .highlight {
    background: linear-gradient(135deg, #6bff6b 0%, #b4ff7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="dark"] .hero__chart { display: none; }

/* Animated conic angles (Chrome/Edge/Safari support) */
@property --angle1 { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --angle2 { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

@keyframes spinLeft { to { --angle1: 360deg; } }
@keyframes spinRight { to { --angle2: -360deg; } }

/* Float and glow animations */
@keyframes floatLeft {
  0%   { transform: translate(calc(var(--plxX, 0px) * -0.02), calc(var(--plxY, 0px) * 0.02)) scale(1); }
  100% { transform: translate(calc(var(--plxX, 0px) * -0.03), calc(var(--plxY, 0px) * 0.03)) scale(1.03); }
}
@keyframes floatRight {
  0%   { transform: translate(calc(var(--plxX, 0px) * 0.02), calc(var(--plxY, 0px) * -0.02)) scale(1); }
  100% { transform: translate(calc(var(--plxX, 0px) * 0.03), calc(var(--plxY, 0px) * -0.03)) scale(1.03); }
}
@keyframes glowPulse {
  0%   { filter: blur(0.8px) saturate(120%) brightness(1); }
  50%  { filter: blur(1px)   saturate(140%) brightness(1.12); }
  100% { filter: blur(0.8px) saturate(120%) brightness(1); }
}

/* Defaults for parallax vars */
html[data-theme="dark"] .hero { --plxX: 0px; --plxY: 0px; }

/* Pill and glow buttons */
.btn--primary {
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(138, 92, 255, 0.45), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.btn--primary:hover {
    box-shadow: 0 20px 40px rgba(138, 92, 255, 0.6), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.btn--secondary {
    border-radius: 9999px;
    color: var(--primary-start);
    border-color: var(--primary-start);
    backdrop-filter: saturate(140%) blur(6px);
}

/* Responsive */
@media (max-width: 768px) {
    .before-after__grid {
        grid-template-columns: 1fr;
    }
    
    .before-after__arrow {
        transform: rotate(90deg);
    }
    
    .before-after__image {
        min-height: 300px;
    }
}
/* === Why Section (Dark Neon) === */
.why { padding: 72px 0; }
.why__container { max-width: 1100px; margin: 0 auto; }
.why__title { text-align: center; margin-bottom: 28px; color: var(--text); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why__card { background: var(--surface); border: 1px solid rgba(120,70,255,0.18); border-radius: 16px; padding: 24px; box-shadow: 0 20px 60px var(--shadow); }
.why__subtitle { color: var(--text); font-weight: 700; text-align: center; margin-top: 8px; }
.why__desc { color: var(--muted); text-align: center; margin-top: 10px; }

/* Gauge */
.gauge { display: flex; justify-content: center; align-items: center; }
.gauge__svg { width: 100%; max-width: 480px; height: auto; }
.gauge__arc { filter: drop-shadow(0 0 8px rgba(120,70,255,0.25)); }
.gauge__ticks circle { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.gauge__needle path { transform-origin: 160px 180px; animation: none; }
.why--visible .gauge__needle path { animation: gaugeNeedle 2.8s ease-out both; }

/* Bad services grid */
.why__badgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; justify-items: center; }
.baditem { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.baditem__icon { width: 96px; height: 96px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,0.03); box-shadow: 0 8px 24px var(--shadow) inset; }
.baditem__svg { width: 80px; height: 80px; }
.baditem__label { color: var(--muted); font-weight: 600; }

/* Dark tuning */
html[data-theme="dark"] .why__card { border-color: rgba(120,70,255,0.28); }
html[data-theme="dark"] .baditem__icon { background: rgba(255,255,255,0.04); }

/* Animations */
@keyframes gaugeNeedle {
  0% { transform: rotate(-50deg); }
  60% { transform: rotate(15deg); }
  100% { transform: rotate(0deg); }
}

@media (max-width: 980px) {
  .why__grid { grid-template-columns: 1fr; }
}
.benefits--dark {
    background: #0e0f12;
    color: #eaeaea;
}

.benefits--dark .section__title { color: #eaeaea; }

.benefits__grid--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

@media (max-width: 992px) { .benefits__grid--3 { grid-template-columns: 1fr; } }

.benefits--dark .benefits__card {
    background: #16181d;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

.benefits__card { border-radius: 14px; padding: 16px; border: 1px solid rgba(0,0,0,0.06); }
.benefits__card h3 { color: var(--text); }

/* Card 1: sites list */
.benefits__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.benefits__select,
.benefits__search {
    background: #1f2228;
    color: #eaeaea;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    outline: none;
}
.benefits__select { padding: 8px 12px; }
.benefits__search { display: none; }
.benefits__search::placeholder { color: #8a8f98; }

.benefits__sites { list-style: none; margin: 0; padding: 0; }
.site-item { display: grid; grid-template-columns: 24px 1fr 20px; align-items: center; gap: 10px; padding: 8px 0; }
.site-item .site-rank { color: #8a8f98; }
.site-item .site-domain { color: #eaeaea; font-weight: 600; }
.site-item .dm-right { filter: blur(3px); }
.site-item--primary .dm-right { filter: none; }
.site-item .site-status.ok { width: 12px; height: 12px; background: #34d399; border-radius: 50%; display: inline-block; }
.site-item.placeholder .bar { display: block; height: 12px; background: #262a31; border-radius: 6px; }

.benefits__desc { margin-top: 1rem; color: #b6bbc5; text-align: center; }

/* Card 2: chart */
.benefits__card--chart .chart { background: #1b1f26; border-radius: 12px; padding: 10px; border: 1px solid rgba(255,255,255,0.06); }
.benefits__card--chart svg { width: 100%; height: 140px; }
.benefits__card--chart #benefitsChartLine { stroke-linecap: round; }

/* Card 3: metric */
.metric-box {
    background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}
.metric-label { color: #cbd5e1; margin-bottom: 8px; }
.metric-value { font-size: 2rem; font-weight: 800; color: #a5b4fc; }
.metric-arrow { color: #34d399; font-weight: 900; margin-left: 4px; }
/* CTA Section */

/* CTA Section */
.cta { padding: 80px 0; background: var(--bg); position: relative; overflow: hidden; }
.cta__content { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.cta__content h2 { font-size: 2.4rem; margin-bottom: 0.6rem; color: var(--text); font-weight: 800; letter-spacing: 0.3px; }
.cta__content p { color: var(--muted); margin-bottom: 1.4rem; font-weight: 600; }
.cta__actions { display: flex; justify-content: center; gap: 1rem; }

.cta--dark { background: #0e0f12; color: #eaeaea; }
.cta--dark .cta__content h2 { color: #f1f5f9; text-shadow: 0 8px 30px rgba(0,0,0,0.6); }
.cta--dark .cta__content p { color: #cbd5e1; }
.cta--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 300px at 20% 10%, rgba(111,86,255,0.20), transparent 60%),
              radial-gradient(800px 300px at 80% 90%, rgba(156,255,46,0.18), transparent 60%);
  filter: brightness(1.02) saturate(110%);
  z-index: 1;
}

/* Button contrast inside CTA */
.cta .btn--primary {
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
}
.cta .btn--secondary {
  color: #e5e7eb;
  border-color: rgba(229,231,235,0.8);
  background: rgba(255,255,255,0.06);
}
.cta .btn--secondary:hover { background: rgba(255,255,255,0.12); color: #ffffff; }

@media (max-width: 768px) {
  .cta__actions { flex-direction: column; align-items: center; }
}
/* Audiences Section */
.audiences {
    padding: 80px 0;
}
.audiences--dark {
    background: #0d0f13;
    color: #eaeaea;
}
.audiences--dark .section__title { color: #eaeaea; }
.audiences__subtitle {
    text-align: center;
    color: #a6acb7;
    margin: -10px 0 28px;
}
.audiences__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 16px 20px;
    align-items: stretch;
}
.audcard {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #15171c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.audcard__icon {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(45, 209, 107, 0.12);
    border: 1px solid rgba(45,209,107,0.35);
    border-radius: 10px;
}
.audcard__icon svg { width: 22px; height: 22px; }
.audcard__title { color: #dfe3ea; font-weight: 600; }

.audiences__cta { margin-top: 24px; text-align: center; }
.audiences__notice { margin-top: 8px; color: #8a8f98; font-size: 0.9rem; }

@media (max-width: 1024px) {
    .audiences__grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 640px) {
    .audiences__grid { grid-template-columns: 1fr; }
}
