/* ==========================================================================
   Мультоварка / Multovarka — landing styles
   Warm brand palette. Shared by index.html (EN) and ru/index.html (RU).
   No external webfonts (system stack) — reliability + privacy.
   ========================================================================== */

:root {
    --cream:     #FBF3E0;
    --paper:     #FFFFFF;
    --body-fill: #F5E6C0;
    --gold:      #E8A83A;
    --gold-deep: #E0912A;
    /* Accessible gold for TEXT/links on light surfaces (cream/white):
       5.35:1 on cream, 5.91:1 on white — passes WCAG AA. --gold/--gold-deep
       stay fill-only (navy text sits on them). */
    --gold-text: #8A5A12;
    --navy:      #1E2444;
    --navy-deep: #151932;
    --ink:       #2A2F4E;
    --coral:     #EE9A8F;
    --muted:     #63677D;
    --line:      #EADFC4;

    --font-round: "Segoe UI Rounded", "SF Pro Rounded", ui-rounded,
                  "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body:  system-ui, -apple-system, "Segoe UI", "Nunito", Roboto,
                  Helvetica, Arial, sans-serif;

    --radius:    18px;
    --radius-sm: 12px;
    --shadow:    0 6px 24px rgba(30, 36, 68, 0.08);
    --shadow-sm: 0 3px 12px rgba(30, 36, 68, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--body-fill);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--gold-text);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--navy); }

:focus-visible {
    outline: 3px solid var(--gold-deep);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Layout shell -------------------------------------------------------- */

#page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px;
    background: var(--cream);
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(30, 36, 68, 0.06);
}

section { margin-top: 56px; }

h1, h2, h3 {
    font-family: var(--font-round);
    color: var(--navy);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h2 { font-size: 1.7rem; margin: 0 0 20px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

/* ---- Header -------------------------------------------------------------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 8px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand__emblem { width: 40px; height: 40px; border-radius: 10px; }
.wordmark {
    font-family: var(--font-round);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy);
    letter-spacing: 0.01em;
}
.wordmark .accent { color: var(--gold-text); }

.lang-switch {
    display: inline-flex;
    gap: 4px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}
.lang-switch a {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.active {
    background: var(--gold);
    color: var(--navy);
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 300px);
    gap: 24px;
    align-items: center;
    margin-top: 32px;
}
.hero__body { min-width: 0; }
.hero h1 {
    font-size: 2.15rem;
    margin: 0 0 16px;
}
.hero__sub {
    font-size: 1.12rem;
    color: var(--ink);
    margin-bottom: 24px;
    max-width: 44ch;
}
.hero__art { justify-self: center; }
.hero__art img { width: 100%; max-width: 300px; }

/* ---- Buttons ------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-round);
    font-weight: 800;
    font-size: 1.02rem;
    padding: 13px 26px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--gold-deep); color: var(--navy); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

/* ---- What it is ---------------------------------------------------------- */

.lead {
    font-size: 1.12rem;
    color: var(--ink);
}
.lead .flow { color: var(--gold-text); font-weight: 700; }

/* ---- Cards (how it works) ------------------------------------------------ */

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 24px;
    box-shadow: var(--shadow);
}
.card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 9px;
    background: var(--cream);
    color: var(--gold-text);
    font-family: var(--font-round);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.card p { color: var(--muted); margin: 0; }

/* ---- For whom ------------------------------------------------------------ */

.audience {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.audience__item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--coral);
    border-radius: var(--radius-sm);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.audience__item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.audience__item p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---- Contact ------------------------------------------------------------- */

.contact-intro { font-size: 1.1rem; color: var(--ink); margin-bottom: 24px; }

.contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.contact-card {
    flex: 1 1 200px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--cream);
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__label {
    font-family: var(--font-round);
    font-weight: 800;
    color: var(--navy);
    font-size: 1rem;
}
.contact-card__value { font-size: 0.95rem; word-break: break-word; }
.contact-card__value a { font-weight: 600; }
/* QR on a light surface — modules are dark navy, background transparent */
.qr {
    width: 112px; height: 112px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
}
/* ---- Footer -------------------------------------------------------------- */

.site-footer {
    margin-top: 60px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    transition: background 0.15s ease, color 0.15s ease;
}
.footer-links a:hover { background: var(--navy); color: var(--cream); }
.footer-links svg { width: 20px; height: 20px; }
.site-footer p { font-size: 0.92rem; margin: 0; }
.footer-meta { margin-top: 8px !important; }

/* ---- Privacy policy ----------------------------------------------------- */

.policy { max-width: 700px; margin: 48px auto 0; }
.policy h1 {
    font-size: 2.15rem;
    margin: 0 0 12px;
}
.policy h2 { margin-top: 40px; }
.policy ul { margin: 0 0 16px; padding-left: 24px; }
.policy li { margin-bottom: 8px; }
.policy__updated { color: var(--muted); margin-bottom: 28px; }
.policy__note {
    padding: 18px;
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 680px) {
    body { font-size: 16px; }
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__body { order: 2; }
    .hero__art { order: 1; }
    .hero__art img { max-width: 220px; }
    .hero h1 { font-size: 1.8rem; }
    .hero__sub { margin-left: auto; margin-right: auto; }
    .cards { grid-template-columns: 1fr; }
    .audience { grid-template-columns: 1fr; }
    h2 { font-size: 1.45rem; }
    .policy h1 { font-size: 1.85rem; }
}

@media (max-width: 400px) {
    #page { padding-left: 14px; padding-right: 14px; }
}
