/* ==========================================================================
   Barkhat — швейная фабрика. Основная таблица стилей.
   Без Bootstrap / jQuery: собственная сетка и компоненты.
   ========================================================================== */

/* --- Токены ------------------------------------------------------------- */
:root {
    --red: #a8140d;
    --red-dark: #7f0f0a;
    --red-soft: #fdf2f1;

    --ink: #191512;
    --ink-2: #3d3531;
    --muted: #7a6f69;

    --bg: #ffffff;
    --bg-soft: #faf7f4;
    --bg-dark: #14100e;
    /* Тёмно-винный фон блока «Почему мы». Отдельный токен, а не --bg-dark:
       тем же цветом закрашен подвал, и менять его заодно не нужно. */
    --bg-wine: #2e0b08;
    --bg-wine-2: #200604;

    --line: #e8e1db;
    --line-strong: #d6cbc2;

    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;

    --shadow: 0 2px 8px rgba(25, 21, 18, .05), 0 12px 32px rgba(25, 21, 18, .07);
    --shadow-lg: 0 4px 14px rgba(25, 21, 18, .07), 0 24px 60px rgba(25, 21, 18, .12);

    --header-h: 78px;
    --section-y: 104px;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Manrope", "Inter", system-ui, sans-serif;
}

/* --- Сброс -------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Размер по умолчанию для иконок (в т.ч. подключённых через <use>).
   Компонентные правила ниже переопределяют его. */
svg {
    width: 24px;
    height: 24px;
    display: block;
    flex: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    font-weight: 800;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--red);
    color: #fff;
}

/* --- Сетка -------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1220px;
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: var(--section-y);
}

.section--soft {
    background: var(--bg-soft);
}

.section--tight {
    padding-block: calc(var(--section-y) * .62);
}

/* --- Типографика секций ------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--red);
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow::before {
    display: none;
}

.section-title {
    font-size: clamp(30px, 4vw, 46px);
    margin-bottom: 18px;
}

.section-sub {
    font-size: 18px;
    color: var(--muted);
    margin: 0;
}

.accent {
    color: var(--red);
}

/* --- Кнопки ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn svg {
    width: 19px;
    height: 19px;
    flex: none;
}

.btn--primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 22px rgba(168, 20, 13, .25);
}

.btn--primary:hover {
    background: var(--red-dark);
    box-shadow: 0 12px 28px rgba(168, 20, 13, .32);
}

.btn--ghost {
    border: 1.5px solid var(--line-strong);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.btn--wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .28);
}

.btn--wa:hover {
    background: #1eb857;
}

/* --- Шапка -------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(25, 21, 18, .06);
}

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}

.nav a {
    position: relative;
    padding: 9px 14px;
    border-radius: 100px;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--ink-2);
    transition: color .18s ease, background-color .18s ease;
}

.nav a:hover {
    color: var(--red);
    background: var(--red-soft);
}

.nav a.is-active {
    color: var(--red);
    font-weight: 600;
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 11px;
}

.header__phone-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    display: grid;
    place-items: center;
    flex: none;
}

.header__phone-icon svg {
    width: 19px;
    height: 19px;
}

.header__phone small {
    display: block;
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.4;
}

.header__phone strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    font-family: var(--font-display);
    white-space: nowrap;
}

/* --- Переключатель языка ------------------------------------------------ */
.lang {
    position: relative;
    flex: none;
}

.lang__btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 12px;
    border-radius: 100px;
    border: 1px solid var(--line-strong);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.lang__btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-soft);
}

.lang__btn svg {
    width: 18px;
    height: 18px;
}

.lang__chev {
    width: 14px !important;
    height: 14px !important;
    opacity: .55;
    transition: transform .2s ease;
}

.lang.is-open .lang__chev {
    transform: rotate(180deg);
}

.lang__cur {
    letter-spacing: .04em;
}

.lang__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.lang.is-open .lang__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lang__menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    text-align: left;
    transition: background-color .15s ease, color .15s ease;
}

.lang__menu button:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

.lang__menu button.is-active {
    color: var(--red);
    font-weight: 600;
    background: var(--red-soft);
}

.lang__menu button::after {
    content: attr(data-code);
    font-size: 11.5px;
    letter-spacing: .08em;
    color: var(--muted);
}

.lang__menu button.is-active::after {
    color: var(--red);
}

.burger {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line);
    place-items: center;
}

.burger svg {
    width: 22px;
    height: 22px;
}

.burger .icon-close,
.burger.is-open .icon-menu {
    display: none;
}

.burger.is-open .icon-close {
    display: block;
}

/* --- Первый экран ------------------------------------------------------- */
.hero {
    position: relative;
    padding-block: 76px 96px;
    background:
        radial-gradient(900px 480px at 82% -8%, #fbf1ef 0%, transparent 62%),
        linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(36px, 5.1vw, 62px);
    margin-bottom: 22px;
}

.hero__lead {
    font-size: 19px;
    color: var(--ink-2);
    max-width: 560px;
    margin-bottom: 34px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 44px;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.hero__fact b {
    display: block;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
}

.hero__fact span {
    font-size: 14.5px;
    color: var(--muted);
}

/* Коллаж первого экрана */
.hero__collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
    height: 560px;
}

.hero__collage figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #eee;
    box-shadow: var(--shadow);
}

