/* =========================================================
   HOME PAGE — fluid responsive styles
   Uses clamp() + vw for smooth scaling across all screens
   ========================================================= */

/* ── Catalog container ── */
.catalog-wrap {
  width: min(90vw, 100%);
  margin-inline: auto;
  padding-inline: clamp(12px, 2vw, 32px);
}

/* ── Popular products container ── */
.container-baner {
  width: 100%;
  margin: 0 auto;
  padding: .5vw 5vw;
}


/* ═══════════════════════════════════════
   SECTION 1 — CATALOG GRID
═══════════════════════════════════════ */
.catalog-section {
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(20px, 3vw, 40px);
  background: #fff;
  text-align: center;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 20px);
}

.catalog-empty-msg {
  grid-column: 1 / -1;
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(16px, 2vw, 28px);
  text-align: center;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.5;
  color: #444;
}

.catalog-empty-msg .section-more {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: clamp(8px, 1vw, 14px);
  padding: clamp(12px, 1.4vw, 22px);
  text-decoration: none;
  color: #111;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  overflow: hidden;
  position: relative;
}

.catalog-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.11);
  transform: translateY(-3px);
  border-color: #d0d0d0;
}

.catalog-card h3 {
  width: 100%;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 clamp(8px, 1vw, 16px);
  color: #111;
  text-align: center;
}

.catalog-img {
  width: 100%;
  /* портрет під двері; на ~30% нижче за 4/7 → 40/49 */
  aspect-ratio: 40 / 49;
  min-height: 0;
  overflow: hidden;
  border-radius: clamp(4px, 0.5vw, 8px);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* повне зображення всередині комірки, без обрізання країв / вотермарку */
  padding: clamp(4px, 0.55vw, 10px);
  box-sizing: border-box;
}

.catalog-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .35s;
}

.catalog-card:hover .catalog-img img {
  transform: scale(1.03);
}

/* ── Під каталогом: «Наші послуги» (преміум) ── */
.home-services {
  position: relative;
  width: 100%;
  margin-top: clamp(24px, 4vw, 48px);
  padding-block: clamp(28px, 5vw, 52px);
  border-top: 1px solid rgba(33, 86, 46, 0.08);
  text-align: center;
  background:
    linear-gradient(180deg, #f6faf7 0%, #fbfcfb 38%, #ffffff 100%);
  overflow: hidden;
  box-sizing: border-box;
}

.home-services__glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
}

.home-services__glow--tl {
  top: -12%;
  right: -8%;
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: radial-gradient(circle, rgba(33, 86, 46, 0.14) 0%, transparent 68%);
}

.home-services__glow--br {
  bottom: -18%;
  left: -12%;
  width: min(60vw, 480px);
  height: min(60vw, 480px);
  background: radial-gradient(circle, rgba(7, 188, 2, 0.07) 0%, transparent 70%);
}

/* Контент як у каталозі: клас catalog-wrap на тому ж елементі */
.home-services__inner {
  position: relative;
  z-index: 1;
}

.home-services__head {
  margin-bottom: clamp(22px, 3.5vw, 34px);
}

.home-services__title {
  margin: 0 0 clamp(10px, 1.5vw, 14px);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.home-services__title-text {
  display: inline-block;
}

.home-services__title-word--a {
  color: #111;
}

.home-services__title-word--b {
  color: #555;
}

.home-services__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: #21562e;
}

.home-services__intro {
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(0.88rem, 1.15vw, 1rem);
  line-height: 1.55;
  color: #5f6f66;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.home-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
  counter-reset: home-svc;
  width: 100%;
}

