* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0b1220;
    --bg-soft: #111a2b;
    --surface: rgba(255, 255, 255, 0.98);
    --surface-soft: #f8fafc;
    --text: #162033;
    --text-light: #667085;
    --white: #ffffff;
    --primary: #ff7a00;
    --primary-hover: #e66e00;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.10);
    --radius: 20px;
    --radius-sm: 16px;
    --container: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 18, 32, 0.78);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-row {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

.header-lk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.18);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.header-lk-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 122, 0, 0.22);
}

.header-phone {
    color: var(--white);
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    opacity: 0.94;
    transition: opacity 0.25s ease;
}

.header-phone:hover {
    opacity: 1;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 122, 0, 0.14), transparent 28%),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.06), transparent 30%),
        linear-gradient(135deg, rgba(11, 18, 32, 0.98), rgba(17, 26, 43, 0.92));
    color: var(--white);
    padding: 96px 0 76px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 78%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 122, 0, 0.10), transparent 24%),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04), transparent 30%);
    animation: heroGlow 10s ease-in-out infinite;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7deea;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: 56px;
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    max-width: 760px;
}

.hero-text {
    font-size: 18px;
    color: #d7deea;
    max-width: 620px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-points span {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 10px 14px;
    color: #ebf1fa;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.hero-card {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-strong);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    animation: floatSoft 6s ease-in-out infinite;
    will-change: transform;
}

.hero-card:hover {
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
}

.hero-card h2 {
    font-size: 27px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.hero-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section {
    padding: 96px 0;
}

.section-dark {
    background: var(--bg);
    color: var(--white);
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 42px;
}

.section-head.left {
    text-align: left;
    margin-left: 0;
}

.section-head h1,
.section-head h2 {
    font-size: 42px;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
}

.section-head p {
    color: var(--text-light);
    font-size: 18px;
}

.section-head.light p {
    color: #c7d0de;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -52px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px 22px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    will-change: transform;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(255, 122, 0, 0.16);
}

.stat-card strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.stat-card span {
    color: var(--text-light);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(255, 122, 0, 0.16);
}

.card h3 {
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-light);
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 26px;
    transition: transform 0.32s ease, border-color 0.32s ease, background 0.32s ease;
    will-change: transform;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 0, 0.24);
    background: rgba(255, 255, 255, 0.07);
}

.feature h3 {
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.feature p {
    color: #c7d0de;
}

.cta {
    background: var(--surface-soft);
}

.cta-box {
    background:
        radial-gradient(circle at top right, rgba(255, 122, 0, 0.14), transparent 28%),
        linear-gradient(135deg, #111a2b, #1b2942);
    color: var(--white);
    border-radius: 28px;
    padding: 38px;
    display: grid;
    grid-template-columns: 1fr auto;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cta-box h2 {
    font-size: 36px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.cta-box p {
    color: #d7deea;
}

.contacts-page {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 70vh;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.2fr;
    gap: 24px;
    margin-top: 24px;
}

.contact-card,
.form-card {
    height: 100%;
}

.contact-info h3,
.form-card h3 {
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.contact-info p {
    margin-bottom: 16px;
}

.contact-note {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--text-light);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 14px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: #fcfdff;
    color: var(--text);
}

input::placeholder,
textarea::placeholder {
    color: #98a2b3;
}

input:hover,
textarea:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.14);
}

input:focus,
textarea:focus {
    border-color: rgba(255, 122, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.10);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.18);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 12px 24px rgba(255, 122, 0, 0.22);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.26);
}

.btn-full {
    width: 100%;
}

.site-footer {
    background: var(--bg);
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    padding-bottom: 28px;
}

.footer-logo {
    margin-bottom: 12px;
}

.site-footer p,
.site-footer h4 {
    color: #d7deea;
}

.site-footer h4 {
    margin-bottom: 12px;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0 26px;
    color: #aab4c5;
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.85s ease, transform 0.85s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.cards .card:nth-child(1),
.stats .stat-card:nth-child(1),
.features .feature:nth-child(1) {
    transition-delay: 0.05s;
}

.cards .card:nth-child(2),
.stats .stat-card:nth-child(2),
.features .feature:nth-child(2) {
    transition-delay: 0.1s;
}

.cards .card:nth-child(3),
.stats .stat-card:nth-child(3),
.features .feature:nth-child(3) {
    transition-delay: 0.15s;
}

.cards .card:nth-child(4),
.stats .stat-card:nth-child(4),
.features .feature:nth-child(4) {
    transition-delay: 0.2s;
}

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

@keyframes heroGlow {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@media (max-width: 1100px) {
    .hero h1 {
        font-size: 46px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .header-row {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-grid,
    .contacts-grid,
    .footer-grid,
    .features,
    .cta-box {
        grid-template-columns: 1fr;
    }

    .cta-box {
        align-items: flex-start;
    }

    .hero {
        padding: 76px 0 58px;
    }

    .hero h1,
    .section-head h1,
    .section-head h2 {
        font-size: 36px;
    }
}

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-card {
        padding: 22px;
    }

    .section {
        padding: 72px 0;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .header-lk-btn,
    .header-phone {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .nav {
        gap: 6px;
    }

    .nav a {
        padding: 9px 12px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-text,
    .section-head p {
        font-size: 16px;
    }

    .cta-box {
        padding: 28px;
    }

    .cta-box h2 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}