* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #FFFFFF;
    --text-color: #111111;
    --accent-color: #0EA5E9;
    --gray-light: #F8F9FA;
    --gray-medium: #6B7280;
    --border-color: #E5E7EB;
    --container-max-width: 1100px;
    --section-padding: 64px;
    --border-radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--accent-color);
}

.lang-switch {
    background: var(--gray-light);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

/* Hero */
.hero {
    padding: var(--section-padding) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--gray-light) 100%);
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-medium);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 18px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: #0284C7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.disclaimer-small {
    font-size: 14px;
    color: var(--gray-medium);
    margin-top: 16px;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.card, .post-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: all 0.2s ease;
}

.card:hover, .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.card h3, .post-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card p {
    color: var(--gray-medium);
    margin-bottom: 16px;
    font-size: 16px;
}

/* Sections */
.compass, .posts-preview, .guides, .faq, .contact {
    padding: var(--section-padding) 0;
}

.posts-preview {
    background: var(--gray-light);
}

.guides {
    background: var(--bg-color);
}

.faq {
    background: var(--gray-light);
}

.contact {
    background: var(--bg-color);
    text-align: center;
}

section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.contact p {
    font-size: 18px;
    color: var(--gray-medium);
    margin-bottom: 32px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    border: none;
    background: none;
    list-style: none;
    transition: background-color 0.2s ease;
}

.faq-item summary:hover {
    background: var(--gray-light);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    float: right;
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--gray-medium);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 48px 0;
}

.footer .disclaimer {
    margin-bottom: 24px;
    color: #D1D5DB;
    font-size: 16px;
}

.footer .btn-primary {
    background: var(--accent-color);
}

.footer .btn-primary:hover {
    background: #0284C7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .nav {
        gap: 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    :root {
        --section-padding: 48px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .btn-primary {
        padding: 14px 24px;
        font-size: 16px;
    }

    section h2 {
        font-size: 28px;
    }
}

/* Post pages styles */
.post-header {
    padding: 32px 0;
    background: var(--gray-light);
    text-align: center;
}

.post-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #0284C7;
}

.back-link svg {
    margin-right: 8px;
}

.post-content {
    padding: var(--section-padding) 0;
    max-width: 800px;
    margin: 0 auto;
}

.post-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 32px 0 16px;
    text-align: left;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.post-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.post-content ol, .post-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.post-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-cta {
    background: var(--gray-light);
    padding: 32px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 32px 0;
}

.post-cta h3 {
    margin-bottom: 16px;
    font-size: 20px;
}
/* кнопка в блоке поста */
.post-cta a.btn-primary,
.post-cta a.btn-primary:link,
.post-cta a.btn-primary:visited,
.post-cta a.btn-primary:hover,
.post-cta a.btn-primary:active {
  color:#fff !important;            /* текст всегда белый */
  -webkit-text-fill-color:#fff !important; /* на случай градиент-текста */
  text-decoration:none !important;
  opacity:1 !important;
  filter:none !important;
}

/* Ad badge */
.ad-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.4;
    background: var(--accent-color);
    color: #fff;
    border-radius: 999px;
    vertical-align: middle;
}

/* Note box */
.note {
    margin: 24px 0;
    padding: 16px;
    border-left: 4px solid var(--accent-color);
    background: var(--bg-secondary);
    border-radius: 8px;
}