.home-services__card {
  position: relative;
  margin: 0;
  min-width: 0;
  border-radius: 18px;
  counter-increment: home-svc;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88)) padding-box,
    linear-gradient(
      135deg,
      rgba(33, 86, 46, 0.22),
      rgba(255, 255, 255, 0.4) 40%,
      rgba(7, 188, 2, 0.12)
    )
    border-box;
  border: 1px solid transparent;
  box-shadow:
    0 1px 2px rgba(15, 40, 25, 0.04),
    0 12px 36px rgba(33, 86, 46, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

.home-services__card::before {
  content: counter(home-svc, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(33, 86, 46, 0.28);
  line-height: 1;
}

.home-services__card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 4px 8px rgba(15, 40, 25, 0.06),
    0 24px 48px rgba(33, 86, 46, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.home-services__card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: clamp(22px, 2.6vw, 30px) clamp(18px, 2.2vw, 24px) clamp(24px, 2.8vw, 32px);
  padding-top: clamp(26px, 3vw, 34px);
}

.home-services__icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(58px, 5.5vw, 68px);
  height: clamp(58px, 5.5vw, 68px);
  border-radius: 14px;
  color: #fff;
  background: #21562e;
  border: 1px solid #1a4524;
  box-shadow: none;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s ease;
}

.home-services__card:hover .home-services__icon-circle {
  background: #1a4524;
  border-color: #14361c;
  transform: translateY(-1px);
}

.home-services__svg {
  width: clamp(26px, 2.4vw, 30px);
  height: clamp(26px, 2.4vw, 30px);
}

.home-services__name {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 800;
  line-height: 1.28;
  color: #152a1d;
  letter-spacing: -0.025em;
}

.home-services__tagline {
  margin: 0;
  font-size: clamp(0.84rem, 1vw, 0.95rem);
  font-weight: 500;
  line-height: 1.45;
  color: #6b7d73;
  max-width: 22em;
}

.home-services__cta {
  margin-top: clamp(26px, 4vw, 38px);
  display: flex;
  justify-content: center;
}

/* Кнопка замірника — той самий стандарт, що в шапці (плоский червоний) */
.home-services__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  max-width: 380px;
  margin: 0;
  padding: clamp(11px, 1.4vw, 14px) clamp(18px, 2.5vw, 28px);
  min-height: 42px;
  box-sizing: border-box;
  font: inherit;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
  background: #db2b2f;
  border: 1px solid #db2b2f;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.home-services__btn:hover {
  background: #c41e22;
  border-color: #c41e22;
  color: #fff;
}

.home-services__btn:focus-visible {
  outline: 2px solid rgba(219, 43, 47, 0.45);
  outline-offset: 2px;
}

.home-services__btn-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  fill: currentColor;
}

.home-services__btn-icon path {
  fill: currentColor;
}

@media (max-width: 992px) {
  .home-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 22px);
  }
}

@media (max-width: 520px) {
  .home-services__grid {
    grid-template-columns: 1fr;
  }

  .home-services__card::before {
    top: 10px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-services__card,
  .home-services__card:hover,
  .home-services__icon-circle {
    transition: none;
  }

  .home-services__card:hover {
    transform: none;
  }

  .home-services__card:hover .home-services__icon-circle {
    transform: none;
  }
}

/* ═══════════════════════════════════════
   SECTION 2 — POPULAR PRODUCTS
═══════════════════════════════════════ */
.popular-section {
  padding-block: clamp(24px, 4vw, 56px);
  background: #fff;
}

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin-bottom: clamp(20px, 2.5vw, 36px);
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, .7vw, 10px);
  white-space: nowrap;
}

.fl-dot {
  display: block;
  width: clamp(7px, .7vw, 10px);
  height: clamp(7px, .7vw, 10px);
  border-radius: 50%;
  background: #e31720;
  margin-top: clamp(5px, .6vw, 9px);
  flex-shrink: 0;
}

.section-title h2 {
  font-size: clamp(18px, 3vw, 48px);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: #111;
}

.section-title h2 span {
  font-weight: 400;
  color: #555;
}

.section-subtitle {
  font-size: clamp(11px, 1.5vw, 28px);
  color: #888;
  margin-top: 2px;
}

.section-line {
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

.section-more {
  display: flex;
  align-items: center;
  gap: clamp(6px, .6vw, 10px);
  text-decoration: none;
  color: #111;
  font-size: clamp(12px, 1.4vw, 20px);
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s;
}

.section-more:hover {
  color: #e31720;
}

.plus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(22px, 2.2vw, 32px);
  height: clamp(22px, 2.2vw, 32px);
  border-radius: 50%;
  background: #21562e;
  color: #fff;
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1;
  transition: background .2s, transform .2s;
}

.section-more:hover .plus-btn {
  background: #1a4524;
  color: #fff;
  transform: rotate(90deg);
}

/* Products grid */
.home-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.2vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-product-card {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: clamp(8px, 1vw, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s;
}

.home-product-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

/* Портретна зона фото як у .catalog-img (двері) */
.home-product-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 40 / 49;
  min-height: 0;
  overflow: hidden;
  border-radius: clamp(4px, 0.5vw, 8px);
  background: #fff;
  padding: clamp(4px, 0.55vw, 10px);
  box-sizing: border-box;
}

.home-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .35s;
}

.home-product-card:hover .home-product-img img {
  transform: scale(1.03);
}

.home-product-title {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  line-height: 1.4;
  margin: clamp(8px, .8vw, 12px) clamp(10px, 1vw, 16px) 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-product-title a {
  text-decoration: none;
  color: #111;
  transition: color .2s;
}

.home-product-title a:hover {
  color: #e31720;
}

.home-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(8px, .8vw, 14px) clamp(10px, 1vw, 16px);
  gap: 8px;
  margin-top: auto;
}

