/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

/* Общие стили */
* {
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', 'Roboto', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }
}

/* Шапка сайта */
.navbar {
    position: fixed;
    width: 100vw;
    padding-left: 1rem;
    padding-right: 1rem;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 2px solid rgba(230, 57, 70, 0.3);
}

.logo {
    width: 4rem;
    height: auto;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #E63946;
}

.logo_name {
    display: inline-block;
    margin-bottom: 0.1rem;
}

.logo_name a {
    text-decoration: none;
    color: #E63946;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu_parts li {
    padding-right: 3rem;
}

.menu_item {
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.menu_item:hover {
    color: #E63946;
}

.menu_item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E63946;
    transition: width 0.3s ease;
}

.menu_item:hover::after {
    width: 100%;
}

.menu_item:focus {
    outline: none;
    color: #E63946;
}

@media (max-width: 768px) {
    .menu {
        margin-right: 0;
    }

    .logo_name a {
        font-size: 1rem;
        font-weight: bold;
    }

    .menu_parts li {
        padding-right: 0;
    }
}

/* Содержимое главной страницы */
.container_index {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 5rem;
}

/* Баннер - НОВОГОДНИЙ СТИЛЬНЫЙ ДИЗАЙН */
.banner_wrapper {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(15, 52, 96, 0.2) 100%);
    border-radius: 25px;
    margin: 30px 3%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(230, 57, 70, 0.3);
    padding: 40px 0;
    border: 2px solid rgba(230, 57, 70, 0.3);
}

/* Новогодний декоративный элемент - гирлянда */
.banner_wrapper:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, 
        #E63946 0%, #FFD700 10%, #E63946 20%, 
        #00FF00 30%, #E63946 40%, #FFD700 50%,
        #E63946 60%, #00FF00 70%, #E63946 80%,
        #FFD700 90%, #E63946 100%);
    animation: christmasLights 3s linear infinite;
}

@keyframes christmasLights {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Снежинки в фоне */
.banner_wrapper:after {
    content: "❄ ❄ ❄ ❄ ❄ ❄ ❄";
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    animation: snowfall 8s linear infinite;
}

@keyframes snowfall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: translateY(300px) rotate(360deg); opacity: 0; }
}

.banner_container {
    display: flex;
    padding: 2rem 5%;
    position: relative;
    z-index: 1;
    align-items: center;
}

.banner_text {
    margin-top: 2rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s, transform 0.8s;
    position: relative;
    z-index: 2;
}

.banner_text h1 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 4px 15px rgba(230, 57, 70, 0.5);
    line-height: 1.2;
}

.banner_text h1 .highlight {
    color: #E63946;
    text-transform: uppercase;
    position: relative;
}

.banner_text h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #E63946, #FFD700);
}

.info {
    font-size: 1.2rem;
    color: #e0e0e0;
    line-height: 1.7;
    font-weight: 400;
    margin-top: 25px;
    margin-bottom: 30px;
}

/* Акционный блок со старой и новой ценой */
.price-block {
    background: rgba(230, 57, 70, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 20px 0 30px 0;
    border: 2px solid rgba(230, 57, 70, 0.4);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.2);
}

.old-price {
    font-size: 1.3rem;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: 5px;
}

.new-price {
    font-size: 2.5rem;
    color: #E63946;
    font-weight: 800;
    display: block;
    text-shadow: 0 2px 10px rgba(230, 57, 70, 0.5);
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #E63946, #FF6B6B);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner_img {
    margin-top: 2rem;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s, transform 0.9s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner_img img {
    max-height: 450px;
    width: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transition: all 0.5s ease;
    transform-origin: center center;
    border: 3px solid rgba(230, 57, 70, 0.3);
}

.banner_img img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 70px rgba(230, 57, 70, 0.5);
}

.banner_wrapper.show .banner_text,
.banner_wrapper.show .banner_img {
    opacity: 1;
    transform: translateX(0);
}

/* Счетчик прошедших тест */
.test-counter {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    margin: 20px auto;
    max-width: fit-content;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(230, 57, 70, 0.3);
}

.test-counter:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.4);
    background: rgba(230, 57, 70, 0.15);
}

