/* WinchHelper svetainė – ta pati vizualinė kalba kaip programėlėje (mobile/src/theme.ts, kryptis C „Atšvaitas – naktinis“).
   Išdėstymas: „naktinė“ juosta (antraštė + pradžia su skrendančiu herojumi), atšvaitinė juosta, šviesūs turinio skyriai
   1120 px stulpelyje; teisiniai puslapiai – siauras skaitymo stulpelis (~72 ženklai) su turiniu viršuje. */

/* sriftai:pradzia */
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 400; font-display: swap; src: url("/istekliai/sriftai/exo2-400.woff") format("woff"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("/istekliai/sriftai/exo2-600.woff") format("woff"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("/istekliai/sriftai/exo2-700.woff") format("woff"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("/istekliai/sriftai/exo2-800.woff") format("woff"); }
/* sriftai:pabaiga */

:root {
  /* spalvos – šviesi tema */
  --bg: #F3F5EF;
  --card: #FFFFFF;
  --text: #11151A;
  --muted: #566170;
  --border: #DCE1D6;
  --primary: #CBEB2D;
  --on-primary: #11151A;
  --link: #4D6A00;
  --primary-soft: #F0F7D4;
  --step: #11151A;
  --on-step: #FFFFFF;
  /* „naktinis“ paviršius: antraštė, pradžia, teikėjų skyrius, poraštė */
  --night: #11151A;
  --night-card: #1B222B;
  --night-line: #2A313A;
  --on-night: #F3F6F8;
  --on-night-muted: #B9C2CC;
  --night-danger: #FF9A9A;
  /* atšvaitinė juosta (vienoda abiejose temose) */
  --silver: #C5CED6;
  --reflector: #D7F542;
  --danger: #B42318;
  /* neužpildyti įmonės duomenys (tik juodraštyje) */
  --fill: #FFF3D1;
  --fill-line: #7A5600;
  /* paslaugų ikonos: rodoma šviesios temos versija */
  --glyph-light: inline;
  --glyph-dark: none;

  --font: "Exo 2", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --read: 46rem;
  --radius: 16px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0F14;
    --card: #141A22;
    --text: #F3F6F8;
    --muted: #96A1AE;
    --border: #242D39;
    --primary: #D7F542;
    --on-primary: #0F1306;
    --link: #D7F542;
    --primary-soft: #1E2A12;
    --step: #D7F542;
    --on-step: #0F1306;
    --night: #11151A;
    --night-card: #1B232D;
    --night-line: #2B3644;
    --danger: #FF8A8A;
    --fill: #2E2610;
    --fill-line: #FFD166;
    --glyph-light: none;
    --glyph-dark: inline;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0B0F14;
  --card: #141A22;
  --text: #F3F6F8;
  --muted: #96A1AE;
  --border: #242D39;
  --primary: #D7F542;
  --on-primary: #0F1306;
  --link: #D7F542;
  --primary-soft: #1E2A12;
  --step: #D7F542;
  --on-step: #0F1306;
  --night: #11151A;
  --night-card: #1B232D;
  --night-line: #2B3644;
  --danger: #FF8A8A;
  --fill: #2E2610;
  --fill-line: #FFD166;
  --glyph-light: none;
  --glyph-dark: inline;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "lnum";
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--reflector); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 800; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }

.wrap {
  max-width: calc(var(--wrap) + 32px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 20;
  background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------- naktinė juosta: antraštė ---------- */
.night { background: var(--night); color: var(--on-night); }
.night a { color: var(--on-night); }

.top { padding-block: 18px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { height: 40px; width: auto; display: block; }
@media (max-width: 760px) { .top .logo img { height: 34px; } }
.nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--on-night-muted); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.nav a:hover { color: var(--reflector); }
@media (max-width: 760px) { .nav .wide { display: none; } }

/* ---------- pradžia ---------- */
.hero { padding-block: 24px 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 24px 40px; align-items: center; }
.hero h1 {
  font-size: clamp(2.375rem, 1.3rem + 4.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--on-night);
}
.hero .lead { margin-top: 18px; font-size: 1.1875rem; line-height: 1.55; color: var(--on-night-muted); max-width: 34rem; }
.hero-art { justify-self: end; width: 100%; max-width: 520px; }
.hero-art img { display: block; width: 100%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: center; max-width: 400px; order: -1; }
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: 8px 18px; border-radius: 14px;
  border: 1.5px solid var(--night-line); background: var(--night-card);
  color: var(--on-night); text-decoration: none; line-height: 1.2;
}
.store small { font-size: 0.75rem; color: var(--on-night-muted); font-weight: 600; letter-spacing: 0.02em; }
.store b { font-size: 1.0625rem; font-weight: 700; }
a.store { border-color: var(--reflector); }
a.store:hover { background: var(--night-line); }

.hero-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; font-weight: 600; }
.hero-links a { color: var(--reflector); }

.sos {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--night-line);
  color: var(--on-night-muted); font-size: 0.9375rem; line-height: 1.5; max-width: 36rem;
}
.sos svg { flex-shrink: 0; margin-top: 1px; }
.sos strong { color: var(--night-danger); font-weight: 700; }

