/*
 * 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
   ======================================== */

/* [t584 14.10, окно «Стол» aurao-75] Шаг 0 «сайт под design-x»: токены = /try/style-v3.css (носитель вида design-x).
   Изменились 2 значения (контраст текста): --accent-gold-dark #A68B5B → #86693D, --accent-terracotta #C45B3E → #B4482C.
   Добавлены токены design-x: фон холста, ховер терракоты, рамка поля, статусы, шкала кеглей и отступов, радиус, фокус.
   Отличие от style-v3: --fs-app-sm и --fs-label = 13px (правило владельца t431: текст не мельче 13 px). */
:root {
    --bg-primary: #FFFFFF;
    --bg-warm: #FDF5EE;
    --bg-peach: #FBEDE5;
    --bg-canvas: #F5F0EA;
    --bg-dark: #2D2420;
    --bg-dark-2: #3A2F2A;
    --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: #86693D;
    --accent-orange: #E07A5F;
    --accent-terracotta: #B4482C;
    --accent-terracotta-hover: #973A22;
    --border-strong: #D4C4B5;
    --border-light: #EBE3DA;
    --border-input: #958275;

    --ok: #2F6B4A;      --ok-bg: #E8F2EC;
    --warn: #8A5A00;    --warn-bg: #FBF0D9;
    --err: #A3291C;     --err-bg: #FBE7E4;

    --fs-display: clamp(40px, 5.5vw, 68px);
    --fs-h2: clamp(30px, 4vw, 48px);
    --fs-h3: 26px;
    --fs-body-site: 17px;
    --fs-app: 14px;
    --fs-app-sm: 13px;
    --fs-label: 13px;

    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

    --radius: 2px;
    --focus: 0 0 0 2px #fff, 0 0 0 4px var(--accent-terracotta);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* [t584] общее поведение design-x (style-v3): видимый фокус с клавиатуры, без анимаций по просьбе системы, рамка поля 3:1 */
:focus-visible { outline: none; box-shadow: var(--focus); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], textarea, select { border-color: var(--border-input); }

/* ========================================
   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: var(--fs-body-site);   /* [t584] было 18px — шкала design-x (style-v3) */
    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: 13px;   /* [t584] было 12px — правило ≥13 px */
    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 14px; font-size: 13px; }   /* [t584] как design-x: было 12px капсом */

/* Colour variants */
.btn-primary {
    background: var(--text-primary);
    color: var(--text-light);
    border-color: var(--text-primary);
}
.btn-primary:hover {   /* [t584] как design-x: было --accent-orange (белый на нём 2,95 — не читается) */
    background: var(--accent-terracotta);
    border-color: var(--accent-terracotta);
}

.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 {   /* [t584] как design-x: целевое действие — терракота с белым (было персиковое) */
    background: var(--accent-terracotta);
    color: #fff;
    border-color: var(--accent-terracotta);
}
.btn-accent:hover {
    background: var(--accent-terracotta-hover);
    border-color: var(--accent-terracotta-hover);
}
.btn-ghost {   /* [t584] из design-x */
    background: #fff;
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-primary); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ========================================
   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; }

/* Реквизиты продавца в подвале — требование Робокассы (t65/t149, 28.07.2026) */
.footer-requisites{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:12px;font-size:13px;line-height:1.6;color:var(--text-muted)}   /* [t584] было 12px и opacity .65 — серый на сером не читался */
.footer-requisites span{white-space:nowrap}
