:root {
    --forest: #0f3d2e;
    --forest-deep: #0a2a20;
    --leaf: #1f8a4c;
    --leaf-hover: #187540;
    --mint: #dff3e6;
    --foam: #f3faf5;
    --cream: #f6f3ea;
    --paper: #fffcf6;
    --ink: #14241c;
    --muted: #4d6256;
    --line: #d5e3d8;
    --danger: #9b2c2c;
    --shadow: 0 18px 50px rgba(15, 61, 46, .12);
    --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body.site-body {
    font-family: Manrope, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--leaf); }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(720px, 100%); }
.skip {
    position: absolute; left: -999px;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 80; }

h1, h2, h3, .brand-text strong, .foot-brand {
    font-family: Fraunces, Georgia, serif;
    font-weight: 700;
    letter-spacing: -.02em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: var(--leaf-hover); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-deep); }
.btn-ghost, .btn-ghost-light {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: #fff; }

.mast {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 243, 234, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.mast-row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--forest);
    flex-shrink: 0;
}
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--forest);
    color: #c8f0d4;
    display: grid;
    place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 18px; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.nav-groups {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.nav-drop { position: relative; }
.nav-drop summary,
.nav-plain {
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover,
.nav-plain:hover,
.nav-drop[open] summary { background: var(--mint); }
.nav-panel, .auth-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 14px;
    display: grid;
    gap: 8px;
    z-index: 30;
}
.nav-panel p, .auth-panel p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
}
.nav-panel a { color: var(--forest); font-weight: 600; text-decoration: none; }
.nav-panel a:hover { color: var(--leaf); }

.mast-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.auth-drop { position: relative; }
.auth-drop summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--forest);
    color: var(--forest);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 13px;
    background: #fff;
}
.auth-drop summary::-webkit-details-marker { display: none; }
.auth-panel { right: 0; left: auto; width: 260px; }
.auth-panel .btn { width: 100%; }
.auth-panel form { margin: 0; }
.menu-btn {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 8px;
    background: var(--paper);
    border-top: 1px solid var(--line);
}
.mobile-nav a { color: var(--forest); font-weight: 600; text-decoration: none; padding: 8px 0; }

.mini-cta {
    position: sticky;
    top: 72px;
    z-index: 25;
    background: var(--forest);
    color: #e8f6ee;
    transform: translateY(-110%);
    transition: transform .25s ease;
}
.mini-cta.is-on { transform: translateY(0); }
.mini-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    font-size: 14px;
}
.mini-cta p { margin: 0; }

.hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(143, 206, 90, .18), transparent 28%),
        linear-gradient(115deg, var(--forest-deep) 0 58%, #164a38 58% 100%);
    color: #f3faf5;
    padding: 48px 0 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: start;
    padding-bottom: 28px;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #9ed4b3;
}
.hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    margin: 0 0 16px;
    color: #fff;
}
.lede { font-size: 18px; max-width: 40rem; }
.hero .lede { color: #d7ece0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: #c9e6d4;
    font-size: 14px;
}
.hero-points li::before { content: "▸ "; color: #8fce5a; }

.quote-slip {
    background: var(--paper);
    color: var(--ink);
    border-radius: 22px 22px 6px 22px;
    padding: 22px 22px 18px;
    box-shadow: var(--shadow);
    transform: rotate(-1.2deg);
    margin-top: 12px;
}
.slip-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--leaf);
    font-weight: 800;
}
.quote-slip h2 { margin: 4px 0 8px; font-size: 26px; }

.hero-lanes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    transform: translateY(22px);
    padding-bottom: 8px;
}
.lane {
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    border-radius: 16px;
    padding: 16px 18px;
    display: grid;
    gap: 2px;
    box-shadow: 0 10px 24px rgba(10, 42, 32, .12);
}
.lane span { color: var(--leaf); font-weight: 800; font-size: 12px; }
.lane strong { font-family: Fraunces, serif; font-size: 22px; }
.lane em { font-style: normal; color: var(--muted); font-size: 13px; }
.lane:hover { outline: 2px solid var(--leaf); }

.steps, .shelves, .trust, .office-band { padding: 64px 0; }
.steps { background: var(--foam); }
.section-title { font-size: 34px; margin: 0 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 40rem; }
.step-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    margin: 28px 0 0;
    list-style: none;
    counter-reset: step;
}
.step-row li {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--line);
    counter-increment: step;
}
.step-row li::before {
    content: "0" counter(step);
    display: block;
    color: var(--leaf);
    font-weight: 800;
    margin-bottom: 8px;
}
.step-row strong { display: block; margin-bottom: 6px; }
.step-row p { margin: 0; color: var(--muted); }

