/* Л-Арт — асимметричная сетка, крупная типографика, сдержанная палитра */

/* --- шрифты (локальные, IBM Plex Sans 400/600) -------------------------- */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400;
  font-display: swap; src: url(/static/fonts/plexsans-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400;
  font-display: swap; src: url(/static/fonts/plexsans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400;
  font-display: swap; src: url(/static/fonts/plexsans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600;
  font-display: swap; src: url(/static/fonts/plexsans-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600;
  font-display: swap; src: url(/static/fonts/plexsans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600;
  font-display: swap; src: url(/static/fonts/plexsans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* --- токены -------------------------------------------------------------
   Акцент #579912 на фоне даёт 3.4:1 — годится только для крупного текста,
   плашек и линий. Для ссылок/мелкого текста — --accent-ink #457A0E (5:1).
   На зелёной плашке текст тёмный (#1F2A24, 4.2:1) и только крупный/жирный. */
:root {
  --bg: #FAFAF7;
  --paper: #FFFFFF;
  --fg: #1F2A24;
  --accent: #579912;
  --accent-ink: #457A0E;
  --second: #D9E2DC;
  --second-soft: #EEF2EF;
  --line: #1F2A24;
  --hair: #D9E2DC;
  --muted: #5A665F;          /* 5.9:1 на фоне */
  --bg2: var(--second-soft);
  --head: 'IBM Plex Sans', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --maxw: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 16px; line-height: 1.6; font-weight: 400;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--head); font-weight: 600; margin: 0;
  letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--fg); color: var(--bg); padding: 10px 16px; }
.skip-link:focus { left: 0; }

/* мелкая подпись-«надзаголовок» */
.eyebrow, .sec__num {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-ink); font-variant-numeric: tabular-nums;
}

/* --- шапка -------------------------------------------------------------- */
.topbar { background: var(--bg); border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 40; }
.topbar__in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 32px; min-height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo__img { display: block; height: 40px; width: auto; }
.logo__tag { font-size: 12px; line-height: 1.25; color: var(--muted);
  padding-left: 12px; border-left: 1px solid var(--hair); }
@media (max-width: 560px) { .logo__img { height: 34px; } .logo__tag { display: none; } }

.nav { display: flex; gap: 28px; }
.nav a { font-size: 15px; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-bottom-color: var(--hair); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.topbar__phone { font-weight: 600; font-size: 15px; white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.topbar__phone:hover { color: var(--accent-ink); }
.burger { display: none; border: 1px solid var(--line); background: transparent;
  font: inherit; font-size: 14px; padding: 8px 14px; border-radius: var(--radius);
  cursor: pointer; color: var(--fg); }

/* --- кнопки ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 14px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--fg); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn--accent { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--accent::after { content: "→"; color: var(--accent); transition: transform .15s; }
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn--accent:hover::after { color: #fff; transform: translateX(3px); }
.link { color: var(--accent-ink); border-bottom: 1px solid currentColor; }
.link:hover { color: var(--fg); }

/* --- герой: асимметрия 7/5 ---------------------------------------------- */
.hero { border-bottom: 1px solid var(--hair); }
.hero__in { max-width: var(--maxw); margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(40px, 6vw, 80px); }
.hero h1 {
  font-size: clamp(36px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(24px, 5vw, 80px); align-items: start; }
.hero__photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: var(--second); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__side { padding-bottom: 4px; }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; margin: -0.3em 0 28px;
  text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { list-style: none; margin: 36px 0 0; padding: 0;
  border-top: 1px solid var(--hair); }
.hero__facts li { display: grid; grid-template-columns: 3.2em 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
.hero__facts b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}
/* ручной перенос после запятой — только на широком экране; перед <br> пробел */
@media (max-width: 1100px) { .hero h1 .br-wide { display: none; } }
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
}

/* --- секции: номер | заголовок | пояснение (2/7/3) ---------------------- */
.sec { border-bottom: 1px solid var(--hair); }
.sec__head {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 3fr);
  gap: 24px; align-items: end;
}
.sec__num { padding-bottom: 8px; }
.sec__head h2 { font-size: clamp(30px, 4.2vw, 60px); letter-spacing: -0.03em; }
.sec__head p { margin: 0; color: var(--muted); font-size: 15px; padding-bottom: 8px; }
.sec__head p a { color: var(--accent-ink); border-bottom: 1px solid currentColor; }
.sec__body { max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.sec--tight .sec__head { padding-top: clamp(32px, 4vw, 56px); }
@media (max-width: 860px) {
  .sec__head { grid-template-columns: 1fr; gap: 10px; }
  .sec__num, .sec__head p { padding-bottom: 0; }
}

/* --- направления каталога (типографский список) ------------------------- */
.dirs { list-style: none; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); }
.dirs li { border-bottom: 1px solid var(--hair); }
.dirs li:nth-child(3n+2), .dirs li:nth-child(3n+3) { border-left: 1px solid var(--hair); }
.dirs a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px;
  padding: 22px 20px 22px 0; transition: color .15s; }
.dirs li:nth-child(3n+2) a, .dirs li:nth-child(3n+3) a { padding-left: 20px; }
.dirs a:hover { color: var(--accent-ink); }
.dirs b { font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.01em; }
.dirs span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .dirs { grid-template-columns: 1fr; }
  .dirs li:nth-child(n) { border-left: 0; }
  .dirs li:nth-child(n) a { padding-left: 0; }
}

/* --- сетка карточек ----------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 420px)  { .grid { grid-template-columns: 1fr; } }
.catalog .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1240px) { .catalog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px)  { .catalog .grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; position: relative;
  background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius);
  transition: border-color .15s; }
.card:hover { border-color: var(--fg); }
.card__media {
  /* исходники мелкие (медиана ~94 px) — не растягиваем на всю плитку */
  aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  padding: 18px; background: var(--paper); border-bottom: 1px solid var(--second-soft);
}
.card__media img { max-width: 72%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.card__media--empty { font-size: 13px; color: var(--muted); background: var(--second-soft); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.card__art { font-size: 12px; color: var(--muted); letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums; }
.card__name { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.card__name a::after { content: ""; position: absolute; inset: 0; } /* вся карточка кликабельна */
.card__short {
  font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.card__foot { display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--second-soft); }
.card__price { font-weight: 600; font-size: 18px; white-space: nowrap;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.card__price--ask { font-size: 14px; font-weight: 400; color: var(--muted); }
.card__more { font-size: 13px; color: var(--accent-ink); }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--fg); color: var(--bg); font-size: 12px; padding: 3px 8px;
  border-radius: var(--radius); }

/* --- каталог: фильтр слева ---------------------------------------------- */
.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: start; }
.catalog__side { position: sticky; top: 96px; max-height: calc(100vh - 116px);
  overflow: auto; padding-right: 6px; }
@media (max-width: 980px) {
  .catalog { grid-template-columns: 1fr; }
  .catalog__side { position: static; max-height: none; }
}
.filters__group { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.filters__group:first-child { padding-top: 0; }
.filters__title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.filters input[type="search"], .filters input[type="number"], .filters select,
.toolbar select {
  width: 100%; font: inherit; font-size: 15px; color: var(--fg);
  background: var(--paper); border: 1px solid var(--second); border-radius: var(--radius);
  padding: 10px 12px; -webkit-appearance: none; appearance: none;
}
.filters input:focus, .toolbar select:focus { border-color: var(--fg); outline: none; }
.filters .row { display: flex; gap: 8px; align-items: center; }
.filters .row span { color: var(--muted); }
.filters .btn { width: 100%; }

.tree { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.tree li { margin: 0; }
.tree a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; }
.tree a:hover { color: var(--accent-ink); }
.tree a.is-active { font-weight: 600; color: var(--accent-ink); }
.tree__n { color: var(--muted); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.tree summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: "+"; width: 10px; flex: 0 0 auto; color: var(--accent-ink); }
.tree details[open] > summary::before { content: "–"; }
.tree summary > a { flex: 1 1 auto; min-width: 0; }
.tree li > a { padding-left: 18px; }
.tree summary > a { padding-left: 0; }
.tree ul { list-style: none; padding: 0 0 4px 12px; margin: 0 0 0 4px;
  border-left: 1px solid var(--hair); font-size: 14px; }

.toolbar { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-bottom: 20px; }
.toolbar label { display: flex; align-items: center; gap: 10px; }
.toolbar select { width: auto; padding-right: 32px; }
.toolbar__count { font-size: 14px; color: var(--muted); }
.toolbar__count b { color: var(--fg); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
.chip { display: inline-flex; gap: 6px; font-size: 13px; padding: 5px 12px;
  border-radius: 999px; background: var(--second-soft); }
.chip b { font-weight: 400; color: var(--muted); }
.chip span { font-weight: 600; }
a.chip { background: transparent; border: 1px solid var(--hair); }
a.chip:hover { border-color: var(--fg); }

.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 40px; justify-content: center; }
.pager a, .pager span { min-width: 42px; padding: 9px 12px; text-align: center;
  font-size: 15px; border: 1px solid var(--hair); border-radius: var(--radius);
  font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--fg); }
.pager .is-current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pager .is-gap { border-color: transparent; color: var(--muted); }

/* --- страница товара: 5/7 ----------------------------------------------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px;
  color: var(--muted); padding: 24px 0 0; }
.breadcrumbs a:hover { color: var(--accent-ink); }
.breadcrumbs span { color: var(--second); }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px); align-items: start; padding-top: 32px; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; } }
.product__media { background: var(--paper); border: 1px solid var(--hair);
  border-radius: var(--radius); display: grid; place-items: center;
  padding: clamp(24px, 4vw, 56px); aspect-ratio: 1; position: sticky; top: 100px; }
@media (max-width: 880px) { .product__media, .product__gallery { position: static; } }
.product__gallery { position: sticky; top: 100px; align-self: start; }
.product__gallery .product__media { position: static; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs__i { padding: 4px; background: var(--paper); border: 1px solid var(--hair);
  border-radius: var(--radius); cursor: pointer; aspect-ratio: 1; }
.thumbs__i img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumbs__i:hover { border-color: var(--fg); }
.thumbs__i.is-on { border: 2px solid var(--accent); padding: 3px; }
.thumbs__i:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.product__media img { max-height: 380px; max-width: 78%; width: auto; object-fit: contain; }
.product__art { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.product__info h1 { font-size: clamp(30px, 3.6vw, 52px); margin: 10px 0 8px; letter-spacing: -0.03em; }
.product__model { font-size: 16px; color: var(--muted); }
.product__price { margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.product__price span { font-size: clamp(28px, 3vw, 40px); font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.product__price--ask span { font-size: 24px; }
.product__price small { font-size: 14px; color: var(--muted); }
.product__desc { font-size: 17px; line-height: 1.65; max-width: 62ch; margin-top: 28px; }
.product__desc p { margin: 0 0 14px; }
.spec { margin: 32px 0 0; }
.spec dl { margin: 0; display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; }
.spec dt, .spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.spec dt { color: var(--muted); padding-right: 16px; }

/* --- проекты ------------------------------------------------------------ */
/* Асимметрия: первый проект крупно (7 колонок), два других стопкой (5). */
.projects { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 3vw, 40px); }
.projects > .proj:first-child { grid-row: span 2; }
.projects--all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects--all > .proj:first-child { grid-column: 1 / -1; grid-row: auto; }
.projects--all > .proj:first-child .proj__img { aspect-ratio: 21 / 9; }
@media (max-width: 860px) {
  .projects, .projects--all { grid-template-columns: 1fr; }
  .projects > .proj:first-child { grid-row: auto; }
}
.proj { display: flex; flex-direction: column; gap: 14px; }
.proj__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius);
  background: var(--second); }
