/*
  ==========================================
  КОЧЕВ ЕООД — css/styles.css
  Aesthetic: German-standard clean — bold green, precise sans
  Palette + type sampled from the approved client brochure.
  Sections:
   1. Custom Properties
   2. Reset & Base
   3. Layout & Reveal
   4. Header & Nav
   5. Hero
   6. About
   7. Services
   8. Gallery
   9. Lightbox
  10. Values (Защо да изберете нас)
  11. FAQ
  12. Contact
  13. Footer
  14. Utilities & Reduced Motion
  ==========================================
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Golos+Text:wght@400;500;600;700&display=swap');

/* ==========================================
   1. CUSTOM PROPERTIES
   ========================================== */
:root {
  /* Palette — from brochure */
  --clr-forest:      #14300B;   /* darkest green — hero / gallery / contact ground */
  --clr-green-deep:  #1F3F12;   /* deep green — gradients, header */
  --clr-green:       #2D5A1B;   /* primary green — labels & text on light */
  --clr-leaf:        #5DA130;   /* bright accent green — buttons, chips, icons */
  --clr-leaf-light:  #7BC04C;   /* hover accent */
  --clr-leaf-tint:   rgba(93,161,48,0.12);
  --clr-charcoal:    #181A17;   /* near-black band */
  --clr-ink:         #14240C;   /* darkest text */
  --clr-white:       #FFFFFF;
  --clr-snow:        #F2F6EC;   /* off-white section ground */
  --clr-mist:        #E2EAD8;   /* hairline borders */
  --clr-text:        #1E2A16;
  --clr-text-sec:    #51604A;
  --clr-text-inv:    rgba(238,245,231,0.86);
  --clr-overlay:     rgba(15,32,10,0.92);

  /* Typography */
  --ff-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --ff-body:    'Golos Text', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(2.6rem, 6vw + 0.6rem, 5.4rem);
  --fs-h1:      clamp(2.1rem, 4.5vw + 0.6rem, 4rem);
  --fs-h2:      clamp(1.7rem, 3vw + 0.7rem, 2.7rem);
  --fs-h3:      clamp(1.1rem, 1.6vw + 0.4rem, 1.35rem);
  --fs-body:    clamp(1rem, 1.4vw + 0.2rem, 1.1rem);
  --fs-sm:      clamp(0.875rem, 1.1vw + 0.15rem, 0.97rem);
  --fs-xs:      clamp(0.75rem, 1vw + 0.1rem, 0.84rem);
  --fs-label:   0.72rem;

  /* Fluid spacing */
  --sp-xs:      clamp(0.375rem, 0.8vw,  0.625rem);
  --sp-sm:      clamp(0.75rem,  1.5vw,  1.125rem);
  --sp-md:      clamp(1.25rem,  3vw,    2rem);
  --sp-lg:      clamp(2rem,     4.5vw,  3.5rem);
  --sp-xl:      clamp(2.5rem,   6vw,    5rem);
  --sp-section: clamp(4rem,     10vw,   8rem);

  /* Component */
  --header-h:  clamp(3.5rem, 7vw, 4.5rem);
  --max-width: 1200px;
  --radius-sm: 0.4rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --t-fast:    150ms ease;
  --t-base:    280ms cubic-bezier(0.4,0,0.2,1);
  --t-slow:    560ms cubic-bezier(0.4,0,0.2,1);
}

/* ==========================================
   2. RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-white);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }

a {
  color: var(--clr-green);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1.5px;
}
a:hover, a:focus-visible { color: var(--clr-leaf); }

button { cursor: pointer; font: inherit; border: none; background: none; }

ul, ol { list-style: none; }

address { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--clr-ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

:focus-visible {
  outline: 2px solid var(--clr-leaf);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible { outline: none; }

/* ==========================================
   3. LAYOUT & REVEAL
   ========================================== */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

.section { padding-block: var(--sp-section); }

