/* ==========================================================================
   Пилана Поп Мак — static rebuild. Plain CSS, mobile-first.
   Values below were measured/read from the original theme
   and the live site.  1rem = 15px (html font-size: 15px).
   ========================================================================== */

/* ---------- Design values ---------- */
:root {
  --c-primary: #6D9105;      /* header, buttons, icons */
  --c-secondary: #9DBD11;    /* hover, active menu item */
  --c-accessible: #5f7e04;   /* header, buttons, text links: 4.7:1 with white (CHANGES.md) */
  --c-nav-active: #445c03;   /* active / hover menu item: 6.9:1 with white */
  --c-dark: #19191a;         /* dark rows, footer contact block */
  --c-text: #434955;         /* body text, headings */
  --c-para: #495057;         /* paragraphs */
  --c-line: #cccccc;         /* thin divider lines */
  --c-footer-muted: #cccccc;
  --c-footer-link: #495057;
  --c-social-bg: #f2f3f5;
  --c-social-fb: #42599e;
  --c-body-bg: #e3e8e8;
  --c-link-on-cream: #445c03;/* footer / strip phone + e-mail links: 7.6:1 on white */
  --font: 'Montserrat', sans-serif;
  --font-script: 'Pacifico', cursive;
  --page-w: 1140px;
  --side: 1.5rem;            /* section side padding (37.5px from 601px) */
  --gap: 1.5rem;             /* column gutter */
  --header-h: 50px;
  --logo-h: 40px;
}

/* ---------- Fonts ----------
   Montserrat + Pacifico: Latin + Cyrillic only (cut from the official .ttf files).
   Icons: the original Font Awesome 5 / "Defaults" fonts, cut down to the glyphs used. */
@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/montserrat-regular.woff') format('woff'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/montserrat-bold.woff') format('woff'); }
@font-face { font-family: 'Pacifico'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/pacifico-regular.woff') format('woff'); }
@font-face { font-family: 'FA Solid'; font-weight: 900; font-style: normal; font-display: swap;
  src: url('../fonts/fa-solid-subset.woff') format('woff'); }
@font-face { font-family: 'FA Brands'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/fa-brands-subset.woff') format('woff'); }
@font-face { font-family: 'Defaults'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/Defaults-subset.woff') format('woff'); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; line-height: 25px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--c-body-bg); color: var(--c-text); font-family: var(--font); font-weight: 400; overflow-x: hidden; }
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--c-secondary); text-decoration: none; }
a:hover { color: var(--c-secondary); }
main p a, main p a:hover { color: var(--c-accessible); }
strong { font-weight: 700; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font); font-weight: 400; line-height: 1.4; margin: 0 0 1rem; color: var(--c-text); }
h1, .h1 { font-size: 30px; } h2, .h2 { font-size: 26px; } h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 22px; } h5, .h5 { font-size: 20px; } h6, .h6 { font-size: 18px; }
p { margin: 0 0 1.5rem; color: var(--c-para); font-size: 16px; }
ul { margin: 0; padding: 0; list-style: none; }

/* Icons */
.fas, .fab, [class^="df-"], [class*=" df-"] { display: inline-block; font-style: normal; font-weight: 400; line-height: 1; text-rendering: auto; -webkit-font-smoothing: antialiased; }
.fas { font-family: 'FA Solid'; font-weight: 900; }
.fab { font-family: 'FA Brands'; }
[class^="df-"], [class*=" df-"] { font-family: 'Defaults'; }
.fa-chevron-down::before { content: "\f078"; } .fa-tree::before { content: "\f1bb"; }
.fa-stream::before { content: "\f550"; } .fa-trash-alt::before { content: "\f2ed"; }
.fa-dumbbell::before { content: "\f44b"; } .fa-hand-holding-usd::before { content: "\f4c0"; }
.fa-user-alt::before { content: "\f406"; } .fa-angle-up::before { content: "\f106"; }
.fa-angle-left::before { content: "\f104"; } .fa-angle-right::before { content: "\f105"; }
.fa-facebook-f::before { content: "\f39e"; }
.df-phone::before { content: "\f095"; } .df-envelope::before { content: "\f003"; }
.df-marker::before { content: "\f041"; } .df-clock::before { content: "\f017"; }
.df-check::before { content: "\f00c"; } .df-users::before { content: "\f0c0"; }
.df-chart::before { content: "\f201"; }

