* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #191970;
    color: #FFFAF0;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Шапка и навигация */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #FFFAF0;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    background-color: #FFFAF0;
    color: #191970;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Основной контент */
main {
    margin-top: 80px;
}

.section {
    padding: 3rem 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 250, 240, 0.2);
}

.section:last-child {
    border-bottom: none;
}

.container {
    max-width: 900px;
    width: 100%;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 1px;
}

.content {
    font-size: 1.1rem;
}

.content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Кнопки контактов */
.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.contact-btn {
    display: block;
    padding: 1rem;
    background-color: #FFFAF0;
    color: #191970;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Выпадающие списки мессенджеров */
.messengers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.messenger-item {
    background-color: #FFFAF0;
    border-radius: 10px;
    overflow: hidden;
    max-height: 500px;
    transition: all 0.3s ease;
}

.messenger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    background-color: #FFFAF0;
    color: #191970;
    transition: all 0.3s ease;
}

.messenger-header:hover {
    background-color: rgba(255, 250, 240, 0.8);
}

.messenger-header span:first-child {
    font-weight: 600;
    font-size: 1.1rem;
}

.arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.messenger-item.active .arrow {
    transform: rotate(100deg);
}

.messenger-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #FFFAF0;
}

.messenger-item.active .messenger-content {
    max-height: 500px;
}

.messenger-content p {
    padding: 2rem 1.5rem;
    margin: 0;
    font-size: 5rem;
    font-weight: 1000;
    letter-spacing: 0px;
    color: #191970;
}

/* Преимущества и Требования */
.advantages-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.advantages,
.requirements {
    text-align: center;
}

.advantages {
    border-right: 1px solid rgba(255, 250, 240, 0.3);
    padding-right: 1.5rem;
}

.requirements {
    padding-left: 1.5rem;
}

.advantages h3,
.requirements h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.advantages-list {
    list-style: none;
    text-align: left;
}

.advantages-list li {
    padding: 0.8rem 0 0.8rem 2rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.advantages-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FFFAF0;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Калькулятор */
.calculator {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
}

.calculator h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.calc-description {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.calc-group {
    margin-bottom: 2rem;
}

.calc-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-label span {
    font-size: 1rem;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 250, 240, 0.2);
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFAF0;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFAF0;
    cursor: pointer;
    border: none;
}

.calc-button {
    width: 100%;
    padding: 1rem;
    background-color: #FFFAF0;
    color: #191970;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.calc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 250, 240, 0.4);
}

.result {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(255, 250, 240, 0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.result.hidden {
    display: none;
}

.result h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.income-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFFAF0;
}

.work-btn {
    max-width: 600px;
    margin: 0 auto;
}

/* Футер */
footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 250, 240, 0.2);
}

footer p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
    }

    .calculator {
        padding: 1.5rem;
    }

    .income-amount {
        font-size: 2rem;
    }
    
    .advantages-requirements {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .advantages {
        border-right: none;
        border-bottom: 1px solid rgba(255, 250, 240, 0.3);
        padding-right: 0;
        padding-bottom: 2rem;
    }
    
    .requirements {
        padding-left: 0;
    }
}
