/* =========================================================
   Foundry B2B — витрина завода Candelabre
   Дизайн-система: тёплая бумага, графит, медный акцент
   ========================================================= */

:root {
    --ink: #14161a;
    --ink-2: #2b3038;
    --muted: #6e6e6e;
    --muted-2: #9a9a9a;
    --paper: #f4f4f4;
    --paper-2: #ececec;
    --surface: #ffffff;
    --line: #e2e2e2;
    --line-2: #d3d3d3;
    --accent: #4a4a4a;
    --accent-2: #333333;
    --accent-soft: #ededed;
    --deep: #1a1a1a;
    --ok: #555555;

    --radius: 3px;
    --radius-lg: 6px;

    --container: 1280px;
    --gutter: 24px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;

    --shadow: 0 18px 40px -24px rgba(20, 22, 26, .35);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.f-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.f-main { min-height: 40vh; }

/* ---------- типографика ---------- */
.f-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.f-h1,
.f-section__title {
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.f-section__title { font-size: clamp(26px, 2.6vw, 38px); }

.f-lead {
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 62ch;
}

.f-muted { color: var(--muted); }
.f-mono { font-family: var(--mono); font-size: .92em; letter-spacing: -0.01em; }

/* ---------- кнопки ---------- */
.f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
    white-space: nowrap;
}
.f-btn:hover { background: #000; border-color: #000; color: #fff; }
.f-btn:active { transform: translateY(1px); }

.f-btn--accent { background: var(--accent); border-color: var(--accent); }
.f-btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); }

.f-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.f-btn--ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }

.f-btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.f-btn--light:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }

.f-btn--sm { height: 40px; padding: 0 16px; font-size: 13px; }
.f-btn--wide { width: 100%; }

.f-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color .18s ease;
}

/* ---------- поля ---------- */
.f-field { display: block; }
.f-field__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.f-field input,
.f-field textarea,
.f-field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.f-field input::placeholder,
.f-field textarea::placeholder { color: var(--muted-2); }
.f-field input:focus,
.f-field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(20, 22, 26, .07);
}
.f-field textarea { resize: vertical; min-height: 96px; }

