/* ============================================================
   Прометей — посадочная страница
   Дизайн-система: local/templates/prom_23 (main.css, template_styles.css)
   ============================================================ */

:root {
    --black: #403535;
    --grey: #847E7E;
    --white: #fff;
    --green: #00A651;
    --red: #E80000;
    --light-grey: #FAFAFA;
    --shadow: 4px 4px 16px rgba(64, 53, 53, 0.2);
    --shadow-soft: 0 10px 25px rgba(64, 53, 53, 0.12);
    --radius: 20px;
    --radius-pill: 96px;
    --container: 1320px;
    --font: 'Montserrat', sans-serif;
    --font-decorate: 'Decorate', serif;
}

@font-face {
    font-family: Decorate;
    src: url("../local/templates/prom_23/fonts/TildaScriptRegular.otf") format("opentype");
    font-display: swap;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- Заголовки ---------------- */

h1, h2 {
    font-family: var(--font-decorate);
    font-weight: 400;
    margin: 0;
}

h3, h4 {
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.section {
    padding: 96px 0;
}

.section--grey { background: var(--light-grey); }

.section--dark {
    background: var(--black);
    color: var(--white);
}

.section__eyebrow {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
}

.section__eyebrow--light { color: rgba(255, 255, 255, 0.55); }

.section__title {
    font-family: var(--font-decorate);
    font-size: 56px;
    line-height: 1.12;
    margin: 0 0 40px;
}

.section__title--light { color: var(--white); }

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 8px;
}

.section__head .section__title { margin-bottom: 40px; }

.section__head-btn { margin-bottom: 48px; flex-shrink: 0; }

/* ---------------- Кнопки ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out,
                background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn:active { transform: translateY(0); }

.btn--hero {
    padding: 0 56px;
    height: 80px;
    font-size: 24px;
    gap: 12px;
}

.btn__icon { width: 28px; height: 28px; }

.btn--light {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn--dark {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn--dark:hover { opacity: 0.88; }

.btn--outline-dark {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

.btn--outline-dark:hover { background: var(--black); color: var(--white); }

.btn--sm {
    padding: 10px 24px;
    font-size: 14px;
}

.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow);
}

.site-header__top {
    border-bottom: 1px solid rgba(132, 126, 126, 0.35);
}

.site-header__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
}

.site-header__top-left,
.site-header__top-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.mini-link {
    color: var(--grey);
    font-size: 12px;
    line-height: 1.25;
}

.mini-link:hover { color: var(--black); }

.site-header__warehouses { text-align: center; }

/* Выпадающие списки (как в шаблоне) */

.dropdown { position: relative; }

.dropbtn {
    background: none;
    border: none;
    border-bottom: 1px dashed var(--grey);
    padding: 0 22px 2px 0;
    color: var(--grey);
    font-size: 12px;
    cursor: pointer;
}

.dropbtn::after {
    content: '';
    position: absolute;
    right: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    background: url("../images/chevron-down.svg") center / contain no-repeat;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px 0;
    background: #f9f9f9;
    box-shadow: var(--shadow);
    z-index: 20;
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--black);
}

.dropdown-content a:hover { background: rgba(64, 53, 53, 0.06); }

.header-profile,
.header-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--grey);
    transition: color 0.2s;
}

.header-profile:hover,
.header-cart:hover { color: var(--black); }

.header-profile__text,
.header-cart__text {
    font-size: 13px;
    line-height: 1.25;
}

.header-cart__text b { color: inherit; font-weight: 600; }

/* Основная строка */

.site-header__main-row {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 76px;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    height: 56px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-left: auto;
}

.main-nav__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    padding: 8px 0;
    position: relative;
}

.main-nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.25s ease;
}

.main-nav__link:hover::after { width: 100%; }

.main-nav__link--drop { padding-right: 20px; }

.main-nav__link--drop::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: url("../images/chevron-down.svg") center / contain no-repeat;
}

.dropdown-content--nav { top: calc(100% + 8px); }

.site-header__contacts {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 28px;
    border-left: 1px solid rgba(132, 126, 126, 0.35);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.icon-link {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--light-grey);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px;
    transition: background-color 0.2s;
}

.icon-link--wa { background-image: url("../images/wa_logo.svg"); background-size: 18px; }
.icon-link--tg { background-image: url("../images/tg_logo.svg"); background-size: 18px; }

.icon-link:hover { background-color: rgba(64, 53, 53, 0.1); }

/* Бургер */

.burger {
    display: none;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    background: none;
    margin-left: auto;
}

.burger span {
    display: block;
    height: 2px;
    background: var(--black);
    transition: transform 0.25s, opacity 0.25s;
}

