/* ===========================================================================
   Green Solutions — премиальный информативный сайт
   Light editorial ground, framed photography, a section index for chrome.
   Tokens only, plus this page's own markup. The engine is never restyled.
   ========================================================================= */

:root {
  /* LIGHT GROUND, deliberately COOL and faintly green rather than cream:
     warm cream with a brass accent is the default every artisan brief reaches
     for, and taste.md bans it by name.

     The accent is the brand's own. The wordmark in green-solutions-logo.png is
     amber, but #F2A20C measures 1.87:1 on this ground and cannot carry text or
     a control, so it is darkened to an ochre of the same hue at 4.51:1. */
  --sc-canvas:     #EFF2EC;
  --sc-surface:    #E3E8DE;
  --sc-ink:        #141A15;
  --sc-ink-soft:   #4E5A4B;   /* tinted off the canvas hue, never flat gray */
  --sc-accent:     #9A6205;
  --sc-accent-ink: #FFFDF7;

  --sc-font-display: "Literata", Georgia, serif;
  --sc-font-text:    "Golos Text", system-ui, sans-serif;

  /* Depth is re-tuned for paper, not inherited: the stock alphas are built for
     a near-black page and read as soot here. Roughly halved, re-tinted toward
     the canvas hue, and the edge highlight inverted from ink to white. */
  --sc-shadow-color: 120 18% 22%;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.10),
           0 2px 6px -1px hsl(var(--sc-shadow-color) / 0.08);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow-color) / 0.10),
           0 8px 18px -4px hsl(var(--sc-shadow-color) / 0.13);
  --sc-e3: 0 4px 8px hsl(var(--sc-shadow-color) / 0.10),
           0 18px 40px -8px hsl(var(--sc-shadow-color) / 0.16),
           0 48px 90px -24px hsl(var(--sc-shadow-color) / 0.12);
  --sc-edge: inset 0 1px 0 rgb(255 255 255 / 0.85);

  --sc-r-sm: 3px; --sc-r-md: 5px; --sc-r-lg: 7px;

  --gs-gut: clamp(1.1rem, 4vw, 3.2rem);
  --gs-bar: 4.5rem;          /* fixed top bar height */
  --gs-maxw: 80rem;
}

/* Grain keeps a flat ground from banding. On paper it wants to be much lighter
   than on a dark page, or it reads as dirt. */
.sc-grain { opacity: 0.022; }

/* ---------------------------------------------------------- typography -- */
.gs-h {
  font-family: var(--sc-font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0;
  font-size: var(--sc-t-2xl);
}
/* its own clamp, not a ramp step: the hero sits in a fixed-width column and
   has to stay inside it at every viewport */
.gs-h--hero {
  font-size: clamp(2.3rem, 1.5rem + 2.5vw, 3.7rem);
  letter-spacing: -0.026em;
  line-height: 1.0;
}
.gs-h--doc { max-width: 22ch; }
.gs-p {
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-base);
  line-height: 1.55;
  letter-spacing: -0.006em;
  max-width: 58ch;
  text-wrap: pretty;
  margin: var(--sc-4) 0 0;
  color: var(--sc-ink);
}
.gs-p--soft { color: var(--sc-ink-soft); }
.gs-p--lede { font-size: var(--sc-t-lg); line-height: 1.45; max-width: 52ch; }
.gs-cap {
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sc-ink-soft);
  margin: 0 0 var(--sc-3);
}

/* ------------------------------------------------------------ skip link -- */
.gs-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  padding: var(--sc-3) var(--sc-4); border-radius: var(--sc-r-sm);
  font: 600 1rem/1 var(--sc-font-text);
}
.gs-skip:focus-visible { left: var(--sc-4); top: var(--sc-4); }

/* ================================================================= bar ==
   A fixed top bar. It carries the wordmark, the section links, the phone
   number and, on a phone, a real disclosure menu. Six links do not fit a
   390px bar, and a horizontally scrolling strip hides whatever sits past the
   right edge, which is the same as not having those links at all. */
body { padding-top: var(--gs-bar); }

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  background: color-mix(in oklab, var(--sc-canvas) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--sc-d-base) var(--sc-ease-out),
              background var(--sc-d-base) var(--sc-ease-out);
}
/* the bar only asserts an edge once there is something behind it */
.bar.is-stuck {
  border-bottom-color: var(--sc-hairline);
  background: color-mix(in oklab, var(--sc-canvas) 94%, transparent);
}
.bar__in {
  height: var(--gs-bar);
  max-width: var(--gs-maxw);
  margin-inline: auto;
  padding-inline: var(--gs-gut);
  display: flex; align-items: center; gap: var(--sc-6);
}
.bar__mark {
  display: flex; align-items: center; gap: var(--sc-2);
  text-decoration: none; flex: 0 0 auto;
}
.bar__mark img { width: 26px; height: 26px; }
.bar__mark b {
  font: 600 0.92rem/1 var(--sc-font-text);
  letter-spacing: -0.005em; color: var(--sc-ink); white-space: nowrap;
}

