/* =========================================================
   SUN UKRAINE — Unified & Optimized Responsive Stylesheet
   Mobile-first. Breakpoints: 480 / 640 / 768 / 1024 / 1280
   ========================================================= */

:root {
  /* colors */
  --c-primary: #faa819;
  --c-primary-soft: rgba(250, 168, 25, 0.1);
  --c-primary-soft-2: rgba(250, 168, 25, 0.2);
  --c-dark-green: #173f36;
  --c-dark-green-2: #193e32;
  --c-text: #212931;
  --c-text-muted: #677e77;
  --c-text-muted-2: #6b7280;
  --c-border: #e3e8e5;
  --c-border-2: #e5e7eb;
  --c-bg-soft: #f4f6f4;
  --c-white: #ffffff;

  /* type */
  --font-base: "Inter", "Inter-Regular", Helvetica, Arial, sans-serif;
  --font-medium: "Inter", "Inter-Medium", Helvetica, Arial, sans-serif;
  --font-semibold: "Inter", "Inter-SemiBold", Helvetica, Arial, sans-serif;
  --font-bold: "Inter", "Inter-Bold", Helvetica, Arial, sans-serif;

  /* layout */
  --container-max: 1280px;
  --container-pad: clamp(20px, 5vw, 80px);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-base);
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-dark-green);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* -----------------------------------------------------------
   Reusable components
   ----------------------------------------------------------- */

.icon {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.icon--14 { width: 14px; height: 14px; }
.icon--16 { width: 16px; height: 16px; }

.icon-stack { position: relative; width: 100%; height: 100%; }
.icon-stack img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-radius: 9999px;
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--on-dark {
  background: rgba(250, 168, 25, 0.12);
  backdrop-filter: blur(2px);
}

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section__head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head .badge { margin-bottom: 16px; }
.section__title {
  font-family: var(--font-bold);
  font-weight: 700;
  color: var(--c-text);
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.15;
  margin: 0;
}
.section__subtitle {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--c-text-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* =============================== CUSTOM SPACING =============================== */
#projects {
  padding-bottom: clamp(24px, 4vw, 48px);
}
#catalog {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(24px, 4vw, 48px);
}
.section.process {
  padding-top: clamp(24px, 4vw, 48px);
}

/* ============================================================================== */

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* СТИЛІ ДЛЯ КЛІКАБЕЛЬНИХ КАРТОК (Проєкти та Каталог) */
.project-card, .product-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.project-card:hover, .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--c-primary-soft-2);
}
.project-card:active, .product-card:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-semibold);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid #4a90e2; outline-offset: 2px; }

.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
  width: 100%;
}
@media (min-width: 480px) {
  .btn--lg { width: auto; }
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn--primary:hover { background: #e89710; }

.btn--glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.18); }

.btn--outline {
  background: transparent;
  color: var(--c-text);
  border: 1px solid rgba(33, 41, 49, 0.2);
  padding: 14px 32px;
  font-size: 14px;
}
.btn--outline:hover { background: rgba(33, 41, 49, 0.04); }

.eyebrow {
  font-family: var(--font-medium);
  font-weight: 500;
  color: var(--c-primary);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* =============================== HEADER =============================== */

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border-2);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0; 
}
.header__logo img { 
  height: 28px; 
  width: auto; 
  max-width: none;
  transition: height 0.2s ease; 
}

.header__nav {
  display: none;
}

.header__nav-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 32px;
  padding-left: 32px;
  border-left: 1px solid var(--c-border-2);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 14px;
  color: var(--c-text);
  white-space: nowrap;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__phone--compact span {
  display: none; 
}
@media (min-width: 480px) {
  .header__phone--compact span {
    display: inline; 
  }
}

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.header__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобільне меню та планшети */
@media (max-width: 1023px) {
  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--c-white);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px var(--container-pad) 32px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .header__nav.is-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .header__nav a {
    padding: 14px 4px;
    font-family: var(--font-medium);
    font-weight: 500;
    font-size: 16px;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border-2);
  }
  .header__nav-contacts {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 16px 0 0;
    padding: 20px 0 0;
    border-left: none;
    border-top: 1px solid var(--c-border-2);
  }
}