/* atšvaitinė juosta – kaip ant atšvaitinės liemenės */
.reflect {
  height: 20px;
  background: var(--silver);
  border-top: 6px solid var(--reflector);
  border-bottom: 6px solid var(--reflector);
}

/* ---------- turinio skyriai ---------- */
.section { padding-block: 72px; }
.section + .section { padding-top: 8px; }
.section-head { display: grid; gap: 12px; max-width: 44rem; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .services { grid-template-columns: minmax(0, 1fr); } }
.service {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 18px; align-items: start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.service .glyph { grid-row: span 3; width: 64px; height: 64px; }
.service h3 { margin-top: 4px; }
.service p { color: var(--muted); }
.service .note { color: var(--text); font-size: 0.9375rem; font-weight: 600; margin-top: 6px; }
.g-light { display: var(--glyph-light); }
.g-dark { display: var(--glyph-dark); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--step); color: var(--on-step); font-weight: 800; font-size: 1.125rem;
}
.steps p { color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 36px; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.fact { border-top: 3px solid var(--text); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.fact p { color: var(--muted); }

/* ---------- pagalbos teikėjams ---------- */
.helpers { padding-block: 64px; }
.helpers .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px 48px; align-items: center; }
@media (max-width: 860px) { .helpers .wrap { grid-template-columns: minmax(0, 1fr); } }
.helpers h2 { color: var(--on-night); }
.helpers .lead { margin-top: 14px; color: var(--on-night-muted); font-size: 1.125rem; max-width: 38rem; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; color: var(--on-night); }
.ticks { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* lime varnelė (kaukė iš SVG) */
.ticks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 3px; background: var(--reflector);
  -webkit-mask: var(--tick) center / 22px no-repeat; mask: var(--tick) center / 22px no-repeat;
}
.start {
  margin-top: 28px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--night-card); border: 1px solid var(--night-line); color: var(--on-night-muted);
}
.start strong { color: var(--on-night); }
.helpers-art { justify-self: center; width: 100%; max-width: 340px; }
.helpers-art img { display: block; width: 100%; }
@media (max-width: 860px) { .helpers-art { max-width: 240px; order: -1; } }

/* ---------- DUK ---------- */
.faq { max-width: 52rem; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 1.0625rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--text); border-bottom: 2.5px solid var(--text); transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq details > div { padding: 0 20px 20px; color: var(--muted); display: grid; gap: 10px; }

/* ---------- poraštė ---------- */
.foot { padding-block: 48px 40px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; }
@media (max-width: 860px) { .foot .wrap { grid-template-columns: minmax(0, 1fr); } }
.foot p, .foot li { color: var(--on-night-muted); font-size: 0.9375rem; }
.foot h2 { font-size: 1rem; color: var(--on-night); font-weight: 700; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--on-night); }
.foot .company { display: grid; gap: 4px; }
.foot .copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--night-line); }
.foot .logo img { height: 30px; }
.foot .about { margin-top: 14px; max-width: 26rem; }

/* ---------- teisiniai puslapiai ---------- */
.doc { padding-block: 48px 72px; }
.doc .wrap { max-width: calc(var(--read) + 32px); }
.doc h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3rem); }
.doc .meta { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
.doc .intro { margin-top: 22px; font-size: 1.125rem; }
.doc h2 { font-size: 1.5rem; margin-top: 44px; scroll-margin-top: 16px; }
.doc h3 { font-size: 1.125rem; margin-top: 24px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.4em; display: grid; gap: 6px; }
.doc li::marker { color: var(--muted); }
.doc .toc {
  margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border);
}
.doc .toc strong { display: block; font-size: 0.9375rem; }
.doc .toc ol { margin-top: 8px; gap: 4px; font-size: 0.9375rem; }
.doc .note {
  margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--primary-soft); border-left: 4px solid var(--link);
}
.table { overflow-x: auto; margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.table table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.9375rem; line-height: 1.5; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: 0; }
.table th { font-weight: 700; background: var(--primary-soft); }
.back { color: var(--on-night-muted); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.back:hover { color: var(--reflector); }

/* neužpildyti duomenys (juodraštis) */
.fill {
  background: var(--fill); color: var(--text); border: 1.5px dashed var(--fill-line); border-radius: 6px;
  padding: 0 6px; font-weight: 600; white-space: nowrap;
}
.night .fill { color: var(--text); }
.draft {
  background: var(--fill); color: var(--text); border-bottom: 1.5px dashed var(--fill-line);
  font-size: 0.875rem; padding-block: 8px;
}
