/* =========================================================
   Дом белья — стили сайта
   Классы исходной верстки сохранены, визуал переопределен.
   Новые блоки главной — в конце файла, раздел «Новые блоки».
   Шрифты подключены локально (без внешних сервисов, 152-ФЗ).
   ========================================================= */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --soft: #f6f4f1;
    --ink: #141414;
    --muted: #6e6862;
    --line: #e7e3de;
    --accent: #141414;
    --accent-dark: #141414;
    --warm: #141414;
    --sale: #8c2f39;
    --shadow: none;
    --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
    --gutter: clamp(16px, 4vw, 56px);
    --radius: 2px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -.01em;
    text-wrap: balance;
}

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

.topbar {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 10;
    width: min(1440px, 100%);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 14px var(--gutter);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: grid;
    line-height: 1;
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #000;
    white-space: nowrap;
}

.brand-sub {
    margin-top: 6px;
    text-transform: none;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.back {
    margin-left: auto;
    color: var(--ink);
    font-weight: 600;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.topnav a {
    position: relative;
    padding: 6px 0;
}

.topnav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transition: right .2s ease;
}

.topnav a:hover::after {
    right: 0;
}

/* Гамбургер слева — открывает дерево разделов каталога */
.catalog-menu-toggle {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-height: 40px;
    margin-right: -12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.catalog-menu-toggle:hover {
    background: var(--soft);
    color: var(--ink);
}

.catalog-menu-toggle span,
.catalog-menu-toggle span::before,
.catalog-menu-toggle span::after {
    display: block;
    width: 20px;
    height: 1.5px;
    background: currentColor;
}

.catalog-menu-toggle span {
    position: relative;
}

.catalog-menu-toggle span::before,
.catalog-menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.catalog-menu-toggle span::before {
    top: -6px;
}

.catalog-menu-toggle span::after {
    top: 6px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: background .2s ease, color .2s ease;
}

.header-cta:hover {
    background: var(--ink);
    color: #fff;
}

.cart-link {
    margin-left: auto;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.header-actions .cart-link {
    margin-left: 0;
}

/* ---------- Меню каталога ---------- */

.catalog-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(20, 20, 20, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.catalog-menu-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 31;
    width: min(420px, calc(100vw - 42px));
    background: #fff;
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform .22s ease;
}

.catalog-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
}

.catalog-menu-head strong {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
}

.catalog-menu-close {
    width: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.catalog-menu-tree {
    height: calc(100vh - 68px);
    overflow: auto;
    padding: 10px 0 24px;
}

.catalog-menu-tree a {
    display: block;
    margin-left: 6px;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.3;
}

.catalog-menu-tree a[style*="padding-left: 16px"] {
    margin-top: 10px;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
}

.catalog-menu-tree a:hover,
.catalog-menu-tree a.active {
    background: var(--soft);
    color: var(--ink);
}

.catalog-menu-open {
    overflow: hidden;
}

.catalog-menu-open .catalog-menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

.catalog-menu-open .catalog-menu-panel {
    transform: translateX(0);
}

/* ---------- Формы и кнопки ---------- */

.search,
.filters {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 260px) auto;
    gap: 10px;
    width: min(820px, 100%);
    margin-left: auto;
}

.filters {
    position: relative;
    z-index: 5;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 16px 12px;
    width: 100%;
    margin: 0 0 40px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.filter-field > span,
.field > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.filter-field {
    position: relative;
    display: grid;
    gap: 8px;
    min-width: 0;
}

.filter-search {
    grid-column: 1 / 3;
}

.filter-field select,
.filter-field input[type="search"] {
    height: 44px;
}

select {
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23141414' stroke-width='1.5'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-size: 10px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown summary {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 36px 0 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

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

.filter-dropdown summary::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 15px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.filter-dropdown[open] summary,
.filter-dropdown summary:hover {
    border-color: var(--ink);
}

.filter-dropdown[open] summary::after {
    top: 21px;
    transform: rotate(-135deg);
}

.filter-dropdown.has-value summary {
    border-color: var(--ink);
    font-weight: 600;
}

.filter-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 6;
    display: grid;
    gap: 2px;
    width: max(100%, 260px);
    max-height: 320px;
    overflow: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--ink);
    box-shadow: 0 16px 40px rgba(20, 20, 20, .08);
}

.filter-options label {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
}

.filter-options label:hover {
    background: var(--soft);
}

.filter-options input,
.filter-check input {
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    accent-color: var(--ink);
}

.filter-options em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.filter-sizes {
    left: auto;
    right: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    width: max(100%, 320px);
}

.filter-sizes label {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0;
}

.filter-sizes input {
    position: absolute;
    opacity: 0;
}

.filter-sizes span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
    border: 1px solid var(--line);
    font-size: 13px;
}

.filter-sizes label:hover {
    background: transparent;
}

.filter-sizes label:hover span {
    border-color: var(--ink);
}

.filter-sizes input:checked + span {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.filter-sizes input:focus-visible + span {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.filter-actions {
    grid-column: 3 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    font-size: 14px;
    cursor: pointer;
}

.filter-reset {
    color: var(--muted);
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}

.filter-reset:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.filter-actions button {
    min-width: 160px;
}

input,
select,
textarea,
button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    padding: 0 12px;
    background-color: #fff;
    color: var(--ink);
}

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

textarea {
    min-height: 92px;
    padding-top: 10px;
    resize: vertical;
}

button,
.source-link,
.pagination a,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

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

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

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

.badge {
    display: inline-flex;
    width: fit-content;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--sale);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ---------- Страница каталога ---------- */

.page {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 40px var(--gutter) 72px;
}

.summary {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.summary h1,
.product-info h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 500;
    line-height: 1;
}

.summary p,
.meta,
.section {
    margin: 0;
    color: var(--muted);
}

.summary p {
    margin-top: 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 40px 20px;
}

.card {
    overflow: hidden;
    background: var(--surface);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.photo {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--soft);
    color: var(--muted);
}

.photo img,
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo img {
    transition: transform .6s ease;
}

.card:hover .photo img {
    transform: scale(1.03);
}

.card-body {
    display: grid;
    gap: 5px;
    padding: 14px 0 0;
}

.title {
    min-height: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.card .meta {
    font-size: 12px;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.price-row strong,
.product-price {
    color: var(--warm);
    font-weight: 600;
}

.price-row span {
    color: var(--muted);
    font-size: 12px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 56px;
}

.pagination a {
    min-width: 44px;
    padding: 0 14px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    font-weight: 500;
}

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

.pagination a.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.empty {
    padding: 48px;
    background: var(--soft);
    border: 0;
    border-radius: 0;
    text-align: center;
}

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

.product {
    display: grid;
    grid-template-columns: minmax(280px, 560px) minmax(280px, 1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
}

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

.gallery img,
.placeholder {
    aspect-ratio: 4 / 5;
    background: var(--soft);
    border-radius: 0;
    border: 0;
}

.placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
}

.product-info {
    display: grid;
    gap: 20px;
}

.product-price {
    font-size: 26px;
}

.product-price del,
.price-row del {
    margin-left: 8px;
    color: var(--muted);
    font-size: .8em;
    font-weight: 400;
}

.buy-box,
.checkout,
.cart-list {
    display: grid;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
}

.buy-box label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 500;
}

.field {
    display: grid;
    gap: 6px;
}

.description {
    color: #3b3733;
    font-size: 16px;
    line-height: 1.7;
}

.quick-props,
.props dl {
    display: grid;
    gap: 0;
    overflow: hidden;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.quick-props div,
.props dl div {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 16px;
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

dt {
    color: var(--muted);
    font-weight: 500;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.props {
    margin-top: 56px;
}

.props h2 {
    margin: 0 0 16px;
    font-size: 32px;
}

.related {
    margin-top: 56px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.related-grid a,
.cart-row,
.alert {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
}

.related-grid a {
    display: grid;
    gap: 8px;
}

/* ---------- Корзина ---------- */

.cart-page h1 {
    margin-top: 0;
    font-size: clamp(38px, 5vw, 56px);
}

.cart-row {
    display: grid;
    grid-template-columns: 1fr 92px 130px;
    align-items: center;
    gap: 12px;
}

.cart-row div,
.cart-row span {
    display: grid;
    gap: 4px;
}

.cart-row span {
    color: var(--muted);
}

.cart-total {
    justify-self: end;
    color: var(--warm);
    font-size: 22px;
    font-weight: 600;
}

.checkout {
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout textarea,
.checkout .consent,
.checkout button {
    grid-column: 1 / -1;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.consent input {
    width: auto;
    min-height: auto;
    margin-top: 3px;
    accent-color: var(--ink);
}

.hidden-field {
    position: absolute;
    left: -10000px;
}

.alert {
    margin-bottom: 10px;
    border-color: #e4c3c6;
    color: var(--sale);
}

.notice {
    margin-bottom: 10px;
    padding: 16px;
    background: var(--soft);
    border: 0;
    border-radius: 0;
    color: var(--ink);
}

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

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--line);
}

.cookie-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: min(520px, calc(100vw - 32px));
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--ink);
    border-radius: 0;
    font-size: 13px;
}

.cookie-banner[hidden] {
    display: none;
}

.text-page {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.75;
}

.admin-section {
    margin-top: 28px;
}

.orders-list {
    display: grid;
    gap: 10px;
}

.order-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
}

.order-card form {
    display: flex;
    gap: 8px;
}

/* =========================================================
   Новые блоки
   ========================================================= */

.wrap {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.block {
    padding: clamp(64px, 9vw, 120px) 0;
}

.block + .block {
    border-top: 1px solid var(--line);
}

.block-soft {
    background: var(--soft);
}

.block-soft + .block,
.block + .block-soft {
    border-top: 0;
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    max-width: none;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.04;
}

.section-head > div {
    flex: 1 1 auto;
    min-width: 0;
}

.section-head p {
    max-width: 520px;
    margin: 14px 0 0;
    color: var(--muted);
}

.link-arrow {
    flex: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
}

.link-arrow::after {
    content: " →";
}

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

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

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    padding-top: clamp(40px, 6vw, 88px);
    padding-bottom: clamp(48px, 7vw, 104px);
}

.hero h1 {
    margin: 0;
    font-size: clamp(46px, 6.6vw, 96px);
    line-height: .98;
}

.hero h1 em {
    font-style: italic;
}

.hero-lead {
    max-width: 520px;
    margin: 28px 0 36px;
    color: #3b3733;
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-media {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    aspect-ratio: 1 / 1.02;
}

.hero-media figure {
    margin: 0;
    overflow: hidden;
    background: var(--soft);
}

.hero-media figure:first-child {
    grid-row: 1 / 3;
}

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

.facts {
    margin-bottom: clamp(56px, 8vw, 104px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.fact {
    padding: 28px 24px 26px 0;
}

.fact + .fact {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.fact strong {
    display: block;
    font-family: var(--serif);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 500;
    line-height: 1;
}

.fact span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

/* ---------- Как проходит подбор ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    padding: 0 28px 0 0;
    counter-increment: step;
}

.steps li + li {
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.steps li::before {
    content: "0" counter(step);
    display: block;
    margin-bottom: 22px;
    font-family: var(--serif);
    font-size: 44px;
    line-height: 1;
    color: #b8b1aa;
}

.steps h3 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.1;
}

.steps p {
    margin: 0;
    color: var(--muted);
}

.fitting-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: clamp(40px, 5vw, 64px);
    padding: 28px 32px;
    background: var(--soft);
}

.fitting-note p {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.25;
}

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

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

.fit-way {
    padding: clamp(24px, 3vw, 40px);
    background: #fff;
    border: 1px solid var(--line);
}

.fit-way .eyebrow {
    margin-bottom: 18px;
}

.fit-way h3 {
    margin: 0 0 12px;
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.05;
}

.fit-way p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

/* ---------- Ксения ---------- */

.about {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
}

.about-photo {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    background: #ece8e3;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.about-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about h2 {
    margin: 0;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1;
}

.about-role {
    margin: 12px 0 28px;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: .04em;
}

.about-quote {
    margin: 0 0 32px;
    padding: 0;
    font-family: var(--serif);
    font-size: clamp(24px, 2.4vw, 32px);
    font-style: italic;
    line-height: 1.3;
}

.principles {
    display: grid;
    gap: 0;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.principles li {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.principles strong {
    font-weight: 600;
}

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

/* ---------- Подборки «Ксения рекомендует» ---------- */

.collections {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.collection-card {
    display: grid;
    gap: 14px;
}

.collection-card .collection-photo {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--soft);
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.collection-card:hover img {
    transform: scale(1.03);
}

.collection-card h3 {
    margin: 0;
    font-size: 25px;
    line-height: 1.1;
}

.collection-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.collection-card .collection-count {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

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

.chips a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.chips a:hover,
.chips a.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

/* ---------- Онлайн-подбор ---------- */

.online {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.online h2 {
    margin: 0 0 20px;
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: 1;
}

.online-lead {
    max-width: 480px;
    margin: 0 0 32px;
    color: #3b3733;
    font-size: 17px;
}

.online-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: online;
    border-top: 1px solid #d9d4ce;
}

.online-steps li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 22px 0;
    border-bottom: 1px solid #d9d4ce;
    counter-increment: online;
}

.online-steps li::before {
    content: counter(online);
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1;
    color: #b8b1aa;
}

.online-steps strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
}

.online-steps span {
    color: var(--muted);
}

.online-send {
    padding: clamp(24px, 3vw, 40px);
    background: #fff;
    border: 1px solid var(--line);
}

.online-send h3 {
    margin: 0 0 16px;
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.05;
}

.online-send p {
    margin: 0 0 14px;
    color: #3b3733;
}

.online-send .messengers {
    margin-top: 24px;
}

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

.categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.categories a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 28px 26px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.1;
    transition: background .2s ease;
}

.categories a span {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
}

.categories a:hover {
    background: var(--soft);
}

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

.ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
}

.ratings a {
    display: grid;
    gap: 2px;
}

.ratings strong {
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
}

.ratings span {
    color: var(--muted);
    font-size: 12px;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

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

.review-example {
    border-style: dashed;
}

.review-example blockquote,
.review-example figcaption {
    color: var(--muted);
}

.review-tag {
    align-self: flex-start;
    padding: 4px 8px;
    background: var(--soft);
    color: var(--sale);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.reviews + .fitting-note {
    margin-top: 40px;
}

.review-card blockquote {
    margin: 0;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.35;
}

.review-card figcaption {
    margin-top: auto;
    color: var(--muted);
    font-size: 13px;
}

.review-card figcaption strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
}

/* ---------- Блог ---------- */

.posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.post-card {
    display: grid;
    align-content: start;
    gap: 14px;
}

.post-photo {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 6px;
    background: var(--soft);
}

.post-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform .6s ease;
}

.post-card:hover .post-photo img {
    transform: scale(1.03);
}

.posts-page {
    gap: 48px 20px;
}

.post-card .eyebrow {
    margin: 0;
}

.post-card h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
}

.post-card p {
    margin: 0;
    color: var(--muted);
}

/* ---------- Соцсети ---------- */

.socials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.social-card {
    display: grid;
    gap: 6px;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    transition: border-color .2s ease, background .2s ease;
}

.social-card:hover {
    border-color: var(--ink);
}

.social-card strong {
    font-family: var(--serif);
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 500;
    line-height: 1.05;
}

.social-card span {
    font-size: 14px;
    font-weight: 600;
}

.social-card em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

.social-card::after {
    content: "→";
    margin-top: 14px;
    font-size: 18px;
}

/* ---------- Контакты ---------- */

.contacts {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: stretch;
}

.contacts h1,
.contacts h2 {
    margin: 0 0 28px;
    font-size: clamp(34px, 3.4vw, 50px);
    line-height: 1;
}

.contacts dl {
    display: grid;
    gap: 0;
    margin: 0 0 32px;
    border-top: 1px solid var(--line);
}

.contacts dl div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.contacts dd a {
    border-bottom: 1px solid var(--line);
}

.messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.map {
    min-height: 380px;
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

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

/* ---------- Подвал главной ---------- */

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
    gap: 32px;
    width: min(1440px, 100%);
    margin-inline: auto;
    padding: 56px var(--gutter) 28px;
    text-align: left;
    color: var(--ink);
}

.footer-main .brand {
    font-size: 34px;
}

.footer-main h4 {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer-main nav {
    display: grid;
    gap: 8px;
    font-size: 14px;
}

.footer-legal {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.footer-note {
    flex: 1 1 100%;
    margin: 0;
    font-size: 11px;
}

.footer-legal nav {
    display: flex;
    gap: 20px;
}

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

@media (max-width: 1180px) {
    .filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }

    .topnav {
        gap: 18px;
    }

    .topnav .nav-secondary {
        display: none;
    }
}

@media (max-width: 980px) {
    .hero,
    .about,
    .online,
    .contacts {
        grid-template-columns: 1fr;
    }

    .hero-media {
        aspect-ratio: 4 / 3;
    }

    .steps,
    .collections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 20px;
    }

    .steps li,
    .steps li + li {
        padding: 0;
        border-left: 0;
    }

    .reviews,
    .posts,
    .socials,
    .fit-ways {
        grid-template-columns: 1fr;
    }

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

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

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .topbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 10px 16px;
        padding-top: 12px;
        padding-bottom: 0;
    }

    .summary,
    .product {
        display: grid;
    }

    .topnav {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0 calc(var(--gutter) * -1);
        padding: 4px var(--gutter) 10px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .topnav::-webkit-scrollbar {
        display: none;
    }

    .topnav .nav-secondary {
        display: inline;
    }

    .brand {
        font-size: 23px;
    }

    .topnav,
    .cart-link,
    .back {
        margin-left: 0;
    }

    .header-actions {
        gap: 12px;
    }

    .header-cta {
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .search {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

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

    .filter-search,
    .filter-actions {
        grid-column: 1 / -1;
    }

    .filter-actions {
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .filter-actions button {
        flex: 1 1 100%;
    }

    .filter-field:has(.filter-dropdown[open]) {
        grid-column: 1 / -1;
    }

    .filter-options,
    .filter-sizes {
        position: static;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
    }

    .filter-sizes {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    }

    .checkout,
    .cart-row,
    .cookie-banner {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        display: grid;
    }

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

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

    .fact,
    .fact + .fact {
        padding: 22px 16px 20px 0;
        border-left: 0;
    }

    .fact:nth-child(even) {
        padding-left: 16px;
        border-left: 1px solid var(--line);
    }

    .fact:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .section-head {
        display: grid;
        align-items: start;
    }

    .principles li,
    .contacts dl div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 14px;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 10px;
    }

    .card-body {
        padding: 10px 0 0;
    }

    .title {
        font-size: 13px;
    }

    .price-row {
        display: grid;
    }

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

    .quick-props div,
    .props dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .hero-media {
        grid-template-columns: 1fr 1fr;
        aspect-ratio: 1 / 1;
    }

    .steps,
    .categories {
        grid-template-columns: 1fr;
    }

    .collections {
        gap: 28px 10px;
    }

    .collection-card h3 {
        font-size: 21px;
    }

    .collection-card p {
        display: none;
    }

    .fitting-note,
    .review-card {
        padding: 22px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}
