/* ============================================================
   SERG LOOK — style.css
   Одностраничный сайт-визитка: editorial, premium, boutique.
   Брейкпоинты: 1920 / 1440 / 1024 / 768 / 375
   ============================================================ */

/* ---------- Переменные ---------- */
:root {
    --graphite: #1c1b1a;
    --graphite-2: #242220;
    --paper: #f4f0e8;
    --paper-2: #eae4d8;
    --ink: #23211f;
    --bronze: #b39b78;
    --muted-on-dark: #a79f92;
    --muted-on-light: #6f6a60;
    --line-on-dark: rgba(244, 240, 232, 0.16);
    --line-on-light: rgba(28, 27, 26, 0.14);

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Manrope', -apple-system, 'Segoe UI', Arial, sans-serif;

    --header-height: 88px;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none; /* маркеры задаются кастомно через ::before */
}

::selection {
    background: #a2a2a2;
    color: var(--graphite);
}

/* ---------- Каркас ---------- */
.pad-white {
    position: relative;
    padding: clamp(72px, 8vw, 140px) 0;
    background-color: var(--paper);
    color: var(--ink);
}

.section--dark {
    background-color: var(--graphite);
    color: var(--paper);
}

.wrapper {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 64px);
}

.row {
    position: relative;
}

/* Якоря с учётом закреплённой шапки */
section[id] {
    scroll-margin-top: var(--header-height);
}

/* ---------- Типографика ---------- */
.section-head {
    max-width: 880px;
    margin-bottom: clamp(48px, 5vw, 80px);
}

.section-head__label {
    font-size: clamp(11px, 0.8vw, 13px);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 20px;
}

.section-head__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(30px, 4.2vw, 58px);
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.section-head__text {
    margin-top: 26px;
    max-width: 640px;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.75;
    color: var(--muted-on-light);
}

.section--dark .section-head__text {
    color: var(--muted-on-dark);
}

/* ---------- Кнопки ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 36px;
    font-size: clamp(12px, 0.9vw, 13px);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.button--light {
    background-color: var(--paper);
    color: var(--graphite);
}

.button--light:hover {
    background-color: var(--bronze);
    color: var(--graphite);
}

.button--outline {
    border-color: rgba(244, 240, 232, 0.55);
    color: var(--paper);
}

.button--outline:hover {
    border-color: var(--paper);
    background-color: rgba(244, 240, 232, 0.08);
}

.button--dark {
    background-color: var(--graphite);
    color: var(--paper);
}

.button--dark:hover {
    background-color: var(--bronze);
    color: var(--graphite);
}

/* ============================================================
   Шапка
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    color: var(--paper);
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.header--scrolled {
    background-color: rgba(28, 27, 26, 0.96);
    box-shadow: 0 1px 0 var(--line-on-dark);
}

.header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.header__logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(18px, 1.4vw, 22px);
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.header__menu {
    display: flex;
    gap: clamp(20px, 2.4vw, 40px);
}

.header__menu-link {
    position: relative;
    font-size: clamp(12px, 0.95vw, 14px);
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 8px 0;
    opacity: 0.85;
    transition: opacity 0.25s ease;
}

.header__menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background-color: var(--bronze);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.header__menu-link:hover {
    opacity: 1;
}

.header__menu-link:hover::after {
    transform: scaleX(1);
}

.header__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 26px;
    font-size: clamp(11px, 0.85vw, 12px);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid rgba(244, 240, 232, 0.55);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.header__cta:hover {
    background-color: var(--paper);
    color: var(--graphite);
    border-color: var(--paper);
}

.header__cta--mobile {
    display: none;
}

.header__burger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
}

.header__burger-line {
    display: block;
    width: 26px;
    height: 1.5px;
    background-color: var(--paper);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger--active .header__burger-line:nth-child(1) {
    transform: translateY(4.25px) rotate(45deg);
}

.header__burger--active .header__burger-line:nth-child(2) {
    transform: translateY(-4.25px) rotate(-45deg);
}

/* ============================================================
   1. Первый экран
   ============================================================ */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-height) + 40px) 0 clamp(56px, 7vw, 110px);
    background-color: var(--graphite);
    color: var(--paper);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(28, 27, 26, 0.88) 0%,
        rgba(28, 27, 26, 0.45) 38%,
        rgba(28, 27, 26, 0.18) 70%,
        rgba(28, 27, 26, 0.32) 100%
    );
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
}

