/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.btn--yellow {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn--yellow:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-primary {
    background: #007bff;
    color: white;
}

/* Хедер */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.header-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logo:hover img {
    transform: scale(1.05);
}

.header-info {
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-info-title {
    font-weight: 600;
}

.header-info__phone a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-info__phone a:hover {
    color: #FFA500;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-btn {
    padding: 10px 20px;
    font-size: 13px;
    white-space: nowrap;
}

.open-account-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.lk-open {
    background: transparent;
    color: #fff;
    border: 2px solid #FFD700;
}

.lk-open:hover {
    background: #FFD700;
    color: #000;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.navbar-toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    background: #1a1a2e;
    padding: 20px;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu.show {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.mobile-menu-item img {
    width: 16px;
    height: 16px;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #FFD700;
}

/* Основное меню */
.top-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 70px;
    z-index: 999;
}

.top-menu__block {
    position: relative;
}

.top-menu__block-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.top-menu__block-link:hover {
    color: #FFA500;
    background: rgba(255, 215, 0, 0.1);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 15px 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFA500;
}

/* Главный блок */
.main-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.inner-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-intro__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.main-intro__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.main-intro__cta-button {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    min-width: 160px;
}

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

.advantages h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
    font-weight: 700;
}

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

.advantages__item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.advantages__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #FFD700;
}

.advantages__item.active .advantages__item-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

.advantages__item-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.advantages__item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
}

.advantages__item-description {
    color: #666;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Контакты */
.contacts {
    padding: 60px 0;
    text-align: center;
}

.contacts h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
}

.phone-container {
    max-width: 400px;
    margin: 0 auto;
}

.phone-section {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.phone-section b,
.phone-section a {
    font-size: 1.5rem;
    color: #000;
    text-decoration: none;
    font-weight: 700;
}

.note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
    display: block;
}

/* Новости */
.news-panel {
    padding: 80px 0;
    background: #f8f9fa;
}

.news-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.news-panel h2 {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
}

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

.card-news {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.card-news-container {
    padding: 25px;
}

.card-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-news-date {
    font-size: 0.9rem;
    color: #666;
}

.tag {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #495057;
}

.card-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
}

.card-news-item-theme {
    display: inline-block;
    background: #FFD700;
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Информация для клиентов */
.section-info {
    padding: 60px 0;
}

.section-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.info-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.info-list li {
    margin-bottom: 15px;
}

.info-list a {
    display: block;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.info-list a:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    transform: translateX(10px);
}

/* Футер */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.footer-content-top {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__contacts {
    text-align: center;
}

.footer__contacts a {
    color: #FFD700;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-content-center {
    padding: 50px 0;
}

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

.footer-menu-item {
    display: flex;
    flex-direction: column;
}

.footer-item-text {
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD700;
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-menu-item ul {
    list-style: none;
}

.footer-menu-item ul li {
    margin-bottom: 8px;
}

.footer-menu-item ul a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu-item ul a:hover {
    color: #FFD700;
}

.footer-content-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content__copyright {
    color: #ccc;
    font-size: 0.9rem;
}

.smm-links-bar {
    display: flex;
    gap: 15px;
}

.smm-link {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.smm-link:hover {
    background: #FFD700;
    transform: translateY(-3px);
}

.smm-link__tg::before { content: '📱'; }
.smm-link__yt::before { content: '📺'; }
.smm-link__vk::before { content: '👥'; }

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    max-width: 500px;
    width: 90%;
    margin: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.modal-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }
    
    .header-info {
        display: none;
    }
    
    .header-buttons {
        order: -1;
        gap: 8px;
    }
    
    .header-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .top-menu {
        display: none;
    }
    
    .main-intro {
        padding: 80px 0;
    }
    
    .main-intro__title {
        font-size: 2rem;
    }
    
    .main-intro__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .main-intro__cta-button {
        width: 80%;
        max-width: 300px;
    }
    
    .advantages__wrap {
        grid-template-columns: 1fr;
    }
    
    .news-grid-row {
        grid-template-columns: 1fr;
    }
    
    .news-panel__header {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .advantages__item,
    .card-news {
        margin: 0 -10px;
    }
    
    .modal-dialog {
        width: 95%;
        margin: 10px;
    }
    
    .modal-body,
    .modal-header,
    .modal-footer {
        padding: 20px;
    }
}

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

.advantages__item,
.card-news,
.info-list li {
    animation: fadeInUp 0.6s ease forwards;
}

.advantages__item:nth-child(2) { animation-delay: 0.1s; }
.advantages__item:nth-child(3) { animation-delay: 0.2s; }
.advantages__item:nth-child(4) { animation-delay: 0.3s; }
.advantages__item:nth-child(5) { animation-delay: 0.4s; }

/* Прелоадер для изображений */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Скрытие элементов для улучшения производительности */
.advantages__item-description {
    will-change: max-height, opacity;
}

.btn,
.advantages__item,
.card-news {
    will-change: transform;
}