/* Экостандарт — стили сайта. Фирменные цвета: слива #3A2B47/#513D59 и жёлтый #F5C518. Шрифт Manrope (свой хостинг). */

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

:root {
  --plum: #3a2b47; --plum-2: #513d59; --plum-3: #7a6683; --plum-50: #f5f1f7; --plum-100: #ece5f0;
  --sun: #f5c518; --sun-2: #ffd84d; --sun-50: #fff7d6;
  --ink: #1f1a24; --text: #3f3846; --muted: #7a7281; --line: #e9e4ec; --bg: #fbfaf8; --card: #fff;
  --ok: #2f8f5b; --err: #c0392b;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --sh: 0 1px 2px rgba(31, 26, 36, .05), 0 10px 30px rgba(31, 26, 36, .06);
  --sh-lg: 0 24px 60px rgba(31, 26, 36, .16);
  --wrap: 1320px; --hdr: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; font: 400 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(28px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Кнопки */
.btn { --b: var(--plum); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.1; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 18px rgba(245, 197, 24, .35); }
.btn--sun:hover { background: var(--sun-2); color: var(--ink); box-shadow: 0 8px 24px rgba(245, 197, 24, .45); }
.btn--plum { background: var(--plum); color: #fff; }
.btn--plum:hover { background: var(--plum-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--plum); border-color: rgba(58, 43, 71, .22); }
.btn--ghost:hover { border-color: var(--plum); color: var(--plum); background: rgba(58, 43, 71, .04); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-more { background: none; border: 0; padding: 0; color: var(--plum-2); font-weight: 700; cursor: pointer; margin: -4px 0 18px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plum-3); margin-bottom: 14px; }
.eyebrow--sun { color: var(--sun); }

/* Шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo__txt b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--plum); }
.logo__txt b span { font-weight: 600; }
.logo__txt small { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.logo--light, .logo--light .logo__txt b { color: #fff; }
.logo--light .logo__txt small { color: rgba(255, 255, 255, .6); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px; white-space: nowrap; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav__link svg { width: 12px; height: 12px; transition: transform .2s; }
.nav__link:hover, .nav__link.is-active { background: var(--plum-50); color: var(--plum); }
.nav__item--mega.is-open .nav__link svg { transform: rotate(180deg); }
.hdr__act { display: flex; align-items: center; gap: 14px; }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 16px; }
.hdr__phone svg { width: 18px; height: 18px; color: var(--plum-2); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--plum-50); border-radius: 12px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--plum); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(31, 26, 36, .12);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__in { display: grid; grid-template-columns: repeat(4, 1fr) 1.1fr; gap: 28px; padding-top: 28px; padding-bottom: 32px; }
.mega__title { display: block; font-weight: 800; color: var(--ink); text-decoration: none; margin-bottom: 10px; font-size: 15px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: var(--text); text-decoration: none; font-size: 14.5px; }
.mega li a span { color: var(--muted); font-size: 12.5px; }
.mega li a:hover { color: var(--plum); }
.mega__col--cta { background: var(--plum-50); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
.mega__note { font-size: 14px; margin: 0 0 4px; }

/* Первый экран */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--plum-100), transparent 60%), linear-gradient(180deg, #fff, var(--bg)); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero__h1 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.035em; margin-bottom: 20px; }
.hero__lead { font-size: 18px; color: var(--text); max-width: 560px; margin-bottom: 28px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__pts { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 0; }
.hero__pts li { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); line-height: 1.3; }
.hero__pts b { font-size: 26px; color: var(--plum); font-weight: 800; letter-spacing: -.02em; }
.hero__pic { position: relative; }
.hero__img { display: block; border-radius: 28px; overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 4 / 3.4; background: var(--plum-100); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero__img:hover img { transform: scale(1.03); }
.hero__badge { position: absolute; left: -24px; bottom: 28px; background: var(--plum); color: #fff; border-radius: 18px; padding: 16px 20px; font-size: 14px; line-height: 1.35; box-shadow: var(--sh-lg); }
.hero__badge b { display: block; font-size: 28px; color: var(--sun); letter-spacing: -.02em; }

/* Преимущества */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -24px; position: relative; z-index: 2; }
.usp__item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh); }
.usp__item p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.usp__item b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.usp__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--sun-50); color: var(--plum); display: grid; place-items: center; }
.usp__ico svg { width: 26px; height: 26px; }

