/* Партнёркин-Гид - Современный CSS стиль */
/* Цветовая схема: синий/голубой (доверие) + оранжевый (акцент) */

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

header nav a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffd166;
}

/* Основное содержимое */
main {
    padding: 2rem 0;
}

/* Форма подписки */
.subscription-form {
    background: linear-gradient(rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8)), url('images/maxresdefault.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 3rem 0;
    margin: 3rem 0;
}

.form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.subscription-form h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.subscription-form p {
    font-size: 1.2rem;
    text-align: center;
    margin: 0 0 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    max-width: 350px;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    background-color: rgba(255,255,255,0.9);
    margin: 0 auto;
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    max-width: 350px;
    margin: 0 auto;
    text-align: left;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.3rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.checkbox-group a {
    color: #1e3c72;
    text-decoration: underline;
}

.btn-primary {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 1rem auto 0;
    text-align: center;
}

.btn-primary:not(.partnerka-link):hover {
    background: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

/* Вступление */
.intro {
    background: white;
    padding: 3rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.intro h1 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.intro p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Карточки статей и партнёрок */
.articles-grid,
.partnerki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card,
.partnerka-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-articles {
    background: linear-gradient(rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0.9)), url('images/pngtree-falling-money-abstract-background-for-finance-and-success-picture-image_15712030.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3rem 0;
    margin: 2rem 0;
}

.popular-partnerki {
    background: linear-gradient(rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0.9)), url('images/pngtree-falling-money-abstract-background-for-finance-and-success-picture-image_15712030.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3rem 0;
    margin: 2rem 0;
}

.article-card:hover,
.partnerka-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.article-card h3,
.partnerka-card h3 {
    margin-bottom: 1rem;
}

.article-card a,
.partnerka-card a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-card a:hover,
.partnerka-card a:hover {
    color: #ff6b35;
}

.article-card p,
.partnerka-card p {
    color: #666;
    line-height: 1.6;
}

/* Секции статей */
.articles-list h1 {
    color: #1e3c72;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.article-preview {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-preview h2 {
    margin-bottom: 1rem;
}

.article-preview a {
    color: #1e3c72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-preview a:hover {
    color: #ff6b35;
}

.article-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.article-meta {
    color: #999;
    font-size: 0.9rem;
}

/* Страницы статей */
.article-content {
    background: white;
    padding: 3rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-content h1 {
    color: #1e3c72;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.article-date {
    text-align: center;
    color: #999;
    margin-bottom: 2rem;
    font-style: italic;
}

.article-content h2 {
    color: #2a5298;
    margin: 2rem 0 1rem;
    font-size: 1.6rem;
}

.article-content h3 {
    color: #1e3c72;
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.article-content h4 {
    color: #333;
    margin: 1rem 0 0.5rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.income-example,
.partnerka-example {
    background: #f0f8ff;
    border-left: 4px solid #1e3c72;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.timeline {
    background: #fff8e1;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.timeline h3 {
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.timeline p {
    margin-bottom: 1rem;
    color: #555;
}

.article-navigation {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.btn-secondary {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Партнёрки - детальные карточки */
.partnerka-card.detailed {
    padding: 2rem;
}

.partnerka-category {
    background: #e3f2fd;
    color: #1e3c72;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.partnerka-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #1e3c72;
    font-weight: 500;
}

.partnerka-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros h4,
.cons h4 {
    margin-bottom: 1rem;
}

.pros ul,
.cons ul {
    padding-left: 1.5rem;
}

.pros li {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.cons li {
    color: #c62828;
    margin-bottom: 0.5rem;
}

.btn-primary.partnerka-link,
.partnerka-link {
    display: inline-block;
    text-align: center;
    margin-top: 1rem;
    color: white !important;
    text-decoration: none;
    background: #1e3c72;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary.partnerka-link:hover,
.partnerka-link:hover {
    background: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white !important;
}

/* Виды трафика */
.traffic-types h1 {
    color: #1e3c72;
    text-align: center;
    margin-bottom: 1.5rem;
}

.intro-text {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.traffic-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.traffic-category h2 {
    color: #1e3c72;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e3f2fd;
}

.traffic-method {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.traffic-method h3 {
    color: #2a5298;
    margin-bottom: 1rem;
}

.method-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.examples h4,
.traffic-method h4 {
    color: #333;
    margin-bottom: 1rem;
}

.examples ul,
.traffic-method ul {
    padding-left: 1.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.tip-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

/* Политика конфиденциальности */
.privacy-policy {
    background: white;
    padding: 3rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.privacy-policy h1 {
    color: #1e3c72;
    text-align: center;
    margin-bottom: 1rem;
}

.last-updated {
    text-align: center;
    color: #999;
    margin-bottom: 3rem;
    font-style: italic;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    color: #2a5298;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.policy-section h3 {
    color: #1e3c72;
    margin: 1.5rem 0 1rem;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
}

.policy-section ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info {
    background: #f0f8ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.policy-acceptance {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
    font-weight: 500;
}

/* Подвал */
footer {
    background: #1e3c72;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer .container {
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
}

footer nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 1.5rem;
    margin: 1rem 0;
}

footer nav a {
    color: #a0c4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: #ffd166;
}

/* Адаптивность */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .subscription-form h2 {
        font-size: 1.8rem;
    }
    
    .form-wrapper {
        padding: 1.5rem;
        margin: 0 20px;
        max-width: 90%;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"] {
        max-width: 100%;
    }
    
    .checkbox-group {
        max-width: 100%;
    }
    
    .btn-primary {
        max-width: 100%;
    }
    
    .intro h1 {
        font-size: 1.6rem;
    }
    
    .articles-grid,
    .partnerki-grid {
        grid-template-columns: 1fr;
    }
    
    .partnerka-pros-cons,
    .method-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .traffic-types h1 {
        font-size: 1.8rem;
    }
    
    .article-content h1 {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .popular-articles,
    .popular-partnerki {
        padding: 2rem 0;
        margin: 1rem 0;
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    main {
        padding: 1rem 0;
    }
    
    .subscription-form {
        padding: 2rem 0;
    }
    
    .subscription-form h2 {
        font-size: 1.5rem;
    }
    
    .intro {
        padding: 2rem 1rem;
    }
    
    .article-card,
    .partnerka-card,
    .article-preview {
        padding: 1.5rem;
    }
    
    footer nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card,
.partnerka-card {
    animation: fadeIn 0.5s ease-out;
}

/* Улучшенная доступность */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Выделение текста */
::selection {
    background-color: #ffd166;
    color: #333;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3c72;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a5298;
}

/* Сообщения формы */
.form-message {
    margin-top: 1rem;
    text-align: center;
    min-height: 2rem;
}

.form-message.success .success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
}

.form-message.error .error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

.btn-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}