/* ---------- Layout helpers ---------- */
.canvas { background: #fff; }
.sec { position: relative; padding-left: var(--side); padding-right: var(--side); }
.sec__in { position: relative; max-width: var(--page-w); margin: 0 auto; padding: 1.5rem 0; }
.sec--small > .sec__in { padding: 1.5rem 0; }
.sec--auto > .sec__in { padding-top: 0; padding-bottom: 0; }
.sec--full { padding-left: 0; padding-right: 0; overflow: hidden; }
.sec--full > .sec__in { max-width: none; }
.sec--dark { background: var(--c-dark); }
.sec--bg::before { content: ""; position: absolute; inset: 0; background: center / cover no-repeat var(--bg-sm, var(--bg-img)); background-position: var(--bg-pos, 50% 50%); }
.sec--overlay::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, .3); }
.sec--bg > .sec__in { z-index: 1; }

.row { display: flex; flex-wrap: wrap; margin: 0 calc(var(--gap) * -1); }
.col { width: 100%; padding: 0 var(--gap); margin-bottom: 1rem; }
.col:last-child { margin-bottom: 0; }
.col--fill { padding-top: var(--gap); padding-bottom: var(--gap); }
.center { text-align: center; }
.justify { text-align: justify; }
.white, .white h2, .white p { color: #fff; }
.sp-30 { height: 30px; } .sp-32 { height: 32px; } .sp-100 { height: 100px; } .sp-120 { height: 120px; }
.only-wide { display: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 111; height: var(--header-h);
  background: var(--c-accessible); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  transition: height .3s, background-color .3s; }
.site-header__in { display: flex; align-items: center; justify-content: space-between;
  max-width: var(--page-w); height: 100%; margin: 0 auto; }
.site-header { padding: 0 1rem; }
.logo { display: block; line-height: 0; }
.logo img { height: var(--logo-h); width: auto; transition: height .3s; }
.nav-toggle { display: block; width: 44px; height: 50px; margin-right: -.8rem; padding: 0 .8rem; background: none; border: 0; color: inherit; cursor: pointer; }
.nav-toggle__icon { position: relative; display: block; width: 20px; height: 100%; margin: 0 auto; }
.nav-toggle__icon i, .nav-toggle__icon i::before, .nav-toggle__icon i::after { content: ""; position: absolute; display: block; width: 20px; height: 0; border-bottom: 3px solid; }
.nav-toggle__icon i { top: 50%; transform: translateY(-50%); transition: transform .15s cubic-bezier(0, 1, .8, 1); }
.nav-toggle__icon i::before { top: -7px; transition: top .15s cubic-bezier(0, 1, .8, 1) .15s, opacity .15s cubic-bezier(0, 1, .8, 1); }
.nav-toggle__icon i::after { top: 7px; transition: top .15s cubic-bezier(0, 1, .8, 1) .15s, transform .15s cubic-bezier(0, 1, .8, 1); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i { transform: translateY(-50%) rotate(45deg); transition-delay: .15s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i::before { top: 0; opacity: 0; transition: top .15s cubic-bezier(0, 1, .8, 1), opacity .15s cubic-bezier(0, 1, .8, 1) .15s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i::after { top: 0; transform: rotate(90deg); transition: top .15s cubic-bezier(0, 1, .8, 1), transform .15s cubic-bezier(0, 1, .8, 1) .15s; }
.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 0 2rem; background: var(--c-accessible); box-shadow: 0 3px 3px rgba(0, 0, 0, .1); }
.nav.is-open { display: block; }
.nav a { display: block; padding: .7rem; font-size: 15px; line-height: 1.6em; color: #fff; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { background: var(--c-nav-active); color: #fff; }

main { display: block; padding-top: var(--header-h); }
main [id] { scroll-margin-top: 50px; }

/* ---------- Hero (homepage) ---------- */
/* Text position copied from the slider's layer settings: grid widths 1240/1024/778/480,
   x = centre + offset, y = top + offset, everything scales with the hero width (--u = one grid px). */
.hero { position: relative; width: 100%; aspect-ratio: 480 / 720; overflow: hidden; background: #000; container-type: inline-size;
  --gw: 480; --ho: 10; --vo: 146; --fs: 70; --lw: 446; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__title { --u: min(1px, calc(100cqw / var(--gw))); position: absolute; left: 50%; top: calc(var(--vo) * var(--u)); width: calc(var(--lw) * var(--u)); margin: 0;
  transform: translateX(calc(-50% + var(--ho) * var(--u)));
  font-family: var(--font-script); font-weight: 400; font-size: calc(var(--fs) * var(--u)); line-height: calc(var(--fs) * var(--u)); color: #fff; text-align: left; }

/* ---------- Page title band (sub pages) ---------- */
.band h1 { margin: 0 0 1.5rem; padding-bottom: 15px; color: #fff; font-weight: 700; text-align: center; }
.band__arrow { display: block; width: min(375px, 100%); margin: 0 auto; text-align: center; font-size: 30px; line-height: 30px; color: #fff; }
.band__arrow:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 0 1.8em; font-size: 15px; line-height: 42px; font-weight: 400; color: #fff; background: var(--c-accessible);
  border: 0; border-radius: .2em; box-shadow: 0 .05em .1em rgba(0, 0, 0, .18); text-align: center; transition: background-color .3s, color .3s, box-shadow .3s; }
.btn:hover, .btn:focus-visible { background: #fff; color: var(--c-accessible); box-shadow: inset 0 0 0 2px var(--c-accessible); }
.btn-wrap { text-align: left; }
.btn-wrap--center { text-align: center; }

/* ---------- Homepage rows ---------- */
.strip { background: #fff; }
.strip .h6 { margin: 0; text-align: center; }
.strip a, .strip a:hover { color: var(--c-link-on-cream); text-decoration: none; }
.social { display: flex; justify-content: center; }
.social a, .social a:hover { display: block; width: 50px; height: 50px; line-height: 50px; border-radius: 50%; background: var(--c-social-bg); text-decoration: none; color: var(--c-social-fb); text-align: center; font-size: 20px; }
.social a:hover { background: var(--c-social-fb); color: #fff; }
.company h2 { color: var(--c-para); font-weight: 700; }
.company__img { display: none; background: center / cover no-repeat url('../img/2.webp'); }
.tagline-xs .box { padding: 2% 5%; background: rgba(25, 25, 26, .53); }
.tagline-xs .fill { background: #000 center / cover no-repeat url('../img/Pilana-Pop-Mak-Kavadarci-47-800.webp'); }
.tagline h2, .tagline-xs h2 { color: #fff; font-weight: 700; text-align: center; }
.tagline-img { background: center / cover no-repeat url('../img/Pilana-Pop-Mak-Kavadarci-47.webp'); border: 1px solid var(--c-dark); border-right: 0; }
.waste h2 { font-weight: 700; text-align: left; }
.waste p { text-align: left; }
.waste__img { display: none; background: center / contain no-repeat url('../img/3-e1528893702997.webp'); }
.waste__text { padding: 20px; }
.parallax-h1 { margin: 0 0 1.5rem; padding-bottom: 1rem; color: #fff; font-size: 30px; font-weight: 400; text-align: center; }

/* ---------- Footer ---------- */
.contact-footer { background: #fff; }
.contact-footer .h4 { margin: 0 0 1rem; color: var(--c-link-on-cream); font-weight: 700; text-align: center; }
.contact-list { padding-bottom: 36px; }
.contact-list li { display: flex; align-items: center; margin-bottom: 7px; }
.contact-list__icon { flex: none; margin-right: 10px; padding: 5px 10px; font-size: 26px; line-height: 26px; color: var(--c-accessible); }
.contact-list__text { font-size: 14px; line-height: 24px; }
.contact-list__text { color: var(--c-text); }
.contact-list__text a, .contact-list__text a:hover { font-size: 14px; color: var(--c-link-on-cream); text-decoration: none; }
.contact-list__text .tel { display: block; width: max-content; }
.footer-bottom { background: #fff; }
.footer-bottom p { margin: 0; color: #19191a; text-align: center; }
.footer-bottom a, .footer-bottom a:hover { color: #19191a; }
.toplink { position: fixed; right: 0; bottom: 0; z-index: 99; width: 50px; height: 50px; margin: 10px; border-radius: .3rem; background: rgba(0, 0, 0, .3);
  color: #fff; font-size: 2rem; line-height: 50px; text-align: center; transform: translate3d(0, 5rem, 0); transition: transform .3s, background-color .3s; }
.toplink:hover, .toplink:focus-visible { background: var(--c-primary); color: #fff; }
.toplink.is-active { transform: translate3d(0, 0, 0); }

/* ---------- About (За нас) ---------- */
.kpi { text-align: center; }
.kpi__icon { display: block; font-size: 40px; line-height: 40px; color: var(--c-primary); }
.kpi .h1 { margin: 0 0 1.5rem; font-size: 30px; font-weight: 700; color: var(--c-para); }
.kpi p { text-align: center; }
.story .h3 { margin-bottom: 1.5rem; font-weight: 700; }
.story__head { margin-bottom: 20px; border-bottom: 1px solid var(--c-line); }
.story p { margin-bottom: 20px; text-align: justify; }
.story p:last-child { margin-bottom: 0; }
.iconbox { text-align: center; color: var(--c-text); }
.iconbox a { color: inherit; }
.iconbox__icon { position: relative; display: block; width: 2.5em; height: 2.5em; margin: 0 auto; overflow: hidden; border-radius: 50%; font-size: 36px; line-height: 2.5em; text-align: center; color: var(--c-primary); }
.iconbox__icon i { position: relative; vertical-align: top; line-height: inherit; }
.iconbox--outlined .iconbox__icon { box-shadow: inset 0 0 0 2px var(--c-primary); transition: color .3s, box-shadow .1s .3s; }
.iconbox--outlined .iconbox__icon::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--c-primary); transition: height .3s; }
.iconbox .h4 { transition: color .3s; }
.iconbox--outlined a:hover .h4, .iconbox--outlined a:focus-visible .h4 { color: var(--c-secondary); }
.iconbox--outlined a:hover .iconbox__icon { color: #fff; }
.iconbox--outlined a:hover .iconbox__icon::before { height: 100%; }
.iconbox--solid .iconbox__icon { background: var(--c-primary); color: #fff; font-size: 40px; }
.iconbox .h4, .iconbox .h5 { margin: 0; padding: .6em 0; }
.iconbox .h5 { font-weight: 700; }
.iconbox__text { font-size: 15px; color: var(--c-text); }
.about-boxes { padding-bottom: 40px; }
.slider-pair { background: #fff; }
.slider-pair .col { margin-bottom: 0; }
.slider-pair .col:first-child { padding: 0 1px 1px 0; }
.slider-pair .col:last-child { padding: 1px 0 0 0; }
.slider { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #000; }
.slider__track { display: flex; height: 100%; transition: transform .3s; }
.slider__slide { flex: 0 0 100%; height: 100%; }
.slider__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slider__arrow { position: absolute; top: 50%; z-index: 2; width: 4rem; height: 4rem; margin-top: -2rem; padding: 0; background: none; border: 0; color: #fff; font-size: 3rem; line-height: 4rem; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); cursor: pointer; opacity: 0; transition: opacity .3s linear; }
.slider:hover .slider__arrow, .slider__arrow:focus-visible { opacity: 1; }
.slider__arrow--prev { left: 0; } .slider__arrow--next { right: 0; }
.slider__arrow:disabled { display: none; }

/* ---------- Services (Услуги) ---------- */
.service__icon { display: block; margin: 0 auto; padding-bottom: 15px; text-align: center; }
.service__icon img { width: 140px; height: 140px; }
.service .h5 { margin: 0; padding: 10px 5px 5px; border-top: 1px solid var(--c-line); color: var(--c-para); font-weight: 700; text-align: center; }
.service p { margin: 0; padding: 0 10px; text-align: center; }
.tools { padding: 50px 1.5rem; background: center / cover no-repeat url('../img/Pilana-Pop-Mak-Kavadarci-20-800.webp'); }
.tools__row { display: flex; flex-wrap: wrap; margin: 0 -1.5rem; }
.tools__col { width: 100%; padding: 0 1.5rem; margin-bottom: 1rem; }
.tools__img { margin: 0 20px; padding: 50px 20px; background: var(--c-dark); line-height: 0; }
.tools__img img { width: 100%; height: auto; }
.tools h2 { margin: 0; padding: 30px; color: #fff; text-align: center; }

/* ---------- Products + galleries ---------- */
.products__head { margin-bottom: 15px; border-bottom: 1px solid var(--c-line); }
.products .h3 { margin-bottom: 1.5rem; font-weight: 700; }
.check-list li { display: flex; align-items: flex-start; margin-bottom: 7px; }
.check-list__icon { flex: none; margin-right: 10px; padding: 5px 10px; font-size: 26px; line-height: 26px; color: var(--c-secondary); }
.check-list .h6 { margin: 0 0 1.5rem; }
.gallery { display: flex; flex-wrap: wrap; margin: -4px; }
.gallery button { display: block; width: 50%; margin: 0; padding: 4px; border: 0; background: none; line-height: 0; cursor: zoom-in; }
.gallery img { display: block; width: 100%; height: auto; transition: opacity .3s; }
.gallery button:hover img, .gallery button:focus-visible img { opacity: .5; }
.gallery button:focus { outline: none; }

/* ---------- Contact ---------- */
.contact .h1 { margin-bottom: 1.5rem; color: #1c1b1b; font-weight: 700; text-align: center; }
.sep { display: flex; justify-content: center; height: 18px; margin: 37.5px 0; padding: 7.5px 0 7.5px; }
.contact__head { display: table; margin: 0 auto; }
.contact__head .h1 { margin-bottom: 0; }
.sep span { display: block; width: 100%; height: 3px; background: var(--c-secondary); }
.contact p { margin-bottom: 0; text-align: center; }
.map { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(11, 11, 11, .88); }
.lb.is-open { display: flex; }
.lb__img { max-width: calc(100% - 120px); max-height: calc(100% - 80px); box-shadow: 0 0 8px rgba(0, 0, 0, .6); background: #444; }
.lb__btn { position: absolute; width: 50px; height: 50px; padding: 0; background: rgba(0, 0, 0, .35); border: 0; border-radius: 3px; color: #fff; font-size: 28px; line-height: 50px; text-align: center; cursor: pointer; }
.lb__btn:hover, .lb__btn:focus-visible { background: rgba(0, 0, 0, .7); }
.lb__close { top: 12px; right: 12px; font-size: 34px; }
.lb__prev { left: 12px; top: 50%; margin-top: -25px; } .lb__next { right: 12px; top: 50%; margin-top: -25px; }
.lb__count { position: absolute; left: 0; right: 0; bottom: 12px; color: #ccc; font-size: 13px; text-align: center; }
body.lb-open { overflow: hidden; }

/* ---------- 404 ---------- */
.nf { padding: 3rem 0; text-align: center; }

/* ==========================================================================
   Breakpoints (min-width)
   ========================================================================== */

@media (min-width: 481px) {
  .gallery--3 button { width: 33.3333%; }
  .gallery--4 button { width: 25%; }
}

/* Phone only (<= 600): hero, paddings keep the mobile defaults above */
@media (min-width: 481px) { .hero { aspect-ratio: 778 / 960; --gw: 778; --ho: 15; --vo: 159; --fs: 80; --lw: 752; } }

@media (min-width: 601px) {
  :root { --side: 2.5rem; --header-h: 80px; --logo-h: 50px; }
  h1, .h1 { font-size: 40px; } h2, .h2 { font-size: 34px; } h3, .h3 { font-size: 28px; } h4, .h4 { font-size: 24px; }
  h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { margin-bottom: 1.5rem; }
  .sec--small > .sec__in { padding: 2rem 0; }
  .sec__in { padding: 2.5rem 0; }
  .site-header.is-sticky { --header-h: 50px; }
  .toplink { margin: 15px; }
  .kpi .h1 { font-size: 40px; }
  .parallax-h1 { font-size: 50px; }
}

@media (min-width: 768px) {
  .col { margin-bottom: 0; }
  .col-3 { width: 25%; } .col-4 { width: 33.3333%; } .col-6 { width: 50%; } .col-8 { width: 66.6666%; }
  .company__img { display: block; }
  .waste__img { display: block; }
  .tools__col { width: 33.3333%; margin-bottom: 0; }
  .slider-pair .col:first-child { padding: 0 1px 0 0; }
  .slider-pair .col:last-child { padding: 0 0 0 1px; }
  .sec--bg::before { background-image: var(--bg-img); }
  .tools { background-image: url('../img/Pilana-Pop-Mak-Kavadarci-20.webp'); }
}

@media (min-width: 779px) { .hero { aspect-ratio: 1024 / 650; --gw: 1024; --ho: -82; --vo: 108; } }
@media (min-width: 901px) {
  :root { --header-h: 100px; --logo-h: 75px; }
  main [id] { scroll-margin-top: 80px; }
  .site-header { padding: 0 var(--side); }
  .site-header.is-sticky { --header-h: 80px; --logo-h: 65px; }
  .nav-toggle { display: none; }
  .nav { display: block; position: static; padding: 0; background: none; box-shadow: none; }
  .nav ul { display: flex; }
  .nav a { padding: 0 17px; font-size: 15px; line-height: var(--header-h); transition: background-color .3s; }
}
@media (min-width: 992px) {
  .row.only-wide { display: flex; }
  .tagline .col.sec--dark { padding-bottom: calc(var(--gap) + 9px); } /* matches the live height */
  .hide-wide { display: none; }
}
@media (min-width: 1025px) {
  .hero { aspect-ratio: 1240 / 650; --gw: 1240; --ho: -200; --vo: 115; }
  .sec__in { padding: 4rem 0; }
  .sec--small > .sec__in { padding: 2rem 0; }
  .sec--auto > .sec__in { padding-top: 0; padding-bottom: 0; }
}
@media (min-width: 1241px) { .hero { aspect-ratio: auto; height: 650px; } }

/* Parallax (fixed background) only with a mouse, as on the original */
@media (hover: hover) and (pointer: fine) {
  .sec--bg::before { background-attachment: fixed; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