.bar__nav { display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.6rem); margin-left: auto; }
.bar__nav a {
  font: 500 0.82rem/1 var(--sc-font-text);
  letter-spacing: -0.003em;
  color: #414C3F;
  text-decoration: none;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color var(--sc-d-fast) var(--sc-ease-out),
              border-color var(--sc-d-fast) var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bar__nav a:hover { color: var(--sc-ink); border-bottom-color: var(--sc-hairline-strong); }
}
.bar__nav a[aria-current="true"] { color: var(--sc-accent); border-bottom-color: var(--sc-accent); }
.bar__nav a:focus-visible,
.bar__tel:focus-visible,
.bar__burger:focus-visible,
.bar__mark:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: var(--sc-r-sm); }

.bar__act { display: flex; align-items: center; gap: var(--sc-4); flex: 0 0 auto; }
.bar__tel {
  font: 600 0.86rem/1 var(--sc-font-text);
  color: var(--sc-ink);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center;
  min-height: 28px; padding-inline: 2px;   /* a pointer target, not just text */
}
@media (hover: hover) and (pointer: fine) {
  .bar__tel:hover { text-decoration: underline; text-decoration-color: var(--sc-accent); text-underline-offset: 0.3em; }
}

.bar__burger {
  display: none;
  align-items: center; gap: var(--sc-2);
  min-height: 44px; padding: 0 0.6rem;
  background: none; border: 0; cursor: pointer;
  font: 600 0.82rem/1 var(--sc-font-text);
  color: var(--sc-ink);
}
.bar__burger-i {
  position: relative; display: block; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: background 120ms linear;
}
.bar__burger-i::before, .bar__burger-i::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--sc-d-base) var(--sc-ease-out);
}
.bar__burger-i::before { top: -6px; }
.bar__burger-i::after  { top: 6px; }
.bar__burger[aria-expanded="true"] .bar__burger-i { background: transparent; }
.bar__burger[aria-expanded="true"] .bar__burger-i::before { transform: translateY(6px) rotate(45deg); }
.bar__burger[aria-expanded="true"] .bar__burger-i::after  { transform: translateY(-6px) rotate(-45deg); }

.bar__menu {
  border-top: 1px solid var(--sc-hairline);
  background: color-mix(in oklab, var(--sc-canvas) 97%, transparent);
  padding: var(--sc-4) var(--gs-gut) var(--sc-6);
  box-shadow: var(--sc-e2);
}
.bar__menu[hidden] { display: none; }
.bar__menu nav { display: grid; }
.bar__menu a {
  font: 500 1rem/1 var(--sc-font-text);
  color: var(--sc-ink);
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--sc-hairline);
}
.bar__menu a[aria-current="true"] { color: var(--sc-accent); }
.bar__menu-tel {
  display: inline-block; margin-top: var(--sc-4);
  font-weight: 600; border: 0 !important;
  font-variant-numeric: tabular-nums;
}

/* a fixed bar hides whatever an anchor lands on unless the target says so */
:where(section[id]) { scroll-margin-top: calc(var(--gs-bar) + 1rem); }

/* =================================================================== hero ==
   Three photographic planes travelling at three rates inside one framed
   plate. A flat photograph with a headline under it is what makes a marketing
   hero look ordinary; the separation is the point, so the planes are
   overscanned and only the near one moves enough to notice. */
/* Two columns: the claim and the action on the left, the photograph on the
   right. Stacking them put a 7.5rem display headline under a 56svh plate and
   the hero overflowed the viewport, which taste.md rules out outright: a hero
   is at most two or three lines with the CTA visible without scrolling. */
.hero {
  display: grid;
  grid-template-columns: minmax(21rem, 33rem) minmax(0, 1fr);
  gap: clamp(1.6rem, 3.4vw, 3.6rem);
  align-items: start;
  max-width: var(--gs-maxw);
  margin-inline: auto;
  padding: clamp(1.4rem, 4vh, 3rem) var(--gs-gut) 0;
}
.hero__plate { position: relative; }
.hero__scene {
  position: relative;
  height: clamp(22rem, 64svh, 44rem);
  overflow: hidden;
  border-radius: var(--sc-r-md);
  box-shadow: var(--sc-e3);
  outline: 1px solid var(--sc-hairline);
  outline-offset: -1px;
  background: var(--sc-surface);
}
.hero__pl {
  position: absolute;
  /* overscan, so a travelling plane never exposes the plate's edge */
  inset: -9% -4%;
  width: 108%; height: 118%;
  object-fit: cover;
  will-change: transform;
}
.hero__pl--far  { object-position: 50% 42%; }
.hero__pl--mid  { object-position: 50% 50%; }
.hero__pl--near { object-position: 50% 0%; }