section[id] { scroll-margin-top: var(--header-h); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ff-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-green);
  margin-bottom: var(--sp-sm);
}
.section-label::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background: var(--clr-leaf);
  border-radius: 2px;
}
.section-label--light { color: var(--clr-leaf-light); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
.reveal-d4 { transition-delay: 0.28s; }
.reveal-d5 { transition-delay: 0.35s; }

/* ==========================================
   4. HEADER & NAV
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--clr-green-deep);
  border-bottom: 1px solid rgba(123,192,76,0.22);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55em;
  text-decoration: none;
  color: var(--clr-white);
  flex-shrink: 0;
  min-height: 44px;
}
.logo-icon {
  height: clamp(2.3rem, 5.5vw, 2.9rem);
  width: auto;
  flex-shrink: 0;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text b {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  letter-spacing: 0.01em;
}
.logo-text small {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--clr-leaf-light);
  margin-top: 0.18em;
}
.logo:hover .logo-text b,
.logo:focus-visible .logo-text b { color: var(--clr-leaf-light); }
.logo:focus-visible { outline-color: var(--clr-leaf); }

/* Narrow phones: shrink the wordmark + tagline so the header never overflows (no horizontal scroll) */
@media (max-width: 400px) {
  .logo-text b { font-size: 1.1rem; }
  .logo-text small { font-size: 0.46rem; letter-spacing: 0.12em; }
  .logo-icon { height: 2.1rem; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 0.7em;
  font-family: var(--ff-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(238,245,231,0.62);
  white-space: nowrap;
  min-height: 44px;
  transition: color var(--t-fast);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--clr-white); }
.nav-link:focus-visible { outline: none; }

@keyframes nav-bubble {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.nav-link.nav-bubbling {
  animation: nav-bubble 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (max-width: 900px) {
  .nav-link.nav-bubbling { animation: none; }
}

.nav-cta {
  background: var(--clr-leaf) !important;
  color: var(--clr-ink) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  padding-inline: var(--sp-sm) !important;
  margin-left: var(--sp-xs);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-cta:hover, .nav-cta:focus-visible {
  background: var(--clr-leaf-light) !important;
  color: var(--clr-ink) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.hamburger:hover { background: rgba(255,255,255,0.08); }

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: flex; }

  #main-nav {
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    background: var(--clr-green-deep);
    border-bottom: 1px solid rgba(123,192,76,0.18);
    box-shadow: 0 8px 32px rgba(11,28,19,0.45);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-base);
  }
  #main-nav.nav-open { max-height: 82svh; overflow-y: auto; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-xs) var(--sp-md) var(--sp-sm);
  }
  .nav-link {
    width: 100%;
    padding: var(--sp-sm) var(--sp-xs);
    border-bottom: 1px solid rgba(123,192,76,0.12);
    border-radius: 0;
    min-height: 48px;
    color: rgba(238,245,231,0.74);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-cta {
    margin: var(--sp-xs) 0 0 !important;
    border-radius: var(--radius-sm) !important;
    justify-content: center;
    border-bottom: none !important;
  }
}

/* ==========================================
   5. HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 85% 0%, #28521A 0%, transparent 55%),
    linear-gradient(160deg, var(--clr-green-deep) 0%, var(--clr-forest) 70%);
  color: var(--clr-white);
  overflow: hidden;
}

/* Full-bleed interior photo + green overlay for text legibility */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg,
      rgba(13,27,9,0.92) 0%,
      rgba(15,30,10,0.74) 24%,
      rgba(18,36,12,0.40) 50%,
      rgba(22,44,15,0.16) 76%,
      rgba(24,46,16,0.06) 100%),
    linear-gradient(180deg,
      rgba(13,27,9,0.30) 0%,
      transparent 26%,
      rgba(13,27,9,0.48) 100%),
    url("../assets/img/hero-interior.jpg") center 38% / cover no-repeat;
  /* Serve WebP where supported; the JPG rule above is the fallback for old browsers */
  background:
    linear-gradient(90deg,
      rgba(13,27,9,0.92) 0%,
      rgba(15,30,10,0.74) 24%,
      rgba(18,36,12,0.40) 50%,
      rgba(22,44,15,0.16) 76%,
      rgba(24,46,16,0.06) 100%),
    linear-gradient(180deg,
      rgba(13,27,9,0.30) 0%,
      transparent 26%,
      rgba(13,27,9,0.48) 100%),
    image-set(
      url("../assets/img/hero-interior.webp") type("image/webp"),
      url("../assets/img/hero-interior.jpg") type("image/jpeg"))
      center 38% / cover no-repeat;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  top: -14%; right: -8%;
  width: clamp(340px, 50vw, 680px);
  height: clamp(340px, 50vw, 680px);
  border: 1px solid rgba(123,192,76,0.16);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -2%; right: 4%;
  width: clamp(220px, 33vw, 440px);
  height: clamp(220px, 33vw, 440px);
  border: 1px solid rgba(123,192,76,0.10);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  align-content: center;
  gap: var(--sp-xl);
  padding-block: var(--sp-xl);
  width: 100%;
}

