/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

/* Рекламные баннеры над меню */
.ad-banners {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.ad-banner {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: 468px;
    width: 100%;
}

.ad-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ad-banner img {
    width: 100%;
    height: 60px;
    display: block;
    object-fit: cover;
}

/* Меню с бургером */
.menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

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

.menu-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.burger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.burger-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-line:nth-child(1) { top: 0; }
.burger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-line:nth-child(3) { bottom: 0; }

.burger.active .burger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.menu-nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-nav.active {
    display: flex;
}

.menu-item {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-align: center;
}

.menu-item:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
}

.menu-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Сетка баннеров - максимум 2 колонки */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.banner-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.banner-image-container {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.banner-item:hover .banner-image {
    transform: scale(1.03);
}

.banner-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
    text-align: center;
}

.banner-date {
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 900px) {
    .banners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .banner-item {
        padding: 20px;
    }

    .ad-banners {
        flex-direction: column;
        align-items: center;
    }

    .ad-banner {
        max-width: 468px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .menu {
        padding: 15px 20px;
    }
    
    .menu-title {
        font-size: 20px;
    }
    
    .burger {
        width: 25px;
        height: 18px;
    }
    
    .menu-item {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .banner-item {
        padding: 15px;
    }
}

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

.banner-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Задержки для анимации */
.banner-item:nth-child(1) { animation-delay: 0.1s; }
.banner-item:nth-child(2) { animation-delay: 0.2s; }
.banner-item:nth-child(3) { animation-delay: 0.3s; }
.banner-item:nth-child(4) { animation-delay: 0.4s; }
.banner-item:nth-child(5) { animation-delay: 0.5s; }
.banner-item:nth-child(6) { animation-delay: 0.6s; }
.banner-item:nth-child(7) { animation-delay: 0.7s; }
.banner-item:nth-child(8) { animation-delay: 0.8s; }
.banner-item:nth-child(9) { animation-delay: 0.9s; }
.banner-item:nth-child(10) { animation-delay: 1.0s; }

/* Добавляем в конец styles.css */

/* CTA баннер */
.cta-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.cta-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cta-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cta-close:hover {
    background: #f5f5f5;
    color: #333;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Оверлей для CTA */
.cta-banner::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-banner.show::before {
    opacity: 1;
}

/* Адаптивность для CTA */
@media (max-width: 768px) {
    .cta-banner {
        padding: 20px;
    }
    
    .cta-content h3 {
        font-size: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Эффект при клике на баннер */
.banner-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.banner-item:active {
    transform: scale(0.98);
}
/* Добавляем в конец styles.css */

/* Надпись до клика */
.cta-text {
    text-align: center;
  /*   margin: 20px 0 30px 0;*/
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.cta-text p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text.hidden {
    opacity: 0;
    transform: translateY(-20px);
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Кнопка "Добавить баннер" */
.add-banner-btn-container {
    text-align: center;
    margin: 20px 0 30px 0;
    opacity: 0;
    transform: translateY(-20px);
    height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.add-banner-btn-container.show {
    opacity: 1;
    transform: translateY(0);
    height: auto;
}

.add-banner-btn {
    background: white;
    color: #333;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #667eea;
    transition: all 0.3s ease;
    display: inline-block;
}

.add-banner-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Область клика баннера */
.banner-click-area {
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-click-area:hover {
    transform: translateY(-3px);
}

.banner-click-area:active {
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .cta-text p {
        font-size: 14px;
    }
    
    .add-banner-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cta-text {
        margin: 15px 0 20px 0;
        padding: 12px;
    }
    
    .cta-text p {
        font-size: 13px;
    }
    
    .add-banner-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ad-banners,
    .ad-banners div,
    .ad-banners a,
    .ad-banners img {
      width: 100% !important;
      max-width: 100% !important;
      height: auto !important;
      display: block;
      box-sizing: border-box;
    }
    #slot_369711 {
      width: 100% !important;
      height: auto !important;
      overflow: hidden;
    }
    #slot_369711 > div {
      width: 100% !important;
      height: auto !important;
    }
  }
  