.hero__say { margin: 0; }
.hero__say .cta-row { margin-top: var(--sc-6); }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--sc-4) var(--sc-8);
  margin: var(--sc-7) 0 0;
  padding-top: var(--sc-5);
  border-top: 1px solid var(--sc-hairline);
}
.hero__facts dt {
  font: 500 0.72rem/1.3 var(--sc-font-text);
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--sc-ink-soft);
  margin-bottom: 3px;
}
.hero__facts dd { margin: 0; font-size: 0.95rem; color: var(--sc-ink); max-width: 30ch; }

/* ============================================================== sections == */
.doc__sec { padding-block: var(--sc-section); }
.doc__sec--rule { border-top: 1px solid var(--sc-hairline); }
.doc__wrap {
  width: 100%;
  max-width: var(--gs-maxw);
  margin-inline: auto;
  padding-inline: var(--gs-gut);
}
.doc__sub { margin-top: var(--sc-4); margin-bottom: var(--sc-7); max-width: 62ch; }

/* ------------------------------------------------------------- ledger --- */
.ledger { margin: var(--sc-7) 0 0; }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
  gap: var(--sc-4) var(--sc-7);
  padding-block: var(--sc-5);
  border-top: 1px solid var(--sc-hairline);
  align-items: start;
}
.ledger__row:last-child { border-bottom: 1px solid var(--sc-hairline); }
.ledger dt {
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-lg);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--sc-ink);
}
.ledger dd { margin: 0; color: var(--sc-ink-soft); max-width: 56ch; text-wrap: pretty; }
.ledger--tight .ledger__row { padding-block: var(--sc-4); }
.ledger--media .ledger__row {
  grid-template-columns: 10.5rem minmax(10rem, 15rem) minmax(20ch, 1fr);
  gap: var(--sc-4) var(--sc-5);
}
.ledger--media img {
  width: 100%; height: 7rem;
  object-fit: cover;
  border-radius: var(--sc-r-md);
  box-shadow: var(--sc-e1);
}

/* --------------------------------------------------------------- signs --- */
.signs {
  margin-top: var(--sc-7);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sc-7) var(--sc-6);
}
.sign { margin: 0; }
.sign img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--sc-r-md);
  box-shadow: var(--sc-e2);
  outline: 1px solid var(--sc-hairline);
  outline-offset: -1px;
}
.sign figcaption { margin-top: var(--sc-4); }
.sign b {
  display: block;
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-lg);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.16;
  color: var(--sc-ink);
}
.sign span {
  display: block; margin-top: var(--sc-2);
  color: var(--sc-ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------- steps --- */
/* Numbered because here the sequence IS the information. */
.work {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: var(--sc-9);
  align-items: start;
  margin-top: var(--sc-7);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sc-5); }
.steps__i {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: var(--sc-2) var(--sc-4);
  align-items: baseline;
  padding-top: var(--sc-4);
  border-top: 1px solid var(--sc-hairline);
}
.steps__n {
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-lg);
  color: var(--sc-accent);
  font-variant-numeric: tabular-nums;
}
.steps__h {
  margin: 0;
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-lg);
  font-weight: 600;
  letter-spacing: -0.012em;
}
.steps__i .gs-p { grid-column: 2; margin-top: var(--sc-1); max-width: 48ch; }

.work__shot { margin: 0; }
.work__shot img {
  width: 100%; height: auto;
  border-radius: var(--sc-r-md);
  box-shadow: var(--sc-e2);
  outline: 1px solid var(--sc-hairline);
  outline-offset: -1px;
}
.work__shot figcaption {
  margin-top: var(--sc-3);
  font-size: 0.86rem;
  color: var(--sc-ink-soft);
}

/* --------------------------------------------------------------- close --- */
.doc__sec--close { border-top: 1px solid var(--sc-hairline); padding-bottom: var(--sc-10); }
.close {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--sc-9);
  align-items: start;
}
.close__say .cta-row { margin-top: var(--sc-6); }

.facts { margin: var(--sc-2) 0 0; }
.facts__row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  gap: var(--sc-4);
  padding-block: var(--sc-4);
  border-top: 1px solid var(--sc-hairline);
}
.facts__row:last-child { border-bottom: 1px solid var(--sc-hairline); }
.facts dt {
  font: 500 0.8rem/1.3 var(--sc-font-text);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sc-ink-soft);
  padding-top: 2px;
}
.facts dd { margin: 0; color: var(--sc-ink); }
.facts dd b {
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-xl);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: block;
}
.facts dd span { display: block; margin-top: 2px; color: var(--sc-ink-soft); font-size: 0.9rem; }
.facts dd a { color: var(--sc-ink); text-decoration-color: var(--sc-accent); }