.hero__content {
    position: relative;
    max-width: 760px;
}

.hero__label {
    font-size: clamp(11px, 0.9vw, 13px);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 22px;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(52px, 9vw, 128px);
    line-height: 1.02;
    letter-spacing: 0.04em;
}

.hero__subtitle {
    margin-top: 26px;
    font-size: clamp(16px, 1.5vw, 21px);
    line-height: 1.6;
    color: rgba(244, 240, 232, 0.88);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 44px;
}

/* ============================================================
   2. О бренде
   ============================================================ */
.about__principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 4vw, 64px);
}

.about__principle-name {
    font-family: var(--font-display);
    font-size: clamp(20px, 1.8vw, 27px);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.about__principle-text {
    font-size: clamp(14px, 1.05vw, 15px);
    line-height: 1.75;
    color: var(--muted-on-light);
}

.about__details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 40px);
    margin-top: clamp(48px, 5.5vw, 88px);
}

.about__detail img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ============================================================
   3. Коллекции
   ============================================================ */
.collections {
    padding-bottom: 0;
}

.collections__moodboard {
    max-width: 1080px;
    margin: clamp(48px, 5vw, 88px) auto 0;
}

.collections__moodboard img {
    width: 100%;
}

.products__density-image {
    margin-top: 24px;
}

.products__density-image img {
    width: 100%;
}

.collection {
    padding-top: 0;
}

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

.collection__intro {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(36px, 5vw, 96px);
    align-items: center;
    padding: clamp(64px, 7vw, 120px) 0;
}

.collection__intro--reverse {
    grid-template-columns: 6fr 5fr;
}

.collection__intro--reverse .collection__intro-text {
    order: 2;
}

.collection__intro--reverse .collection__intro-image {
    order: 1;
}

.collection__name {
    font-size: clamp(11px, 0.85vw, 13px);
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 20px;
}

.collection__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.2;
    margin-bottom: 24px;
}

.collection__text {
    max-width: 480px;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.8;
    color: var(--muted-on-dark);
}

.collection__intro-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.collection__designs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 32px);
    padding-bottom: clamp(64px, 7vw, 120px);
}

.collection__design-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collection__design {
    overflow: hidden;
}

.collection__design:hover .collection__design-image {
    transform: scale(1.03);
}

.collection__design-caption {
    padding-top: 16px;
    border-top: 1px solid var(--line-on-dark);
    margin-top: 18px;
}

.collection__design-name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(18px, 1.5vw, 23px);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.collection__design-note {
    display: block;
    margin-top: 6px;
    font-size: clamp(12px, 0.95vw, 13px);
    line-height: 1.6;
    color: var(--muted-on-dark);
}

/* Палитра Elegance */
.collection__palette {
    padding-bottom: clamp(64px, 7vw, 120px);
}

.collection__palette-title {
    font-size: clamp(11px, 0.85vw, 13px);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 28px;
}

.collection__palette-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(12px, 1.6vw, 24px);
}

.collection__palette-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.collection__palette-caption {
    margin-top: 12px;
    font-size: clamp(12px, 0.95vw, 13px);
    letter-spacing: 0.08em;
    color: var(--muted-on-dark);
    text-align: center;
}

/* ============================================================
   4. Подушки и одеяла
   ============================================================ */
.products__hero-image {
    margin-bottom: clamp(56px, 6vw, 96px);
}

.products__hero-image img {
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    object-position: center 40%;
}

.products__group {
    margin-bottom: clamp(64px, 7vw, 110px);
}

.products__group-name {
    font-size: clamp(11px, 0.85vw, 13px);
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 14px;
}

.products__group-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(26px, 2.8vw, 40px);
    margin-bottom: clamp(32px, 3.5vw, 52px);
}

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

