/* 0. Фонтови од нашиот сервер
   Претходно доаѓаа од fonts.googleapis.com. Тоа беше туѓ ланец: прво се
   чека CSS од еден сервер, па дури потоа фонтот од втор. Ја блокираше
   страницата околу 800 ms. Сега се наши, со кеш од една година.
   font-display: swap значи текстот се гледа веднаш со резервен фонт. */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/oswald-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/oswald-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   БУНАРИ МК - бушење бунари за вода
   --------------------------------------------------------------------------
   ПРАВИЛО ЗА ФОРМИ (важи за цела страна):
     копчиња = пилула (999px) | картички и слики = 18px | полиња = 12px
   ЕДНА АКЦЕНТНА БОЈА за цела страна: --accent (сина, "вода").
   Темни ленти со фотографија се користат само двапати: насловна и контакт.
   ========================================================================== */

/* ---------- 1. Токени ---------- */
:root {
  --fs-scale: 1;

  --bg:          #f5f8fa;
  --bg-alt:      #eaf0f4;
  --surface:     #ffffff;
  --surface-2:   #f0f5f8;
  --line:        #d7e0e7;
  --line-strong: #bcc9d3;

  --text:        #0f1f2b;
  --text-2:      #45596b;
  --text-3:      #586b7a;

  --accent:      #0b6fa4;
  --accent-deep: #08567f;
  --accent-soft: #e3f0f8;
  --on-accent:   #ffffff;

  --band:        #0c1a24;
  --band-text:   #eef5f9;
  --band-text-2: #a9c1d0;
  --band-line:   rgba(255,255,255,.18);

  --danger:      #b3261e;
  --danger-bg:   #fdecea;
  --danger-ink:  #7f1d1a;

  --r-card:  18px;
  --r-input: 12px;
  --r-pill:  999px;

  --shadow-s: 0 1px 2px rgba(15,31,43,.06), 0 2px 8px rgba(15,31,43,.05);
  --shadow-m: 0 2px 6px rgba(15,31,43,.07), 0 12px 32px rgba(15,31,43,.09);
  --shadow-l: 0 8px 20px rgba(15,31,43,.10), 0 28px 64px rgba(15,31,43,.16);

  --wrap: 1180px;
  --gap:  clamp(1.1rem, 2.4vw, 1.9rem);
  --sect: clamp(3.6rem, 8vw, 6.4rem);

  --ease: cubic-bezier(.16, 1, .3, 1);

  --font-display: "Oswald", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-body: "Golos Text", "PT Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Темна тема: рачен избор */
html[data-theme="dark"] {
  --bg:          #0b141a;
  --bg-alt:      #0f1a22;
  --surface:     #121e27;
  --surface-2:   #16242f;
  --line:        #24343f;
  --line-strong: #354959;

  --text:        #e9f1f6;
  --text-2:      #a2b7c5;
  --text-3:      #8399a8;

  --accent:      #4fb3e8;
  --accent-deep: #7ccbf5;
  --accent-soft: #14303f;
  --on-accent:   #05202e;

  --band:        #060f15;
  --band-line:   rgba(255,255,255,.16);

  --danger:      #ff9a92;
  --danger-bg:   #3b1513;
  --danger-ink:  #ffc9c4;

  --shadow-s: 0 1px 2px rgba(0,0,0,.4);
  --shadow-m: 0 2px 6px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.45);
  --shadow-l: 0 8px 20px rgba(0,0,0,.45), 0 28px 64px rgba(0,0,0,.55);
}

/* Темна тема: според поставките на уредот */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg:          #0b141a;
    --bg-alt:      #0f1a22;
    --surface:     #121e27;
    --surface-2:   #16242f;
    --line:        #24343f;
    --line-strong: #354959;

    --text:        #e9f1f6;
    --text-2:      #a2b7c5;
    --text-3:      #8399a8;

    --accent:      #4fb3e8;
    --accent-deep: #7ccbf5;
    --accent-soft: #14303f;
    --on-accent:   #05202e;

    --band:        #060f15;
    --band-line:   rgba(255,255,255,.16);

    --danger:      #ff9a92;
    --danger-bg:   #3b1513;
    --danger-ink:  #ffc9c4;

    --shadow-s: 0 1px 2px rgba(0,0,0,.4);
    --shadow-m: 0 2px 6px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.45);
    --shadow-l: 0 8px 20px rgba(0,0,0,.45), 0 28px 64px rgba(0,0,0,.55);
  }
}

