/* =========================================================
   ARINNEA — Variant B (Fulgor skeleton adapted)
   Loaded after main.css; overrides + page components.
   ========================================================= */

:root {
  --fs-bullet: 1.5rem;                                   /* bullet titles: one size everywhere */
  --fs-note: clamp(1.125rem, 1.05rem + .25vw, 1.25rem);   /* italic descriptions: 18 → 20 */
  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --c-frame: rgba(36, 35, 33, .55);
  --r-corner: 28px;   /* single rounded corner, Fulgor device */
}

/* ---- typography: serif display, italic accent ---- */
.h1, .h2 { font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.015em; }
.h1 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.75rem); line-height: 1.08; }
.h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); line-height: 1.12; }
.h3 { font-family: var(--ff-display); font-weight: 700; }
em.acc, .acc { font-family: var(--ff-display); font-style: italic; font-weight: 400; }
.kicker {
  display: block; margin-top: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.7;
  color: var(--c-text-2);
}
.on-dark .kicker { color: var(--c-greige); }
.kicker--dash::before { content: "— "; }
.title { text-align: center; margin-bottom: clamp(40px, 5vw, 72px); }
.title--left { text-align: left; }
.title .kicker { margin-top: 10px; text-wrap: balance; }
.title p.lead { max-width: 74ch; margin: 18px auto 0; color: var(--c-text-2); text-wrap: balance; }

/* ---- buttons: .pill and .btn share one look and one hover ---- */
.btn {
  min-height: 62px; padding: 0 34px; gap: 14px;
  border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: transparent; color: var(--c-text); border-color: var(--c-text);
}
.btn:hover, .btn:active { background: var(--c-text); border-color: var(--c-text); color: var(--c-light); }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: 12px; letter-spacing: .1em; }
.btn--light { background: transparent; border-color: var(--c-light); color: var(--c-light); }
.btn--light:hover, .btn--light:active { background: var(--c-light); border-color: var(--c-light); color: var(--c-text); }
.btn--secondary:hover { background: var(--c-text); border-color: var(--c-text); color: var(--c-light); }
.btn .arrow { flex: none; width: 20px; height: 20px; }