/* Секции */
.sec { padding-top: 72px; }
.sec--tint { background: linear-gradient(180deg, var(--plum-50), rgba(245, 241, 247, 0)); margin-top: 72px; padding: 64px 0 8px; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.sec__title { margin: 0 0 24px; }
.sec__head .sec__title { margin-bottom: 6px; }
.sec__sub { color: var(--muted); max-width: 640px; margin: 0; }
.sec__more { font-weight: 700; white-space: nowrap; text-decoration: none; }
.sec__more:hover { text-decoration: underline; }

/* Плитки разделов */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--plum-100); text-decoration: none; isolation: isolate; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 26, 36, 0) 40%, rgba(31, 26, 36, .78)); z-index: 1; }
.tile:hover img { transform: scale(1.05); }
.tile__txt { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; display: flex; flex-direction: column; }
.tile__txt b { font-size: 17px; line-height: 1.2; }
.tile__txt small { opacity: .8; font-size: 13px; }

/* Сетка карточек */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid--catalog { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--plum-50); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.badge--inline { position: static; vertical-align: middle; margin-left: 6px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card__code { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; letter-spacing: .02em; }
.card__name { font-size: 16px; line-height: 1.3; font-weight: 700; margin: 0 0 12px; letter-spacing: -.01em; }
.card__name a { color: var(--ink); text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__name a:hover { color: var(--plum-2); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__price { margin: 0; font-weight: 800; color: var(--plum); font-size: 17px; white-space: nowrap; }
.card__btn { position: relative; z-index: 2; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13.5px; color: var(--plum); cursor: pointer; transition: all .2s; }
.card__btn:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); }

/* Этапы */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px 22px; }
.step b { display: block; color: var(--ink); font-size: 17px; margin: 14px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--plum); color: var(--sun); font-weight: 800; }

/* Акция */
.promo { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 72px; }
.promo__main { background: var(--plum); color: rgba(255, 255, 255, .85); border-radius: var(--r-lg); padding: 40px; position: relative; overflow: hidden; }
.promo__main::after { content: ""; position: absolute; right: -110px; top: -110px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(245, 197, 24, .12); }
.promo__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.02em; max-width: 560px; margin-bottom: 12px; }
.promo__text { max-width: 520px; }
.promo__side { background: var(--sun-50); border: 1px solid #f5e4a0; border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.promo__big { font-size: 64px; font-weight: 800; color: var(--plum); line-height: 1; margin: 0 0 10px; letter-spacing: -.04em; }

/* Наши работы */
.works { columns: 4 240px; column-gap: 14px; }
.works__item { display: block; margin-bottom: 14px; border-radius: 14px; overflow: hidden; background: var(--plum-50); break-inside: avoid; }
.works__item img { width: 100%; transition: transform .4s, opacity .3s; }
.works__item:hover img { transform: scale(1.03); }
.works--home { columns: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.works--home .works__item { margin: 0; aspect-ratio: 1; }
.works--home .works__item img { width: 100%; height: 100%; object-fit: cover; }

/* Чипы */
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--ink); font-size: 15px; }
.chips li span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chips li a { text-decoration: none; color: var(--ink); }
.chips--brands li { font-size: 16px; letter-spacing: .01em; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* Вопросы */
.faq { display: grid; gap: 10px; margin-top: 20px; max-width: 900px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 700; color: var(--ink); position: relative; font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--plum-3); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 0 18px; color: var(--text); }
.faq__a p:last-child { margin: 0; }

/* Блок с формой */
.cta-box { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; background: linear-gradient(135deg, var(--plum), #2b1f35); color: rgba(255, 255, 255, .85);
  border-radius: 28px; padding: 48px; }
.cta-box__title { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%231f1a24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Форма */
.lead { position: relative; background: #fff; color: var(--text); border-radius: 20px; padding: 26px; box-shadow: var(--sh); }
.lead__title { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 4px; letter-spacing: -.02em; }
.lead__sub { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: block; margin-bottom: 12px; }
.fld span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.fld input, .fld textarea, .toolbar select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--plum-3); background: #fff; }
.fld.is-bad input { border-color: var(--err); }
.fld textarea { resize: vertical; min-height: 84px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; margin: 4px 0 16px; cursor: pointer; }
.chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--plum); flex: none; }
.chk.is-bad span { color: var(--err); }
.lead__err { margin: 12px 0 0; color: var(--err); font-size: 14px; font-weight: 600; }
.lead__ok { position: absolute; inset: 0; background: #fff; border-radius: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--ok); }
.lead__ok svg { width: 56px; height: 56px; margin-bottom: 12px; }
.lead__ok p { color: var(--text); margin: 0; max-width: 300px; }
.lead__ok b { display: block; color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.lead.is-busy button[type="submit"] { opacity: .6; pointer-events: none; }

/* Окно заявки */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal__bg { position: absolute; inset: 0; background: rgba(31, 26, 36, .55); backdrop-filter: blur(3px); }
.modal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 24px; padding: 28px 26px 8px; box-shadow: var(--sh-lg); animation: pop .22s ease-out; }
.modal__box .lead { box-shadow: none; padding: 0 0 20px; }
.modal__x { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border: 0; background: var(--plum-50); border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; color: var(--plum); }
.modal__title { font-size: 24px; font-weight: 800; color: var(--ink); margin: 0 40px 4px 0; letter-spacing: -.02em; }
.modal__sub { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
body.is-locked { overflow: hidden; }

.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(15, 12, 18, .94); display: grid; place-items: center; padding: 40px 64px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 80px); border-radius: 8px; object-fit: contain; }
.lightbox__x, .lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox__x { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__x:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .22); }