/* ---------- 2. Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: calc(17px * var(--fs-scale));
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p  { margin: 0 0 1rem; max-width: 62ch; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-deep); }

img, svg { max-width: 100%; display: block; }
img { height: auto; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 1.8rem); } }

.section { padding-block: var(--sect); }
.section--tight { padding-block: clamp(2.6rem, 5vw, 4rem); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { font-size: 1.1rem; color: var(--text-2); margin-bottom: 0; }

.ico { width: 1.5em; height: 1.5em; flex: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: .8rem 1.2rem; border-radius: 0 0 var(--r-input) 0; font-weight: 600;
}
.skip:focus { left: 0; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. Копчиња ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.5rem; padding: .85rem 1.6rem;
  border: 2px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 1.03rem; font-weight: 600;
  line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn .ico { width: 1.35em; height: 1.35em; }

.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-s); }
.btn--primary:hover { background: var(--accent-deep); color: var(--on-accent); box-shadow: var(--shadow-m); }

.btn--outline { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--surface-2); color: var(--text); border-color: var(--accent); }

.btn--onband { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.44); }
.btn--onband:hover { background: rgba(255,255,255,.17); color: #fff; border-color: #fff; }

.btn--lg { min-height: 4.1rem; padding: 1rem 2rem; font-size: 1.12rem; }
.btn--block { width: 100%; }
.btn .num { font-family: var(--font-display); font-size: 1.16em; letter-spacing: .012em; }

/* ---------- 4. Заглавие ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .hdr { background: var(--surface); } }

.hdr__in { display: flex; align-items: center; gap: 1rem; height: 74px; }
.hdr .wrap { width: min(100% - 2.2rem, 1340px); }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); flex: none; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center;
}
.brand__mark .ico { width: 24px; height: 24px; }
.brand__name {
  font-family: var(--font-display); font-size: 1.42rem; font-weight: 600;
  letter-spacing: .06em; line-height: 1.05; display: block;
}
.brand__sub {
  display: block; font-family: var(--font-body); font-size: .66rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); line-height: 1.5;
}

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .52rem .62rem; border-radius: var(--r-pill);
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .92rem; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.hdr__tools { display: flex; align-items: center; gap: .4rem; flex: none; }
.iconbtn {
  width: 2.9rem; height: 2.9rem; display: grid; place-items: center;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.iconbtn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.iconbtn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.hdr .btn--primary { min-height: 3rem; padding: .6rem 1.15rem; }

.navtoggle { display: none; }

@media (max-width: 1220px) {
  .nav {
    position: fixed; inset: 74px 0 auto; margin: 0; display: none;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m);
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem; }
  .nav a { padding: 1rem; font-size: 1.1rem; border-radius: var(--r-input); }
  .navtoggle { display: grid; }
}
@media (max-width: 760px) {
  .hdr__in { height: 66px; }
  .hdr .btn--primary .num { display: none; }
  .hdr .btn--primary { padding: .6rem .9rem; }
  .nav { inset-block-start: 66px; }
  .brand__sub { display: none; }
}
@media (max-width: 430px) { .fsbtn { display: none; } }

/* ---------- 5. Насловна лента ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--band); color: var(--band-text);
  padding-block: clamp(2.4rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, var(--band) 8%, rgba(12,26,36,.87) 46%, rgba(12,26,36,.5) 100%),
    linear-gradient(to top, var(--band), transparent 42%);
}
.hero__in {
  display: grid; gap: clamp(1.4rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .36em; }
.hero__lead {
  font-size: clamp(1.1rem, 1.9vw, 1.32rem); color: var(--band-text-2);
  max-width: 35ch; margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
/* width: 100% е потребно. Со само justify-self: center обвивката се собира
   околу сликата, па процентот подолу се мери спрема ширина што сама зависи од
   сликата. Додека сликата не стигне, браузерот пресметува едно, а штом стигне
   друго, и сликата се смалува за една третина, а текстот под неа скока. */
