:root {
    --navy: #003366;
    --navy-2: #0a2540;
    --ink: #17202a;
    --muted: #5b6773;
    --line: #d5dde6;
    --bg: #eef2f6;
    --paper: #ffffff;
    --accent: #2f9bc8;
    --accent-ink: #06263a;
    --accent-soft: #d9eef7;
    /* Yellow for primary CTA buttons */
    --btn-yellow: #e2a100;
    --btn-yellow-ink: #1c2430;
    --ok: #1d9a01;
    --danger: #c22828;
    --radius: 14px;
    --shadow: 0 10px 28px rgba(0, 33, 66, 0.09);
    --floor-grid:
        linear-gradient(rgba(0, 51, 102, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 102, 0.045) 1px, transparent 1px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Manrope, sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    background-image: var(--floor-grid);
    background-size: 28px 28px;
    line-height: 1.55;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}
main {
    flex: 1 0 auto;
}
img, video, svg { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: #0b4a86; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.75rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 4vw, 2.2rem); font-weight: 800; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; max-width: 100%; }
main, header, footer, section, .page, .request { max-width: 100%; }

.header { background: var(--paper); position: sticky; top: 0; z-index: 20; }
.header__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}
.logo { min-width: 0; flex: 0 1 auto; }
.logo img { height: 52px; width: auto; max-width: min(220px, 52vw); display: block; }
.nav { display: flex; gap: 22px; font-weight: 700; flex: 1 1 auto; justify-content: center; }
.header__end {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
}
.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    background: #f7f9fc;
}
.chip:hover { background: var(--navy); color: #fff; }
.subnav { background: var(--navy); }
.subnav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    min-height: 48px;
    flex-wrap: wrap;
}
.subnav__nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    min-width: 0;
}
.subnav__contacts {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-left: auto;
    font-size: 14px;
}
.subnav__contacts a { font-weight: 700; white-space: nowrap; }
.subnav__mail { font-weight: 600 !important; opacity: 0.92; }
.subnav a, .mobile-menu a { color: #fff; font-weight: 600; }
.subnav a:hover { color: var(--accent); }
.cart-link { position: relative; }
.cart-link--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--navy);
    flex: 0 0 auto;
}
.cart-link--icon svg {
    width: 30px;
    height: 30px;
    max-width: none;
    display: block;
    fill: currentColor;
}
.cart-link--icon svg path {
    fill: currentColor;
    stroke: none;
}
.cart-link--icon:hover {
    background: rgba(0, 51, 102, 0.08);
    color: var(--navy);
}
.cart-link--icon .cart-count {
    top: -2px;
    right: -2px;
}
.cart-count {
    display: none;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    position: absolute;
    top: -10px;
    right: -14px;
}
.cart-count.is-on { display: inline-block; }
.card__min, .product__min {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}
.product__datasheet {
    font-weight: 700;
    text-decoration: underline;
}

.burger { display: none; background: none; border: 0; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }
.mobile-menu { display: none; flex-direction: column; background: var(--navy-2); padding: 12px 20px 20px; }
.mobile-menu a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu.is-open { display: flex; }
.mobile-menu .mobile-menu__contact { color: var(--accent); border-bottom: 0; }
a[href^="tel:"] { white-space: nowrap; }