/* Staggered entrance */
.hero-main > * {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-in 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-main > *:nth-child(1) { animation-delay: 0.05s; }
.hero-main > *:nth-child(2) { animation-delay: 0.16s; }
.hero-main > *:nth-child(3) { animation-delay: 0.27s; }
.hero-main > *:nth-child(4) { animation-delay: 0.38s; }
.hero-main > *:nth-child(5) { animation-delay: 0.49s; }
@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

/* German-experience chip */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.45em 0.95em 0.45em 0.55em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(123,192,76,0.34);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-leaf-light);
  margin-bottom: var(--sp-md);
}
.hero-chip .flag {
  display: inline-grid;
  grid-template-rows: repeat(3, 1fr);
  width: 1.5em;
  height: 1.05em;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-chip .flag i { display: block; }
.hero-chip .flag i:nth-child(1) { background: #1A1A1A; }
.hero-chip .flag i:nth-child(2) { background: #D7141A; }
.hero-chip .flag i:nth-child(3) { background: #FFCE00; }
.hero-chip b { color: var(--clr-white); font-weight: 700; }

.hero-title {
  color: var(--clr-white);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero-title em {
  font-style: normal;
  color: var(--clr-leaf-light);
  position: relative;
  white-space: nowrap;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw + 0.2rem, 1.2rem);
  font-weight: 400;
  color: rgba(238,245,231,0.78);
  margin-top: var(--sp-md);
  max-width: 50ch;
  line-height: 1.7;
}

.hero-cta-row {
  margin-top: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.hero-phone {
  margin-top: var(--sp-md);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45em 0.9em;
}
.hero-phone-num {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--clr-white);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.4vw + 0.3rem, 1.4rem);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.hero-phone-num:hover { color: var(--clr-leaf-light); }
.hero-phone-num svg { width: 1.3em; height: 1.3em; color: var(--clr-leaf); flex-shrink: 0; }

.hero-channels { display: inline-flex; align-items: center; gap: 0.5em; }
.chan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.chan svg { width: 1.15rem; height: 1.15rem; }
.chan--wa { background: #25D366; }
.chan--vb { background: #7360F2; }
.chan:hover, .chan:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.32);
  outline: none;
}

/* Circular trust seal */
.hero-seal {
  width: clamp(184px, 19vw, 248px);
  height: clamp(184px, 19vw, 248px);
  flex-shrink: 0;
  opacity: 0;
  /* Solid stamp badge — legible over the bright photo, reads as intentional */
  border-radius: 50%;
  background: var(--clr-green-deep);
  border: 1px solid rgba(123,192,76,0.30);
  box-shadow: 0 16px 44px rgba(11,28,19,0.42);
  animation: hero-in 0.9s cubic-bezier(0.22,1,0.36,1) 0.5s forwards;
}
.hero-seal svg { width: 100%; height: 100%; overflow: visible; }
.seal-rotate {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: seal-spin 34s linear infinite;
}
@keyframes seal-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  /* Heavier overlay — text is centered over the photo on small screens */
  .hero-bg {
    background:
      linear-gradient(180deg,
        rgba(13,27,9,0.74) 0%,
        rgba(15,30,10,0.58) 42%,
        rgba(13,27,9,0.72) 100%),
      url("../assets/img/hero-interior.jpg") center / cover no-repeat;
    background:
      linear-gradient(180deg,
        rgba(13,27,9,0.74) 0%,
        rgba(15,30,10,0.58) 42%,
        rgba(13,27,9,0.72) 100%),
      image-set(
        url("../assets/img/hero-interior.webp") type("image/webp"),
        url("../assets/img/hero-interior.jpg") type("image/jpeg"))
        center / cover no-repeat;
  }
  .hero-grid { grid-template-columns: 1fr; justify-items: center; }
  .hero-main { width: 100%; }
  .hero-seal {
    justify-self: center;
    margin-top: var(--sp-lg);
    width: clamp(190px, 56vw, 240px);
    height: clamp(190px, 56vw, 240px);
  }
}

/* Trust strip below hero */
.hero-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(123,192,76,0.18);
  background: rgba(0,0,0,0.18);
}
.hero-strip ul {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm) var(--sp-lg);
}
.hero-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(238,245,231,0.82);
}
.hero-strip li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-leaf);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  font-family: var(--ff-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  min-height: 46px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--clr-leaf);
  border-color: var(--clr-leaf);
  color: var(--clr-ink);
  box-shadow: 0 8px 22px rgba(93,161,48,0.28);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--clr-leaf-light);
  border-color: var(--clr-leaf-light);
  color: var(--clr-ink);
  box-shadow: 0 10px 30px rgba(93,161,48,0.42);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(238,245,231,0.32);
  color: rgba(238,245,231,0.88);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--clr-leaf-light);
  color: var(--clr-leaf-light);
}

