/* ГИД СИБИРЬ — implementation styles
   Tokens from design/design.md; layout follows design/desktop-1440.svg,
   tablet-768.svg, mobile-390.svg masters. */

:root {
    --primary: #087E8B;
    --hero: #0B6F7C;
    --ink: #17324D;
    --amber: #F2B84B;
    --bg: #F7FBFC;
    --card: #FFFFFF;
    --muted: #60758A;
    --border: #D8E5E9;
    --gutter: 72px;
    --shell: 1296px;
    --font: "Inter", "Manrope", Arial, "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    height: 84px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--border);
}
.brand {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}
.site-nav a {
    font-size: 20px;
    color: var(--ink);
    text-decoration: none;
    padding: 10px 2px;
}
.site-nav a:hover { color: var(--primary); }
.site-nav a.phone { font-weight: 700; color: var(--primary); }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--primary);
    font-size: 28px;
    line-height: 1;
    padding: 8px 10px;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--hero);
    overflow: hidden;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px var(--gutter);
    color: #fff;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-circle {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--amber);
    opacity: .9;
}
.hero-line {
    position: absolute;
    left: 52%;
    right: 0;
    height: 400px;
    background: transparent;
    border-top: 4px solid rgba(255, 255, 255, .55);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: rotate(-6deg);
}
.hero-line-1 { top: 30%; opacity: .6; }
.hero-line-2 { top: 42%; border-top-width: 2px; opacity: .45; }

.hero > :not(.hero-bg) { position: relative; max-width: 720px; z-index: 1; }
.hero-eyebrow {
    font-size: 18px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 28px;
}
.hero h1 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.12;
}
.hero-sub {
    margin-top: 22px;
    font-size: 25px;
    color: rgba(255, 255, 255, .92);
}
.hero .pill-btn { margin-top: 36px; }
.hero-meta {
    margin-top: 26px;
    font-size: 18px;
    color: rgba(255, 255, 255, .8);
}