/* Настільні екрани (Центрування та вирівнювання по краях) */
@media (min-width: 1024px) {
  :root {
    --header-h: 88px; 
  }
  .header__phone--compact {
    display: none !important;
  }
  .header__burger {
    display: none;
  }
  
  .header__inner {
    height: var(--header-h);
    justify-content: space-between; 
  }
  
  .header__logo {
    flex-shrink: 0;
  }
  .header__logo img { 
    height: clamp(18px, 4vw, 26px); 
  }
  
  .header__nav {
    display: flex;
    align-items: center;
    flex: 1; 
    justify-content: center; 
    gap: clamp(2px, 1.5vw, 4px);
    overflow: hidden; 
  }
  
  .header__nav a {
    font-family: var(--font-medium);
    font-weight: 500;
    font-size: clamp(13px, 1.2vw, 15px); 
    color: var(--c-text);
    border-bottom: none;
    padding: 4px 6px; 
    white-space: nowrap;
    transition: color 0.15s ease;
  }
  .header__nav a:hover {
    color: var(--c-primary);
  }
  
  .header__nav-contacts {
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: clamp(4px, 1.5vw, 6px); 
    margin-left: clamp(4px, 2vw, 4px); 
    padding-left: clamp(8px, 2vw, 8px); 
    border-left: 1px solid var(--c-border-2);
    border-top: none;
    padding-top: 0;
  }
  
  .header__phone {
    font-size: clamp(13px, 1.2vw, 14px); 
    white-space: nowrap;
  }
  
  .header__actions {
    flex-shrink: 0;
    margin-left: clamp(12px, 2vw, 14px); 
  }
  
  .header__actions .btn--sm { 
    display: inline-flex; 
    padding: 6px 10px; 
    font-size: 14px;
    white-space: nowrap;
  }
}

/* =============================== HERO =============================== */

.hero {
  position: relative;
  color: #fff;
  padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 10vw, 120px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url(img/slider.png);
  background-size: cover;
  background-position: center;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(23, 63, 54, 0.82) 0%,
    rgba(23, 63, 54, 0.72) 55%,
    rgba(48, 48, 48, 0.55) 100
  );
}
.hero__inner { position: relative; z-index: 1; }

.hero__title {
  margin: 20px 0 0;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero__title-light { color: #fff; }
.hero__title-accent { color: var(--c-primary); }

.hero__text {
  margin: 20px 0 0;
  max-width: 560px;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
  max-width: 320px;
}
@media (min-width: 480px) {
  .hero__actions { flex-direction: row; max-width: none; align-items: center; }
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 56px;
}
.hero__stat-num {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 30px;
  color: var(--c-primary);
  line-height: 1.2;
}
.hero__stat-label {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* =============================== ADVANTAGES =============================== */

.advantages__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .advantages__grid { grid-template-columns: repeat(3, 1fr); }
}

.advantage-card {
  padding: 28px 24px;
  border-color: rgba(227, 232, 229, 0.5);
}
.advantage-card__icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-soft);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.advantage-card__icon img { width: 24px; height: 24px; object-fit: contain; }
.advantage-card__title {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 18px;
  color: var(--c-text);
  margin: 0 0 10px;
}
.advantage-card__text {
  font-size: 14px;
  line-height: 1.63;
  color: var(--c-text-muted);
  margin: 0;
}

/* =============================== STATION TYPES =============================== */

.stations {
  background: var(--c-bg-soft);
}
.stations__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .stations__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .stations__grid { grid-template-columns: repeat(4, 1fr); }
}

.station-card { border-color: var(--c-border-2); display: flex; flex-direction: column; }
.station-card__img {
  position: relative;
  aspect-ratio: 1.6;
  background-size: cover;
  background-position: 50% 50%;
}
.station-card__badge-icon {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 20px;
  height: 20px;
}
.station-card__badge-icon img { width: 100%; height: 100%; object-fit: contain; }
.station-card__body { padding: 20px; }
.station-card__title {
  margin: 8px 0 8px;
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 20px;
  color: var(--c-text);
}
.station-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.63;
  color: var(--c-text-muted-2);
}

