/* ТЗ §1.3 palette + §9 mobile-first breakpoints. No framework, no build step. */
:root {
  --ink: #111111;
  --green: #3f9c35;
  --paper: #ffffff;
  --muted: #6b7280;
  --line: #e5e7eb;
  --radius: 12px;
  --container: 1320px;
  --tabbar-h: 64px;
  /* ТЗ §1.3 allows the system stack or Inter/Manrope; §11.2 rules out the Google Fonts
     CDN. The system stack costs no bytes and no GDPR question — swap in a locally
     hosted family here when the client's branding lands. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden; /* ТЗ §9: no horizontal scroll at any width */
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { line-height: 1.2; margin: 0 0 .5em; }

/* --- header ------------------------------------------------------------ */
.header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
}
.logo {
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  margin-right: auto;
}
.logo span { color: var(--green); }
.logo--footer { margin: 0 0 8px; }

.nav-desktop { display: none; }

/* Four languages as a <details> disclosure — one 44px control instead of four. */
.lang { position: relative; }
/* The summary carries no layout of its own. Giving a <summary> `display: grid` or
   `flex` stops WebKit toggling the disclosure at all — the element stops being treated
   as the details' summary box, so tapping it does nothing while scripted `.click()`
   still works, which is exactly how it hides during testing. ТЗ §12 makes iOS Safari
   mandatory, so the 44px box lives on a span inside instead. */