/* ---- pill buttons ---- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 62px; min-width: 240px; padding: 0 34px;
  border: 1px solid var(--c-text); border-radius: 100px; background: transparent; color: var(--c-text);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.pill .arrow { flex: none; width: 20px; height: 20px; transition: transform var(--t-base) var(--ease-out); }
.pill:hover { background: var(--c-text); border-color: var(--c-text); color: var(--c-light); }
.pill:hover .arrow { transform: translateX(5px); }
.pill--light { border-color: var(--c-light); color: var(--c-light); }
.pill--light:hover { background: var(--c-light); border-color: var(--c-light); color: var(--c-text); }
.pill--solid { background: var(--c-text); color: var(--c-light); }
.pill--solid:hover { background: #3A3835; border-color: #3A3835; }

/* ---- header (solid, centered nav, uppercase) ---- */
:root { --header-h: 68px; }
.header { background: var(--c-bg); border-bottom: 1px solid var(--c-line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.header__inner { height: var(--header-h); }
.nav a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.nav a::after { bottom: -2px; }
.header__cta { border-radius: 100px; padding: 0 20px; min-height: 40px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.header__cta, .pill, .btn { text-transform: uppercase; }
/* brand names are written the way the brand writes them */
.header__cta .brandname, .pill .brandname, .btn .brandname { text-transform: none; letter-spacing: .04em; }

/* ---- hero ---- */
.hero-b { position: relative; min-height: var(--hero-min, calc(100svh - var(--header-h))); display: grid; place-items: center; text-align: center; color: var(--c-light); background: var(--c-dark); overflow: hidden; }
.hero-b__media { position: absolute; inset: 0; overflow: clip; }
/* the photo drifts slowly behind the hero copy as the page scrolls */
.hero-b__media img {
  position: absolute; inset: -10% 0;
  width: 100%; height: 120%; object-fit: cover;
  transform: translate3d(0, var(--shift, 0px), 0);
  will-change: transform;
}
.hero-b__media::after { content: ""; position: absolute; inset: 0; background: rgba(36,35,33,.38); }
.hero-b__content { position: relative; padding: 120px var(--gutter); max-width: 1040px; }
.hero-b__content .h1 { text-wrap: balance; }
.hero-b__content .kicker { color: rgba(247,245,240,.85); margin-top: 22px; max-width: 60ch; margin-inline: auto; }
.hero-b__content .pill { margin-top: 40px; }
.hero-b__scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 56px; height: 64px;
  color: rgba(247, 245, 240, .85);
  transition: color var(--t-base) var(--ease), opacity var(--t-base);
}
.hero-b__scroll svg { width: 20px; height: 48px; animation: hero-nudge 2.4s var(--ease) infinite; }
.hero-b__scroll:hover { color: var(--c-light); }
.hero-b__scroll:hover svg { animation-play-state: paused; }
@keyframes hero-nudge {
  0%, 62%, 100% { transform: translateY(0); opacity: .85; }
  32% { transform: translateY(7px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero-b__scroll svg { animation: none; } }
@media (max-width: 900px) { .hero-b__scroll { bottom: 14px; } .hero-b__scroll svg { width: 17px; height: 38px; } }

/* ---- line-framed image (offset outline behind the photo) ---- */
.lf { position: relative; padding: 0 0 22px 22px; }
.lf::before { content: ""; position: absolute; left: 0; bottom: 0; top: 22px; right: 22px; border: 1px solid var(--c-frame); pointer-events: none; }
.lf .frame { position: relative; z-index: 1; border-radius: 0 var(--r-corner) 0 0; }
.lf--right { padding: 0 22px 22px 0; }
.lf--right::before { left: 22px; right: 0; }
.lf--right .frame { border-radius: var(--r-corner) 0 0 0; }

/* ---- split block: image + text ---- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: center; }
.split__media { grid-column: 1 / 8; }
.split__body { grid-column: 9 / 13; }
/* even halves: media to the grid centre, copy from the centre to the edge */
.split--half .split__media { grid-column: 1 / 6; }
.split--half .split__body { grid-column: 7 / 13; }
.split--rev .split__media { grid-column: 6 / 13; grid-row: 1; }
.split--rev .split__body { grid-column: 1 / 5; grid-row: 1; }
.split__body .h2 { margin-top: 12px; }
.split__body .prose { margin-top: 28px; color: var(--c-text-2); }
.split__body .prose p { font-style: italic; font-size: var(--fs-note); line-height: 1.6; }
.split__body .pill { margin-top: 36px; }
.price-b { margin-top: 28px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.price-b__from, .price-b__note {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-text-2);
}
.price-b__value {
  font-size: 1.875rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1;
  color: var(--c-text); font-variant-numeric: tabular-nums;
}
.price-b__note { padding-left: 12px; border-left: 1px solid var(--c-line); }

/* ---- material statement ---- */
.statement { text-align: center; }
.statement .h2 { max-width: 20ch; margin-inline: auto; }
.statement .kicker { text-wrap: balance; }
.statement__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8) clamp(32px, 5vw, 80px); max-width: 1040px; margin: clamp(32px, 4vw, 56px) auto 0; text-align: left; color: var(--c-text-2); }
.statement__cols p { font-style: italic; font-size: var(--fs-note); line-height: 1.6; }
.statement__media { margin-top: clamp(48px, 6vw, 88px); }
.statement__media .frame { aspect-ratio: 21 / 9; }

/* ---- projects mosaic with title overlays ---- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 20px; }
.mosaic .case:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic .case:nth-child(2) { grid-column: 3 / 4; grid-row: 1; }
.mosaic .case:nth-child(3) { grid-column: 4 / 5; grid-row: 1; }
.mosaic .case:nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
.mosaic .case:nth-child(5) { grid-column: 1 / 2; grid-row: 3; }
.mosaic .case:nth-child(6) { grid-column: 2 / 3; grid-row: 3; }
.mosaic .case:nth-child(7) { grid-column: 3 / 5; grid-row: 3; }
.case { position: relative; display: block; overflow: hidden; background: var(--c-dark); color: var(--c-light); }
.case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease); }
.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(36,35,33,.72) 0%, rgba(36,35,33,0) 55%); }
.case { width: 100%; padding: 0; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--c-light); }
.case__cap { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.case__title { font-family: var(--ff-display); font-size: 1.5rem; line-height: 1.15; }
.case__meta { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,245,240,.75); font-family: var(--ff); }
.case__arrow { flex: none; width: 26px; height: 26px; opacity: .8; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease-out); }
.case:hover img { transform: scale(1.05); opacity: .82; }
.case__cap { transition: transform var(--t-slow) var(--ease); }
.case:hover .case__cap { transform: translateY(-4px); }
.case:hover .case__arrow { opacity: 1; transform: scale(1.1); }
.mosaic-more { text-align: center; margin-top: clamp(32px, 4vw, 56px); }

/* ---- swatch grid (Fulgor logo grid) ---- */
.shades { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-12); align-items: center; }
.shades__head { grid-column: 1 / 5; }
.shades__head .lead { margin-top: 24px; color: var(--c-text-2); font-style: italic; font-size: var(--fs-note); line-height: 1.6; max-width: 34ch; }
.shades__head .pill { margin-top: 36px; }
.shades__grid { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.shade { background: var(--c-bg); padding: 24px; display: grid; align-content: start; gap: 14px; border: 1px solid var(--c-line); }
.shade + .shade { margin-left: -1px; }
.shade__chip { aspect-ratio: 3 / 4; border-radius: 0 14px 0 0; overflow: hidden; }
.shade__chip img { width: 100%; height: 100%; object-fit: cover; }
.shade__name { font-family: var(--ff-display); font-size: 1.25rem; }
.shade__code { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-2); }

/* ---- principle cards with cut corner, staggered ---- */
.advants { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.advant { position: relative; padding: 34px 30px 36px; background: var(--c-surface); min-height: 300px; }
.on-surface .advant { background: var(--c-bg); }
.on-surface .advant::before { background: linear-gradient(45deg, var(--c-greige) 50%, var(--c-surface) 50%); }
.advant::before { content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px; background: linear-gradient(45deg, var(--c-greige) 50%, var(--c-bg) 50%); }
.advant:nth-child(2), .advant:nth-child(4) { margin-top: 30px; }
/* icon box = exactly two lines of the heading, so both align top and bottom */
.advant { --title-fs: 1.625rem; --title-lh: 1.18; --icon-size: calc(var(--title-fs) * var(--title-lh) * 2); }
.advant__head { display: flex; align-items: center; gap: 16px; min-height: var(--icon-size); }
.advant__head:not(:has(.advant__icon)) { align-items: start; }
.advant__icon { flex: none; display: grid; place-items: center; width: var(--icon-size); height: var(--icon-size); }
.advant__icon img { width: 100%; height: 100%; object-fit: contain; opacity: .25; }
.advant__title { margin: 0; max-width: 9ch; font-family: var(--ff-display); font-size: var(--title-fs); line-height: var(--title-lh); }
.advant__text { margin-top: 20px; color: var(--c-text-2); font-style: italic; font-size: var(--fs-note); line-height: 1.6; }

/* ---- material system: image + numbered items ---- */
.system { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: start; }
.system__media { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 32px); }
.system__media .frame { aspect-ratio: 4 / 5; }
.system__body { grid-column: 7 / 13; }
.system__body .title { margin-bottom: 40px; }
.sys-item { position: relative; z-index: 1; padding: 30px 150px 30px 32px; margin-bottom: 18px; border-radius: 0 var(--r-corner) 0 0; background: var(--c-surface); }
.on-surface .sys-item { background: var(--c-bg); }
.sys-item__num { position: absolute; z-index: -1; top: 26px; right: 30px; font: 400 76px/1 var(--ff-display); color: var(--c-greige); font-variant-numeric: lining-nums; }
.sys-item__title { font-family: var(--ff-display); font-size: 1.5rem; line-height: 1.25; }
.sys-item__title small { font-family: var(--ff); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-2); margin-left: 12px; }
.sys-item__text { margin-top: 10px; color: var(--c-text-2); font-style: italic; font-size: var(--fs-note); line-height: 1.6; }
.system__note { margin-top: 28px; color: var(--c-text-2); font-size: 15px; max-width: 52ch; }
.system__body .pill { margin-top: 32px; }

