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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #FFFFFF;
    color: #2B2D31;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

:root {
    --primary-blue: #0091FF;
    --light-blue-copied: #7EC4FC;
    --dark-text: #2B2D31;
    --muted-gray: #8E9297;
    --bg-gray: #F4F5F7;
    --border-gray: #EAEAEA;
    --success-green: #2E7D32;
    --container-padding: 100px;
}

@media (max-width: 768px) {
    :root { --container-padding: 20px; }
}

.main-container {
    width: 100%;
    max-width: calc(1600px + (var(--container-padding) * 2));
    padding: 0 var(--container-padding);
    margin: 0 auto;
}

/* ПЕРВЫЙ ЭКРАН */
.hero-screen {
    height: 100vh;
    height: 100svh; /* Стабильная высота экрана на мобилках с учетом шторки браузера */
    min-height: 560px;
    display: flex;
}

.hero-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.hero-center-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ЗАГОЛОВОК */
.hero-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    font-size: clamp(48px, 6.33vw, 95px); /* Адаптивный размер на ПК */
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-align: center;
    text-transform: uppercase;
    color: var(--dark-text);
    margin-bottom: 80px;
}

.blue-text { color: var(--primary-blue); }
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
}

.copy-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copy-btn {
    width: 100%;
    height: 80px;
    background-color: var(--primary-blue);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-btn:hover { background-color: #007EE6; }

.copy-btn.copied {
    background-color: var(--light-blue-copied);
    color: rgba(255, 255, 255, 0.85);
    cursor: default;
}

.success-text {
    font-size: 14px;
    color: var(--muted-gray);
    margin-top: 16px;
    text-align: center;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.green-text {
    color: var(--success-green);
    font-weight: 600;
}

/* ШАПКА ИНСТРУКЦИИ */
.instruction-anchor {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
}

.anchor-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--muted-gray);
    text-transform: uppercase;
}

.toggle-icon-btn {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted-gray); transition: color 0.2s ease;
}

.toggle-icon-btn:hover { color: var(--dark-text); }
.instruction-anchor .icon-open { display: none; }
.instruction-anchor .icon-close { display: block; }
.instruction-anchor.collapsed .icon-open { display: block; }
.instruction-anchor.collapsed .icon-close { display: none; }

/* СЕКЦИЯ ИНСТРУКЦИИ */
.instruction-section {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
}

.instruction-section.open { grid-template-rows: 1fr; }
.instruction-section > .main-container { overflow: hidden; }
.instruction-list { display: flex; flex-direction: column; }

.step-row {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: start;
    padding-top: 10px;               /* 10px от верхней полосы */
    padding-bottom: 35px;            /* 35px до нижней полосы */
    border-bottom: 1px solid var(--border-gray);
}

.step-row:last-child { border-bottom: none; }

.step-num {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--muted-gray);
}

.step-body {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.001em;
    color: var(--dark-text);
}

.step-body h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.001em;
    color: var(--dark-text);
    margin-bottom: 16px;
}

.app-buttons { display: flex; gap: 12px; }

.app-btn {
    display: inline-flex; justify-content: center; align-items: center;
    background-color: #E6EEF4; color: #0066CC; text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    padding: 10px 24px; border-radius: 6px;
    transition: background-color 0.2s ease;
}

.app-btn:hover { background-color: #D2E3F0; }
.text-link { color: var(--primary-blue); text-decoration: underline; }
.text-link.dark { color: var(--dark-text); }

/* СЕКЦИЯ ПРЕИМУЩЕСТВ С ФОНОВЫМИ PNG-КАРТОЧКАМИ */
.benefits-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    font-size: clamp(32px, 3.2vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--dark-text);
    text-transform: uppercase;
    margin-bottom: 40px;
}

.cards-carousel {
    display: flex; gap: 24px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 15px; scrollbar-width: none;
}

.cards-carousel::-webkit-scrollbar { display: none; }

.benefit-card {
    flex: 0 0 380px;
    height: 420px;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.benefit-card:nth-child(1) { background-image: url('img/shield.png'); }
.benefit-card:nth-child(2) { background-image: url('img/split.png'); }
.benefit-card:nth-child(3) { background-image: url('img/lock.png'); }
.benefit-card:nth-child(4) { background-image: url('img/ai.png'); }
.benefit-card:nth-child(5) { background-image: url('img/price.png'); }

.card-text {
    padding-bottom: 140px;
}

.card-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.card-title.blue { color: var(--primary-blue); }
.card-title.dark { color: var(--dark-text); }

.card-desc {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.001em;
    color: var(--dark-text);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .hero-screen {
        height: 100vh;
        height: 100svh;
        min-height: 560px;
    }
    
    /* ИЗМЕНЕНИЕ: Агрессивное динамическое масштабирование заголовка на мобилках */
    .hero-title {
        font-size: clamp(38px, 11.5vw, 56px);
        margin-bottom: 40px;
    }

    .copy-btn {
        height: 60px;
        font-size: 15px;
    }

    .copy-block {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .step-row {
        grid-template-columns: 1fr;
        padding-top: 10px;
        padding-bottom: 24px;
    }
    .step-num { display: none; }
    
    .app-buttons { flex-wrap: wrap; }
    .app-btn { flex: 1 1 calc(50% - 12px); min-width: 130px; }
    
    .benefits-section { padding: 60px 0; }
    .benefit-card { flex: 0 0 290px; height: 380px; padding: 24px; }
    .card-text { padding-bottom: 110px; }
}