/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: linear-gradient(135deg, #c2cfd4ba 0%, #c2cfd4ba 50%, #c2cfd4ba 100%);
    padding: 20px 0;
    color: rgb(11, 10, 10);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: rgb(10, 10, 10);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Главный баннер */
.hero {
    background: linear-gradient(135deg, #acc3cd 0%, #acc3cd 50%, #acc3cd 100%);
    color: rgb(7, 7, 7);
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-primary {
    background: white;
    color: #5E4DB2;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Преимущества */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #5E4DB2;
}

/* Каталог тестов */
.tests-catalog {
    padding: 80px 0;
}

.tests-catalog h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: #5E4DB2;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.test-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.test-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}


.test-icon.purple { background: #78909C; }
.test-icon.indigo { background: #607D8B; }
.test-icon.blue { background: #546E7A; }
.test-icon.red { background: #757575; }
.test-icon.orange { background: #90A4AE; }
.test-icon.teal { background: #B0BEC5; }

.test-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.test-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.test-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.test-price {
    font-size: 32px;
    font-weight: 700;
    color: #5E4DB2;
    margin-bottom: 20px;
}

.btn-secondary {
    display: block;
    background: #5E4DB2;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #7D6BBF;
}

/* О нас */
.about {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.about h2 {
    font-size: 40px;
    margin-bottom: 30px;
    color: #5E4DB2;
}

.about p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #666;
}

/* Контакты */
.contacts {
    padding: 80px 0;
}

.contacts h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: #5E4DB2;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #5E4DB2;
}

.contact-item a {
    color: #666;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #5E4DB2;
}

/* Футер */
footer {
    background: #2c2c2c;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Адаптив */
@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .tests-grid {
        grid-template-columns: 1fr;
    }
}

/* Кнопка бесплатной пробы */
.btn-free-trial {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 15px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    margin-top: 20px;
    transition: background 0.3s, transform 0.3s;
}

.btn-free-trial:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Форма оплаты */
.payment-form-container {
    max-width: 500px;
    margin: 40px auto;
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 20px;
}

.payment-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

/* Кнопка оплаты */
.btn-pay {
    width: 100%;
    background: white;
    color: #7B1FA2;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

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

/* Альтернативные способы */
.alternative-payment {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.3);
    text-align: center;
}

.alternative-payment p {
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.btn-whatsapp, .btn-email {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    transition: background 0.3s;
}

.btn-whatsapp:hover, .btn-email:hover {
    background: rgba(255,255,255,0.3);
}

/* Адаптив */
@media (max-width: 768px) {
    .payment-form-container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Карточки тестов - фиксированная высота */
.test-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Описание растягивается */
.test-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Цена по центру с фиолетовым цветом */
.test-price {
    font-size: 32px;
    font-weight: 700;
    color: #5E4DB2; /* ВЕРНУЛИ ФИОЛЕТОВЫЙ */
    margin-bottom: 20px;
    text-align: center; /* ПО ЦЕНТРУ */
}

/* Кнопка с фиолетовым цветом */
.btn-secondary {
    display: block;
    background: #5E4DB2; /* ВЕРНУЛИ ФИОЛЕТОВЫЙ */
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: auto;
}

.btn-secondary:hover {
    background: #7D6BBF; /* Светлее при наведении */
}

/* Чекбокс для множественного выбора */
.option-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #BDBDBD;
    border-radius: 4px; /* Квадратный для чекбокса */
    flex-shrink: 0;
}

.option.selected .option-checkbox {
    border-color: #546E7A;
    background: #546E7A;
    position: relative;
}

/* Галочка внутри чекбокса */
.option.selected .option-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.option.correct .option-checkbox {
    border-color: #4CAF50;
    background: #4CAF50;
}

.option.wrong .option-checkbox {
    border-color: #F44336;
    background: #F44336;
}

.language-toggle {
    display: flex;
    background: #F5F5F5;
    border-radius: 25px;
    padding: 5px;
}

.lang-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    color: #757575;
    transition: all 0.3s;
}

.lang-btn.active {
    background: linear-gradient(135deg, #546E7A, #78909C);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}