/* ===========================================================
   Марина · ниваки — landing styles
   Палитра: свежая зелень сада, прохладная бумага, вода (teal)
   =========================================================== */

:root {
  --paper:      #eef4f0;
  --paper-2:    #e3ece7;
  --paper-3:    #d6e4dc;
  --ink:        #15231c;
  --ink-soft:   #48584e;
  --ink-faint:  #7c8d83;
  --line:       #cbdbd1;
  --verm:       #1f7a36;
  --verm-deep:  #145e27;
  --moss:       #2f6b3c;
  --moss-soft:  #5f9268;
  --dark:       #122019;

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --r: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id], #top { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 500px at 88% -8%, rgba(31,122,54,.09), transparent 60%),
    radial-gradient(700px 600px at -10% 30%, rgba(20,94,39,.07), transparent 60%),
    linear-gradient(165deg, rgba(31,122,54,.05) 0%, rgba(255,255,255,0) 42%, rgba(20,94,39,.06) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 5vw, 48px); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 700; font-size: 1.02rem;
  text-decoration: none; line-height: 1;
  padding: .95em 1.5em; border-radius: 999px;
  border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  will-change: transform;
}
.btn .ico { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(31,28,22,.5); }
.btn-primary { --bg: var(--verm); --fg: #fff; border-color: var(--verm); }
.btn-primary:hover { background: var(--verm-deep); border-color: var(--verm-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(244,237,224,.5); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* hinomaru mark */
.brand-mark {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--verm); display: inline-block; flex: none;
  box-shadow: 0 0 0 3px rgba(31,122,54,.18);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 58%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 68%, transparent);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 35px; width: auto; flex: none; display: block; }
.brand-text { display: flex; flex-direction: row; align-items: baseline; line-height: 1; font-weight: 800; letter-spacing: .01em; font-size: .98rem; white-space: nowrap; }
.brand-text em { font-style: normal; font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--verm); display: inline-flex; align-items: baseline; }
.brand-text em::before { content: "•"; margin: 0 .5em; color: var(--ink); opacity: .45; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; padding: 4px 0; }
.nav a:not(.nav-call)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--verm);
  transition: width .3s var(--ease);
}
.nav a:not(.nav-call):hover::after { width: 100%; }
.nav-call {
  display: inline-flex; align-items: center; gap: .45em;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: .55em 1em !important; border-radius: 999px;
  white-space: nowrap;
  transition: border-color .2s, color .2s, transform .2s;
}
.nav-call .ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.nav-call:hover { border-color: var(--verm); color: var(--verm); transform: translateY(-1px); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu { display: flex; flex-direction: column; gap: 2px; padding: 8px clamp(18px,5vw,48px) 22px; border-top: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { text-decoration: none; font-weight: 700; font-size: 1.15rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .m-call { color: var(--verm); border-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 6vw, 70px); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1fr .86fr; gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.eyebrow, .sec-eyebrow {
  font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--verm); margin: 0 0 18px;
}
.sec-eyebrow.light { color: #9ed6a3; }

.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.3rem, 5.6vw, 4.7rem); line-height: 1.03; letter-spacing: -.01em;
  margin: 0 0 22px;
}
.accent-word {
  position: relative; font-style: italic; color: var(--verm);
  background-image: linear-gradient(transparent 78%, color-mix(in srgb, var(--verm) 24%, transparent) 0);
  background-repeat: no-repeat;
  padding-inline: .04em;
}
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 34ch; margin: 0 0 28px; }
.hero-lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 16px 0 0; font-size: .92rem; color: var(--ink-faint); }

.hero-photo {
  margin: 0; position: relative;
  width: 108%;
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  border-radius: 49% 51% 48% 52% / 41% 43% 57% 59%;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.2);
  transform-origin: 50% 80%;
}

/* marquee */
.marquee { margin-top: clamp(36px, 6vw, 72px); border-block: 1px solid var(--line); overflow: hidden; padding-block: 10px 16px; }
.marquee-track {
  display: flex; width: max-content; align-items: center;
  animation: marquee 72s linear infinite;
  will-change: transform;
}
.marquee-group {
  display: inline-flex; align-items: center; gap: 22px; flex-shrink: 0; padding-right: 22px;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--moss); white-space: nowrap;
}
.marquee .dot { color: var(--verm); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.sec-head { margin-bottom: clamp(30px, 5vw, 56px); max-width: 760px; }
.sec-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.04; letter-spacing: -.01em; margin: 0;
}
.sec-sub { margin: 18px 0 0; color: var(--ink-soft); font-size: 1.05rem; max-width: 52ch; }