.products__card {
    display: flex;
    flex-direction: column;
}

.products__card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.products__card-body {
    padding-top: 24px;
    border-top: 1px solid var(--line-on-light);
    margin-top: 24px;
}

.products__card-name {
    font-family: var(--font-display);
    font-size: clamp(19px, 1.6vw, 24px);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.products__card-desc {
    font-size: clamp(14px, 1.05vw, 15px);
    line-height: 1.7;
    color: var(--muted-on-light);
    margin-bottom: 18px;
}

.products__card-specs li {
    list-style: none;
    position: relative;
    padding-left: 18px;
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.9;
    color: var(--ink);
}

.products__card-specs li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 8px;
    height: 1px;
    background-color: var(--bronze);
}

/* Сравнение плотности */
.products__density {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(36px, 4vw, 64px);
    padding: clamp(36px, 4.5vw, 72px);
    background-color: var(--paper-2);
}

.products__density-title {
    font-family: var(--font-display);
    font-size: clamp(21px, 1.9vw, 28px);
    font-weight: 500;
}

.products__density-note {
    margin-top: 8px;
    font-size: clamp(13px, 1vw, 14px);
    color: var(--muted-on-light);
}

.products__density-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3.5vw, 64px);
    align-items: start;
}

.products__density-caption {
    margin-top: 12px;
    font-size: clamp(12px, 0.95vw, 13px);
    letter-spacing: 0.06em;
    color: var(--muted-on-light);
}

.products__density-bar {
    height: clamp(90px, 10vw, 160px);
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--line-on-light);
    margin-bottom: 16px;
}

.products__density-fill {
    display: block;
    width: 100%;
    height: var(--fill);
    background-color: var(--bronze);
}

.products__density-value {
    font-family: var(--font-display);
    font-size: clamp(19px, 1.7vw, 26px);
    font-weight: 500;
}

.products__density-name {
    margin-top: 4px;
    font-size: clamp(12px, 0.95vw, 13px);
    letter-spacing: 0.04em;
    color: var(--muted-on-light);
}

/* ============================================================
   5. Материалы
   ============================================================ */
.materials {
    border-top: 1px solid var(--line-on-light);
}

.materials__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3.5vw, 64px);
    margin-bottom: clamp(64px, 7vw, 110px);
}

.materials__item-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.materials__item-body {
    padding-top: 22px;
    border-top: 1px solid var(--line-on-light);
    margin-top: 22px;
}

.materials__item-name {
    font-family: var(--font-display);
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.materials__item-composition {
    margin-top: 6px;
    font-size: clamp(12px, 0.95vw, 13px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bronze);
}

.materials__item-text {
    margin-top: 12px;
    font-size: clamp(14px, 1.05vw, 15px);
    line-height: 1.7;
    color: var(--muted-on-light);
}

.materials__detail {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: clamp(32px, 5vw, 88px);
    align-items: center;
    padding: clamp(48px, 5vw, 88px) 0;
    border-top: 1px solid var(--line-on-light);
}

.materials__detail-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.materials__detail-name {
    font-size: clamp(11px, 0.85vw, 13px);
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 16px;
}

.materials__detail-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(24px, 2.4vw, 36px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.materials__detail-text p,
.materials__packaging-text p {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.8;
    color: var(--muted-on-light);
}

.materials__packaging {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
    padding-top: clamp(48px, 5vw, 88px);
    border-top: 1px solid var(--line-on-light);
}

.materials__packaging-text {
    max-width: 420px;
}

.materials__packaging-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ============================================================
   6. Основатель
   ============================================================ */
.founder {
    border-top: 1px solid var(--line-on-dark);
}

.founder__grid {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: clamp(36px, 5vw, 96px);
    align-items: start;
}

.founder__portrait img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
}

.founder__name {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.founder__text {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.85;
    color: var(--muted-on-dark);
}

.founder__text + .founder__text {
    margin-top: 18px;
}

.founder__quote {
    margin: clamp(28px, 3vw, 44px) 0 0;
    padding-left: 28px;
    border-left: 1px solid var(--bronze);
}

.founder__quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.5;
    color: var(--paper);
}

.founder__quote cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-size: clamp(12px, 0.9vw, 13px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
}



/* ============================================================
   7. Где купить
   ============================================================ */
.where__content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.where__content .section-head__title {
    margin-bottom: 28px;
}

.where__text {
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.8;
    color: var(--muted-on-light);
}

.where__text + .where__text {
    margin-top: 16px;
}

.where__content .button {
    margin-top: 40px;
}

/* ============================================================
   8. Контакты и форма
   ============================================================ */
.contacts__grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(40px, 6vw, 110px);
    align-items: start;
}

