/* Public (web) shell + shared classes (decision 0069). Tokens in tokens-web.css. */

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

  body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.64;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    line-height: 1.06; letter-spacing: -.025em; margin: 0; font-weight: 600;
  }

  a { color: var(--green); text-decoration: none; }
  a:hover { color: var(--green-d); text-decoration: underline; text-underline-offset: 3px; }

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

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
  .narrow { max-width: var(--maxw-narrow); margin-left: auto; margin-right: auto; }

  .skip {
    position: absolute; left: -999px; top: 0;
    background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100; font-weight: 600; border-radius: 0 0 var(--radius) 0;
  }
  .skip:focus { left: 0; color: #fff; }

  /* ---------- Buttons — pill / rounded, high contrast ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: inherit; font-weight: 600; font-size: 15.5px;
    padding: 14px 28px; min-height: 24px;
    border: 1.5px solid var(--green); cursor: pointer; border-radius: var(--pill);
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
    white-space: nowrap; letter-spacing: -.01em; text-decoration: none;
  }
  .btn:hover { transform: translateY(-1px); text-decoration: none; }
  .btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
  .btn-primary:hover { background: var(--green-d); border-color: var(--green-d); color: #fff; }
  .btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
  .btn-ghost:hover { background: var(--ink); color: #fff; }
  .btn-sm { padding: 10px 20px; font-size: 14.5px; }

  /* ---------- Header — green brand bar, white text ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--brandbar);
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
  .site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 80px; }
  .brand-logo { display: inline-flex; align-items: center; }
  .brand-logo img { height: 40px; width: auto; }
  .nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
  .nav a {
    color: #fff; font-weight: 500; font-size: 15.5px;
    padding: 10px 14px; border-radius: var(--pill); letter-spacing: -.01em;
  }
  .nav a:hover { color: #fff; background: rgba(255,255,255,.14); text-decoration: none; }
  .nav a[aria-current="page"] { background: rgba(255,255,255,.20); color: #fff; }
  .nav a[aria-current="page"]:hover { background: rgba(255,255,255,.26); }
  .nav-toggle { display: none; }

  /* ---------- Hero — centered ---------- */
  .hero { position: relative; overflow: hidden; text-align: center; padding: 104px 0 96px; }
  .hero-halo {
    position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
    width: min(1000px, 132vw); height: 720px; pointer-events: none; z-index: 0;
    background:
      radial-gradient(closest-side at 50% 42%, rgba(35,92,51,.10), rgba(35,92,51,.03) 56%, transparent 72%),
      radial-gradient(closest-side at 50% 30%, rgba(35,92,51,.06), transparent 64%);
    filter: blur(8px);
  }
  .hero-inner { position: relative; z-index: 1; }
  .kicker {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--green); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
  }
  .kicker::before, .kicker::after { content: ""; width: 30px; height: 1.5px; background: var(--green); display: inline-block; }
  .hero h1 {
    font-size: clamp(42px, 6.4vw, 78px); font-weight: 600;
    letter-spacing: -.035em; margin: 0 auto 28px; max-width: 14ch;
  }
  .hero h1 .ac { color: var(--green); }
  .hero .lead { font-size: 20px; color: var(--ink-2); max-width: 52ch; margin: 0 auto 38px; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

  /* ---------- Photo band — full-width, image fully covering ---------- */
  .photo-band { padding: 0 0 96px; }
  .photo-frame {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(20,22,15,.45); margin: 0;
  }
  .photo-frame img {
    width: 100%; height: clamp(360px, 46vw, 420px);
    object-fit: cover; filter: grayscale(.12) contrast(1.03);
  }
  .photo-frame figcaption {
    position: absolute; left: 0; bottom: 0; margin: 0;
    background: var(--ink); color: #fff;
    font-family: "Space Grotesk", sans-serif; font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
    padding: 9px 16px; border-radius: 0 var(--radius) 0 0;
  }

  /* ---------- Facts strip — centered, on green-tint band ---------- */
  .facts { background: var(--tint-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .facts .wrap { padding-top: 72px; padding-bottom: 72px; text-align: center; }
  .facts .eyebrow {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--green); display: block; margin-bottom: 36px;
  }
  .facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
  .fact { padding: 0 24px; position: relative; }
  .fact + .fact::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
  .fact .n {
    font-family: "Space Grotesk", sans-serif; font-weight: 600;
    font-size: clamp(44px, 5.4vw, 64px); letter-spacing: -.04em; line-height: 1; color: var(--ink);
    font-variant-numeric: tabular-nums;
  }
  .fact .n em { color: var(--green); font-style: normal; }
  .fact .l { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); letter-spacing: -.01em; }

  /* ---------- Section scaffold ---------- */
  main { display: block; }
  section { padding: 104px 0; }
  .sec-head { text-align: center; max-width: 60ch; margin: 0 auto 60px; }
  .sec-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--green); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px;
  }
  .sec-label .num { color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .sec-head h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 600; letter-spacing: -.03em; }
  .sec-head .lead { color: var(--ink-2); font-size: 19px; margin: 20px auto 0; max-width: 56ch; }
  .band-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

  /* ---------- Capability / generic soft cards ---------- */
  .cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .cap-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 28px; transition: border-color .18s ease, box-shadow .2s ease, transform .18s ease;
  }
  .cap-card:hover { border-color: #c7cabf; box-shadow: 0 14px 34px -22px rgba(20,22,15,.4); transform: translateY(-2px); }
  .cap-card .ic {
    width: 50px; height: 50px; border-radius: var(--radius); display: grid; place-items: center;
    background: var(--tint-2); color: var(--green); margin-bottom: 20px; border: 1px solid var(--line);
  }
  .cap-card .ic svg { width: 26px; height: 26px; }
  .cap-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
  .cap-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

  /* ---------- Process chain (deep-green band) ---------- */
  .proc { background: var(--lgreen); color: #fff; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
  .proc .sec-label { color: var(--on-green); }
  .proc .sec-label .num { color: rgba(255,255,255,.6); }
  .proc h2 { color: #fff; }
  .proc-chain {
    margin-top: 8px; display: grid; grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid rgba(255,255,255,.24); border-left: 1px solid rgba(255,255,255,.24);
    list-style: none; padding: 0;
  }
  .step {
    padding: 22px 16px 26px;
    border-right: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24);
    position: relative;
  }
  .step .sn {
    font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 13px;
    color: var(--on-green); font-variant-numeric: tabular-nums; letter-spacing: .06em;
  }
  .step h3 { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: -.01em; margin-top: 26px; }
  .step .sa {
    position: absolute; right: -8px; top: 22px; z-index: 2;
    color: rgba(255,255,255,.72); font-family: "Space Grotesk", sans-serif; font-size: 15px;
    background: var(--lgreen); padding: 0 2px; line-height: 1;
  }
  .step:last-child .sa { display: none; }
  .proc-cap {
    margin-top: 44px; text-align: center; font-family: "Space Grotesk", sans-serif; font-size: 17px; color: rgba(255,255,255,.85);
    display: inline-flex; align-items: center; gap: 14px;
  }
  .proc-cap::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-green); display: inline-block; }
  .proc-cap-wrap { text-align: center; }

  /* ---------- Segments — soft cards ---------- */
  .seg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .seg {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 30px; transition: border-color .18s ease, box-shadow .2s ease, transform .18s ease;
  }
  .seg:hover { border-color: #c7cabf; box-shadow: 0 14px 34px -22px rgba(20,22,15,.4); transform: translateY(-2px); }
  .seg .tag { font-family: "Space Grotesk", sans-serif; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 12px; }
  .seg h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
  .seg p { margin: 0; color: var(--ink-2); font-size: 16px; }

  /* ---------- Sortiment — chips + brand ---------- */
  .sort-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 760px; margin: 0 auto; }
  .chip {
    font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 16px; letter-spacing: -.01em;
    padding: 11px 22px; border: 1.5px solid var(--ink); border-radius: var(--pill); color: var(--ink); background: var(--paper);
  }
  .brands-rule {
    font-family: "Space Grotesk", sans-serif; font-size: 12.5px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin: 56px 0 22px;
  }
  .brand-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; max-width: 860px; margin: 0 auto; }
  .brand {
    font-family: "Space Grotesk", sans-serif; font-weight: 700;
    font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; line-height: 1.1; color: var(--ink); padding: 6px 14px;
  }
  .brand-sep { width: 2px; height: clamp(26px, 3.4vw, 36px); background: #c7cabf; border-radius: 2px; display: inline-block; }
  .sort-cta { text-align: center; margin-top: 48px; }

  /* ---------- Story — contained centered column ---------- */
  .story-photo {
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    box-shadow: 0 18px 40px -28px rgba(20,22,15,.45); margin: 0 0 40px;
  }
  .story-photo img { width: 100%; height: auto; display: block; }
  .story-prose { font-size: 19px; color: var(--ink-2); margin: 0 0 40px; }
  .timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .timeline li { display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .timeline .yr { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; color: var(--green); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .timeline .ev { font-size: 16px; color: var(--ink); }
  .story-cta { margin-top: 36px; }

  /* ---------- Closing band (deep green): contact + provozovny ---------- */
  .closing { background: var(--lgreen); color: #fff; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
  .closing .sec-head h2 { color: #fff; }
  .closing .sec-label { color: var(--on-green); }
  .closing .sec-label .num { color: rgba(255,255,255,.6); }
  .contact-card {
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.24);
    border-radius: var(--radius); padding: 40px; text-align: center; max-width: 720px; margin: 0 auto 56px;
  }
  .closing .tel {
    font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -.02em; display: inline-block; color: #fff; margin: 0 0 8px;
  }
  .closing .tel:hover { color: var(--on-green); text-decoration: none; }
  .closing .contact-meta { font-size: 15.5px; color: rgba(255,255,255,.85); margin: 0 0 26px; }
  .closing .contact-meta a { color: #fff; }
  .closing .contact-meta a:hover { color: var(--on-green); }
  .closing-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .closing .btn-primary { background: #fff; color: var(--green); border-color: #fff; }
  .closing .btn-primary:hover { background: var(--tint-2); color: var(--green-d); border-color: var(--tint-2); }
  .closing .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
  .closing .btn-ghost:hover { background: #fff; color: var(--green); border-color: #fff; }
  .prov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
  .prov {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.20);
    border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column;
  }
  .prov.is-hq { background: rgba(255,255,255,.16); border-color: var(--on-green); }
  .prov-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 26px; margin-bottom: 14px; }
  .prov .city { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 19px; color: #fff; letter-spacing: -.02em; }
  .prov .hq-pill {
    font-family: "Space Grotesk", sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: var(--green); background: #fff; border-radius: var(--pill); padding: 3px 10px;
  }
  .prov address { font-style: normal; font-size: 14.5px; color: rgba(255,255,255,.85); line-height: 1.62; margin: 0; }
  .prov address a { color: #fff; font-variant-numeric: tabular-nums; }
  .prov address a:hover { color: var(--on-green); }

  /* ---------- Footer — white, logo image ---------- */
  .site-footer { background: var(--paper); color: var(--ink); padding: 72px 0 36px; border-top: 1px solid var(--line); }
  .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
  .footer-brand .brand-logo img { height: 40px; }
  .footer-brand p { margin: 18px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 40ch; }
  .footer-brand p.note { color: var(--ink-3); font-size: 13px; margin-top: 14px; }
  .site-footer h4 {
    font-family: "Space Grotesk", sans-serif; font-size: 12.5px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; color: var(--ink-3);
  }
  .footer-col address, .footer-col p { margin: 0 0 6px; font-style: normal; font-size: 15.5px; line-height: 1.72; }
  .footer-col a { color: var(--ink); }
  .footer-nav { list-style: none; padding: 0; margin: 0; }
  .footer-nav li { margin-bottom: 9px; }
  .footer-nav a { font-size: 15.5px; color: var(--ink); }
  .footer-bottom {
    margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between;
    font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums;
  }
  .footer-bottom .sklad a { color: var(--ink-3); }

  /* ---------- Auth / form pages (login, password reset) — reuse the public system ---------- */
  .login-card { max-width: 880px; margin: 0 auto; }
  .eyebrow {
    display: inline-block; font-family: "Space Grotesk", sans-serif; text-transform: uppercase;
    letter-spacing: .12em; font-size: 12.5px; font-weight: 600; color: var(--green);
    background: var(--tint-2); border-radius: var(--pill); padding: 6px 14px; margin: 0 0 18px;
  }
  .lead { font-size: 19px; color: var(--ink-2); }
  .login-panels { display: grid; gap: 18px; align-items: stretch; }
  @media (min-width: 760px) { .login-panels { grid-template-columns: 3fr 2fr; } }
  .card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 30px; box-shadow: 0 14px 34px -22px rgba(20,22,15,.3);
  }
  .card h2 { font-family: "Space Grotesk", sans-serif; font-size: 22px; margin: 0 0 16px; }
  .login-aside { background: var(--tint-2); }
  .login-meta { color: var(--ink-3); font-size: 15px; margin-top: 16px; }
  .btn-outline { background: var(--paper); color: var(--ink); border-color: var(--ink); }
  .btn-outline:hover { background: var(--ink); color: #fff; }
  form .field { margin-bottom: 16px; }
  form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
  form input[type=text], form input[type=email], form input[type=tel],
  form input[type=password], form textarea {
    width: 100%; font: inherit; padding: 11px 13px;
    border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  form input:focus, form textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(35,92,51,.14);
  }
  form .errorlist, .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: #a40000; font-size: 15px; }
  .helptext { color: var(--ink-3); font-size: 15px; }

  /* ---------- Responsive ---------- */
  @media (max-width: 960px) {
    .facts-grid { grid-template-columns: 1fr; gap: 40px; }
    .fact + .fact::before { display: none; }
    .fact + .fact { border-top: 1px solid var(--line); padding-top: 36px; }
    .cap-grid { grid-template-columns: 1fr 1fr; }
    .proc-chain { grid-template-columns: repeat(3, 1fr); }
    .step .sa { display: none; }
    .seg-grid { grid-template-columns: 1fr; }
    .prov-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 680px) {
    body { font-size: 16px; }
    .wrap { padding: 0 22px; }
    .nav { display: none; }
    .nav.open {
      display: flex; flex-direction: column; align-items: stretch;
      position: absolute; left: 0; right: 0; top: 80px; gap: 0;
      background: var(--brandbar); border-bottom: 1px solid rgba(255,255,255,.16); padding: 8px 22px 16px;
    }
    .nav.open a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
    .nav-toggle {
      display: inline-flex; margin-left: auto; align-items: center; gap: 8px;
      background: transparent; border: 1.5px solid rgba(255,255,255,.55); border-radius: var(--pill);
      padding: 10px 18px; cursor: pointer; font: inherit; font-weight: 600; color: #fff; min-height: 24px;
    }
    section { padding: 72px 0; }
    .hero { padding: 64px 0 56px; }
    .cap-grid { grid-template-columns: 1fr; }
    .proc-chain { grid-template-columns: 1fr 1fr; }
    .prov-grid { grid-template-columns: 1fr; }
    .timeline li { grid-template-columns: 64px 1fr; gap: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  }
  @media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
    .btn:hover, .cap-card:hover, .seg:hover { transform: none; }
  }
  :focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