/* ---------- services ---------- */
.services { padding-block: clamp(56px, 9vw, 120px); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.svc { padding: 30px clamp(20px, 3vw, 44px) 34px; border-top: 1px solid var(--line); position: relative; }
.svc:nth-child(odd) { border-right: 1px solid var(--line); }
.svc-num { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--verm); }
.svc h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 6px 0 10px; line-height: 1.1; }
.svc p { margin: 0; color: var(--ink-soft); max-width: 42ch; }

/* ---------- works ---------- */
.works { padding-block: clamp(56px, 9vw, 120px); background: var(--paper-2); position: relative; }
.works::before, .works::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.works::before { top: 0; } .works::after { bottom: 0; }

.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(33px, 4.5vw, 60px); }
.work-wide { grid-column: span 2; }

.work { display: flex; flex-direction: column; }
.ba {
  --pos: 50%;
  position: relative; width: 100%; aspect-ratio: var(--ar, 1); overflow: hidden; border-radius: var(--r);
  background: var(--ink); outline: none; cursor: ew-resize; touch-action: none; user-select: none;
  box-shadow: 0 22px 44px -26px rgba(31,28,22,.6);
}
.ba img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.ba-before { z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-after  { z-index: 1; }
.ba.is-dragging .ba-before,
.ba.is-dragging .ba-after { transition: none; }

.ba-labels {
  position: absolute; z-index: 3; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; pointer-events: none;
}
.ba-label {
  font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; padding: 6px 14px; border-radius: 999px;
  background: rgba(18,32,25,.55); backdrop-filter: blur(6px);
  transition: opacity .25s var(--ease), visibility .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.ba-label.is-active { background: var(--verm); color: #fff; }
.ba.ba-at-before .ba-label-after,
.ba.ba-at-after .ba-label-before { opacity: 0; visibility: hidden; }

.ba-handle {
  position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--pos);
  width: 44px; transform: translateX(-50%); cursor: ew-resize; touch-action: none;
  background: transparent; border: 0; padding: 0; margin: 0;
}
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-handle-grip { outline: 2px solid #fff; outline-offset: 3px; }
.ba-handle-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: rgba(255,255,255,.92); box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 0 12px rgba(0,0,0,.2);
}
.ba-handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.22); display: grid; place-items: center;
}
.ba-handle-grip svg {
  width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

@keyframes ba-grip-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 4px 18px rgba(0,0,0,.22);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.07);
    box-shadow: 0 6px 22px rgba(31,122,54,.3), 0 0 0 6px rgba(31,122,54,.12);
  }
}
.ba.ba-hint .ba-handle-grip { animation: ba-grip-pulse 2.4s ease-in-out infinite; }
.ba.is-dragging .ba-handle-grip { animation: none; }

/* toggle mode (2–3 stages, no curtain) */
.ba-toggle {
  cursor: pointer;
  touch-action: auto;
  user-select: auto;
}
.ba-toggle .ba-stage {
  z-index: 1;
  opacity: 0;
  transition: opacity .55s var(--ease), transform .5s var(--ease), filter .45s var(--ease);
}
.ba-toggle[data-active="before"] .ba-stage[data-stage="before"],
.ba-toggle[data-active="process"] .ba-stage[data-stage="process"],
.ba-toggle[data-active="after"] .ba-stage[data-stage="after"],
.ba-toggle[data-active="plan"] .ba-stage[data-stage="plan"] {
  z-index: 2;
  opacity: 1;
}

@media (hover: hover) {
  .ba-toggle:hover .ba-stage[data-stage] { transform: scale(1.02); filter: brightness(1.04); }
  .ba-toggle[data-active="before"] .ba-stage[data-stage="before"],
  .ba-toggle[data-active="process"] .ba-stage[data-stage="process"],
  .ba-toggle[data-active="after"] .ba-stage[data-stage="after"],
  .ba-toggle[data-active="plan"] .ba-stage[data-stage="plan"] { transform: scale(1.03); }
}