.hero__collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}

.hero__collage figure:hover img {
    transform: scale(1.05);
}

.hero__collage figure:first-child {
    grid-row: span 2;
}

.hero__badge {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 100px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.hero__badge svg {
    width: 17px;
    height: 17px;
    color: var(--red);
}

.hero__collage-wrap {
    position: relative;
}

/* --- Полоса показателей ------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.stat__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--red-soft);
    color: var(--red);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.stat__icon svg {
    width: 23px;
    height: 23px;
}

.stat h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.stat p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}

/* --- О фабрике ---------------------------------------------------------- */
.about__grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 68px;
    align-items: center;
}

.about__media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about__media figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about__media figure:first-child {
    grid-row: span 2;
}

.about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checklist {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.checklist li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 16.5px;
}

.checklist svg {
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--red);
    margin-top: 2px;
}

/* --- Ассортимент (чипы) ------------------------------------------------- */
.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 52px;
}

.chip {
    padding: 11px 22px;
    border-radius: 100px;
    border: 1px solid var(--line-strong);
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

/* --- Галерея изделий ---------------------------------------------------- */
/* Кладка колонками: фото разных пропорций показываются целиком, без обрезки */
.gallery {
    columns: 3;
    column-gap: 24px;
}

.product {
    position: relative;
    display: block;
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: var(--shadow);
}

.product img {
    width: 100%;
    height: auto;
    transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}

.product:hover img {
    transform: scale(1.045);
}

.product__meta {
    position: absolute;
    inset: auto 0 0 0;
    padding: 58px 24px 22px;
    background: linear-gradient(180deg, transparent, rgba(15, 12, 10, .82));
    color: #fff;
}

.product__meta span {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--red);
    padding: 5px 11px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.product__meta h3 {
    color: #fff;
    font-size: 19px;
    margin: 0;
}

/* --- Возможности производства ------------------------------------------ */
.caps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cap:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.cap__num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--red);
    margin-bottom: 14px;
}

.cap h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cap p {
    font-size: 15.5px;
    color: var(--muted);
    margin: 0;
}

/* --- Процесс работы ----------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    counter-reset: step;
}

.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 28px 28px;
    counter-increment: step;
}

.step::before {
    content: "0" counter(step);
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    color: var(--line);
    line-height: 1;
}

.step__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.step__icon svg {
    width: 24px;
    height: 24px;
}

.step h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.step p {
    font-size: 15.5px;
    color: var(--muted);
    margin: 0;
}

/* --- Преимущества (тёмный блок) ----------------------------------------- */
.section--dark {
    background: linear-gradient(168deg, var(--bg-wine) 0%, var(--bg-wine-2) 100%);
    color: #e0d2cf;
}

.section--dark .section-title,
.section--dark h3 {
    color: #fff;
}

.section--dark .section-sub {
    color: #bda9a5;
}

/* Фирменный красный на винном фоне почти не читается — берём светлее */
.section--dark .eyebrow {
    color: #f0908a;
}

.section--dark .eyebrow::before {
    background: #f0908a;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.benefit {
    padding: 32px 26px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .05);
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.benefit:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(240, 144, 138, .55);
    transform: translateY(-4px);
}

.benefit__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    color: #ffb0a8;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.benefit__icon svg {
    width: 24px;
    height: 24px;
}

.benefit h3 {
    font-size: 18.5px;
    margin-bottom: 8px;
}

.benefit p {
    font-size: 15px;
    color: #c4b2ae;
    margin: 0;
}

/* --- Отзывы ------------------------------------------------------------- */
.reviews {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.review {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review__stars {
    display: flex;
    gap: 3px;
    color: var(--red);
}

.review__stars svg {
    width: 18px;
    height: 18px;
}

.review p {
    font-size: 16.5px;
    margin: 0;
    flex: 1;
}

.review__author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.review__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    flex: none;
}

.review__author strong {
    display: block;
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 16.5px;
}

.review__author span {
    font-size: 14px;
    color: var(--muted);
}

/* --- Instagram-лента ---------------------------------------------------- */
.ig-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.ig-strip a {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    display: block;
}

.ig-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, filter .3s ease;
}

.ig-strip a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(168, 20, 13, .55);
    opacity: 0;
    transition: opacity .25s ease;
}

.ig-strip a:hover::after {
    opacity: 1;
}

.ig-strip a:hover img {
    transform: scale(1.08);
}

/* --- Контакты ----------------------------------------------------------- */
.contact__grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.contact-card:hover {
    transform: translateX(4px);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--red-soft);
    color: var(--red);
    display: grid;
    place-items: center;
    flex: none;
}