.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(64, 53, 53, 0.72) 0%, rgba(64, 53, 53, 0.45) 55%, rgba(64, 53, 53, 0.78) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: right;
    padding-top: 48px;
    padding-bottom: 120px;
}

.hero__since {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.hero__title {
    font-family: var(--font-decorate);
    font-size: 72px;
    line-height: 1.15;
    color: var(--white);
    margin: 0;
}

.hero__buttons {
    margin-top: 72px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.hero__trust {
    position: relative;
    z-index: 2;
    background: rgba(64, 53, 53, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__trust-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
    flex-wrap: wrap;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero__trust-item img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.advantage-card {
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.advantage-card__icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 20px;
}

.advantage-card h3 { font-size: 17px; margin-bottom: 8px; }

.advantage-card p {
    margin: 0;
    font-size: 14px;
    color: var(--grey);
    line-height: 1.55;
}

/* ============================================================
   КАТАЛОГ
   ============================================================ */

.catalog-table-wrap {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
}

.catalog-table th,
.catalog-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: middle;
}

.catalog-table thead th {
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.catalog-table tbody tr {
    border-top: 1px solid rgba(64, 53, 53, 0.1);
    transition: background-color 0.2s;
}

.catalog-table tbody tr:first-child { border-top: none; }

.catalog-table tbody tr:hover { background: var(--light-grey); }

.catalog-table__thumb-cell { width: 92px; padding-right: 0; }

.catalog-table__thumb {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
}

.catalog-table__name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.catalog-table__badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--green);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: 2px;
}

.catalog-table td[data-label="Фасовка"],
.catalog-table td[data-label="Опт от 300 кг"] {
    font-size: 13px;
    line-height: 1.6;
    color: var(--grey);
}

.catalog-table__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    white-space: nowrap;
}

.catalog-table__unit {
    font-size: 13px;
    color: var(--grey);
    white-space: nowrap;
}

.catalog-table__action {
    width: 160px;
    text-align: right;
}

.catalog-table__action .btn { padding-left: 20px; padding-right: 20px; }

/* ============================================================
   КАТАЛОГ
   ============================================================ */

.catalog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid rgba(64, 53, 53, 0.22);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: rgba(64, 53, 53, 0.1);
    font-size: 11px;
    font-weight: 700;
}

.chip:hover {
    border-color: var(--black);
    transform: translateY(-2px);
}

.chip.is-active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.chip.is-active span { background: rgba(255, 255, 255, 0.22); }

.catalog-table tbody tr.is-hidden { display: none; }

/* Сопутствующие товары */

.catalog__extra { margin-top: 72px; }

.catalog__extra-title {
    font-family: var(--font-decorate);
    font-weight: 400;
    font-size: 40px;
    margin-bottom: 32px;
}

.catalog__tables {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.catalog__tables > * { min-width: 0; }

.price-table {
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.price-table h4 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--black);
}

.price-table ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.price-table li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(64, 53, 53, 0.1);
}

.price-table li:last-child { border-bottom: none; }

.price-table__name {
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--black);
    overflow-wrap: anywhere;
}

.price-table__name em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: var(--grey);
    margin-top: 3px;
}

.price-table li b {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.price-table__note {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px dashed rgba(64, 53, 53, 0.18);
    font-size: 11px;
    line-height: 1.5;
    color: var(--grey);
}

.catalog__note {
    margin: 40px 0 0;
    font-size: 12px;
    line-height: 1.65;
    color: var(--grey);
}

/* ============================================================
   ДОСТАВКА
   ============================================================ */

.delivery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.delivery-card {
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.delivery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.delivery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 20px;
}

.delivery-card h3 { font-size: 18px; }

.delivery-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--grey);
}

.delivery-card li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}

.delivery-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

/* ============================================================
   О КОМПАНИИ
   ============================================================ */