.lang summary {
  list-style: none;
  cursor: pointer;
}
.lang summary::-webkit-details-marker { display: none; }
.lang__toggle {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.lang details[open] .lang__toggle { background: var(--green); border-color: var(--green); }
.lang__menu {
  position: absolute;
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 160px;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--ink);
  border: 1px solid #333;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.lang__menu button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lang__menu button:hover { background: #2a2a2a; }
.lang__menu button.is-active { color: var(--green); font-weight: 600; }

.header__phone {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
}
.header__phone svg { width: 22px; height: 22px; fill: currentColor; }

/* --- content ----------------------------------------------------------- */
main { max-width: var(--container); margin: 0 auto; }
.section { padding: 32px 16px; }
.muted { color: var(--muted); }

/* Keyboard users reach the page without walking the whole navigation (ТЗ §12). */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 40;
  padding: 12px 16px;
  background: var(--green);
  color: var(--paper);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Heading of a block, with the optional "all → " link on the right (ТЗ §4.1). */
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section__head h2 { margin: 0; }
.section__more { color: var(--green); font-weight: 600; text-decoration: none; white-space: nowrap; }

.page-head { padding: 24px 16px 8px; }
.page-head h1 { font-size: clamp(1.5rem, 5vw, 2.25rem); margin-bottom: 8px; }
.page-head__lead { color: var(--muted); max-width: 60ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

.contact-list { display: grid; gap: 4px 16px; margin: 0 0 24px; }
.contact-list dt { color: var(--muted); font-size: 14px; }
.contact-list dd { margin: 0 0 12px; font-weight: 600; }

/* The photo sits behind the copy at z-index -2 and the scrim at -1. `isolation`
   keeps both inside the hero's own stacking context instead of the page's. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: 60vh;
  /* `svh`, not `dvh`. `dvh` tracks the mobile URL bar, so it changes on every scroll
     that collapses or restores it — the hero would resize mid-scroll and reflow the
     whole page under it. `svh` is the same viewport measurement without the movement. */
  min-height: 60svh;
  padding: 64px 16px 40px;
  background: var(--ink);
  color: var(--paper);
}
/* Taller than the box it sits in, so the parallax below has somewhere to travel and
   never pulls an edge into frame: the overscan here (15%) has to stay larger than the
   furthest the keyframes move it (10% of a box that is 1.3x the hero = 13%).
   `.hero` clips the rest. */
.hero__media { position: absolute; inset: -15% 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Two layers, not one: the vertical fade seats the copy at the bottom, the horizontal
   one keeps the right of the frame open so the photo still reads as a workshop. Many
   close stops rather than three far apart — a long ramp over near-black bands badly. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  --scrim-vertical: linear-gradient(180deg,
      rgba(17, 17, 17, .55) 0%,
      rgba(17, 17, 17, .34) 18%,
      rgba(17, 17, 17, .28) 38%,
      rgba(17, 17, 17, .50) 62%,
      rgba(17, 17, 17, .76) 82%,
      rgba(17, 17, 17, .90) 100%);
  background: var(--scrim-vertical);
}

/* The horizontal fade is a composition device for a wide frame, where the copy sits in
   the left third. In a 375px column the text runs the full width, so it would only
   lighten the ends of its own lines. */
@media (min-width: 768px) {
  .hero::after {
    background:
      var(--scrim-vertical),
      linear-gradient(94deg,
        rgba(17, 17, 17, .82) 0%,
        rgba(17, 17, 17, .62) 26%,
        rgba(17, 17, 17, .34) 55%,
        rgba(17, 17, 17, .12) 78%,
        rgba(17, 17, 17, 0) 100%);
  }
}
.hero h1, .hero__title { font-size: clamp(1.75rem, 6vw, 3rem); max-width: 18ch; }
.hero p, .hero__lead { color: #d1d5db; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { margin-top: 16px; }

.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 24px;
  min-height: 44px; /* ТЗ §9: touch targets ≥ 44px */
  border-radius: var(--radius);
  background: var(--green);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--block { display: block; text-align: center; }

/* --- cards, tiles and chips (ТЗ §4.1–4.4) ------------------------------- */
.grid { display: grid; gap: 16px; }

.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  overflow: hidden;
  text-decoration: none;
}
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__price {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  font-weight: 700;
}
.card__body { padding: 12px 16px 16px; }
.card__title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.card__meta { margin: 0; color: var(--muted); font-size: 14px; }

.tile {
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 20px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}
.tile img, .tile svg { width: 32px; height: 32px; color: var(--green); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.chip {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.chip.is-active { background: var(--green); border-color: var(--green); color: var(--paper); }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--line);
  font-size: 13px;
  font-weight: 600;
}
.badge--green { background: var(--green); color: var(--paper); }

/* --- forms (ТЗ §5.3, §9) ------------------------------------------------ */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  min-height: 44px; /* ТЗ §9: touch targets */
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: inherit;
  font: inherit;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field--error input, .field--error select, .field--error textarea { border-color: #b91c1c; }
.field__error { color: #b91c1c; font-size: 14px; }
.field__hint { color: var(--muted); font-size: 14px; }

.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 10px; }

.counters { display: grid; gap: 16px; text-align: center; list-style: none; margin: 0; padding: 0; }
.counters li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  display: grid;
  gap: 4px;
  color: var(--muted);
}
/* Tabular figures: the count-up must not shuffle the layout as digits change. */
.counters strong { font-size: 2rem; color: var(--green); font-variant-numeric: tabular-nums; }

/* --- footer ------------------------------------------------------------ */
.footer { background: var(--ink); color: #d1d5db; padding: 32px 16px; }
.footer__grid { display: grid; gap: 20px; max-width: var(--container); margin: 0 auto; }
.footer p { margin: 0 0 4px; }
.footer__nav { display: grid; gap: 8px; align-content: start; }
.footer__nav a { padding: 4px 0; }
.footer__social { display: flex; gap: 16px; margin-top: 12px; }
.footer__legal { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* --- mobile tab bar (ТЗ §3.1) — the only navigation below 1024px -------- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* Translucent so content passing underneath reads as depth rather than as a seam.
     The solid fallback below matters: without backdrop-filter this would be a
     see-through bar with text running through it. */
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); /* iPhone home indicator */
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar { background: var(--paper); }
}

.tabbar a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent; /* the pill below is the feedback */
  transition: color .2s ease-out;
}

/* Five Finnish labels have to share 375px, and "Yhteystiedot" is twelve characters.
   Scaling with the viewport keeps them on one line at 360px without shrinking the
   label to nothing on a big phone. */
.tabbar__label {
  font-size: clamp(9.5px, 2.7vw, 11px);
  line-height: 1.1;
  letter-spacing: -.01em;
  transition: font-weight .2s ease-out;
}

/* The active indicator, and the thing that scales on press. */
.tabbar__icon {
  display: grid;
  place-items: center;
  width: 56px;
  max-width: 100%;
  height: 30px;
  border-radius: 999px;
  transition: background-color .25s ease-out, transform .25s cubic-bezier(.34, 1.4, .64, 1);
}

.tabbar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  /* Lucide is drawn for stroke-width 2; the active tab gets the full weight and the
     rest sit slightly lighter, so selection reads even in a screenshot without colour. */
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-width .2s ease-out;
}

.tabbar a.is-active { color: var(--green); }
.tabbar a.is-active .tabbar__icon { background: rgba(63, 156, 53, .14); }
.tabbar a.is-active .tabbar__label { font-weight: 600; }
.tabbar a.is-active svg { stroke-width: 2; }

/* Transform, not size or margin: the label must not move when the icon is pressed. */
.tabbar a:active .tabbar__icon { transform: scale(.88); }