/* ---- brand statement ---- */
.brand-sect { position: relative; overflow: clip; }
.decor { position: absolute; z-index: 0; pointer-events: none; user-select: none; --shift: 0px; will-change: transform; }
.brand-sect .container { position: relative; z-index: 1; }
.decor--left {
  left: clamp(-220px, -13vw, -120px);
  bottom: clamp(-220px, -13vw, -140px);
  width: clamp(340px, 44vw, 660px); height: auto;
  transform: translate3d(0, var(--shift), 0);
}
/* mirrored copy, hanging from the top on the opposite side */
.decor--right {
  right: clamp(-220px, -13vw, -120px);
  top: clamp(-220px, -13vw, -140px);
  width: clamp(340px, 44vw, 660px); height: auto;
  transform: translate3d(0, var(--shift), 0) scale(-1, -1);
}
@media (max-width: 900px) {
  .decor--left { width: 300px; left: -140px; bottom: -130px; opacity: .5; }
  .decor--right { width: 300px; right: -140px; top: -130px; opacity: .5; }
}
@media (max-width: 560px) { .decor--left, .decor--right { display: none; } }
.brand { text-align: center; }
.brand > svg { width: 64px; height: 79px; margin: 0 auto 28px; color: var(--c-text); }
.brand .h2 { letter-spacing: .32em; text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); font-family: var(--ff); font-weight: 400; }
.brand .tagline { font-family: var(--ff-display); font-style: italic; font-size: 1.375rem; margin-top: 12px; color: var(--c-text-2); }
.brand .prose { max-width: 62ch; margin: 32px auto 0; color: var(--c-text-2); font-size: var(--fs-lead); line-height: 1.5; text-wrap: pretty; }
.brand .pill { margin-top: 40px; }

/* ---- articles: equal-height cards, everything on one baseline ---- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.post { display: grid; grid-template-rows: auto auto 1fr auto; height: 100%; }
.post .frame { aspect-ratio: 4 / 3; border-radius: 0 var(--r-corner) 0 0; }
.post__title { margin-top: 22px; font-family: var(--ff-display); font-size: 1.375rem; line-height: 1.25; }
.post__text { margin-top: 12px; margin-bottom: auto; color: var(--c-text-2); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.post__more {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--c-line);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.on-surface .post__more { border-top-color: var(--c-greige); }
.post__more .arrow { transition: transform var(--t-base) var(--ease-out); }
.post:hover .post__more .arrow { transform: translateX(5px); }
.posts-more { text-align: center; margin-top: clamp(32px, 4vw, 56px); }

/* ---- talk band with form ---- */
.talk { border-radius: 0 var(--r-corner) 0 var(--r-corner); background: var(--c-dark); color: var(--c-light); padding: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: 40px; }
.talk__text { grid-column: 1 / 6; }
.talk__text .kicker { color: var(--c-greige); max-width: 40ch; }
.talk__text .lead { margin-top: 20px; color: var(--c-greige); font-style: italic; font-size: var(--fs-note); line-height: 1.6; max-width: 40ch; }
.talk__text .wa { margin-top: 32px; }
.talk__form { grid-column: 7 / 13; }


/* ---- responsive ---- */
@media (max-width: 1100px) {
  .split__media { grid-column: 1 / 8; }
  .split__body { grid-column: 8 / 13; }
  .split--rev .split__media { grid-column: 6 / 13; }
  .split--rev .split__body { grid-column: 1 / 6; }
  .shades__head { grid-column: 1 / 13; }
  .shades__grid { grid-column: 1 / 13; }
  .advants { grid-template-columns: 1fr 1fr; }
  .system__media { grid-column: 1 / 6; }
  .system__body { grid-column: 6 / 13; }
  .sys-item { padding-right: 120px; }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .hero-b__content { padding: 96px var(--gutter); }
  .split__media, .split__body, .split--rev .split__media, .split--rev .split__body,
  .split--half .split__media, .split--half .split__body { grid-column: 1 / 13; grid-row: auto; }
  .split__body { margin-top: 36px; }
  .statement__cols { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .mosaic .case:nth-child(n) { grid-column: auto; grid-row: auto; }
  .mosaic .case:nth-child(1), .mosaic .case:nth-child(4), .mosaic .case:nth-child(7) { grid-column: 1 / 3; }
  .shades__grid { grid-template-columns: repeat(3, 1fr); }
  .advants { grid-template-columns: 1fr 1fr; }
  .advant:nth-child(2), .advant:nth-child(4) { margin-top: 0; }
  .advant { min-height: 0; }
  .advant { --title-fs: 1.5rem; }
  .advant__head { gap: 14px; }
  .advant__title { max-width: none; }
  .system__media, .system__body { grid-column: 1 / 13; position: static; }
  .system__body { margin-top: 40px; }
  .sys-item { padding-right: 100px; }
  .sys-item__num { font-size: 56px; top: 22px; right: 24px; }
  /* подпись уходит на свою строку, чтобы не упираться в номер */
  .sys-item__title small { display: block; margin-left: 0; margin-top: 6px; }
  .posts { grid-template-columns: 1fr; }
  .talk__text, .talk__form { grid-column: 1 / 13; }
  .talk { border-radius: 0 var(--r-corner) 0 0; }
}
@media (max-width: 560px) {
  /* длинная надпись переносится внутри кнопки, а не вылезает за её край */
  .pill, .btn {
    width: 100%; min-width: 0; padding: 16px 20px; gap: 10px;
    letter-spacing: .09em; text-align: center;
    white-space: normal; line-height: 1.3;
  }
  .pill--sm, .btn--sm { width: auto; padding: 8px 18px; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .mosaic .case:nth-child(n) { grid-column: 1; }
  .shades__grid { grid-template-columns: 1fr; }
  .shade { padding: 16px; grid-template-columns: 96px 1fr; align-items: center; gap: 6px 16px; }
  .shade + .shade { margin-left: 0; margin-top: -1px; }
  .shade__chip { grid-row: 1 / 3; aspect-ratio: 1; }
  .shade__name { align-self: end; }
  .shade__code { align-self: start; }
  .advants { grid-template-columns: 1fr; }
  .sys-item { padding: 24px 24px 26px; }
  .on-surface .sys-item { background: var(--c-bg); }
  .sys-item__num { font-size: 48px; top: 18px; right: 20px; color: var(--c-line); }
  /* номер стоит в правом верхнем углу — заголовок и подпись не заходят под него */
  .sys-item__title { padding-right: 56px; font-size: 1.25rem; }
  .statement__media .frame { aspect-ratio: 4 / 3; }
}

/* ---- lightbox: fills the viewport, image centred, click-outside closes ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
  display: none;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lb-in var(--t-base) var(--ease-out); }
.lightbox::backdrop {
  background: rgba(20, 19, 18, .86);
  -webkit-backdrop-filter: blur(16px) saturate(.85);
  backdrop-filter: blur(16px) saturate(.85);
}
.lightbox__figure { margin: 0; display: grid; justify-items: center; pointer-events: none; }
.lightbox__figure img {
  display: block; width: auto; height: auto;
  max-width: min(1400px, calc(100vw - 200px)); max-height: 78vh;
  border-radius: var(--r-sm); pointer-events: auto;
}
.lightbox__figure figcaption { margin-top: 16px; display: flex; align-items: baseline; justify-content: center; gap: 14px; color: var(--c-light); }
.lightbox__cap { font-family: var(--ff-display); font-size: 1.25rem; }
.lightbox__count { font-size: 12px; letter-spacing: .14em; color: var(--c-greige); font-variant-numeric: tabular-nums; }

/* close */
.lightbox__close {
  position: fixed; top: 24px; right: 24px; z-index: 2;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid rgba(247,245,240,.32); border-radius: 50%;
  color: var(--c-light); background: rgba(20,19,18,.45);
  transition: background var(--t-base) var(--ease), border-color var(--t-base), color var(--t-base), transform var(--t-base);
}
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__close:hover { background: var(--c-light); border-color: var(--c-light); color: var(--c-text); transform: rotate(90deg); }

/* prev / next, pinned to the viewport edges */
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid rgba(247,245,240,.32); border-radius: 50%;
  color: var(--c-light); background: rgba(20,19,18,.45);
  transition: background var(--t-base) var(--ease), border-color var(--t-base), color var(--t-base);
}
.lightbox__nav svg { width: 22px; height: 22px; transition: transform var(--t-base) var(--ease-out); }
.lightbox__nav:hover { background: var(--c-light); border-color: var(--c-light); color: var(--c-text); }
.lightbox__nav--prev { left: 28px; }
.lightbox__nav--prev svg { transform: rotate(180deg); }
.lightbox__nav--prev:hover svg { transform: rotate(180deg) translateX(3px); }
.lightbox__nav--next { right: 28px; }
.lightbox__nav--next:hover svg { transform: translateX(3px); }

@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .lightbox__figure img { max-width: calc(100vw - 32px); max-height: 66vh; }
  .lightbox__cap { font-size: 1rem; }
  .lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; }
  .lightbox__nav { width: 46px; height: 46px; top: auto; bottom: 28px; transform: none; }
  .lightbox__nav--prev { left: 50%; margin-left: -56px; }
  .lightbox__nav--next { right: 50%; margin-right: -56px; }
}

