/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* CSS переменные - новогодняя тема */
:root {
    --primary: #1a3a5c;       /* Темно-синий (зимний) */
    --primary-dark: #0d2840;
    --accent: #c41e3a;        /* Красный (новогодний) */
    --accent-light: #e63950;
    --gold: #d4af37;          /* Золотой */
    --gold-light: #f4d03f;
    --snow: #f0f5f9;          /* Снежный белый */
    --ice: #e8f4fc;           /* Ледяной */
    --text: #2c3e50;
    --text-light: #5a6c7d;
    --white: #ffffff;
    --shadow: rgba(26, 58, 92, 0.15);
    --shadow-strong: rgba(26, 58, 92, 0.25);
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    background: linear-gradient(180deg, var(--ice) 0%, var(--snow) 50%, var(--white) 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar / Header */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(26, 58, 92, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
}

.logo {
    width: 50px;
    height: auto;
}

.logo_name {
    margin-left: 10px;
}

.logo_name a {
    text-decoration: none;
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.menu_name {
    display: flex;
    align-items: center;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--gold);
}

/* Снежинки */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: snowfall linear infinite;
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; font-size: 1.2rem; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 1s; font-size: 1.8rem; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 8s; animation-delay: 2s; font-size: 1rem; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 0.5s; font-size: 1.5rem; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 11s; animation-delay: 3s; font-size: 1.3rem; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 9s; animation-delay: 1.5s; font-size: 1.7rem; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 2.5s; font-size: 1.1rem; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s; animation-delay: 4s; font-size: 1.4rem; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 15s; animation-delay: 0.8s; font-size: 1.6rem; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 7s; animation-delay: 2s; font-size: 1.2rem; }

@keyframes snowfall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* Контейнер */
.container_index {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 70px;
}

/* Баннер */
.banner_wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    margin: 15px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-strong);
}

.banner_wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
}

/* Декоративные элементы */
.banner_wrapper::after {
    content: "";
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.sale-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
    z-index: 10;
    animation: pulse-badge 2s infinite;
}

.sale-badge .sale-percent {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.banner_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.banner_text {
    flex: 1;
    color: var(--white);
}

.promo-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-label i {
    color: var(--gold);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.banner_text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.banner_text h1 .highlight {
    color: var(--gold);
    display: block;
}

.banner_text .info {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.5;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 1rem;
}

.new-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}

/* Кнопка CTA */
.button_test {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button_test:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(196, 30, 58, 0.5);
}

.pulse-button {
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4), 0 0 0 0 rgba(196, 30, 58, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4), 0 0 0 15px rgba(196, 30, 58, 0); }
}

.banner_img {
    flex: 0 0 40%;
    text-align: center;
}

.banner_img img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease;
}

.banner_img img:hover {
    transform: scale(1.05);
}

.test-counter {
    display: none; /* Скрыт на мобильных для экономии места */
}

/* Полоса преимуществ */
.features-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 15px;
    background: var(--white);
    margin: 0 15px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--ice);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--primary);
    color: var(--white);
}

.feature-item i {
    font-size: 1.2rem;
    color: var(--accent);
}

.feature-item:hover i {
    color: var(--gold);
}

/* Квиз секция */
.quiz-section {
    padding: 40px 15px;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 50px var(--shadow);
    overflow: hidden;
}

.quiz-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.gift-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: var(--accent);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.quiz-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.quiz-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.quiz-progress {
    padding: 20px;
    background: var(--ice);
}

.progress-bar {
    height: 8px;
    background: rgba(26, 58, 92, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.quiz-body {
    padding: 25px 20px;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-step h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    cursor: pointer;
}

.quiz-option input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--ice);
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.option-content i {
    font-size: 1.3rem;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.quiz-option:hover .option-content {
    border-color: var(--accent);
    background: var(--white);
}

.quiz-option input:checked + .option-content {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.quiz-option input:checked + .option-content i {
    color: var(--white);
}

/* Результат квиза */
.quiz-result .result-content {
    text-align: center;
    padding: 20px 0;
}

.confetti-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

.quiz-result h3 {
    margin-bottom: 10px;
}

.discount-value {
    color: var(--accent);
    font-size: 1.5rem;
}

.result-price {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.result-old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.1rem;
}

.result-new-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

/* Секция характеристик */
.specs-section {
    padding: 50px 15px;
}

.specs-section h2,
.ultra-section h2,
.tech-specs-section h2,
.reviews-section h2,
.guarantees-section h2,
.order-section h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
}

.highlight {
    color: var(--accent);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.spec-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-strong);
}

.spec-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--ice) 0%, var(--snow) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: var(--primary);
}

.spec-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.spec-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Ультратонкий корпус */
.ultra-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 50px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    color: var(--white);
}

.ultra-section h2 {
    color: var(--white);
}