.contacts__text {
    margin-top: 26px;
    max-width: 440px;
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.8;
    color: var(--muted-on-dark);
}

.contacts__note {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line-on-dark);
    max-width: 440px;
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.7;
    color: var(--muted-on-dark);
}

/* Форма */
.contacts__form {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.contacts__field {
    position: relative;
}

.contacts__label {
    display: block;
    margin-bottom: 10px;
    font-size: clamp(11px, 0.85vw, 12px);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
}

.contacts__input {
    width: 100%;
    padding: 15px 0;
    font-family: var(--font-body);
    font-size: clamp(15px, 1.1vw, 16px);
    color: var(--paper);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-on-dark);
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.contacts__input::placeholder {
    color: rgba(167, 159, 146, 0.55);
}

.contacts__input:focus {
    border-bottom-color: var(--bronze);
}

.contacts__input--textarea {
    resize: vertical;
    min-height: 96px;
}

.contacts__input--invalid {
    border-bottom-color: #c46a5a;
}

.contacts__error {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    color: #d98d7f;
}

.contacts__error--visible {
    display: block;
}

/* Ловушка от спама — скрыта от людей */
.contacts__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contacts__consent {
    position: relative;
}

.contacts__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
}

.contacts__checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.contacts__checkbox-box {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1px solid rgba(244, 240, 232, 0.45);
    position: relative;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.contacts__checkbox-box::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid var(--graphite);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.contacts__checkbox input:checked + .contacts__checkbox-box {
    background-color: var(--paper);
    border-color: var(--paper);
}

.contacts__checkbox input:checked + .contacts__checkbox-box::after {
    transform: rotate(45deg) scale(1);
}

.contacts__checkbox input:focus-visible + .contacts__checkbox-box {
    border-color: var(--bronze);
}

.contacts__checkbox-text {
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.6;
    color: var(--muted-on-dark);
}

.contacts__submit {
    align-self: flex-start;
    min-width: 240px;
    margin-top: 6px;
}

.contacts__submit-loading {
    display: none;
}

.contacts__submit--loading .contacts__submit-text {
    display: none;
}

.contacts__submit--loading .contacts__submit-loading {
    display: inline;
}

.contacts__submit:disabled {
    opacity: 0.55;
    cursor: default;
}

/* ============================================================
   Подвал
   ============================================================ */
.footer {
    background-color: var(--graphite);
    color: var(--paper);
    padding: clamp(56px, 6vw, 96px) 0 40px;
    border-top: 1px solid var(--line-on-dark);
}

.footer__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: clamp(36px, 4vw, 56px);
    border-bottom: 1px solid var(--line-on-dark);
}

.footer__logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(22px, 2vw, 30px);
    letter-spacing: 0.14em;
}

.footer__tagline {
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.7;
    color: var(--muted-on-dark);
    text-align: right;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 64px);
    padding: clamp(36px, 4vw, 56px) 0;
}

.footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 14px clamp(20px, 2.4vw, 40px);
}

.footer__menu-link {
    font-size: clamp(13px, 1vw, 14px);
    letter-spacing: 0.06em;
    color: var(--muted-on-dark);
    transition: color 0.25s ease;
}

.footer__menu-link:hover {
    color: var(--paper);
}

.footer__contacts-title {
    font-size: clamp(11px, 0.85vw, 12px);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 14px;
}