.about__layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.about__media img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about__text > p {
    margin: 0 0 18px;
    color: var(--grey);
    line-height: 1.7;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.stat {
    padding: 20px 16px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.stat b {
    display: block;
    font-family: var(--font-decorate);
    font-weight: 400;
    font-size: 36px;
    line-height: 1.1;
}

.stat span {
    font-size: 12px;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */

.testimonials { background: var(--light-grey); }

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.t-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.t-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.t-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.t-card__head img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--light-grey);
}

.t-card__name {
    font-size: 18px;
    font-weight: 600;
    color: #232325;
}

.t-card__addr {
    font-size: 13px;
    font-weight: 300;
    color: var(--grey);
}

.t-card__body {
    margin: 0;
    font-size: 15px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.65;
    color: #232325;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq__layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.faq__intro p {
    color: var(--grey);
    line-height: 1.7;
    margin: 0 0 28px;
}

.faq-item {
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: url("../images/plus.svg") center / contain no-repeat;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    background-image: url("../images/minus.svg");
    transform: rotate(180deg);
}

.faq-item summary:hover { color: var(--red); }

.faq-item p {
    margin: 0;
    padding: 0 26px 24px;
    color: var(--grey);
    line-height: 1.7;
    font-size: 15px;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
    position: relative;
    padding: 110px 0;
    color: var(--white);
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(64, 53, 53, 0.82);
}

.cta__layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.cta__text .section__title { margin-bottom: 20px; }

.cta__text p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.cta-form {
    padding: 36px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--black);
}

.cta-form label,
.modal__card label {
    display: block;
    margin-bottom: 18px;
}

.cta-form label span,
.modal__card label span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey);
}

.cta-form input,
.modal__card input {
    background: var(--light-grey);
    border: 1px solid rgba(64, 53, 53, 0.18);
    color: var(--black);
}

.cta-form input:focus,
.modal__card input:focus {
    border-color: var(--black);
    background: var(--white);
}

.cta-form input.is-error { border-color: var(--red); }

.cta-form__note {
    margin: 14px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--grey);
}

.cta-form__note a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-success {
    padding: 24px;
    border-radius: 14px;
    background: rgba(0, 166, 81, 0.1);
    border: 1px solid var(--green);
    color: var(--green);
    font-weight: 600;
    text-align: center;
}

/* Скрытое поле-ловушка для ботов */
.honeypot {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.modal__card input.is-error { border-color: var(--red); }

.form-error {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.35);
    color: var(--red);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.modal__card .form-success { margin-top: 4px; }

form[hidden] { display: none; }

.btn[disabled] {
    opacity: 0.65;
    cursor: default;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 44px 0 0;
}

.site-footer a { color: var(--white); }

.site-footer a:hover { opacity: 0.7; }

.site-footer__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

.site-footer__phone::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url("../images/footer_phone.svg") center / contain no-repeat;
}

.site-footer__email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.site-footer__email::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url("../images/footer_email.svg") center / contain no-repeat;
}

.site-footer__socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.site-footer__socials img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
}

.site-footer__cols {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 36px 0 44px;
}

.site-footer h4 {
    font-size: 16px;
    margin-bottom: 18px;
}

.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li { margin-bottom: 10px; }

.footer-menu a { font-size: 14px; color: rgba(255, 255, 255, 0.8); }

.site-footer__brand > img {
    height: 52px;
    width: auto;
    margin-bottom: 24px;
}

