/* css/style.css */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c8;
    --text: #0f172a;
    --text-light: #64748b;
    --bg-light: #f0f9ff;
    --white: #ffffff;
    --radius: 20px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ============================================= */
/* НАВИГАЦИЯ */
/* ============================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid #e0f2fe;
    transition: transform 0.3s ease;
}
.navbar.hidden {
    transform: translateY(-100%);
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.4px;
}
/* Десктопное меню */
.nav-menu {
    display: none; /* по умолчанию скрыто */
    align-items: center;
    gap: 32px;
}
.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.25s ease, transform 0.2s ease;
    position: relative;
}
.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
    transform: translateY(-2px);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2.5px;
    bottom: -4px;
    left: 50%;
    background: var(--primary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 70%;
}
/* Кнопка запуска */
.btn-primary,
.btn-launch {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover,
.btn-launch:hover {
    background: var(--primary-dark);
    transform: scale(1.06) translateY(-3px);
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.25);
}
.btn-launch {
    padding: 12px 24px;
    font-size: 15px;
}
/* Гамбургер */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}
.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.35s ease;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Кнопка закрытия мобильного меню */
.mobile-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    border-radius: 50%;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1101;
}

.mobile-close-btn:hover,
.mobile-close-btn:focus-visible {    
    color: var(--primary);
    transform: rotate(90deg);
}

.mobile-close-btn:active {           
    color: var(--primary);
    transform: scale(0.92);
}

.mobile-close-btn svg {
    width: 32px;
    height: 32px;
}

.mobile-close-btn:focus {
    outline: none;
}

@media (min-width: 769px) {
    .mobile-close-btn {
        display: none;
    }
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: white;
    padding: 100px 24px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.mobile-menu.active {
    transform: translateY(0);
}
.mobile-link {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    text-align: center;
    padding: 12px 0;
    transition: color 0.25s;
}
.mobile-link:hover,
.mobile-link:focus {
    color: var(--primary);
}
/* ============================================= */
/* АДАПТИВНОСТЬ */
/* ============================================= */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }
    .btn-launch {
        display: inline-flex !important;
    }
    .hamburger,
    .mobile-menu {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .nav-menu,
    .btn-launch {
        display: none !important;
    }
    .hamburger {
        display: flex !important;
    }
    .nav-content {
        justify-content: space-between;
    }
    .logo {
        font-size: 26px;
    }
}
@media (max-width: 380px) {
    .logo {
        font-size: 24px;
    }
}
/* UP BUTTON */
/* Кнопка наверх — только мобильная */
#scroll-to-top {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}
#scroll-to-top.visible {
    display: flex;
    opacity: 1;
    transform: scale(1);
}
#scroll-to-top:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}
/* На десктопе кнопка не нужна */
@media (min-width: 769px) {
    #scroll-to-top {
        display: none !important;
    }
}
/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        #e0f2fe 0%,
        #bae6fd 30%,
        #7dd3fc 55%,
        #67e8f9 75%,
        #38bdf8 100%
    );
    color: var(--text);
    padding-top: 76px;
}
.hero-content {
    max-width: 720px;
}
.hero-title {
    font-size: clamp(42px, 8.5vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 48px;
    opacity: 0.95;
}
.btn-hero {
    font-size: 21px;
    padding: 22px 52px;
    box-shadow: 0 20px 35px -10px rgb(14 165 233 / 0.4);
}
.hero-trust {
    margin-top: 64px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.trust-item {
    background: rgba(255,255,255,0.92);
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
/* SECTION */
.section {
    padding: 120px 0;
}
.bg-light {
    background: var(--bg-light);
}
.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 64px;
}
/* CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}
.card {
    background: white;
    border-radius: var(--radius);
    padding: 52px 36px;
    box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.08);
    text-align: center;
    transition: transform 0.4s, box-shadow 0.4s;
}
.card:hover {
    transform: translateY(-16px);
    box-shadow: 0 25px 40px -15px rgb(14 165 233 / 0.18);
}
.card-icon {
    font-size: 68px;
    margin-bottom: 28px;
    display: block;
    line-height: 1;
}
.card-title {
    font-size: 26px;
    margin-bottom: 16px;
    font-weight: 700;
}
.card-text {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.55;
}
/* SCHEME */
.scheme {
    background: white;
    border-radius: var(--radius);
    padding: 52px;
    box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.08);
}
.scheme-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 48px;
    font-weight: 700;
}
.steps {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.step {
    flex: 1;
    min-width: 240px;
    text-align: center;
}
.step-number {
    width: 68px;
    height: 68px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 24px;
}
/* ADVANTAGES */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}
.advantage {
    text-align: center;
    padding: 32px 16px;
}
.adv-icon {
    font-size: 62px;
    margin-bottom: 24px;
    color: var(--primary);
}
/* SUBSCRIBE */
.subscribe-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 100%);
}
.subscribe-card {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    padding: 68px 52px;
    border-radius: 28px;
    box-shadow: 0 25px 60px -15px rgb(14 165 233 / 0.22);
    text-align: center;
}
.subscribe-title {
    font-size: 36px;
    margin-bottom: 12px;
}
.subscribe-subtitle {
    font-size: 19px;
    color: var(--text-light);
    margin-bottom: 48px;
}
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 460px;
    margin: 0 auto;
}
.subscribe-form input {
    padding: 18px 24px;
    border: 2px solid #bae6fd;
    border-radius: 9999px;
    font-size: 17px;
    outline: none;
}
.subscribe-form input:focus {
    border-color: var(--primary);
}
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    margin: 8px 0 12px;
}
.consent-label input {
    margin-top: 3px;
}
.subscribe-message {
    margin-top: 20px;
    padding: 16px 24px;
    border-radius: 9999px;
    font-weight: 500;
    display: none;
}
.subscribe-message.success {
    background: #dcfce7;
    color: #166534;
    display: block;
}
.subscribe-message.error {
    background: #fee2e2;
    color: #b91c1c;
    display: block;
}
.subscribe-note {
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-light);
}
/* FOOTER */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 80px 0 40px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}
.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}
.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}
.footer-link:hover {
    color: white;
}
.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 32px;
    text-align: center;
    font-size: 14px;
}
/* MOBILE FIXES */
@media (max-width: 768px) {
    .navbar {
        transition: transform 0.2s ease;
    }
    .cards-grid,
    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .card {
        padding: 44px 28px;
    }
    .card-icon {
        font-size: 62px;
    }
    .hero {
        min-height: 100vh;
        background: linear-gradient(
            135deg,
            #e0f2fe 0%,
            #bae6fd 40%,
            #7dd3fc 60%,
            #67e8f9 80%,
            #38bdf8 100%
        );
    }
    .hero-content {
        margin-top: 10px;
    }
    .section {
        padding: 80px 0;
    }
    .section-title {
        font-size: 34px;
    }
    .subscribe-card {
        padding: 52px 28px;
    }
    .subscribe-form {
        gap: 14px;
    }
}