/* ============================================================
   ТОПДОМ — блоки страниц «Технологии», «О компании», «Построенные дома»
   Цвета — из токенов css/pages.css (меняются со шкалой цвета).
   ============================================================ */

/* =====================  ТЕХНОЛОГИИ  ===================== */
.wx-tabs { margin-bottom: 18px; }
.section--paper .wx-tabs { background: #fff; }
.wx { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.wx__cut { position: relative; border-radius: var(--r-lg); background: #fff; padding: 18px; display: grid; grid-template-rows: 1fr auto auto; gap: 14px; min-height: 520px; overflow: hidden; }
.wx__photo { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 200px; }
.wx__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform 1.4s var(--ease); }
.wx__photo img.is-swap { opacity: 0; transform: scale(1.04); }
.wx__layers { display: flex; height: 170px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.ly { position: relative; width: 0; flex: none; transition: width .9s var(--ease); transition-delay: var(--d); min-width: 0; outline: none; }
.wx__layers.is-in .ly { width: var(--w); }
.ly + .ly { box-shadow: inset 1px 0 0 rgba(0,0,0,.18); }
.ly__t { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 11.5px; font-weight: 600; color: rgba(0,0,0,.72); white-space: nowrap; opacity: 0; transition: opacity .4s .6s; pointer-events: none; text-shadow: 0 0 6px rgba(255,255,255,.7); }
.ly__t b { font-weight: 400; margin-top: 6px; }
.wx__layers.is-in .ly__t { opacity: 1; }
.ly:hover, .ly:focus { filter: brightness(1.08); }
.ly--brick { background: repeating-linear-gradient(0deg, #9b5a40 0 13px, #d9cfc3 13px 15px); }
.ly--brick2 { background: repeating-linear-gradient(0deg, #b0674a 0 13px, #cfc5b9 13px 15px); }
.ly--air { background: #f3f5f6; }
.ly--wool { background: repeating-linear-gradient(-45deg, #f0dfa2 0 7px, #e5cd7c 7px 14px); }
.ly--gas { background: radial-gradient(circle at 30% 40%, rgba(0,0,0,.1) 1.5px, transparent 2px) 0 0 / 9px 9px, #e6e5e1; }
.ly--ceramic { background: repeating-linear-gradient(90deg, #c06e4c 0 7px, #9d5034 7px 9px); }
.ly--concrete { background: radial-gradient(circle, #7a7a78 2.5px, transparent 3px) 50% 30% / 28px 40px, radial-gradient(circle at 40% 60%, rgba(0,0,0,.12) 1px, transparent 1.6px) 0 0 / 7px 7px, #b9b8b3; }
.ly--poly { background: radial-gradient(circle, #fff 2px, transparent 2.6px) 0 0 / 8px 8px, #cfcdc6; }
.ly--plaster { background: #f6f3ec; }
.ly--plaster2 { background: #e9e4da; }
.ly--plaster .ly__t, .ly--plaster2 .ly__t, .ly--air .ly__t { color: rgba(0,0,0,.6); }
.wx__dims { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.wx__dims b { color: var(--ink); font-size: 15px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--paper); }
.wx__info { border-radius: var(--r-lg); background: #fff; padding: clamp(22px, 2.6vw, 38px); display: flex; flex-direction: column; }
.wx__info h3 { font-size: clamp(28px, 2.8vw, 44px); font-weight: 300; letter-spacing: -.04em; line-height: 1.05; }
.wx__info > p { color: var(--ink-2); margin-top: 12px; max-width: 520px; }
.wx__meters { display: grid; gap: 14px; margin-top: 24px; }
.mt { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: center; font-size: 14px; font-weight: 500; }
.mt small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.mt i { height: 6px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.mt i b { display: block; height: 100%; width: var(--v); border-radius: 6px; background: var(--acc); animation: grow 1.1s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.wx__pros { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 14px; }
.wx__pros li { display: flex; gap: 10px; align-items: baseline; }
.wx__pros li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; transform: translateY(-2px); }
.wx__foot { margin-top: auto; padding-top: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.wx__foot small { display: block; font-size: 13px; color: var(--ink-3); }
.wx__foot b { display: block; font-size: 28px; font-weight: 300; letter-spacing: -.03em; }

.cmp-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); scrollbar-width: thin; }
.cmp { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 14.5px; }
.cmp th, .cmp td { padding: 18px 16px; text-align: left; border-bottom: 1px solid var(--line); transition: background .25s, color .25s; vertical-align: middle; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 17px; font-weight: 500; letter-spacing: -.02em; background: var(--paper); cursor: pointer; }
.cmp tbody th { font-weight: 500; color: var(--ink-2); width: 200px; position: sticky; left: 0; background: #fff; z-index: 1; }
.cmp thead th:first-child { position: sticky; left: 0; z-index: 2; cursor: default; }
.cmp .is-col { background: var(--acc-l); }
.cmp thead .is-col { background: var(--acc); color: #fff; }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--acc); }
.cmp td small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.st { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 88px); align-items: start; }
.st__media { position: sticky; top: calc(var(--hdr) + 24px); }
.st__frame { position: relative; aspect-ratio: 1 / 1; max-height: calc(100svh - var(--hdr) - 90px); width: 100%; border-radius: var(--r-lg); overflow: hidden; background: #ddd; }
.st__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.st__frame img.is-on { opacity: 1; transform: none; }
.st__num { position: absolute; left: 20px; bottom: 6px; color: #fff; font-size: clamp(80px, 9vw, 150px); font-weight: 200; letter-spacing: -.06em; line-height: 1; text-shadow: 0 4px 30px rgba(0,0,0,.3); }
.st__bar { height: 3px; border-radius: 3px; background: var(--line); margin-top: 14px; overflow: hidden; }
.st__bar i { display: block; height: 100%; width: 14%; background: var(--acc); transition: width .6s var(--ease); }
.st__list { display: grid; }
.st__list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: clamp(26px, 6vh, 64px) 0; border-top: 1px solid var(--line); opacity: .35; transition: opacity .5s; cursor: pointer; }
.st__list li.is-on { opacity: 1; }
.st__list em { font-style: normal; font-size: 36px; font-weight: 200; line-height: 1; letter-spacing: -.04em; color: var(--acc-t); }
html:not(.g1):not(.gp) .st__list em { color: var(--ink); }
.st__list b { display: block; font-size: clamp(22px, 2vw, 30px); font-weight: 400; letter-spacing: -.03em; line-height: 1.15; }
.st__list p { color: var(--ink-2); margin-top: 8px; max-width: 460px; }

.eng { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.eng__i { border-radius: var(--r-lg); background: var(--paper); padding: 26px 24px; min-height: 260px; display: flex; flex-direction: column; transition: background .35s, color .35s, transform .4s var(--ease); }
.eng__i:hover { background: var(--acc); color: #fff; transform: translateY(-4px); }
.eng__ic { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease); }
.eng__i:hover .eng__ic { transform: rotate(-12deg) scale(1.08); }
.eng__ic svg { width: 26px; height: 26px; }
.eng__i b { margin-top: auto; padding-top: 30px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.eng__i p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); transition: color .35s; }
.eng__i:hover p { color: rgba(255,255,255,.8); }

.quiz { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.quiz__l { display: flex; flex-direction: column; }
.quiz__q { margin-top: 28px; }
.quiz__q.is-in { animation: qIn .6s var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateX(24px); } }
.quiz__lab { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.quiz__q h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 400; letter-spacing: -.03em; margin-top: 8px; }
.quiz__opts { display: grid; gap: 8px; margin-top: 18px; }
.quiz__opts button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px; background: #fff; text-align: left; font-size: 16px; font-weight: 500; transition: background .25s, color .25s, padding .35s var(--ease); }
.quiz__opts button:hover { background: var(--acc); color: #fff; padding-left: 26px; }
.quiz__opts button svg { flex: none; }
.quiz__again { margin-top: 12px; font-weight: 600; text-decoration: underline; }
.quiz__steps { display: flex; gap: 6px; margin-top: auto; padding-top: 24px; }
.quiz__steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .4s; }
.quiz__steps i.done, .quiz__steps i.cur { background: var(--acc); }
.quiz__steps i.cur { opacity: .45; }
.quiz__r { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 460px; background: var(--dark); isolation: isolate; }
.quiz__r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: grayscale(.6) brightness(.8); transition: filter .8s, transform 1.4s var(--ease); transform: scale(1.05); }
.quiz__r.is-done img { filter: none; transform: none; }
.quiz__card { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 22px; border-radius: var(--r-md); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.quiz__card small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.quiz__card b { display: block; font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; letter-spacing: -.03em; margin-top: 4px; }
.quiz__card p { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.quiz__act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.quiz__r.is-done .quiz__card { animation: qIn .7s var(--ease); }

/* =====================  О КОМПАНИИ  ===================== */
.vow { position: relative; border-top: 1px solid var(--ink); }
.vow__i { position: relative; z-index: 1; display: grid; grid-template-columns: 90px 1fr 1fr; gap: 20px; align-items: baseline; padding: clamp(22px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); cursor: default; }
.vow__i em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.vow__i b { font-size: clamp(30px, 4.4vw, 76px); font-weight: 200; letter-spacing: -.05em; line-height: 1; transition: transform .6s var(--ease), color .4s; }
.vow__i p { color: var(--ink-2); max-width: 400px; justify-self: end; }
.vow.is-hover .vow__i:not(.is-hot) b { color: var(--ink-3); }
.vow__i.is-hot b { transform: translateX(18px); color: var(--acc-t); }
html:not(.g1):not(.gp) .vow__i.is-hot b { color: var(--ink); }
.vow__float { position: absolute; left: 0; top: 0; z-index: 2; width: 280px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; scale: .7; transition: opacity .35s, scale .5s var(--ease); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.vow.is-hover .vow__float { opacity: 1; scale: 1; }
.vow__float img { width: 100%; height: 100%; object-fit: cover; }

.tl-sec { overflow: hidden; }
.tl { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); cursor: grab; }
.tl::-webkit-scrollbar { display: none; }
.tl.is-drag { cursor: grabbing; scroll-snap-type: none; }
.tl.is-drag img { pointer-events: none; }
.tl__track { display: flex; gap: 16px; width: max-content; padding-bottom: 8px; position: relative; }
.tl__track::before { content: ""; position: absolute; left: 0; right: 0; top: 36px; height: 1px; background: var(--ink); }
.tl__i { width: clamp(270px, 26vw, 380px); scroll-snap-align: start; opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d); }
.tl.is-in .tl__i { opacity: 1; transform: none; }
.tl__y { position: relative; display: block; font-size: 30px; font-weight: 200; letter-spacing: -.04em; line-height: 1; padding-bottom: 24px; }
.tl__y::after { content: ""; position: absolute; left: 0; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 5px var(--white); }
.tl__card { margin-top: 18px; border-radius: var(--r-lg); background: var(--paper); overflow: hidden; transition: transform .4s var(--ease), box-shadow .3s; }
.tl__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.tl__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tl__card img.is-logo { object-fit: contain; padding: 30px 40px; background: #fff; }
.tl__card b { display: block; padding: 18px 20px 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.tl__card p { padding: 6px 20px 20px; font-size: 14.5px; color: var(--ink-2); }
.tl__nav { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.tl__prog { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tl__prog i { display: block; height: 100%; width: 15%; background: var(--acc); transition: width .2s; }
.tl__btns { display: flex; gap: 8px; }
.tl__btns .soc { width: 48px; height: 48px; }

.team-banner { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px; }
.team-banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; transition: transform 1.6s var(--ease); }
.team-banner:hover img { transform: scale(1.03); }
.team-banner span { position: absolute; left: 20px; bottom: 16px; color: #fff; font-size: clamp(22px, 2.6vw, 40px); font-weight: 300; letter-spacing: -.03em; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.crew { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.crew__i { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4.2; color: #fff; isolation: isolate; background: #d9d9d6; }
.crew__i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; z-index: -2; filter: grayscale(1); transition: filter .6s var(--ease), transform 1s var(--ease); }
.crew__i::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.66), rgba(0,0,0,0) 48%); }
.crew__i:hover img { filter: none; transform: scale(1.05); }
.crew__i div { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.crew__i b { display: block; font-size: 17px; font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.crew__i span { display: block; font-size: 12.5px; opacity: .82; margin-top: 4px; line-height: 1.3; }

.office { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: center; }
.office__img { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.office__img img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.office__img .tag { position: absolute; top: 16px; left: 16px; }
.office__list { margin-top: 26px; border-top: 1px solid var(--ink); }
.office__list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.office__list small { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.office__list a { text-decoration: underline; text-underline-offset: 3px; }

/* =====================  ПОСТРОЕННЫЕ ДОМА  ===================== */
.bhero { margin-top: var(--hdr); overflow: hidden; }
.bhero__in { display: grid; grid-template-columns: 1fr 1.1fr; grid-template-rows: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); height: calc(100svh - var(--hdr)); min-height: 560px; }
.bhero__txt { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 32px 0; }
.bhero__txt .lead { max-width: 440px; }
.bhero__txt .btn { align-self: flex-start; }
.bhero__nums { display: flex; gap: 32px; border-top: 1px solid var(--ink); padding-top: 18px; }
.bhero__nums b { display: block; font-size: clamp(36px, 3.6vw, 60px); font-weight: 200; letter-spacing: -.05em; line-height: 1; }
.bhero__nums span { font-size: 13.5px; color: var(--ink-2); }
.bhero__cols { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: minmax(0, 1fr); gap: 10px; height: 100%; min-height: 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); }
.bcol { overflow: hidden; min-height: 0; }
.bcol__in { display: grid; gap: 10px; animation: colUp 38s linear infinite; }
.bcol--rev .bcol__in { animation-direction: reverse; animation-duration: 46s; }
.bcol:nth-child(3) .bcol__in { animation-duration: 42s; }
.bcol img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
@keyframes colUp { to { transform: translateY(calc(-50% - 5px)); } }
@media (prefers-reduced-motion: reduce) { .bcol__in { animation: none; } }

.bgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.bcard { position: relative; display: block; grid-column: span 2; aspect-ratio: 4 / 3.3; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-align: left; isolation: isolate; transition: opacity .3s, transform .4s var(--ease); }
.bcard:nth-child(5n+1), .bcard:nth-child(5n+2) { grid-column: span 3; aspect-ratio: 16 / 10; }
.bcard__img { position: absolute; inset: 0; z-index: -2; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.bcard:hover .bcard__img img { transform: scale(1.06); }
.bcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.66)); }
html.gp:not(.soft) .bcard::after { background: linear-gradient(180deg, rgba(5,48,33,0) 45%, rgba(5,48,33,.72)); }
.bcard__top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.bcard__top .tag { position: static; }
.bcard__b { position: absolute; left: 20px; bottom: 18px; right: 80px; }
.bcard__b b { display: block; font-size: clamp(24px, 2.4vw, 38px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.bcard__b span { display: block; font-size: 14px; opacity: .88; margin-top: 4px; }
.bcard__go { position: absolute; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, color .3s; }
.bcard:hover .bcard__go { transform: rotate(45deg); background: var(--acc); color: #fff; }
.bcard.is-out { opacity: 0; transform: scale(.94); }
.bcard.is-in { animation: cardIn .5s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: scale(.96); } }
.bgrid__note { margin-top: 18px; color: var(--ink-3); font-size: 14px; }

.lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__bg { position: absolute; inset: 0; background: rgba(10,10,10,.9); backdrop-filter: blur(6px); }
.lb__fig { position: relative; margin: 0; max-width: min(1200px, 92vw); display: grid; gap: 12px; transform: scale(.96); transition: transform .45s var(--ease); }
.lb.is-open .lb__fig { transform: none; }
.lb__fig img { max-height: 78svh; width: auto; max-width: 100%; border-radius: 16px; transition: opacity .3s; justify-self: center; }
.lb__fig img.is-swap { opacity: .25; }
.lb__fig figcaption { color: rgba(255,255,255,.8); font-size: 14.5px; text-align: center; }
.lb__fig figcaption b { display: block; color: #fff; font-size: 22px; font-weight: 300; letter-spacing: -.02em; }
.lb__btn, .lb__x { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease); }
.lb__btn svg { width: 20px; height: 20px; }
.lb__btn:hover { transform: scale(1.08); }
.lb__btn--prev { left: 20px; top: 50%; margin-top: -26px; }
.lb__btn--next { right: 20px; top: 50%; margin-top: -26px; }
.lb.is-single .lb__btn { display: none; }
.lb__x { top: 18px; right: 18px; font-size: 26px; line-height: 1; }
.lb__count { position: absolute; top: 30px; left: 24px; color: #fff; font-weight: 600; font-size: 14px; }

/* =====================  АДАПТИВ  ===================== */
@media (max-width: 1100px) {
  .wx { grid-template-columns: 1fr; }
  .eng { grid-template-columns: 1fr 1fr; }
  .crew { grid-template-columns: repeat(3, 1fr); }
  .bhero__in { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; min-height: 0; }
  .bhero__cols { height: 420px; }
}
@media (max-width: 900px) {
  .phero { min-height: calc(92svh - var(--hdr)); }
  .phero__scroll { display: none; }
  .wx__cut { min-height: 0; padding: 12px; }
  .wx__photo { aspect-ratio: 16 / 9; min-height: 0; }
  .wx__layers { height: 150px; }
  .mt { grid-template-columns: 130px 1fr; font-size: 13.5px; }
  .wx__pros { grid-template-columns: 1fr; }
  .st { grid-template-columns: 1fr; }
  .st__media { top: calc(var(--hdr) + 8px); z-index: 2; }
  .st__frame { aspect-ratio: 16 / 9; max-height: 34svh; }
  .st__num { font-size: 64px; left: 14px; }
  .st__list li { padding: 22px 0; grid-template-columns: 46px 1fr; }
  .st__list em { font-size: 26px; }
  .quiz { grid-template-columns: 1fr; }
  .quiz__r { min-height: 420px; }
  .vow__i { grid-template-columns: 40px 1fr; }
  .vow__i p { grid-column: 2; justify-self: start; }
  .vow__float { display: none; }
  .office { grid-template-columns: 1fr; }
  .bgrid { grid-template-columns: 1fr 1fr; }
  .bcard, .bcard:nth-child(5n+1), .bcard:nth-child(5n+2) { grid-column: span 1; aspect-ratio: 4 / 4.4; }
  .bcard:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .bcard__b { left: 14px; bottom: 14px; right: 64px; }
  .bcard__b b { font-size: 22px; }
  .bcard__b span { font-size: 12.5px; }
  .bcard__go { width: 38px; height: 38px; right: 12px; bottom: 12px; }
  .lb__btn { width: 44px; height: 44px; }
  .lb__btn--prev { left: 8px; } .lb__btn--next { right: 8px; }
}
@media (max-width: 600px) {
  .big-title { font-size: clamp(40px, 12.5vw, 64px); }
  .eng { grid-template-columns: 1fr; }
  .eng__i { min-height: 0; }
  .crew { grid-template-columns: 1fr 1fr; gap: 8px; }
  .crew__i img { filter: none; }
  .team-banner img { aspect-ratio: 16 / 9; }
  .office__list li { grid-template-columns: 1fr; gap: 2px; }
  .bhero__cols { height: 320px; }
  .bhero__nums { gap: 22px; }
  .tl__i { width: 78vw; }
  .cmp tbody th { width: 140px; min-width: 140px; }
  .ly__t { font-size: 10px; }
  .quiz__opts button { padding: 15px 16px; font-size: 15px; }
  .bcard__top .tag { font-size: 11px; padding: 5px 10px; }
}

/* сравнение технологий на телефоне: карточка с переключателем */
.cmp-m { display: none; }
@media (max-width: 700px) {
  .cmp-wrap { display: none; }
  .cmp-m { display: block; }
  .cmp-m__tabs { margin-bottom: 12px; }
  .cmp-m__card { margin: 0; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; animation: qIn .45s var(--ease); }
  .cmp-m__card div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); }
  .cmp-m__card div:last-child { border-bottom: 0; }
  .cmp-m__card dt { font-size: 14px; color: var(--ink-2); font-weight: 500; }
  .cmp-m__card dd { margin: 0; font-size: 14.5px; }
  .cmp-m__card dd small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
}
@media (max-width: 900px) {
  .st__media { background: var(--paper); margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 10px; box-shadow: 0 10px 18px -12px rgba(0,0,0,.18); }
}
.vow__thumb { display: none; }
@media (hover: none), (max-width: 900px) { .hover-only { display: none; } }
@media (max-width: 900px) {
  .vow__i { grid-template-columns: 36px 1fr 76px; align-items: center; row-gap: 10px; }
  .vow__thumb { display: block; grid-column: 3; grid-row: 1; width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
  .vow__i p { grid-column: 2 / 4; }
  .vow__i b { font-size: clamp(26px, 7.5vw, 34px); }
}
@media (max-width: 600px) {
  .bcard:not(:nth-child(3n+1)) .bcard__top { display: none; }
  .bcard:not(:nth-child(3n+1)) .bcard__go { top: 10px; right: 10px; bottom: auto; width: 34px; height: 34px; }
  .bcard:not(:nth-child(3n+1)) .bcard__b { left: 12px; right: 12px; bottom: 12px; }
  .bcard:not(:nth-child(3n+1)) .bcard__b b { font-size: 20px; white-space: nowrap; }
  .bcard:not(:nth-child(3n+1)) .bcard__b span { font-size: 12px; line-height: 1.3; }
}
@media (max-width: 600px) {
  .lb__btn { top: auto; bottom: max(28px, env(safe-area-inset-bottom)); margin-top: 0; }
  .lb__btn--prev { left: calc(50% - 60px); } .lb__btn--next { right: calc(50% - 60px); }
  .lb__fig { margin-top: -40px; }
}

/* телефон: все фото домов горизонтальные, по одному в ряд */
@media (max-width: 900px) {
  .bgrid { grid-template-columns: 1fr; gap: 10px; }
  .bcard, .bcard:nth-child(5n+1), .bcard:nth-child(5n+2), .bcard:nth-child(3n+1) { grid-column: auto; aspect-ratio: 16 / 10; }
  .bcard:not(:nth-child(3n+1)) .bcard__top { display: flex; }
  .bcard:not(:nth-child(3n+1)) .bcard__go { top: auto; right: 12px; bottom: 12px; width: 38px; height: 38px; }
  .bcard:not(:nth-child(3n+1)) .bcard__b { left: 14px; right: 64px; bottom: 14px; }
  .bcard:not(:nth-child(3n+1)) .bcard__b b { font-size: 22px; white-space: normal; }
  .bcard:not(:nth-child(3n+1)) .bcard__b span { font-size: 12.5px; }
}
