/* Zubr & Busel Studio. Устройство страниц — как у прошлых сайтов студии; стиль — белый фон, минимализм (по мотивам Apple).
   Анимации отключаются при системной настройке «уменьшить движение». */

@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('../fonts/onest-latin-wght-normal.woff2') format('woff2-variations');
  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; }

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --mute: #6e6e73;
  --line: #d2d2d7;
  --line-2: #e8e8ed;
  --brand: #111111;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Onest', 'Helvetica Neue', Arial, sans-serif;
  --pad: 22px;
  --hdr: 56px;
  --r: 18px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.47; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap--narrow { max-width: 820px; }
#app { outline: none; min-height: 100vh; }

/* ---- Типографика ---- */
.display { font-weight: 650; letter-spacing: -.025em; line-height: 1.05; margin: 0; }
.h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 650; letter-spacing: -.015em; line-height: 1.15; margin: 0; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }

/* ---- Кнопки и ссылки ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #3a3a3c; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-row--center { justify-content: center; }
.chev { width: .8em; height: .8em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .25s var(--ease); }
.link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 15px; color: var(--ink); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover .chev { transform: translateX(3px); }

/* ---- Значки ---- */
.ico { width: 22px; height: 22px; fill: currentColor; flex: none; }
.ico .ln { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.soc { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); color: var(--ink); transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
a.soc:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.soc--off { color: #a1a1a6; cursor: default; }

/* ---- Шапка ---- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: transform .45s var(--ease); }
.hdr__bar { position: relative; z-index: 2; height: var(--hdr); display: flex; align-items: center; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.hdr::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.hdr.is-solid::before { border-bottom-color: rgba(0, 0, 0, .08); }
body.dd-open .hdr::before { background: rgba(255, 255, 255, .98); border-bottom-color: transparent; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__logo { display: flex; align-items: center; flex: none; }
.hdr__logo img { height: 40px; width: auto; }
.hdr__menu { display: flex; justify-content: center; gap: 4px; flex: 1; }
.hdr__right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink); transition: background-color .2s; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* окошки меню: панель во всю ширину под шапкой */
.dd { position: static; }
.dd__link { display: inline-flex; align-items: center; height: var(--hdr); padding: 0 14px; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.dd__link:hover, .dd.is-open .dd__link, .dd__link.is-on { color: var(--ink); }
.dd__link.is-on { font-weight: 600; }
.dd__panel {
  position: fixed; left: 0; right: 0; top: var(--hdr); z-index: 1;
  background: rgba(255, 255, 255, .98); padding: 26px 0 36px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility 0s .3s;
  box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .12);
}
.dd.is-open .dd__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd-veil { position: fixed; inset: 0; z-index: 50; background: rgba(232, 232, 237, .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; pointer-events: none; }
body.dd-open .dd-veil { opacity: 1; visibility: visible; transition-delay: 0s; }
.dd__inner { display: grid; gap: 20px; }
.dd__inner--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.dd__prods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.dd__prods a { display: grid; gap: 8px; text-decoration: none; }
.dd__prods img { width: 100%; aspect-ratio: 947 / 601; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid var(--line-2); transition: transform .45s var(--ease-out); }
.dd__prods a:hover img { transform: scale(1.03); }
.dd__prods b { font-size: 14px; font-weight: 600; }
.dd.is-open .dd__prods li { animation: ddIn .5s var(--ease-out) both; }
.dd.is-open .dd__prods li:nth-child(2) { animation-delay: .03s; } .dd.is-open .dd__prods li:nth-child(3) { animation-delay: .06s; }
.dd.is-open .dd__prods li:nth-child(4) { animation-delay: .09s; } .dd.is-open .dd__prods li:nth-child(5) { animation-delay: .12s; }
.dd.is-open .dd__prods li:nth-child(6) { animation-delay: .15s; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } }

/* бургер */
.burger { display: none; width: 38px; height: 38px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 22px; }
body.menu-open .burger span:first-child { top: 18.5px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 18.5px; transform: rotate(-45deg); }
.menu { position: fixed; inset: var(--hdr) 0 0 0; z-index: 55; background: #fff; overflow-y: auto; padding: 18px var(--pad) 40px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility 0s .3s; }
body.menu-open { overflow: hidden; }
body.menu-open .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mnav { display: grid; }
.mdd { border-bottom: 1px solid var(--line-2); }
.mdd__row { display: flex; align-items: center; }
.mdd__toggle { flex: 1; text-align: left; padding: 16px 0; border: 0; background: none; font-size: 26px; font-weight: 650; letter-spacing: -.02em; cursor: pointer; }
.mdd.is-on .mdd__toggle { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mdd__go { width: 44px; height: 44px; display: grid; place-items: center; color: var(--mute); }
.mdd__go .chev { width: 18px; height: 18px; }
.mdd__panel { padding: 0 0 20px; }
.mdd__panel .wrap { padding: 0; }
.mdd__panel .dd__prods { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mdd__panel .dd__prods b { font-size: 12px; }
.menu__foot { display: grid; gap: 16px; justify-items: start; padding-top: 28px; }
.menu__phone { font-size: 17px; text-decoration: none; color: var(--ink-2); }

/* ---- Первый экран: логотип студии ---- */
.hero { padding: calc(var(--hdr) + 14px) 0 0; text-align: center; }
.hero__inner { display: grid; justify-items: center; gap: 18px; will-change: transform, opacity; }
.hero__logo { width: min(520px, 86vw); height: auto; }

[data-intro] { opacity: 0; transform: translateY(18px); }
#app.is-ready [data-intro] { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
#app.is-ready [data-intro="2"] { transition-delay: .1s; } #app.is-ready [data-intro="3"] { transition-delay: .18s; } #app.is-ready [data-intro="4"] { transition-delay: .26s; }
.hero__logo[data-intro] { transform: scale(.96); }
#app.is-ready .hero__logo[data-intro] { transform: none; transition-duration: 1.2s, 1.4s; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
#app.no-anim [data-intro], #app.no-anim [data-reveal] { transition: none !important; animation: none !important; opacity: 1; transform: none; }

/* ---- Разделы главной ---- */
.show { padding-top: clamp(60px, 7vw, 100px); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }

/* карточки продукции (как на прошлых сайтах: кадр, метка, название, три строки текста, кнопки) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.tile { position: relative; display: flex; flex-direction: column; }
.tile__link { display: block; text-decoration: none; }
.tile__media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile__label { display: block; margin-top: 18px; font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--mute); }
.tile__name { margin: 6px 0 0; font-size: 21px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.tile__desc { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.tile--anim { animation: tileIn .7s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(16px); } }

/* карточка услуги: рамка, сверху название и метка (на месте логотипа), под ними картинка целиком */
.stile .tile__media { aspect-ratio: auto; display: grid; gap: 14px; padding: 20px 20px 22px; background: #fff; transition: box-shadow .5s var(--ease-out), border-color .5s var(--ease-out); }
.stile .tile__media img { width: 100%; height: auto; object-fit: contain; border-radius: 10px; }
.stile:hover .tile__media { border-color: var(--line); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .25); }
.stile:hover .tile__media img { transform: none; }
.stile__head { padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.stile__name { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.stile__label { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--mute); }
.stile .tile__desc { margin-top: 16px; }

/* контакты */
.cbox { display: grid; gap: 14px; justify-items: start; }
.cbox__row { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(19px, 2vw, 24px); font-weight: 500; text-decoration: none; }
.cbox__row:hover span { text-decoration: underline; text-underline-offset: 4px; }
.cbox .socs { margin-top: 8px; }
.contacts__order { margin-top: 34px; }

/* ---- Подвал ---- */
.footer { margin-top: clamp(80px, 9vw, 130px); background: var(--bg-2); padding: 44px 0 30px; font-size: 13px; color: var(--mute); }
.footer__top { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer__logo { height: 38px; width: auto; }
.footer__nav, .footer__contacts { display: grid; gap: 8px; align-content: start; justify-items: start; }
.footer__nav a, .footer__contacts a:not(.soc), .footer__bottom a { color: var(--ink-2); text-decoration: none; }
.footer__nav a:hover, .footer__contacts a:not(.soc):hover, .footer__bottom a:hover { text-decoration: underline; }
.footer__nav a.is-on { color: var(--ink); font-weight: 600; }
.footer .socs { gap: 6px; margin-top: 6px; }
.footer .soc { width: 34px; height: 34px; background: #fff; }
.footer .soc .ico { width: 17px; height: 17px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 26px; padding-top: 18px; }

/* ---- Страницы ---- */
.pg-first { padding-top: calc(var(--hdr) + 54px); }
.page-head { padding-bottom: 34px; }
.page-head__title { font-size: clamp(40px, 5.5vw, 64px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.filter { min-height: 36px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; letter-spacing: .06em; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* карточка продукта (как на прошлых сайтах: кадр слева, сведения справа) */
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.back:hover span { text-decoration: underline; }
.svc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.svc__media { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); width: 100%; padding: 24px; background: #fff; line-height: 0; }
.svc__img { width: 100%; height: auto; object-fit: contain; border-radius: 10px; }
.svc__title { margin: 0 0 18px; font-size: clamp(34px, 4vw, 52px); font-weight: 650; letter-spacing: -.025em; line-height: 1.08; }
.svc__text { margin: 0 0 28px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.more { padding-top: clamp(70px, 8vw, 110px); }
.more__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.more__nav { display: flex; gap: 10px; }
.more__nav button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--bg-2); cursor: pointer; }
.more__nav button:hover { background: #e8e8ed; }
.more__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rail { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))) 10px; scroll-padding: 0 max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))); }
.rail::-webkit-scrollbar { display: none; }
.rail .tile { flex: 0 0 min(290px, 74vw); scroll-snap-align: start; }

/* ---- Поиск ---- */
.search { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
body.search-open .search { visibility: visible; }
.search__backdrop { position: absolute; inset: 0; background: rgba(232, 232, 237, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .3s var(--ease); }
body.search-open .search__backdrop { opacity: 1; }
.search__panel { position: relative; background: #fff; padding: 22px 0 28px; transform: translateY(-16px); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s var(--ease); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .16); max-height: 100vh; overflow-y: auto; }
body.search-open .search__panel { transform: none; opacity: 1; }
.search__bar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.search__icon { width: 22px; height: 22px; fill: none; stroke: var(--mute); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.search__input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 24px; font-weight: 600; letter-spacing: -.02em; background: none; color: var(--ink); }
.search__input::placeholder { color: #a1a1a6; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-2); cursor: pointer; }
.search__close svg, .modal__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search__list { list-style: none; margin: 10px 0 0; padding: 0; }
.sres { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; animation: tileIn .4s var(--ease-out) both; animation-delay: calc(var(--i) * 30ms); }
.sres img { grid-row: span 2; width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line-2); }
.sres.is-active { background: var(--bg-2); }
.sres__name { font-weight: 600; font-size: 17px; }
.sres__meta { color: var(--mute); font-size: 12px; letter-spacing: .14em; }
.sres mark { background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.search__empty { margin: 16px 0 0; color: var(--mute); }

/* ---- Заявка: панель выезжает справа (как на прошлых сайтах) ---- */
.modal { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s .6s; }
body.modal-open { overflow: hidden; }
body.modal-open .modal { visibility: visible; transition: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s var(--ease); }
body.modal-open .modal__backdrop { opacity: 1; }
.modal__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); padding: 64px clamp(24px, 3.4vw, 48px) 40px; background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .6s cubic-bezier(.65, 0, .25, 1); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .2); }
body.modal-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-2); cursor: pointer; transition: transform .4s var(--ease-out); }
.modal__close:hover { transform: rotate(90deg); }
.modal__title { margin: 0 0 8px; font-size: 34px; font-weight: 650; letter-spacing: -.02em; }
.lform { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--mute); }
.field input, .field select { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 17px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.field.is-invalid input { border-color: #e30000; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); text-underline-offset: 2px; }
.check.is-invalid { color: #e30000; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff1f0; color: #b00020; font-size: 14px; }
.lead__submit { width: 100%; margin-top: 4px; }
.lead-done { display: grid; justify-items: start; gap: 10px; padding-top: 10px; outline: none; }
.lead-done__ok { width: 60px; height: 60px; margin-bottom: 8px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lead-done__ok circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease-out) forwards; }
.lead-done__ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .45s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---- «Заказать» на телефоне ---- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); display: none; transform: translateY(110%); transition: transform .45s var(--ease-out); background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0, 0, 0, .06); }
.dock .btn { width: 100%; }
.dock.is-on { transform: none; }

/* ---- Переходы ---- */
.fx-curtain { position: fixed; inset: 0; z-index: 100; background: #fff; pointer-events: none; opacity: 0; }
.fx-clone { position: fixed; z-index: 101; overflow: hidden; pointer-events: none; }
.fx-clone img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Узкие экраны ---- */
@media (max-width: 1100px) {
  .dd__prods { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hdr__menu { display: none; }
  .burger { display: block; }
  .hdr__right { gap: 4px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 40px 18px; }
  .svc__grid { grid-template-columns: 1fr; }
  .svc__media { max-width: 520px; }
}
@media (max-width: 600px) {
  :root { --pad: 16px; }
  body { font-size: 16px; }
  .hdr__logo img { height: 32px; }
  .hdr__order { min-height: 32px; padding: 0 14px; font-size: 13px; }
  .tiles { grid-template-columns: 1fr; }
  .dock { display: block; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .search__input { font-size: 20px; }
  .modal__panel { padding-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-intro], [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ===== Дополнения: «Наши работы», «О студии», поле «Задача», официальные значки, кнопка внизу на телефоне ===== */
.field textarea { width: 100%; min-height: 96px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 17px; color: var(--ink); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field textarea:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.field textarea::placeholder, .field input::placeholder { color: #a1a1a6; }

.sub-h { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.sub-h--gap { margin-top: 56px; }
.sub-h--center { text-align: center; }
.sec-head--center { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
#uslugi.show { padding-top: clamp(28px, 3.5vw, 48px); }

/* карточка сайта-работы: снимок экрана 16:10 */
.wtile .tile__media { aspect-ratio: 16 / 10; }
.wtile .tile__actions { justify-content: flex-start; gap: 22px; flex-wrap: wrap; }

/* карточки работ 3D-печати: фото целиком (свои пропорции), название, описание, кнопки — как карточки услуг */
.cards3d { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; align-items: start; }
.card3d { display: flex; flex-direction: column; }
.card3d__link { display: block; text-decoration: none; }
.card3d__media { border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.card3d__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--ease-out); }
.card3d:hover .card3d__media img { transform: scale(1.02); }
.card3d .tile__name { margin-top: 18px; }
.card3d__lab { margin: 6px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.more-3d { padding-top: clamp(60px, 7vw, 100px); }
.more-3d .h2 { margin-bottom: 24px; }
.rail .card3d { flex: 0 0 min(290px, 74vw); scroll-snap-align: start; }

/* страница работы 3D-печати */
.p3d { align-items: start; }
.p3d__media { justify-self: center; border-radius: var(--r); overflow: hidden; background: var(--bg-2); line-height: 0; }
.p3d__media img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - var(--hdr) - 140px); }
.p3d__can { margin-bottom: 28px; }

/* переключатель «Сайты / 3D-печать»: серая дорожка, белая подложка переезжает к выбранному */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(360px, 100%); margin: 0 0 40px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform .45s cubic-bezier(.65, 0, .25, 1); }
.seg[data-seg="1"] .seg__pill { transform: translateX(100%); }
.seg__item { position: relative; z-index: 1; display: grid; place-items: center; min-height: 40px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--mute); text-decoration: none; transition: color .3s var(--ease); }
.seg__item[aria-current="page"] { color: var(--ink); }
.seg__item:hover { color: var(--ink); }

/* страница сайта-работы: сверху снимок и видео рядом одной высоты, под ними кнопки, ниже описание */
.wk__media { --w: min(100vw - 2 * var(--pad), 1196px); --h: calc((var(--w) - 20px) / 2.1625); display: flex; gap: 20px; height: var(--h); }
.wk__shot { flex: none; height: 100%; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35); }
.wk__shot img { width: 100%; height: 100%; object-fit: cover; }
.wk__video { flex: none; height: 100%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .4); }
.wk__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk__btns { margin-top: 28px; }
.wk__desc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: start; padding-top: clamp(44px, 5vw, 70px); }
.wk__add .h2 { margin-bottom: 18px; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 560px; }
.incl li { padding: 15px 0 15px 32px; border-top: 1px solid var(--line-2); position: relative; color: var(--ink-2); }
.incl li::before { content: ''; position: absolute; left: 4px; top: 21px; width: 12px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

/* «О студии» */
.about__text { margin: 0 0 36px; max-width: 900px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--ink); letter-spacing: -.015em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.facts div { background: var(--bg-2); border-radius: var(--r); padding: 28px 26px; }
.facts dt { font-size: clamp(44px, 5vw, 60px); font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts dd { margin: 10px 0 0; color: var(--ink-2); }

/* окошко «Наши работы» */
.dd__inner--works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dd__work { display: grid; gap: 8px; text-decoration: none; }
.dd__work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); transition: transform .45s var(--ease-out); }
.dd__work:hover img { transform: scale(1.03); }
.dd__work b { font-size: 14px; font-weight: 600; }
.mdd__panel .dd__inner--works { grid-template-columns: 1fr 1fr; gap: 12px; }
.mdd__panel .dd__inner--text .dd__big { font-size: 15px; }

@media (max-width: 860px) {
  /* телефон и планшет: «Заказать» внизу экрана идёт за пользователем, пока он листает */
  .dock { display: block; }
  .footer { padding-bottom: calc(30px + 72px + env(safe-area-inset-bottom)); }
  .wk__media { display: grid; height: auto; gap: 16px; justify-items: center; }
  .wk__shot { width: 100%; height: auto; }
  .wk__video { width: min(340px, 80vw); height: auto; }
  .wk__desc { grid-template-columns: 1fr; }
  .cards3d { grid-template-columns: 1fr 1fr; gap: 40px 18px; }
  .p3d__media img { max-height: none; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards3d { grid-template-columns: 1fr; }
}
