/* EuroMurr — витрина. Светлая, минималистичная, «бутиковая». */

@import url("/fonts/fonts.css");

:root {
    --paper: #ffffff;
    --sand: #f5f2ed;
    --sand-deep: #ebe6de;
    --ink: #111010;
    --ink-soft: #4a4744;
    --muted: #8a857e;
    --line: #e5e0d8;
    --line-strong: #d6cfc4;
    --gold: #a2855c;
    --danger: #b4342c;

    --shell: 1520px;
    --gutter: clamp(18px, 4vw, 56px);
    --section: clamp(58px, 6.4vw, 108px);

    --display: "Prata", "Times New Roman", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: -.008em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Каркас ---------- */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }
.section--tight { padding: clamp(44px, 5vw, 80px) 0; }
.section--sand { background: var(--sand); }

/* Едва заметное зерно — светлые блоки перестают выглядеть «пластиковыми». */
.section--grain { position: relative; isolation: isolate; }

.section--grain::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: clamp(28px, 3.5vw, 56px);
}

.eyebrow .num {
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--gold);
    margin-right: 8px;
}

.section-head__aside {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 4px;
}

.section-head__count {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.display {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -.015em;
}

.display--xl { font-size: clamp(42px, 6.4vw, 104px); }
.display--l { font-size: clamp(32px, 4.2vw, 62px); }
.display--m { font-size: clamp(26px, 2.8vw, 40px); }

.lead {
    max-width: 46ch;
    color: var(--ink-soft);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.6;
}

.muted { color: var(--muted); }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 30px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: var(--ink);
    color: var(--paper);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.btn:hover { background: #2c2926; border-color: #2c2926; transform: translateY(-1px); }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

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

.btn--light {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

.btn--light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

.btn--wide { width: 100%; }
.btn--sm { padding: 12px 20px; font-size: 10.5px; }

.link-underline {
    position: relative;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding-bottom: 3px;
    white-space: nowrap;
}

.link-underline::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: currentColor;
    transform-origin: right;
    transition: transform .45s var(--ease);
}

.link-underline:hover::after { transform: scaleX(0); transform-origin: left; }

/* Бегущая строка используется только в ленте брендов ниже. */

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Шапка ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background .3s var(--ease);
}

.header.is-stuck { border-bottom-color: var(--line); }

.header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    height: 82px;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    line-height: 1;
    /* в гриде шапки ячейка шире логотипа — прижимаем к левому краю */
    justify-self: start;
}

.logo__name {
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: .2em;
    text-transform: uppercase;
    /* трекинг добавляет пустоту справа — компенсируем отступом слева */
    text-indent: .2em;
}

.logo__sub {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--sans);
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
    text-indent: .3em;
}

.logo__sub i {
    flex: 0 0 20px;
    height: 1px;
    background: var(--line-strong);
}

.logo__mark {
    width: 34px;
    height: 43px;
    flex: 0 0 34px;
    color: var(--ink);
    font-family: var(--display);
}

.logo--footer {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.logo__lockup {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.logo--footer .logo__name { font-size: 25px; }

.logo--footer .logo__mark {
    width: 44px;
    height: 56px;
    flex-basis: 44px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.4vw, 38px);
}

.nav a {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    transition: color .3s var(--ease);
}

.nav a {
    position: relative;
    padding-bottom: 4px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}

.nav a:hover::after, .nav a.is-active::after { transform: none; }
.nav a:hover, .nav a.is-active { color: var(--ink); }

.header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.burger {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 20px;
    height: 1px;
    margin: 5px auto;
    background: var(--ink);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    padding: 20px var(--gutter) 48px;
    background: var(--paper);
    overflow-y: auto;
    transform: translateY(-101%);
    /* visibility прячет содержимое, которое иначе «свисает» из-за края экрана */
    visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s linear .5s;
}

.mobile-menu.is-open {
    transform: none;
    visibility: visible;
    transition: transform .5s var(--ease), visibility 0s;
}

.mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
}

.mobile-menu__close {
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 34px;
}

.mobile-menu nav a {
    font-family: var(--display);
    font-size: 30px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.mobile-menu .btn { margin-top: 28px; }

.mobile-menu__foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 30px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Первый экран ---------- */

.hero { padding: clamp(30px, 4vw, 64px) 0 clamp(40px, 5vw, 90px); }

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 72px);
    align-items: center;
}

/* Без min-width: 0 колонка с фотографиями распирает сетку за край экрана. */
.hero__grid > * { min-width: 0; }

/* Пока каталог пуст, первый экран остаётся одной колонкой. */
.hero__grid--solo { grid-template-columns: minmax(0, 900px); }

