/* ============================================================
   VLADIMIR GARBALÎ — Video editing & photo retouching
   Light, editorial design system. No neon.
   ============================================================ */

:root {
  /* Palette */
  --ink: #1b2740;
  --ink-2: #24324f;
  --ink-3: #5561787a;
  --body: #4c5768;
  --muted: #7b8494;
  --paper: #ffffff;
  --mist: #f7f6f3;
  --mist-2: #efede8;
  --line: #e7e4dd;
  --accent: #a96b3a;
  --accent-2: #c98b4f;
  --accent-soft: #f3e9dd;
  --amber: #d9a15c;

  /* Type */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(27, 39, 64, 0.05), 0 2px 8px rgba(27, 39, 64, 0.05);
  --sh-md: 0 8px 24px rgba(27, 39, 64, 0.08);
  --sh-lg: 0 24px 64px rgba(27, 39, 64, 0.12);

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 860px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease; }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Container ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gutter) * 2, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--mist { background: var(--mist); }
.section--mist-2 { background: var(--mist-2); }
.section--dark { background: var(--ink); color: #cfd6e2; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p.lead { font-size: 1.13rem; color: var(--muted); margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--sh-sm); }
.btn--primary:hover { background: #25314e; transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--sm { padding: 11px 20px; font-size: .88rem; }
.btn .ar { transition: transform .25s ease; }
.btn:hover .ar { transform: translateX(3px); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem;
  color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.arrow-link:hover { border-color: var(--accent); color: var(--accent); }
.arrow-link .ar { transition: transform .25s ease; }
.arrow-link:hover .ar { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(27,39,64,.04), 0 10px 30px rgba(27,39,64,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__mark img, .brand__mark svg { width: 100%; height: 100%; }
.brand__name { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.18rem; line-height: 1.05; letter-spacing: .01em; }
.brand__name span { color: var(--accent); }
.brand__tag { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: .94rem; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__cta { flex: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--mist); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 110px); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 16px; font-size: .82rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--sh-sm);
  margin-bottom: 26px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.hero h1 { margin-bottom: 22px; }
.hero h1 .em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero__sub { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); padding-top: 28px; }
.hero__stat { padding-right: 44px; margin-right: 44px; border-right: 1px solid var(--line); }
.hero__stat:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.hero__stat b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--ink); line-height: 1.1; }
.hero__stat span { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

.hero__visual { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-lg);
  transform: rotate(1.5deg);
}
.hero__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(27,39,64,0) 40%, rgba(27,39,64,0.28)); }
.hero__frame--tilt { position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--accent-2); border-radius: var(--r-l); transform: rotate(-2deg); z-index: -1; }
.float-card {
  position: absolute; background: #fff; border-radius: var(--r-m); padding: 16px 18px;
  box-shadow: var(--sh-md); display: flex; align-items: center; gap: 12px;
  font-size: .85rem; color: var(--body); z-index: 2;
}
.float-card b { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); flex: none; }
.float-card--a { top: 8%; left: -26px; }
.float-card--b { bottom: 7%; right: -20px; }
.float-card--b .ic { background: #eae6f5; color: #5a4d8a; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; padding-block: 26px; }
.trust__label { text-align: center; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 44px; }
.trust__item { font-family: var(--serif); font-size: 1.06rem; color: #9aa1ad; letter-spacing: .02em; white-space: nowrap; transition: color .2s ease; }
.trust__item:hover { color: var(--ink); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 30px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--accent-2); }
.card__num { font-family: var(--serif); font-style: italic; color: var(--accent-2); font-size: 1.05rem; display: block; margin-bottom: 18px; }
.card__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: var(--accent-soft); color: var(--accent); }
.card__ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; font-size: 1.28rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card__list { list-style: none; padding: 0; margin: 16px 0 20px; }
.card__list li { display: flex; gap: 9px; font-size: .92rem; color: var(--body); margin-bottom: 9px; }
.card__list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); margin-top: 9px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process__step { position: relative; padding-top: 30px; }
.process__step::before { content: ""; position: absolute; top: 56px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 1px; background: var(--line); }
.process__step:last-child::before { display: none; }
.process__num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--accent);
  background: var(--accent-soft); border: 1px solid #ecdcc6; margin-bottom: 22px; position: relative; z-index: 1;
}
.process__step h3 { font-size: 1.15rem; }
.process__step p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  background: #fff; border: 1px solid var(--line); color: var(--body);
  padding: 10px 20px; border-radius: var(--r-pill); font-family: var(--sans);
  font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .2s ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.tile { position: relative; border-radius: var(--r-m); overflow: hidden; cursor: pointer; background: var(--mist-2); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.tile:hover img { transform: scale(1.06); }
.tile--tall img { aspect-ratio: 3 / 4; }
.tile__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: linear-gradient(180deg, rgba(27,39,64,0) 45%, rgba(27,39,64,.72));
  opacity: 0; transition: opacity .3s ease;
}
.tile:hover .tile__overlay { opacity: 1; }
.tile__tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.tile__title { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 28, 46, .94); display: grid; place-items: center; padding: 30px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox__inner { max-width: 900px; width: 100%; text-align: center; }
.lightbox img { max-height: 70vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--r-m); box-shadow: var(--sh-lg); }
.lightbox__cap { color: #d9dee8; margin-top: 18px; font-size: .98rem; }
.lightbox__cap b { color: #fff; font-family: var(--serif); font-size: 1.1rem; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; transition: background .2s ease; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.18); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Testimonials ---------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.slide { flex: 0 0 100%; padding: 6px; }
.slide__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
  padding: clamp(28px, 4vw, 48px); max-width: 720px; margin: 0 auto; position: relative;
}
.slide__quote { font-size: clamp(1.1rem, 2vw, 1.35rem); font-family: var(--serif); color: var(--ink); line-height: 1.5; margin-bottom: 26px; }
.slide__quote::before { content: "\201C"; display: block; font-family: var(--serif); font-size: 3.4rem; color: var(--accent-2); line-height: .6; margin-bottom: 16px; }
.slide__who { display: flex; align-items: center; gap: 14px; }
.slide__ava { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; flex: none; }
.slide__who b { display: block; color: var(--ink); font-size: .98rem; }
.slide__who span { font-size: .83rem; color: var(--muted); }
.slider__nav { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.slider__dots { display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: 0; cursor: pointer; padding: 0; transition: background .2s ease, transform .2s ease; }
.dot.active { background: var(--accent-2); transform: scale(1.25); }
.slider__btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: all .2s ease;
}
.slider__btn:hover { border-color: var(--ink); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__img { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-md); }
.about__img img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.about__img .sig {
  position: absolute; bottom: 18px; left: 18px; background: #fff; border-radius: var(--r-m);
  padding: 12px 18px; box-shadow: var(--sh-md); font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink);
}
.check-list { list-style: none; padding: 0; margin: 22px 0 28px; }
.check-list li { display: flex; gap: 12px; margin-bottom: 13px; color: var(--body); }
.check-list .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: .72rem; margin-top: 3px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); border-radius: var(--r-l); color: #cfd6e2; }
.cta__inner { padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { max-width: 60ch; margin: 0 auto 30px; color: #aeb7c8; font-size: 1.05rem; }
.cta .eyebrow { color: var(--amber); justify-content: center; }
.cta .eyebrow::before, .cta .eyebrow::after { content: ""; background: var(--amber); }
.cta .eyebrow::after { width: 26px; height: 1px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cta__ring { position: absolute; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; pointer-events: none; }
.cta__ring--1 { width: 520px; height: 520px; top: -260px; left: -120px; }
.cta__ring--2 { width: 640px; height: 640px; bottom: -340px; right: -180px; }
.cta__glow { position: absolute; width: 380px; height: 380px; background: radial-gradient(circle, rgba(217,161,92,.18), transparent 70%); top: -180px; right: 10%; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; margin-bottom: 12px; overflow: hidden; transition: border-color .2s ease; }
.faq__item.open { border-color: var(--accent-2); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 24px; font-family: var(--serif); font-size: 1.08rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__q .fx { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); font-size: .9rem; transition: transform .3s ease, background .3s ease, color .3s ease; }
.faq__item.open .fx { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq__a p { padding: 0 24px 22px; margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb7c8; padding-top: clamp(56px, 8vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 48px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name span { color: var(--amber); }
.footer-brand p { font-size: .93rem; max-width: 34ch; margin-top: 16px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #aeb7c8; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 13px; font-size: .93rem; }
.footer-contact svg { flex: none; width: 16px; height: 16px; margin-top: 5px; color: var(--amber); }
.footer-contact a { color: #aeb7c8; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-size: .84rem; }
.footer-bottom .policies { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a { color: #8f9ab0; }
.footer-bottom a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; color: #cfd6e2; transition: all .2s ease; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials svg { width: 16px; height: 16px; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 90px); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 60ch; color: var(--muted); font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 8px; opacity: .6; }

/* ---------- Prose (policies) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; padding-top: .6em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose p { color: var(--body); }
.prose ul { margin-bottom: 1.3em; }
.prose .meta { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 22px; font-size: .9rem; color: var(--muted); margin-bottom: 34px; }
.prose .toc { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px 28px; margin-bottom: 34px; }
.prose .toc h4 { margin-bottom: 12px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); }
.prose .toc a { display: block; padding: 5px 0; font-size: .93rem; color: var(--ink-2); }
.prose .toc a:hover { color: var(--accent); }
.backlink { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; margin-bottom: 24px; }
.backlink:hover { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; }
.contact-card h3 { font-size: 1.15rem; }
.contact-card .cc { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-card .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card b { display: block; color: var(--ink); font-size: .92rem; }
.contact-card p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.contact-card a { color: var(--ink-2); }
.contact-card a:hover { color: var(--accent); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-s);
  font-family: var(--sans); font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { padding: 14px 18px; border-radius: var(--r-s); font-size: .92rem; display: none; }
.form-status.ok { display: block; background: #eef6ee; color: #2f5e37; border: 1px solid #d6e8d6; }
.form-status.err { display: block; background: #fdf0ee; color: #8a2f25; border: 1px solid #f2d7d2; }
.form-status.sending { display: block; background: var(--mist); color: var(--muted); border: 1px solid var(--line); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.notfound .nf { font-family: var(--serif); font-size: clamp(5rem, 16vw, 10rem); color: var(--line); line-height: 1; margin-bottom: 6px; }
.notfound h1 { margin-bottom: 12px; }
.notfound p { max-width: 46ch; margin: 0 auto 28px; color: var(--muted); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="delay-1"] { transition-delay: .08s; }
[data-reveal="delay-2"] { transition-delay: .16s; }
[data-reveal="delay-3"] { transition-delay: .24s; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 90; width: min(680px, calc(100% - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--sh-lg); padding: 20px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(16px);
  transition: opacity .35s ease, transform .35s ease;
}
.cookie-banner.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--body); flex: 1 1 300px; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-banner .cb-actions { display: flex; gap: 10px; }
.cookie-banner .cb-btn { padding: 10px 18px; border-radius: var(--r-pill); font-family: var(--sans); font-size: .84rem; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s ease; }
.cookie-banner .cb-btn--accept { background: var(--ink); color: #fff; border-color: var(--ink); }
.cookie-banner .cb-btn:hover { transform: translateY(-1px); }
@media (max-width: 620px) { .cookie-banner { align-items: stretch; text-align: center; } .cookie-banner .cb-actions { justify-content: center; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--ink); box-shadow: var(--sh-md); cursor: pointer; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--ink); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-md); flex-direction: column; align-items: stretch; padding: 18px var(--gutter) 24px; gap: 6px; }
  .nav.open .nav__links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
  .nav.open .nav__links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--mist-2); }
  .nav.open .nav__links a::after { display: none; }
  .nav.open .nav__cta { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 560px; margin: 0 auto; }
  .float-card--a { left: -8px; }
  .float-card--b { right: -8px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 30px; }
  .process__step::before { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__stat { padding-right: 22px; margin-right: 22px; }
  .process { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