.projects > .proj:first-child .proj__img { aspect-ratio: auto; flex: 1 1 auto; min-height: 360px; }
.projects--all > .proj:first-child .proj__img { flex: none; min-height: 0; aspect-ratio: 21 / 9; }
.projects--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects--pair > .proj:first-child { grid-row: auto; }
.projects--pair > .proj:first-child .proj__img { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
@media (max-width: 860px) { .projects--pair { grid-template-columns: 1fr; } }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.proj:hover .proj__img img { transform: scale(1.02); }
.proj__meta { font-size: 13px; color: var(--muted); }
.proj h3 { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; }
.proj:hover h3 { color: var(--accent-ink); }
.proj p { margin: 0; color: var(--muted); font-size: 15px; max-width: 52ch; }

.case__head { max-width: var(--maxw); margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 12px 48px; align-items: end; }
.case__head .eyebrow { grid-column: 1 / -1; }
.case__head h1 { font-size: clamp(34px, 5vw, 72px); letter-spacing: -0.035em; }
.case__head p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; padding-bottom: 8px; }
@media (max-width: 860px) { .case__head { grid-template-columns: 1fr; } }
.case { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }
.case__cover { margin-bottom: clamp(32px, 5vw, 64px); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 21 / 9; background: var(--second); }
.case__cover img { width: 100%; height: 100%; object-fit: cover; }
.case__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
  margin: calc(-1 * clamp(20px, 3.5vw, 48px)) 0 clamp(32px, 5vw, 64px); }
