/* =========================================================================
   СпиртВилл — тема «промышленный бизнес».
   Подключается после style.css: переопределяет токены и ключевые компоненты,
   не меняя разметку и поведение базовых шаблонов.
   ========================================================================= */

/* ------------------------------------------------------------ 1. Токены */
:root {
    --c-ink: #12161b;
    --c-ink-2: #2c333b;
    --c-ink-soft: #4c545e;
    --c-ink-muted: #5f666f;

    --c-bg: #fcfcfb;
    --c-surface: #ffffff;
    --c-surface-2: #f3f3ef;
    --c-line: #e2e2dc;
    --c-line-strong: #cfd0c9;

    --c-brand: #17324a;
    --c-brand-dark: #0e2233;
    --c-brand-light: #2b5472;
    --c-brand-soft: #e9eef2;

    --c-accent: #a9854f;
    --c-accent-strong: #82643a;
    --c-accent-soft: #f3ede3;

    --c-danger: #9c3b32;
    --c-danger-soft: #f7ecea;

    --c-dark: #12161b;
    --c-dark-2: #1b2229;

    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;

    --container: 1240px;
    --gutter: 24px;
    --section-y: clamp(48px, 6vw, 80px);

    --shadow-xs: 0 1px 2px rgba(18, 22, 27, 0.05);
    --shadow-sm: 0 2px 10px rgba(18, 22, 27, 0.06);
    --shadow-md: 0 10px 30px rgba(18, 22, 27, 0.08);
    --shadow-lg: 0 24px 60px rgba(18, 22, 27, 0.12);
    --shadow-brand: 0 10px 26px rgba(23, 50, 74, 0.22);
}

/* --------------------------------------------------------- 2. База и текст */
html {
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    color: var(--c-ink);
    background: var(--c-bg);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.h1, .h2, .h3,
.section__title,
.page-hero__title,
.hero__title,
.product__title,
.category-card__title,
.card__title,
.footer__title,
.cta-block__title,
.block__title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--c-ink);
}

h1 { line-height: 1.1; }
h2 { line-height: 1.18; }
h3 { line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-brand); text-underline-offset: 3px; }
a:hover { color: var(--c-brand-dark); }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-y);
}

.section--muted {
    background: var(--c-surface-2);
    border-block: 1px solid var(--c-line);
}

.section--tight {
    padding-block: clamp(28px, 3vw, 44px);
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 32px;
}

.section__title {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
    margin: 0 0 6px;
}

.section__subtitle {
    color: var(--c-ink-muted);
    font-size: 0.975rem;
    max-width: 62ch;
    margin: 0;
}

/* --------------------------------------------------------------- 3. Шапка */
.header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
}

.header__top {
    background: var(--c-dark);
    color: #b8bec7;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.header__top-inner {
    min-height: 38px;
    gap: 20px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.header__top-item {
    white-space: nowrap;
}

.header__top-link {
    color: #d9dde3;
}

.header__top-item--note {
    margin-left: auto;
    color: #8f979f;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.header__top-item--note + .header__top-item--note {
    margin-left: 16px;
}

.header__main {
    background: var(--c-surface);
}

.logo__image {
    width: 44px;
    height: 44px;
}

.header__main-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "logo . actions"
        "nav nav nav";
    align-items: center;
    gap: 0 24px;
    min-height: 0;
    padding: 14px 0 0;
}

.logo {
    grid-area: logo;
    gap: 12px;
}

.logo__mark {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
}

.logo__image {
    width: 44px;
    height: 44px;
    max-width: none;
}

.logo__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.logo__name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--c-ink);
}

.logo__tagline {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-ink-muted);
    line-height: 1.2;
}

.header__actions {
    grid-area: actions;
    gap: 18px;
}

.header__phone {
    text-align: right;
}

.header__phone-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-ink-muted);
}