/* =============================== PROJECTS SLIDER =============================== */

.slider { position: relative; }
.slider__viewport {
  overflow: hidden;
}
.slider__track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider__track::-webkit-scrollbar { display: none; }

.slider__slide {
  flex: 0 0 85%;
  scroll-snap-align: start;
}
@media (min-width: 560px) {
  .slider__slide { flex-basis: 60%; }
}
@media (min-width: 768px) {
  .slider__slide { flex-basis: 45%; }
}
/* ВАЖЛИВА ЗМІНА ТУТ: Прибрали overflow-x: visible, щоб працював скрол на десктопі */
@media (min-width: 1024px) {
  .slider__slide { flex-basis: calc(25% - 15px); }
}

.project-card { 
  height: 100%; 
  flex-direction: column; 
  border-color: var(--c-border-2); 
}
.project-card__img {
  aspect-ratio: 1.6;
  background-size: cover;
  background-position: 50% 50%;
}
.project-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.project-card__power {
  margin: 0;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 12px;
  color: var(--c-primary);
}
.project-card__power span { letter-spacing: 0.07px; }
.project-card__text {
  margin: 0;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-text);
}

/* ВАЖЛИВА ЗМІНА ТУТ: Видалили приховування кнопок (display:none) на десктопі */
.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.slider__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--c-border-2);
  background: #fff;
  color: var(--c-text);
  cursor: pointer;
  flex-shrink: 0;
}
.slider__arrow:hover { background: var(--c-bg-soft); }
.slider__arrow:disabled { opacity: 0.35; cursor: default; }

.slider__dots { display: flex; align-items: center; gap: 8px; }
.slider__dots button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  background: var(--c-border-2);
  padding: 0;
  cursor: pointer;
}
.slider__dots button.is-active {
  width: 22px;
  background: var(--c-primary);
}

/* =============================== CATALOG =============================== */

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 540px) {
  .catalog__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .catalog__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1180px) {
  .catalog__grid { grid-template-columns: repeat(5, 1fr); }
}

.product-card { 
  padding: 16px; 
  flex-direction: column; 
  gap: 12px; 
}
.product-card__img {
  width: 100%;
  aspect-ratio: 0.83;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.product-card__name {
  margin: 0;
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-dark-green-2);
  flex: 1;
}
.product-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card__price {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 17px;
  color: var(--c-primary);
}
.product-card__stock {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 13px;
  color: #193e32;
}

.catalog__more { display: flex; justify-content: center; margin-top: 36px; }

/* =============================== PROCESS =============================== */

.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}
@media (min-width: 1024px) {
  .process__steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
  .process__steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, rgba(250,168,25,.2) 0%, rgba(250,168,25,1) 50%, rgba(250,168,25,.2) 100%);
    z-index: 0;
  }
}

.process__step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.process__icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--c-dark-green);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.process__icon img {
  position: absolute;
  max-width: 28px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.process__num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: #fff;
  border-radius: 9999px;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 12px;
}

.process__title {
  margin: 0 0 8px;
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 16px;
  color: var(--c-text);
}
.process__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.63;
  color: var(--c-text-muted);
}

/* =============================== CALCULATE CTA =============================== */

.cta-calc {
  position: relative;
  color: #fff;
  padding: clamp(56px, 9vw, 112px) 0;
  overflow: hidden;
}
.cta-calc__bg {
  position: absolute;
  inset: 0;
  background-image: url(img/station-price.png);
  background-size: cover;
  background-position: 50% 50%;
}
.cta-calc__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23,63,54,.85) 0%, rgba(23,63,54,.85) 55%, rgba(48,48,48,.65) 100%);
}
.cta-calc__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-calc__title {
  margin: 16px 0 0;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 48px);
}
.cta-calc__text {
  margin: 16px 0 0;
  max-width: 640px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.cta-calc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 920px;
  margin: 40px 0 36px;
}
@media (min-width: 768px) {
  .cta-calc__grid { grid-template-columns: repeat(3, 1fr); }
}