/* ==========================================
   6. ABOUT
   ========================================== */
.about {
  background: var(--clr-snow);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: 'ЧИСТО';
  position: absolute;
  top: -0.1em;
  right: -0.04em;
  font-family: var(--ff-display);
  font-size: clamp(6rem, 22vw, 20rem);
  font-weight: 800;
  color: var(--clr-green);
  opacity: 0.04;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.about .container { position: relative; z-index: 1; }

.about-header { max-width: 760px; margin-bottom: var(--sp-xl); }
.about-header h2 { margin-top: var(--sp-xs); }

.about-intro {
  font-size: clamp(1.05rem, 1.5vw + 0.2rem, 1.22rem);
  color: var(--clr-text-sec);
  line-height: 1.85;
  margin-top: var(--sp-sm);
}
.about-intro strong { color: var(--clr-green); font-weight: 600; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--clr-mist);
  margin-top: var(--sp-xl);
}

.stat-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-lg) var(--sp-md) var(--sp-md);
  border-right: 1px solid var(--clr-mist);
  transition: background var(--t-base);
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: var(--clr-leaf-tint); }

.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  color: var(--clr-leaf);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  margin-top: var(--sp-xs);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-sec);
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--clr-mist); }
  .stat-card:last-child { border-bottom: none; }
}

/* ==========================================
   7. SERVICES
   ========================================== */
.services { background: var(--clr-white); }

.services-header {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-md);
  border-bottom: 2px solid var(--clr-mist);
}
.services-header h2 { margin-top: var(--sp-xs); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 1px;
  background: var(--clr-mist);
  border: 1px solid var(--clr-mist);
}

.service-card {
  position: relative;
  padding: var(--sp-lg) var(--sp-md);
  background: var(--clr-white);
  overflow: hidden;
  transition: background var(--t-base), transform var(--t-base);
}
.service-card:hover { background: var(--clr-snow); }

.svc-num {
  position: absolute;
  top: -0.18em;
  right: 0;
  font-family: var(--ff-display);
  font-size: clamp(4.5rem, 11vw, 8rem);
  font-weight: 800;
  color: var(--clr-green);
  opacity: 0.05;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  transition: opacity var(--t-base);
}
.service-card:hover .svc-num { opacity: 0.09; }

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
  background: var(--clr-leaf-tint);
  border-radius: var(--radius-md);
  transition: background var(--t-base);
}
.service-card:hover .service-icon { background: rgba(93,161,48,0.20); }
.service-icon img { width: 30px; height: 30px; }

.service-card h3 {
  font-size: clamp(1.15rem, 1.6vw + 0.25rem, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--clr-ink);
  margin-bottom: var(--sp-xs);
}
.service-card p {
  font-size: var(--fs-sm);
  color: var(--clr-text-sec);
  line-height: 1.75;
}

/* CTA card filling the final grid slot */
.service-card--cta,
.service-card--cta:hover {
  background: var(--clr-green-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-xs);
}
.service-card--cta h3 { color: var(--clr-white); }
.service-card--cta p  { color: rgba(238,245,231,0.78); }
.service-card--cta .btn {
  align-self: flex-start;
  margin-top: var(--sp-sm);
}

