/* Multi-page version (/studio/). Loaded after styles.css. */
/* (calculator styles live in styles.css, shared by both versions) */
.nav__links a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav__burger { display: none; width: 44px; height: 40px; background: none; border: 2px solid #fff; cursor: pointer; position: relative; }
.nav__burger span, .nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav__burger::before { top: 11px; }
.nav__burger span { top: 18px; }
.nav__burger::after { top: 25px; }
.nav__burger[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span { opacity: 0; }
.nav__burger[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }
.mnav { position: fixed; inset: 64px 0 0; z-index: 19; background: #000; display: grid; align-content: start; padding: 24px 16px; border-top: 1px solid var(--line); }
.mnav[hidden] { display: none; }
.mnav a { font: 800 44px/1.3 var(--px); text-decoration: none; border-bottom: 1px dashed var(--line); padding: 6px 0; }
body.menu-open { overflow: hidden; }

.phero { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--pad) 0; text-shadow: 0 0 14px #000, 0 0 4px #000; }
.phero h1 { font-size: clamp(64px, 10vw, 140px); }
.phero__lead { color: #cfcfcf; font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; margin-top: 20px; }
.crumb { display: inline-block; font: 400 14px var(--mono); color: var(--muted); text-decoration: none; margin-bottom: 26px; }
.crumb:hover { color: #fff; }
.section--tight { padding-top: clamp(40px, 5vw, 64px); }
.section__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 40px; }
.section .section__row h2 { margin-bottom: 0; }
.chips--nav { margin-top: 28px; }
.chips--nav a { font: 400 13px var(--mono); border: 1px solid var(--dim); padding: 7px 12px; text-decoration: none; transition: border-color .15s, background .15s; }
.chips--nav a:hover { background: #fff; color: #000; border-color: #fff; }

.studio .footer nav { flex-wrap: wrap; gap: 10px 22px; }

/* back button in the sticky header */
.nav__back { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 2px solid #fff; font: 600 18px/1 var(--mono); text-decoration: none; transition: background .15s, color .15s; flex-shrink: 0; }
.nav__back span { font-size: 13px; }
.nav__back:hover { background: #fff; color: #000; }
/* small labels above headings sit on the web: give them a solid plate so they stay readable */
.phero .prompt, .phero .case__type {
  display: inline-block; background: #000; color: #fff; text-shadow: none;
  border: 1px solid #fff; padding: 5px 10px; margin-bottom: 18px;
  font: 600 13px/1.2 var(--mono); letter-spacing: .06em;
}
.phero .prompt__sign { color: #fff; }
/* the web behind inner-page headings is quieter than on the home screen */
.studio:has(.phero) .web--tl { opacity: .28; }
@media (max-width: 560px) {
  .nav__back { width: 44px; padding: 0; justify-content: center; }
  .nav__back span { display: none; }
  .studio .logo { font-size: 22px; gap: 8px; }
}

/* directions */
.dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dir { display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); background: var(--card); padding: 28px; text-decoration: none; transition: border-color .2s, transform .2s; }
.dir:hover { border-color: #fff; transform: translateY(-3px); }
.dir .ico { width: 44px; height: 44px; margin-bottom: 6px; }
.dir b { font: 800 38px/1 var(--px); }
.dir span:not(.ico) { color: #bdbdbd; }
.dir i { font: 600 14px var(--mono); font-style: normal; margin-top: 8px; }

/* work cards */
.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wcard { display: grid; grid-template-rows: auto 1fr; gap: 20px; border: 1px solid var(--line); background: var(--card); padding: 22px; text-decoration: none; transition: border-color .2s, transform .2s; }
.wcard:hover { border-color: #fff; transform: translateY(-3px); }
.wcard .case__shot--phone { max-height: 380px; width: 72%; margin: 0 auto; }
.wcard__body { display: grid; gap: 8px; align-content: start; }
.wcard__name { font: 800 40px/1 var(--px); }
.wcard__text { color: #bdbdbd; font-size: 15px; }
.wcard .link { justify-self: start; margin-top: 6px; }

/* why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why > div { border-top: 2px solid #fff; padding-top: 18px; }
.why b { font: 800 52px/1 var(--px); color: var(--dim); }
.why h3 { font-size: 32px; margin: 14px 0 8px; }
.why p { color: #bdbdbd; font-size: 15px; }

/* CTA band */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; background: #fff; color: #000; padding: clamp(28px, 5vw, 56px); }
.section .band h2 { margin-bottom: 12px; font-size: clamp(44px, 5.6vw, 76px); }
.band p { color: #333; max-width: 52ch; }
.band__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn { background: #000; color: #fff; border-color: #000; }
.band .btn--ghost { background: transparent; color: #000; border-color: #000; }
.band .btn--ghost:hover { background: #000; color: #fff; }

/* services page */
.svc { display: grid; grid-template-columns: 340px 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.svc__head { display: grid; gap: 14px; align-content: start; }
.svc__num { font: 800 52px/1 var(--px); color: var(--dim); }
.svc__head .ico { width: 48px; height: 48px; }
.section .svc__head h2 { font-size: clamp(48px, 5.6vw, 72px); margin: 0; }
.svc__text { font-size: 18px; color: #d6d6d6; max-width: 62ch; }
.svc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 28px 0; }
.svc__cols .calc__label { margin-bottom: 12px; }
.svc__cols .chips { margin: 0 0 22px; }
.svc__meta { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.svc__meta dt { font: 400 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.svc__meta dd { font: 800 22px/1.2 var(--sans); margin-top: 4px; }
.svc__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: #d0d0d0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: #fff; }
.ticks--big li { font-size: 17px; padding-left: 26px; }
.ticks--big li::before { width: 10px; height: 10px; top: .5em; }

/* case page */
.cmeta { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 32px; padding-top: 24px; border-top: 1px dashed var(--line); }
.cmeta dt { font: 400 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cmeta dd { font: 600 16px var(--sans); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 20px; justify-content: start; }
.gallery .case__shot--phone { max-height: none; }
.cbody { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.cbody__text { font-size: 18px; color: #d6d6d6; }
.nextcase { display: grid; gap: 8px; border: 1px solid var(--line); padding: 28px; text-decoration: none; transition: border-color .2s; }
.nextcase:hover { border-color: #fff; }
.nextcase .kicker { margin: 0; }
.nextcase b { font: 800 clamp(40px, 5vw, 64px)/1 var(--px); }

/* add-ons table */
.atable { border-top: 1px solid var(--line); }
.atable__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 120px; gap: 16px 28px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.atable__name { display: grid; gap: 4px; }
.atable__name b { font: 600 17px var(--sans); }
.atable__name small { color: var(--muted); font-size: 14px; }
.atable__where { font: 400 13px/1.5 var(--mono); color: var(--muted); }
.atable__where span { color: #cfcfcf; }
.atable__price { font: 800 24px var(--sans); white-space: nowrap; text-align: right; }

/* contacts */
.contacts { display: grid; gap: 12px; margin: 28px 0; }
.contacts a { display: grid; gap: 4px; border: 1px solid var(--line); padding: 18px 20px; text-decoration: none; transition: border-color .2s; }
.contacts a:hover { border-color: #fff; }
.contacts b { font: 800 34px/1 var(--px); }

@media (max-width: 1000px) {
  .wgrid, .dirs { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .svc { grid-template-columns: 1fr; }
  .svc__head { grid-template-columns: auto auto 1fr; align-items: center; gap: 16px; }
}
@media (max-width: 820px) {
  .studio .nav__side > .btn { display: none; }
  .nav__burger { display: block; }
  .cbody, .svc__cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .gallery > * { scroll-snap-align: start; }
  .atable__row { grid-template-columns: minmax(0, 1fr) auto; }
  .atable__where { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .wgrid, .dirs, .why { grid-template-columns: 1fr; }
  .svc__head { grid-template-columns: auto 1fr; }
  .svc__head .ico { display: none; }
  .band__cta, .band__cta .btn { width: 100%; }
}

.mnav__tg { display: grid; gap: 10px; margin-top: 24px; }
.mnav .mnav__tg a { display: flex; align-items: center; gap: 12px; font: 600 16px var(--mono); border: 1px solid var(--dim); padding: 14px 16px; }
.mnav__tg .ico { width: 24px; height: 24px; }

/* consent checkbox under the lead forms */
.agree, .form .agree { display: flex; gap: 12px; align-items: flex-start; font: 400 13px/1.5 var(--mono); color: var(--muted); cursor: pointer; }
.agree input, .form .agree input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; padding: 0; margin: 1px 0 0; border: 1px solid var(--dim); background: #000; display: grid; place-content: center; cursor: pointer; }
.agree input::after { content: ""; width: 10px; height: 10px; background: #fff; transform: scale(0); transition: transform .12s; }
.agree input:checked { border-color: #fff; }
.agree input:checked::after { transform: scale(1); }
.agree input:focus-visible { outline: 2px dashed #fff; outline-offset: 2px; }
.agree a { color: #fff; }
.agree.is-bad input { border-color: #ff5b5b; }

/* legal pages: offer, privacy policy, consent */
.legal { max-width: 860px; }
.legal h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 40px 0 14px; }
.legal p { color: #c9c9c9; margin: 0 0 12px; overflow-wrap: anywhere; }
.legal a { color: #fff; }
.legal__date { font: 400 13px var(--mono); color: var(--muted) !important; }
.legal__req { display: grid; border: 1px solid var(--line); margin-top: 8px; }
.legal__req div { display: grid; grid-template-columns: minmax(110px, 200px) 1fr; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.legal__req div:first-child { border-top: 0; }
.legal__req dt { font: 400 13px var(--mono); color: var(--muted); }
.legal__req dd { color: #fff; margin: 0; overflow-wrap: anywhere; }
.footer__legal a { font-size: 13px; }
@media (max-width: 560px) { .legal__req div { grid-template-columns: 1fr; gap: 2px; } }
/* long legal titles ("Политика конфиденциальности") must fit a phone screen */
.studio:has(.legal) .phero h1 { font-size: clamp(40px, 8vw, 112px); overflow-wrap: break-word; hyphens: auto; }