.glass-card {
  padding: 24px 20px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.glass-card__icon {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  background: rgba(250, 168, 25, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.glass-card__icon img { 
  position: static; 
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}
.glass-card__icon--plain { background: transparent; }
.glass-card__icon--plain img { position: static; width: 100%; height: 100%; object-fit: contain; }

.glass-card__title {
  margin: 0 0 6px;
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 16px;
}
.glass-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

/* =============================== FAQ =============================== */

.faq { background: var(--c-bg-soft); }
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 16px;
  color: var(--c-text);
}
.faq__chevron { transition: transform 0.2s ease; }
.faq__question[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq__answer p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-muted);
}

/* =============================== SEO TEXT =============================== */
.seo-text {
  background: var(--c-bg-soft);
  padding-top: 0;
}
.seo-text__content {
  max-width: 860px;
  margin: 0 auto;
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.65;
}
.seo-text__content p {
  margin: 0 0 16px;
}
.seo-text__content p:last-child {
  margin-bottom: 0;
}
.seo-text__content strong {
  color: var(--c-text);
  font-family: var(--font-semibold);
}
.seo-text__hidden {
  display: none;
  margin-top: 16px;
}
.seo-text__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* =============================== FOOTER =============================== */

.footer {
  background: var(--c-dark-green);
  color: #fff;
  padding-top: clamp(40px, 6vw, 80px);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (min-width: 640px) {
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 32px; }
}

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__col a:hover { color: var(--c-primary); }

.footer__heading {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.7px;
  color: var(--c-primary);
  margin-bottom: 4px;
}

.footer__blurb {
  margin: 0 34px 24px;
  font-size: 14px;
  line-height: 1.63;
  color: rgba(255, 255, 255, 0.85);
  max-width: 280px;
}
.footer__logo { height: 48px; width: auto; }

.footer__city { display: flex; align-items: center; gap: 10px; font-size: 14px; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}
.footer__credit span { color: #fff; }

/* =============================== MODAL & FORM =============================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 63, 54, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__content {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.modal.is-open .modal__content {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-soft);
  border: none;
  border-radius: 50%;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  z-index: 2;
}
.modal__close:hover {
  background: var(--c-border);
  color: var(--c-text);
}

.modal__body {
  padding: 40px 32px;
}
@media (max-width: 480px) {
  .modal__body {
    padding: 32px 20px;
  }
}

.modal__title {
  margin: 0 0 8px;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 24px;
  color: var(--c-text);
  text-align: center;
}

.modal__subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--c-text-muted);
  text-align: center;
  line-height: 1.5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 13px;
  color: var(--c-text);
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 15px;
  color: var(--c-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form__input::placeholder {
  color: #a0aec0;
}
.form__input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft-2);
}

.form__input--textarea {
  resize: vertical;
  min-height: 100px;
}

/* Success Message Styles */
.modal__success {
  text-align: center;
  padding: 20px 0;
}
.modal__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-radius: 50%;
  margin-bottom: 24px;
}
.modal__success-title {
  margin: 0 0 12px;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 22px;
  color: var(--c-text);
}
.modal__success-text {
  margin: 0;
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* =============================== PROJECTS PAGE GRID =============================== */
.projects-page {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 10vw, 120px);
  background: var(--c-bg-soft);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .projects-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (min-width: 1024px) {
  .projects-grid { 
    grid-template-columns: repeat(3, 1fr); 
  }
}

.projects-grid .project-card {
  height: 100%;
}

/* =============================== CATALOG PAGE SPACING =============================== */
.catalog-page {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 10vw, 120px);
  background: var(--c-white);
}


/* =============================== PRODUCT PAGE =============================== */
.product-page {
  padding-top: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(40px, 8vw, 80px);
  background: var(--c-white);
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--c-text-muted);
}
.breadcrumbs a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: var(--c-primary);
}
.breadcrumbs__separator {
  margin: 0 8px;
}
.breadcrumbs__current {
  color: var(--c-text);
  font-weight: 500;
}