/* ==========================================
   8. GALLERY
   ========================================== */
.gallery {
  background:
    linear-gradient(160deg, var(--clr-green-deep) 0%, var(--clr-forest) 100%);
  color: var(--clr-white);
}

.gallery-header { margin-bottom: var(--sp-xl); }
.gallery-header h2 { color: var(--clr-white); margin-top: var(--sp-xs); }

.section-intro {
  font-size: var(--fs-sm);
  color: rgba(238,245,231,0.7);
  max-width: 58ch;
  margin-top: var(--sp-sm);
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.3vw, 1rem);
}
@media (max-width: 880px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  padding: 0;
  display: block;
  background: var(--clr-forest);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,0.55);
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
/* permanent ring + depth scrim so even dark (video) posters read as tiles */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(20,48,11,0.04) 0%, transparent 45%, rgba(8,18,5,0.42) 100%);
  pointer-events: none;
  transition: background var(--t-base), box-shadow var(--t-base);
  z-index: 1;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform var(--t-slow), opacity var(--t-base);
}
/* the tile's own click handler opens the lightbox — let clicks pass through the video */
.gallery-item video { pointer-events: none; }
.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px -16px rgba(0,0,0,0.7);
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); opacity: 1; }
.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  box-shadow: inset 0 0 0 1.5px rgba(123,192,76,0.55);
  background: linear-gradient(180deg, rgba(20,48,11,0.08) 0%, transparent 35%, rgba(8,18,5,0.6) 100%);
}
.gallery-item:focus-visible { outline: 2px solid var(--clr-leaf); outline-offset: 3px; }

/* staggered reveal, re-triggered on each page change */
@keyframes galleryReveal {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.gallery-grid .gallery-item.g-reveal { animation: galleryReveal 0.55s cubic-bezier(0.2,0.7,0.2,1) both; }

/* Carousel paging — items outside the current page are hidden (beats .gallery-item display) */
.gallery-grid .gallery-item[hidden],
.gallery-grid .gallery-filler[hidden] { display: none; }

/* Invisible filler cells keep every page the same height (desktop). Phones drop them. */
.gallery-grid .gallery-filler {
  aspect-ratio: 3 / 2;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 767px) { .gallery-grid .gallery-filler { display: none; } }

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--clr-leaf-light);
  padding: var(--sp-lg);
}

/* caption */
.gallery-item-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-sm);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
}
.gallery-item:hover .gallery-item-caption,
.gallery-item:focus-visible .gallery-item-caption { opacity: 1; transform: none; }
.gallery-item-caption span {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(238,245,231,0.95);
}

/* video tile */
.video-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 3;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.6rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-forest);
  background: var(--clr-leaf-light);
  padding: 0.34em 0.6em;
  border-radius: 999px;
}
.play-badge {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.play-badge-btn {
  width: clamp(2.9rem, 7vw, 3.9rem);
  height: clamp(2.9rem, 7vw, 3.9rem);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(20,48,11,0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1.5px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 26px rgba(0,0,0,0.5);
  transition: transform var(--t-base), background var(--t-base), border-color var(--t-base);
}
.play-badge-btn svg { width: 38%; height: 38%; fill: #fff; margin-left: 8%; }
.gallery-item:hover .play-badge-btn,
.gallery-item:focus-visible .play-badge-btn {
  transform: scale(1.1);
  background: var(--clr-leaf);
  border-color: var(--clr-leaf);
}

/* pager: arrows + dots */
.gallery-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}
.gallery-arrow {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(123,192,76,0.45);
  background: rgba(123,192,76,0.06);
  color: var(--clr-white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-fast);
}
.gallery-arrow svg { width: 1.4rem; height: 1.4rem; }
.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--clr-leaf);
  border-color: var(--clr-leaf);
  color: #fff;
  transform: translateY(-2px);
}
.gallery-arrow:active { transform: scale(0.93); }
.gallery-dots { display: flex; align-items: center; gap: 0.5rem; }
.gallery-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(123,192,76,0.32);
  cursor: pointer;
  transition: background var(--t-base), width var(--t-base);
}
.gallery-dot:hover { background: var(--clr-leaf); }
.gallery-dot.is-active { width: 1.6rem; background: var(--clr-leaf-light); }