/* --- ≥768px: tablets --------------------------------------------------- */
@media (min-width: 768px) {
  .counters { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact-list { grid-template-columns: max-content 1fr; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .checklist { grid-template-columns: repeat(2, 1fr); }
}

/* --- ≥1024px: desktop nav replaces burger + tab bar --------------------- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .nav-desktop { display: flex; gap: 20px; margin: 0 auto; }
  .nav-desktop a { text-decoration: none; padding: 8px 0; }
  .nav-desktop a:hover, .nav-desktop a.is-active { color: var(--green); }
  .header { padding: 16px 32px; }
  .section, .hero, .page-head { padding-inline: 32px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- ≥1440px: ТЗ §9 asks for four catalogue columns on large screens ---- */
@media (min-width: 1440px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ======================================================================== */
/* Landing page (ТЗ §4.1) and the motion layer.                             */
/* Transform and opacity only — nothing here can trigger a reflow.          */
/* ======================================================================== */

/* --- car rail: scroll-snap below 768px, `.grid` columns above ----------- */
.rail { list-style: none; margin: 0; padding: 0; }

@media (max-width: 767px) {
  .rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Bleed to the screen edge so a half-visible next card hints at the scroll. */
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail__item { flex: 0 0 78%; scroll-snap-align: start; }
}

.rail__dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.rail__dots[hidden] { display: none; } /* `display:flex` would otherwise beat [hidden] */
.rail__dot {
  width: 44px; /* ТЗ §9 touch target, around an 8px dot */
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.rail__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color .2s ease-out, transform .2s ease-out;
}
.rail__dot.is-active::before { background: var(--green); transform: scale(1.5); }
@media (min-width: 768px) { .rail__dots { display: none; } }

/* --- service tiles ------------------------------------------------------ */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.services .tile { height: 100%; align-content: start; }
/* The inline SVGs carry no fill/stroke of their own — the tab bar sets its own,
   so a tile has to say the same thing or the paths render as black blobs. */
.tile svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease-out;
}
.tile__title { font-size: 1rem; }
/* ТЗ §4.1: icon tiles on mobile, cards with a description from 768px up.
   The full text lives on /services/ either way. */
.tile__text { display: none; font-weight: 400; font-size: 14px; color: var(--muted); }

@media (min-width: 768px) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tile { place-items: start; text-align: left; padding: 24px; }
  .tile__text { display: block; }
}

/* --- buy-out banner ----------------------------------------------------- */
.buyout {
  padding: 40px 16px;
  color: var(--paper);
  background: radial-gradient(120% 140% at 100% 0%, rgba(63, 156, 53, .32), transparent 62%), var(--ink);
}
.buyout h2 { font-size: clamp(1.35rem, 4.5vw, 2rem); max-width: 20ch; }
.buyout p { color: #d1d5db; max-width: 48ch; margin: 0; }

/* --- about block -------------------------------------------------------- */
.about { display: grid; gap: 20px; }
.about__media img { width: 100%; border-radius: var(--radius); }
.about p { max-width: 62ch; }

@media (min-width: 768px) {
  .about { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
}
@media (min-width: 1024px) {
  .buyout { padding: 56px 32px; }
  .hero { min-height: 68vh; padding: 96px 32px 72px; }
}

/* --- interaction states ------------------------------------------------- */
.btn {
  cursor: pointer;
  transition: transform .18s ease-out, box-shadow .18s ease-out, background-color .18s ease-out;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(63, 156, 53, .3); }
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .55);
  color: var(--paper);
}
.btn--outline:hover, .btn--ghost:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: var(--paper); }

.card { transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out; }
/* focus-within so the lift is reachable by keyboard, not only by mouse. */
.card:hover, .card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .13);
  border-color: #d6dbe2;
}
.card__media { overflow: hidden; }
.card__media img { transition: transform .35s ease-out; }
.card:hover .card__media img, .card:focus-within .card__media img { transform: scale(1.04); }

.tile { transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out; }
.tile:hover, .tile:focus-within {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .09);
}
.tile:hover svg { transform: scale(1.1); }

/* --- hero entrance ------------------------------------------------------ */
/* `backwards` holds the from-state during the delay, so nothing flashes first. */
.hero__title, .hero__lead, .hero__actions {
  animation: rise .6s cubic-bezier(.16, 1, .3, 1) backwards;
}
.hero__title { animation-delay: .05s; }
.hero__lead { animation-delay: .15s; }
.hero__actions { animation-delay: .25s; }
/* An ambient drift, so it wants a near-constant rate — `ease-out` front-loads the
   movement and then visibly stalls. No `will-change` here: this runs once and the
   browser promotes a transform animation on its own, then releases the layer. */