.footer__contacts-note {
    max-width: 460px;
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.7;
    color: var(--muted-on-dark);
}

.footer__contacts-link {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(244, 240, 232, 0.35);
    transition: color 0.25s ease;
}

.footer__contacts-link:hover {
    color: var(--paper);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--line-on-dark);
}

.footer__copy,
.footer__legal {
    font-size: clamp(12px, 0.9vw, 13px);
    color: var(--muted-on-dark);
}

/* ============================================================
   Модальные окна (Magnific Popup)
   ============================================================ */
.modal {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    padding: clamp(36px, 4vw, 56px);
    background-color: var(--paper);
    color: var(--ink);
    text-align: center;
}

.modal__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 16px;
}

.modal__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(24px, 2.4vw, 32px);
    margin-bottom: 14px;
}

.modal__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted-on-light);
    margin-bottom: 30px;
}

.modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 32px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background-color: var(--graphite);
    color: var(--paper);
    transition: background-color 0.3s ease;
}

.modal__close:hover {
    background-color: var(--bronze);
    color: var(--graphite);
}

/* Тонкая настройка Magnific Popup под стиль сайта */
.mfp-bg {
    background: var(--graphite);
    opacity: 0.92;
}

.mfp-close-btn-in .mfp-close {
    color: var(--ink);
    font-size: 32px;
    top: 8px;
    right: 8px;
}

/* ============================================================
   Появление блоков при прокрутке (деликатное)
   ============================================================ */
.js-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* 1440 */
@media (max-width: 1440px) {
    :root {
        --header-height: 80px;
    }
}

/* 1024 */
@media (max-width: 1024px) {
    .about__details {
        grid-template-columns: repeat(3, 1fr);
    }

    .collection__intro,
    .collection__intro--reverse {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .collection__intro--reverse .collection__intro-text {
        order: 0;
    }

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

    .collection__palette-items {
        grid-template-columns: repeat(5, 1fr);
    }

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

    .materials__packaging-text {
        max-width: 560px;
    }

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

    .founder__portrait img {
        aspect-ratio: 16 / 10;
    }

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

    .contacts__text,
    .contacts__note {
        max-width: 560px;
    }
}

/* 768 — мобильное меню */
@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background-color: rgba(28, 27, 26, 0.98);
        border-bottom: 1px solid transparent;
        transition: max-height 0.4s ease, border-color 0.4s ease;
    }

    .header__nav--open {
        max-height: calc(100vh - var(--header-height));
        max-height: calc(100svh - var(--header-height));
        border-bottom-color: var(--line-on-dark);
        overflow-y: auto;
    }

    .header__menu {
        flex-direction: column;
        gap: 0;
        padding: 12px 24px;
    }

    .header__menu-link {
        display: block;
        padding: 16px 0;
        font-size: 17px;
        min-height: 48px;
        border-bottom: 1px solid var(--line-on-dark);
    }

    .header__menu-item:last-child .header__menu-link {
        border-bottom: none;
    }

    .header__menu-link::after {
        display: none;
    }

    .header__cta--mobile {
        display: inline-flex;
        margin: 8px 24px 28px;
        min-width: 200px;
    }

    .header__right .header__cta:not(.header__cta--mobile) {
        display: none;
    }

    .header__burger {
        display: inline-flex;
    }

    .hero {
        min-height: 92vh;
        min-height: 92svh;
    }

    .hero__actions .button {
        width: 100%;
    }

    .about__principles {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about__details {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

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

    .collection__palette-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .products__cards {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .products__density {
        padding: 32px 24px;
    }

    .products__density-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

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

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

    .footer__top,
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .footer__tagline {
        text-align: left;
    }

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

/* 375 — мелкие телефоны */
@media (max-width: 375px) {
    .collection__palette-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .products__density-items {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .products__density-bar {
        height: 14px;
        align-items: stretch;
    }

    .products__density-fill {
        height: 100%;
        width: var(--fill);
    }

    .contacts__submit {
        width: 100%;
    }
}

/* ============================================================
   Уменьшенная анимация по настройке системы
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

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