/*
 * shared.css — Common base styles for aurao.ru
 *
 * Extracted from duplicated <style> blocks across 24+ HTML files.
 * Contains only truly shared base styles: CSS variables, reset,
 * typography, layout primitives, keyframe animations, and
 * scroll-reveal utilities.
 *
 * Google Fonts preconnect (add to <head> of every page):
 *   <link rel="preconnect" href="https://fonts.googleapis.com">
 *   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *   <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Manrope:wght@300;400;500;600&display=swap" rel="stylesheet">
 */

/* ========================================
   CSS Custom Properties
   ======================================== */

:root {
    --bg-primary: #FFFFFF;
    --bg-warm: #FDF5EE;
    --bg-peach: #FBEDE5;
    --bg-dark: #2D2420;
    --bg-dark-gradient: linear-gradient(135deg, #3D2E28 0%, #2D2420 50%, #1E1815 100%);
    --text-primary: #1A1614;
    --text-body: #2D2926;
    --text-muted: #6B5E57;
    --text-light: #F5F0EB;
    --accent-peach: #E8A88C;
    --accent-peach-light: #F5D5C8;
    --accent-gold: #C9A67A;
    --accent-gold-dark: #A68B5B;
    --accent-orange: #E07A5F;
    --accent-terracotta: #C45B3E;
    --border-strong: #D4C4B5;
    --border-light: #EBE3DA;
}

/* ========================================
   CSS Reset
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-body);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Space for fixed header (80px with breathing room).
       Pages with pipeline-strip override via body.has-pipeline. */
    padding-top: 80px;
}
body.has-pipeline { padding-top: 118px; }
body.no-header-offset { padding-top: 0; }

/* ========================================
   Base Typography & Layout
   ======================================== */

.font-display {
    font-family: 'Cormorant Garamond', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Unified Typography Defaults
   (inline styles on pages still override these)
   ======================================== */

h1, .h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h2, .h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

h3, .h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

h4, .h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
}

.eyebrow {
    /* Маленький uppercase-заголовок над H1, "AI Видео" / "Услуга" / etc. */
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-gold-dark);
}

/* Responsive typography */
@media (max-width: 768px) {
    h1, .h1 { font-size: 40px; }
    h2, .h2 { font-size: 28px; }
    h3, .h3 { font-size: 20px; }
}

/* ========================================
   Page Hero — standard pattern for marketing pages
   (pricing, about, faq, terms, privacy, learn…)
   Не применяется автоматически — страница должна использовать класс.
   ======================================== */

.page-hero {
    padding: 120px 0 80px;
    background: var(--bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-peach-light) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-hero > .container {
    position: relative;
    z-index: 1;
}

.page-hero .eyebrow {
    display: block;
    margin-bottom: 16px;
}

.page-hero h1 {
    margin-bottom: 20px;
}

.page-hero .lead {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 32px;
}

/* Compact hero — для утилитарных страниц (estimate, video, decorator).
   Занимает меньше места сверху, без декоративного градиента. */
.page-hero.page-hero--compact {
    padding: 40px 0 32px;
    text-align: left;
}
.page-hero.page-hero--compact::before { display: none; }
.page-hero.page-hero--compact h1 { font-size: 36px; margin-bottom: 8px; }
.page-hero.page-hero--compact .lead { font-size: 15px; margin: 0; max-width: none; color: var(--text-muted); }

/* ========================================
   Unified Button System
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

/* Size variants */
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-md { padding: 12px 28px; font-size: 14px; }
.btn-sm { padding: 9px 18px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Colour variants */
.btn-primary {
    background: var(--text-primary);
    color: var(--text-light);
    border-color: var(--text-primary);
}
.btn-primary:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}
.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--text-light);
}

.btn-accent {
    background: var(--accent-peach-light);
    color: var(--text-primary);
    border-color: var(--accent-peach);
}
.btn-accent:hover {
    background: var(--accent-peach);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(224, 122, 95, 0.4);
}

/* ========================================
   Keyframe Animations
   ======================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================
   Scroll-reveal Utilities
   ======================================== */

/* Scroll-reveal: starts hidden, shown by GSAP or IntersectionObserver */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