.footer__dev a { text-decoration: underline; text-underline-offset: .18em; text-decoration-color: rgba(247,245,240,.35); transition: color var(--t-base) var(--ease), text-decoration-color var(--t-base) var(--ease); }
.footer__dev a:hover { color: var(--c-light); text-decoration-color: currentColor; }

/* ---- number field: native spinner replaced with a quiet pair of chevrons ---- */
.num { position: relative; }
.num input[type="number"] { -moz-appearance: textfield; appearance: textfield; padding-right: 92px; }
.num input[type="number"]::-webkit-outer-spin-button,
.num input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num__unit {
  position: absolute; right: 46px; top: 50%; transform: translateY(-50%);
  font-size: 1.0625rem; color: var(--c-taupe); pointer-events: none;
}
.on-dark .num__unit { color: var(--c-greige); }
.num__spin { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 2px; }
.num__btn {
  display: grid; place-items: center; width: 30px; height: 22px;
  color: var(--c-taupe); border-radius: var(--r-sm);
  transition: color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.num__btn svg { width: 13px; height: 8px; }
.num__btn:hover { color: var(--c-text); background: rgba(36,35,33,.06); }
.on-dark .num__btn { color: var(--c-greige); }
.on-dark .num__btn:hover { color: var(--c-light); background: rgba(247,245,240,.12); }
.num__btn:active { transform: translateY(1px); }

/* ---- Instagram ---- */
.header__actions { display: flex; align-items: center; gap: 10px; }
/* same pill treatment as the WhatsApp button, just square so it reads as a circle */
.header__ig, .header__cta--icon { width: 40px; min-width: 0; padding: 0; }
.header__ig svg { width: 17px; height: 17px; }
.header__cta svg { width: 17px; height: 17px; }
.footer__ig { display: inline-flex; align-items: center; gap: 8px; }
.footer__ig svg { flex: none; width: 13px; height: 13px; }   /* по высоте заглавных букв строки */
@media (max-width: 900px) { .menu .footer__ig { gap: 10px; } }

/* =========================================================
   Inner pages
   ========================================================= */
.page-head { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 80px); }
.page-head .crumbs { margin-bottom: clamp(28px, 4vw, 56px); }
.page-head__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-6); align-items: start; }
.page-head__grid > :first-child { grid-column: 1 / 6; }
.page-head__lead { grid-column: 7 / 13; margin-top: .4em; color: var(--c-text-2); font-style: italic; font-size: var(--fs-note); line-height: 1.6; text-wrap: pretty; }
.page-head .h1 { max-width: none; text-wrap: balance; }

/* breadcrumbs, uppercase micro type */
.crumbs { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.crumbs ul { display: flex; flex-wrap: wrap; gap: 6px 10px; }

/* product row on the category page */
.product-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-8); align-items: stretch; }
/* photo matches the height of the copy beside it */
.product-row__media { grid-column: 1 / 6; display: block; }
.product-row__media .frame { display: block; height: 100%; aspect-ratio: auto; min-height: 420px; }
.product-row__body { grid-column: 7 / 13; }
.product-row__body .h2 { margin-top: 12px; }
.product-row__body .prose { margin-top: 24px; color: var(--c-text-2); }
.product-row__body .prose p { font-style: italic; font-size: var(--fs-note); line-height: 1.6; }
.product-row__specs { margin-top: 28px; border-top: 1px solid var(--c-line); }
.product-row__specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.product-row__specs span { color: var(--c-text-2); }
.product-row__specs strong { font-weight: 500; }
.product-row__body .pill { margin-top: 32px; }
/* list of products: each row spaced evenly, the next section supplies the gap below */
.products-list > .container > * + * { margin-top: clamp(56px, 7vw, 104px); }