.home-product-price {
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  color: #35c345;
  white-space: nowrap;
}

.home-product-price .woocommerce-Price-currencySymbol {
  font-size: .9em;
}

button.fastshop-add-to-cart {
  background: #e31720;
  color: #fff;
  border: none;
  border-radius: clamp(4px, .5vw, 8px);
  padding: clamp(6px, .6vw, 10px) clamp(10px, 1vw, 16px);
  font-size: clamp(11px, .85vw, 13px);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

button.fastshop-add-to-cart:hover {
  background: #c0121a;
  transform: scale(1.04);
}

button.fastshop-add-to-cart.adding {
  background: #888;
  pointer-events: none;
}

button.fastshop-add-to-cart.added {
  background: #28a745;
}


/* ═══════════════════════════════════════
   SECTION 3 — CONSULTATION BLOCK (c7)
═══════════════════════════════════════ */
.c7 {
  background: #f9f9f9;
  padding-block: clamp(32px, 5vw, 80px);
}

.c7__wrap {
  width: 90%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 0;
}

.c7__row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: stretch; /* both columns same height */
}

/* Left column */
.c7__title {
  font-size: clamp(22px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  color: #111;
  margin: 0 0 clamp(10px, 1.2vw, 18px);
}

.c7__title::before {
  content: '·';
  color: #e31720;
  font-size: 1.3em;
  margin-right: .2em;
}

.c7__subtitle {
  font-size: clamp(13px, 1.1vw, 16px);
  color: #666;
  line-height: 1.6;
  margin: 0 0 clamp(18px, 2.2vw, 34px);
}

.c7__contacts {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(16px, 2.5vw, 40px);
}

/* Work block takes fixed width, phones fill the rest */
.c7__work {
  flex: 0 0 auto;
}

.c7__phones {
  flex: 1 1 auto;
}

.c7__work {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, .8vw, 12px);
  font-size: clamp(12px, 1vw, 15px);
  color: #555;
  line-height: 1.5;
}

.c7__work strong {
  color: #3db73d;
  font-weight: 600;
}

.c7__dot {
  display: block;
  width: clamp(8px, .8vw, 11px);
  height: clamp(8px, .8vw, 11px);
  border-radius: 50%;
  background: #3db73d;
  margin-top: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(61,183,61,.22);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(61,183,61,.22); }
  50%      { box-shadow: 0 0 0 7px rgba(61,183,61,.08); }
}

.c7__phones {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 16px);
}

.c7__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c7__label {
  font-size: clamp(11px, .85vw, 13px);
  color: #999;
  margin-left: 25px;
}

.c7__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(14px, 1.5vw, 22px);
  font-weight: 700;
  color: #111;
  text-decoration: none;
  transition: color .2s;
}

.c7__phone:hover { color: #e31720; }

/* phone-ico inside c7__phones — dark fill matching text color */
.c7__phone .phone-ico {
  fill: #3db73d;
  width: clamp(14px, 1.4vw, 20px);
  height: clamp(14px, 1.4vw, 20px);
  flex-shrink: 0;
}

/* phone-ico inside c7__btn — white */
.c7__btn .phone-ico,
.phone-ico--white {
  fill: #fff;
  width: clamp(14px, 1.4vw, 18px);
  height: clamp(14px, 1.4vw, 18px);
  flex-shrink: 0;
}

/* Right column — 2 grid cols (info | button) + person absolute */
.c7__right {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
  background: #f0f0f0;
  border-radius: clamp(12px, 1.5vw, 20px);
  padding: clamp(20px, 2.5vw, 40px);
  padding-right: clamp(20px, 22vw, 340px); /* reserve space for person */
  position: relative;
  overflow: visible;
}

.c7__card {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.2vw, 18px);
}

/* Button column — centered vertically */
.c7__btn-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.c7__card-title {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  color: #111;
  margin: 0;
}

.c7__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, .8vw, 12px);
}

.c7__list li {
  font-size: clamp(12px, .95vw, 14px);
  color: #555;
  line-height: 1.5;
  padding-left: clamp(14px, 1.4vw, 20px);
  position: relative;
}

.c7__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .45em;
  width: clamp(6px, .6vw, 8px);
  height: clamp(6px, .6vw, 8px);
  border-radius: 50%;
  background: #e31720;
}

.c7__list li strong {
  color: #111;
  font-weight: 600;
}