/* ==========================================
   9. LIGHTBOX
   ========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: var(--clr-overlay);
  backdrop-filter: blur(6px);
}
.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  width: 100%;
  max-width: min(96vw, 1280px);
  padding-inline: var(--sp-xs);
}
.lightbox-media-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-media {
  max-width: 100%;
  max-height: 85svh;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.lightbox-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.lightbox-btn:hover, .lightbox-btn:focus-visible {
  background: rgba(93,161,48,0.28);
  border-color: var(--clr-leaf);
  outline: none;
}
.lightbox-btn svg { width: 24px; height: 24px; }
.lightbox-close {
  position: absolute;
  top: clamp(-3rem, -5vw, -2.5rem);
  right: 0;
  z-index: 2;
}
.lightbox-prev { order: -1; }
.lightbox-next { order:  1; }

/* lightbox entrance + caption/counter */
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbPop  { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
.lightbox:not([hidden]) { animation: lbFade 0.2s ease; }
.lightbox:not([hidden]) .lightbox-inner { animation: lbPop 0.3s cubic-bezier(0.2,0.7,0.2,1); }
.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: clamp(-3rem, -5vw, -2.6rem);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  color: rgba(238,245,231,0.8);
  white-space: nowrap;
}
.lightbox-count {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clr-leaf-light);
}
@media (prefers-reduced-motion: reduce) {
  .lightbox:not([hidden]),
  .lightbox:not([hidden]) .lightbox-inner { animation: none; }
}

/* ==========================================
   10. VALUES (Защо да изберете нас)
   ========================================== */
.values { background: var(--clr-snow); }

.values-header { max-width: 720px; margin-bottom: var(--sp-xl); }
.values-header h2 { margin-top: var(--sp-xs); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--sp-md);
}

.value-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-mist);
  border-radius: var(--radius-md);
  padding: var(--sp-lg) var(--sp-md);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(93,161,48,0.4);
  box-shadow: 0 16px 40px rgba(20,48,11,0.08);
}

.value-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--clr-leaf-tint);
  color: var(--clr-green);
  margin-bottom: var(--sp-md);
}
.value-icon svg { width: 26px; height: 26px; }

.value-card h3 {
  font-size: clamp(1.05rem, 1.4vw + 0.2rem, 1.25rem);
  font-weight: 700;
  color: var(--clr-ink);
  margin-bottom: var(--sp-xs);
}
.value-card p {
  font-size: var(--fs-sm);
  color: var(--clr-text-sec);
  line-height: 1.75;
}

/* ==========================================
   11. FAQ
   ========================================== */
.faq { background: var(--clr-white); }

.faq h2 { margin-top: var(--sp-xs); }

.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 32rem), 1fr));
  gap: 0;
  margin-top: var(--sp-xl);
  border-top: 1px solid var(--clr-mist);
}

.faq-item {
  padding: var(--sp-md) var(--sp-sm);
  border-bottom: 1px solid var(--clr-mist);
  transition: background var(--t-fast), padding-left var(--t-base);
}
.faq-item:hover {
  background: var(--clr-leaf-tint);
  padding-left: var(--sp-md);
}
.faq-item h3 {
  font-size: clamp(1.05rem, 1.5vw + 0.2rem, 1.25rem);
  font-weight: 700;
  color: var(--clr-ink);
  margin-bottom: var(--sp-xs);
  line-height: 1.35;
}
.faq-item p {
  font-size: var(--fs-sm);
  color: var(--clr-text-sec);
  line-height: 1.8;
}

/* ==========================================
   12. CONTACT
   ========================================== */
.contact { background: var(--clr-snow); }

#kontakti.contact { padding-block-start: var(--sp-md); padding-block-end: var(--sp-xl); }