.ba-switch {
  position: absolute; z-index: 3; top: 14px; left: 14px;
  display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px;
  background: rgba(18,32,25,.55); backdrop-filter: blur(6px);
  max-width: calc(100% - 28px);
  flex-wrap: wrap;
}
.ba-opt {
  appearance: none; border: 0; cursor: pointer; background: transparent;
  font-family: inherit; font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.72); padding: 6px 14px; border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.ba-opt:hover { color: #fff; }
.ba-opt.is-active { background: var(--verm); color: #fff; }
.ba-opt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.work-cap { padding: 18px 4px 0; }
.work-cap h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin: 0 0 6px; line-height: 1.05; }
.work-cap h3 .muted { color: var(--ink-faint); font-style: italic; }
.work-cap p { margin: 0; color: var(--ink-soft); max-width: 46ch; }

/* полноширинная карточка: фото в исходных пропорциях, подпись справа */
.work-wide {
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 26px);
}
.work-wide .ba {
  flex: 0 0 auto;
  width: min(64%, calc(74vh * var(--ar)));
  height: auto;
}
.work-wide.work-hero .ba {
  width: min(calc(64% + 100px), calc(74vh * var(--ar) + 100px));
}
.work-wide .work-cap {
  padding: 0;
  flex: 1 1 0;
  min-width: 0;
}