.ultra-content {
    text-align: center;
    max-width: 600px;
}

.ultra-content p {
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.6;
}

.ultra-specs {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ultra-spec {
    text-align: center;
}

.spec-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.spec-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.ultra-image img {
    max-width: 100%;
    max-height: 300px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Технические характеристики */
.tech-specs-section {
    padding: 50px 15px;
    background: var(--white);
}

.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--ice);
    border-radius: 10px;
    font-size: 0.9rem;
}

.tech-label {
    color: var(--text-light);
}

.tech-value {
    font-weight: 600;
    color: var(--primary);
}

/* Отзывы */
.reviews-section {
    padding: 50px 15px;
    background: var(--ice);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ice);
}

.review-author strong {
    display: block;
    color: var(--primary);
}

.review-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-stars {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.review-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Гарантии */
.guarantees-section {
    padding: 50px 15px;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.guarantee-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

.guarantee-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.guarantee-item h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.guarantee-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Форма заказа */
.order-section {
    padding: 50px 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.order-section h2 {
    color: var(--white);
}

.order-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.order-info {
    color: var(--white);
}

.order-product {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.order-product img {
    width: 120px;
    height: auto;
}

.order-product h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.order-product p {
    opacity: 0.8;
    margin-bottom: 10px;
}

.order-price {
    display: flex;
    gap: 15px;
    align-items: center;
}

.order-old-price {
    text-decoration: line-through;
    opacity: 0.6;
}

.order-new-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}

.order-includes {
    list-style: none;
}

.order-includes li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-includes i {
    color: var(--gold);
}

.order-form-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.order-form h3 {
    font-size: 1.3rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 10px;
}

.order-form > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.order-form input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--ice);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.order-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 15px;
}

.form-note i {
    color: var(--primary);
}

/* Desktop стили */
@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
    
    .banner_wrapper {
        margin: 20px 30px;
    }
    
    .banner_container {
        padding: 40px;
    }
    
    .banner_text h1 {
        font-size: 2.5rem;
    }
    
    .banner_text h1 .highlight {
        display: inline;
    }
    
    .test-counter {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-top: 25px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        padding: 15px 20px;
        max-width: fit-content;
    }
    
    .counter-icon {
        font-size: 2rem;
        color: var(--gold);
    }
    
    .counter-number {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--gold);
    }
    
    .counter-label {
        font-size: 0.9rem;
        opacity: 0.8;
    }
    
    .features-strip {
        margin: 0 30px;
        gap: 15px;
    }
    
    .quiz-container {
        max-width: 700px;
    }
    
    .quiz-header {
        padding: 40px 30px;
    }
    
    .quiz-header h2 {
        font-size: 1.8rem;
    }
    
    .order-container {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

@media (min-width: 1024px) {
    .banner_wrapper {
        margin: 25px 50px;
    }
    
    .banner_container {
        padding: 50px 60px;
    }
    
    .banner_text h1 {
        font-size: 3rem;
    }
    
    .sale-badge {
        padding: 20px 25px;
    }
    
    .sale-badge .sale-percent {
        font-size: 2rem;
    }
    
    .features-strip {
        margin: 0 50px;
    }
    
    .ultra-section {
        flex-direction: row;
        padding: 60px;
        gap: 50px;
    }
    
    .ultra-content {
        text-align: left;
    }
    
    .ultra-specs {
        justify-content: flex-start;
    }
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
    
    .banner_wrapper {
        margin: 10px;
        border-radius: 15px;
    }
    
    .banner_container {
        padding: 20px 15px;
        flex-direction: column;
    }
    
    .banner_text {
        text-align: center;
    }
    
    .promo-label {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .banner_text h1 {
        font-size: 1.4rem;
    }
    
    .price-block {
        justify-content: center;
        gap: 15px;
    }
    
    .button_test {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .sale-badge {
        top: 10px;
        right: 10px;
        padding: 10px 12px;
    }
    
    .sale-badge .sale-percent {
        font-size: 1.1rem;
    }
    
    .feature-item {
        flex: 1 0 calc(50% - 10px);
        padding: 8px 10px;
        font-size: 0.75rem;
        justify-content: center;
    }
    
    .feature-item span {
        display: none;
    }
    
    .quiz-header {
        padding: 20px 15px;
    }
    
    .quiz-header h2 {
        font-size: 1.2rem;
    }
    
    .quiz-body {
        padding: 20px 15px;
    }
    
    .specs-section h2,
    .ultra-section h2,
    .tech-specs-section h2,
    .reviews-section h2,
    .guarantees-section h2 {
        font-size: 1.3rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantees-grid {
        grid-template-columns: 1fr;
    }
    
    .order-product {
        flex-direction: column;
        text-align: center;
    }
    
    .order-price {
        justify-content: center;
    }
    
    .order-includes {
        text-align: left;
    }
}

/* Скрытие элементов для принта */
@media print {
    .snowflakes {
        display: none;
    }
}

/* CTA секция для теста */
.cta-test-section {
    padding: 50px 15px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.cta-test-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.cta-gift-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--accent);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cta-test-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-test-container p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 25px;
}

.cta-test-container .button_test {
    background: var(--white);
    color: var(--accent);
}

.cta-test-container .button_test:hover {
    background: var(--gold);
    color: var(--primary-dark);
}

/* Комплектация */
.package-section {
    padding: 50px 15px;
    background: var(--ice);
}

.package-section h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.package-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.package-item {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.package-item:hover {
    transform: translateY(-5px);
}

.package-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.package-item span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

/* Финальный CTA */
.final-cta-section {
    padding: 60px 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.final-cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.final-cta-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.final-cta-content h2 i {
    color: var(--gold);
    margin-right: 10px;
}

.final-cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.final-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.final-old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    opacity: 0.6;
}

.final-new-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
}

/* Футер */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 30px 15px;
    text-align: center;
}

.footer-content p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.highlight-light {
    color: var(--gold);
}

/* Sale badge с текстом */
.sale-badge .sale-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 3px;
    text-transform: uppercase;
}
/* ===========================================
   ДОБАВИТЬ В КОНЕЦ ТВОЕГО style.css
   =========================================== */

/* Картинка в секции характеристик (banner_2) */
.banner_2div {
    text-align: center;
}

.banner_2 {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Десктоп */
@media (min-width: 768px) {
    .banner_2 {
        max-height: 350px;
    }
}

/* Мобильные */
@media (max-width: 767px) {
    .banner_2 {
        max-height: 220px;
        max-width: 70%;
        margin: 0 auto 20px;
        display: block;
    }
    
    .banner_2div {
        margin-bottom: 20px;
    }
}
/* ===========================================
   СТИЛИ ДЛЯ ТЕСТА - ДОБАВИТЬ В КОНЕЦ style.css
   =========================================== */

/* Контейнер теста */
.test {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

#test_questions {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 50px var(--shadow);
    padding: 30px;
    margin: 20px auto;
    max-width: 700px;
}

/* Индикатор прогресса */
.progress-indicator {
    margin-bottom: 30px;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.progress-bar-container {
    height: 8px;
    background: var(--ice);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-container .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Контейнер вопроса */
.question-container {
    text-align: center;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Форма с ответами */
.answers {
    margin-top: 20px;
}

.answers_row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Варианты ответов (radio buttons) */
.divForLabel {
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio_label {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: var(--ice);
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio_label:hover {
    border-color: var(--accent);
    background: var(--white);
    transform: translateX(5px);
}

.divForLabel.clicked .radio_label,
.divForLabel:has(input:checked) .radio_label {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* Скрываем стандартные radio */
.radio {
    display: none;
}

.answer_text {
    flex: 1;
    text-align: left;
}

/* Кнопки действий */
.action-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.submit_test {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 250px;
}

.submit_test:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(196, 30, 58, 0.5);
}

.submit_test:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Кнопка "Назад" */
.back_div {
    cursor: pointer;
}

.back_div .radio_label {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.back_div .radio_label:hover {
    background: var(--primary);
    color: var(--white);
    transform: none;
}

.submit_test_2 {
    display: none;
}

/* Слайдер (range input) */
#container {
    width: 100%;
}

.range-container {
    margin: 30px 0;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.range_style {
    width: 100%;
    height: 12px;
    border-radius: 10px;
    background: linear-gradient(to right, var(--primary) 50%, var(--ice) 50%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.range_style::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    border: 3px solid var(--white);
    transition: transform 0.2s ease;
}

.range_style::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range_style::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    border: 3px solid var(--white);
}

.number-input-container {
    text-align: center;
    margin: 20px 0;
}

.range_input {
    width: 120px;
    padding: 15px 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--ice);
    border-radius: 12px;
    color: var(--primary);
    background: var(--white);
    transition: border-color 0.3s ease;
}

.range_input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Сообщения об ошибках */
#error_message {
    background: #fff5f5;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Анимации */
@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4), 0 0 0 0 rgba(196, 30, 58, 0.4); 
    }
    50% { 
        box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4), 0 0 0 15px rgba(196, 30, 58, 0); 
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    #test_questions {
        margin: 10px;
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .question-text {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .radio_label {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
    
    .submit_test {
        width: 100%;
        padding: 14px 30px;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .back_div .radio_label {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .range_input {
        width: 100px;
        padding: 12px 15px;
        font-size: 1.3rem;
    }
    
    .action-buttons {
        margin-top: 25px;
    }
}

/* Номер вопроса */
.q_number {
    color: var(--accent);
    font-weight: 700;
}

/* Контейнер для теста на странице test.php */
#testIQ {
    min-height: 400px;
}