.flash { background: #e8f6e4; color: #146106; padding: 12px 20px; text-align: center; font-weight: 600; }
.error { background: #fdecec; color: #8a1c1c; padding: 10px 14px; border-radius: 10px; }

.hero {
    position: relative;
    min-height: min(78vh, 640px);
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 0;
}
.hero__media {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: saturate(0.9);
}
.hero__media:after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(0,20,40,.88) 0%, rgba(0,30,55,.64) 52%, rgba(0,20,40,.3) 100%),
        linear-gradient(180deg, transparent 70%, rgba(238, 242, 246, 0.12) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 56px 0 64px; max-width: min(1100px, 100%); }
.eyebrow {
    display: inline-block;
    background: rgba(47, 155, 200, 0.2);
    color: #dff3fb;
    border: 1px solid rgba(47, 155, 200, 0.55);
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}
.hero__lead { font-size: 18px; color: #e8eef5; max-width: 58rem; }
.checks { padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.checks li:before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 12px; padding: 13px 20px;
    font: inherit; font-weight: 800; cursor: pointer;
}
.btn--accent { background: var(--btn-yellow); color: var(--btn-yellow-ink); }
.btn--accent:hover { filter: brightness(1.06); color: var(--btn-yellow-ink); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { color: #fff; background: #02457f; }
.btn--line { background: transparent; border: 1px solid var(--navy); color: var(--navy); width: 100%; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn.filter-toggle { display: none; }

.section {
    padding: 52px 0;
    position: relative;
}
.section--muted {
    background:
        linear-gradient(180deg, rgba(238, 242, 246, 0.92), rgba(238, 242, 246, 0.96)),
        var(--floor-grid);
    background-size: auto, 28px 28px;
}
.section--sketch {
    overflow: hidden;
    background-color: #f3f6f9;
    background-image:
        linear-gradient(rgba(120, 140, 160, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 140, 160, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: 0 0;
}
.section--sketch > .container { position: relative; z-index: 1; }
.notebook-deco {
    position: absolute;
    top: 56px; /* 2 клетки */
    right: 56px;
    width: 280px; /* 10 клеток */
    height: 280px;
    background: url("/static/img/notebook-stairs.svg?v=2") 0 0 / 280px 280px no-repeat;
    pointer-events: none;
    z-index: 0;
}
.notebook-deco--br {
    top: auto;
    bottom: 56px;
    right: 56px;
}
.section--split {
    background:
        linear-gradient(105deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 48%, rgba(217, 238, 247, 0.55) 100%),
        linear-gradient(rgba(0, 51, 102, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 102, 0.04) 1px, transparent 1px);
    background-size: auto, 40px 40px, 40px 40px;
}
.section__lead { color: var(--muted); margin-top: -6px; margin-bottom: 22px; max-width: 52rem; }
.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.section__head h2 { margin: 0 0 6px; }
.section__head .section__lead { margin: 0; }
.section__link {
    flex: 0 0 auto;
    font-weight: 800;
    color: var(--navy);
    white-space: nowrap;
}
.section__link:hover { color: var(--accent); }
.eyebrow--dark {
    background: rgba(226, 161, 0, 0.18);
    color: var(--btn-yellow-ink);
    border: 1px solid rgba(226, 161, 0, 0.55);
}
.objects-strip__lead {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
    max-width: 36rem;
}
.objects-arrows { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.objects-arrows .btn--sm { width: auto; padding: 10px 14px; }
.cards { display: grid; gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    color: inherit;
    display: block;
    border: 1px solid rgba(0, 51, 102, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
    transform: translateY(-2px);
    color: inherit;
    box-shadow: 0 14px 32px rgba(0, 33, 66, 0.12);
}
.card--room {
    padding: 16px 16px 14px;
}
.card--room .card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--navy);
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}
.card--room .card__icon svg {
    width: 24px;
    height: 24px;
    display: block;
}
.card--room h3 {
    font-size: 17px;
    min-height: 0;
    margin: 0 0 6px;
}
.card--room p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.room-grid .card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--navy);
    display: grid;
    place-items: center;
}
.room-grid .card__icon svg { width: 24px; height: 24px; display: block; }
.room-grid .svc-card__main p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card--product { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card--product .card__body { flex: 1; display: flex; flex-direction: column; }
.card--product .price { margin-top: auto; }
.card--product h3 {
    min-height: 0;
    overflow-wrap: anywhere;
    font-size: clamp(15px, 1.4vw, 18px);
}
.card__img {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    background-color: #e6e6e6;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Фото товара целиком, без полос и без обрезки */
.card--product .card__img {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    background-color: #ececec;
}
.card--product .card__img img {
    width: 100%;
    height: auto;
    object-fit: unset;
}
/* Карточки объектов — фото через background */
.card--object {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.card--object .card__img {
    min-height: 0;
    aspect-ratio: 3 / 2;
    background-color: #dfe3e8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.card--object .card__body {
    flex: 1;
}
.card--object h3 {
    min-height: 0;
    overflow-wrap: anywhere;
    font-size: clamp(15px, 1.4vw, 18px);
}
.card__badge {
    position: absolute; top: 12px; right: 12px;
    background: #fff; color: #c05621; border-radius: 999px;
    padding: 4px 10px; font-size: 12px; font-weight: 800;
}
.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.catalog-results { min-width: 0; }
.filter {
    background: #f7f8fa; border-radius: 16px; padding: 8px 16px 18px;
    position: sticky; top: 120px;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.filter h2 { font-size: 15px; margin: 16px 0 8px; }
.filter label, .filter summary label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 6px 0; cursor: pointer; }
.filter input[type="checkbox"] { accent-color: var(--navy); margin-top: 3px; }
.filter-group { border-bottom: 1px solid #e4e9ef; padding-bottom: 6px; }
.filter-group summary { list-style: none; cursor: pointer; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-sub { margin: 0 0 8px 22px; }
.filter-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-price input, .filter-search {
    width: 100%; border: 1px solid var(--line); border-radius: 10px;
    padding: 8px 10px; font: inherit; background: #fff;
}
.filter-search { margin-bottom: 12px; }
.filter .btn { width: 100%; margin-top: 8px; }
.filter-count { margin: 0 0 14px; color: var(--muted); }
.admin-tags { border: 0; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.admin-tags legend { font-weight: 800; margin-bottom: 6px; }
.card__body { padding: 18px 20px 22px; }
.card h3 { font-size: 18px; min-height: 2.6em; }
.price { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.price small { font-size: 13px; color: var(--muted); font-weight: 600; }

.tabs { display: flex; gap: 8px; margin: 8px 0 22px; flex-wrap: wrap; }
.tabs__btn {
    border: 1px solid var(--line); background: #fff; border-radius: 999px;
    padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer;
}
.tabs__btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.more { margin-top: 22px; font-weight: 700; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: center;
    margin-top: 28px;
}
.stat {
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(0, 33, 66, 0.06);
    min-height: 118px;
}
.stat strong {
    display: block;
    font-size: 34px;
    color: var(--btn-yellow);
    line-height: 1.05;
    margin-bottom: 6px;
}
.stat span { color: var(--ink); font-size: 14px; line-height: 1.35; }
.stat--feature {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 33, 66, 0.16);
}
.stat--feature strong { color: var(--btn-yellow); }
.stat--feature span { color: #fff; }
.stats__note { grid-column: 1 / -1; margin: 4px 0 0; }
.tiny { color: var(--muted); font-size: 13px; }

.news-list { display: grid; gap: 16px; }
.news-list--home {
    gap: 10px;
    max-width: 820px;
}
.news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 51, 102, 0.06);
    border-left: 3px solid var(--accent);
}
.news-item time { font-weight: 800; color: var(--navy); }
.news-item--compact {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
}
.news-item--compact time { font-size: 13px; }
.news-item--compact h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.3;
}
.news-item--compact p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.objects-strip {
    padding: 48px 0 56px;
    background:
        linear-gradient(180deg, rgba(238, 242, 246, 0.96), rgba(238, 242, 246, 0.98)),
        var(--floor-grid);
    background-size: auto, 28px 28px;
    color: var(--ink);
    border-top: 1px solid rgba(0, 51, 102, 0.06);
}
.objects-strip h2 { color: var(--navy); }
.objects-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.objects-head h2 { margin: 0; }
.objects-arrows button {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--navy);
    font-size: 26px; line-height: 1; cursor: pointer;
}
.objects-arrows button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.objects-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}
.objects-track {
    display: flex;
    gap: 16px;
    width: 100%;
    transition: transform .35s ease;
    will-change: transform;
}
.objects-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.object-tile {
    position: relative;
    min-height: 240px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #fff;
    padding: 16px;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 33, 66, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.object-tile:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 20, 40, 0.72) 100%);
    pointer-events: none;
}
.objects-track .object-tile {
    flex: 0 0 calc((100% - 32px) / 3);
    width: calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
}
.object-tile span {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.object-tile:hover { color: #fff; transform: translateY(-2px); }

.ral-series { margin: 0 0 28px; }
.ral-series h2 { font-size: 1.2rem; margin-bottom: 10px; }
.ral-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ral-swatch {
    min-height: 74px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; letter-spacing: .02em;
    font-size: 13px;
    padding: 6px;
    text-align: center;
    overflow-wrap: anywhere;
}

.page-hero--object {
    background:
        linear-gradient(90deg, rgba(0, 20, 40, 0.78), rgba(0, 32, 58, 0.5)),
        url("/static/img/objects/sochi.jpg") center / cover no-repeat;
}
.page-hero .crumb { margin: 0 0 8px; }
.page-hero .crumb a { color: #d7dde3; }
.page-hero__icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255,255,255,.12); color: #fff;
    display: grid; place-items: center; margin-bottom: 12px;
}
.page-hero__icon svg { width: 28px; height: 28px; }

.object-page { max-width: 980px; }
.gallery { margin-bottom: 28px; }
.gallery__main {
    position: relative;
    background: #1f2428;
    border-radius: 8px;
    min-height: 420px;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.gallery__main img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    display: block;
}
.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery__thumb {
    flex: 0 0 110px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    background: #e8edf2;
    cursor: pointer;
}
.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery__thumb.is-active { border-color: var(--navy); }

.object-props { display: grid; gap: 16px; }
.object-props__item { margin: 0; }
.object-props__title {
    font-weight: 800;
    font-size: 16px;
    margin: 0 0 2px;
    color: var(--ink);
}
.object-props__content {
    margin: 0;
    color: #334155;
    line-height: 1.45;
}
.object-props__purpose {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.object-props__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e8eef5;
    color: var(--navy);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.object-props__icon svg { width: 16px; height: 16px; }

.request {
    background:
        linear-gradient(120deg, rgba(0, 51, 102, 0.06), rgba(47, 155, 200, 0.1)),
        linear-gradient(180deg, #e7edf3, #eef3f7);
    padding: 52px 0;
    border-top: 1px solid rgba(0, 51, 102, 0.08);
}
.request__grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 24px; align-items: stretch; }
.form { display: grid; gap: 10px; }
.form input:not([type="checkbox"]):not([type="radio"]),
.form textarea,
.form select {
    width: 100%; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; font: inherit; background: #fff;
}
.form__note { font-size: 12px; color: var(--muted); }
.form--checkout {
    width: 100%;
    max-width: none;
    gap: 16px;
    margin-top: 8px;
    padding: 22px 24px 24px;
    background: #fff;
    border: 1px solid rgba(0, 51, 102, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}
.form-field {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #44505c;
    font-weight: 600;
}
.form-field input,
.form-field textarea {
    font-weight: 500;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d5dde6;
    border-radius: 10px;
}
.form-field--wide { grid-column: 1 / -1; }
.form-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #44505c;
    cursor: pointer;
}
.form-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    accent-color: var(--navy);
    flex: 0 0 18px;
}
.form-agree span { flex: 1; min-width: 0; }
.form-agree a { color: var(--navy); font-weight: 700; }
@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
    .form--checkout { padding: 16px; }
}
.hp { position: absolute; left: -9999px; }
.contacts-card {
    background: linear-gradient(160deg, var(--navy) 0%, #0a4a7a 100%);
    color: #fff;
    border-radius: 16px;
    padding: 26px;
    border-top: 3px solid var(--accent);
    box-shadow: 0 14px 32px rgba(0, 33, 66, 0.18);
}
.contacts-card a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
.contacts-card a:hover { color: var(--accent); }

.page-hero {
    position: relative;
    color: #fff;
    padding: 28px 0 32px;
    margin: 0;
    border: 0;
    background:
        linear-gradient(90deg, rgba(0, 20, 40, 0.88) 0%, rgba(0, 32, 58, 0.7) 70%, rgba(0, 20, 40, 0.5) 100%),
        url("/static/img/objects/parking.jpg") center / cover no-repeat;
}
.page-hero:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.page-hero h1 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    margin: 0 0 6px;
}
.page-hero p { color: #e4edf6; max-width: 760px; margin: 0; }
.page-hero.page-hero--object {
    background:
        linear-gradient(90deg, rgba(0, 20, 40, 0.82), rgba(0, 32, 58, 0.55)),
        url("/static/img/objects/sochi.jpg") center / cover no-repeat;
}
.page {
    padding: 28px 0 56px;
    background:
        linear-gradient(180deg, rgba(238, 242, 246, 0.97), rgba(238, 242, 246, 0.98)),
        var(--floor-grid);
    background-size: auto, 28px 28px;
}
/* Remove seam between navy subnav and page hero */
.subnav + main > .page-hero:first-child,
main > .page-hero:first-child {
    margin-top: 0;
}
.prose { max-width: 860px; }
.prose p, .prose li { color: #334155; }
.prose h2 { margin: 28px 0 10px; font-size: 1.45rem; }
.prose h3 { margin: 22px 0 8px; font-size: 1.15rem; }
.prose ul { margin: 0 0 16px; padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--navy); }
.svc-intro { background: #fff; padding: 36px 0 8px; }
.svc-intro .prose { max-width: none; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc-grid--sub { margin-top: 8px; }
.svc-card {
    background: #f7f8fa; border-radius: 16px; padding: 22px 20px 18px;
    box-shadow: 0 8px 24px rgba(16, 36, 56, 0.04);
    display: flex; flex-direction: column;
}
.svc-card--link { color: inherit; }
.svc-card__main {
    color: inherit; display: flex; flex-direction: column; flex: 1;
    width: 100%; background: none; border: 0; padding: 0; text-align: left; font: inherit; cursor: pointer;
}
.svc-card__kids button {
    color: var(--navy); background: #fff; border: 0; border-radius: 999px;
    padding: 5px 10px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.svc-panel {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(760px, calc(100% - 24px));
    max-width: min(760px, calc(100% - 24px));
    max-height: min(88vh, 920px);
    height: fit-content;
    border: 2px solid #7eb6e0;
    border-radius: 22px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
}
.svc-panel::backdrop { background: rgba(16, 28, 42, .45); }
.svc-panel__close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: #f3f6f9; color: var(--navy); font-size: 22px; cursor: pointer;
}
.svc-panel__scroll {
    max-height: min(88vh, 920px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 28px 28px 8px;
}
.svc-panel__scroll > h2 { margin: 0 40px 8px 0; font-size: clamp(1.25rem, 4vw, 1.7rem); overflow-wrap: anywhere; }
.svc-panel__scroll .prose,
.svc-panel__scroll .gallery,
.svc-panel__scroll .quotes { max-width: 100%; overflow-wrap: anywhere; }
.svc-panel__scroll .gallery__main { min-height: 180px; }
.svc-panel__scroll .gallery__main img { max-width: 100%; height: auto; }
.svc-panel__lead {
    margin: 0 0 16px; padding-bottom: 12px;
    color: #5c6770; border-bottom: 2px solid #f0c7a2;
}
.svc-panel__kids { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.svc-panel__kids button {
    border: 0; background: #eef3f8; color: var(--navy);
    border-radius: 999px; padding: 6px 12px; font-weight: 700; cursor: pointer;
}
.svc-panel__cta {
    margin: 22px 0 20px; padding: 22px 18px; text-align: center;
    background: var(--navy); color: #fff; border-radius: 16px;
}
.svc-panel__cta h3 { margin: 0 0 8px; color: #fff; }
.svc-panel__cta p { margin: 0 0 14px; color: #d7e3ef; }
.svc-panel__phone {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: #fff; border-radius: 12px; padding: 12px 18px; font-weight: 800;
}
.svc-panel__phone:hover { color: #fff; background: #2589b4; }
.page--objects {
    background:
        linear-gradient(180deg, rgba(238, 242, 246, 0.92), rgba(238, 242, 246, 0.97)),
        url("/static/img/notebook-stairs.svg?v=2") right -40px top -20px / 320px 320px no-repeat,
        var(--floor-grid);
    background-size: auto, 320px 320px, 28px 28px;
}
.obj-filters {
    position: relative;
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    padding: 16px 18px 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 250, 253, 0.96) 100%);
    border: 1px solid rgba(0, 51, 102, 0.1);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.obj-filters__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}
.obj-filters__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid rgba(0, 51, 102, 0.14);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.obj-filters__toggle:hover { border-color: var(--navy); }
.obj-filters__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-top: -4px;
}
.obj-filters.is-collapsed .obj-filters__chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
}
.obj-filters__body {
    display: grid;
    gap: 16px;
    padding-top: 4px;
    border-top: 1px solid rgba(0, 51, 102, 0.08);
}
.obj-filters.is-collapsed .obj-filters__body { display: none; }
.obj-filters__hint {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.obj-filters__group { display: grid; gap: 10px; }
.obj-filters__label {
    display: block;
    width: auto;
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6a7785;
}
.obj-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.obj-filters__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.obj-filters__chips label,
.obj-filters__all {
    display: inline-flex;
    align-items: center;
    background: #eef3f8;
    color: var(--navy);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.obj-filters__all {
    padding: 10px 18px;
    font-size: 15px;
}
.obj-filters__chips label:hover {
    border-color: rgba(0, 51, 102, 0.22);
    background: #fff;
    transform: translateY(-1px);
}
.obj-filters__input:checked + label,
.obj-filters__input:checked + .obj-filters__all {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    box-shadow: 0 6px 16px rgba(0, 51, 102, 0.18);
}
.obj-filters__input:focus-visible + label,
.obj-filters__input:focus-visible + .obj-filters__all {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.obj-filters:has(input[value="sklad"]:checked) ~ .cards > a:not([data-obj-types*="sklad"]),
.obj-filters:has(input[value="ofis"]:checked) ~ .cards > a:not([data-obj-types*="ofis"]),
.obj-filters:has(input[value="shop"]:checked) ~ .cards > a:not([data-obj-types*="shop"]),
.obj-filters:has(input[value="prom"]:checked) ~ .cards > a:not([data-obj-types*="prom"]),
.obj-filters:has(input[value="parking"]:checked) ~ .cards > a:not([data-obj-types*="parking"]),
.obj-filters:has(input[value="club"]:checked) ~ .cards > a:not([data-obj-types*="club"]),
.obj-filters:has(input[value="poliepofleks"]:checked) ~ .cards > a:not([data-obj-types*="poliepofleks"]),
.obj-filters:has(input[value="poliurefleks"]:checked) ~ .cards > a:not([data-obj-types*="poliurefleks"]),
.obj-filters:has(input[value="poliure_tonko"]:checked) ~ .cards > a:not([data-obj-types*="poliure_tonko"]),
.obj-filters:has(input[value="poliure_emal"]:checked) ~ .cards > a:not([data-obj-types*="poliure_emal"]),
.obj-filters:has(input[value="beton"]:checked) ~ .cards > a:not([data-obj-types*="beton"]) {
    display: none !important;
}
.svc-card h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.svc-card p { margin: 0 0 14px; color: #5b6773; font-size: 15px; flex: 1; }
.svc-card__more { color: var(--navy); font-weight: 800; font-size: 14px; }
.svc-card__kids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e4e9ef; }
.svc-card__kids a {
    color: var(--navy); background: #fff; border-radius: 999px;
    padding: 5px 10px; font-size: 13px; font-weight: 700;
}
.svc-sub__title { margin: 36px 0 16px; }
.table-wrap { overflow-x: auto; margin: 8px 0 18px; }
.prose-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose-table td { border: 1px solid #d5dde6; padding: 8px 10px; vertical-align: top; }
.prose-table tr:first-child td { background: var(--navy); color: #fff; font-weight: 700; }
.quotes { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.quote { margin: 0; display: flex; align-items: flex-start; gap: 10px; }
.quote__ava {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--navy); color: #fff;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 800;
    margin-top: 18px;
}
.quote__body { flex: 1; min-width: 0; max-width: 520px; }
.quote__name { display: block; margin: 0 0 4px 12px; font-size: 12px; font-weight: 700; color: #8b97a3; }
.quote p {
    margin: 0; padding: 10px 14px;
    background: #f4f7fa; color: #2c3640;
    border-radius: 16px 16px 16px 5px;
    font-size: 15px; line-height: 1.45;
}
.quote:not(:has(.quote__name)) .quote__ava { margin-top: 0; }

.product { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.product__img {
    background-color: #ececec;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.product__img img {
    display: block;
    width: 100%;
    height: auto;
}

.product-related {
    position: relative;
    margin-top: 8px;
    padding: 48px 0 56px;
    background-color: #e8eef4;
    background-image: var(--floor-grid);
    background-size: 24px 24px;
    border-top: 1px solid rgba(0, 51, 102, 0.08);
}
.product-related__head {
    max-width: 40rem;
    margin-bottom: 28px;
}
.product-related__head h2 {
    margin: 0 0 8px;
    color: var(--navy);
}
.product-related__head p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}
.product-related__more {
    font-weight: 700;
    font-size: 14px;
}
.product-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.product-related__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--paper);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 51, 102, 0.08);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
.product-related__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 33, 66, 0.14);
}
.product-related__img {
    display: block;
    background: #ececec;
}
.product-related__img img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .35s ease;
}
.product-related__card:hover .product-related__img img {
    transform: scale(1.03);
}
.product-related__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 18px;
    flex: 1;
}
.product-related__body h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    min-height: 2.7em;
}
.product-related__body h3 a { color: var(--ink); }
.product-related__body h3 a:hover { color: var(--navy); }
.product-related__price {
    margin: 0;
    margin-top: auto;
    color: var(--navy);
    font-weight: 800;
    font-size: 16px;
}
.product-related__price small {
    font-weight: 600;
    font-size: 12px;
    color: var(--muted);
}
.product-related__body .btn {
    width: 100%;
    justify-content: center;
}
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 24px; }
.meta div { background: #eef3f8; border-radius: 12px; padding: 12px; }
.stepper {
    display: inline-flex;
    align-items: stretch;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 14px;
}
.cart-table .stepper { margin-bottom: 0; }
.stepper button {
    width: 40px;
    border: 0;
    background: #f3f6fa;
    color: var(--navy);
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.stepper button:hover { background: #e6edf5; }
.stepper__value {
    width: 52px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    font: inherit;
    font-weight: 800;
    color: var(--ink);
    background: #fff;
    padding: 0;
}
.stepper__value:focus { outline: none; }
.cart-remove {
    border: 0;
    background: transparent;
    color: #8d2a2a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
}
.cart-remove:hover { color: var(--danger); }

.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: 12px; border: 1px solid var(--line); }
.table--admin {
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px #e4e9ef;
}
.table--admin thead th {
    background: #f3f6f9;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    border: 0;
    border-bottom: 1px solid #e4e9ef;
    padding: 14px 12px;
    text-align: center;
    vertical-align: middle;
}
.table--admin tbody td {
    border: 0;
    border-bottom: 1px solid #eef2f6;
    padding: 14px 12px;
    text-align: center;
    vertical-align: middle;
}
.table--admin tbody tr:last-child td { border-bottom: 0; }
.table--admin tbody tr:hover td { background: #fafbfd; }
.table__num { width: 56px; color: var(--muted); font-weight: 700; }
.table__msg { max-width: 240px; text-align: left !important; }
.table__muted { color: var(--muted); font-size: 13px; }
.table__empty { color: var(--muted); padding: 28px 12px !important; }
.admin-section-title { margin: 36px 0 14px; font-size: 1.25rem; }
.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; width: auto; }

.footer {
    background: var(--navy-2);
    color: #d5deea;
    padding: 48px 0 24px;
    margin-top: auto;
    flex-shrink: 0;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer a { display: block; color: #fff; margin: 6px 0; }
.footer__brand, .footer__title { color: #fff; font-weight: 800; }
.footer__desc { margin: 0; }
.footer__copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

.admin-body { background: #eef2f6; font-family: Manrope, sans-serif; margin: 0; }
.admin-wrap { width: min(1100px, calc(100% - 24px)); margin: 40px auto; }
.admin-card { background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.admin-nav { display: flex; gap: 12px; margin-bottom: 18px; }
.admin-nav .btn--line { width: auto; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fde7e7; color: #9d1c1c; font-size: 12px; font-weight: 700; }
.badge--ok { background: #e5f6df; color: #146106; }
.btn--danger { background: #fff; color: #b42318; border: 1px solid #f1b8b2; padding: 8px 14px; }
.btn--danger:hover { background: #fdecea; color: #b42318; }
.table__actions {
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
.table__actions form { margin: 0; }
.table__actions .btn--line { width: auto; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-flash { background: #fff4e0; border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; }
.admin-hint { color: var(--muted); font-size: 14px; margin: -4px 0 8px; }
.admin-photo { display: flex; gap: 14px; align-items: center; }
.admin-photo img { width: 180px; border-radius: 12px; }
.dash { background: #f7f8fa; border-radius: 16px; padding: 18px 20px; }
.dash__nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.dash__num { background: #fff; border-radius: 12px; padding: 12px 14px; }
.dash__num strong { display: block; font-size: 28px; color: var(--navy); line-height: 1.1; }
.dash__num span { color: var(--muted); font-size: 13px; }
.dash__chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; }
.dash__col { display: flex; flex-direction: column; align-items: center; height: 100%; }
.dash__value { font-size: 12px; font-weight: 800; color: var(--navy); min-height: 16px; }
.dash__bar { flex: 1; width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; justify-content: flex-start; background: #e9eef4; border-radius: 6px; overflow: hidden; }
.dash__part { display: block; width: 100%; }
.dash__part--cart { background: var(--navy); }
.dash__part--form { background: var(--accent); }
.dash__label { font-size: 11px; color: var(--muted); margin-top: 4px; }
.dash__legend { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.dash__dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.dash__dot--cart { background: var(--navy); }
.dash__dot--form { background: var(--accent); }
@media (max-width: 700px) {
    .dash__nums { grid-template-columns: repeat(2, 1fr); }
    .dash__label { font-size: 9px; }
}

.about-intro { background: #f6f7f9; padding: 36px 0 28px; }
.about-intro h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.about-intro p { margin: 0; color: #5c6770; font-size: 1.05rem; }
.about-lead { background: #fff; padding: 56px 0; }
.about-lead__grid { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: center; }
.about-lead h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); max-width: 16ch; }
.about-lead p { color: #3d4852; margin: 0 0 14px; }
.about-stats { position: relative; width: 320px; height: 248px; justify-self: end; }
.about-badge, .about-pill {
    border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.about-badge {
    position: absolute; right: 0; top: 36px;
    width: 168px; height: 168px;
    background: var(--navy); color: #fff;
    box-shadow: 0 12px 28px rgba(0, 51, 102, .18);
}
.about-badge strong { font-size: 52px; line-height: .9; display: block; }
.about-badge span { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; margin-top: 4px; }
.about-pill {
    position: absolute;
    width: 112px; height: 112px;
    background: #fff; color: var(--navy);
    border: 3px solid var(--navy);
    box-shadow: 0 8px 18px rgba(16, 36, 56, .08);
}
.about-pill strong { font-size: 26px; line-height: 1; }
.about-pill span { display: block; font-size: 12px; font-weight: 700; line-height: 1.15; margin-top: 3px; }
.about-pill--year { left: 8px; top: 0; }
.about-pill--lines { left: 28px; bottom: 0; }
.about-block { background: #fff; padding: 10px 0 64px; }
.about-why { background: #f6f7f9; padding: 64px 0; }
.about-block__title { text-align: center; margin-bottom: 28px; }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-card {
    background: #f7f8fa; border-radius: 16px; padding: 22px 20px 24px;
    box-shadow: 0 8px 24px rgba(16, 36, 56, 0.04);
}
.about-why .about-card { background: #fff; }
.about-card h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.about-card p { margin: 0; color: #5b6773; font-size: 15px; }
.about-ico {
    width: 42px; height: 42px; color: var(--accent);
    display: grid; place-items: center;
}
.about-ico svg { width: 28px; height: 28px; }
.about-guarantee {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
    background: #e7f3fb;
    border: 2px solid #7eb6e0;
    border-radius: 16px;
    padding: 22px 24px;
}
.about-guarantee h3 { margin: 0 0 8px; }
.about-guarantee p { margin: 0; color: #334155; }
.about-ico--shield { color: #c0392b; }
.about-note { text-align: center; max-width: 760px; margin: 28px auto 0; color: #3d4852; }

/* Floating site consultant (blue) */
.consultant-fab {
    position: fixed;
    right: 0;
    bottom: 28px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0 0 0 16px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: #fff;
    filter: drop-shadow(0 8px 18px rgba(0, 51, 102, 0.28));
}
.consultant-fab__label {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 22px 0 18px;
    margin-right: -10px;
    border-radius: 999px 0 0 999px;
    background: var(--navy);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s ease;
}
.consultant-fab:hover .consultant-fab__label { background: #02457f; }
.consultant-fab__icon {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 36, 56, 0.18);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.consultant-fab__icon svg {
    display: block;
    position: relative;
    z-index: 1;
}
.consultant-fab__icon:after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: 2px 2px 4px rgba(16, 36, 56, 0.08);
}

.consultant-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(16, 28, 42, 0.28);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px 16px 96px;
}
body.consultant-open { overflow: hidden; }
.consultant-panel {
    width: min(360px, 100%);
    max-height: min(78vh, 640px);
    border: 1px solid #d7dee6;
    border-radius: 10px;
    padding: 0;
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 36, 56, 0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.consultant-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 0;
}
.consultant-panel__head h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #2c3640;
}
.consultant-panel__close {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9aa3ad;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.consultant-panel__close:hover { color: var(--navy); }
.consultant-panel__form {
    display: grid;
    gap: 10px;
    padding: 14px 16px 18px;
    overflow: auto;
    max-height: min(68vh, 560px);
}
.consultant-panel__hint {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #e7f3fb;
    color: #334155;
    font-size: 14px;
    line-height: 1.4;
}
.consultant-field {
    position: relative;
    display: block;
}
.consultant-field input,
.consultant-field textarea {
    width: 100%;
    border: 1px solid #cfd6de;
    border-radius: 8px;
    padding: 11px 28px 11px 12px;
    font: inherit;
    background: #fff;
    color: var(--ink);
    resize: vertical;
}
.consultant-field textarea { min-height: 88px; }
.consultant-field input:focus,
.consultant-field textarea:focus {
    outline: 2px solid rgba(0, 51, 102, 0.25);
    border-color: var(--navy);
}
.consultant-field__req {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #c22828;
    font-weight: 700;
    pointer-events: none;
}
.consultant-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    font-size: 13px;
    line-height: 1.45;
    color: #44505c;
    cursor: pointer;
}
.consultant-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--navy);
    flex: 0 0 18px;
}
.consultant-agree span { flex: 1; min-width: 0; }
.consultant-agree a { color: var(--navy); font-weight: 700; }
.consultant-panel__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: var(--navy);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.consultant-panel__submit:hover { background: #02457f; }

/* Tablet / narrow desktop */
@media (max-width: 980px) {
    .nav { display: none; }
    .header__end .chip { display: none; }
    .header__end { gap: 2px; }
    .burger { display: block; padding: 10px 6px; }
    .cart-link--icon { width: 42px; height: 42px; }
    .subnav { display: none; }
    .logo img { height: 44px; max-width: min(200px, 48vw); }
    .split, .request__grid, .product,
    .about-lead__grid, .catalog-layout { grid-template-columns: 1fr; }
    .cards--3, .objects-row, .news-item {
        grid-template-columns: 1fr;
    }
    .about-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .about-card { padding: 14px 14px 16px; border-radius: 14px; }
    .about-card h3 { font-size: 15px; margin: 8px 0 6px; }
    .about-card p { font-size: 13px; line-height: 1.4; }
    .about-ico { width: 36px; height: 36px; }
    .about-ico svg { width: 22px; height: 22px; }
    .about-lead { padding: 28px 0 24px; }
    .about-lead h2 { font-size: 1.45rem; margin-bottom: 12px; }
    .about-lead p { font-size: 15px; margin-bottom: 12px; }
    .about-block { padding: 4px 0 36px; }
    .about-why { padding: 36px 0; }
    .about-block__title { margin-bottom: 18px; font-size: 1.35rem; }
    .about-guarantee {
        margin-top: 18px;
        gap: 12px;
        padding: 16px;
        grid-template-columns: 40px 1fr;
    }
    .about-guarantee h3 { font-size: 16px; }
    .about-guarantee p { font-size: 14px; line-height: 1.45; }
    .about-note { margin-top: 18px; font-size: 14px; text-align: left; }
    .news-item--compact {
        grid-template-columns: 72px 1fr;
        gap: 10px;
    }
    .cards--2, .cards--4, .cards--6, .svc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .svc-card { padding: 14px 12px 12px; }
    .svc-card h3 { font-size: 15px; }
    .svc-card p { font-size: 13px; }
    .ral-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .ral-swatch { min-height: 58px; font-size: 11px; }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px 20px;
    }
    .footer__about { grid-column: 1 / -1; }
    .product-related { padding: 36px 0 40px; }
    .product-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 8px;
    }
    .stat {
        min-height: 0;
        padding: 14px 14px;
    }
    .stat strong { font-size: 28px; }
    .section, .request { padding: 40px 0; }
    .section__head { flex-direction: column; align-items: flex-start; }
    .objects-head { flex-direction: column; align-items: flex-start; }
    .hero { min-height: 0; }
    .hero__content { padding: 36px 0; max-width: none; }
    .hero__btns { flex-direction: column; align-items: stretch; }
    .hero__btns .btn { width: 100%; }
    .notebook-deco { width: 196px; height: 196px; background-size: 196px 196px; right: 28px; top: 28px; }
    .gallery__main { min-height: 220px; }
    .gallery__nav { width: 36px; height: 36px; font-size: 22px; }
    .objects-track .object-tile {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }
    .catalog-layout { gap: 16px; }
    .btn.filter-toggle { display: inline-flex; justify-self: start; }
    .filter {
        position: static;
        display: none;
        max-height: none;
        overflow: visible;
    }
    .filter.is-open { display: block; }
    .about-stats {
        position: static;
        width: 100%;
        height: auto;
        justify-self: stretch;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        align-items: stretch;
        margin-top: 8px;
    }
    .about-badge, .about-pill {
        position: static;
        width: auto;
        height: auto;
        min-height: 96px;
        border-radius: 16px;
        padding: 12px 8px;
    }
    .about-badge strong { font-size: 32px; }
    .about-badge span { font-size: 12px; margin-top: 2px; }
    .about-pill { border-width: 2px; }
    .about-pill strong { font-size: 22px; }
    .about-pill span { font-size: 11px; }
    .about-lead h2 { max-width: none; }
    .svc-panel {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        max-height: min(92vh, 92dvh);
        border-radius: 18px;
    }
    .svc-panel__scroll {
        max-height: min(92vh, 92dvh);
        padding: 18px 14px 8px;
    }
    .svc-panel__scroll > h2 { font-size: 1.25rem; margin-right: 36px; }
    .svc-panel__cta { padding: 18px 14px; }
    .page-hero { padding: 16px 0 14px; }
    .page-hero h1 { font-size: 1.35rem; overflow-wrap: anywhere; }
    .cart-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .obj-filters {
        padding: 16px 16px 18px 18px;
        gap: 14px;
    }
    .obj-filters__chips label,
    .obj-filters__all { font-size: 13px; padding: 7px 11px; }
    .prose { max-width: none; overflow-wrap: anywhere; }
    .prose p, .svc-intro .prose p { font-size: 15px; }
    .admin-wrap { margin: 20px auto; }
    .card h3 { min-height: 0; }
    .card--room p,
    .room-grid .svc-card__main p {
        -webkit-line-clamp: 4;
    }
    .svc-card { padding: 18px 16px 16px; }
    .about-block__title { font-size: 1.35rem; text-align: left; }
    .consultant-fab { bottom: 18px; }
    .consultant-fab__label { font-size: 14px; height: 38px; padding: 0 18px 0 14px; }
    .consultant-fab__icon { width: 50px; height: 50px; }
    .consultant-fab__icon svg { width: 22px; height: 22px; }
    .consultant-overlay { padding: 12px 12px 84px; }
    .consultant-panel {
        width: min(400px, 100%);
        max-height: min(80vh, 80dvh);
    }
    input, textarea, select { font-size: 16px; }
}

/* Phone */
@media (max-width: 640px) {
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 4px;
    }
    .stat {
        padding: 12px 10px;
        min-height: 0;
        border-radius: 12px;
    }
    .stat strong { font-size: 24px; margin-bottom: 4px; }
    .stat span { font-size: 12px; line-height: 1.3; }
    .stats__note { font-size: 11px; margin-top: 2px; }
    .cards--4, .cards--6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .card--room { padding: 12px 12px 12px; }
    .card--room .card__icon { width: 36px; height: 36px; margin-bottom: 8px; }
    .card--room .card__icon svg { width: 20px; height: 20px; }
    .card--room h3 { font-size: 14px; margin-bottom: 4px; }
    .card--room p {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
    .section--muted .card {
        padding: 14px 12px;
    }
    .section--muted .card h3 { font-size: 15px; }
    .section--muted .card p { font-size: 13px; margin: 0; }
    .product-related__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-related__body { padding: 10px 10px 12px; gap: 8px; }
    .product-related__body h3 { font-size: 13px; min-height: 0; }
    .product-related__price { font-size: 14px; }
    .product-related__body .btn { font-size: 12px; padding: 7px 8px; }
    .container { width: calc(100% - 24px); }
    .header__row { padding: 8px 0; gap: 8px; }
    .logo img { height: 36px; max-width: min(160px, 46vw); }
    .header__end { gap: 0; }
    .cart-link--icon { width: 40px; height: 40px; }
    .cart-link--icon svg { width: 26px; height: 26px; }
    .cart-link--icon .cart-count {
        position: absolute;
        top: -2px;
        right: -2px;
        min-width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 11px;
    }
    .burger { padding: 8px 4px; }
    h1 { font-size: clamp(1.35rem, 6.5vw, 1.85rem); }
    h2 { font-size: clamp(1.2rem, 5.5vw, 1.55rem); }
    .section, .request, .objects-strip { padding: 28px 0; }
    .page { padding: 20px 0 36px; }
    .svc-intro { padding: 20px 0 4px; }
    .about-block { padding: 4px 0 28px; }
    .about-why { padding: 28px 0; }
    .about-cards { gap: 10px; }
    .about-card { padding: 12px 12px 14px; }
    .about-card h3 { font-size: 14px; }
    .about-card p {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .about-stats { gap: 8px; }
    .about-badge, .about-pill { min-height: 88px; padding: 10px 6px; border-radius: 14px; }
    .about-badge strong { font-size: 28px; }
    .about-badge span, .about-pill span { font-size: 11px; line-height: 1.15; }
    .about-pill strong { font-size: 20px; }
    .about-guarantee { padding: 14px; border-radius: 14px; }
    .about-guarantee p { font-size: 13px; }
    .hero__content { padding: 24px 0; }
    .hero__lead { font-size: 15px; line-height: 1.45; }
    .hero h1 { font-size: clamp(1.45rem, 7vw, 2rem); overflow-wrap: anywhere; }
    .notebook-deco { display: none; }
    .card:not(.card--product):not(.card--object) { padding: 16px; }
    .card--object .card__body { padding: 12px 14px 16px; }
    .card__img { min-height: 130px; }
    .card--product .card__body { padding: 12px 14px 16px; }
    .news-item { gap: 6px; padding: 14px; }
    .news-item--compact {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 12px;
    }
    .news-item--compact time { font-size: 12px; }
    .news-item--compact h3 { font-size: 14px; }
    .news-item--compact p { font-size: 12px; -webkit-line-clamp: 2; }
    .ral-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
    .ral-swatch { min-height: 48px; font-size: 10px; padding: 4px; }
    .cards--2 { gap: 10px; }
    .meta { grid-template-columns: 1fr; }
    .gallery__thumb { flex-basis: 84px; height: 58px; }
    .contacts-card { padding: 18px; }
    .btn { max-width: 100%; }
    .product form .btn,
    .stepper { max-width: 100%; }
    .footer {
        padding: 22px 0 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px 14px;
    }
    .footer__about { grid-column: 1 / -1; margin-bottom: 2px; }
    .footer__desc { display: none; }
    .footer__brand { margin: 0 0 4px; font-size: 15px; }
    .footer__title { margin: 0 0 4px; font-size: 13px; }
    .footer a {
        margin: 3px 0;
        font-size: 13px;
        line-height: 1.35;
    }
    .footer__copy {
        margin-top: 14px;
        padding-top: 10px;
        font-size: 12px;
    }
    .svc-panel {
        width: calc(100% - 12px);
        max-width: calc(100% - 12px);
        max-height: min(94vh, 94dvh);
        border-radius: 14px;
        border-width: 1px;
    }
    .svc-panel__scroll {
        max-height: min(94vh, 94dvh);
        padding: 16px 12px 6px;
    }
    .svc-panel__scroll > h2 { font-size: 1.15rem; }
    .svc-panel__lead { font-size: 14px; }
    .svc-panel__close { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 20px; }
    .prose-table { font-size: 13px; }
    .prose-table td { padding: 6px 8px; }
    .table--stack thead { display: none; }
    .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
    .table--stack { background: none; }
    .table--stack tr { background: #fff; border-radius: 14px; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
    .table--stack td { border: 0; border-bottom: 1px solid #eef2f6; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
    .table--stack td:first-child { background: var(--navy); color: #fff; font-weight: 700; text-align: left; }
    .table--stack td:first-child::before { display: none; }
    .table--stack td:last-child { border-bottom: 0; font-weight: 800; color: var(--navy); }
    .table--stack td::before { content: attr(data-label); color: var(--muted); font-weight: 600; text-align: left; }
    .cart-table th, .cart-table td { padding: 10px; }
    .admin-wrap { width: calc(100% - 16px); margin: 8px auto 24px; }
    .admin-card { padding: 16px; border-radius: 14px; }
    .admin-nav { flex-wrap: wrap; gap: 8px; }
    .admin-nav .btn { padding: 9px 12px; font-size: 14px; }
    .admin-head h1 { font-size: 1.6rem; margin: 0; }
    .admin-photo { flex-direction: column; align-items: flex-start; }
    .table--admin { min-width: 620px; }
    .table--admin td { white-space: nowrap; }
    .table--admin .table__msg { white-space: normal; min-width: 180px; }
    .dash { padding: 14px; }
    .dash__chart { gap: 3px; height: 140px; }
    .dash__col:nth-child(even) .dash__label { visibility: hidden; }
    .price { font-size: 20px; }
    .mobile-menu { padding: 8px 14px 16px; }
    .mobile-menu a { padding: 11px 0; font-size: 15px; }
    .consultant-fab__label { display: none; }
    .consultant-fab { right: 10px; bottom: max(14px, env(safe-area-inset-bottom)); padding: 0; }
    .consultant-overlay { padding: 8px 8px 78px; align-items: center; justify-content: center; }
    .consultant-panel {
        width: 100%;
        max-height: min(82vh, 82dvh);
    }
    .consultant-panel__form { max-height: min(70vh, 70dvh); }
}
