/* ============================================
   AI-TRIP BLOG — ОБЩИЕ СТИЛИ
   Шрифты, цвета, reset, компоненты
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@400;600;700&display=swap');

/* --- CSS ПЕРЕМЕННЫЕ --- */
:root {
    --color-bg: #fafaf8;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #5a5a5a;
    --color-text-muted: #8a8a8a;
    --color-accent: #ffdd00;
    --color-accent-hover: #f5d000;
    --color-border: #e8e8e4;
    --color-border-light: #f0f0ec;
    --color-link: #0066cc;
    --color-tag-bg: #f4f4f0;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --shadow-card: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-widget: 0 4px 24px rgba(0,0,0,0.08);
    
    --max-content: 720px;
    --max-page: 1080px;
}

/* --- RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-text);
}

/* --- ШАПКА БЛОГА --- */
.blog-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-header-inner {
    max-width: var(--max-page);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.blog-logo span {
    color: var(--color-accent);
}

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

.blog-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

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

/* --- СТАТЬЯ --- */
.article-wrapper {
    max-width: var(--max-page);
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.article-meta {
    max-width: var(--max-content);
    margin: 0 auto 24px;
}

.article-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.article-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    background: var(--color-tag-bg);
    border-radius: 100px;
    color: var(--color-text-secondary);
}

.article-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- ЗАГОЛОВОК --- */
.article-title {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-text);
    max-width: var(--max-content);
    margin: 0 auto 28px;
    text-align: center;
    text-wrap: balance;
}

/* --- ОБЛОЖКА --- */
.article-cover {
    max-width: var(--max-page);
    margin: 0 auto 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: var(--color-border-light);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- ТЕЛО СТАТЬИ --- */
.article-body {
    max-width: var(--max-content);
    margin: 0 auto;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    margin: 48px 0 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-align: center;
    text-wrap: balance;
}

.article-body h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 36px 0 12px;
    line-height: 1.3;
    text-align: center;
    text-wrap: balance;
}

.article-body p {
    margin-bottom: 20px;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.75;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 20px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.article-body blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 12px 0 12px 24px;
    margin: 28px 0;
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

.article-body strong {
    font-weight: 700;
}

/* --- ВИДЖЕТ-БЛОК (внутри статьи) --- */
.widget-block {
    margin: 40px -40px;
    padding: 28px 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-widget);
}

.widget-block-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-block-content {
    min-height: 200px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.widget-block-content iframe {
    width: 100%;
    min-height: 300px;
    border: none;
}

.widget-block-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    margin-top: 16px;
    padding: 14px 32px;
    background: var(--color-accent);
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 100px;
    text-align: center;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(255, 221, 0, 0.3);
}

.widget-block-button:hover {
    background: var(--color-accent-hover);
    color: var(--color-text);
    transform: translateY(-1px);
}

/* --- БАННЕР AI-TRIP --- */
.banner-cta {
    max-width: var(--max-content);
    margin: 48px auto;
    padding: 32px;
    background: var(--color-text);
    color: white;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.banner-cta-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
}

.banner-cta-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
}

.banner-cta-link {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-accent);
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 100px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.banner-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 221, 0, 0.4);
    color: var(--color-text);
}

/* --- ФУТЕР --- */
.blog-footer {
    border-top: 1px solid var(--color-border);
    padding: 32px 24px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.blog-footer a {
    color: var(--color-text-secondary);
    font-weight: 600;
}

/* --- УТИЛИТЫ --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}