/* ГЛАВНАЯ КНОПКА - МАКСИМАЛЬНО ВЫДЕЛЯЮЩАЯСЯ */
.button_test {
    margin: 0 auto;
    padding: 20px 60px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #E63946 0%, #FF6B6B 100%);
    border-radius: 50px;
    border: none;
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.6);
    transition: all 0.4s ease;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Блик на кнопке */
.button_test::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.button_test:hover::before {
    left: 100%;
}

.button_test:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #E63946 100%);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px rgba(230, 57, 70, 0.8);
    color: white;
}

.button_test:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.6);
}

/* Пульсирующая анимация для кнопки */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(230, 57, 70, 0.6);
    }
    50% {
        box-shadow: 0 15px 60px rgba(230, 57, 70, 0.9),
                    0 0 30px rgba(230, 57, 70, 0.5);
    }
}

.pulse-button {
    animation: pulse-glow 2s infinite;
}

/* Счетчик людей */
.counter-icon {
    margin-right: 1rem;
    color: #E63946;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-icon i {
    font-size: 2rem;
}

.counter-text {
    display: flex;
    flex-direction: column;
}

.counter-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #E63946;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.counter-label {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
}

/* Блок с преимуществами */
#reasons {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.3) 0%, rgba(26, 26, 46, 0.5) 100%);
    position: relative;
}

#reasons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(230,57,70,0.1)"/></svg>');
    opacity: 0.3;
}

.reasons_div {
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.reasons_div h2 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 4rem;
    position: relative;
    font-size: 2.2rem;
    text-align: center;
    text-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.reasons_div h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, transparent, #E63946, transparent);
}

.reasons_ul {
    list-style-type: none;
    padding-left: 0;
}

.reasons_li {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 2px solid rgba(230, 57, 70, 0.2);
}

.reasons_li:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(230, 57, 70, 0.3);
    background: rgba(230, 57, 70, 0.1);
    border-color: rgba(230, 57, 70, 0.5);
}

.reasons_li i {
    color: #E63946;
    font-size: 2rem;
    margin-right: 1rem;
    vertical-align: middle;
}

.reasons_li.visible {
    opacity: 1;
    transform: translateY(0);
}

.info_reasons {
    background: rgba(230, 57, 70, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    padding: 3rem;
    margin-top: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
    border: 2px solid rgba(230, 57, 70, 0.3);
}

.info_reasons p {
    color: #ffffff;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.info_reasons.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для отзывов */
#reviews {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(15, 52, 96, 0.3) 100%);
}

#reviews h2 {
    color: #ffffff;
    font-weight: 800;
    position: relative;
    margin-bottom: 4rem;
    text-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2.2rem;
}

#reviews h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, transparent, #E63946, transparent);
}

#reviews .card {
    transition: all 0.4s ease;
    border-radius: 20px;
    border: 2px solid rgba(230, 57, 70, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

#reviews .card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(230, 57, 70, 0.4) !important;
    border-color: rgba(230, 57, 70, 0.5);
}

#reviews .review-avatar img {
    object-fit: cover;
    border: 3px solid #E63946;
    width: 70px;
    height: 70px;
}

#reviews .text-warning {
    color: #FFD700 !important;
}

#reviews .card-body {
    color: #ffffff;
}

/* О видеорегистраторе */
.test-info {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.3) 0%, rgba(26, 26, 46, 0.5) 100%);
}

.test-info h2 {
    color: #ffffff;
    font-weight: 800;
    position: relative;
    margin-bottom: 4rem;
    font-size: 2.2rem;
    text-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.test-info h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, transparent, #E63946, transparent);
}

.banner_2 {
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(230, 57, 70, 0.3);
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s, transform 0.9s;
    max-width: 100%;
    height: auto;
    border: 3px solid rgba(230, 57, 70, 0.3);
}

.banner_2.visible_2 {
    opacity: 1;
    transform: translateX(0);
}

.banner_2div {
    position: relative;
    display: flex;
    justify-content: center;
}

.banner_2text {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s, transform 0.9s;
}

.banner_2text.visible {
    opacity: 1;
    transform: translateX(0);
}