.contact-card__icon svg {
    width: 22px;
    height: 22px;
}

.contact-card small {
    display: block;
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--ink);
}

/* Карточка с двумя номерами. Вся карточка ссылкой быть не может —
   кликается каждый номер отдельно, поэтому и подсветка на номере. */
.contact-card--multi:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
}

.contact-card__nums {
    display: grid;
    gap: 1px;
    margin-top: 1px;
}

.contact-card__nums a {
    width: fit-content;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    transition: color .15s ease;
}

.contact-card__nums a:hover {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 440px;
    background: var(--bg-soft);
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 440px;
    border: 0;
    display: block;
}

/* --- Призыв к действию -------------------------------------------------- */
.cta {
    background: linear-gradient(135deg, var(--red) 0%, #6d0c07 100%);
    border-radius: var(--radius-lg);
    padding: 64px 56px;
    text-align: center;
    color: #fff;
}

.cta h2 {
    color: #fff;
    font-size: clamp(26px, 3.4vw, 40px);
    margin-bottom: 14px;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, .85);
    max-width: 620px;
    margin: 0 auto 32px;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.cta .btn--ghost {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}

.cta .btn--ghost:hover {
    background: #fff;
    color: var(--red);
    border-color: #fff;
}

.cta .btn--light {
    background: #fff;
    color: var(--red);
}

.cta .btn--light:hover {
    background: #fbeceb;
}

/* --- Подвал ------------------------------------------------------------- */
.footer {
    background: var(--bg-dark);
    color: #9c928c;
    padding-block: 64px 0;
    font-size: 15.5px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__logo {
    height: 42px;
    width: auto;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
}

.footer h4 {
    color: #fff;
    font-size: 16px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.footer a:hover {
    color: #fff;
}

.footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.footer__socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    display: grid;
    place-items: center;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.footer__socials a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.footer__socials svg {
    width: 20px;
    height: 20px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-block: 26px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14.5px;
}

/* --- Плавающая кнопка WhatsApp ----------------------------------------- */
.fab-wa {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .42);
    transition: transform .2s ease;
}

.fab-wa:hover {
    transform: scale(1.08);
}

.fab-wa svg {
    width: 29px;
    height: 29px;
}

.to-top {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 90;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top svg {
    width: 20px;
    height: 20px;
}

/* --- Появление при скролле ---------------------------------------------
   Блоки прячутся ТОЛЬКО когда на <html> есть класс .js — его ставит
   инлайновый скрипт в <head>. Если JS отключён, не загрузился или упал
   с ошибкой, контент остаётся видимым, а не исчезает со страницы. */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* --- Адаптив ------------------------------------------------------------ */
@media (max-width: 1100px) {
    :root {
        --section-y: 84px;
    }

    .hero__grid {
        gap: 44px;
    }

    .about__grid {
        gap: 44px;
    }

    .stats,
    .benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .ig-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 980px) {
    .nav {
        display: none;
    }

    .burger {
        display: grid;
        margin-left: 8px;
    }

    .header__cta {
        display: none;
    }

    /* Переключатель языка остаётся в шапке рядом с бургером */
    .lang {
        margin-left: auto;
    }

    /* Мобильное меню */
    .nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: #fff;
        padding: 18px 24px 26px;
        gap: 4px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
    }

    .nav.is-open a {
        padding: 14px 16px;
        font-size: 17px;
        border-radius: 12px;
    }

    .nav__mobile-cta {
        display: grid;
        gap: 10px;
        margin-top: 14px;
    }

    .nav__mobile-cta .btn {
        width: 100%;
    }

    .hero__grid,
    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .hero__collage {
        height: 420px;
    }

    .gallery {
        columns: 2;
    }

    .caps,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 981px) {
    .nav__mobile-cta {
        display: none;
    }
}

@media (max-width: 700px) {
    :root {
        --section-y: 64px;
        --header-h: 68px;
    }

    body {
        font-size: 16px;
    }

    .container {
        padding-inline: 18px;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .hero {
        padding-block: 44px 64px;
    }

    .hero__lead {
        font-size: 17px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__facts {
        gap: 18px 28px;
    }

    .hero__fact b {
        font-size: 25px;
    }

    .hero__collage {
        height: 330px;
        gap: 12px;
    }

    .hero__badge {
        font-size: 12.5px;
        padding: 9px 15px;
    }

    .stats,
    .benefits,
    .caps,
    .steps,
    .reviews {
        grid-template-columns: 1fr;
    }

    .gallery {
        columns: 1;
    }

    .ig-strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .about__media figure:first-child {
        grid-row: auto;
    }

    .cta {
        padding: 44px 24px;
        border-radius: var(--radius);
    }

    .cta__actions .btn {
        width: 100%;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__bottom {
        justify-content: center;
        text-align: center;
    }

    .map,
    .map iframe {
        min-height: 320px;
    }

    .review {
        padding: 26px;
    }
}