.hero__art { justify-self: center; width: 100%; }
.hero__art img {
  width: min(100%, 24rem); margin-inline: auto;
  filter: drop-shadow(0 34px 44px rgba(0,0,0,.6));
}

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art img { width: min(72%, 15rem); }
  .hero__lead { max-width: none; }
  .hero__cta .btn { flex: 1 1 14rem; }
}

/* ---------- 6. Лента со факти ---------- */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { display: flex; align-items: center; gap: .85rem; padding: 1.5rem 1.4rem; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; }
.facts .ico { color: var(--accent); width: 2rem; height: 2rem; }
.facts b { display: block; font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; line-height: 1.15; }
.facts span { font-size: .92rem; color: var(--text-2); line-height: 1.4; }

@media (max-width: 900px) {
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(2n) { border-right: 0; }
  .facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 470px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
  .facts li:last-child { border-bottom: 0; }
}

/* ---------- 7. Услуги (бенто) ---------- */
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(6, 1fr); }
.tile {
  position: relative; isolation: isolate; grid-column: span 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.7rem; display: flex; flex-direction: column; gap: .5rem;
  box-shadow: var(--shadow-s);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line-strong); }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--text-2); font-size: .99rem; }
.tile__ico {
  width: 3.1rem; height: 3.1rem; border-radius: 13px; margin-bottom: .45rem;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.tile__ico .ico { width: 1.7rem; height: 1.7rem; }

.tile--photo {
  grid-column: span 3; min-height: 20rem; padding: 0; border: 0; overflow: hidden;
  justify-content: flex-end; color: #fff;
}
.tile--photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tile--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8,18,26,.94) 8%, rgba(8,18,26,.55) 48%, rgba(8,18,26,.18) 100%);
}
.tile--photo > * { padding-inline: 1.7rem; }
.tile--photo h3 { color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.tile--photo p { color: rgba(255,255,255,.9); padding-bottom: 1.7rem; }

/* ширини во бенто решетката, како класи за да може да ги менуваат мобилните правила */
.tile--w3 { grid-column: span 3; }
.tile--w6 { grid-column: span 6; min-height: 15rem; }

.tile--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tile--accent h3 { color: var(--on-accent); }
.tile--accent p { color: color-mix(in srgb, var(--on-accent) 86%, transparent); }
.tile--accent .tile__ico { background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--photo, .tile--w3 { grid-column: span 1; }
  .tile--w6, .tile--accent { grid-column: span 2; }
  .tile--photo { min-height: 16rem; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--photo, .tile--w3, .tile--w6, .tile--accent { grid-column: span 1; }
}

/* ---------- 8. Како работиме ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step; display: grid; grid-template-columns: 5.2rem 1fr; gap: 1.4rem;
  padding: 1.7rem 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; line-height: 1; color: var(--accent); }
.step__n::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--text-2); }
@media (max-width: 620px) {
  .step { grid-template-columns: 3.2rem 1fr; gap: 1rem; }
  .step__n { font-size: 2rem; }
}

/* ---------- 9. Машината ---------- */
.machine {
  display: grid; gap: clamp(1.8rem, 4vw, 3.4rem);
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: start;
}
.machine__art {
  border-radius: var(--r-card); padding: 2rem 1rem; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 12%, var(--surface) 0%, var(--surface-2) 58%, var(--bg-alt) 100%);
  display: grid; place-items: center;
}
.machine__art img { width: min(100%, 21rem); }
.machine__strip {
  width: 100%; height: 7.5rem; object-fit: cover; object-position: center 58%;
  margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--r-card);
}

.specs { list-style: none; margin: 0 0 1.7rem; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
.specs li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.1rem 1.25rem; }
.specs b {
  display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.1rem);
  font-weight: 600; line-height: 1.05; color: var(--accent);
}
.specs span { font-size: .92rem; color: var(--text-2); }
.specs li:nth-child(5) { grid-column: span 2; }