/* ---------- верхняя полоса ---------- */
.f-topbar {
    background: var(--ink);
    color: #cfcfcf;
    font-size: 12.5px;
    letter-spacing: .01em;
}
.f-topbar__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}
.f-topbar__note { color: #9c9c9c; }
.f-topbar__links { display: flex; align-items: center; gap: 20px; }
.f-topbar__links a { color: #e8e2d9; }
.f-topbar__links a:hover { color: #fff; }
.f-topbar__hours { color: #9c9c9c; }
.f-topbar__phone { font-weight: 600; }

/* ---------- шапка ---------- */
.f-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.f-header__in {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 78px;
}

.f-logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.f-logo:hover { color: var(--ink); }
.f-logo__mark { width: 34px; height: 34px; color: var(--accent); flex: 0 0 auto; }
.f-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.f-logo__name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.f-logo__sub {
    white-space: nowrap;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}

.f-nav { display: flex; align-items: center; gap: 18px; margin-left: 8px; }
.f-nav__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 78px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
}
.f-nav__item:hover { color: var(--accent); }

.f-nav__item--has-sub::after {
    content: "";
    width: 6px; height: 6px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .55;
}

.f-sub {
    position: absolute;
    top: 100%;
    left: -24px;
    right: auto;
    width: min(1040px, calc(100vw - 48px));
    background: #fff;
    border: 1px solid var(--line);
    border-top: 2px solid var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 70;
}
.f-nav__item--has-sub:hover .f-sub,
.f-nav__item--has-sub:focus-within .f-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.f-sub__in {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 26px;
    padding: 24px 28px 28px;
}
.f-sub__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 14px;
}
.f-sub__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 14px;
    color: var(--ink-2);
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.f-sub__link span { color: var(--muted-2); font-size: 12px; }
.f-sub__link:hover { color: var(--accent); }
.f-sub__col, .f-sub__promo, .f-sub__link { min-width: 0; }
.f-sub__col, .f-sub__promo { min-width: 0; }
.f-sub__col--alt .f-sub__link { font-size: 13.5px; }
.f-sub__promo {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 20px;
    align-self: start;
}
.f-sub__promo-title { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.f-sub__promo p { font-size: 13px; color: var(--muted); line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }

.f-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.f-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    padding: 0 4px 0 14px;
    height: 40px;
    width: 230px;
    transition: border-color .18s ease, background .18s ease, width .2s ease;
}
.f-search:focus-within { background: #fff; border-color: var(--ink); width: 280px; }
.f-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13.5px;
    color: var(--ink);
    outline: none;
}
.f-search input::placeholder { color: var(--muted-2); }
.f-search button {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.f-search button:hover { color: var(--ink); background: var(--paper-2); }

.f-header__phone {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
}

.f-cart {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
}
.f-cart:hover { border-color: var(--ink); color: var(--ink); }
.f-cart__count {
    position: absolute;
    top: -7px; right: -7px;
    min-width: 19px; height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.f-cart__count:empty,
.f-cart__count[data-empty="1"] { display: none; }

.f-burger { display: none; }

/* ---------- общие секции ---------- */
.f-section { padding: 88px 0; }
.f-section--tight { padding: 56px 0; }
.f-section--paper { background: var(--paper-2); }
.f-section--dark { background: var(--deep); color: #ededed; }
.f-section--dark .f-section__title { color: #fff; }
.f-section--dark .f-lead { color: #c6c6c6; }

.f-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
}
.f-section__head p { margin: 10px 0 0; max-width: 56ch; color: var(--muted); }

/* ---------- hero ---------- */
.f-hero { padding: 56px 0 72px; }
.f-hero__in {
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: 56px;
    align-items: center;
}
.f-hero__title {
    font-size: clamp(34px, 4.4vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}
.f-hero__title em {
    font-style: normal;
    color: var(--accent);
}
.f-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.f-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.f-hero__meta-item { display: flex; flex-direction: column; gap: 3px; }
.f-hero__meta-value { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.f-hero__meta-label { font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.f-hero__media { position: relative; }
.f-hero__img {
    position: relative;
    aspect-ratio: 4 / 3.2;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}
.f-hero__img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.f-hero__caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(to top, rgba(20,22,26,.88), rgba(20,22,26,.55));
    color: #fff;
    font-size: 13px;
}
.f-hero__caption span { color: #cfcfcf; font-size: 12px; }

/* ---------- карточки задач ---------- */
.f-grid { display: grid; gap: 20px; }
.f-grid--3 { grid-template-columns: repeat(3, 1fr); }
.f-grid--4 { grid-template-columns: repeat(4, 1fr); }

.f-task {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    min-height: 124px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.f-task:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.f-task__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; max-width: 90%; }
.f-task__count { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* карточка раздела с картинкой категории */
.f-task--img {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 112px;
    padding: 18px 20px;
}
.f-task__img {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    border-radius: 2px;
}
.f-task__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.f-task__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f-task--img .f-task__name { max-width: 100%; font-size: 16.5px; line-height: 1.25; }
.f-task--img .f-task__count { margin-top: 2px; }
.f-task--img .f-task__arrow { top: 16px; right: 16px; }
.f-task__arrow {
    position: absolute;
    top: 22px; right: 22px;
    color: var(--muted-2);
    transition: color .2s ease, transform .2s ease;
}
.f-task:hover .f-task__arrow { color: var(--accent); transform: translate(2px, -2px); }

/* ---------- карточка товара ---------- */
.f-products { display: grid; gap: 20px; }
.f-products--4 { grid-template-columns: repeat(4, 1fr); }
.f-products--3 { grid-template-columns: repeat(3, 1fr); }

.f-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.f-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }

.f-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.f-card__media img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.f-card:hover .f-card__media img { transform: scale(1.04); }

.f-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 9px;
    background: var(--ink);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.f-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.f-card__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.005em;
    margin-bottom: 8px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.f-card__name a:hover { color: var(--accent); }
.f-card__meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
    min-height: 18px;
    line-height: 1.45;
}
.f-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.f-card__price { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.f-card__price small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.f-card__ask {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    white-space: nowrap;
}
.f-card__ask:hover { color: var(--accent-2); }
.f-card__form { margin: 0; }

/* ---------- шаги ---------- */
.f-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.f-step { padding: 28px 28px 4px 28px; border-right: 1px solid var(--line); }
.f-step:first-child { padding-left: 0; }
.f-step:last-child { border-right: 0; padding-right: 0; }
.f-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.f-step__name { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.f-step__text { font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: 30ch; }

/* ---------- производство ---------- */
.f-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.f-split__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-split__img {
    background: #fff;
    border: 1px solid rgba(255,255,255,.14);
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.f-split__img img { width: 100%; height: 100%; object-fit: cover; }
.f-split__img--tall { grid-row: span 2; aspect-ratio: 3 / 5.3; }
.f-points { margin-top: 28px; display: grid; gap: 0; }
.f-point {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.12);
}
.f-point svg { color: var(--accent); margin-top: 3px; }
.f-point__name { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.f-point__text { font-size: 13.5px; color: #b9b3aa; line-height: 1.5; }

/* ---------- КП ---------- */
.f-kp { background: var(--deep); color: #ededed; padding: 80px 0; }
.f-kp__in { display: grid; grid-template-columns: 1fr .92fr; gap: 64px; align-items: start; }
.f-kp__title { font-size: clamp(26px, 3vw, 40px); color: #fff; margin-bottom: 16px; letter-spacing: -0.03em; }
.f-kp__lead { color: #c6c6c6; font-size: 16px; max-width: 52ch; }
.f-kp__list { margin: 26px 0; display: grid; gap: 10px; }
.f-kp__list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: #ded8cf;
}
.f-kp__list li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 10px; height: 10px;
    border-left: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg);
}
.f-kp__contacts { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.f-kp__contacts a { font-size: 17px; font-weight: 600; color: #fff; }
.f-kp__contacts a:hover { color: var(--accent); }

.f-form {
    background: #fff;
    color: var(--ink);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -40px rgba(0,0,0,.6);
}
.f-form__row { margin-bottom: 16px; }
.f-form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-form__foot { margin-top: 8px; }
.f-form__note { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.f-form__note a { border-bottom: 1px solid var(--line-2); }
.f-form__msg { margin-top: 14px; padding: 12px 14px; font-size: 14px; border-radius: var(--radius); }
.f-form__msg--ok { background: #edf6f0; color: var(--ok); border: 1px solid #cfe6d8; }
.f-form__msg--err { background: #fbeeea; color: var(--accent-2); border: 1px solid #ededed; }

/* ---------- подвал ---------- */
.f-footer { background: var(--ink); color: #b8b2a9; padding: 64px 0 32px; }
.f-footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.f-logo--footer { color: #fff; margin-bottom: 18px; }
.f-logo--footer .f-logo__sub { color: #8a8a8a; }
.f-footer__about { font-size: 13.5px; line-height: 1.6; color: #8a8a8a; max-width: 38ch; }
.f-footer__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6e6e6e;
    margin-bottom: 16px;
}
.f-footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.f-footer__col a { color: #cfcfcf; }
.f-footer__more { color: var(--accent) !important; font-weight: 600; margin-top: 4px; }
.f-footer__more:hover { color: #fff !important; }
.f-footer__col a:hover { color: #fff; }
.f-footer__phone { font-size: 18px; font-weight: 600; color: #fff !important; }
.f-footer__addr, .f-footer__hours { font-size: 13px; color: #8a8a8a; }
.f-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding-top: 26px;
}
.f-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; color: #8a8a8a; }
.f-footer__legal a { border-bottom: 1px solid #4a4741; }
.f-footer__note { font-size: 11.5px; color: #6e6e6e; max-width: 46ch; line-height: 1.5; }

/* ---------- хлебные крошки ---------- */
.f-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 22px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}
.f-crumbs a { color: var(--muted); }
.f-crumbs a:hover { color: var(--ink); }
.f-crumbs__sep { color: var(--line-2); }

/* ---------- каталог ---------- */
.f-catalog { display: grid; grid-template-columns: 272px 1fr; gap: 48px; padding: 34px 0 88px; }
.f-catalog--wide { grid-template-columns: 1fr; gap: 0; width: 100%; max-width: var(--container); margin: 0 auto; padding: 34px var(--gutter) 88px; }
.f-category-desc { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 82ch; }
.f-catalog__aside { position: sticky; top: 96px; align-self: start; }

.f-page-head { margin-bottom: 28px; }
.f-page-head h1 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.03em; margin-bottom: 12px; }
.f-page-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }
.f-page-head__desc { margin-top: 18px; max-width: 78ch; color: var(--ink-2); font-size: 15px; }

.f-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
}
.f-toolbar__count { font-size: 13px; color: var(--muted); }
.f-toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.f-toolbar__sort a { color: var(--ink-2); border-bottom: 1px solid transparent; }
.f-toolbar__sort a:hover { border-color: currentColor; }
.f-toolbar__sort a.is-active { color: var(--accent); border-color: currentColor; }

.f-filters { border: 1px solid var(--line); background: #fff; }
.f-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.f-filters__body { padding: 6px 18px 18px; }
.f-filter { padding: 16px 0; border-bottom: 1px solid var(--line); }
.f-filter:last-child { border-bottom: 0; }
.f-filter__name { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.f-filter label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 0;
    font-size: 13.5px;
    color: var(--ink-2);
    cursor: pointer;
}
.f-filter input[type="checkbox"],
.f-filter input[type="radio"] { accent-color: var(--accent); }
.f-filter__range { display: flex; align-items: center; gap: 8px; }
.f-filter__more {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(74, 74, 74, .28);
}
.f-filter__range input {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    font-size: 13px;
}
.f-filters__apply { margin-top: 16px; }

.f-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.f-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: var(--ink-2);
}
.f-chip:hover { border-color: var(--ink); color: var(--ink); }
.f-chip span { color: var(--muted-2); font-size: 11.5px; }

.f-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.f-pagination > ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.f-pagination > ul > li { margin: 0; list-style: none; }
.f-pagination a,
.f-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 14px;
}
.f-pagination .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.f-pagination a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- карточка товара ---------- */
.f-product { padding: 26px 0 80px; }
.f-product__top {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 52px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
}
.f-gallery { position: sticky; top: 96px; }
.f-gallery__main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.f-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.f-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.f-gallery__thumb {
    width: 78px; height: 78px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 6px;
    cursor: pointer;
    transition: border-color .15s ease;
}
.f-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.f-gallery__thumb.is-active,
.f-gallery__thumb:hover { border-color: var(--ink); }

.f-product__head { margin-bottom: 22px; }
.f-product__title { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.03em; margin-bottom: 10px; }
.f-product__sku { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

.f-buy {
    background: #fff;
    border: 1px solid var(--line);
    padding: 24px;
}
.f-buy__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.f-buy__price strong { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.f-buy__price span { font-size: 13px; color: var(--muted); }
.f-buy__note { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.f-buy__actions { display: grid; gap: 10px; }
.f-buy__actions .f-btn { height: 50px; }
.f-buy__form { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: end; }
.f-buy__qty { display: flex; flex-direction: column; gap: 6px; }
.f-buy__qty label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.f-buy__qty input {
    height: 50px;
    width: 100%;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    font: inherit;
    font-size: 15px;
    text-align: center;
}
.f-buy__sub { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.f-buy__sub-row { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.f-buy__sub-row svg { flex: 0 0 auto; color: var(--ink); margin-top: 2px; }

.f-buy .cart { display: block; }
.f-buy .prices { display: none; }
.f-buy .sku { margin-bottom: 14px; }
.f-buy .skus { margin-bottom: 14px; }
.f-buy .skus li { padding: 4px 0; font-size: 14px; }
.f-buy input[type="submit"] {
    width: 100%;
    height: 50px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.f-buy input[type="submit"]:hover { background: var(--accent-2); border-color: var(--accent-2); }
.f-buy input[type="number"],
.f-buy input[type="text"] {
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    font-size: 14px;
}
.f-buy .services { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.f-buy .services label { display: flex; gap: 8px; font-size: 13px; padding: 4px 0; }

.f-product__tabs { display: flex; gap: 26px; margin: 40px 0 24px; border-bottom: 1px solid var(--line); }
.f-product__tab {
    padding: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: none;
    border-top: 0; border-left: 0; border-right: 0;
}
.f-product__tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.f-product__panel { display: none; }
.f-product__panel.is-active { display: block; }

.f-content { max-width: 78ch; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.f-content h3 { font-size: 18px; margin: 28px 0 10px; color: var(--ink); }
.f-content p { margin: 0 0 14px; }
.f-content ul { margin: 0 0 16px; padding-left: 18px; list-style: disc; }
.f-content li { margin-bottom: 6px; }
.f-content table { margin: 18px 0; font-size: 14px; }
.f-content td, .f-content th { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.f-content img { margin: 16px 0; border: 1px solid var(--line); }
.f-content video { width: 100%; border: 1px solid var(--line); }

.f-specs td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.f-specs td:first-child { width: 46%; color: var(--muted); padding-right: 20px; }
.f-specs td:last-child { color: var(--ink); font-weight: 500; }
.f-specs tr.divider td { padding-top: 22px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid var(--line); }

.f-related__title { font-size: 24px; margin: 56px 0 24px; letter-spacing: -0.02em; }

/* ---------- корзина / оформление (наследуемые шаблоны) ---------- */
.f-cart-page { padding: 40px 0 80px; }
.f-cart-page h1 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 24px; }
.f-cart-page table { font-size: 14px; }
.f-cart-page th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 0; border-bottom: 1px solid var(--line); }
.f-cart-page td { padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.f-cart-page .cart-img img { max-width: 80px; }
.f-cart-page input[type="number"] { width: 74px; height: 38px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.f-cart-page input[type="submit"],
.f-cart-page button[type="submit"],
.f-cart-page .checkout-button {
    height: 48px; padding: 0 22px;
    border: 1px solid var(--accent); border-radius: var(--radius);
    background: var(--accent); color: #fff; font-weight: 600; cursor: pointer;
}
.f-cart-page .checkout-button:hover { background: var(--accent-2); }

/* ---------- служебные страницы ---------- */
.f-page { padding: 34px 0 88px; }
.f-page h1 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 24px; letter-spacing: -0.03em; }
.f-page__body { max-width: 82ch; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.f-page__body h2 { font-size: 24px; margin: 36px 0 14px; color: var(--ink); letter-spacing: -0.02em; }
.f-page__body h3 { font-size: 18px; margin: 26px 0 10px; color: var(--ink); }
.f-page__body p { margin: 0 0 14px; }
.f-page__body ul, .f-page__body ol { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.f-page__body a { color: var(--accent); border-bottom: 1px solid rgba(74,74,74,.28); }
.f-page__body img { margin: 16px 0; border: 1px solid var(--line); }
.f-page__body table { margin: 18px 0; font-size: 14px; }
.f-page__body td, .f-page__body th { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }

/* ---------- диалог ---------- */
.f-dialog { position: fixed; inset: 0; z-index: 200; display: none; }
.f-dialog.is-open { display: block; }
.f-dialog__bg { position: absolute; inset: 0; background: rgba(15, 17, 20, .55); backdrop-filter: blur(2px); }
.f-dialog__win {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    margin: 8vh auto;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
    max-height: 84vh;
    overflow: auto;
}
.f-dialog__close {
    position: absolute;
    top: 10px; right: 14px;
    width: 34px; height: 34px;
    border: 0;
    background: transparent;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
}

/* ---------- оформление заказа (штатный checkout Webasyst) ---------- */
.wa-order-body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    padding: 40px 0 80px;
    min-height: 60vh;
}
.wa-order-body .container { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wa-order-body h1 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; margin: 0 0 18px; }
.wa-order-body .wa-order-header { margin-bottom: 18px; }
.wa-order-body input[type="text"],
.wa-order-body input[type="email"],
.wa-order-body input[type="tel"],
.wa-order-body input[type="password"],
.wa-order-body textarea,
.wa-order-body select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
}
.wa-order-body input:focus,
.wa-order-body textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(20, 22, 26, .07);
}
.wa-order-body .wa-shop-details-section,
.wa-order-body .s-cart,
.wa-order-body .cart {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 18px;
}
.wa-order-body .button,
.wa-order-body button,
.wa-order-body input[type="submit"] {
    height: 48px;
    padding: 0 22px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.wa-order-body .button:hover,
.wa-order-body button:hover,
.wa-order-body input[type="submit"]:hover { background: #000; color: #fff; }
.wa-order-body .button.gray,
.wa-order-body .gray { background: transparent; color: var(--ink); border-color: var(--line-2); }
.wa-order-body .s-cart-empty-wrapper { padding: 40px 0; text-align: center; color: var(--muted); }
.wa-order-body .s-actions-wrapper { margin-top: 18px; }
.wa-order-body table { font-size: 14px; }
.wa-order-body th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); }
.wa-order-body td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }

/* ---------- галерея объектов ---------- */
.f-albums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 44px;
}
.f-album {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.f-album:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.f-album__cover {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--paper-2);
    overflow: hidden;
}
.f-album__cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.f-album:hover .f-album__cover img { transform: scale(1.04); }
.f-album__body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
}
.f-album__name { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.f-album__count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.f-albums .f-album__cover { aspect-ratio: 16 / 10; }
.f-albums .f-album__cover img { object-fit: cover; object-position: center 62%; }
.f-albums .f-album__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.f-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.f-photo {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.f-photo:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.f-photo__img {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--paper-2);
    overflow: hidden;
}
.f-photo__img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.f-photo:hover .f-photo__img img { transform: scale(1.05); }
.f-photo__cap {
    display: block;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--ink-2);
    min-height: 44px;
}

.f-gallery-all { margin-top: 8px; }
.f-gallery-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 56px;
    padding: 32px;
    background: var(--paper-2);
    border: 1px solid var(--line);
}

.f-photo-page {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 44px;
    padding: 34px 0 80px;
    align-items: start;
}
.f-photo-page__img {
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    padding: 12px;
}
.f-photo-page__img img { max-width: 100%; max-height: 78vh; width: auto; height: auto; }
.f-photo-page__side h1 { font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 14px; letter-spacing: -0.02em; }
.f-photo-page__desc { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.f-photo-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@media (max-width: 1024px) {
    .f-albums, .f-photos { grid-template-columns: repeat(2, 1fr); }
    .f-photo-page { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
    .f-albums, .f-photos { grid-template-columns: 1fr; }
    .f-gallery-cta { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px; }
}

/* ---------- мелочи ---------- */
.f-loading { opacity: .55; pointer-events: none; }
.f-empty { padding: 48px 0; color: var(--muted); }
.f-hidden { display: none !important; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
    .f-nav { gap: 18px; }
    .f-search { width: 180px; }
    .f-header__phone { display: none; }
    .f-hero__in { gap: 36px; }
}

@media (max-width: 1024px) {
    .f-header__in { min-height: 68px; gap: 16px; }
    .f-nav {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0;
        bottom: 0;
        z-index: 100;
        background: #fff;
        padding: 88px 24px 32px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: auto;
    }
    .f-nav.is-open { display: flex; }
    .f-nav__item { height: auto; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
    .f-nav__item--has-sub::after { display: none; }
    .f-sub { display: none; }
    .f-search { width: 100%; max-width: 220px; }
    .f-search:focus-within { width: 100%; }
    .f-burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px; height: 42px;
        padding: 0 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        cursor: pointer;
    }
    .f-burger span { display: block; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
    .f-burger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .f-burger.is-active span:nth-child(2) { opacity: 0; }
    .f-burger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .f-hero__in,
    .f-split,
    .f-kp__in,
    .f-product__top { grid-template-columns: 1fr; gap: 32px; }
    .f-catalog { grid-template-columns: 1fr; gap: 24px; }
    .f-catalog__aside { position: static; }
    .f-gallery { position: static; }
    .f-grid--4, .f-products--4 { grid-template-columns: repeat(2, 1fr); }
    .f-grid--3, .f-products--3 { grid-template-columns: repeat(2, 1fr); }
    .f-steps { grid-template-columns: 1fr 1fr; }
    .f-step { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 20px 24px 0; }
    .f-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 680px) {
    :root { --gutter: 16px; }
    .f-topbar__note, .f-topbar__hours { display: none; }
    .f-topbar__in { justify-content: center; }
    .f-header__cta { display: none; }
    .f-search { display: none; }
    .f-hero { padding: 32px 0 48px; }
    .f-hero__meta { gap: 18px; }
    .f-hero__meta-value { font-size: 20px; }
    .f-section { padding: 56px 0; }
    .f-section__head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .f-grid--4, .f-products--4, .f-grid--3, .f-products--3 { grid-template-columns: 1fr; }
    .f-steps { grid-template-columns: 1fr; }
    .f-footer__top { grid-template-columns: 1fr; }
    .f-form { padding: 20px; }
    .f-form__row--2 { grid-template-columns: 1fr; }
    .f-product__tabs { gap: 16px; overflow: auto; }
    .f-kp { padding: 56px 0; }
    .f-buy { padding: 18px; }
    .f-buy__price strong { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* видео раздела от плагина CategoryVideo: не даём ему съесть первый экран */
.categoryvideo { margin: 0 0 32px; }
.categoryvideo-item { max-width: 720px !important; border-radius: 3px; overflow: hidden; }

.f-series-index { margin-bottom: 36px; }
.f-series-index .f-task { min-height: 104px; }

/* ---------- мега-меню: компактный список разделов ---------- */
.f-sub { max-height: calc(100vh - 110px); overflow-y: auto; }
.f-sub__list { column-count: 1; }
.f-sub__link { break-inside: avoid; }
.f-sub__all { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }
.f-sub__all:hover { color: var(--ink); }

/* ---------- мобильное меню ---------- */
body.f-nav-open { overflow: hidden; }

@media (max-width: 1024px) {
    /* backdrop-filter делает шапку containing block — из-за этого fixed-меню сжималось */
    .f-header { backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 120; }
    .f-nav {
        margin: 0;
        top: 0; left: 0; right: 0; bottom: 0;
        padding: 84px 20px 40px;
        z-index: 100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .f-nav__item { font-size: 18px; padding: 15px 0; }
    .f-nav__item--has-sub { display: block; }
    .f-nav__item--has-sub > a { display: block; }
    .f-sub {
        display: block !important;
        position: static !important;
        width: auto !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
        padding: 0 0 8px !important;
    }
    .f-sub__in { display: block !important; padding: 0 !important; max-width: none !important; }
    .f-sub__col--alt, .f-sub__promo { display: none !important; }
    .f-sub__col { padding: 0 !important; }
    .f-logo, .f-header__actions { position: relative; z-index: 110; }
    .f-nav { padding-top: 96px; }
    .f-sub__list { column-count: 1 !important; }
    .f-sub__link { font-size: 15.5px !important; padding: 11px 0 !important; }
    .f-sub__title { margin: 6px 0 4px !important; }
    .f-sub__all { margin: 12px 0 4px !important; }
}
/* ---------- страница «Производство» ---------- */
.f-page__body--wide { max-width: none; }
.f-page__body--wide > p,
.f-page__body--wide > h2,
.f-page__body--wide > h3,
.f-page__body--wide > ul { max-width: 82ch; }

.f-prod-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin: 26px 0 42px;
}
.f-prod-stat { background: #fff; padding: 20px 22px; }
.f-prod-stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.f-prod-stat span { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

.f-prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 22px 0 6px; }
.f-prod-card { background: #fff; border: 1px solid var(--line); padding: 22px; }
.f-prod-card h3 { margin: 0 0 8px; font-size: 17px; }
.f-prod-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

.f-prod-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 10px; }
.f-prod-photos figure { margin: 0; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.f-prod-photos img { display: block; width: 100%; height: 220px; object-fit: cover; margin: 0; border: 0; }
.f-prod-photos figcaption { padding: 10px 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.f-prod-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.f-page__body a.f-btn { border-bottom: 1px solid var(--ink); }
.f-page__body a.f-btn--accent { border-bottom-color: var(--accent); color: #fff; }
.f-page__body a.f-btn--ghost { border-bottom-color: var(--line-2); color: var(--ink); }
.f-page__body a.f-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 900px) {
    .f-prod-stats { grid-template-columns: repeat(2, 1fr); }
    .f-prod-grid { grid-template-columns: 1fr; }
    .f-prod-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .f-prod-photos { grid-template-columns: 1fr; }
    .f-prod-photos img { height: 210px; }
}
/* ---------- палитра RAL ---------- */
.f-ral-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 10px; }
.f-ral { border: 1px solid var(--line); background: #fff; padding: 12px; }
.f-ral__chip { display: block; height: 56px; margin-bottom: 10px; border: 1px solid rgba(0,0,0,.14); }
.f-ral b { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.f-ral i { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.f-prod-card h3 a { border-bottom: 0; }
.f-prod-card h3 a:hover { color: var(--accent); }
@media (max-width: 760px) { .f-ral-grid { grid-template-columns: repeat(2, 1fr); } }
/* ---------- раздел каталога: вводный блок и кастомизация ---------- */
.f-cat-lead { margin: 4px 0 28px; }
.f-cat-lead .f-lead { max-width: 78ch; margin-bottom: 16px; }
.f-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-cat-chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: #fff;
    font-size: 12.5px;
    color: var(--ink-2);
    white-space: nowrap;
}

.f-cat-custom { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.f-cat-custom .f-section__title { margin: 6px 0 14px; }
.f-cat-custom .f-lead { margin-bottom: 26px; }
.f-cat-custom__note {
    margin: 20px 0 0;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-2);
}
.f-cat-custom__note p { margin: 0; }
/* ---------- документные страницы: доставка, оплата ---------- */
.f-doc { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 56px; align-items: start; }
.f-doc__toc { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 1px; padding-left: 16px; border-left: 1px solid var(--line); }
.f-doc__toc a { padding: 7px 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); border-bottom: 0; }
.f-doc__toc a:hover { color: var(--accent); }
.f-doc__body { max-width: 78ch; }
.f-page__body .f-lead { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; color: var(--ink-2); }
.f-doc__body > section > h2:first-child { margin-top: 0; }
.f-doc section { scroll-margin-top: 104px; }
.f-doc h2 { margin-top: 44px; }
.f-doc__steps { margin: 0 0 16px; padding-left: 22px; }
.f-doc__steps li { margin-bottom: 11px; }
.f-note {
    margin: 22px 0;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--ink);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-2);
}
.f-note--accent { border-left-color: var(--accent); }
.f-note a { border-bottom: 0; }
.f-price-cards { display: grid; gap: 12px; margin: 20px 0 8px; }
.f-price-card {
    display: flex;
    gap: 20px;
    align-items: baseline;
    background: #fff;
    border: 1px solid var(--line);
    padding: 16px 20px;
    font-size: 14.5px;
    line-height: 1.55;
}
.f-price-card b { flex: 0 0 auto; min-width: 132px; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 1024px) {
    .f-doc { grid-template-columns: 1fr; gap: 24px; }
    .f-doc__toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; padding: 0 0 14px; border-left: 0; border-bottom: 1px solid var(--line); }
    .f-price-card { flex-direction: column; gap: 4px; }
    .f-price-card b { min-width: 0; }
}
/* ---------- мобильное меню: аккордеон каталога + кнопка КП ---------- */
.f-nav__extra { display: none; }

@media (max-width: 1024px) {
    .f-nav__item--has-sub > a { display: flex; align-items: center; justify-content: space-between; }
    .f-nav__item--has-sub > a::after {
        content: '';
        width: 8px; height: 8px;
        border-right: 1.5px solid var(--muted);
        border-bottom: 1.5px solid var(--muted);
        transform: rotate(45deg);
        transition: transform .2s ease;
        flex: 0 0 auto;
    }
    .f-nav__item--has-sub.is-open > a::after { transform: rotate(-135deg); }

    .f-nav__item--has-sub:not(.is-open) .f-sub { display: none !important; }
    .f-nav__item--has-sub.is-open .f-sub { display: block !important; }

    .f-sub__col--alt { display: block !important; margin-top: 10px; }
    .f-sub__promo { display: none !important; }
    .f-sub__col--alt .f-sub__link { font-size: 15px; }

    .f-nav__extra { display: block; margin-top: 28px; }
    .f-nav__extra .f-btn { width: 100%; }
    .f-nav__contacts { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-size: 15.5px; }
    .f-nav__contacts a { color: var(--ink); border-bottom: 0; }
}
/* ---------- мобильное меню начинается под шапкой ---------- */
@media (max-width: 1024px) {
    .f-nav.is-open {
        padding-top: 8px !important;
        padding-bottom: 28px !important;
    }
    .f-nav__item:first-child { border-top: 0; }
}
/* ---------- баннер в шапке главной: объекты вместо карточки товара ---------- */
.f-banner {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}
.f-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.f-banner__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,14,17,.05) 0%, rgba(12,14,17,.35) 45%, rgba(12,14,17,.9) 100%);
}
.f-banner__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 32px 28px;
}
.f-banner__eyebrow {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}
.f-banner__title {
    font-size: clamp(21px, 1.9vw, 28px);
    line-height: 1.16;
    font-weight: 600;
    letter-spacing: -.02em;
    max-width: 18ch;
}
.f-banner__text {
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255,255,255,.78);
    max-width: 34ch;
}
.f-banner__cta {
    margin-top: 4px;
    align-self: flex-start;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255,255,255,.5);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.f-banner:hover .f-banner__cta { border-color: #fff; }
.f-banner:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 900px) {
    .f-banner { aspect-ratio: 4 / 3; }
    .f-banner__body { padding: 22px 22px 20px; }
    .f-banner__title { max-width: none; }
}

/* ---------- карточка товара: длинные фото не обрезаются ---------- */
.f-gallery__main { position: relative; overflow: hidden; }
.f-gallery__main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
    object-fit: contain;
}
/* ---------- антиспам-ловушка: скрытое поле, которое заполняют только роботы ---------- */
.f-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
/* ---------- шапка: не расползается на средних экранах ---------- */
.f-header__in { flex-wrap: nowrap; }
.f-logo { flex: 0 0 auto; }
.f-nav { flex: 0 0 auto; min-width: 0; }
.f-header__actions { flex: 0 0 auto; }
.f-search { flex: 0 1 230px; min-width: 120px; }
.f-header__cta,
.f-cart,
.f-burger { flex: 0 0 auto; }

@media (max-width: 1600px) {
    .f-nav { gap: 12px; }
    .f-nav__item { font-size: 14px; }
    .f-logo__name { font-size: 17px; }
    .f-search { width: 168px; }
}

@media (max-width: 1320px) {
    .f-nav { gap: 14px; }
    .f-nav__item { font-size: 13.5px; }
    .f-search { width: 170px; }
    .f-header__phone { display: none; }
}

@media (max-width: 1180px) {
    .f-search { display: none; }
    .f-header__cta { padding: 0 18px; }
    .f-nav { gap: 16px; }
}
/* мега-меню не должно вылезать за экран на средних ширинах */
.f-sub { width: min(1040px, calc(100vw - 340px)); max-width: calc(100vw - 32px); }
@media (max-width: 1180px) {
    .f-sub { width: min(860px, calc(100vw - 320px)); }
}

/* ---------- тёплый свет: единственный цветной акцент ---------- */
:root {
    --lamp: #e9a23b;
    --lamp-2: #cf8624;
    --lamp-ink: #14161a;
    --lamp-glow: rgba(233, 162, 59, .22);
}

.f-btn--lamp {
    background: var(--lamp);
    border-color: var(--lamp);
    color: var(--lamp-ink);
    font-weight: 600;
}

.f-btn--lamp:hover {
    background: var(--lamp-2);
    border-color: var(--lamp-2);
    color: var(--lamp-ink);
}

.f-header__cta.f-btn--lamp {
    background: var(--lamp);
    border-color: var(--lamp);
    color: var(--lamp-ink);
}

.f-header__cta.f-btn--lamp:hover {
    background: var(--lamp-2);
    border-color: var(--lamp-2);
}

.f-eyebrow::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--lamp);
}

/* логотип: знак светится янтарём */
.f-logo__mark {
    color: var(--lamp);
    filter: drop-shadow(0 0 12px rgba(233, 162, 59, .28));
}

.f-logo:hover .f-logo__mark {
    color: var(--lamp-2);
}

.f-logo--footer .f-logo__mark {
    color: var(--lamp);
    filter: none;
}

.f-nav__item--constructor { display: inline-flex; align-items: center; gap: 7px; }
.f-nav__badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 6px; border-radius: 999px; background: #f4e3c8; color: #8a5a12; font-size: 8.5px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
@media (max-width: 1520px) { .f-header__phone { display: none; } }


/* photo redesign 20261128 */
/* ---------- photo gallery / projects ---------- */
.f-photo-hero {
    padding: 30px 0 48px;
    background:
        radial-gradient(circle at 82% 20%, rgba(233, 162, 59, .12), transparent 34%),
        var(--paper-2);
    border-bottom: 1px solid var(--line);
}
.f-photo-hero__in {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 54px;
    align-items: center;
}
.f-photo-hero__title {
    font-size: clamp(38px, 4.6vw, 64px);
    line-height: 1.02;
    letter-spacing: -.045em;
    margin: 12px 0 20px;
}
.f-photo-hero__title em {
    color: var(--accent);
    font-style: normal;
}
.f-photo-hero .f-lead { max-width: 54ch; }
.f-photo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}
.f-photo-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.f-photo-hero__stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.f-photo-hero__stats b {
    font-size: 24px;
    line-height: 1;
    letter-spacing: -.03em;
}
.f-photo-hero__stats span {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.f-photo-hero__media {
    position: relative;
    min-height: 280px;
}
.f-photo-hero__media a {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--deep);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(20, 22, 26, .16);
}
.f-photo-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.f-photo-hero__media a:hover img { transform: scale(1.035); }
.f-photo-hero__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 10px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.f-photo-hero__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 44px 20px 18px;
    background: linear-gradient(transparent, rgba(10, 12, 14, .82));
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}
.f-albums--projects { grid-template-columns: repeat(3, 1fr); }
.f-albums--projects .f-album:first-child { grid-column: span 2; }
.f-albums--projects .f-album:first-child .f-album__cover { aspect-ratio: 16 / 8.4; }
.f-albums--projects .f-album__cover { position: relative; }
.f-album__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    background: rgba(20, 22, 26, .72);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.f-photo-project .f-photos { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.f-photo-project .f-photo__img { aspect-ratio: 4 / 3; }
.f-photo-project .f-photo__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- project album ---------- */
.f-project-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 54px;
    background: var(--deep);
    color: #f2eee7;
}
.f-project-hero__bg {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    opacity: .3;
    filter: saturate(.85);
}
.f-project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 20, 23, .92) 0%, rgba(18, 20, 23, .68) 56%, rgba(18, 20, 23, .35) 100%);
}
.f-project-hero__in {
    position: relative;
    z-index: 1;
    max-width: 880px;
}
.f-project-hero .f-eyebrow { color: #e9a23b; }
.f-project-hero h1 {
    color: #fff;
    font-size: clamp(28px, 3.6vw, 48px);
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 10px 0 16px;
    max-width: 22ch;
}
.f-project-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #c6c0b7;
}
.f-project-hero__desc {
    margin: 18px 0 0;
    max-width: 68ch;
    color: #d9d3ca;
    font-size: 15px;
    line-height: 1.65;
}
.f-project-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}
.f-photo-gallery {
    padding: 4px 0 8px;
}

/* ---------- single photo ---------- */
.f-photo-detail { padding: 28px 0 84px; }
.f-photo-detail__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
}
.f-photo-detail__counter {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.f-photo-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 36px;
    align-items: start;
}
.f-photo-detail__image {
    background: var(--deep);
    border: 1px solid var(--line);
    padding: 14px;
    display: grid;
    place-items: center;
}
.f-photo-detail__image img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
}
.f-photo-detail__side {
    position: sticky;
    top: 104px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    padding: 28px;
}
.f-photo-detail__side h1 {
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.15;
    letter-spacing: -.025em;
    margin: 10px 0 14px;
}
.f-photo-detail__desc {
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 20px;
}
.f-photo-detail__cta { width: 100%; justify-content: center; }
.f-photo-detail__catalog {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
}
.f-photo-detail__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

@media (max-width: 1024px) {
    .f-photo-hero__in { grid-template-columns: 1fr; gap: 28px; }
    .f-photo-hero__media { order: -1; }
    .f-photo-hero__media a { aspect-ratio: 16 / 9; }
    .f-albums--projects { grid-template-columns: repeat(2, 1fr); }
    .f-albums--projects .f-album:first-child { grid-column: auto; }
    .f-albums--projects .f-album:first-child .f-album__cover { aspect-ratio: 16 / 10; }
    .f-photo-project .f-photos { grid-template-columns: repeat(2, 1fr); }
    .f-photo-detail__grid { grid-template-columns: 1fr; gap: 22px; }
    .f-photo-detail__side { position: static; }
}
@media (max-width: 680px) {
    .f-photo-hero { padding: 18px 0 32px; }
    .f-photo-hero__title { font-size: 36px; }
    .f-photo-hero__stats { gap: 22px; }
    .f-albums--projects { grid-template-columns: 1fr; }
    .f-photo-project .f-photos { grid-template-columns: 1fr 1fr; gap: 10px; }
    .f-project-hero { padding: 36px 0 34px; }
    .f-project-hero h1 { font-size: 28px; }
    .f-photo-detail { padding-top: 18px; }
}

/* photo polish v2 */
.f-photo-hero__chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.f-photo-hero__chips span {
    padding:6px 9px; background:rgba(20,22,26,.06); border:1px solid rgba(20,22,26,.08);
    color:var(--ink-2); font-size:10.5px; letter-spacing:.04em;
}
.f-photo-hero__media img { width:100% !important; height:100% !important; }
.f-album__cover img { width:100% !important; height:100% !important; }
.f-project-hero__bg { width:100% !important; height:100% !important; object-fit:cover; }
.f-project-hero .f-btn--ghost {
    color:#fff !important; border-color:rgba(255,255,255,.5) !important;
    background:rgba(255,255,255,.08) !important;
}
.f-project-hero .f-btn--ghost:hover { background:rgba(255,255,255,.16) !important; }
.f-photo-project .f-photos {
    display:block !important;
    columns:3;
    column-gap:14px;
}
.f-photo-project .f-photos > li {
    display:block; break-inside:avoid; margin:0 0 14px; width:100%;
}
.f-photo-project .f-photo { display:block; }
.f-photo-project .f-photo__img { aspect-ratio:auto !important; display:block; }
.f-photo-project .f-photo__img img {
    width:100% !important; height:auto !important; object-fit:contain !important;
}
@media (max-width:1024px) { .f-photo-project .f-photos { columns:2; } }
@media (max-width:680px) { .f-photo-project .f-photos { columns:1; } }
/* photo final polish */
.f-project-hero .f-btn--ghost {
    background:#fff !important; color:#14161a !important; border-color:#fff !important;
}
.f-project-hero .f-btn--ghost:hover { background:#e9a23b !important; color:#14161a !important; border-color:#e9a23b !important; }
.f-photo-hero__media img { width:100% !important; height:100% !important; }
.f-album__cover img { width:100% !important; height:100% !important; }
/* photo preview beauty */
.f-albums--projects .f-album__cover {
    position: relative;
    background-color: #14161a;
    background-size: cover;
    background-position: center;
}
.f-albums--projects .f-album__cover::before {
    content: "";
    position: absolute;
    inset: -18px;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(.42);
    transform: scale(1.08);
    z-index: 0;
}
.f-albums--projects .f-album__cover img {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
.f-albums--projects .f-album__tag { z-index: 2; }

.f-project-hero {
    background-size: cover;
    background-position: center;
}
.f-project-hero::before {
    content: "";
    position: absolute;
    inset: -20px;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(26px) brightness(.38);
    transform: scale(1.08);
    z-index: 0;
}
.f-project-hero__bg {
    object-fit: contain !important;
    opacity: .92 !important;
    z-index: 0;
}
.f-project-hero::after { z-index: 1; }
.f-project-hero__in { z-index: 2; }
/* photo preview cover */
.f-albums--projects .f-album__cover img { object-fit: cover !important; object-position: center 42% !important; }
.f-project-hero__bg { object-fit: cover !important; }
.f-albums--projects .f-album__cover { background-color: #14161a; }
/* photo grid fix: always 3 equal cards, no stretched first row */
.f-albums--projects { grid-template-columns: repeat(3, 1fr) !important; }
.f-albums--projects .f-album:first-child { grid-column: auto !important; }
.f-albums--projects .f-album__cover,
.f-albums--projects .f-album:first-child .f-album__cover {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    overflow: hidden;
    display: block;
    background: #14161a;
}
.f-albums--projects .f-album__cover img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 45% !important;
}
@media (max-width: 1024px) {
    .f-albums--projects { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 680px) {
    .f-albums--projects { grid-template-columns: 1fr !important; }
}
/* symmetric project gallery */
.f-photo-project .f-photos {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    columns: auto !important;
}
.f-photo-project .f-photos > li {
    width: calc((100% - 28px) / 3) !important;
    margin: 0 !important;
    display: block !important;
    break-inside: auto !important;
}
.f-photo-project .f-photo { display: block; height: 100%; }
.f-photo-project .f-photos > li:only-child { width: 100% !important; }
.f-photo-project .f-photo__img {
    aspect-ratio: 4 / 3 !important;
    display: block;
    overflow: hidden;
}
.f-photo-project .f-photo__img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
}
@media (max-width: 1024px) {
    .f-photo-project .f-photos > li { width: calc((100% - 14px) / 2) !important; }
}
@media (max-width: 680px) {
    .f-photo-project .f-photos > li { width: 100% !important; }
}
/* photo detail: keep native aspect */
.f-photo-detail__image img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}
/* photo carousel */
.f-photo-carousel { padding: 8px 0 64px; border-top: 1px solid var(--line); }
.f-photo-carousel__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 24px 0 14px;
}
.f-photo-carousel__hint { font-size: 12px; color: var(--muted); }
.f-photo-strip-wrap { display: flex; align-items: center; gap: 10px; }
.f-photo-strip {
    display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
    flex: 1; padding: 2px 0 8px; scrollbar-width: thin;
}
.f-photo-strip__item {
    flex: 0 0 100px; width: 100px; height: 100px; overflow: hidden;
    border: 1px solid var(--line); background: var(--paper-2); display: block;
}
.f-photo-strip__item img {
    width: 100% !important; height: 100% !important; object-fit: cover; display: block;
    transition: transform .25s ease;
}
.f-photo-strip__item:hover img { transform: scale(1.05); }
.f-photo-strip__nav {
    flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.f-photo-strip__nav:hover { border-color: var(--ink); }
.f-photo-carousel__source { display: none !important; }
@media (max-width: 680px) {
    .f-photo-strip__item { flex-basis: 78px; width: 78px; height: 78px; }
    .f-photo-carousel__hint { display: none; }
}
/* photo carousel in right column */
.f-photo-carousel--side {
    padding: 22px 0 0 !important;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}
.f-photo-carousel--side .f-photo-carousel__head {
    display: block;
    padding: 0 0 10px;
}
.f-photo-carousel--side .f-photo-carousel__hint { display: none; }
.f-photo-carousel--side .f-photo-strip__item {
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
}
.f-photo-carousel--side .f-photo-strip__nav {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    font-size: 18px;
}
/* bigger carousel in the right column */
.f-photo-detail__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(390px, .65fr);
}
.f-photo-carousel--side .f-photo-strip__item {
    flex: 0 0 104px;
    width: 104px;
    height: 104px;
}
.f-photo-carousel--side .f-photo-strip__nav {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    font-size: 20px;
}
@media (max-width: 1024px) {
    .f-photo-detail__grid { grid-template-columns: 1fr; }
}
/* photo editorial gallery (different from home) */
.f-photo-editorial {
    padding: 48px 0 42px;
    background: var(--deep);
    color: #f2eee7;
}
.f-photo-editorial__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 52px;
}
.f-photo-editorial__text { max-width: 760px; }
.f-photo-editorial .f-eyebrow { color: #e9a23b; }
.f-photo-editorial h1 {
    color: #fff;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .98;
    letter-spacing: -.05em;
    margin: 10px 0 18px;
}
.f-photo-editorial__text p {
    max-width: 64ch;
    margin: 0;
    color: #cfc8be;
    font-size: 15.5px;
    line-height: 1.65;
}
.f-photo-editorial__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.f-photo-editorial__chips span {
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.18);
    color: #e9e2d7;
    font-size: 10.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.f-photo-editorial__numbers {
    display: flex;
    gap: 28px;
    flex-shrink: 0;
}
.f-photo-editorial__numbers div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,.2);
}
.f-photo-editorial__numbers b {
    color: #fff;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -.03em;
}
.f-photo-editorial__numbers span {
    color: #aaa39a;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.f-photo-editorial__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.f-albums--editorial .f-album {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.f-albums--editorial .f-album__cover,
.f-albums--editorial .f-album:first-child .f-album__cover {
    aspect-ratio: 4 / 3 !important;
    border: 1px solid rgba(20,22,26,.12);
}
.f-albums--editorial .f-album__cover::before { display: none; }
.f-albums--editorial .f-album__cover img {
    object-fit: cover !important;
    object-position: center 45% !important;
}
.f-album__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 48px 16px 14px;
    background: linear-gradient(transparent, rgba(12,14,16,.86));
}
.f-albums--editorial .f-album__name {
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
}
.f-albums--editorial .f-album__count { color: #d7d0c7; font-size: 11px; }
.f-albums--editorial .f-album__tag { top: 14px; left: 14px; }
.f-photo-gallery-page { background: var(--paper); }
.f-photo-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 50px;
    padding: 34px 36px;
    background: var(--deep);
    color: #f2eee7;
}
.f-photo-cta h2 {
    color: #fff;
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.15;
    letter-spacing: -.03em;
    margin: 6px 0 8px;
}
.f-photo-cta p { color: #bcb5ab; margin: 0; max-width: 58ch; }
.f-photo-cta .f-eyebrow { color: #e9a23b; }
@media (max-width: 1024px) {
    .f-photo-editorial__head { flex-direction: column; gap: 26px; align-items: flex-start; }
    .f-photo-editorial__numbers { gap: 22px; }
    .f-albums--editorial { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 680px) {
    .f-photo-editorial { padding: 30px 0 28px; }
    .f-photo-editorial h1 { font-size: 42px; }
    .f-photo-editorial__numbers { width: 100%; justify-content: space-between; gap: 12px; }
    .f-photo-editorial__numbers div { padding-left: 0; border-left: 0; }
    .f-albums--editorial { grid-template-columns: 1fr !important; }
    .f-photo-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
}
/* editorial intro image */
.f-photo-editorial {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center 48%;
}
.f-photo-editorial::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16,18,21,.94) 0%, rgba(16,18,21,.84) 48%, rgba(16,18,21,.52) 100%);
}
.f-photo-editorial .f-container { position: relative; z-index: 1; }
@media (max-width: 680px) {
    .f-photo-editorial::before { background: rgba(16,18,21,.86); }
}
/* mobile photo page: no horizontal overflow */
.f-photo-detail__grid,
.f-photo-detail__side,
.f-photo-carousel--side,
.f-photo-strip-wrap,
.f-photo-strip {
    min-width: 0 !important;
    max-width: 100% !important;
}
.f-photo-detail__side { width: 100%; }
.f-photo-strip-wrap { width: 100%; }
.f-photo-strip { width: 100%; flex: 1 1 auto; }
@media (max-width: 1024px) {
    .f-photo-detail__grid { grid-template-columns: minmax(0, 1fr) !important; }
    .f-photo-detail__side { position: static !important; width: 100% !important; }
}