/* Product Main Layout */
.product-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 900px) {
  .product-main {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

/* Product Gallery */
.product-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-gallery {
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.product-gallery__main {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-gallery__thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}
.product-gallery__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: transparent;
  padding: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
  border-color: var(--c-primary);
}
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
}
.product-info__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.product-info__sku {
  font-size: 14px;
  color: var(--c-text-muted);
}
.product-info__status {
  background: #e6f4ea;
  color: #1e8e3e;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}
.product-info__title {
  font-family: var(--font-bold);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--c-dark-green);
  line-height: 1.25;
  margin: 0 0 24px;
}
.product-info__price-block {
  margin-bottom: 24px;
}
.product-info__price {
  font-family: var(--font-bold);
  font-size: 36px;
  color: var(--c-text);
}
.product-info__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-border);
}
@media (max-width: 480px) {
  .product-info__actions {
    flex-direction: column;
  }
}

/* Product Short Specs */
.product-short-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-short-specs__item {
  display: flex;
  font-size: 15px;
}
.product-short-specs__label {
  color: var(--c-text-muted);
  width: 160px;
  flex-shrink: 0;
}
.product-short-specs__value {
  color: var(--c-text);
  font-weight: 500;
}

/* Product Details (Description & Extended Specs) */
.product-details {
  background: var(--c-bg-soft);
  padding: clamp(24px, 5vw, 48px);
  border-radius: var(--radius-lg);
}
.product-details__title {
  font-family: var(--font-bold);
  font-size: 24px;
  color: var(--c-dark-green);
  margin: 0 0 20px;
}
.product-details__content {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin-bottom: 48px;
}
.product-details__content p {
  margin-bottom: 16px;
}

/* Product Specs Text List (Formatted as text lines) */
.product-specs-list {
  display: flex;
  flex-direction: column;
}
.product-specs-list__row {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 15px;
}
.product-specs-list__row:last-child {
  border-bottom: none;
}
.product-specs-list__name {
  color: var(--c-text-muted);
  width: 50%;
  padding-right: 16px;
}
.product-specs-list__val {
  color: var(--c-text);
  font-weight: 500;
  width: 50%;
}
@media (max-width: 480px) {
  .product-specs-list__row {
    flex-direction: column;
    gap: 4px;
  }
  .product-specs-list__name,
  .product-specs-list__val {
    width: 100%;
  }
}

/* Related Products */
.related-products {
  padding-top: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(60px, 10vw, 120px);
}


/* =============================== PROJECT DETAIL PAGE =============================== */
.project-page {
  padding-top: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(60px, 10vw, 120px);
  background: var(--c-white);
}

.project-page__header {
  margin-bottom: 32px;
}

.project-page__title {
  font-family: var(--font-bold);
  font-size: clamp(26px, 4vw, 36px);
  color: var(--c-dark-green);
  line-height: 1.2;
  margin: 0 0 12px;
}

.project-page__subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--c-text-muted);
  max-width: 800px;
  line-height: 1.5;
  margin: 0;
}

/* Meta Data Grid */
.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .project-meta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-meta-card {
  background: var(--c-bg-soft);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(23, 63, 70, 0.05);
}

.project-meta-card__label {
  font-size: 13px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-meta-card__value {
  font-family: var(--font-semibold);
  font-size: 18px;
  color: var(--c-dark-green);
}

/* Modern Project Gallery Grid */
.project-gallery-section {
  margin-bottom: 48px;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .project-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  .project-gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.project-gallery-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-bg-soft);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  aspect-ratio: 4 / 3;
}

.project-gallery-item--featured {
  aspect-ratio: auto;
  min-height: 320px;
}
@media (min-width: 768px) {
  .project-gallery-item--featured {
    min-height: 450px;
  }
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.project-gallery-item:hover img {
  transform: scale(1.03);
}

/* Layout for Description and Sidebar */
.project-description-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 960px) {
  .project-description-layout {
    grid-template-columns: 2fr 1fr;
    gap: 60px;
  }
}

.project-body-content {
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.65;
}

.project-body-content h2,
.project-body-content h3 {
  font-family: var(--font-bold);
  color: var(--c-dark-green);
  margin-top: 0;
}