/* ---------- Buttons ---------- */
.pill-btn {
    display: inline-block;
    border: 0;
    border-radius: 32px;
    font-family: var(--font);
    font-size: 21px;
    font-weight: 700;
    padding: 18px 40px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.pill-btn:active { transform: scale(.98); }
.pill-btn.amber-btn { background: var(--amber); color: var(--ink); }
.pill-btn.amber-btn:hover { background: #f6c765; box-shadow: 0 10px 24px rgba(23, 50, 77, .3); }
.pill-btn.ink-btn { background: var(--ink); color: #fff; }
.pill-btn.ink-btn:hover { background: #24456b; }
.pill-btn.dark-btn { background: var(--primary); color: #fff; padding: 13px 28px; font-size: 17px; }
.pill-btn.dark-btn:hover { background: #066a75; }
.pill-btn:disabled { opacity: .4; cursor: not-allowed; }

.card-link {
    display: inline-block;
    margin-top: auto;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 72px var(--gutter);
}
.section h2 { font-size: 42px; font-weight: 700; line-height: 1.15; }
.section h2.white { color: #fff; }
.lede { margin-top: 14px; font-size: 22px; color: var(--muted); }

.section-ink {
    max-width: none;
    background: var(--ink);
    padding: 72px 0;
}
.section-ink > * { max-width: 1296px; margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }

/* ---------- Tour cards ---------- */
.tour-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.tour-card {
    border-radius: 18px;
    min-height: 310px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .2s ease;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23, 50, 77, .14); }
.tour-card h3 { font-size: 25px; font-weight: 700; }
.tour-card p { margin-top: 10px; font-size: 19px; color: rgba(23, 50, 77, .78); }
.tour-nature { background: #D9EEF0; }
.tour-history { background: #F8DFB0; }
.tour-suburb { background: #DCE8F4; }
.tour-special { background: #E7E1F3; }

/* ---------- Trip cards ---------- */
.trip-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(3, 410px);
    gap: 33px;
}
.trip-card {
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(23, 50, 77, .08);
    transition: transform .15s ease, box-shadow .2s ease;
}
.trip-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(23, 50, 77, .16); }
.trip-banner {
    height: 210px;
    display: flex;
    align-items: flex-end;
    padding: 22px 26px;
}
.banner-label {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(23, 50, 77, .35);
}
.banner-teal { background: #91C9C4; }
.banner-amber { background: #E5BD70; }
.banner-blue { background: #8AAAC8; }
.trip-card h3 { font-size: 25px; font-weight: 700; padding: 22px 26px 0; }
.trip-date { margin-top: 8px; padding: 0 26px; font-size: 19px; color: var(--muted); }
.trip-price { margin-top: 4px; padding: 0 26px; font-size: 21px; font-weight: 700; }
.trip-btn { margin: 22px 26px 26px; align-self: flex-start; }
.trip-btn.selected { background: var(--ink); }

/* ---------- Advantages ---------- */
.advantages {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.advantage h3 { font-size: 25px; font-weight: 700; color: #fff; }
.advantage p { margin-top: 10px; font-size: 20px; color: rgba(255, 255, 255, .85); }

/* ---------- Quote ---------- */
.quote {
    margin-top: 48px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px 48px;
    max-width: 1296px;
}
.quote blockquote { font-size: 22px; line-height: 1.6; }
.quote figcaption { margin-top: 22px; font-size: 18px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.section-final { padding-top: 0; }
.final-card {
    background: var(--amber);
    border-radius: 24px;
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.final-card h2 { font-size: 42px; }
.final-card .lede { color: rgba(23, 50, 77, .75); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--primary);
    color: #fff;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px var(--gutter) 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-name { display: block; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.footer-note { display: block; font-size: 15px; color: rgba(255, 255, 255, .8); margin-top: 4px; }
.footer-right { display: grid; gap: 6px; font-size: 16px; }
.footer-right a { color: #fff; text-decoration: none; }
.footer-right a:hover { text-decoration: underline; }

/* ---------- Tablet (<=1024px) ---------- */
@media (max-width: 1024px) {
    :root { --gutter: 44px; }
    .site-header { height: 72px; }
    .brand { font-size: 26px; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 14px 44px 22px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .site-header.nav-open .site-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .menu-toggle { display: block; }
    .hero { min-height: 560px; padding: 60px 44px; }
    .hero h1 { font-size: 54px; }
    .hero-sub { font-size: 21px; }
    .hero-circle { width: 380px; height: 380px; right: 0; }
    .section { padding: 56px 44px; }
    .section h2 { font-size: 34px; }
    .lede { font-size: 19px; }
    .tour-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .trip-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages { gap: 24px; }
    .final-card { padding: 36px; }
    .final-card h2 { font-size: 34px; }
    .site-footer { flex-direction: column; align-items: flex-start; padding: 28px 44px 32px; }
}

/* ---------- Mobile (<=640px) ---------- */
@media (max-width: 640px) {
    :root { --gutter: 24px; }
    .site-header { height: 66px; }
    .brand { font-size: 22px; }
    .site-nav { padding: 12px 24px 20px; }
    .hero { min-height: 0; padding: 48px 24px 40px; }
    .hero h1 { font-size: 44px; }
    .hero-eyebrow { font-size: 14px; letter-spacing: 2px; }
    .hero-sub { font-size: 18px; }
    .hero .pill-btn { font-size: 18px; padding: 15px 30px; }
    .hero-meta { font-size: 15px; }
    .hero-circle { width: 300px; height: 300px; opacity: .55; }
    .section { padding: 48px 24px; }
    .section h2 { font-size: 28px; }
    .lede { font-size: 17px; }
    .tour-grid { grid-template-columns: 1fr; gap: 16px; }
    .tour-card { min-height: 0; }
    .trip-grid { grid-template-columns: 1fr; gap: 20px; }
    .trip-banner { height: 160px; }
    .advantages { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
    .quote { padding: 28px; }
    .quote blockquote { font-size: 18px; }
    .final-card { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
    .final-card h2 { font-size: 28px; }
    .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 24px 28px; }
}