.banner_2text p {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(230, 57, 70, 0.2);
    color: #ffffff;
}

.banner_2text p:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.3);
    border-color: rgba(230, 57, 70, 0.5);
    background: rgba(230, 57, 70, 0.1);
}

.banner_2text i {
    font-size: 1.8rem;
    color: #E63946;
    background: rgba(230, 57, 70, 0.15);
    border-radius: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* Бейдж "новогодняя акция" */
.badge-new {
    display: inline-block;
    background: linear-gradient(135deg, #E63946, #FF6B6B);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    margin-left: 1rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Финальный призыв к действию */
.final-cta {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 4rem 2rem;
    margin: 4rem 5%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(230, 57, 70, 0.3);
    border: 2px solid rgba(230, 57, 70, 0.3);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '🎄 🎁 ⭐ 🎄 🎁 ⭐';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 2rem;
    opacity: 0.2;
}

.final-cta h3 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-shadow: 0 4px 15px rgba(230, 57, 70, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.final-cta p {
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Увеличенная кнопка в финальном призыве */
.final-cta .button_test {
    font-size: 1.4rem;
    padding: 22px 70px;
    margin-top: 15px;
    box-shadow: 0 15px 50px rgba(230, 57, 70, 0.7);
}

/* Контакты */
#contacts {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(15, 52, 96, 0.3) 100%);
    padding: 4rem 0;
}

#contacts h2 {
    color: #ffffff;
    font-weight: 800;
    position: relative;
    margin-bottom: 4rem;
    text-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2.2rem;
}

#contacts h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, transparent, #E63946, transparent);
}

#contacts .card {
    transition: all 0.4s ease;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(230, 57, 70, 0.2);
}

#contacts .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(230, 57, 70, 0.4) !important;
    border-color: rgba(230, 57, 70, 0.5);
}

#contacts .card-body {
    color: #ffffff;
}

#contacts .card-body i {
    color: #E63946;
}

#contacts .card-body a {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

#contacts .card-body a:hover {
    color: #E63946 !important;
}

/* Классы анимаций */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    #reviews .card,
    #contacts .card {
        margin-bottom: 1.5rem;
    }
    
    .banner_2div,
    .banner_2text {
        width: 100%;
        padding: 0 15px;
        margin-bottom: 2rem;
    }

    .banner_2 {
        max-width: 90%;
        margin: 0 auto 2rem;
        display: block;
    }

    .banner_2text p {
        font-size: 1rem;
    }
    
    .banner_2text p span {
        font-size: 0.9rem;
    }

    .final-cta {
        margin: 2rem 15px;
        padding: 2.5rem 1.5rem;
    }

    .final-cta h3 {
        font-size: 1.5rem;
    }
    
    .reasons_li {
        font-size: 0.95rem;
    }
    
    .test-counter {
        padding: 0.8rem 1.2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .counter-number {
        font-size: 1.3rem;
    }
    
    .counter-label {
        font-size: 0.85rem;
    }
    
    .desktop-only {
        display: none;
    }
    
    .banner_text {
        width: 100%;
        margin-top: 1rem !important;
    }
    
    .banner_text h1 {
        font-size: 2rem;
    }
    
    .new-price {
        font-size: 2rem;
    }
    
    .button_test {
        padding: 15px 40px;
        font-size: 1.1rem;
    }
    
    .banner_wrapper {
        margin: 20px 3%;
        padding: 20px 0;
    }
}

@media screen and (max-width: 963px) {
    .banner_container {
        flex-direction: column;
        align-items: center;
    }

    .banner_text {
        order: 1;
        width: 100%;
        text-align: center;
        margin-top: 2rem;
    }

    .banner_text > button {
        display: block;
        margin: 2rem auto;
    }

    .banner_img {
        order: 2;
        width: 100%;
        text-align: center;
        margin: 2rem 0;
    }

    .banner_img > img {
        max-height: 350px;
        width: auto;
    }
}

@media screen and (max-width: 576px) {
    .banner_img > img {
        max-height: 280px;
    }
    
    .reasons_div h2,
    #reviews h2,
    .test-info h2,
    #contacts h2 {
        font-size: 1.6rem;
    }
}