/* Root */
:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --text: #111827;
  --muted: #4B5563;
  --accent: #2F5BEA;
  --accentText: #FFFFFF;
  --plateBg: #111827;
  --plateText: #FFFFFF;
  --line: #D8DEE9;
  --shadow: 0 1px 2px rgb(17 24 39 / .06), 0 12px 32px rgb(17 24 39 / .08);
  --radiusCard: 18px;
  --radiusBtn: 14px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
h1, h2, h3, h4 { font-weight: 750; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::placeholder { color: #3f4a5a; opacity: 1; }

.skipLine {
  position: absolute; left: -9999px; top: 12px;
  background: var(--surface); color: var(--accent);
  padding: 10px 18px; border-radius: var(--radiusBtn); z-index: 60;
}
.skipLine:focus { left: 12px; }

.pageWrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.pageWrap.narrow { max-width: 760px; }

/* Background layer */
.band {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0;
}
.bandTint {
  background-color: #E9EEF7;
}
.bandTint::before, .band:not(.bandHero)::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 240px at 12% 0%, rgb(47 91 234 / .10), transparent 70%),
    radial-gradient(520px 260px at 88% 100%, rgb(17 24 39 / .07), transparent 70%);
  pointer-events: none;
}
.band > .pageWrap { position: relative; }
.band + .bandTint::after, .band:not(.bandHero) + .bandTint::after {
  content: "";
  position: absolute; top: -22px; left: 0; right: 0; height: 44px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}
.bandTint + .band:not(.bandHero)::after {
  background: #E9EEF7;
}