@media (max-width: 1100px) {
  .product-row__media { grid-column: 1 / 6; }
  .product-row__body { grid-column: 7 / 13; }
}
@media (max-width: 900px) {
  .page-head__grid > :first-child, .page-head__lead { grid-column: 1 / 13; }
  .product-row__media, .product-row__body { grid-column: 1 / 13; }
  .product-row__media .frame { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
}

/* =========================================================
   Product page
   ========================================================= */
.prod-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-12); align-items: center; }
.prod-hero__body { grid-column: 1 / 7; }
.prod-hero__body .h1 { margin-top: 10px; max-width: none; text-wrap: balance; }
.prod-hero__body .lead { margin-top: 22px; color: var(--c-text-2); font-style: italic; text-wrap: pretty; }
.prod-hero__note { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--c-text-2); text-wrap: pretty; }
.prod-hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.prod-hero__actions .pill { min-width: 0; width: 100%; padding: 0 20px; }
.prod-hero__media { grid-column: 8 / 13; }

/* specs */
.specs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-8); align-items: start; }
.specs__head { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 32px); }
.specs__head .lead { margin-top: 22px; color: var(--c-text-2); font-style: italic; font-size: var(--fs-note); line-height: 1.6; }
.specs__table { grid-column: 7 / 13; }
.spec th { font-weight: 400; }
.spec td { text-align: right; }

/* a quiet full-width note under a block */
.note-line { margin-top: clamp(32px, 4vw, 48px); padding-top: var(--s-6); border-top: 1px solid var(--c-line); color: var(--c-text-2); font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.note-line strong { color: var(--c-text); font-weight: 500; }

/* calculator — also the request form */
.calc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-12); align-items: center; }
.calc__intro { grid-column: 1 / 6; }
.calc__intro .lead { margin-top: 20px; color: var(--c-text-2); font-style: italic; font-size: var(--fs-note); line-height: 1.6; text-wrap: pretty; }
.calc__field { margin-top: 32px; }
.calc__field .field__input { font-size: 1.75rem; }
.calc__hint { margin-top: 24px; font-size: 14px; line-height: 1.6; color: var(--c-text-2); text-wrap: pretty; }
.calc__hint--wet { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.calc__hint--wet strong { color: var(--c-text); font-weight: 500; }
.calc__result { grid-column: 7 / 13; padding: clamp(28px, 3vw, 44px); background: var(--c-bg); border-radius: 0 var(--r-corner) 0 0; }
.on-surface .calc__result { background: var(--c-bg); }
.calc__for { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-2); }
.calc__kg { margin-top: 18px; font-size: 1.25rem; }
.calc__kg strong { font-weight: 500; }
.calc__packs { margin-top: 6px; font-size: 15px; color: var(--c-text-2); }
.calc__price { margin-top: 24px; display: grid; gap: 8px; }
.calc__price-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-2); }
.calc__price strong { font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); line-height: 1; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc__fields { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--c-line); }
.calc__result .form__actions { margin-top: var(--s-6); }
.calc .form__note { max-width: none; white-space: normal; text-wrap: pretty; }
.calc.is-empty .calc__kg, .calc.is-empty .calc__packs, .calc.is-empty .calc__price strong { opacity: .35; }
.calc.is-sent .calc__fields, .calc.is-sent .form__actions { display: none; }
.calc .form__success { border-top: 1px solid var(--c-line); margin-top: 28px; }

/* same component inside the popup */
.calc-popup { padding: clamp(28px, 4vw, 56px); background: var(--c-bg); }
.calc--popup { row-gap: var(--s-8); }
.calc--popup .calc__intro { grid-column: 1 / 6; }
.calc--popup .calc__result { grid-column: 7 / 13; background: var(--c-surface); }

/* steps — same card as "Подход" on the home page, with a number in the corner */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.step { position: relative; }
.step__num {
  position: absolute; right: 30px; bottom: 28px;
  font-family: var(--ff-display); font-size: 1.5rem; line-height: 1; color: var(--c-greige);
}
.step .advant__text { padding-right: 56px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-12) var(--grid-gap); align-items: start; }
.feature { padding-top: 20px; border-top: 1px solid var(--c-line); }
.feature__title { font-family: var(--ff-display); font-size: var(--fs-bullet); line-height: 1.25; }
.feature__text { margin-top: 12px; color: var(--c-text-2); font-size: 15px; line-height: 1.65; text-wrap: pretty; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-8); align-items: start; }
.faq-wrap__head { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-wrap .faq { grid-column: 6 / 13; }
.faq__q { font-family: var(--ff-display); font-size: 1.25rem; font-weight: 400; }

@media (max-width: 1100px) {
  .prod-hero__body { grid-column: 1 / 7; }
  .prod-hero__media { grid-column: 8 / 13; }
  .specs__head, .faq-wrap__head { grid-column: 1 / 6; }
  .specs__table, .faq-wrap .faq { grid-column: 6 / 13; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--grid-gap); }
}
@media (max-width: 900px) {
  .calc--popup .calc__intro, .calc--popup .calc__result { grid-column: 1 / 13; }
  .prod-hero__body, .prod-hero__media { grid-column: 1 / 13; }
  .prod-hero__body .h1 { max-width: none; }
  .specs__head, .specs__table, .faq-wrap__head, .faq-wrap .faq, .calc__intro, .calc__result { grid-column: 1 / 13; position: static; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--grid-gap); }
  .calc__field { max-width: none; }
}
@media (max-width: 560px) {
  .steps, .features { grid-template-columns: 1fr; }
  .prod-hero__actions { grid-template-columns: 1fr; }
  .spec th, .spec td { display: block; }
  .spec th { width: auto; padding-bottom: 2px; }
  .spec td { text-align: left; padding-top: 0; }
}

/* request popup: the same dark band, shown over the page */
.dialog--wide .dialog__frame { width: min(1180px, 100%); }
.dialog--wide .talk { border-radius: 0 var(--r-corner) 0 var(--r-corner); }
@media (max-width: 900px) { .dialog--wide .talk { padding: clamp(28px, 6vw, 44px); } }

/* full-bleed photo band between sections */
/* full-bleed photo band — the picture drifts inside its frame on scroll */
.band { display: block; position: relative; overflow: clip; height: clamp(260px, 38vw, 560px); }
.band img {
  position: absolute; inset: -12% 0;           /* spare height for the drift */
  width: 100%; height: 124%; object-fit: cover;
  transform: translate3d(0, var(--shift, 0px), 0);
  will-change: transform;
}

/* tall shot under the specs heading */
.specs__media { margin-top: clamp(28px, 3vw, 44px); }

/* help card in the FAQ column */
.help-card { margin-top: clamp(28px, 3vw, 44px); padding: 28px; background: var(--c-bg); border: 1px solid var(--c-line); }
.on-surface .help-card { background: var(--c-surface); }
.help-card__title { font-family: var(--ff-display); font-size: 1.25rem; }
.help-card__text { margin-top: 10px; color: var(--c-text-2); font-size: 15px; }
.help-card .pill { margin-top: 20px; min-width: 0; width: 100%; }

