/* =========================
   Переменные
========================= */

:root {
    --ink: #1b2633;
    --muted: #5b6673;
    --navy: #1f3a5f;
    --navy-2: #2b4f7d;
    --accent: #f0b429;
    --accent-2: #f6d27a;
    --accent-ink: #3b2a00;
    --bg: #ffffff;
    --soft: #fbf7ef;
    --soft-2: #f3f6fa;
    --line: #e7e1d4;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(27, 38, 51, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy-2);
}

a:hover {
    color: var(--navy);
}

h1, h2, h3 {
    line-height: 1.2;
    color: var(--navy);
}

h2 {
    font-size: clamp(26px, 3.4vw, 34px);
    margin-bottom: 18px;
}

h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

p + p {
    margin-top: 10px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 860px;
}

section {
    padding: 64px 0;
}

.section-lead {
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 28px;
}

.muted {
    color: var(--muted);
    margin-top: 14px;
}

/* =========================
   Кнопки
========================= */

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-weight: 700;
    padding: 13px 24px;
    border: 2px solid var(--accent);
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
    background: #e3a414;
    border-color: #e3a414;
    color: var(--accent-ink);
}

.btn--ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--ghost:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn--wa {
    background: #1fa855;
    border-color: #1fa855;
    color: #fff;
}

.btn--tg {
    background: #2a9bd6;
    border-color: #2a9bd6;
    color: #fff;
}

.btn--wa:hover,
.btn--tg:hover {
    filter: brightness(0.92);
    color: #fff;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 15px;
}

/* =========================
   Шапка
========================= */

.header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo__name {
    font-weight: 800;
    font-size: 21px;
    color: var(--navy);
}

.logo__sub {
    font-size: 13px;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.nav a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--navy-2);
}

.header__phone {
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
}

/* =========================
   Первый экран
========================= */

.hero {
    background: var(--soft);
    padding: 56px 0;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(30px, 4.2vw, 46px);
    margin-bottom: 18px;
}