.gs-credit {
  margin: var(--sc-5) 0 0;
  max-width: 48ch;
  font: 400 0.78rem/1.5 var(--sc-font-text);
  color: var(--sc-ink-soft);
}

/* ================================================================== CTA ===
   A solid ink button on paper. The previous control was a brushed-aluminium
   tag, which was a prop from the removed narrative: once the story went, it
   was a gradient for its own sake, and a gradient standing in for an object is
   the first thing to date on a page. Ink rather than the ochre accent, because
   the accent is already carrying current-state and the step numerals, and one
   accent should own one role. */
.cta-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sc-4) var(--sc-5);
  margin-top: var(--sc-6);
}
.cta {
  display: inline-flex; align-items: center; gap: var(--sc-3);
  padding: 0.95rem var(--sc-5);
  min-height: 48px;
  background: var(--sc-ink);
  color: #F6F8F3;
  text-decoration: none;
  border-radius: var(--sc-r-md);
  font: 600 var(--sc-t-base)/1 var(--sc-font-text);
  letter-spacing: -0.004em;
  box-shadow: var(--sc-e1);
  transition: background var(--sc-d-fast) var(--sc-ease-out),
              transform var(--sc-d-fast) var(--sc-ease-out),
              box-shadow var(--sc-d-fast) var(--sc-ease-out);
}
.cta__arrow { flex: 0 0 auto; transition: transform var(--sc-d-base) var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: #20291F; box-shadow: var(--sc-e2); }
  .cta:hover .cta__arrow { transform: translateX(3px); }
}
.cta:active { transform: translateY(1px); box-shadow: var(--sc-e1); }
.cta:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }

/* the secondary action is a peer, not a second primary */
.cta--ghost {
  background: transparent;
  color: var(--sc-ink);
  box-shadow: none;
  /* the border is the ONLY thing identifying this control, so it has to clear
     3:1 against the ground (WCAG 1.4.11). The stock hairline-strong is ink at
     22%, which measures 1.59:1 and is a decorative rule, not a boundary. */
  border: 1px solid color-mix(in oklab, var(--sc-ink) 55%, transparent);
  font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
  .cta--ghost:hover { background: color-mix(in oklab, var(--sc-ink) 5%, transparent); border-color: var(--sc-ink); }
}

.cta__note {
  margin: 0;
  max-width: 24ch;
  font: 400 0.82rem/1.45 var(--sc-font-text);
  color: var(--sc-ink-soft);
}

/* ================================================================ mobile ==
   Art-directed, not shrunk: the index becomes a bottom strip, the hero plate
   shortens and loses its left inset, and every grid collapses to one column.
   --sc-t-4xl floors at 3.4rem, which is a DESKTOP floor and wraps a Russian
   hero headline to six lines at 390px, so the hero steps down. */
@media (max-width: 900px) {
  :root { --gs-bar: 3.9rem; }
  .bar__nav { display: none; }
  .bar__burger { display: flex; }
  .bar__act { margin-left: auto; }
  .bar__tel { display: none; }
  .bar__mark b { font-size: 0.86rem; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.1rem, 3vh, 1.8rem);
    padding-left: var(--gs-gut);
  }
  .hero__scene { height: clamp(15rem, 40svh, 26rem); }
  .gs-h--hero { font-size: var(--sc-t-2xl); }
  .gs-h { font-size: var(--sc-t-xl); }
  .gs-h--doc { max-width: none; }
  .gs-p--lede { font-size: var(--sc-t-base); }
  .hero__facts { gap: var(--sc-4); }

  .doc__sec { padding-block: var(--sc-8); }
  .ledger__row,
  .ledger--media .ledger__row { grid-template-columns: minmax(0, 1fr); gap: var(--sc-2); }
  .ledger--media img { height: 9.5rem; margin-bottom: var(--sc-2); }
  .signs { grid-template-columns: minmax(0, 1fr); gap: var(--sc-6); }
  .work { grid-template-columns: minmax(0, 1fr); gap: var(--sc-6); }
  .close { grid-template-columns: minmax(0, 1fr); gap: var(--sc-7); }
  .facts__row { grid-template-columns: minmax(0, 1fr); gap: var(--sc-1); }

  .doc__sec--close { padding-bottom: var(--sc-9); }
}

/* ------------------------------------------------------- reduced motion --
   Fewer and gentler, not zero: the engine keeps the opacity that carries each
   reveal and drops every position change. The hero planes stop travelling and
   the composition stands on its own. */
@media (prefers-reduced-motion: reduce) {
  .hero__pl { transform: none !important; }
  .cta, .cta__arrow { transition: none; }
}
