*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #050816;
    --bg-alt: #070d1e;
    --card-bg: #0b1224;
    --card-bg-alt: #0f1730;
    --accent: #2f8cff;
    --accent-soft: #2f8cff33;
    --text-main: #f9fbff;
    --text-muted: #a0a8c5;
    --border-soft: #1b2440;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --radius-lg: 24px;
    --radius-md: 18px;
    --transition-fast: 0.18s ease-out;
    --container-width: 1120px;
    --snow-color: #fdfdff;
    --snow-glow: rgba(255, 255, 255, 0.7);
    --header-blur: 16px;
    --hero-overlay: radial-gradient(circle at 10% 0%, #25335a 0%, transparent 45%),
        radial-gradient(circle at 90% 0%, #263a6a 0%, transparent 50%),
        linear-gradient(180deg, rgba(5, 8, 22, 0.9), rgba(5, 8, 22, 0.98));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
}

html,
body {
    background: #000;
    color: var(--text-main);
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
}

/* ----- ПАРАЛЛАКС ФОН ----- */

.parallax-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at top, #172342 0, #050816 45%, #02030a 100%);
}

.parallax-layer {
    position: absolute;
    inset: -10%;
    pointer-events: none;
}

.layer-1 {
    background: radial-gradient(circle at 0 0, #273e7a55, transparent 55%);
    opacity: 0.8;
}

.layer-2 {
    background: radial-gradient(circle at 100% 0, #1c7aff55, transparent 50%);
    mix-blend-mode: screen;
    opacity: 0.8;
}

.layer-stars {
    background-image:
        radial-gradient(2px 2px at 20px 40px, #ffffffdd, transparent),
        radial-gradient(1px 1px at 130px 80px, #ffffffaa, transparent),
        radial-gradient(1.5px 1.5px at 80px 160px, #ffffffaa, transparent),
        radial-gradient(1px 1px at 180px 120px, #ffffffaa, transparent);
    background-size: 220px 220px;
    opacity: 0.45;
}

/* ----- СНЕГ ----- */

.snow-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10vh;
    border-radius: 50%;
    background: var(--snow-color);
    box-shadow: 0 0 6px var(--snow-glow);
    opacity: 0.9;
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes snowfall {
    0% {
        transform: translate3d(0, -10vh, 0);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    100% {
        transform: translate3d(0, 110vh, 0);
        opacity: 0;
    }
}

/* ----- БАЗОВЫЕ ----- */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 72px 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: radial-gradient(circle at top, #0a1022, #040714);
}

.section-header {
    text-align: left;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ----- ХЕДЕР ----- */

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(var(--header-blur));
    background: linear-gradient(180deg, rgba(5, 8, 22, 0.92), rgba(5, 8, 22, 0.65));
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ffffff, #d0defa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 700;
    font-size: 16px;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    transition: width var(--transition-fast);
}

.nav a:hover {
    color: var(--text-main);
}

.nav a:hover::after {
    width: 100%;
}

/* ----- HERO ----- */

.hero {
    position: relative;
    padding: 96px 0 64px;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: var(--hero-overlay);
    z-index: -1;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-kicker {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.hero-mini {
    font-size: 13px;
    color: var(--text-muted);
}

/* КНОПКИ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast),
        border-color var(--transition-fast), transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 24px rgba(36, 120, 255, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(36, 120, 255, 0.55);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* HERO CARD */

.hero-card {
    background: radial-gradient(circle at top, #182544, #060a18);
    border-radius: var(--radius-lg);
    padding: 22px 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: auto minmax(0, 1.15fr);
    gap: 18px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: radial-gradient(circle at 30% 10%, #ffffff, #d6e2ff);
    flex-shrink: 0;
}

.hero-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 120% -10%, #2f8cff33, transparent 55%);
    opacity: 0.6;
    z-index: -1;
}

.hero-card-text h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.hero-card-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-card-text ul {
    list-style: none;
    font-size: 13px;
    color: var(--text-main);
}

.hero-card-text li + li {
    margin-top: 2px;
}

/* ----- ПОРТФОЛИО ----- */

.portfolio-group-title {
    margin: 24px 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.bot-card {
    background: linear-gradient(145deg, var(--card-bg), var(--card-bg-alt));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
    isolation: isolate;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
        border-color var(--transition-fast), background var(--transition-fast);
}

.bot-card::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 120% 0, #2f8cff22, transparent 55%);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-fast);
}

.bot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75);
    border-color: #335fff88;
    background: radial-gradient(circle at top, #132041, #050916);
}

.bot-card:hover::after {
    opacity: 1;
}

.bot-tag {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 2;
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(6, 10, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-main);
}

.bot-img {
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    margin: 10px 10px 0;
    background: #050815;
}

.bot-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transform: scale(1.01);
    transition: transform 0.45s ease-out;
}

.bot-card:hover .bot-img img {
    transform: scale(1.06);
}

.bot-body {
    padding: 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.bot-body h4 {
    font-size: 16px;
    font-weight: 600;
}

.bot-body p {
    color: var(--text-muted);
    font-size: 14px;
}

.bot-body ul {
    list-style: none;
    color: var(--text-main);
    font-size: 13px;
}

.bot-body li + li {
    margin-top: 2px;
}

/* ----- СКРИНЫ ----- */

.screens-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.screen-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 10px 10px 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.screen-item img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

.screen-item figcaption {
    font-size: 13px;
    color: var(--text-muted);
}

.screens-note {
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.screens-note a {
    color: var(--accent);
    text-decoration: none;
}

.screens-note a:hover {
    text-decoration: underline;
}

/* ----- ТАРИФЫ ----- */

.prices-grid {
    margin-top: 10px;
}

.price-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.price-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.price-value {
    font-size: 20px;
    font-weight: 600;
}

.price-card ul {
    list-style: none;
    font-size: 13px;
    color: var(--text-main);
}

.price-card li + li {
    margin-top: 2px;
}

.price-note {
    font-size: 13px;
    color: var(--text-muted);
}

/* ----- ШАГИ ----- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.step-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 18px 16px 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.step-item::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 120% 0, #2f8cff22, transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.step-item:hover::after {
    opacity: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
    margin-bottom: 6px;
}

.step-item h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.step-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ----- КОНТАКТ ----- */

.contact-inner {
    display: flex;
    justify-content: center;
}

.contact-text {
    max-width: 520px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px 24px 22px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.contact-text h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.contact-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.contact-mini {
    font-size: 13px;
}

.contact-text .btn {
    margin-top: 6px;
}

/* ----- ФУТЕР ----- */

.footer {
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: radial-gradient(circle at top, #050816, #02030a);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ----- МЕДИА ----- */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        max-width: 420px;
        margin-top: 10px;
    }

    .hero {
        padding-top: 88px;
    }

    .cards-grid,
    .screens-grid,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header-inner {
        gap: 12px;
    }

    .nav {
        gap: 10px;
        font-size: 13px;
    }

    .hero {
        padding-top: 82px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-card {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }

    .cards-grid,
    .screens-grid,
    .steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .section {
        padding: 56px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 8px 0 10px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-card {
        padding: 18px 16px;
    }

    .bot-img {
        margin: 10px 10px 0;
    }

    .contact-text {
        padding: 20px 18px;
    }
}