/* Опрема на терен: една широка картичка, изрезот на детекторот лево */
.kit {
  display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
}
.kit__art {
  align-self: stretch; display: grid; place-items: center; padding: 1.2rem 1rem;
  background: radial-gradient(130% 120% at 50% 18%, var(--surface-2) 0%, var(--bg-alt) 100%);
  border-right: 1px solid var(--line);
}
.kit__art img { width: min(100%, 13.5rem); }
.kit__txt { padding: 1.3rem 1.4rem; }
.kit h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.kit ul { margin: 0; padding-left: 1.05rem; color: var(--text-2); font-size: .97rem; }
.kit li { margin-bottom: .22rem; }
.machine__dims { margin-top: 1.4rem; font-size: .96rem; color: var(--text-3); }

@media (max-width: 980px) {
  .machine { grid-template-columns: 1fr; }
  .machine__art img { width: min(60%, 16rem); }
  .machine__strip { height: 9rem; }
}
@media (max-width: 560px) {
  .specs { grid-template-columns: 1fr; }
  .specs li:nth-child(5) { grid-column: span 1; }
  .kit { grid-template-columns: 1fr; }
  .kit__art { border-right: 0; border-bottom: 1px solid var(--line); }
  .kit__art img { width: min(66%, 11rem); }
}

/* ---------- 10. Галерија ---------- */
.gal { display: grid; gap: .8rem; grid-template-columns: repeat(4, 1fr); }
.gal button {
  position: relative; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--r-card); background: var(--surface-2); aspect-ratio: 3 / 2;
  transition: box-shadow .25s var(--ease);
}
.gal button:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gal button:hover { box-shadow: var(--shadow-m); }
.gal button:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
  .gal { grid-template-columns: repeat(2, 1fr); }
  .gal button:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
}
@media (max-width: 520px) {
  .gal { grid-template-columns: 1fr; }
  .gal button:nth-child(1) { grid-column: span 1; }
}

.lb { border: 0; padding: 0; background: transparent; width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; }
.lb::backdrop { background: rgba(5,12,17,.94); }
.lb__in { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 3.6rem 1rem 5.4rem; }
.lb img { max-width: min(100%, 1100px); max-height: 100%; width: auto; border-radius: 10px; }
.lb__cap {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  width: min(94%, 46rem); text-align: center; color: #dfeaf1; font-size: .97rem; line-height: 1.5; margin: 0;
}
.lb__x { position: absolute; top: .9rem; right: .9rem; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: .9rem; }
.lb__nav--next { right: .9rem; }
.lb .iconbtn { width: 3.2rem; height: 3.2rem; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.34); }
.lb .iconbtn:hover { background: rgba(255,255,255,.24); color: #fff; }

/* ---------- 11. Прашања ---------- */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem .2rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.27rem); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .ico { color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq__a { padding: 0 .2rem 1.5rem; color: var(--text-2); }
.faq__a p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary .ico { transition: none; } }

/* ---------- 12. Каде излегуваме ---------- */
.area__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.area__group {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow-s);
}
.area__group h3 { margin: 0 0 .9rem; font-size: clamp(1.05rem, 1.8vw, 1.22rem); }
.area__list { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; }
.area__list li {
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: .48rem 1.05rem; font-size: .97rem; color: var(--text-2); background: var(--surface-2);
}
.area__note { margin-top: 1.5rem; color: var(--text-2); }
@media (max-width: 900px) { .area__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .area__grid { grid-template-columns: 1fr; } }

