:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-muted: #e9efe7;
  --surface-dark: #102235;
  --surface-dark-alt: #163149;
  --text: #14202c;
  --text-muted: #5b6977;
  --line: rgba(20, 32, 44, 0.1);
  --accent: #d6f04b;
  --accent-dark: #bdd92c;
  --shadow: 0 18px 50px rgba(16, 34, 53, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 240, 75, 0.18), transparent 28%),
    linear-gradient(180deg, #f8faf7 0%, #eef2ed 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 24px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 247, 0.82);
  border-bottom: 1px solid rgba(20, 32, 44, 0.06);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(16, 34, 53, 0.2));
}

.logo-text {
  display: inline-block;
}

.logo-text span {
  color: #4d7c0f;
}

.main-nav {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-schedule {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.header-schedule strong {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #102235;
  box-shadow: 0 10px 26px rgba(214, 240, 75, 0.28);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: rgba(16, 34, 53, 0.06);
  color: var(--text);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
}

.hero-section {
  padding: 36px 0 40px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 18, 28, 0.78) 0%, rgba(9, 18, 28, 0.78) 40%, rgba(9, 18, 28, 0.18) 100%),
    linear-gradient(0deg, rgba(133, 157, 129, 0.32), rgba(133, 157, 129, 0.32)),
    url("images/hero/1.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at left 18%, rgba(214, 240, 75, 0.18), transparent 18%),
    radial-gradient(circle at right 16%, rgba(214, 240, 75, 0.08), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-frame {
  position: relative;
  z-index: 1;
  padding: 56px 0 40px;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(62%, 760px);
  background: none;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(340px, 480px);
  justify-content: space-between;
  gap: 56px;
  align-items: stretch;
  min-height: 620px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px 0 8px;
  color: #fff;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffd91a;
}

.hero-copy h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero-copy h1 {
  font-size: clamp(2.55rem, 3.45vw, 3.7rem);
  max-width: 760px;
}

.hero-text,
.section-heading p,
.catalog-card p,
.info-card p,
.advantage-card p,
.material-card p,
.size-card p,
.process-card p,
.consult-box p,
.lead-form p,
.contact-list,
.site-footer p {
  color: var(--text-muted);
}

.hero-text {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.hero-badges,
.hero-points,
.catalog-grid,
.roof-grid,
.advantages-grid,
.materials-grid,
.sizes-grid,
.process-grid {
  display: grid;
}

.hero-badges {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: auto;
  padding-top: 56px;
  width: 100%;
  max-width: 760px;
}

.badge-card,
.catalog-card,
.info-card,
.advantage-card,
.material-card,
.size-card,
.process-card,
.consult-box,
.lead-form,
.price-banner {
  background: #ffffff;
  border: 1px solid rgba(20, 32, 44, 0.08);
  box-shadow: var(--shadow);
}

.lead-form p,
.lead-form label span {
  color: var(--text-muted);
}

.badge-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: #fff;
}

.badge-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.hero-points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  width: 100%;
  max-width: 760px;
}

.hero-points span {
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.hero-side {
  display: block;
  padding-top: 10px;
}


.lead-form {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.lead-form h2,
.lead-form h3 {
  margin: 0 0 10px;
  font-size: 1.65rem;
}

.lead-form form {
  display: contents;
}

.lead-form label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(20, 32, 44, 0.12);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  border-color: #7ea122;
  box-shadow: 0 0 0 4px rgba(214, 240, 75, 0.18);
}

.lead-form .button {
  width: 100%;
  margin-top: 18px;
}

.form-note,
.form-status {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.form-status {
  min-height: 1.4em;
  font-weight: 700;
}

.lead-form-hero {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  max-width: 100%;
  margin-left: auto;
  width: min(100%, 480px);
}

.hero-form-top {
  padding: 22px 22px 18px;
  background:
    radial-gradient(circle at left bottom, rgba(214, 240, 75, 0.08), transparent 34%),
    linear-gradient(180deg, #24374d 0%, #1b2d42 100%);
  color: #fff;
}

.hero-form-top h2 {
  margin-bottom: 14px;
  font-size: clamp(1.28rem, 1.9vw, 1.82rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero-form-top h2 span {
  color: #ffd91a;
}

.hero-form-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.hero-form-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-form-number {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  color: #fff;
}

.hero-phone-field {
  margin-top: 16px;
}

.hero-phone-field input {
  min-height: 60px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.hero-comment-field {
  margin-top: 14px;
}

.hero-comment-field span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-comment-field textarea {
  min-height: 92px;
  border-radius: 20px;
  padding: 14px 16px;
  resize: vertical;
}

.hero-form-bottom {
  padding: 18px 22px 20px;
}

.hero-form-step-light {
  margin-top: 6px;
}

.hero-form-step-light + .hero-form-step-light {
  margin-top: 14px;
}

.hero-form-step-light .hero-form-number {
  color: #6b7280;
}

.hero-form-step-light p {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero-form-step-light strong {
  color: #f04d36;
  text-transform: uppercase;
}

.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;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 16, 24, 0.62);
  backdrop-filter: blur(8px);
}

.popup-overlay[hidden] {
  display: none;
}

.popup-dialog {
  position: relative;
  width: min(100%, 520px);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(12, 28, 42, 0.26);
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(16, 34, 53, 0.08);
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.popup-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.popup-text {
  margin: 14px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.popup-form {
  margin-top: 20px;
}

.section {
  padding: 88px 0;
}

#advantages {
  padding-top: 40px;
}

.section-light {
  background: transparent;
}

.section-white {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.section-contrast {
  background:
    radial-gradient(circle at right top, rgba(214, 240, 75, 0.2), transparent 26%),
    linear-gradient(180deg, #102235 0%, #163149 100%);
  color: #fff;
}

.section-dark {
  background:
    radial-gradient(circle at top left, rgba(214, 240, 75, 0.12), transparent 22%),
    linear-gradient(180deg, #0f2032 0%, #0b1827 100%);
  color: #fff;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading-left {
  margin-left: 0;
  text-align: left;
}

#roof-types .section-heading p {
  margin: 14px 0 0;
  max-width: none;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p {
  margin: 14px auto 0;
  max-width: 62ch;
  line-height: 1.7;
}

.section-contrast .eyebrow,
.section-dark .eyebrow {
  color: var(--accent);
}

.section-contrast .section-heading p,
.section-dark .contact-copy,
.section-dark .contact-list,
.section-dark .site-footer p,
.section-contrast p,
.section-dark p {
  color: rgba(255, 255, 255, 0.74);
}

.section-dark .lead-form p,
.section-dark .lead-form label span {
  color: var(--text-muted);
}

.catalog-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.catalog-card,
.advantage-card,
.material-card,
.size-card,
.process-card,
.info-card {
  border-radius: var(--radius-md);
}

.catalog-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.catalog-image {
  min-height: 180px;
  margin-bottom: 16px;
  border-radius: 28px;
  overflow: hidden;
}

.catalog-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.catalog-illustration {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 34%, rgba(190, 211, 103, 0.28), transparent 24%),
    linear-gradient(135deg, #dfe6ed, #b5c1c8 54%, #b3c3ab 100%);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.catalog-illustration svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.catalog-illustration svg path,
.catalog-illustration svg rect,
.catalog-illustration svg circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-button {
  width: 100%;
  margin-top: auto;
}

.catalog-card h3,
.info-card h3,
.advantage-card h3,
.material-card h3,
.size-card h3,
.process-card h3,
.consult-box h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.roof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.consult-box {
  padding: 24px;
}

.info-card {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.roof-icon {
  width: 56px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--accent);
}

.roof-icon svg {
  width: 100%;
  height: 100%;
}

.info-card p,
.consult-box p {
  color: rgba(255, 255, 255, 0.72);
}

.consult-box {
  position: sticky;
  top: 98px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.advantages-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.advantage-card,
.size-card,
.process-card {
  padding: 24px;
}

.materials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.material-card {
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.material-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 32px rgba(16, 34, 53, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.material-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.price-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
}

.price-banner strong {
  font-size: 1.28rem;
}

.sizes-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.size-card strong {
  display: inline-block;
  margin-top: 14px;
  font-size: 1.28rem;
}

.process-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(214, 240, 75, 0.22);
  color: #4d7c0f;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 28px;
  align-items: stretch;
}

.contact-copy {
  display: flex;
  flex-direction: column;
}

.contact-copy .map-placeholder {
  flex: 1;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.map-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 260px;
}

.form-title-accent {
  color: #ff8c42;
}

.site-footer {
  background: #0a1622;
  color: #fff;
}

.logo-footer .logo-text span {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cta-mobile {
  display: none;
}

@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sizes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 0;
  }

  .header-meta,
  .header-cta-desktop {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0 16px;
    gap: 0;
    border-top: 1px solid rgba(20, 32, 44, 0.08);
    margin-top: 12px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(20, 32, 44, 0.06);
    font-size: 1rem;
    font-weight: 600;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .nav-cta-mobile {
    display: inline-flex;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }

  .footer-inner,
  .price-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .split-layout,
  .contact-grid,
  .advantages-grid,
  .materials-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges,
  .catalog-grid,
  .roof-grid,
  .sizes-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .consult-box {
    position: static;
  }

  .hero-frame {
    padding: 34px 0 18px;
  }

  .hero-grid {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 16px), var(--container));
  }

  .hero-section {
    padding-top: 26px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.55rem);
    line-height: 1.06;
  }

  .section-heading h2,
  .contact-copy h2 {
    line-height: 1.02;
  }

  .hero-badges,
  .hero-points,
  .catalog-grid,
  .roof-grid,
  .advantages-grid,
  .materials-grid,
  .sizes-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-form-top,
  .hero-form-bottom {
    padding-inline: 20px;
  }

  .hero-frame {
    padding-top: 22px;
  }

  .hero-form-step,
  .hero-comment-field {
    grid-template-columns: 1fr;
  }

  .hero-form-number {
    font-size: 2.4rem;
  }

  .hero-phone-field input {
    min-height: 66px;
  }

  .hero-comment-field textarea {
    min-height: 108px;
  }

  .lead-form,
  .catalog-card,
  .advantage-card,
  .material-card,
  .size-card,
  .process-card,
  .info-card,
  .consult-box {
    padding: 20px;
  }

  .placeholder-panel {
    min-height: 220px;
  }

  .header-schedule {
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

/* ─── ГАЛЕРЕЯ ─── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
  aspect-ratio: 4 / 3;
}

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 34, 53, 0);
  transition: background 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.88);
}

.gallery-item:hover::after {
  background: rgba(16, 34, 53, 0.18);
}

/* ─── ЛАЙТБОКС ─── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 14, 22, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img-wrap {
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1001;
  padding: 0;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1001;
  padding: 0;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .lightbox-img-wrap {
    max-width: calc(100vw - 80px);
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    gap: 8px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