.mid-cta {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 22px 32px;
}
.mid-cta-lead {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.2;
  max-width: 22ch;
}
.mid-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.mid-cta-side { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- reviews ---------- */
.reviews { padding-block: clamp(56px, 9vw, 120px); }
.reviews-grid {
  display: grid; grid-template-columns: .8fr 1.6fr;
  gap: clamp(24px, 4vw, 56px); align-items: start;
}

.avito-card {
  position: sticky; top: 96px;
  background: var(--dark); color: var(--paper);
  border-radius: var(--r);
  padding: clamp(40px, 4.5vw, 60px) clamp(28px, 3.5vw, 42px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 26px 50px -28px rgba(31,28,22,.7);
}
.avito-score {
  font-family: var(--serif); font-weight: 900; line-height: .9;
  font-size: clamp(5.2rem, 9vw, 7.5rem); letter-spacing: -.03em;
}
.stars { display: inline-flex; gap: 4px; color: #52c41a; }
.stars svg { fill: currentColor; }
.stars-big { gap: clamp(5px, .7vw, 9px); margin-top: clamp(20px, 2.4vw, 30px); }
.stars-big svg {
  width: clamp(22px, 2.4vw, 30px); height: clamp(22px, 2.4vw, 30px);
  filter: drop-shadow(0 3px 10px rgba(82,196,26,.45));
}
.stars-small { gap: 2px; vertical-align: -2px; margin-left: 8px; }
.stars-small svg { width: 13px; height: 13px; }
.avito-label {
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid rgba(238,244,240,.16);
  align-self: stretch;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(238,244,240,.6);
}
.avito-label strong { color: #fff; font-weight: 800; }

.review-list { display: flex; flex-direction: column; gap: clamp(20px, 2.5vw, 30px); }
.review {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 3vw, 34px);
}
.review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.review-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; margin: 0; }
.review-meta { font-size: .85rem; color: var(--ink-faint); display: inline-flex; align-items: center; }
.review-text { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.review-quiet { background: transparent; border-style: dashed; }
.review-quiet .review-text { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink); }
.review-source { margin: 12px 0 0; font-size: .9rem; color: var(--ink-faint); }
.review-source a { color: var(--verm); }

.reviews-more { align-self: center; margin-top: 6px; cursor: pointer; }

.review-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rg-item {
  appearance: none; border: 0; padding: 0; cursor: zoom-in;
  width: clamp(76px, 9vw, 104px); aspect-ratio: 1;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 10px 22px -14px rgba(31,28,22,.55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rg-item img { width: 100%; height: 100%; object-fit: cover; }
.rg-item:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 30px -14px rgba(31,28,22,.6); }
.rg-item:focus-visible { outline: 3px solid var(--verm); outline-offset: 2px; }

/* ---------- certs ---------- */
.certs { padding-block: clamp(48px, 7vw, 90px); background: var(--dark); color: var(--paper); }
.certs-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 14px 40px; margin-bottom: clamp(24px, 3.5vw, 40px);
}
.certs .sec-eyebrow { color: #9ed6a3; }
.certs-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 0; max-width: 22ch;
}
.certs-sub { margin: 0; color: rgba(238,244,240,.65); font-size: .98rem; max-width: 34ch; }
.certs-sub strong { color: #fff; }

.certs-wall {
  display: grid; gap: clamp(8px, 1.2vw, 14px);
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}
@media (min-width: 981px) {
  .certs-wall { grid-template-columns: repeat(11, 1fr); }
}
.cert {
  appearance: none; border: 0; padding: 0; cursor: zoom-in;
  aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,.06);
  outline: 1px solid rgba(238,244,240,.14); outline-offset: -1px;
  transition: transform .25s var(--ease), outline-color .25s var(--ease), box-shadow .25s var(--ease);
}
.cert img { width: 100%; height: 100%; object-fit: cover; }
.cert:hover {
  transform: scale(1.06); z-index: 1; position: relative;
  outline-color: #9ed6a3; box-shadow: 0 14px 30px -12px rgba(0,0,0,.65);
}
.cert:focus-visible { outline: 3px solid #9ed6a3; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,18,13,.9); backdrop-filter: blur(6px);
  padding: clamp(14px, 3vw, 40px);
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb-img {
  max-width: min(92vw, 900px); max-height: 78vh;
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.lb-caption { color: rgba(238,244,240,.85); font-size: .95rem; text-align: center; max-width: 60ch; }
.lb-close, .lb-nav {
  appearance: none; border: 0; cursor: pointer;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(238,244,240,.12); color: #fff;
  transition: background .2s;
  flex: none;
}
.lb-close:hover, .lb-nav:hover { background: var(--verm); }
.lb-close { position: absolute; top: 18px; right: 18px; }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: clamp(6px, 2vw, 26px); }
.lb-next { right: clamp(6px, 2vw, 26px); }
body.lb-open { overflow: hidden; }

/* ---------- approach ---------- */
.approach { padding-block: clamp(56px, 9vw, 120px); }
.approach-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.approach-text .sec-eyebrow { color: var(--verm); font-size: .8rem; letter-spacing: .2em; margin: 0 0 18px; }
.approach-text .sec-title { margin-bottom: clamp(18px, 3vw, 28px); }
.approach-text p:not(.sec-eyebrow) { color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 16px; max-width: 50ch; }
.approach-text strong { color: var(--verm); }
.creds { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.creds li {
  font-weight: 600; font-size: .92rem; padding: 9px 15px; border-radius: 999px;
  background: var(--paper-3); border: 1px solid var(--line);
}
.creds a { text-decoration-color: var(--moss-soft); text-underline-offset: 3px; }

.approach-aside { position: sticky; top: 96px; }
.credo {
  margin: 0; background: var(--dark); color: var(--paper);
  border-radius: var(--r); padding: clamp(28px, 4vw, 44px);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25;
  position: relative;
  box-shadow: 0 26px 50px -28px rgba(31,28,22,.7);
}
.credo::before {
  content: "”"; position: absolute; top: 6px; right: 22px;
  font-size: 5rem; color: var(--verm); opacity: .8; line-height: 1;
}
.credo p { margin: 0 0 6px; }
.credo .credo-strong { color: #bfe8c2; }
.credo-by { margin: 14px 6px 0; text-align: right; color: var(--ink-faint); font-size: .9rem; }

/* notes */
.notes { margin-top: clamp(46px, 7vw, 90px); padding-top: clamp(30px, 4vw, 46px); border-top: 1px solid var(--line); }
.notes .sec-head { margin-bottom: clamp(24px, 3vw, 36px); }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.note {
  background: var(--paper); border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: 0 18px 38px -24px rgba(31,122,54,.4);
}
.note-ico {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px;
  border-radius: 12px; background: rgba(31,122,54,.11); color: var(--verm);
}
.note-ico svg { width: 21px; height: 21px; }
.note h4 { font-size: 1.08rem; margin: 0 0 8px; }
.note p { margin: 0; color: var(--ink-soft); }

/* ---------- terms ---------- */
.terms { padding-block: clamp(56px, 9vw, 120px); background: var(--paper-2); border-top: 1px solid var(--line); }
.terms-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: clamp(18px, 2.5vw, 28px); }
.price-card, .geo-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; gap: 8px;
}
.price-label { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.price-val { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; }
.price-val .cur { font-size: .55em; color: var(--ink-faint); }
.price-note { color: var(--ink-soft); font-size: .98rem; }
.price-card-accent { background: rgba(31,122,54,.08); border-color: rgba(31,122,54,.35); }
.price-card-accent .price-label { color: var(--verm); }
.price-card-accent .price-val { color: var(--verm-deep); }
.price-card-accent .price-val .cur { color: rgba(31,122,54,.7); }
.geo-card p { margin: 0; color: var(--ink-soft); }
.geo-card strong { color: var(--ink); }
.geo-extra { font-style: italic; }

/* ---------- contact ---------- */
.contact { background: var(--dark); color: var(--paper); padding-block: clamp(60px, 10vw, 140px); }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .sec-title { color: var(--paper); margin-bottom: clamp(28px, 4vw, 40px); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact-note { margin: 22px 0 0; color: rgba(244,237,224,.6); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { padding-block: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .brand-text { flex-direction: row; align-items: baseline; line-height: 1; font-size: .98rem; }
.footer-brand .brand-text em { font-size: .78rem; }
.footer-brand .brand-text em::before { content: "•"; margin: 0 .5em; color: var(--ink); opacity: .45; }
.footer-muted { margin: 0; font-weight: 500; color: var(--ink-faint); font-size: .9rem; }


/* ---------- responsive ---------- */
@media (min-width: 981px) {
  .hero-title { margin-bottom: 38px; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero { padding-top: clamp(14px, 4vw, 44px); }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(24px, 5.5vw, 42px); }
  .hero-copy { order: 1; }
  .hero-photo {
    order: 0;
    width: 100%; max-width: 560px;
    margin: 0 auto 10px;
    aspect-ratio: 1.6 / 1;
    border-radius: 60% 40% 43% 57% / 58% 62% 38% 42%;
    transform: none;
  }
  .hero-photo img {
    transform: scale(1.12);
    transform-origin: 50% 42%;
    object-position: 50% 42%;
  }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-aside { position: static; }
  .terms-grid { grid-template-columns: 1fr; }
  .price-card-accent { transform: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .avito-card { position: static; max-width: 420px; margin-inline: auto; width: 100%; }
}
@media (max-width: 760px) {
  .brand-text { flex-direction: column; align-items: flex-start; gap: 5px; line-height: 1.05; font-size: .98rem; }
  .brand-text em { font-size: .72rem; }
  .brand-text em::before { content: none; }
  .svc-list { grid-template-columns: 1fr; }
  .svc:nth-child(odd) { border-right: 0; }
  .works-grid { grid-template-columns: 1fr; row-gap: clamp(48px, 10vw, 72px); }
  .work .ba,
  .work-wide .ba,
  .work-wide.work-hero .ba { width: 100%; flex: none; height: auto; }
  .work-wide { grid-column: span 1; flex-direction: column; align-items: stretch; gap: 0; }
  .work-wide .work-cap { padding: 18px 4px 0; }
  .notes-grid { grid-template-columns: 1fr; gap: 22px; }
  .certs-wall { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
}

@media (max-width: 500px) {
  .ba-switch .ba-opt { padding: 6px 10px; font-size: .66rem; letter-spacing: .1em; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .mid-cta { flex-direction: column; align-items: stretch; }
  .mid-cta-side { width: 100%; align-items: stretch; }
  .mid-cta-actions { flex-direction: column; width: 100%; }
  .mid-cta-actions .btn { width: 100%; justify-content: center; }
  .contact-cta { flex-direction: column; align-items: stretch; }
  .contact-cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn:hover { transform: none; }
  .ba img { transition: none; }
  .ba-toggle .ba-stage { transition: none; }
  .ba.ba-hint .ba-handle-grip { animation: none; }
}