.header__phone-value {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.cart-counter {
    border-radius: var(--radius-sm);
}

.nav {
    grid-area: nav;
    margin: 0;
    border-top: 1px solid var(--c-line);
    margin-top: 12px;
}

.nav__list {
    gap: 2px;
    flex-wrap: wrap;
}

.nav__link {
    padding: 12px 14px;
    min-height: 46px;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-ink-2);
}

.nav__link:hover {
    background: var(--c-surface-2);
    color: var(--c-brand);
}

.nav__item.is-active > .nav__link {
    color: var(--c-brand);
    box-shadow: inset 0 -2px 0 var(--c-accent);
}

.burger {
    display: none;
}

/* --------------------------------------------------------------- 4. Кнопки */
.btn {
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.005em;
    padding: 12px 20px;
    border: 1px solid transparent;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn--primary {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: #fff;
}

.btn--primary:hover {
    background: var(--c-brand-dark);
    border-color: var(--c-brand-dark);
    color: #fff;
}

.btn--outline {
    background: transparent;
    border-color: var(--c-line-strong);
    color: var(--c-ink);
}

.btn--outline:hover {
    border-color: var(--c-brand);
    color: var(--c-brand);
    background: var(--c-surface);
}

.btn--ghost {
    color: var(--c-brand);
    padding-inline: 8px;
}

.btn--sm {
    padding: 9px 14px;
    font-size: 0.8125rem;
}

.btn--lg {
    padding: 15px 26px;
    font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- 5. Герой */
.hero {
    background:
        linear-gradient(90deg, rgba(18, 22, 27, 0.035) 1px, transparent 1px) 0 0 / 96px 100%,
        var(--c-surface-2);
    border-bottom: 1px solid var(--c-line);
    padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
}

.hero__content {
    min-width: 0;
}

.hero__slogan {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-accent-strong);
    margin: 0 0 18px;
}

.hero__slogan::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--c-accent);
}

.hero__eyebrow {
    display: none;
}

.hero__title {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
    margin: 0 0 20px;
    max-width: 16ch;
}

.hero__lead {
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    color: var(--c-ink-soft);
    max-width: 54ch;
    margin: 0 0 26px;
}

.hero__list {
    display: grid;
    gap: 10px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.hero__list li {
    position: relative;
    padding-left: 26px;
    font-size: 0.9375rem;
    color: var(--c-ink-2);
}

.hero__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--c-accent);
    border-bottom: 2px solid var(--c-accent);
    transform: rotate(-45deg);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--c-line-strong);
    padding-top: 18px;
}

.hero__stat {
    min-width: 0;
    padding-right: 16px;
    border-right: 1px solid var(--c-line);
}

.hero__stat:last-child {
    border-right: 0;
    padding-right: 0;
}

.hero__stat dt {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-ink-muted);
    margin-bottom: 4px;
}

.hero__stat dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-ink);
}

.hero__form {
    min-width: 0;
}

.hero__aside {
    display: grid;
    gap: 16px;
}

.hero__media {
    position: relative;
    margin: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 10px;
}

.hero__media-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
    background: var(--c-surface-2);
}

.hero__media-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    background: var(--c-dark);
    color: #fff;
    font-size: 0.75rem;
    padding: 8px 14px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.hero__card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 20px;
}

.hero__card-actions {
    margin-bottom: 14px;
}

.hero__card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--c-ink-soft);
}

.hero__card-list a {
    color: var(--c-ink);
    font-weight: 600;
}

/* ------------------------------------------------------ 6. Полоса доверия */
.trust {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
}

.trust__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-block: 22px;
}

.trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-size: 0.875rem;
    color: var(--c-ink-2);
    border-right: 1px solid var(--c-line);
    padding-right: 20px;
}

.trust__item:last-child {
    border-right: 0;
}

.trust__icon {
    color: var(--c-accent);
    flex: 0 0 auto;
}

/* --------------------------------------------------------- 7. Сетки и карточки */
.grid--categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.grid--products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 160ms ease, transform 160ms ease;
}