.case__gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--second); }
.case__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.case__gallery a:hover img { transform: scale(1.03); }
.case__aside dl { margin: 0; }
.case__aside dt { font-size: 13px; color: var(--muted); margin-top: 18px; }
.case__aside dd { margin: 4px 0 0; font-weight: 600; }
.case__aside ul { list-style: none; margin: 6px 0 0; padding: 0; }
.case__aside li { padding: 8px 0; border-bottom: 1px solid var(--hair); font-weight: 400; }

/* --- длинный текст ------------------------------------------------------ */
.prose { max-width: 66ch; font-size: 17px; line-height: 1.7;
  hyphens: manual; text-wrap: pretty; overflow-wrap: break-word; }
.prose p { margin: 0 0 18px; }

/* «О компании»: первый абзац крупно в 9 колонок, остальное — со сдвигом */
.about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 3fr); gap: 24px; }
.about__lead { grid-column: 2 / 4; max-width: 40ch; margin: 0 0 clamp(32px, 4vw, 56px);
  font-size: clamp(22px, 2.3vw, 32px); line-height: 1.35; letter-spacing: -0.015em;
  font-weight: 400; text-wrap: pretty; }
.about__text { grid-column: 2 / 3; max-width: 66ch; font-size: 17px; line-height: 1.75;
  text-wrap: pretty; }