.shelf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.shelf {
    background: #fff;
    border-radius: 20px;
    padding: 20px 18px 16px;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.shelf-me { background: #f3faf5; }
.shelf-car { background: #fff8ef; }
.shelf-business { background: #eef4f1; }
.shelf header p { margin: 0; color: var(--leaf); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.shelf h3 { margin: 4px 0 12px; font-size: 26px; }
.shelf ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.shelf a { text-decoration: none; color: inherit; }
.shelf li a { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.shelf li small { color: var(--muted); font-size: 13px; }
.shelf-more { margin-top: auto; font-weight: 700; color: var(--forest); }

.trust { background: var(--forest); color: #e7f6ee; }
.stat-note {
    margin: 0 0 18px;
    font-size: 13px;
    opacity: .8;
    border: 1px dashed rgba(255,255,255,.25);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0;
}
.stat-row div { background: rgba(255,255,255,.06); border-radius: 16px; padding: 18px; }
.stat-row dt { font-size: 13px; opacity: .75; }
.stat-row dd { margin: 6px 0 0; font-family: Fraunces, serif; font-size: 42px; }

.office-band { background: var(--paper); }
.office-band-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.office-chips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.office-chips li { background: var(--mint); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; }

.page-hero { padding: 48px 0 20px; background: linear-gradient(180deg, #e5f3ea, var(--cream)); }
.page-hero-car { background: linear-gradient(180deg, #fff1dc, var(--cream)); }
.page-hero-business { background: linear-gradient(180deg, #e4eee8, var(--cream)); }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 12px; }

.stack-list { display: grid; gap: 14px; padding: 12px 0 64px; }
.stack-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
}
.stack-item h2 { margin: 0 0 6px; }
.stack-item p { margin: 0; color: var(--muted); }

.product-page { padding-bottom: 24px; }
.product-split, .compare-layout, .contact-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    padding: 12px 0 56px;
    align-items: start;
}
.check-list { padding: 0; margin: 0 0 22px; list-style: none; display: grid; gap: 8px; }
.check-list li::before { content: "✓ "; color: var(--leaf); font-weight: 800; }
.side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.side-card h2 { margin-top: 0; }
.related { padding-bottom: 64px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-grid a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: 6px;
}
.related-grid span { color: var(--muted); font-size: 14px; }

.inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.inquiry label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.inquiry input, .inquiry textarea {
    width: 100%;
    border: 1px solid #c9d6cc;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
.inquiry .span-2 { grid-column: 1 / -1; }
.field-err { color: var(--danger); font-weight: 600; }
.fineprint { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.flash-ok {
    background: #e4f7ea;
    color: #146c36;
    border: 1px solid #b7e4c7;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 16px 0 0;
}
.compare-notes ol { padding-left: 18px; }
.contact-line { margin: 0 0 10px; }
.office-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 8px 0 64px;
}
.office-card { background: #fff; border-radius: 16px; padding: 20px; border: 1px solid var(--line); }
.office-card h2 { margin-top: 0; }
.prose { padding-bottom: 64px; max-width: 42rem; }
.prose h2 { font-size: 26px; }
.empty-copy { color: var(--muted); padding: 32px 0; }
.muted { color: var(--muted); font-size: 13px; }

.foot { background: var(--forest-deep); color: #d7ece0; padding: 48px 0 20px; }
.foot a { color: #c8f0d4; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot-brand { font-size: 24px; margin: 0 0 8px; color: #fff; }
.foot h2 { color: #fff; font-size: 16px; margin: 0 0 10px; }
.foot p { margin: 0 0 8px; font-size: 14px; }
.foot-legal-name { font-size: 12px; opacity: .75; }
.foot-base {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 13px;
}

.login-site-link {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--leaf);
    font-weight: 700;
}

@media (max-width: 980px) {
    .nav-groups { display: none; }
    .sticky-go { display: none; }
    .menu-btn { display: inline-flex; }
    .mobile-nav.is-open { display: flex; }
    .hero-grid, .shelf-grid, .step-row, .stat-row, .office-band-inner,
    .product-split, .compare-layout, .contact-layout, .office-cards, .foot-grid, .related-grid {
        grid-template-columns: 1fr;
    }
    .hero-lanes { grid-template-columns: 1fr; }
    .quote-slip { transform: none; }
    .inquiry-grid { grid-template-columns: 1fr; }
    .stack-item { flex-direction: column; align-items: flex-start; }
    .mini-cta-inner { flex-direction: column; align-items: flex-start; padding: 10px 0; }
}

/* 2026-09-25: header fits on one line with Строителство/Забавление */
.nav-drop summary,
.nav-plain { white-space: nowrap; padding: 10px 9px; }

/* 2026-10-02: cross-site links on a 2nd row under the main menu (desktop); replaces the earlier fit tweak */
.nav-cross { display: none; }
@media (min-width: 981px) {
    .mast-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 72px 36px; column-gap: 20px; row-gap: 0; align-items: center; }
    .mast-row > .brand { grid-column: 1; grid-row: 1; }
    .mast-row > .nav-groups { grid-column: 2; grid-row: 1; }
    .mast-row > .mast-actions { grid-column: 3; grid-row: 1; }
    .mast-row > .nav-cross { grid-column: 2; grid-row: 2; align-self: start; display: flex; gap: 4px; margin-top: -8px; }
    .nav-cross .nav-plain { padding: 5px 9px; }
    .mini-cta { top: 108px; visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
    .mini-cta.is-on { visibility: visible; transition: transform .25s ease; }
}