.project-body-content h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.project-body-content h3 {
  font-size: 19px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.project-body-content p {
  margin: 0 0 20px;
}

.project-body-content ul {
  margin: 0 0 24px;
  padding-left: 20px;
}

.project-body-content li {
  margin-bottom: 10px;
}

/* Sidebar Call To Action */
.project-sidebar {
  position: sticky;
  top: 100px;
}

.project-cta-box {
  background: var(--c-bg-soft);
  border: 2px solid var(--c-primary-soft-2);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.project-cta-box h4 {
  font-family: var(--font-bold);
  font-size: 20px;
  color: var(--c-dark-green);
  margin: 0 0 12px;
}

.project-cta-box p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0 0 24px;
}



/* =============================== PROJECT DETAIL PAGE (VERTICAL LAYOUT) =============================== */
.project-page {
  padding-top: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(60px, 10vw, 120px);
  background: var(--c-white);
}

.project-page__header {
  margin-bottom: 32px;
}

.project-page__title {
  font-family: var(--font-bold);
  font-size: clamp(26px, 4vw, 36px);
  color: var(--c-dark-green);
  line-height: 1.2;
  margin: 0 0 12px;
}

.project-page__subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--c-text-muted);
  max-width: 800px;
  line-height: 1.5;
  margin: 0;
}

/* Meta Data Grid */
.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .project-meta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-meta-card {
  background: var(--c-bg-soft);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(23, 63, 70, 0.05);
}

.project-meta-card__label {
  font-size: 13px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-meta-card__value {
  font-family: var(--font-semibold);
  font-size: 18px;
  color: var(--c-dark-green);
}

/* Layout for Image Stack and Sidebar */
.project-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) {
  .project-content-layout {
    grid-template-columns: 2fr 1fr; /* Зображення займають 2/3, сайдбар 1/3 */
    gap: 48px;
  }
}

/* Vertical Image Stack */
.project-images-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-image-wrapper {
  position: relative;
 
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(23, 63, 70, 0.05);
  background: var(--c-bg-soft);
}

.project-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Overlay for images */
.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 63, 70, 0.3), rgba(23, 63, 70, 0.05));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.project-image-icon {
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-dark-green);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-image-wrapper:hover img {
  transform: scale(1.03);
}
.project-image-wrapper:hover .project-image-overlay {
  opacity: 1;
}
.project-image-wrapper:hover .project-image-icon {
  transform: scale(1);
}

/* Sidebar Call To Action */
.project-sidebar {
  position: sticky;
  top: 100px;
}

.project-cta-box {
  background: var(--c-bg-soft);
  border: 2px solid var(--c-primary-soft-2);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.project-cta-box h4 {
  font-family: var(--font-bold);
  font-size: 20px;
  color: var(--c-dark-green);
  margin: 0 0 12px;
}

.project-cta-box p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0 0 24px;
}

/* Lightbox Core Styling */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 22, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(8px);
}

.lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__content {
  max-width: 85vw;
  max-height: 80vh;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox.is-visible .lightbox__content {
  transform: scale(1);
}

.lightbox__content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 44px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  width: 48px;
  height: 48px;
}

.lightbox__close:hover {
  color: var(--c-primary);
  transform: rotate(90deg);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
  user-select: none;
}

.lightbox__arrow:hover {
  background: var(--c-primary);
  color: var(--c-dark-green);
  border-color: var(--c-primary);
}

.lightbox__arrow--prev { left: 24px; }
.lightbox__arrow--next { right: 24px; }

@media (max-width: 768px) {
  .lightbox__arrow {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .lightbox__arrow--prev { left: 12px; }
  .lightbox__arrow--next { right: 12px; }
  .lightbox__close { top: 12px; right: 12px; }
}

/* Стилі для кнопки Технічного паспорта */
.spec-pdf-link {
  grid-column: span 2; 
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 16px;
  background-color: rgba(250, 168, 25, 0.05);
  border: 1px dashed #faa819;
  border-radius: 8px;
  color: #173f36;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
  width: fit-content;
}

.spec-pdf-link:hover {
  background-color: rgba(250, 168, 25, 0.15);
  border-style: solid;
}

.spec-pdf-link svg {
  color: #faa819;
  flex-shrink: 0;
  transition: transform 0.25s ease-in-out;
}

.spec-pdf-link:hover svg {
  transform: scale(1.1);
}









