/* Москва с воды — прототип */
:root {
    --ink: #081e2b;
    --ink-soft: #123544;
    --paper: #f8f4ec;
    --paper-deep: #efe7da;
    --white: #ffffff;
    --coral: #ef6a4c;
    --coral-dark: #d95338;
    --gold: #f2c56b;
    --teal: #1f5d60;
    --muted: #5e7073;
    --line: rgba(8, 30, 43, .13);
    --line-light: rgba(255, 255, 255, .18);
    --shadow: 0 20px 60px rgba(8, 30, 43, .12);
    --shadow-soft: 0 10px 30px rgba(8, 30, 43, .07);
    --radius: 22px;
    --radius-sm: 14px;
    --container: 1240px;
    --font-display: "Prata", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
::selection { background: var(--gold); color: var(--ink); }

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px;
    background: var(--white); color: var(--ink); border-radius: 8px;
    transform: translateY(-150%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: rgba(255, 255, 255, .82); }
.eyebrow--dark { color: var(--teal); }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px;
    font-size: 15px; font-weight: 800; line-height: 1; text-align: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--coral); color: var(--white); }
.button--primary:hover { background: var(--coral-dark); }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: var(--ink-soft); }
.button--light { background: var(--white); color: var(--ink); }
.button--light:hover { background: var(--gold); }
.button--outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button--outline:hover { border-color: var(--ink); }
.button--wide { width: 100%; }
.button--small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.button svg { width: 16px; height: 16px; }

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--paper { background: var(--paper); }
.section--deep { background: var(--ink); color: var(--white); }
.section--cream { background: var(--paper-deep); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
.section-head p { max-width: 470px; color: var(--muted); font-size: 15px; }
.section-head--deep p { color: rgba(255, 255, 255, .68); }
.section-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; font-weight: 800; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.section-link span { transition: transform .2s ease; }
.section-link:hover span { transform: translateX(4px); }

/* Header */
.site-header {
    position: absolute; inset: 0 0 auto; z-index: 100;
    padding: 22px 0;
    color: var(--white);
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header.is-scrolled, body:not(.is-home) .site-header {
    position: fixed; padding: 13px 0; color: var(--ink);
    background: rgba(248, 244, 236, .94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 24px rgba(8, 30, 43, .05);
    backdrop-filter: blur(14px);
}
body:not(.is-home) { padding-top: 82px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 38px; height: 38px; color: var(--gold); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.brand-text em { margin-top: 4px; font-family: var(--font-display); font-size: 15px; font-style: normal; color: var(--gold); }
.site-header.is-scrolled .brand-text em, body:not(.is-home) .brand-text em { color: var(--coral); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a { position: relative; font-size: 14px; font-weight: 700; opacity: .9; }
.site-nav > a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px;
    background: currentColor; transition: right .2s ease;
}
.site-nav > a:hover::after, .site-nav > a[aria-current="page"]::after { right: 0; }
.nav-cta {
    padding: 12px 18px; border-radius: 999px; background: var(--coral); color: var(--white);
    opacity: 1 !important; transition: background .2s ease;
}
.nav-cta:hover { background: var(--coral-dark); }
.nav-toggle {
    display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line-light);
    border-radius: 50%; background: transparent; color: inherit;
}
.site-header.is-scrolled .nav-toggle, body:not(.is-home) .nav-toggle { border-color: var(--line); }
.nav-toggle span:not(.sr-only) { display: block; height: 1.5px; margin: 4px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding: 64px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .8fr .8fr 1.1fr; gap: 48px; }
.footer-brand p { max-width: 340px; margin-top: 18px; color: rgba(255, 255, 255, .62); font-size: 14px; }
.footer-brand .footer-note { margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, .4); }
.brand--footer .brand-text strong { color: var(--white); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-col a { font-size: 14px; color: rgba(255, 255, 255, .72); transition: color .2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-col--cta p { color: rgba(255, 255, 255, .62); font-size: 14px; margin-bottom: 10px; }
.footer-col--cta .button { align-self: flex-start; color: var(--ink); }
.footer-col--cta .button:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 54px; padding-top: 20px; border-top: 1px solid var(--line-light); color: rgba(255, 255, 255, .4); font-size: 12px; }

@media (max-width: 1050px) {
    .site-nav { gap: 18px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-col--cta { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .container { width: min(var(--container), calc(100% - 36px)); }
    .section { padding: 68px 0; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 14px; }
    .site-header { padding: 16px 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
    body:not(.is-home) .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav-toggle { display: block; position: relative; z-index: 2; }
    .brand { position: relative; z-index: 2; }
    .site-nav {
        position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column;
        align-items: flex-start; justify-content: flex-start; gap: 18px; padding: 96px 28px 40px;
        background: var(--ink); color: var(--white); opacity: 0; visibility: hidden;
        overflow-y: auto;
        transform: translateY(-10px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .site-nav > a { font-family: var(--font-display); font-size: 30px; font-weight: 400; }
    .site-nav .nav-cta { margin-top: 14px; font-family: var(--font-body); font-size: 15px; }
    body.nav-open { overflow: hidden; }
    body.nav-open .site-header { color: var(--white); background: transparent; border-color: transparent; box-shadow: none; }
    body.nav-open .brand-text em { color: var(--gold); }
    body.nav-open .nav-toggle { border-color: var(--line-light); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
    .container { width: calc(100% - 28px); }
    .section { padding: 54px 0; }
    .site-header { padding: 13px 0; }
    .brand-mark { width: 32px; height: 32px; }
    .brand-text strong { font-size: 15px; }
    .brand-text em { font-size: 13px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand, .footer-col--cta { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
