/* ==========================================
   БАЗОВЫЕ СТИЛИ
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    font-size: 2rem;
    color: #1a1a1a;
}

/* ==========================================
   НАВИГАЦИЯ
   ========================================== */

.navigation {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 48px;
    width: auto;
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 0;
    justify-content: center;
}

.navigation a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    padding: 12px 24px;
    border-radius: 100px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navigation a:hover {
    color: #1a1a1a;
    background-color: #f5f5f5;
}

/* Журнал - переливающаяся ссылка */
.nav-journal {
    background: linear-gradient(90deg, #22c55e, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #22c55e);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: none;
    font-weight: 600;
}

.nav-journal:hover {
    animation: gradient-shift 2s ease infinite;
    background-color: transparent;
}

@keyframes gradient-shift {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

/* Кнопка мобильного меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1a1a1a;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

/* ==========================================
   КАРТОЧКИ ОФФЕРОВ
   ========================================== */

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offer-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.offer-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.offer-card:nth-child(1) .offer-accent {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.offer-card:nth-child(2) .offer-accent {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.offer-card:nth-child(3) .offer-accent {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.offer-card:nth-child(4) .offer-accent {
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
}

.offer-card:nth-child(5) .offer-accent {
    background: linear-gradient(180deg, #ec4899 0%, #db2777 100%);
}

.offer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 12px;
}

.offer-logo img {
    max-width: 280px;
    max-height: 120px;
    object-fit: contain;
}

.logo-text {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    text-align: center;
}

.offer-conditions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offer-conditions p {
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.offer-conditions i {
    color: #22c55e;
    width: 18px;
    text-align: center;
}

.offer-action {
    display: flex;
    justify-content: center;
}

.offer-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.offer-button:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.offer-button i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.offer-button:hover i {
    transform: translateX(3px);
}

/* ==========================================
   SEO КОНТЕНТ
   ========================================== */

.seo-content {
    margin-top: 60px;
}

.seo-intro {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.seo-intro h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.seo-intro p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.seo-features {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.seo-features h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
}

.feature-item i {
    color: #22c55e;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.feature-item span {
    color: #444;
    font-size: 14px;
}

.seo-categories {
    margin-bottom: 24px;
}

.seo-categories h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.category-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.category-card h4 {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.seo-about {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 16px;
    padding: 32px;
    color: #ffffff;
}

.seo-about h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.seo-about p {
    line-height: 1.7;
    margin: 0;
    opacity: 0.95;
}

.seo-disclaimer {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
}

.seo-disclaimer p {
    margin: 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
}

.seo-disclaimer i {
    color: #f59e0b;
    margin-right: 4px;
}

/* ==========================================
   СТРАНИЦА ЖУРНАЛА
   ========================================== */

.journal-intro {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.journal-intro p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.journal-coming-soon {
    background: #ffffff;
    border-radius: 16px;
    padding: 60px 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.journal-coming-soon i {
    font-size: 64px;
    color: #22c55e;
    margin-bottom: 24px;
}

.journal-coming-soon h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.journal-coming-soon p {
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================
   СТРАНИЦА ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ
   ========================================== */

.privacy-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.privacy-content h1 {
    text-align: left;
    margin-bottom: 8px;
    font-size: 2rem;
}

.privacy-date {
    color: #888;
    font-size: 14px;
    margin-bottom: 32px;
}

.privacy-content h2 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.privacy-content p {
    color: #444;
    margin-bottom: 12px;
    line-height: 1.7;
}

.privacy-content ul {
    margin: 12px 0;
    padding-left: 24px;
    color: #444;
}

.privacy-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.privacy-content a {
    color: #22c55e;
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* ==========================================
   COOKIE БАННЕР
   ========================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #ffffff;
    padding: 16px 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-content i {
    font-size: 20px;
    color: #f59e0b;
}

.cookie-accept {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-accept:hover {
    transform: scale(1.05);
}

.cookie-link {
    color: #22c55e;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #16a34a;
    text-decoration: underline;
}

/* ==========================================
   ФУТЕР
   ========================================== */

.footer {
    background-color: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 32px 20px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer a {
    color: #22c55e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #16a34a;
}

/* ==========================================
   АДАПТИВНОСТЬ - ПЛАНШЕТЫ (до 900px)
   ========================================== */

@media (max-width: 900px) {
    .navigation ul {
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-right: 20px;
    }

    .navigation ul::-webkit-scrollbar {
        display: none;
    }

    .navigation a {
        padding: 10px 14px;
        font-size: 15px;
    }
}

/* ==========================================
   АДАПТИВНОСТЬ - МАЛЕНЬКИЕ ПЛАНШЕТЫ (до 768px)
   ========================================== */

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    /* Карточки офферов */
    .offer-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .offer-accent {
        left: 0;
        top: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 4px;
        border-radius: 4px 4px 0 0;
    }

    .offer-logo {
        padding-left: 0;
        padding-top: 8px;
    }

    .offer-logo img {
        max-width: 200px;
        max-height: 80px;
    }

    .logo-text {
        font-size: 18px;
    }

    .offer-conditions {
        align-items: center;
    }

    .offer-conditions p {
        justify-content: center;
    }

    .offer-button {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    /* SEO контент */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-intro,
    .seo-features,
    .category-card,
    .seo-about {
        padding: 24px;
    }

    /* Политика конфиденциальности */
    .privacy-content {
        padding: 24px;
    }

    .privacy-content h1 {
        font-size: 1.5rem;
    }

    .privacy-content h2 {
        font-size: 1.1rem;
    }

    /* Cookie баннер */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-content p {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-accept {
        width: 100%;
    }
}

/* ==========================================
   АДАПТИВНОСТЬ - МОБИЛЬНЫЕ (до 640px)
   ========================================== */

@media (max-width: 640px) {
    .menu-toggle {
        display: block;
    }

    ul.nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f0f0f0;
        z-index: 100;
        gap: 0;
    }

    ul.nav-menu.active {
        display: flex;
    }

    .nav-container {
        justify-content: space-between;
    }

    .logo {
        margin-right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 16px;
        text-align: left;
    }

    .nav-menu a:hover {
        background-color: #f5f5f5;
    }
}

/* ==========================================
   АДАПТИВНОСТЬ - МАЛЕНЬКИЕ МОБИЛЬНЫЕ (до 480px)
   ========================================== */

@media (max-width: 480px) {
    .container {
        padding: 16px 12px;
    }

    h1 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .logo img {
        height: 36px;
    }

    .navigation {
        padding: 12px 0;
    }

    /* Карточки офферов */
    .offer-card {
        padding: 16px;
        border-radius: 12px;
    }

    .offer-logo img {
        max-width: 160px;
        max-height: 60px;
    }

    .offer-conditions p {
        font-size: 14px;
        gap: 8px;
    }

    .offer-button {
        font-size: 14px;
        padding: 14px 20px;
    }

    /* SEO контент */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .seo-intro h2 {
        font-size: 1.25rem;
    }

    .seo-features h3,
    .seo-categories h3,
    .seo-about h3 {
        font-size: 1.1rem;
    }

    /* Политика конфиденциальности */
    .privacy-content {
        padding: 20px;
        border-radius: 12px;
    }

    /* Журнал */
    .journal-coming-soon {
        padding: 40px 20px;
    }

    .journal-coming-soon i {
        font-size: 48px;
    }

    .journal-coming-soon h2 {
        font-size: 1.25rem;
    }
}