/* ---------- 13. Контакт ---------- */
.contact { position: relative; isolation: isolate; background: var(--band); color: var(--band-text); }
.contact__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--band) 14%, rgba(12,26,36,.86) 58%, rgba(12,26,36,.62) 100%);
}
.contact h2 { color: #fff; }
.contact .section__head p { color: var(--band-text-2); }
.contact__grid {
  display: grid; gap: clamp(1.8rem, 4vw, 3.2rem);
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start;
}

.reach { display: grid; gap: .8rem; margin-bottom: 1.7rem; }
.reach a {
  display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem;
  border-radius: var(--r-card); background: rgba(255,255,255,.07);
  border: 1px solid var(--band-line); color: #fff; text-decoration: none;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.reach a:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }
.reach a:active { transform: translateY(1px); }
.reach .ico { width: 1.7rem; height: 1.7rem; flex: none; }
.reach b {
  display: block; font-family: var(--font-display); font-size: 1.22rem;
  font-weight: 500; line-height: 1.2; letter-spacing: .012em;
}
.reach span { font-size: .87rem; color: var(--band-text-2); }
.reach__go { margin-left: auto; opacity: .55; }

.hours { font-size: .96rem; color: var(--band-text-2); display: flex; align-items: flex-start; gap: .7rem; }
.hours .ico { width: 1.3rem; height: 1.3rem; margin-top: .25rem; }
.hours p { margin: 0; }

.form {
  background: var(--surface); color: var(--text); border-radius: var(--r-card);
  padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--shadow-l);
}
.form h3 { margin-bottom: .3rem; }
.form__intro { color: var(--text-2); font-size: .97rem; margin-bottom: 1.4rem; }
.field { display: grid; gap: .38rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .97rem; }
.field .hint { font-size: .85rem; color: var(--text-3); }
.field input, .field textarea {
  font: inherit; font-size: 1.02rem; color: var(--text);
  background: var(--surface-2); border: 2px solid var(--line-strong);
  border-radius: var(--r-input); padding: .85rem 1rem; width: 100%; min-height: 3.3rem;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--text-3); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field .err { font-size: .89rem; font-weight: 600; color: var(--danger); display: none; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--danger); }
.field[data-invalid="true"] .err { display: block; }

.form__note { font-size: .87rem; color: var(--text-3); margin: .9rem 0 0; }
.form__status {
  display: none; align-items: flex-start; gap: .7rem; margin-top: 1rem;
  padding: 1rem 1.15rem; border-radius: var(--r-input); font-size: .97rem;
}
.form__status p { margin: 0; }
.form__status[data-state="ok"] { display: flex; background: var(--accent-soft); color: var(--text); }
.form__status[data-state="err"] { display: flex; background: var(--danger-bg); color: var(--danger-ink); }
.form button[type="submit"][data-busy="true"] { opacity: .7; pointer-events: none; }

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- 14. Подножје ---------- */
.ftr { background: var(--surface); border-top: 1px solid var(--line); padding-block: 2.6rem; }
.ftr__in { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; align-items: center; }
.ftr .brand { margin-right: auto; }
.ftr p { margin: 0; font-size: .92rem; color: var(--text-3); max-width: 46ch; }
.ftr a { color: var(--text-2); }
.ftr__seo { width: 100%; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* ---------- 15. Лепливо мени долу (мобилен) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; gap: .5rem;
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.dock .btn { flex: 1; min-height: 3.35rem; padding: .6rem .5rem; font-size: .94rem; gap: .45rem; }
@media (max-width: 860px) { .dock { display: flex; } body { padding-bottom: 5.2rem; } }
@media (max-width: 390px) { .dock .btn span { display: none; } .dock .btn { gap: 0; } }

/* ---------- 16. Движење ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal].is-in { opacity: 1; transform: none; transition: none; }
  .gal img, .tile, .btn, .reach a, .iconbtn { transition: none !important; }
}

/* ---------- 18. Страници по град и општина (bunari/) ---------- */
.loc-hero {
  position: relative; background: var(--band); color: var(--band-text);
  padding-block: clamp(2rem, 4vw, 3.4rem) clamp(2.4rem, 5vw, 3.8rem);
}
.loc-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .4em; }
.loc-lead { font-size: clamp(1.04rem, 1.6vw, 1.18rem); color: var(--band-text-2); max-width: 58ch; }
.loc-hero .loc-lead { margin-bottom: 1.8rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  font-size: .9rem; color: var(--band-text-2); margin-bottom: 1.2rem; }
.crumbs a { color: var(--band-text-2); text-decoration: underline; }
.crumbs a:hover { color: #fff; }

.loc-two { display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
.loc-two h2 { margin-top: 0; }
.loc-art {
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem 1rem;
  background: radial-gradient(130% 110% at 50% 15%, var(--surface) 0%, var(--surface-2) 60%, var(--bg-alt) 100%);
  display: grid; place-items: center;
}
.loc-art img { width: min(100%, 15rem); }
@media (max-width: 860px) {
  .loc-two { grid-template-columns: 1fr; }
  .loc-art { order: -1; }
  .loc-art img { width: min(55%, 11rem); }
}

.loc-plus { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr)); }
.loc-plus li { display: flex; gap: .8rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.1rem 1.25rem; color: var(--text-2); }
.loc-plus .ico { color: var(--accent); width: 1.5rem; height: 1.5rem; margin-top: .15rem; }
@media (max-width: 720px) { .loc-plus { grid-template-columns: 1fr; } }