.category-card:hover {
    border-color: var(--c-line-strong);
    transform: translateY(-2px);
}

.category-card__media {
    display: block;
    background: var(--c-surface-2);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 0;
    flex: 1;
}

.category-card__title {
    font-size: 1.125rem;
    margin: 0;
}

.category-card__title a {
    color: var(--c-ink);
}

.category-card__text {
    font-size: 0.875rem;
    color: var(--c-ink-muted);
    margin: 0;
}

.category-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 18px;
    margin-top: auto;
}

.category-card__price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-ink);
    white-space: nowrap;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover {
    border-color: var(--c-line-strong);
    transform: translateY(-2px);
}

.card__media {
    display: block;
    background: var(--c-surface-2);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    display: block;
}

.card__badges {
    position: absolute;
    margin: 12px;
}

.card .badge {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    color: var(--c-ink-2);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 3px;
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px 0;
    flex: 1;
}

.card__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0;
    line-height: 1.35;
}

.card__title a {
    color: var(--c-ink);
}

.card__variant {
    font-size: 0.8125rem;
    color: var(--c-ink-muted);
    margin: 0;
}

.card__text {
    font-size: 0.8125rem;
    color: var(--c-ink-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--c-line);
    margin-top: 14px;
}

.card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.card__price-value {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-ink);
}

.card__price-unit {
    flex-basis: 100%;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: var(--c-ink-muted);
}

.card__price-note {
    flex-basis: 100%;
    font-size: 0.75rem;
    color: var(--c-ink-muted);
}