.about__text p { margin: 0 0 20px; }
.about__facts { grid-column: 3 / 4; grid-row: 2; align-self: start; position: sticky; top: 100px; }
.about__cta { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__lead, .about__text, .about__cta, .about__facts { grid-column: 1; grid-row: auto; position: static; }
}
/* та же сетка 2/7/3, что у заголовка секции: текст под заголовком, тезисы справа */
.about-short { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 3fr);
  gap: 24px; align-items: start; }
.about-short__text { font-size: clamp(20px, 2vw, 28px); line-height: 1.4;
  letter-spacing: -0.015em; margin: 0 0 32px; text-wrap: pretty; }
.about-short__facts { margin: 0; border-top: 1px solid var(--line); }
.about-short__facts div { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.about-short__facts dt { font-weight: 600; margin-bottom: 4px; }
.about-short__facts dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 860px) { .about-short { grid-template-columns: 1fr; }
  .about-short > div:first-child { display: none; } }

/* --- контакты: крупные значения ----------------------------------------- */
.contacts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 24px; }
.contacts__list { border-top: 1px solid var(--line); }
.contacts__item { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.contacts__k { font-size: 14px; color: var(--muted); }
.contacts__v { font-size: clamp(22px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.02em;
  word-break: break-word; font-variant-numeric: tabular-nums; }
.contacts__v--sm { font-size: 18px; font-weight: 400; letter-spacing: 0; }
.contacts__v a:hover { color: var(--accent-ink); }
@media (max-width: 860px) {
  .contacts { grid-template-columns: 1fr; }
  .contacts__item { grid-template-columns: 1fr; gap: 4px; }
}

.sec__more { display: flex; justify-content: flex-start; margin-top: clamp(28px, 4vw, 48px); }

/* --- подвал ------------------------------------------------------------- */
.footer { background: var(--fg); color: #E8EDE9; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__in { max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.footer__logo { display: block; width: 92px; height: auto; margin-bottom: 14px; }
.footer__brand { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 14px; color: #fff; }
.footer__brand::after { content: ""; display: block; width: 40px; height: 4px;
  background: var(--accent); margin-top: 18px; }
.footer__title { font-size: 13px; color: #A9B6AE; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer li { padding: 4px 0; }
.footer__bottom { border-top: 1px solid #36443C; }
.footer__bottom div { max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter) 28px;
  font-size: 14px; color: #A9B6AE; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__in > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__in { grid-template-columns: 1fr; } }

/* --- cookie ------------------------------------------------------------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 720px; margin: 0 auto; background: var(--paper); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(31, 42, 36, .12); }
.cookie__in { padding: 16px 20px; display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; justify-content: space-between; font-size: 14px; }
.cookie[hidden] { display: none; }

.empty { border: 1px dashed var(--second); padding: 48px 24px; text-align: center;
  border-radius: var(--radius); }
.empty p { margin: 0 0 18px; color: var(--muted); }

/* --- мобильная навигация ------------------------------------------------ */
@media (max-width: 1080px) { .topbar__phone { display: none; } }
@media (max-width: 880px) {
  .burger { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--hair); }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px var(--gutter); border-bottom: 1px solid var(--hair); font-size: 17px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--hair); color: var(--accent-ink); }
}