.contact h2 {
  margin-top: var(--sp-xs);
  font-size: clamp(1.5rem, 2.2vw + 0.5rem, 2.1rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
  margin-top: var(--sp-sm);
}

@media (max-width: 767px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form { order: -1; }
}

.contact-details {
  background:
    linear-gradient(160deg, var(--clr-green-deep) 0%, var(--clr-forest) 100%);
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  color: var(--clr-text-inv);
}

.contact-details-title {
  font-size: clamp(1.2rem, 2vw + 0.3rem, 1.55rem);
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid rgba(123,192,76,0.2);
}

.nap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.nap-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: rgba(238,245,231,0.7);
}
.nap-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.1em;
  color: var(--clr-leaf-light);
}
.nap-item a {
  color: rgba(238,245,231,0.9);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.nap-item a:hover { color: var(--clr-leaf-light); }
.nap-item span { color: rgba(238,245,231,0.72); }
.nap-item b { color: var(--clr-white); font-weight: 600; }
.nap-channels {
  display: inline-flex;
  gap: 0.5em;
  margin-top: 0.2em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-leaf-light);
  letter-spacing: 0.04em;
}

.map-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(123,192,76,0.2);
}
.map-embed {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: var(--radius-md);
}

.contact-form { display: flex; flex-direction: column; gap: var(--sp-sm); }
.form-group { display: flex; flex-direction: column; gap: 0.4em; }

.form-label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-sec);
}
.form-label span { color: var(--clr-leaf); margin-left: 0.1em; }

.form-input {
  padding: 0.9em 1.1em;
  border: 1px solid var(--clr-mist);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  font-family: var(--ff-body);
  color: var(--clr-text);
  background: var(--clr-white);
  width: 100%;
  min-height: 46px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--clr-leaf);
  box-shadow: 0 0 0 3px rgba(93,161,48,0.14);
}
.form-input.field-invalid {
  border-color: #b91c1c;
  background: rgba(185,28,28,0.02);
}
.form-textarea { resize: vertical; min-height: 8rem; }

.field-error {
  font-size: var(--fs-xs);
  color: #b91c1c;
  min-height: 1.2em;
}
.form-feedback {
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.form-success {
  background: var(--clr-leaf-tint);
  color: var(--clr-green);
  border: 1px solid rgba(93,161,48,0.28);
}
.form-error-box {
  background: rgba(185,28,28,0.05);
  color: #b91c1c;
  border: 1px solid rgba(185,28,28,0.2);
}

/* ==========================================
   13. FOOTER
   ========================================== */
.site-footer {
  background: var(--clr-charcoal);
  color: rgba(238,245,231,0.55);
  padding-block: var(--sp-xl) var(--sp-lg);
  border-top: 3px solid var(--clr-leaf);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-lg);
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-nap { grid-column: 1 / -1; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: var(--sp-sm);
  color: var(--clr-white);
}
.footer-brand b {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.footer-brand small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--clr-leaf-light);
  margin-top: 0.35em;
}
.site-footer address p {
  font-size: var(--fs-sm);
  margin-bottom: 0.35em;
  line-height: 1.65;
}
.site-footer a { color: rgba(238,245,231,0.7); text-decoration: underline; text-underline-offset: 0.22em; }
.site-footer a:hover { color: var(--clr-leaf-light); }

.footer-social strong,
.footer-legal strong {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238,245,231,0.32);
  margin-bottom: var(--sp-sm);
}
.footer-social ul { display: flex; flex-direction: column; gap: var(--sp-xs); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-sm);
  text-decoration: none;
  width: fit-content;
}
.footer-social .social-ico {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: currentColor;
  transition: transform 0.15s ease;
}
.footer-social a .label {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.footer-social a:hover .label { color: var(--clr-leaf-light); }
.footer-social a:hover .social-ico { transform: translateY(-1px) scale(1.08); }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  align-items: flex-start;
}
.footer-legal p { font-size: var(--fs-xs); opacity: 0.5; }

.footer-tagline {
  grid-column: 1 / -1;
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238,245,231,0.55);
}
.footer-tagline span { display: inline-flex; align-items: center; gap: 0.9em; }
.footer-tagline span::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--clr-leaf);
}
.footer-tagline span:last-child::after { display: none; }

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1.1em;
  background: transparent;
  border: 1px solid rgba(123,192,76,0.3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--clr-leaf-light) !important;
  min-height: 40px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.back-to-top:hover {
  border-color: var(--clr-leaf);
  background: rgba(93,161,48,0.12);
  color: var(--clr-leaf-light) !important;
}

/* ==========================================
   14. UTILITIES & REDUCED MOTION
   ========================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-main > *, .hero-seal { opacity: 1; transform: none; animation: none; }
  .seal-rotate { animation: none; }
}
