:root {
    --primary-color: #6c5ce7;
    --dark-color: #121212;
    --darker-color: #0a0a0a;
    --light-color: #f8f9fa;
    --gray-color: #2d3436;
    --overlay-dark: rgba(0, 0, 0, 0.65); /* 65% затемнение */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--light-color);
    background-color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Бургер-меню */
.burger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.burger-icon {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s;
}

.burger-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--darker-color);
    padding: 80px 20px 20px;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.burger-nav a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.burger-nav a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.burger-menu.active .burger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-icon span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.burger-menu.active .burger-nav {
    right: 0;
}

/* Секции */
.section-block {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    scroll-snap-align: start;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark); /* 65% затемнение */
    z-index: 1;
}

.section-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
}

.section-logo {
    width: 320px;
    height: 215px;
    margin-bottom: 2rem;
    object-fit: contain;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.advantages {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
}

.advantages p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.advantages i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--darker-color);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: modalopen 0.5s;
    max-height: 90vh;
    overflow-y: auto;
}

.calculator-content {
    max-width: 450px;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--light-color);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--primary-color);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-buttons a:hover {
    background-color: #5649c0;
    transform: translateY(-3px);
}

.contact-buttons i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* Калькулятор */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator-form h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.calc-group {
    margin-bottom: 1rem;
}

.calc-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.slider-container {
    width: 100%;
    margin-bottom: 0.5rem;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--gray-color);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider-value {
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.deposit-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.deposit-btn {
    padding: 0.8rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    background-color: transparent;
    color: var(--light-color);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
    font-size: 0.9rem;
}

.deposit-btn.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.deposit-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.calc-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(108, 92, 231, 0.1);
    border-left: 4px solid var(--primary-color);
    text-align: left;
}

.calc-result h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.calc-result p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.highlight {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Анимации */
@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .section-logo {
        width: 250px;
        height: 168px;
    }
    
    .advantages {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        min-width: 160px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 1.2rem;
    }
    
    .deposit-options {
        flex-direction: column;
    }
    
    .deposit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .section-logo {
        width: 200px;
        height: 134px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
    
    .calculator-form h3 {
        font-size: 1.1rem;
    }
}