.card__stock {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.card__stock--in { color: #1f6b4a; }
.card__stock--out { color: var(--c-amber, #a9651a); }

.card__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.card__actions .btn--ghost {
    display: none;
}

.card__actions .btn--primary {
    width: 100%;
}

.card .notice {
    font-size: 0.75rem;
    padding: 8px 10px;
    border-radius: 3px;
    margin: 0;
}

/* ------------------------------------------------------------- 8. Секции-блоки */
.content-blocks {
    display: grid;
    gap: clamp(28px, 3.4vw, 48px);
}

.content-blocks > .block:first-child {
    margin-top: 0;
}

.block__title {
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
    margin: 0 0 14px;
}

.block__text {
    font-size: 1rem;
    color: var(--c-ink-2);
    max-width: 78ch;
}

.block__text ul,
.block__text ol {
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: var(--c-surface);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.table th,
.table td {
    padding: 13px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--c-line);
}

.table thead th {
    background: var(--c-surface-2);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--c-ink-muted);
    white-space: nowrap;
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody th {
    font-weight: 600;
    color: var(--c-ink);
    width: 34%;
}

.note {
    background: var(--c-accent-soft);
    border-left: 3px solid var(--c-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    font-size: 0.9375rem;
    color: var(--c-ink-2);
}

.note strong,
.note__title {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-accent-strong);
    margin-bottom: 4px;
}

.note--warn {
    background: #fbf1e6;
    border-left-color: #a9651a;
}

.note--ok {
    background: #edf4ef;
    border-left-color: #1f6b4a;
}

.inline-cta,
.cta-block {
    background: var(--c-dark);
    color: #dfe3e8;
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 36px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
}

.inline-cta .btn--outline,
.cta-block .btn--outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.cta-block__title {
    color: #fff;
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
    margin: 0 0 8px;
}

.cta-block__text {
    color: #aeb5be;
    margin: 0;
    max-width: 60ch;
}

/* ---------------------------------------------------------- 9. Хлебные крошки */
.breadcrumbs {
    padding-block: 16px;
    font-size: 0.75rem;
    color: var(--c-ink-muted);
    border-bottom: 1px solid var(--c-line);
    background: var(--c-surface);
}

.breadcrumbs a {
    color: var(--c-ink-muted);
}

.breadcrumbs a:hover {
    color: var(--c-brand);
}

/* ------------------------------------------------------------ 10. Страницы */
.page-hero {
    background: var(--c-surface-2);
    border-bottom: 1px solid var(--c-line);
    padding-block: clamp(32px, 4vw, 52px);
}

.page-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.page-hero__title {
    font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.875rem);
    margin: 0 0 14px;
}

.page-hero__lead {
    font-size: 1.0625rem;
    color: var(--c-ink-soft);
    max-width: 60ch;
    margin: 0 0 22px;
}

.page-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-top: 18px;
    border-top: 1px solid var(--c-line-strong);
    font-size: 0.8125rem;
    color: var(--c-ink-muted);
}

.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.page-hero__media {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 10px;
}

.page-hero__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.filter-bar {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.filter-chip {
    border-radius: 3px;
    border-color: var(--c-line-strong);
    font-size: 0.8125rem;
}

.filter-chip.is-active {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: #fff;
}

/* Товар */
.product {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    padding-block: clamp(28px, 4vw, 48px);
}

.product__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.product__media {
    background: var(--c-surface-2);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 10px;
}

.product__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.product__title {
    font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
    margin: 0 0 12px;
}

.product__short {
    color: var(--c-ink-soft);
    margin-bottom: 20px;
}

.product__price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 18px;
    border-block: 1px solid var(--c-line);
    margin-bottom: 20px;
}

.product__price-value {
    font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.product__price-unit {
    color: var(--c-ink-muted);
    font-size: 0.875rem;
}

.product__facts {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 0.9375rem;
}

.product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.product__benefits {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--c-ink-soft);
}

.product__benefits li {
    position: relative;
    padding-left: 22px;
}

.product__benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--c-accent);
    border-bottom: 2px solid var(--c-accent);
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------- 11. Формы */
.field input,
.field select,
.field textarea,
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    border-radius: var(--radius-sm);
    border-color: var(--c-line-strong);
    background: var(--c-surface);
    font-family: var(--font-sans);
    min-height: 46px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
textarea:focus {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(23, 50, 74, 0.12);
    outline: none;
}

.lead-form {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: clamp(20px, 2.5vw, 28px);
}

.lead-form__title {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* -------------------------------------------------------------- 12. Подвал */
.footer {
    background: var(--c-dark);
    color: #aeb5be;
    border-top: 1px solid #232a32;
    padding-block: clamp(36px, 4vw, 56px) 24px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.footer__title {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.footer__list {
    display: grid;
    gap: 8px;
    font-size: 0.8125rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer a {
    color: #c7cdd4;
}

.footer a:hover {
    color: #fff;
}

.footer .logo__image {
    width: 36px;
    height: 36px;
}

.footer .logo__name {
    color: #fff;
}

.footer .logo__tagline {
    color: #8f979f;
}

.footer .logo__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.logo__name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--c-ink);
}

.logo__tagline {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-ink-muted);
    line-height: 1.2;
}

.footer__text,
.footer__slogan {
    font-size: 0.8125rem;
    color: #8f979f;
    max-width: 42ch;
}

.footer__age {
    display: inline-block;
    margin-top: 12px;
    border: 1px solid #3a424b;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.6875rem;
    color: #c7cdd4;
}

.footer__requisites {
    border-top: 1px solid #232a32;
    margin-top: 28px;
    padding-top: 18px;
    font-size: 0.75rem;
    color: #7c848d;
}

/* ----------------------------------------------------- 13. Корзина и модалки */
.cart-drawer__panel,
.contact-modal__dialog,
.age-gate__dialog {
    border-radius: var(--radius);
}

.cart-counter {
    border: 1px solid var(--c-line-strong);
    background: var(--c-surface);
    color: var(--c-ink);
    padding: 9px 12px;
}

.cart-counter:hover {
    border-color: var(--c-brand);
}

.cart-counter__value {
    background: var(--c-brand);
    color: #fff;
    border-radius: 3px;
}

/* --------------------------------------------------- 13. Блоки и утилиты */
.grid {
    display: grid;
    gap: 20px;
}

.grid > * {
    min-width: 0;
}

.grid--features {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.grid--features[data-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--features[data-columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--features[data-columns="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
}

.feature__media {
    aspect-ratio: 3 / 2;
    background: var(--c-surface-2);
    overflow: hidden;
}

.feature__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    margin: 16px 16px 6px;
}

.feature__title a {
    color: var(--c-ink);
}

.feature__text {
    font-size: 0.8438rem;
    line-height: 1.55;
    color: var(--c-ink-muted);
    margin: 0 16px 18px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
}

.split__content,
.split__aside {
    min-width: 0;
}

.info-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 22px;
}

.info-card--accent {
    border-color: var(--c-line-strong);
    background: var(--c-surface-2);
}

.info-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.info-card__text {
    font-size: 0.875rem;
    color: var(--c-ink-soft);
}

.order {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
}

.prose {
    max-width: 74ch;
}

.prose h2,
.prose h3 {
    margin-top: 1.6em;
}

.prose ul,
.prose ol {
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.seo-note {
    background: var(--c-accent-soft);
    border-bottom: 1px solid var(--c-line);
    font-size: 0.8125rem;
    color: var(--c-ink-soft);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tag-list__link {
    display: inline-flex;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--c-line-strong);
    border-radius: 3px;
    font-size: 0.8125rem;
    color: var(--c-ink-2);
    background: var(--c-surface);
}

.tag-list__link:hover {
    border-color: var(--c-brand);
    color: var(--c-brand);
}

/* Появление секций отключаем: контент не должен зависеть от скролла и JS. */
.reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ----------------------------------------------------- 14. Мобильная версия */
@media (max-width: 1180px) {
    .header__main-inner {
        gap: 0 16px;
    }

    .nav__link {
        padding-inline: 10px;
        font-size: 0.8125rem;
    }

    .grid--products,
    .grid--categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero__title {
        max-width: 20ch;
    }
}

@media (max-width: 1024px) {
    .header__main-inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "burger logo actions";
        padding-bottom: 14px;
    }

    .nav {
        display: none;
    }

    .burger {
        display: inline-flex;
        grid-area: burger;
        margin-right: 12px;
    }

    .logo {
        justify-self: start;
    }

    .hero__inner,
    .page-hero__inner,
    .product__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 16px;
    }

    .hero__stat:nth-child(2) {
        border-right: 0;
    }

    .trust__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust__item:nth-child(2) {
        border-right: 0;
    }

    .footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header__top-item--note {
        display: none;
    }
}

@media (max-width: 720px) {
    :root {
        --gutter: 16px;
    }

    .header__top {
        font-size: 0.6875rem;
    }

    .header__top-inner {
        min-height: 34px;
        gap: 12px;
    }

    .header__top-item--email,
    .header__top-item--hours {
        display: none;
    }

    .header__phone-label {
        display: none;
    }

    .header__phone-value {
        font-size: 0.875rem;
    }

    .header__actions {
        gap: 10px;
    }

    .header__actions > .btn {
        display: none;
    }

    .logo__image {
        height: 36px;
    }

    .hero {
        padding-top: 28px;
    }

    .hero__title {
        font-size: 1.875rem;
        max-width: none;
    }

    .hero__list li {
        font-size: 0.875rem;
    }

    .hero__actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .grid--products,
    .grid--categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card__actions {
        grid-template-columns: 1fr;
    }

    .card__actions .btn {
        width: 100%;
    }

    .section__head {
        margin-bottom: 22px;
    }

    .trust__inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .trust__item {
        border-right: 0;
        padding-right: 0;
    }

    .table th,
    .table td {
        padding: 10px 12px;
        font-size: 0.875rem;
    }

    .footer__inner {
        grid-template-columns: 1fr;
    }

    .product__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .inline-cta,
    .cta-block {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .grid--products,
    .grid--categories {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        grid-template-columns: 1fr;
    }

    .hero__stat {
        border-right: 0;
    }
}

/* ------------------------------------------------- 15. Доводка компонентов */
/* Верхняя полоса: один акцент справа, телефон уже есть в шапке. */
.header__top .header__top-link[href^="tel:"] {
    display: none;
}

.header__top-item--note:last-child {
    margin-left: auto;
    padding-left: 18px;
}

@media (max-width: 1280px) {
    .header__top-item--note {
        display: none !important;
    }
}

/* Кнопки на светлом фоне: базовая тема рассчитана на тёмный герой. */
.hero .btn--outline,
.page-hero .btn--outline,
.product .btn--outline {
    background: var(--c-surface);
    border-color: var(--c-line-strong);
    color: var(--c-ink);
}

.hero .btn--outline:hover,
.page-hero .btn--outline:hover,
.product .btn--outline:hover {
    border-color: var(--c-brand);
    color: var(--c-brand);
}

/* Факты в шапке страницы — строка через разделители, а не «пилюли». */
.page-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
    border-top: 1px solid var(--c-line-strong);
    padding-top: 16px;
}

.page-hero__facts li {
    position: relative;
    padding: 0 16px;
    font-size: 0.8125rem;
    color: var(--c-ink-muted);
}

.page-hero__facts li:first-child {
    padding-left: 0;
}

.page-hero__facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-accent);
}