.hero__media img { animation: hero-settle 24s cubic-bezier(.33, .18, .5, .86) forwards; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes hero-settle { from { transform: scale(1.045); } to { transform: scale(1); } }

/* --- hero parallax ------------------------------------------------------ */
/* The photo leaves at roughly 90% of the page's speed, so the hero slides out from
   under the content rather than away with it. Deliberately small: this is depth, not
   an effect, and a big differential on a full-bleed image is what makes parallax
   read as seasickness.
   Driven by the scroll position itself rather than a scroll listener: no JS, no
   main-thread work per frame, and nothing to throttle. Browsers without
   `animation-timeline` simply get the static hero — which is why this is additive
   rather than a rewrite. The scale lives on the img and the travel on its wrapper,
   because two animations on the same `transform` would overwrite each other. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The timeline is named on `.hero`, not taken with `view()` on the image.
       `.hero` is `overflow: hidden`, which makes it a scroll container, so a
       timeline resolved from inside it measures the child against a box that never
       scrolls and sits at 50% forever. Naming it on the hero measures the hero
       against the page, which is the movement we actually want to follow. */
    .hero { view-timeline-name: --hero; }

    .hero__media {
      will-change: transform;
      animation: hero-parallax linear both;
      animation-timeline: --hero;
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes hero-parallax {
  from { transform: translateY(-10%); }
  to { transform: translateY(10%); }
}

/* --- scroll reveal ------------------------------------------------------ */
/* Scoped to `.js`: without JavaScript nothing ever adds `.is-visible`, and an
   invisible page is a worse failure than an unanimated one. The class is set by
   an inline one-liner in the head, before first paint. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* One movement for the block, then a staggered fade for its items — the items
   do not travel as well, or the two motions read as a wobble. */
.js .reveal :is(.rail__item, .services li, .checklist li, .counters li) {
  opacity: 0;
  transition: opacity .5s ease-out calc(var(--i, 0) * 70ms);
}
.js .reveal.is-visible :is(.rail__item, .services li, .checklist li, .counters li) { opacity: 1; }

/* ======================================================================== */
/* Services (ТЗ §4.4)                                                       */
/* ======================================================================== */

.service-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.service-card {
  display: grid;
  gap: 8px;
  align-content: start;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  text-decoration: none;
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
.service-card:hover, .service-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .09);
}
.service-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(63, 156, 53, .1); }
.service-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card__title { margin: 4px 0 0; font-size: 1.05rem; }
.service-card__text { margin: 0; color: var(--muted); font-size: 14px; }
.service-card__price { color: var(--green); font-weight: 700; }

/* --- one service ------------------------------------------------------- */
.service { display: grid; gap: 24px; }
.service__banner img { width: 100%; border-radius: var(--radius); }
.service__lead { font-size: 1.05rem; }
.service__text { color: var(--ink); }
.service__body p { max-width: 65ch; }
.service__body h2 { margin-top: 28px; font-size: 1.25rem; }

.service__aside {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.service__price { display: grid; gap: 2px; }
.service__price-label { color: var(--muted); font-size: 14px; }
.service__price strong { font-size: 1.5rem; color: var(--green); font-variant-numeric: tabular-nums; }
.service__aside .btn { margin-top: 0; }

/* A quiet block that is not the dark buy-out banner — this one is an aside, not a
   second competing call to action. */
.callout {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  background: #f8faf8;
}
.callout h2 { margin: 0; font-size: 1.15rem; }
.callout p { margin: 0; color: var(--muted); max-width: 55ch; }

@media (min-width: 768px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  /* The price and the CTAs stay beside the description rather than below the fold. */
  .service {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    column-gap: 32px;
  }
  .service__banner { grid-column: 1 / -1; }
  .service__aside { position: sticky; top: 16px; }
}

@media (min-width: 1024px) {
  .service-cards { grid-template-columns: repeat(3, 1fr); }
}

/* --- ТЗ §12 / WCAG 2.3.3: motion is optional --------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .reveal :is(.rail__item, .services li, .checklist li, .counters li) {
    opacity: 1;
    transform: none;
  }
  .btn:hover, .card:hover, .card:focus-within, .tile:hover, .tile:focus-within { transform: none; }
  .tabbar a:active .tabbar__icon { transform: none; }
  .service-card:hover, .service-card:focus-within { transform: none; }
}