.hero__lead {
    font-size: 19px;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero__facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero__facts li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 15px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* =========================
   Таблицы цен
========================= */

.prices-section {
    background: var(--bg);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.prices {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.prices caption {
    text-align: left;
    padding: 12px 16px;
    color: var(--muted);
    font-size: 15px;
}

.prices th,
.prices td {
    padding: 11px 16px;
    border-top: 1px solid var(--line);
    text-align: right;
    white-space: nowrap;
}

.prices thead th {
    background: var(--soft-2);
    color: var(--navy);
}

.prices thead th a {
    color: var(--navy);
}

.prices th:first-child,
.prices td:first-child {
    text-align: left;
}

.prices tbody th {
    font-weight: 600;
}

.prices tbody tr:nth-child(even) {
    background: #fcfbf8;
}

.prices tbody tr:hover {
    background: #fff6dc;
}

.prices--single td,
.prices--single th {
    text-align: left;
    white-space: normal;
}

/* =========================
   Карточки
========================= */

.cards {
    display: grid;
    gap: 20px;
}

.cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards--4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.card p {
    color: var(--muted);
}

.card__rec {
    font-weight: 700;
    margin-bottom: 8px;
}

.card .card__label {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.choose,
.why {
    background: var(--soft);
}

/* =========================
   Товары
========================= */

.pgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.pcard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.pcard:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.pcard__img {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.pcard__img img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    width: 100%;
}

.pcard__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    flex: 1;
}

.pcard__title {
    font-size: 21px;
    margin: 0;
}

.pcard__title a {
    color: var(--navy);
    text-decoration: none;
}

.pcard__meta {
    font-size: 14px;
    color: var(--muted);
}

.pcard__price {
    margin-top: auto;
}

.pcard__body .btn {
    align-self: flex-start;
}

/* =========================
   Маркировка
========================= */

.marking__code {
    display: flex;
    gap: 8px;
    margin-bottom: 26px;
}

.mk {
    font-size: clamp(34px, 6vw, 54px);
    font-weight: 800;
    padding: 4px 18px;
    border-radius: 12px;
    color: #fff;
}

.card .mk--a { color: var(--navy); }
.card .mk--b { color: #b07800; }
.card .mk--c { color: #2e7d5b; }

.marking__code .mk--a { background: var(--navy); color: #fff; }
.marking__code .mk--b { background: #c78a00; color: #fff; }
.marking__code .mk--c { background: #2e7d5b; color: #fff; }

/* =========================
   Применение
========================= */

.uses__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.uses__list li {
    background: var(--soft-2);
    border-radius: 10px;
    padding: 14px 16px;
    font-weight: 600;
}

/* =========================
   Как заказать
========================= */

.steps__list {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.steps__list li {
    counter-increment: step;
    border-top: 3px solid var(--accent);
    padding-top: 16px;
}

.steps__list li::before {
    content: counter(step);
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.steps__list p {
    color: var(--muted);
}

/* =========================
   Прайс-лист
========================= */

.pricelist {
    padding-top: 28px;
}

.pricelist__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pricelist__head h1 {
    font-size: clamp(26px, 3.6vw, 36px);
}

.pricelist__date {
    color: var(--muted);
}

.pricelist__contacts p + p {
    margin-top: 2px;
}

.pricelist__actions {
    margin-bottom: 20px;
}

.pricelist__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 32px;
}

.pricelist__cols h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.pricelist__cols ul {
    padding-left: 20px;
}

/* =========================
   Доставка
========================= */

.delivery {
    background: var(--soft);
}

.delivery__inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: center;
}

.delivery__inner img {
    border-radius: var(--radius);
}

.delivery .btn {
    margin-top: 10px;
}

/* =========================
   Заявка
========================= */

.order {
    background: var(--navy);
    color: #fff;
}

.order h2 {
    color: #fff;
}

.order .section-lead {
    color: #d5deea;
}

.order .section-lead a {
    color: var(--accent-2);
    font-weight: 700;
}

.order__form {
    background: #fff;
    color: var(--ink);
    border-radius: var(--radius);
    padding: 24px;
}

.order__fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.order label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
}

.order select,
.order input,
.order textarea {
    font: inherit;
    color: var(--ink);
    padding: 11px 12px;
    border: 1px solid #cfd6df;
    border-radius: 10px;
    background: #fff;
    width: 100%;
}

.order textarea {
    resize: vertical;
}

.order__lines {
    list-style: none;
    margin-top: 16px;
}

.order__lines li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}

.order__lines li.is-current {
    color: var(--muted);
}

.order__remove {
    background: none;
    border: none;
    color: #b3261e;
    font: inherit;
    cursor: pointer;
    padding: 2px 6px;
}

.order__summary {
    margin: 16px 0;
}

.order__total {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
}

.order__delivery {
    color: var(--muted);
}

.order__delivery.is-free {
    color: #2e7d5b;
    font-weight: 700;
}

.order__comment {
    margin-bottom: 18px;
}

.order__send {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order__note {
    margin-top: 14px;
    padding: 12px 14px;
    background: #eaf6ef;
    border-radius: 10px;
    color: #1d5a3f;
}

/* =========================
   Вопросы
========================= */

.faq__item {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.faq__item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
}

.faq__item p {
    margin-top: 10px;
    color: var(--muted);
}

/* =========================
   Контакты
========================= */

.contacts {
    background: var(--soft-2);
}

.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 36px;
    align-items: start;
}

.contacts__phone {
    font-size: 28px;
    font-weight: 800;
}

.contacts__phone a {
    color: var(--navy);
    text-decoration: none;
}

.cities {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cities li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 14px;
}

.contacts__map {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: var(--radius);
    background: #e9edf2;
}

/* =========================
   Внутренние страницы
========================= */

.crumbs {
    padding-top: 18px;
    font-size: 14px;
    color: var(--muted);
}

.page-head {
    padding-bottom: 0;
    padding-top: 28px;
}

.page-head h1,
.product h1,
.article h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 14px;
}

.page-head--404 {
    padding: 90px 0;
}

.product {
    padding-top: 28px;
}

.product__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.product__img {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.product__price {
    font-size: 22px;
    margin-bottom: 16px;
}

.specs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
}

.specs th,
.specs td {
    text-align: left;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.specs th {
    width: 40%;
    color: var(--muted);
    font-weight: 600;
}

.product-text {
    background: var(--soft);
}

.product-text__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
}

.checks {
    list-style: none;
}

.checks li {
    padding: 8px 0 8px 30px;
    position: relative;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 15px;
    width: 12px;
    height: 7px;
    border-left: 3px solid #2e7d5b;
    border-bottom: 3px solid #2e7d5b;
    transform: rotate(-45deg);
}

.article {
    padding-top: 28px;
    padding-bottom: 64px;
}

.article__lead {
    font-size: 19px;
    color: var(--muted);
}

.article h2 {
    font-size: 26px;
    margin-top: 36px;
    margin-bottom: 12px;
}

.article ul {
    padding-left: 22px;
    margin: 10px 0;
}

.article li + li {
    margin-top: 6px;
}

.article .table-wrap {
    margin: 12px 0 24px;
}

/* =========================
   Подвал
========================= */

.footer {
    background: #15202d;
    color: #c4ccd6;
    padding: 48px 0 24px;
    font-size: 15px;
}

.footer a {
    color: #fff;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer__brand,
.footer__title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer__brand {
    font-size: 20px;
}

.footer ul {
    list-style: none;
}

.footer li + li {
    margin-top: 6px;
}

.footer__bottom {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #2a3747;
    font-size: 13px;
    color: #8c97a4;
}

/* Нижняя панель связи — только на телефонах */
.mbar {
    display: none;
}

/* =========================
   Адаптив
========================= */

@media (max-width: 1000px) {
    .header__inner {
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
        gap: 18px;
        font-size: 15px;
        padding-bottom: 2px;
    }

    .header__phone {
        margin-left: auto;
    }

    .cards--4,
    .uses__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .order__fields {
        grid-template-columns: 1fr 1fr;
    }

    .order__fields label:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    body {
        font-size: 16px;
        padding-bottom: 64px;
    }

    section {
        padding: 44px 0;
    }

    .hero {
        padding: 32px 0 40px;
    }

    .steps__list,
    .pricelist__cols,
    .hero__inner,
    .product__inner,
    .product-text__inner,
    .contacts__inner,
    .delivery__inner,
    .footer__grid,
    .cards--3 {
        grid-template-columns: 1fr;
    }

    .hero__img {
        order: -1;
    }

    .hero__img img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .delivery__inner img {
        max-width: 300px;
    }

    .header__phone {
        font-size: 15px;
    }

    .logo__sub {
        display: none;
    }

    .mbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        gap: 8px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    }

    .mbar__btn {
        flex: 1;
        text-align: center;
        padding: 11px 6px;
        border-radius: 10px;
        font-weight: 700;
        text-decoration: none;
        background: var(--soft-2);
        color: var(--navy);
    }

    .mbar__btn--main {
        background: var(--accent);
        color: var(--accent-ink);
    }
}

@media (max-width: 520px) {
    .cards--4,
    .uses__list,
    .order__fields {
        grid-template-columns: 1fr;
    }

    .order__send .btn {
        width: 100%;
        text-align: center;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .nav {
        gap: 14px;
        font-size: 14px;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .logo__name {
        font-size: 18px;
    }

    .nav__more {
        display: none;
    }

    /* на телефоне звонок — в нижней панели */
    .header__phone {
        display: none;
    }

    .prices th,
    .prices td {
        padding: 9px 10px;
        font-size: 15px;
    }
}

/* =========================
   Печать (прайс-лист)
========================= */

@media print {
    body {
        font-size: 12px;
        padding: 0;
    }

    .header,
    .footer,
    .mbar,
    .crumbs,
    .pricelist__actions {
        display: none !important;
    }

    section,
    .pricelist {
        padding: 0;
    }

    .table-wrap {
        overflow: visible;
        border: none;
    }

    .prices th,
    .prices td {
        padding: 4px 8px;
    }

    .prices thead th a {
        text-decoration: none;
    }

    .pricelist__cols {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-top: 18px;
    }

    .pricelist__cols h2 {
        font-size: 16px;
    }

    .specs th,
    .specs td {
        padding: 3px 6px 3px 0;
        font-size: 11px;
    }
}