/* Внутренние страницы */
.page-top { padding-top: 22px; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #c9c1cd; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--plum); text-decoration: underline; }
.ltitle { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.ltitle h1 { margin: 0; }
.ltitle__count { color: var(--muted); font-weight: 600; }
.intro { max-width: 860px; color: var(--text); margin-bottom: 16px; }
.intro--clip { max-height: 7.6em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.intro--clip.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; margin-bottom: 8px; scrollbar-width: thin; }
.chip { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.chip span { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.chip:hover { border-color: var(--plum-3); color: var(--plum); }
.chip.is-on { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip.is-on span { color: rgba(255, 255, 255, .7); }

.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; padding-bottom: 24px; }
.side { position: sticky; top: calc(var(--hdr) + 16px); max-height: calc(100vh - var(--hdr) - 32px); overflow: auto; scrollbar-width: thin; padding-right: 4px; }
.side__toggle { display: none; }
.side__all { display: block; font-weight: 800; color: var(--ink); text-decoration: none; padding: 8px 0 12px; }
.side__all.is-on { color: var(--plum-2); }
.side__grp { border-top: 1px solid var(--line); }
.side__grp summary { cursor: pointer; list-style: none; padding: 12px 22px 12px 0; font-weight: 800; color: var(--ink); position: relative; font-size: 15px; }
.side__grp summary::-webkit-details-marker { display: none; }
.side__grp summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--plum-3); border-bottom: 2px solid var(--plum-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.side__grp[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.side__grp ul { list-style: none; margin: 0 0 12px; padding: 0; }
.side__grp a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14.5px; }
.side__grp a span { color: var(--muted); font-size: 12.5px; }
.side__grp a:hover { background: var(--plum-50); color: var(--plum); }
.side__grp a.is-on { background: var(--plum); color: #fff; }
.side__grp a.is-on span { color: rgba(255, 255, 255, .7); }
.side__cta { margin-top: 16px; background: var(--sun-50); border-radius: var(--r); padding: 16px; }
.side__cta p { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 15px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.toolbar__info { margin: 0; color: var(--muted); font-size: 14px; }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.toolbar select { width: auto; padding: 9px 36px 9px 14px; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%237a6683' stroke-width='1.6'/%3E%3C/svg%3E") right 12px center / 12px no-repeat; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 36px 0 8px; }
.pager__n, .pager__nav { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.pager__n:hover, .pager__nav:hover { border-color: var(--plum-3); color: var(--plum); }
.pager__n.is-cur { background: var(--plum); border-color: var(--plum); color: #fff; }
.pager__gap { color: var(--muted); padding: 0 4px; }
.empty { background: #fff; border: 1px dashed #d8cfdc; border-radius: var(--r); padding: 36px; text-align: center; }
.empty__title { font-size: 20px; font-weight: 800; color: var(--ink); }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--plum-50); border-radius: var(--r-lg); padding: 28px 32px; margin: 40px 0; }
.inline-cta p { margin: 0; }
.inline-cta__title { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 4px !important; letter-spacing: -.02em; }

.prose { color: var(--text); font-size: 16.5px; line-height: 1.7; }
.prose h2 { font-size: 26px; margin: 1.4em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 1.3em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--plum-3); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15.5px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.prose td, .prose th { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--muted); width: 42%; }
.prose img { border-radius: 12px; margin: 1em 0; }
.seo-text { max-width: 900px; border-top: 1px solid var(--line); padding-top: 32px; margin-top: 8px; }

/* Карточка проекта */
.prod { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start; padding-bottom: 16px; }
.prod__main { display: block; border-radius: 22px; overflow: hidden; background: var(--plum-50); cursor: zoom-in; }
.prod__main img { width: 100%; height: auto; }
.prod__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.prod__thumb { width: 96px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .75; }
.prod__thumb.is-on, .prod__thumb:hover { border-color: var(--plum); opacity: 1; }
.prod__thumb img { width: 100%; height: 72px; object-fit: cover; }
.prod__gallery { position: sticky; top: calc(var(--hdr) + 20px); }
.prod__code { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.prod__h1 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 18px; }
.prod__price { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; }
.prod__price-val { font-size: 30px; font-weight: 800; color: var(--plum); letter-spacing: -.02em; }
.prod__price-note { font-size: 13.5px; color: var(--muted); }
.prod__btns { display: grid; gap: 10px; margin-bottom: 20px; }
.prod__ticks { margin: 0 0 22px; font-size: 15px; }
.props { margin: 0; border-top: 1px solid var(--line); }
.props__row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.props dt { color: var(--muted); }
.props dd { margin: 0; color: var(--ink); }
.props dd a { color: var(--ink); text-decoration-color: rgba(58, 43, 71, .3); }
.props dd a:hover { color: var(--plum-2); }
.prod-desc { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; padding-top: 48px; }
.prod-desc__aside { position: sticky; top: calc(var(--hdr) + 20px); }
.prod-desc__aside .lead { border: 1px solid var(--line); }

/* Текстовые страницы */
.page { padding-bottom: 32px; }
.page__head { max-width: 860px; margin-bottom: 28px; }
.page__lead { font-size: 18px; color: var(--muted); max-width: 820px; }
.page__grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.page__aside { position: sticky; top: calc(var(--hdr) + 20px); }
.page__aside .lead { border: 1px solid var(--line); }
.contacts { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.contacts__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.ccard--wide { grid-column: 1 / -1; }
.ccard--accent { background: var(--plum); border-color: var(--plum); color: rgba(255, 255, 255, .8); grid-column: 1 / -1; }
.ccard__label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ccard--accent .ccard__label { color: rgba(255, 255, 255, .6); }
.ccard__big { font-size: 30px; font-weight: 800; color: var(--sun); text-decoration: none; letter-spacing: -.02em; }
.ccard__val { margin: 0; color: var(--ink); font-weight: 600; }
.ccard__muted { margin: 4px 0 0; }
.map { margin-top: 32px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); height: 420px; background: var(--plum-50); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.nf { text-align: center; padding: 80px 20px 40px; max-width: 760px; }
.nf__code { font-size: 120px; font-weight: 800; line-height: 1; color: var(--plum-100); margin: 0; letter-spacing: -.05em; }
.nf .hero__btns { justify-content: center; }
.nf__chips { justify-content: center; }

/* Подвал */
.ftr { margin-top: 80px; background: #231a2b; color: rgba(255, 255, 255, .7); font-size: 14.5px; }
.ftr a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__cta { background: var(--plum); }
.ftr__cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.ftr__cta-title { color: #fff; font-size: 24px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.02em; }
.ftr__cta-sub { margin: 0; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 48px; padding-bottom: 36px; }
.ftr__h { color: #fff; font-weight: 800; margin-bottom: 14px; font-size: 15px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr__about { margin: 16px 0; }
.ftr__phone { display: inline-block; font-size: 22px; font-weight: 800; color: #fff !important; margin-bottom: 4px; }
.ftr__muted { color: rgba(255, 255, 255, .5); margin: 0; }
.ftr__addr b { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }
.ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: rgba(255, 255, 255, .5); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ftr__bottom p { margin: 0; max-width: 640px; }
.ftr__links a { color: rgba(255, 255, 255, .6); }

.mbar { display: none; }
@media (max-width: 1000px) {
  body { padding-bottom: 68px; }
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mbar .btn { min-height: 50px; padding: 10px 12px; font-size: 15px; }
  .cookie { bottom: 80px; }
}
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--sh-lg); padding: 14px 16px 14px 20px; display: flex; align-items: center; gap: 16px; font-size: 13.5px; }
.cookie p { margin: 0; }

/* Адаптив */
@media (max-width: 1340px) {
  .hdr__phone span { display: none; }
  .hdr__phone { width: 44px; height: 44px; justify-content: center; background: var(--plum-50); border-radius: 12px; }
}
@media (max-width: 1180px) {
  .nav__link { padding: 10px 9px; font-size: 14.5px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--4 .card:nth-child(4) { display: none; }
  .grid--catalog { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  :root { --hdr: 64px; }
  .burger { display: flex; }
  .hdr__cta { display: none; }
  .nav { position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 40px;
    overflow: auto; margin: 0; display: none; }
  .nav.is-open { display: flex; animation: navin .2s ease-out; }
  @keyframes navin { from { opacity: 0; transform: translateY(-8px); } }
  .nav__link { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .nav__link:hover, .nav__link.is-active { background: none; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; }
  .nav__item--mega.is-open .mega { display: block; }
  .mega__in { grid-template-columns: 1fr 1fr; padding: 16px 0; gap: 20px; }
  .mega__col--cta { grid-column: 1 / -1; }
  .hero__in { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .hero__badge { left: 16px; bottom: 16px; }
  .usp { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 24px; }
  .cta-box { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .catalog { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; max-height: none; overflow: visible; margin-bottom: 16px; padding: 0; }
  .side__toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
  .side__toggle::after { content: "+"; font-size: 22px; color: var(--plum-3); line-height: 1; }
  .side__toggle[aria-expanded="true"]::after { content: "−"; }
  .side__in { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px 16px; margin-top: 8px; }
  .side__in.is-open { display: block; }
  .prod, .prod-desc, .page__grid, .contacts { grid-template-columns: 1fr; gap: 28px; }
  .prod__gallery, .prod-desc__aside, .page__aside { position: static; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__cta-in, .inline-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .ltitle h1 { font-size: 26px; }
  .prod-desc { padding-top: 24px; }
  .logo__txt b { font-size: 18px; }
  .logo__txt small { font-size: 10.5px; }
  .logo__mark { width: 30px; height: 30px; }
  .hdr__in { gap: 10px; }
  .hero__lead { font-size: 16.5px; }
  .hero__btns .btn { width: 100%; }
  .hero__pts { gap: 18px; }
  .hero__pts b { font-size: 22px; }
  .usp { grid-template-columns: 1fr; gap: 10px; }
  .sec, .sec.wrap { padding-top: 52px; }
  .sec--tint { margin-top: 52px; padding-top: 44px; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .grid, .grid--catalog { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid--4 .card:nth-child(4) { display: flex; }
  .card__body { padding: 10px 12px 12px; }
  .card__name { font-size: 14.5px; }
  .card__price { font-size: 15px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card__btn { width: 100%; }
  .tiles { gap: 10px; }
  .tile__txt b { font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .promo__main, .promo__side { padding: 28px 22px; }
  .lead__row { grid-template-columns: 1fr; gap: 0; }
  .lead { padding: 20px; }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .works { columns: 2; column-gap: 10px; }
  .works--home { grid-template-columns: 1fr 1fr; gap: 10px; }
  .works__item { margin-bottom: 10px; }
  .contacts__cards { grid-template-columns: 1fr; }
  .props__row { grid-template-columns: 1fr; gap: 2px; }
  .ftr__grid { grid-template-columns: 1fr; gap: 28px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .lightbox { padding: 56px 8px; }
  .lightbox__nav { top: auto; bottom: 12px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

@media (max-width: 1000px) { .cookie { bottom: 80px; } }

/* Колонки сетки могут сжиматься; широкие таблицы из старых текстов прокручиваются внутри */
.page__grid > *, .prod-desc > *, .catalog > *, .contacts > *, .prod > * { min-width: 0; }
.prose { overflow-wrap: break-word; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } .prose td:first-child { width: auto; min-width: 140px; } }
.map-link { margin: 12px 0 0; font-weight: 700; }
/* Отзывы Яндекс Карт */
.ya-badge { border: 0; display: block; margin: 8px 0 4px; }
.reviews { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.reviews__btns { margin-top: 20px; }
.reviews__widget { height: 620px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.reviews__widget iframe { width: 100%; height: 100%; border: 0; display: block; }
.ccard--rating .ccard__val { display: inline-block; margin-top: 4px; }
@media (max-width: 1000px) { .reviews { grid-template-columns: 1fr; gap: 20px; } .reviews__widget { height: 560px; } }
/* Фрезеровки, ручки, фурнитура */
.msec { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.msec__a { padding: 7px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--plum-2); background: var(--plum-50); }
.msec__a.is-on { background: var(--plum); color: #fff; }
.mgrid { grid-template-columns: repeat(4, 1fr); }
.mcard__text { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin: -6px 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .card__img { cursor: zoom-in; }
.badge--photos { left: auto; right: 12px; background: rgba(31, 26, 36, .7); color: #fff; font-weight: 700; }
.mega__in { grid-template-columns: repeat(5, 1fr) 1.1fr; }
@media (max-width: 1180px) { .mgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .mgrid { grid-template-columns: 1fr 1fr; } }
.mcard--contain .card__img { background: #fff; }
.mcard--contain .card__img img { object-fit: contain; padding: 14px; }