.page-hero__facts li:first-child::before {
    display: none;
}

/* Плашку о фасовке оставляем на странице товара: в сетке она ломает ритм цен. */
.card .notice {
    display: none;
}

/* Логотип чуть крупнее: в шапке он главный носитель бренда. */
.logo__image {
    height: 48px;
    max-width: 250px;
}

@media (max-width: 720px) {
    .logo__image {
        height: 38px;
    }
}

/* ------------------------------------------- 16. Исправления переполнения */
.content-blocks {
    grid-template-columns: minmax(0, 1fr);
}

.content-blocks > *,
.block,
.block__text,
.split,
.split > *,
.order,
.order > * {
    min-width: 0;
}

.table-scroll {
    max-width: 100%;
}

@media (max-width: 900px) {
    .grid--features[data-columns="2"],
    .grid--features[data-columns="3"],
    .grid--features[data-columns="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split,
    .order {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .header__main-inner {
        grid-template-columns: auto 1fr auto;
        gap: 0 10px;
    }

    .header__actions .header__phone {
        display: none;
    }

    .burger {
        margin-right: 4px;
        padding: 8px;
        gap: 0;
    }

    .burger__text {
        display: none;
    }

    .logo__image {
        height: 34px;
    }

    .header__actions {
        gap: 8px;
    }

    .cart-counter__label {
        display: none;
    }

    .header__top-inner {
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .grid--features[data-columns="2"],
    .grid--features[data-columns="3"],
    .grid--features[data-columns="4"] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Подвал: светлый логотип без белой подложки. */
.footer .logo__mark--footer {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.footer .logo__image {
    width: 36px;
    height: 36px;
}

.footer .logo__name {
    color: #fff;
}

.footer .logo__tagline {
    color: #8f979f;
}

/* Герой на светлом фоне: базовый шаблон ставит белый текст для тёмной темы. */
.hero {
    color: var(--c-ink);
}

/* На мобильном верхняя полоса остаётся пустой: все контакты есть в меню. */
@media (max-width: 720px) {
    .header__top {
        display: none;
    }
}

/* Переключатель фасовки на карточке товара */
.product__variants {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 6px;
}

.product__variants-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-ink-muted);
    margin-right: 2px;
}

.product__variant {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-ink);
    background: var(--c-surface);
}

.product__variant:hover {
    border-color: var(--c-brand);
    color: var(--c-brand);
}

.product__variant.is-current {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: #fff;
}

/* Типографская доводка: заголовки без висячих слов, читаемые подсказки полей. */
h1, h2, h3, h4,
.section__title,
.hero__title,
.page-hero__title,
.product__title,
.cta-block__title,
.lead-form__title {
    text-wrap: balance;
}

.field__input::placeholder,
input::placeholder,
textarea::placeholder {
    color: #646b74;
    opacity: 1;
}

.lead-form__title {
    text-wrap: balance;
}

/* Тёмные CTA-полосы: текст не должен наследовать цвет для светлого фона. */
.inline-cta,
.cta-block {
    color: #c7cdd4;
}

.inline-cta__title,
.cta-block__title {
    color: #fff;
}

.inline-cta__text,
.inline-cta p,
.cta-block__text {
    color: #aeb5be;
}

/* Мобильные зоны нажатия: минимум 44×44 px для ссылок и кнопок. */
@media (max-width: 720px) {
    .burger,
    .cart-counter {
        min-width: 44px;
        min-height: 44px;
    }

    .btn,
    .card__actions .btn,
    .cookie-notice .btn {
        min-height: 44px;
    }

    .feature__title a,
    .card__title a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .footer__list a,
    .footer__phone,
    .footer__link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding-block: 6px;
    }

    .footer__list {
        gap: 2px;
    }

    .btn[href^="tel:"],
    .footer__phone {
        white-space: nowrap;
    }
}

@media (max-width: 720px) {
    .breadcrumbs__link,
    .category-card__title a,
    .link-arrow,
    .tag-list__link,
    .info-card__link,
    .cta-block__phone {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .breadcrumbs__link {
        padding-block: 10px;
    }

    .tag-list__link {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 720px) {
    .breadcrumbs__link,
    .tag-list__link,
    .product__variant,
    .filter-chip {
        min-width: 44px;
        justify-content: center;
    }

    .filter-chip,
    .product__variant {
        min-height: 44px;
    }

    strong a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .cta-block__phone {
        white-space: nowrap;
    }
}

@media (max-width: 720px) {
    .product__categories .tag-list__link,
    .product .tag-list__link {
        min-height: 44px;
        min-width: 44px;
    }

    .filter-bar .filter-chip {
        min-height: 44px;
        min-width: 44px;
    }

    .breadcrumbs .breadcrumbs__link {
        min-width: 44px;
        min-height: 44px;
    }

    .info-card__link[href^="tel:"],
    .cta-block__email {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        white-space: nowrap;
    }

    .checkbox {
        min-height: 44px;
    }

    .checkbox__input {
        min-width: 24px;
        min-height: 24px;
    }
}

/* ---------------------------------------------------- 17. Визуальная доводка */
:root {
    --section-y: clamp(44px, 5.2vw, 72px);
}

.content-blocks {
    gap: clamp(24px, 3vw, 40px);
}

.hero__title {
    max-width: 20ch;
    font-size: clamp(2rem, 1.45rem + 2.1vw, 3.05rem);
}

.grid--products {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.card__text {
    min-height: 3.1em;
}

.card__price {
    min-height: 46px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .grid--products {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 720px) {
    .grid--products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .grid--products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid--categories {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .footer__col {
        min-width: 0;
    }

    .footer__address {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 720px) {
    /* На телефоне телефонная кнопка дублирует нижнюю панель и уходит под неё. */
    .hero__actions .btn--outline {
        display: none;
    }

    .footer {
        padding-bottom: 92px;
    }
}

@media (max-width: 900px) {
    .order {
        display: block;
    }

    .order__form,
    .order__aside,
    .info-card {
        width: 100%;
        min-width: 0;
    }

    .info-card .table-scroll {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer__col--brand {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .breadcrumbs__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .breadcrumbs__list::-webkit-scrollbar {
        display: none;
    }

    .breadcrumbs__item {
        flex: 0 0 auto;
    }
}

@media (max-width: 720px) {
    /* Текущая страница уже названа в H1 — в крошках оставляем только путь. */
    .breadcrumbs__item:last-child {
        display: none;
    }
}