.loc-reach { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 720px) { .loc-reach { grid-template-columns: 1fr; } }

.loc-nears { display: flex; flex-wrap: wrap; gap: .7rem; }
.loc-near {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.2rem; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.loc-near:hover { border-color: var(--accent); background: var(--surface-2); color: var(--text); }
.loc-near .ico { width: 1.1rem; height: 1.1rem; color: var(--accent); }

.loc-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.loc-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.5rem; text-decoration: none; color: var(--text); box-shadow: var(--shadow-s);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.loc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m);
  border-color: var(--accent); color: var(--text); }
.loc-card h3 { margin: 0; }
.loc-card p { margin: 0; font-size: .93rem; color: var(--text-2); }
.loc-card__go { margin-top: auto; padding-top: .7rem; display: inline-flex; align-items: center;
  gap: .4rem; color: var(--accent); font-weight: 600; font-size: .95rem; }
.loc-card__go .ico { width: 1.1rem; height: 1.1rem; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .loc-grid { grid-template-columns: 1fr; } }

/* ---------- 17. Табела и истакната белешка (страниците од водичот) ---------- */
.tbl { width: 100%; margin: 0; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-s); font-size: 1rem; }
.tbl caption { caption-side: top; text-align: left; padding: 0 0 .8rem;
  color: var(--text-2); font-size: .95rem; }
.tbl th, .tbl td { padding: .95rem 1.1rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--surface-2); font-family: var(--font-display);
  font-weight: 600; letter-spacing: .01em; color: var(--text); }
.tbl tbody th { font-weight: 600; color: var(--text); width: 34%; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl--wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 680px) {
  .tbl, .tbl thead, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl thead { display: none; }
  .tbl tr { border-bottom: 1px solid var(--line-strong); padding: .35rem 0; }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl th, .tbl td { border-bottom: 0; padding: .45rem 1.1rem; }
  .tbl tbody th { width: auto; padding-top: 1rem; color: var(--accent); }
  .tbl td[data-kol]::before { content: attr(data-kol) ": "; font-weight: 600; color: var(--text-2); }
}

.note { display: flex; gap: 1rem; align-items: flex-start; margin: 0;
  background: var(--accent-soft); border: 1px solid var(--line);
  border-left: 5px solid var(--accent); border-radius: var(--r-card);
  padding: 1.3rem 1.5rem; }
.note .ico { color: var(--accent); width: 1.7rem; height: 1.7rem; flex: none; margin-top: .1rem; }
.note h3 { margin: 0 0 .4rem; }
.note p { margin: 0 0 .6rem; }
.note p:last-child { margin-bottom: 0; }

.izvori { list-style: none; margin: 0; padding: 0; font-size: .93rem; color: var(--text-2); }
.izvori li { padding: .3rem 0; }

/* Краткиот одговор на врвот на страницата. Намерно е покрупен од обичен текст:
   тоа е првото нешто што човек го чита и делот што го земаат пребарувачите. */
.odgovor {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-left: 5px solid var(--accent); border-radius: var(--r-card);
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-s);
}
.odgovor h2 {
  font-size: .95rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .6rem;
}
.odgovor p { margin: 0; font-size: clamp(1.1rem, 2.1vw, 1.27rem); line-height: 1.6; max-width: 68ch; }

/* ---------- 19. Видеа ---------- */
.vid-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vid { margin: 0; }
.vid__box {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface-2); box-shadow: var(--shadow-s);
}
.vid__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid figcaption { margin-top: .75rem; font-size: .95rem; color: var(--text-2); }
@media (max-width: 900px) { .vid-grid { grid-template-columns: 1fr; } }

/* ---------- 18. Печатење ---------- */
@media print {
  .hdr, .dock, .hero__bg, .contact__bg, .gal, .lb, .form, .vid-grid { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .hero, .contact { background: #fff; color: #000; }
  .hero::after, .contact::after { display: none; }
  .hero h1, .contact h2, .hero__lead, .contact .section__head p, .reach a, .reach b { color: #000; }
  a[href^="tel"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