.hero__title { margin: 0 0 26px; }

.hero__title em { font-style: italic; color: var(--gold); }

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 40px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.hero__meta div {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero__meta strong {
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    color: var(--ink);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero__media {
    position: relative;
    display: grid;
    /* minmax(0, …) — иначе широкая фотография распирает колонку за край экрана */
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.hero__media figure { margin: 0; min-width: 0; overflow: hidden; background: var(--sand); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .is-tall { aspect-ratio: 3 / 4; }
.hero__media .is-short { aspect-ratio: 4 / 5; }

.hero__tag {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 15px;
    background: rgba(255, 255, 255, .94);
    text-align: right;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    transition: background .35s var(--ease);
}

.hero__tag:hover { background: #fff; }

.hero__tag strong {
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.hero__media figure { position: relative; }

.hero__stamp {
    position: absolute;
    left: -18px;
    bottom: 30px;
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 9.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.5;
}

/* ---------- Бренды ---------- */

.brandline {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.brandline__track {
    display: flex;
    width: max-content;
    padding: 22px 0;
    animation: ticker 46s linear infinite;
}

.brandline__track span {
    display: inline-flex;
    gap: 64px;
    padding-right: 64px;
    white-space: nowrap;
    font-family: var(--display);
    font-size: clamp(17px, 1.7vw, 24px);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ---------- Категории ---------- */

.cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 1.2vw, 20px);
}

.cats--3 { grid-template-columns: repeat(3, 1fr); }
.cats--2 { grid-template-columns: repeat(2, 1fr); }
.cats--1 { grid-template-columns: minmax(0, 560px); }

.cat {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--sand);
    aspect-ratio: 3 / 4;
}

.cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}

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

.cat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .45) 100%);
}

.cat__label {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
}

.cat__label h3 { font-family: var(--display); font-size: clamp(18px, 1.7vw, 26px); }
.cat__label span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }

/* ---------- Сетка товаров ---------- */

.grid-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(22px, 2vw, 38px) clamp(10px, 1.4vw, 24px);
}

.grid-products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { position: relative; display: flex; flex-direction: column; }

.card__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--sand);
    aspect-ratio: 3 / 4;
}

.card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), opacity .5s var(--ease);
}

.card__media img.is-hover { opacity: 0; }
.card:hover .card__media img.is-base { opacity: 0; }
.card:hover .card__media img.is-hover { opacity: 1; }
.card:hover .card__media img { transform: scale(1.04); }

.card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    background: var(--paper);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.card__quick {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 13px;
    background: rgba(255, 255, 255, .95);
    text-align: center;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.card:hover .card__quick { opacity: 1; transform: none; }

.card__body { padding: 14px 2px 0; }

.card__brand {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.card__title {
    margin: 6px 0 10px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__price { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.card__price small { margin-left: 8px; font-size: 11.5px; font-weight: 400; color: var(--muted); }

/* ---------- Как это работает ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.step { background: var(--paper); padding: clamp(22px, 2.4vw, 38px); }
.section--sand .step { background: var(--sand); }

.step__num { font-family: var(--display); font-size: 34px; color: var(--line-strong); line-height: 1; }

.step h3 { margin: 18px 0 10px; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Выбор байера ---------- */

.edit {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: clamp(24px, 4vw, 72px);
    align-items: center;
}

.edit__media {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper);
}

.edit__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.edit__media:hover img { transform: scale(1.035); }

.edit__list {
    list-style: none;
    margin: 30px 0 32px;
    padding: 0;
    border-top: 1px solid var(--line-strong);
}

.edit__list li { border-bottom: 1px solid var(--line-strong); }

.edit__list a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
}

.edit__thumb {
    width: 54px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--paper);
}

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

.edit__brand {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.edit__name { display: block; margin-top: 4px; font-size: 15px; }

.edit__price {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.edit__list a:hover .edit__name { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Тёмная полоса ---------- */

.band { position: relative; background: var(--ink); color: #f4efe8; }

/* Половина текста, половина фотографии — без наложений и затемнений. */
.band--split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }

.band__text {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: var(--section) var(--gutter);
}

.band__inner { width: 100%; max-width: 620px; }

.band:not(.band--split) .band__text { justify-content: center; }
.band:not(.band--split) .band__inner { max-width: var(--shell); }

.band__media { position: relative; margin: 0; overflow: hidden; background: #1a1918; }

.band__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.band .display { color: #fff; }
.band .lead { color: rgba(244, 239, 232, .72); }
.band .eyebrow { color: rgba(244, 239, 232, .5); }

.band__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    gap: clamp(24px, 4vw, 70px);
    align-items: center;
}

/* ---------- Отзывы ---------- */

.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.4vw, 22px);
}

/* Отзывы — свои фотографии заказов, без внешних виджетов. */
.shots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1vw, 16px);
}

.shot {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--sand);
    aspect-ratio: 4 / 5;
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}

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

.shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%);
    opacity: 0;
    transition: opacity .4s var(--ease);
}

.shot:hover::after { opacity: 1; }

.shot__cap {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.shot:hover .shot__cap { opacity: 1; transform: none; }

.shot__cap strong {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    font-size: clamp(16px, 1.5vw, 20px);
    letter-spacing: -.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    font-size: 20px;
    color: var(--muted);
    transition: transform .35s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq p { margin: 0; padding: 0 0 24px; max-width: 78ch; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 80px);
    align-items: start;
}

.faq-grid > div:first-child { position: sticky; top: 110px; }

.order-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line-strong);
}

.order-facts span {
    display: block;
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-facts strong { display: block; margin-top: 5px; font-size: 14px; font-weight: 500; }

/* ---------- Форма ---------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: var(--paper);
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color .3s var(--ease);
}

.field textarea { min-height: 104px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--ink); }

.field .error { color: var(--danger); font-size: 12px; letter-spacing: 0; text-transform: none; }
.field input.has-error, .field textarea.has-error { border-color: var(--danger); }

.form-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.flash {
    padding: 16px 20px;
    border: 1px solid var(--line-strong);
    background: var(--sand);
    font-size: 14px;
    margin-bottom: 22px;
}

.flash--success { border-color: #b9cbb4; background: #eef3ea; }
.flash--error { border-color: #e2b6b2; background: #fbeeed; }

/* ---------- Каталог ---------- */

/* Не задаём padding целиком: у .shell свои поля по бокам. */
.catalog-head {
    padding-top: clamp(28px, 3.5vw, 56px);
    padding-bottom: clamp(20px, 2.4vw, 34px);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: clamp(24px, 3vw, 44px);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.select-sort {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 34px 10px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: var(--paper);
    font: inherit;
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.empty { padding: clamp(50px, 8vw, 110px) 0; text-align: center; color: var(--muted); }

.pager { display: flex; justify-content: center; gap: 8px; margin: clamp(32px, 4vw, 60px) 0 0; padding: 0; }
.pager li { list-style: none; }

.pager a, .pager span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    font-size: 13px;
}

.pager .active a, .pager .active span { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Карточка товара ---------- */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 22px 0;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.crumbs a:hover { color: var(--ink); }

.product {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 72px);
    align-items: start;
    padding-bottom: var(--section);
}

.gallery { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; }

/* Одно фото — колонка превью не нужна, иначе снимок уезжает в узкий столбец. */
.gallery--solo { grid-template-columns: minmax(0, 1fr); }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }

.gallery__thumbs button {
    padding: 0;
    border: 1px solid transparent;
    background: var(--sand);
    aspect-ratio: 3 / 4;
    cursor: pointer;
    overflow: hidden;
}

.gallery__thumbs button.is-active { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.gallery__main { position: relative; background: var(--sand); aspect-ratio: 3 / 4; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.product__info { position: sticky; top: 100px; }

.product__brand { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.product__title { margin: 14px 0 20px; }

.product__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 24px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.product__price small { font-size: 13px; font-weight: 400; color: var(--muted); }

.product__desc { margin: 24px 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; white-space: pre-line; }
.product__actions { display: grid; gap: 10px; margin: 26px 0; }

.product__facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }

.product__facts > div {
    background: var(--paper);
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13.5px;
}

.product__facts > div > span:first-child { color: var(--muted); }

/* Липкая полоса заказа — только на узких экранах карточки товара. */
.buy-bar { display: none; }

/* ---------- Подвал ---------- */

.footer { border-top: 1px solid var(--line); padding: clamp(44px, 5vw, 80px) 0 34px; }

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: clamp(24px, 3vw, 56px);
}

.footer h4 {
    margin: 0 0 18px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer li a { font-size: 14px; color: var(--ink-soft); }
.footer li a:hover { color: var(--ink); }

.footer__about {
    margin: 16px 0 22px;
    max-width: 42ch;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.footer__note { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }

.footer__wordmark {
    margin: clamp(38px, 5vw, 74px) 0 0;
    font-family: var(--display);
    font-size: clamp(58px, 13.5vw, 210px);
    line-height: .82;
    letter-spacing: -.02em;
    text-align: center;
    color: #efeae1;
    user-select: none;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: clamp(34px, 4vw, 62px);
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

/* ---------- Появление при скролле ---------- */

.has-js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.has-js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .has-js .reveal { opacity: 1; transform: none; transition: none; }
    .ticker__track, .brandline__track { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .cats, .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .product { grid-template-columns: 1fr; }
    .edit { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .faq-grid > div:first-child { position: static; }
    .product__info { position: static; }
    .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .buy-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .96);
        backdrop-filter: saturate(140%) blur(12px);
        border-top: 1px solid var(--line);
    }

    .buy-bar__price { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }

    .buy-bar__price span {
        font-size: 9.5px;
        font-weight: 500;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .buy-bar__price strong {
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .buy-bar .btn { flex: 1; padding: 15px 16px; }

    .footer { padding-bottom: 92px; }

    .nav { display: none; }
    .burger { display: block; }
    .header__inner { grid-template-columns: auto 1fr; height: 62px; }
    .header__actions .btn { display: none; }
    .band__grid { grid-template-columns: 1fr; }
    .band--split { grid-template-columns: 1fr; }
    .band__media { aspect-ratio: 4 / 3; }
    .band__text { justify-content: flex-start; }
    .gallery { grid-template-columns: 1fr; }
    .gallery__thumbs { flex-direction: row; overflow-x: auto; }
    .gallery__thumbs button { flex: 0 0 68px; }
}

@media (max-width: 640px) {
    /* ---- Мобильная версия: крупнее, спокойнее, без мелкой ряби ---- */

    .section { padding: 54px 0; }
    .section--tight { padding: 44px 0; }
    .section-head { margin-bottom: 22px; }

    .display--xl { font-size: 40px; line-height: 1.05; }
    .display--l { font-size: 30px; }
    .display--m { font-size: 24px; }
    .lead { font-size: 15px; }

    /* Первый экран: одна крупная фотография вместо двух мелких */
    .hero { padding: 26px 0 40px; }
    .hero__media { grid-template-columns: 1fr; }
    .hero__media .is-short { display: none; }
    .hero__media .is-tall { aspect-ratio: 4 / 5; }
    .hero__tag { display: flex; right: 12px; bottom: 12px; }
    .hero__stamp { width: 74px; height: 74px; font-size: 8px; left: auto; right: 12px; top: 12px; bottom: auto; }

    .hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .hero__actions .btn { width: 100%; }

    /* Факты — как в паспорте вещи: подпись слева, значение справа */
    .hero__meta { display: block; margin-top: 28px; padding-top: 0; border-top: 0; }

    .hero__meta div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 18px;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .hero__meta div:first-child { border-top: 1px solid var(--line); }
    .hero__meta strong { margin-top: 0; text-align: right; }

    /* Лента брендов не должна перекрикивать заголовки */
    .brandline__track { padding: 15px 0; }
    .brandline__track span { font-size: 15px; gap: 38px; padding-right: 38px; }

    /* Категории и отзывы — горизонтальной лентой со «свайпом» */
    .cats, .shots {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter);
    }

    .cats::-webkit-scrollbar, .shots::-webkit-scrollbar { display: none; }

    .cat { flex: 0 0 66vw; scroll-snap-align: start; }
    .shot { flex: 0 0 62vw; scroll-snap-align: start; }
    .shot__cap { opacity: 1; transform: none; }
    .shot::after { opacity: 1; }

    .cat__label h3 { font-size: 22px; }

    /* Сетка товаров: две колонки, но крупнее и с воздухом между рядами */
    .grid-products, .grid-products--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 12px;
    }

    .card__title { font-size: 13.5px; }
    .card__price { font-size: 14px; }
    /* цена бутика на узком экране переносится и рвёт сетку — прячем */
    .card__price small { display: none; }
    .card__quick { display: none; }

    /* Остальные блоки */
    .steps { grid-template-columns: 1fr; }
    .step { padding: 20px 18px; }
    .step__num { font-size: 28px; }

    .form-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__grid > div:first-child { grid-column: 1 / -1; }
    .footer__wordmark { font-size: clamp(48px, 17vw, 90px); }
    .footer { padding-bottom: 96px; }

    /* Фильтры одной прокручиваемой строкой — иначе стена «таблеток» */
    .chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter);
    }

    .chips::-webkit-scrollbar { display: none; }
    .chip { flex: 0 0 auto; }

    .filters { gap: 12px; }
    .select-sort { width: 100%; }

    .section-head__count { display: none; }
    .edit__list a { grid-template-columns: 46px minmax(0, 1fr); }
    .edit__price { grid-column: 2; margin-top: 4px; }

    .band__text { padding: 48px var(--gutter); }
    .product { padding-bottom: 40px; }
}