/* features on charcoal */
.on-dark .feature { border-top-color: var(--c-line-dark); }
.on-dark .feature__text { color: var(--c-greige); }

@media (max-width: 900px) {
  .help-card { margin-top: 24px; }
}

/* ---- About page ---- */
.about-head { padding-bottom: clamp(48px, 6vw, 88px); }
.about-head__inner { text-align: center; max-width: 820px; margin: 0 auto; }
.about-head__mark { display: block; width: 72px; height: 89px; margin: 0 auto clamp(20px, 3vw, 32px); color: var(--c-text); }
.about-head__title { letter-spacing: .3em; text-transform: uppercase; font-family: var(--ff); font-weight: 400; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); }
.about-head__tagline { margin-top: 10px; font-size: 1.375rem; color: var(--c-text-2); }
.about-head__lead { margin-top: clamp(24px, 3vw, 36px); color: var(--c-text-2); font-style: italic; text-wrap: balance; }

@media (max-width: 900px) {
  .about-head__mark { width: 58px; height: 72px; }
}

/* ---- criteria: numbered rows with a photo in the side column ---- */
.criteria { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-12); align-items: start; }
.criteria__head { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 32px); }
.criteria__head .lead { margin-top: 20px; color: var(--c-text-2); font-style: italic; font-size: var(--fs-note); line-height: 1.6; }
.criteria__media { margin-top: clamp(28px, 3vw, 44px); }
.criteria__list { grid-column: 6 / 13; }
.criteria__item { display: grid; grid-template-columns: 96px 1fr; gap: 0 var(--s-6); padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--c-line); }
.criteria__item:last-child { border-bottom: 0; padding-bottom: 0; }
.criteria__item:first-child { padding-top: 0; }
.criteria__num { font-family: var(--ff-display); font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem); line-height: 1; color: var(--c-greige); }
.criteria__title { font-family: var(--ff-display); font-size: 1.5rem; line-height: 1.2; }
.criteria__text { margin-top: 12px; color: var(--c-text-2); font-size: 15px; line-height: 1.7; max-width: 62ch; text-wrap: pretty; }

@media (max-width: 1100px) {
  .criteria__head { grid-column: 1 / 5; }
  .criteria__list { grid-column: 5 / 13; }
}
@media (max-width: 900px) {
  .criteria__head, .criteria__list { grid-column: 1 / 13; position: static; }
  .criteria__media { max-width: 60%; }
  .criteria__item { grid-template-columns: 64px 1fr; }
}
@media (max-width: 560px) {
  .criteria__media { max-width: none; }
  .criteria__item { grid-template-columns: 1fr; gap: 10px; }
}

/* ---- flow: four steps, dashed line between neighbouring circles ---- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.flow__step { position: relative; }
.flow__node {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 68px; height: 68px; margin: 0 auto;
  border: 1px solid var(--c-text); border-radius: 50%;
  background: var(--c-bg); color: var(--c-text);
}
.on-surface .flow__node { background: var(--c-surface); }
.flow__tick { width: 26px; height: 26px; }
/* circle centre is at 50% of the column; 34px is its radius, 16px the breathing room */
.flow__link {
  position: absolute; top: 33px;
  left: calc(50% + 50px);
  right: calc(-50% - var(--grid-gap) + 50px);
  height: 1px;
  background-image: repeating-linear-gradient(to right, var(--c-text) 0 7px, transparent 7px 16px);
  /* dashes appear one by one, left to right, in step order */
  background-repeat: no-repeat;
  background-size: 0 100%;
  transition: background-size 900ms steps(14, end) 200ms;
}
.flow.is-in .flow__link { background-size: 100% 100%; }
.flow__step:nth-child(2) .flow__link { transition-delay: 1100ms; }
.flow__step:nth-child(3) .flow__link { transition-delay: 2000ms; }
@media (prefers-reduced-motion: reduce) {
  .flow__link { transition: none; background-size: 100% 100%; }
}
.flow__title { margin-top: 22px; font-family: var(--ff-display); font-size: var(--fs-bullet); line-height: 1.25; text-wrap: balance; }
.flow__text { margin-top: 10px; color: var(--c-text-2); font-size: 15px; line-height: 1.65; text-wrap: pretty; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; gap: var(--s-12) var(--grid-gap); }
  .flow__link { display: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; gap: var(--s-8); }
  .flow__step { display: grid; grid-template-columns: 56px 1fr; gap: 4px 18px; }
  .flow__node { width: 56px; height: 56px; grid-row: 1 / 3; margin: 0; }
  .flow__tick { width: 22px; height: 22px; }
  .flow__title { margin-top: 0; align-self: end; }
  .flow__text { grid-column: 2; }
}

/* ---- 404 ---- */
.error-page { position: relative; overflow: clip; display: grid; align-items: center; min-height: calc(100svh - var(--header-h)); }
.error-page__inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.error-page__code { display: block; font-family: var(--ff-display); font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: 1; color: var(--c-greige); }
.error-page .h1 { margin-top: clamp(8px, 1.5vw, 20px); }
.error-page .lead { margin-top: clamp(18px, 2.4vw, 28px); color: var(--c-text-2); font-style: italic; font-size: var(--fs-note); text-wrap: balance; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(28px, 3.5vw, 44px); }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: clamp(36px, 4vw, 56px); padding-top: var(--s-6); border-top: 1px solid var(--c-line); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.error-page__links a { color: var(--c-text-2); transition: color var(--t-base) var(--ease); }
.error-page__links a:hover { color: var(--c-text); }
@media (max-width: 560px) { .error-page__actions .pill { width: 100%; } }

/* ---- Contacts ---- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-8); align-items: stretch; }
.contact-ways { grid-column: 1 / 8; display: grid; grid-auto-rows: 1fr; border-top: 1px solid var(--c-line); }
.way { border-bottom: 1px solid var(--c-line); }
.way { display: grid; }
.way__link {
  position: relative; display: grid; grid-template-columns: 170px 1fr; align-content: center;
  gap: 4px var(--s-6); padding: clamp(18px, 2vw, 26px) 56px clamp(18px, 2vw, 26px) 0;
  transition: padding-left var(--t-base) var(--ease);
}
.way__label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-2); }
.way__icon { flex: none; width: 16px; height: 16px; }
.way__value { font-family: var(--ff-display); font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; }
.way__note { grid-column: 2; font-size: 14px; color: var(--c-text-2); }
.way__arrow {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; color: var(--c-taupe);
  transition: transform var(--t-base) var(--ease-out), color var(--t-base) var(--ease);
}
/* the whole row darkens on hover, like the arrow does */
.way__label, .way__value, .way__note { transition: color var(--t-base) var(--ease); }
.way__link:hover { padding-left: 12px; }
.way__link:hover .way__label,
.way__link:hover .way__note { color: var(--c-text); }
.way__link:hover .way__arrow { color: var(--c-text); transform: translate(5px, -50%); }