/* Header */
.topBar {
  position: sticky; top: 10px; z-index: 40;
  margin: 10px clamp(10px, 2.5vw, 24px) 0;
  background: rgb(244 246 250 / .92);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.topBar.isScrolled {
  background: var(--surface);
  box-shadow: var(--shadow);
}
.topBarRow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.brandMark {
  font-weight: 750;
  color: var(--text);
  text-decoration: none;
  justify-self: center;
  text-align: center;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.topBarCta { justify-self: end; }

.menuBtn {
  width: 46px; height: 46px;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: none; cursor: pointer;
  border-radius: 10px;
}
.menuBtnLine {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  transition: transform .3s ease;
}
.sideNavClose .menuBtnLine:first-child { transform: translateY(3.5px) rotate(45deg); }
.sideNavClose .menuBtnLine:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Side navigation */
.sideNav {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(320px, 84vw);
  background: var(--surface);
  padding: 20px 24px;
  transform: translateX(-100%);
  transition: transform .35s ease;
  z-index: 55;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.sideNav.isShown { transform: translateX(0); }
.sideNavClose { align-self: flex-end; }
.sideNavList { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 6px; }
.sideLink {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  border-radius: 12px;
  transition: background-color .25s ease, color .25s ease;
}
.sideLink:hover, .sideLink:focus-visible { background: #E9EEF7; color: var(--accent); }
.sideLink[aria-current="page"] { background: var(--plateBg); color: var(--plateText); }
.navVeil {
  position: fixed; inset: 0;
  background: rgb(17 24 39 / .45);
  z-index: 50;
  border: 0;
}
.navVeil:not([hidden]) { display: block; }

/* Buttons */
.btnRect, .btnFill {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  font-family: var(--font);
  font-size: 1rem; font-weight: 600;
  border-radius: var(--radiusBtn);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--text);
  transition: border-radius .25s ease, background-color .2s ease, color .2s ease;
}
.btnRect { background: transparent; color: var(--text); }
.btnFill { background: var(--plateBg); color: var(--plateText); border-color: var(--plateBg); }
.btnRect:hover, .btnFill:hover { border-radius: 24px; }
.btnRect:hover { background: var(--text); color: var(--surface); }
.btnFill:hover { background: #26303f; }
.btnRect:focus-visible, .btnFill:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.btnRect:active { background: #000; border-color: #000; }
.btnFill:active { background: #05070b; border-color: #05070b; }
.topBarCta { padding: 0 20px; min-height: 44px; font-size: 0.95rem; }

/* Hero */
.bandHero { padding-top: clamp(48px, 6vw, 80px); }
.heroInner { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.heroInner h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.heroInner .accentLead { margin-left: auto; margin-right: auto; }
.heroInner .btnFill { margin-top: 8px; }

.accentLead {
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem);
  color: var(--muted);
  max-width: 56ch;
}

.inkPlate {
  background: var(--plateBg);
  color: var(--plateText);
  border-radius: var(--radiusCard);
  padding: clamp(28px, 4vw, 48px);
}
.inkPlate a { color: #A9C0FF; }
.inkPlate h2 { color: var(--plateText); }

/* Hero photo entrance */
.heroPhotoWrap { position: relative; }
.heroPhoto {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radiusCard);
  animation: heroZoom .8s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }

/* Photo plate */
.photoWrap { position: relative; margin: 0; display: grid; }
.photoWrap img {
  grid-area: 1 / 1;
  width: 100%;
  border-radius: var(--radiusCard);
  position: relative;
  z-index: 1;
  transition: opacity .8s ease, transform .6s ease;
}
.photoWrap figcaption {
  grid-area: 2 / 1;
  position: relative;
  margin-top: 20px;
}
.photoWrap figcaption.formHint { color: var(--muted); }
.photoWrap img:not(.heroPhoto) { opacity: 0; transform: translateY(16px); }
.photoWrap.isSeen img:not(.heroPhoto) { opacity: 1; transform: none; }
.photoPlate {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  background: var(--accent);
  border-radius: var(--radiusCard);
  opacity: .28;
  transform: translate(16px, 16px);
  pointer-events: none;
}

/* Reveal */
html:not(.jsOn) .fadeUp { opacity: 1 !important; transform: none !important; }
.jsOn .fadeUp { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.jsOn .fadeUp.isSeen { opacity: 1; transform: none; }

/* Tabs + services */
.serviceLayout {
  display: grid; gap: 32px;
  margin-top: 32px;
}
.serviceLayout .photoWrap { align-self: start; }
.tabList { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabBtn {
  font-family: var(--font); font-size: 0.95rem;
  min-height: 44px; padding: 0 16px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radiusBtn);
  color: var(--muted);
  cursor: pointer;
  transition: border-radius .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tabBtn:hover { border-radius: 22px; border-color: var(--text); color: var(--text); }
.tabBtn:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.tabBtn:active { background: #E9EEF7; }
.tabBtn[aria-selected="true"] { background: var(--plateBg); border-color: var(--plateBg); color: var(--plateText); }
.tabPanel { background: var(--surface); border-radius: var(--radiusCard); padding: 24px 28px; box-shadow: var(--shadow); }

/* Steps */
.stepsLayout {
  display: grid; gap: 32px;
  margin-top: 32px;
  align-items: start;
}
.stepsList { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.stepsList li { counter-increment: step; }
.liftCard {
  background: var(--surface);
  border-radius: var(--radiusCard);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.stepsList li::before {
  content: counter(step, decimal-leading-zero);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  font-weight: 750;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.liftCard:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgb(17 24 39 / .07), 0 18px 44px rgb(17 24 39 / .12); }

/* Prices */
.priceGrid { display: grid; gap: 24px; margin-top: 32px; }
.priceTag {
  font-weight: 750;
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}

/* FAQ */
.qaList { display: grid; gap: 12px; max-width: 760px; margin-top: 32px; }
.qaList details {
  background: var(--surface);
  border-radius: var(--radiusCard);
  padding: 4px 24px;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.qaList details:hover { transform: translateY(-3px); }
.qaList summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style-position: outside;
}
.qaList summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.qaList p { color: var(--muted); margin-top: 0; }

/* Form */
.formPlate { max-width: 720px; margin: 0 auto; }
.formPlate p { color: #D5DAE3; }
.leadForm { display: grid; gap: 18px; margin-top: 24px; }
.formRow { display: grid; gap: 6px; }
.rowLabel { font-weight: 600; font-size: 0.95rem; color: var(--plateText); }
.rowInput {
  font: inherit; color: var(--plateText);
  background: #1d2534;
  border: 2px solid #39435a;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color .2s ease, border-radius .25s ease;
}
.rowInput::placeholder { color: #99a2b5; }
.rowInput:hover { border-radius: 16px; border-color: #57647f; }
.rowInput:focus-visible { outline: 3px solid #A9C0FF; outline-offset: 4px; }
.rowArea { resize: vertical; min-height: 120px; }
.formRow.isError .rowInput, .rowInput[aria-invalid="true"] { border-color: #F19999; }
.rowError { color: #F1B8B8; font-size: 0.9rem; margin: 2px 0 0; }
.checkRow { display: flex; gap: 10px; align-items: flex-start; }
.checkRow input { width: 20px; height: 20px; margin-top: 3px; accent-color: #A9C0FF; }
.checkRow label { font-size: 0.92rem; color: #D5DAE3; max-width: none; }
.checkRow a { color: #A9C0FF; }
.formHint { font-size: 0.9rem; color: #B7BFCF; margin: 4px 0 0; }
.formSubmit {
  background: var(--surface); color: var(--text);
  border-color: var(--surface);
  justify-self: start;
}
.formSubmit:hover { background: #fff; border-radius: 24px; }
.formSubmit:active { background: #D5DAE3; }
.leadForm.isSending .formSubmit { opacity: .55; pointer-events: none; }

/* Prose */
.textFlow { max-width: 760px; }
.textFlow h2 { margin-top: 1.6em; }
.textFlow h3 { margin-top: 1.4em; }
.textFlow ul, .textFlow ol { padding-left: 1.4em; margin: 0 0 1em; }
.textFlow li { margin-bottom: 0.4em; }
.textFlow table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.textFlow th, .textFlow td {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.textFlow th { font-weight: 600; }

/* Page head */
.pageHead { padding-top: clamp(40px, 5vw, 64px); }
.pageHead p { color: var(--muted); font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); }

/* Gallery */
.shotGrid { display: grid; gap: 24px; margin-top: 32px; }

/* Contacts */
.contactGrid { display: grid; gap: 24px; margin-top: 32px; }
.contactCard {
  background: var(--surface);
  border-radius: var(--radiusCard);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}
.contactCard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contactCard span { color: var(--muted); }

/* Confirm & 404 */
.confirmWrap { text-align: center; max-width: 640px; }
.confirmWrap .inkPlate { margin-top: 32px; text-align: left; }

/* Footer */
.pageFoot {
  margin-top: 24px;
  background: var(--plateBg);
  color: var(--plateText);
  border-radius: 24px 24px 0 0;
  padding: clamp(48px, 6vw, 72px) 0 28px;
}
.footGrid { display: grid; gap: 36px; }
.footBrand { color: var(--plateText); font-size: 1.1rem; margin-bottom: 12px; }
.footHead { font-weight: 600; color: var(--plateText); margin-bottom: 12px; }
.pageFoot address { font-style: normal; color: #C3C9D6; }
.pageFoot address p { margin-bottom: 8px; }
.pageFoot ul { list-style: none; margin: 0; padding: 0; }
.footLinks { display: grid; gap: 8px; }
.footLinks a { color: #C3C9D6; text-decoration: none; }
.footLinks a:hover, .footLinks a:focus-visible { color: #A9C0FF; text-decoration: underline; }
.pageFoot a[href^="mailto:"], .pageFoot a[href^="tel:"] { color: #A9C0FF; }
.pageFoot span { color: #8e97a9; }
.footBottom { margin-top: 36px; border-top: 1px solid #2b3242; padding-top: 18px; }
.footCopy { color: #8e97a9; font-size: 0.9rem; }

/* Breakpoints */
@media (max-width: 479px) {
  .topBarCta { padding: 0 14px; font-size: 0.85rem; }
  .tabBtn { flex: 1 1 100%; }
}
@media (min-width: 480px) {
  .priceGrid { grid-template-columns: 1fr 1fr; }
  .priceGrid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 640px) {
  .stepsLayout { grid-template-columns: 1fr 1fr; }
  .serviceLayout { grid-template-columns: 1fr 1fr; align-items: start; }
  .shotGrid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .footGrid { grid-template-columns: 1.4fr 1fr 1fr; }
  .contactGrid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .priceGrid { grid-template-columns: repeat(3, 1fr); }
  .priceGrid > :last-child:nth-child(odd) { grid-column: auto; }
  .stepsLayout { grid-template-columns: 1fr 1fr; gap: 40px; }
  .serviceLayout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; }
  .stepsLayout .photoWrap, .serviceLayout .photoWrap { max-width: 560px; }
}
@media (min-width: 1280px) {
  .band { padding: 128px 0; }
  .heroInner .accentLead { font-size: 1.6rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .jsOn .fadeUp { opacity: 1; transform: none; }
  .photoWrap img:not(.heroPhoto) { opacity: 1; transform: none; }
}

/* Layout guards */
html, body { overflow-x: clip; max-width: 100%; }
.photoWrap { max-width: 100%; }
@media (max-width: 479px) {
  .photoPlate { transform: translate(10px, 10px); }
  .photoWrap figcaption { margin-top: 16px; }
}
