@font-face {
  font-family: 'Geologica';
  src: url('../fonts/geologica.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F3F2EE;
  --paper2: #E9E7E1;
  --paper3: #DEDBD3;
  --ink: #141414;
  --ink2: #3C3B38;
  --mute: #6B6964;
  --line: #C9C7C0;
  --dark-line: #3A3936;
  --dark-mute: #A8A59E;
  --acc: #E8744F;
  --acc-text: #B8311B;
  --acc-hover: #F08A66;
  --wrap: 1344px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sticky-h: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geologica', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
/* якоря: заголовок раздела встаёт под закреплённой шапкой (64 px на телефоне) с воздухом 16 px */
section[id], main[id], form[id] { scroll-margin-top: 80px; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, fieldset, dl, dd { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
::selection { background: var(--acc); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sec { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.sec-dark { background: var(--ink); color: var(--paper); }
.sec-tone { background: var(--paper2); }

.h1 { font-weight: 350; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(38px, 10.2vw, 86px); }
.h2 { font-weight: 350; letter-spacing: -0.025em; line-height: 1.04; font-size: clamp(34px, 5vw, 66px); max-width: 16ch; }
.h3 { font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink2); max-width: 54ch; }
.sec-dark .lead { color: #D6D3CC; }
.small { font-size: 14px; color: var(--mute); }
.sec-dark .small { color: var(--dark-mute); }
.acc { color: var(--acc-text); }
.sec-dark .acc { color: var(--acc); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--acc-text); vertical-align: 0; margin-right: 8px; }
.sec-dark .dot, .hero-cap .dot { background: var(--acc); }
.label { font-size: 16px; color: var(--mute); font-weight: 400; }
.sec-dark .label { color: var(--dark-mute); }
.sec-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.nowrap { white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.005em; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-acc { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.btn-acc:hover { background: var(--acc-hover); border-color: var(--acc-hover); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-dark { border-color: #6F6D68; color: var(--paper); }
.btn-outline-dark:hover { border-color: var(--paper); }
.btn-ghost { border-color: transparent; color: var(--mute); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .arr { font-weight: 400; }
.link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-weight: 500; text-decoration: none; color: var(--acc-text); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sec-dark .link { color: var(--acc); }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.logo-link { display: flex; align-items: center; min-height: 44px; color: var(--ink); }
.logo { height: 16px; width: auto; display: block; }
.nav { display: none; gap: clamp(16px, 2vw, 32px); font-size: 16px; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink2); }
.nav a:hover { color: var(--ink); }
.top-right { display: none; align-items: center; gap: 24px; }
.top-right a { text-decoration: none; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
.top-right .btn { min-height: 46px; padding: 0 20px; font-size: 16px; }
.menu { position: static; }
.menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); font-size: 16px; font-weight: 500; cursor: pointer; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); padding: 8px var(--gutter) 28px; display: flex; flex-direction: column; border-bottom: 2px solid var(--ink); }
.menu:not([open]) .menu-panel { display: none; }
.menu-panel a { text-decoration: none; font-size: 26px; font-weight: 350; letter-spacing: -0.02em; padding: 12px 0; display: block; }
.menu-panel .menu-tel { margin-top: 12px; font-size: 20px; font-weight: 500; }
.menu-panel .btn { margin-top: 16px; }

/* hero */
.hero { padding-top: 20px; padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 36px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; color: var(--mute); }
.hero-meta .only-desk { display: none; }
.hero .h1 { max-width: 13ch; }
.hero .lead { max-width: 48ch; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 8px; }
.hero-note { font-size: 15px; color: var(--ink2); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px clamp(20px, 6vw, 40px); margin-top: 24px; padding-top: 24px; width: 100%; }
.stat b { display: block; font-weight: 350; font-size: clamp(36px, 10vw, 56px); line-height: 1; letter-spacing: -0.03em; color: var(--acc-text); }
.stat span { display: block; margin-top: 6px; font-size: 15px; color: var(--mute); max-width: 11ch; }
.sec-dark .stat b { color: var(--acc); }
.sec-dark .stat span { color: var(--dark-mute); }
.hero-media { position: relative; background: var(--ink); overflow: hidden; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); aspect-ratio: 4 / 3; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 16px; font-size: 14px; color: var(--paper); background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,.72) 100%); pointer-events: none; }

/* load entrance */
.rise { animation: rise .7s var(--ease) both; }
.rise-2 { animation-delay: .08s; }
.rise-3 { animation-delay: .16s; }
.rise-4 { animation-delay: .24s; }
.rise-5 { animation-delay: .32s; }
.rise-6 { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* scroll reveal: applied by ui.js only after the first scroll, so a full-page shot shows everything */
.rv { opacity: 0; transform: translateY(26px); }
.rv.in { opacity: 1; transform: none; transition: opacity .75s var(--ease), transform .75s var(--ease); transition-delay: var(--d, 0ms); }

/* consult */
.consult-grid { display: grid; gap: 36px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; color: var(--ink2); }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust li::before { content: ''; flex: 0 0 auto; width: 10px; height: 10px; margin-top: 8px; background: var(--acc); }
.card-form { background: var(--paper); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.q { font-size: 18px; font-weight: 500; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.tile { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 2px solid var(--paper3); background: transparent; font-size: 16px; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.tile input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.tile:hover { border-color: var(--ink); }
.tile.on, .tile:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.tile:has(input:focus-visible) { outline: 3px solid var(--acc); outline-offset: 3px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 15px; color: var(--mute); }
.field input, .field textarea { min-height: 54px; padding: 12px 16px; border: 2px solid var(--paper3); background: #fff; border-radius: 0; font-size: 17px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #9A9893; }

/* services */
.services-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--gutter)); background: var(--paper2); }
.services-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.services-photo:hover img { transform: scale(1.06); }
.steps { display: grid; gap: 28px; margin-top: clamp(36px, 5vw, 64px); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.step b { font-weight: 350; font-size: clamp(40px, 4vw, 56px); line-height: .9; letter-spacing: -0.03em; color: var(--acc-text); min-width: 2.2ch; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink2); }
.services-foot { margin-top: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.services-foot .call { font-size: clamp(22px, 2.4vw, 32px); font-weight: 350; letter-spacing: -0.02em; line-height: 1.15; max-width: 22ch; }

/* projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 2px solid var(--paper3); background: transparent; font-size: 16px; transition: all .2s var(--ease); }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; }
.strip::-webkit-scrollbar { display: none; }
.card { flex: 0 0 80%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.card.hide { display: none; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; gap: 2px; }
.card h3 { font-size: 22px; }
.card .meta { font-size: 15px; color: var(--mute); }
.card .link { margin-top: 4px; }
.strip-hint { margin-top: 12px; font-size: 14px; color: var(--mute); }

/* case */
.case-grid { display: grid; gap: 32px; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.tabs { display: flex; gap: 8px; margin: clamp(36px, 4vw, 56px) 0 20px; }
.tabs button { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 10px; border: 2px solid var(--dark-line); background: transparent; color: var(--paper); font-size: 15px; white-space: nowrap; transition: all .2s var(--ease); }
.tabs button:hover { border-color: var(--dark-mute); }
.tabs button[aria-selected="true"] { background: var(--acc); border-color: var(--acc); color: var(--ink); font-weight: 500; }
.gallery { display: none; }
.gallery.on { display: flex; }
.gallery { gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 82%; scroll-snap-align: start; background: var(--paper); color: var(--ink); overflow: hidden; }
.gallery figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .8s var(--ease); }
.gallery[data-ratio="3-2"] figure img { aspect-ratio: 3 / 2; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 12px 14px; font-size: 14px; line-height: 1.35; }
.case-cta { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-top: 32px; }
.case-cta p { font-size: clamp(20px, 2vw, 26px); font-weight: 350; line-height: 1.25; letter-spacing: -0.015em; max-width: 30ch; }

/* clients */
.clients { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.clients h2 { font-size: 16px; font-weight: 400; color: var(--mute); margin-bottom: 20px; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: clamp(24px, 3vw, 40px); font-weight: 350; letter-spacing: -0.02em; line-height: 1.2; }

/* why */
.why-grid { display: grid; gap: 36px; }
.why-photo { overflow: hidden; aspect-ratio: 4 / 5; margin: 0 calc(-1 * var(--gutter)); background: var(--paper3); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-list { display: grid; gap: 28px; }
.why-grid .btn { align-self: flex-start; }

/* prices */
.prices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 0; }
.price { background: var(--paper2); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.price h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.price dl { display: flex; flex-direction: column; }
.price .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--paper3); }
.price .row:last-child { border-bottom: 1px solid var(--paper3); }
.price dt { font-size: 17px; }
.price dd { font-size: 17px; font-weight: 500; white-space: nowrap; color: var(--acc-text); }
.price p { font-size: 15px; color: var(--ink2); }
.price .btn { margin-top: auto; align-self: flex-start; }

/* quiz */
.quiz-grid { display: grid; gap: 36px; }
.quiz-side { display: flex; flex-direction: column; gap: 20px; }
.sum { display: none; }
.q-form { background: #1C1C1B; padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 24px; min-height: 420px; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; color: var(--dark-mute); }
.q-bar { height: 3px; background: var(--dark-line); }
.q-bar i { display: block; height: 100%; width: 25%; background: var(--acc); transition: width .45s var(--ease); }
.q-chosen { margin-bottom: -12px; font-size: 14px; color: var(--dark-mute); }
.q-chosen span { color: #D6D3CC; }
.q-step { display: flex; flex-direction: column; gap: 20px; }
.js .q-step:not(.is-on) { display: none; }
.q-step legend { display: block; width: 100%; margin-bottom: 4px; }
.q-q { font-size: clamp(22px, 2.2vw, 28px); font-weight: 350; letter-spacing: -0.015em; line-height: 1.2; }
.q-step .tiles { gap: 10px; }
.q-step .tile { min-height: 52px; border-color: var(--dark-line); color: var(--paper); }
.q-step .tile:hover { border-color: var(--dark-mute); }
.q-step .tile.on, .q-step .tile:has(input:checked) { background: var(--acc); border-color: var(--acc); color: var(--ink); font-weight: 500; }
.q-step .field input { background: transparent; border-color: var(--dark-line); color: var(--paper); }
.q-step .field input:focus { border-color: var(--paper); }
.q-step .field > span { color: var(--dark-mute); }
.q-est { font-size: 17px; color: #D6D3CC; }
.q-est strong { color: var(--paper); font-weight: 500; }
.q-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.q-done { display: none; flex-direction: column; gap: 20px; }
.q-done.is-on { display: flex; }
.q-done p { font-size: clamp(22px, 2.2vw, 28px); font-weight: 350; line-height: 1.25; letter-spacing: -0.015em; }
.sum dl { display: flex; flex-direction: column; gap: 10px; }
.sum .row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 16px; }
.sum dt { color: var(--dark-mute); }
.sum dd { color: var(--paper); }
.sum dd.is-empty { color: var(--dark-mute); }

/* faq */
.faq { display: flex; flex-direction: column; max-width: 920px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; gap: 16px; align-items: center; padding: 20px 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 30px; font-weight: 300; text-align: center; color: var(--acc-text); transition: transform .3s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--acc-text); }
.faq .ans { padding: 0 48px 24px 0; max-width: 64ch; color: var(--ink2); }

/* contacts */
.contact-grid { display: grid; gap: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contacts { display: flex; flex-direction: column; }
.contacts .row { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.contacts .row:last-child { border-bottom: 1px solid var(--line); }
.contacts dt { font-size: 14px; color: var(--mute); }
.contacts dd { font-size: 19px; line-height: 1.4; }
.contacts dd a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin: -9px 0; }
.contacts dd a:hover { color: var(--acc-text); }
.contacts .socials { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* sticky wa */
.sticky-wa { position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; min-height: 56px; display: flex; align-items: center; justify-content: center; background: var(--acc); color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; transform: translateY(calc(100% + 24px)); transition: transform .4s var(--ease); box-shadow: 0 8px 24px rgba(20,20,20,.18); }
.sticky-wa.show { transform: none; }
.sticky-wa:active { transform: scale(.98); }

/* footer */
/* снизу место под закреплённую кнопку (телефон): тёмный фон до самого края экрана */
.foot { background: var(--ink); color: var(--paper); padding: clamp(48px, 6vw, 88px) 0 calc(32px + var(--sticky-h) + env(safe-area-inset-bottom)); }
.foot .logo-big { width: 100%; height: auto; display: block; color: var(--paper); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(28px, 4vw, 48px); font-size: 14px; color: var(--dark-mute); }
.foot-row a { color: var(--dark-mute); text-decoration: none; }
.foot-row a:hover { color: var(--paper); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; margin: -6px 0; }

/* desktop */
@media (min-width: 860px) {
  .nav { display: flex; }
  .top-right { display: flex; }
  .menu { display: none; }
  .logo { height: 18px; }
  .top .wrap { min-height: 76px; }
  section[id], main[id], form[id] { scroll-margin-top: 92px; }
  .q-chosen { display: none; }
  .hero { padding-top: clamp(24px, 4vh, 56px); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 4vw, 64px); align-items: stretch; }
  .hero-meta .only-desk { display: inline; }
  .hero-media { margin: 0; aspect-ratio: auto; min-height: 520px; height: 100%; }
  .hero-cap { padding: 64px 24px 20px; font-size: 15px; }
  .hero .h1 { font-size: clamp(46px, 4.1vw, 60px); max-width: none; }
  .hero .lead { max-width: 52ch; }
  .stats { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; }
  .stat b { font-size: clamp(44px, 4vw, 56px); }
  .stat span { max-width: none; }
  .consult-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .services-photo { aspect-ratio: 21 / 9; margin: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
  .services-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .filters button { padding: 0 18px; }
  .tabs button { flex: 0 0 auto; padding: 0 20px; font-size: 16px; }
  .strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
  .card { flex: none; }
  .strip-hint { display: none; }
  .case-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
  .case-stats { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .gallery.on { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; overflow: visible; margin: 0; padding: 0; }
  .gallery[data-ratio="3-2"].on { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure { flex: none; }
  .case-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .why-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .why-photo { margin: 0; aspect-ratio: 3 / 4; position: sticky; top: 96px; }
  .why-list { grid-template-columns: 1fr; gap: 32px; }
  .why-list .step p { max-width: 52ch; }
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .price dd { font-size: 18px; }
  .quiz-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .sum { display: block; padding-top: 28px; }
  .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); }
  .sticky-wa { display: none; }
}

@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero .h1 { font-size: clamp(54px, 4.3vw, 64px); }
}

@media (max-width: 859px) {
  .hero-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 359px) {
  .h1 { font-size: 34px; }
  .btn { padding: 0 18px; font-size: 16px; }
  .tabs { gap: 6px; }
  .tabs button { padding: 0 8px; font-size: 14px; }
  .price .row { grid-template-columns: 1fr; }
  .price dd { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .rv { opacity: 1; transform: none; }
  .card-img img, .gallery figure img, .services-photo img, .btn, .sticky-wa, .q-bar i, .tile, .faq summary::after { transition: none; }
  .services-photo img { transform: none; }
}