/* card with hours and city */
.contact-card { grid-column: 9 / 13; display: grid; align-content: start; padding: clamp(28px, 3vw, 40px); border-radius: 0 var(--r-corner) 0 var(--r-corner); }
.contact-card .kicker { margin-top: 0; }
.contact-card__hours, .contact-card__city { font-family: var(--ff-display); font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.25rem); line-height: 1.15; }
.contact-card__hours { margin-top: 18px; }
.contact-card__note { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--c-greige); }
.contact-card .hr { margin: clamp(20px, 2.4vw, 28px) 0; }


/* short "how it works" strip */
.work-brief { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-8); align-items: center; }
.work-brief__head { grid-column: 1 / 6; }
.work-brief__head .lead { margin-top: 18px; color: var(--c-text-2); font-style: italic; font-size: var(--fs-note); line-height: 1.6; }
.on-dark .work-brief__head .lead { color: var(--c-greige); }
.work-brief__head .pill { margin-top: 28px; }
.work-brief__list { grid-column: 7 / 13; }
.work-brief__list li { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--c-line); font-family: var(--ff-display); font-size: var(--fs-bullet); }
.on-dark .work-brief__list li { border-bottom-color: var(--c-line-dark); }
.work-brief__list li:first-child { padding-top: 0; }
.work-brief__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.work-brief__list span { font-size: 14px; color: var(--c-taupe); font-variant-numeric: tabular-nums; }

/* designers block */
.pro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-8); align-items: center; }
.pro__body { grid-column: 1 / 6; }
.pro__body .h2 { margin-top: 12px; }
.pro__body .prose { margin-top: 24px; color: var(--c-text-2); }
.pro__body .prose p { font-style: italic; font-size: var(--fs-note); line-height: 1.6; }
.pro__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.pro__actions .pill { min-width: 0; width: 100%; padding: 0 18px; white-space: nowrap; }
.pro__media { grid-column: 7 / 13; }

@media (max-width: 1100px) {
  .contact-ways { grid-column: 1 / 8; }
  .contact-card { grid-column: 8 / 13; }
}
@media (max-width: 900px) {
  .contact-ways, .contact-card { grid-column: 1 / 13; }
  .work-brief__head, .work-brief__list, .pro__body, .pro__media { grid-column: 1 / 13; }
}
@media (max-width: 560px) {
  .way__link { grid-template-columns: 1fr; padding-right: 44px; }
  .way__note { grid-column: 1; }
  .pro__actions { grid-template-columns: 1fr; }
}

/* icons inside labels on the contacts page */
.kicker--icon { display: inline-flex; align-items: center; gap: 10px; }
.kicker--icon svg { flex: none; width: 16px; height: 16px; }
.contact-card__city { margin-top: 18px; }


/* ---- Articles hub ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.chip {
  min-height: 44px; padding: 0 22px;
  border: 1px solid var(--c-line); border-radius: 100px;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text-2); background: transparent;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.chip:hover { border-color: var(--c-taupe); color: var(--c-text); }
.chip.is-active { background: var(--c-text); border-color: var(--c-text); color: var(--c-light); }
.posts--list { row-gap: clamp(40px, 5vw, 64px); }
.post__cat { margin-top: 20px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-2); }
.post__cat + .post__title { margin-top: 8px; }
.post[hidden] { display: none; }
.posts-empty { padding: var(--s-12) 0; text-align: center; color: var(--c-text-2); font-style: italic; }

/* closing strip */
.cta-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-8); align-items: center; }
.cta-strip > :first-child { grid-column: 1 / 7; }
.cta-strip .lead { margin-top: 16px; color: var(--c-greige); font-style: italic; font-size: var(--fs-note); }
.cta-strip__actions { grid-column: 8 / 13; display: grid; gap: 12px; }
.cta-strip__actions .pill { width: 100%; min-width: 0; white-space: nowrap; }

@media (max-width: 900px) {
  .cta-strip > :first-child, .cta-strip__actions { grid-column: 1 / 13; }
}

/* ---- Pagination ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(48px, 6vw, 80px); }
.pager[hidden] { display: none; }
.pager__list { display: flex; align-items: center; gap: 8px; }
.pager__page, .pager__step {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--c-line); color: var(--c-text-2);
  font-size: 14px; font-variant-numeric: tabular-nums;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
a.pager__page:hover, a.pager__step:hover { border-color: var(--c-text); color: var(--c-text); }
.pager__page.is-current { background: var(--c-text); border-color: var(--c-text); color: var(--c-light); }
.pager__step .arrow { width: 18px; height: 18px; }
.pager__step--prev .arrow { transform: rotate(180deg); }
.pager__step.is-disabled { opacity: .35; pointer-events: none; }
.pager__dots { display: grid; place-items: center; width: 24px; height: 44px; color: var(--c-taupe); }

/* ---- Article page ---- */
/* hero on sand, reading block on ivory, related back on sand */
.article-head.on-surface { padding-bottom: clamp(48px, 6vw, 88px); }
/* hero: copy left, cover right */
.article-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-8); align-items: center; }
.article-hero__body { grid-column: 1 / 7; }
.article-hero__media { grid-column: 8 / 13; }
.article-head__inner { max-width: 940px; }
.article-head .post__cat { display: block; margin-top: 0; }
.article-head .h1 { margin-top: 10px; text-wrap: balance; }
.article-head__lead { margin-top: clamp(18px, 2.4vw, 28px); max-width: 68ch; color: var(--c-text-2); font-style: italic; font-size: var(--fs-note); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(20px, 2.4vw, 28px); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-2); }
.article-meta__item { display: inline-flex; align-items: center; gap: 10px; }
.article-meta__item svg { flex: none; width: 16px; height: 16px; color: var(--c-taupe); }
.article-cover img { height: clamp(260px, 42vw, 620px); }