.site-footer__apps-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.site-footer__apps {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer__apps img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.copyright {
    padding: 15px 0;
    background: #000;
    color: var(--grey);
    font-size: 12px;
}

.copyright a {
    color: var(--grey);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(64, 53, 53, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 36px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.modal__card h3 {
    font-family: var(--font-decorate);
    font-weight: 400;
    font-size: 36px;
    margin-bottom: 8px;
}

.modal__card > p {
    margin: 0 0 24px;
    color: var(--grey);
    font-size: 14px;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 30px;
    line-height: 1;
    color: var(--grey);
    transition: color 0.2s;
}

.modal__close:hover { color: var(--black); }

.modal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal__card input[readonly] {
    background: var(--light-grey);
    color: var(--grey);
    cursor: default;
}

.modal__card input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.modal__card input[type="number"]::-webkit-outer-spin-button,
.modal__card input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.modal-open { overflow: hidden; }

/* ============================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .advantage-card, .delivery-card, .t-card { transition: none; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1200px) {
    .section__title { font-size: 48px; }
    .hero__title { font-size: 60px; }
    .advantages__grid { grid-template-columns: repeat(3, 1fr); }
    .delivery__grid { grid-template-columns: repeat(2, 1fr); }
    .main-nav { gap: 22px; }
    .main-nav__link { font-size: 14px; }
}

@media (max-width: 992px) {
    .section { padding: 72px 0; }
    .section__title { font-size: 42px; margin-bottom: 32px; }
    .hero { min-height: 560px; }
    .hero__title { font-size: 48px; }
    .hero__content { padding-bottom: 72px; }
    .hero__buttons { margin-top: 48px; }
    .btn--hero { height: 64px; font-size: 19px; padding: 0 36px; }

    .site-header__warehouses,
    .header-profile__text,
    .header-cart__text,
    .site-header__top .btn { display: none; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 24px;
        background: var(--white);
        box-shadow: var(--shadow);
        display: none;
    }

    .main-nav.is-open { display: flex; }

    .main-nav__link {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid rgba(132, 126, 126, 0.2);
    }

    .main-nav__link::after { display: none; }

    .dropdown-content--nav {
        position: static;
        box-shadow: none;
        background: var(--light-grey);
        min-width: 0;
        margin: 4px 0 8px;
    }

    .site-header__contacts {
        margin-left: auto;
        padding-left: 0;
        border-left: none;
    }

    .header-phone { font-size: 15px; }

    .burger { display: flex; }

    .catalog-table th,
    .catalog-table td { padding: 12px 14px; }
    .catalog-table__thumb-cell { display: none; }
    .catalog-table__name { font-size: 15px; }
    .catalog-table__price { font-size: 18px; }
    .catalog-table__action { width: 130px; }
    .catalog__tables { grid-template-columns: repeat(2, 1fr); }
    .catalog__extra-title { font-size: 32px; }

    .calc__layout { grid-template-columns: 1fr; }

    .about__layout,
    .faq__layout,
    .cta__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__media img { height: 380px; }

    .testimonials__grid { grid-template-columns: 1fr; }

    .site-footer__cols {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 576px) {
    .site-header__main-row { gap: 12px; }
    .site-header__contacts { gap: 10px; }
    .icon-link { display: none; }
    .site-logo img { height: 44px; }
    .header-phone { font-size: 14px; }
    .site-header__top-left { gap: 14px; }
    .site-header__top-right { gap: 12px; }

    .section { padding: 56px 0; }
    .section__title { font-size: 34px; }
    .hero { min-height: 480px; }
    .hero__title { font-size: 36px; }
    .hero__since { font-size: 13px; }

    .hero__buttons {
        margin-top: 36px;
        flex-direction: column;
        align-items: stretch;
    }

    .btn--hero {
        height: 56px;
        font-size: 17px;
        padding: 0 24px;
    }

    .hero__trust-row { justify-content: center; }
    .hero__trust-item { width: 100%; justify-content: center; font-size: 13px; }

    .advantages__grid { grid-template-columns: 1fr; }
    .catalog-table thead { display: none; }
    .catalog-table,
    .catalog-table tbody,
    .catalog-table tr,
    .catalog-table td { display: block; width: 100%; }
    .catalog-table tbody tr {
        padding: 16px 18px;
        border-top: 1px solid rgba(64, 53, 53, 0.1);
    }
    .catalog-table tbody tr:first-child { border-top: none; }
    .catalog-table td {
        padding: 6px 0;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
    }
    .catalog-table td[data-label]::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--grey);
    }
    .catalog-table td[data-label="Наименование"]::before { display: none; }
    .catalog-table td.catalog-table__thumb-cell { display: none; }
    .catalog-table__name { font-size: 17px; }
    .catalog-table__action {
        width: 100%;
        padding-top: 14px !important;
        text-align: left;
    }
    .catalog-table__action .btn { width: 100%; }
    .catalog__tables { grid-template-columns: 1fr; }
    .catalog__filters { gap: 8px; }
    .chip { padding: 9px 16px; font-size: 13px; }
    .delivery__grid { grid-template-columns: 1fr; }

    .section__head { flex-direction: column; align-items: flex-start; gap: 0; }
    .section__head-btn { margin-bottom: 32px; }

    .about__stats { grid-template-columns: repeat(2, 1fr); }
    .about__media img { height: 260px; }

    .calc-group { padding: 24px 20px; }
    .cta-form { padding: 28px 20px; }

    .modal { padding: 16px; }
    .modal__card { padding: 28px 20px; max-height: calc(100vh - 32px); overflow-y: auto; }
    .modal__card h3 { font-size: 30px; }
    .modal__row { grid-template-columns: 1fr; gap: 0; }

    .site-footer__top { flex-direction: column; align-items: flex-start; }
    .site-footer__socials { margin-left: 0; }
    .site-footer__cols { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .site-header__top-row {
        flex-wrap: wrap;
        gap: 8px 12px;
        min-height: 0;
        padding: 8px 0;
    }
    .site-header__top-left { gap: 12px; flex-wrap: wrap; }
    .site-header__top-right { gap: 14px; margin-left: auto; }
    .dropbtn { padding-right: 18px; }
    .mini-link { font-size: 11px; }

    .site-header__main-row { gap: 8px; }
    .site-logo { min-width: 0; }
    .site-logo img { height: 32px; max-width: 110px; object-fit: contain; object-position: left center; }
    .header-phone { font-size: 12px; white-space: nowrap; }
    .burger { width: 40px; height: 40px; padding: 8px; }
}