.c7__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e31720;
  color: #fff;
  text-decoration: none;
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 700;
  padding: clamp(10px, 1vw, 16px) clamp(16px, 1.8vw, 28px);
  border-radius: clamp(6px, .7vw, 10px);
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.c7__btn:hover {
  background: #c0121a;
  transform: scale(1.03);
}

/* Person image — absolutely positioned, head overflows card top */
.c7__person {
  position: absolute;
  bottom: 0;
  right: -2vw;
  line-height: 0;
  pointer-events: none;
}

.c7__person img {
  display: block;
  width: 18vw;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: bottom;
}


/* ═══════════════════════════════════════
   RESPONSIVE — Catalog grid (менше колонок на вузьких екранах)
═══════════════════════════════════════ */
@media (max-width: 1280px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-products {
    grid-template-columns: repeat(3, 1fr);
  }

  .c7__wrap {
    width: 92%;
  }

  /* Tablet: stack left/right vertically */
  .c7__row {
    grid-template-columns: 1fr;
  }

  .c7__right {
    padding-right: clamp(20px, 22vw, 300px); /* keep space for person */
  }

  .c7__person img {
    width: 22vw;
  }
}


/* ═══════════════════════════════════════
   RESPONSIVE — Large mobile (≤ 768px)
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-card h3 {
    font-size: clamp(12px, 3.5vw, 15px);
  }

  .home-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    flex-wrap: wrap;
  }

  .section-line {
    display: none;
  }

  .section-more {
    margin-left: auto;
  }

  .c7__wrap {
    width: 94%;
  }

  /* Mobile: contacts стають вертикальними */
  .c7__contacts {
    flex-direction: column;
    gap: clamp(12px, 3vw, 20px);
  }

  .c7__phones {
    flex: none;
  }

  /* Mobile: hide person, reset padding */
  .c7__right {
    padding: clamp(16px, 4vw, 28px);
    overflow: hidden;
  }

  .c7__person {
    display: none;
  }
}


/* ═══════════════════════════════════════
   RESPONSIVE — Small mobile (≤ 480px)
═══════════════════════════════════════ */
@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .catalog-card {
    padding: 10px;
  }

  .home-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .home-product-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  button.fastshop-add-to-cart {
    width: 100%;
    text-align: center;
  }

  .c7__wrap {
    width: 96%;
  }

  .c7__title {
    font-size: clamp(20px, 7vw, 30px);
  }
}


/* ═══════════════════════════════════════════
   БЛОК «НАШІ РОБОТИ» (секція c7)
   ═══════════════════════════════════════════ */

.works-section {
  padding: clamp(48px, 7vw, 96px) 0;
  background: #f7f7f7;
}

.works-section__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Заголовок + CTA */
.works-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.works-section__title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1.15;
  margin-bottom: 8px;
}

.works-section__title::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: #db2b2f;
  border-radius: 2px;
  margin-top: 12px;
}

.works-section__subtitle {
  font-size: 15px;
  color: #777;
  margin-top: 16px;
}

.works-section__cta {
  flex-shrink: 0;
  padding: 13px 28px;
  background: #db2b2f;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}

.works-section__cta:hover {
  background: #c41e22;
  transform: translateY(-2px);
}

/* Галерея: 4 колонки */
.works-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.works-gallery__item {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #e0e0e0;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
  width: 100%;
}

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

.works-gallery__item:hover img {
  transform: scale(1.07);
}

.works-gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
  border-radius: 14px;
}

.works-gallery__item:hover .works-gallery__overlay {
  background: rgba(0, 0, 0, 0.38);
}

.works-gallery__overlay svg {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s, transform 0.25s;
}

.works-gallery__item:hover .works-gallery__overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* ── Lightbox ─────────────────────────────── */
.works-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-lightbox[hidden] {
  display: none;
}

.works-lightbox__img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.5);
  display: block;
}

.works-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 2;
}

.works-lightbox__close:hover {
  background: rgba(255,255,255,0.25);
}

.works-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 2;
}

.works-lightbox__nav:hover {
  background: rgba(255,255,255,0.25);
}

.works-lightbox__nav--prev { left: 20px; }
.works-lightbox__nav--next { right: 20px; }

.works-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  background: rgba(0,0,0,0.4);
  padding: 4px 16px;
  border-radius: 20px;
}

/* ── Адаптив ─────────────────────────────── */
@media (max-width: 1100px) {
  .works-gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 700px) {
  .works-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .works-section__head { flex-direction: column; align-items: flex-start; }
  .works-lightbox__nav--prev { left: 8px; }
  .works-lightbox__nav--next { right: 8px; }
}

@media (max-width: 420px) {
  .works-gallery { grid-template-columns: repeat(2, 1fr); }
}