.article__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--s-8); align-items: start; }
.article__aside { grid-column: 1 / 4; position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); display: flex; flex-direction: column; }
.article__body { grid-column: 5 / 12; }

/* table of contents */
.toc__label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-2); padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.toc { display: flex; flex-direction: column; min-height: 0; }
.toc__list {
  counter-reset: toc; margin-top: 14px; display: grid; gap: 10px;
  overflow-y: auto; scroll-behavior: smooth;
  /* полоса прокрутки не нужна: список следует за чтением сам */
  scrollbar-width: none; -ms-overflow-style: none;
  padding-right: 4px;
}
.toc__list::-webkit-scrollbar { width: 0; height: 0; }
.toc__list a { border-left: 1px solid transparent; padding-left: 14px; margin-left: -1px; transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease); }
.toc__list a.is-current { border-left-color: var(--c-text); }
.toc__list a { display: block; font-size: 14px; line-height: 1.45; color: var(--c-text-2); }
.toc__list a:hover, .toc__list a.is-current { color: var(--c-text); }

/* article typography */
.prose-article { font-size: 1.1875rem; line-height: 1.75; }
.prose-article > * + * { margin-top: 1.1em; }
.prose-article h2 { margin-top: 1.9em; font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); line-height: 1.2; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose-article h3 { margin-top: 1.6em; font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.25; }
.prose-article p { text-wrap: pretty; }
.prose-article strong { font-weight: 600; }
.prose-article ul, .prose-article ol { display: grid; gap: 10px; padding-left: 0; }
.prose-article li { position: relative; padding-left: 28px; }
.prose-article ul li::before { content: ""; position: absolute; left: 6px; top: .75em; width: 6px; height: 1px; background: var(--c-taupe); }
.prose-article ol { counter-reset: num; }
.prose-article ol li { counter-increment: num; }
.prose-article ol li::before { content: counter(num, decimal-leading-zero); position: absolute; left: 0; top: .1em; font-family: var(--ff-display); font-size: .95em; color: var(--c-taupe); }
.prose-article blockquote { margin: 1.8em 0; padding: 0 0 0 clamp(20px, 3vw, 32px); border-left: 1px solid var(--c-taupe); }
.prose-article blockquote p { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.4; color: var(--c-text); }
.prose-article a:not(.pill) { text-decoration: underline; text-underline-offset: .18em; text-decoration-color: var(--c-greige); transition: text-decoration-color var(--t-base) var(--ease); }
.prose-article a:not(.pill):hover { text-decoration-color: currentColor; }
.prose-article figure { margin: 1.8em 0; }
.prose-article figcaption { margin-top: 12px; font-size: 14px; color: var(--c-text-2); }

/* callouts */
.callout { margin: 1.8em 0; padding: clamp(20px, 2.4vw, 28px); background: var(--c-surface); border-radius: 0 var(--r-corner) 0 0; }
.callout__label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-taupe); margin-bottom: 10px; }
.callout p { margin: 0; font-size: 1.0625rem; line-height: 1.7; }
.callout--warn { background: var(--c-surface); box-shadow: inset 3px 0 0 var(--c-taupe); }
.callout--tip { background: var(--c-surface); box-shadow: inset 3px 0 0 var(--c-greige); }

/* in-article CTA */
.article__cta { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--c-line); }
.article__cta-text { margin-top: 14px; color: var(--c-text-2); font-style: italic; font-size: var(--fs-note); line-height: 1.6; }
.article__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.posts--two { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .article__aside { grid-column: 1 / 4; }
  .article__body { grid-column: 4 / 13; }
}
/* без параллакса картинки возвращаются в свои рамки */
@media (max-width: 900px), (hover: none) {
  .hero-b__media img, .band img { position: static; inset: auto; height: 100%; transform: none; will-change: auto; }
  .band { height: clamp(220px, 46vw, 420px); }
  .band img { position: absolute; inset: 0; }
}
@media (max-width: 900px) {
  .article-hero__body, .article-hero__media { grid-column: 1 / 13; }
  .article__aside { grid-column: 1 / 13; position: static; max-height: none; }
  .toc__list { overflow: visible; }
  .article__body { grid-column: 1 / 13; }
  .toc__list { grid-template-columns: 1fr 1fr; }
  .posts--two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .toc__list { grid-template-columns: 1fr; }
  .article__cta-actions .pill { width: 100%; }
}

/* table inside an article */
.table-wrap { margin: 1.8em 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; font-weight: 400; }
.table thead th { font-family: var(--ff); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-2); border-bottom-color: var(--c-taupe); }
.table tbody th { color: var(--c-text); font-weight: 500; width: 30%; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .table { font-size: .9375rem; } .table th, .table td { padding-right: 12px; } }

/* ---- supply strip: thin dark band, small icon beside each title ---- */
.supply-strip { padding-block: clamp(28px, 3.5vw, 44px); }
.supply { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.supply__item { display: grid; gap: 10px; }
.supply__icon { display: block; width: 24px; height: 24px; }
.supply__icon svg { width: 100%; height: 100%; color: var(--c-taupe); }
.on-dark .supply__icon svg { color: var(--c-greige); }
.supply__head { display: flex; align-items: center; gap: 12px; }
.supply__title { font-family: var(--ff-display); font-size: var(--fs-bullet); line-height: 1.25; }
.supply__text { color: var(--c-text-2); font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.on-dark .supply__text { color: var(--c-greige); }
@media (max-width: 900px) { .supply { grid-template-columns: 1fr; gap: var(--s-6); } }


/* =========================================================
   МОБИЛЬНАЯ ТИПОГРАФИКА — те же пропорции, но мельче
   ========================================================= */
@media (max-width: 640px) {
  :root {
    --fs-note: 1rem;       /* курсивные описания: 16 */
    --fs-bullet: 1.25rem;  /* заголовки пунктов: 20 */
  }
  .faq__q { font-size: 1.0625rem; padding: 18px 0; }
  .price-b__value { font-size: 1.5rem; }
  .price-b__from, .price-b__note { font-size: 11px; letter-spacing: .1em; }
  .price-b__note { padding-left: 10px; }
  .criteria__title, .case__title { font-size: 1.25rem; }
  .post__title { font-size: 1.1875rem; }
  .brand .tagline { font-size: 1.125rem; }
  .help-card__title, .shade__name, .lightbox__cap { font-size: 1.125rem; }
  .prose-article { font-size: 1.0625rem; line-height: 1.7; }
  .work-brief__list li { gap: 12px; }
}
