:root {
  --bg: #f7f3eb;
  --bg-soft: #fffaf2;
  --surface: #ffffff;
  --surface-2: #f0e6d6;
  --text: #24201b;
  --muted: #6b6256;
  --wood: #a66a3f;
  --wood-dark: #6c3f24;
  --leaf: #2f5d46;
  --leaf-soft: #dce9df;
  --charcoal: #24272a;
  --gold: #d9a441;
  --line: rgba(36, 32, 27, 0.12);
  --shadow: 0 22px 70px rgba(51, 38, 25, 0.12);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(217, 164, 65, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(47, 93, 70, 0.12), transparent 30rem),
    var(--bg);
  line-height: 1.6;
}

body.menu-open { overflow: hidden; }

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

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

button, input, select, textarea { font: inherit; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-tight { padding: 58px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wood-dark);
  background: rgba(166, 106, 63, 0.1);
  border: 1px solid rgba(166, 106, 63, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 { font-size: clamp(42px, 7vw, 82px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(22px, 3vw, 30px); }

p { margin: 0; color: var(--muted); }

.lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: #4b4237;
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 235, 0.78);
  border-bottom: 1px solid rgba(36, 32, 27, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.logo-img {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
}

.logo-text span { display: block; line-height: 1; }
.logo-main { font-size: 20px; }
.logo-sub { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 5px; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: #51483d;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(47, 93, 70, 0.1);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-link {
  font-weight: 900;
  color: var(--leaf);
  white-space: nowrap;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: 0.2s ease;
}

.hero {
  padding: 72px 0 42px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.hero-copy { display: grid; gap: 24px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(47, 93, 70, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(47, 93, 70, 0.22); background: #254b39; }

.btn.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.secondary:hover { background: #fff; box-shadow: 0 14px 34px rgba(51, 38, 25, 0.1); }

.hero-card {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(47, 93, 70, 0.94), rgba(36, 39, 42, 0.86)),
    url("illustrations/hero-pattern.svg");
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-card::before {
  display: none;
}

.hero-visual {
  position: absolute;
  width: min(82%, 500px);
  right: -12px;
  bottom: -6px;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,0.28));
}

.hero-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
}

.hero-card h2 {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  max-width: 440px;
  font-size: clamp(30px, 4.4vw, 58px);
}

.hero-card p {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin-top: 18px;
  color: rgba(255,255,255,0.78);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.stat {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 14px 34px rgba(51, 38, 25, 0.08);
}

.stat strong {
  display: block;
  color: var(--wood-dark);
  font-size: 28px;
  line-height: 1;
}

.stat span { color: var(--muted); font-size: 14px; font-weight: 700; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head .lead { max-width: 560px; font-size: 17px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(36, 32, 27, 0.1);
  box-shadow: 0 16px 45px rgba(51, 38, 25, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 58px rgba(51, 38, 25, 0.13);
  border-color: rgba(47, 93, 70, 0.24);
}

.product-card { min-height: 410px; display: flex; flex-direction: column; }
.product-card .image-wrap { min-height: 168px; padding: 22px; background: linear-gradient(150deg, #f6eee1, #fffaf2); }
.product-card .image-wrap img { height: 148px; width: 100%; object-fit: contain; }
.product-card .card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 14px; }
.product-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.product-card li + li { margin-top: 6px; }
.card-link { margin-top: auto; color: var(--leaf); font-weight: 900; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 24px;
  margin-bottom: 18px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.panel {
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 18px 58px rgba(51, 38, 25, 0.08);
}

.panel.dark {
  background: linear-gradient(145deg, var(--charcoal), #334235);
  color: #fff;
}

.panel.dark p, .panel.dark li { color: rgba(255,255,255,0.76); }
.panel.dark .eyebrow { color: #ffe8b0; border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.09); }

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(217, 164, 65, 0.18);
  color: var(--gold);
  font-weight: 900;
}

.cta {
  border-radius: var(--radius-xl);
  background:
    linear-gradient(130deg, rgba(47, 93, 70, 0.95), rgba(108, 63, 36, 0.92)),
    url("illustrations/hero-pattern.svg");
  color: #fff;
  padding: clamp(28px, 6vw, 58px);
  overflow: hidden;
  position: relative;
}

.cta p { color: rgba(255,255,255,0.78); }
.cta h2 { max-width: 800px; }
.cta .hero-actions { margin-top: 24px; }
.cta .btn { background: #fff; color: var(--text); }
.cta .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }

.page-hero { padding: 66px 0 30px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.page-hero h1 { max-width: 880px; }
.page-hero .lead { margin-top: 20px; }

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 104px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
}

.sidebar a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #554c41;
  font-weight: 800;
}

.sidebar a:hover { background: var(--leaf-soft); color: var(--leaf); }

.product-section {
  display: grid;
  gap: 18px;
}

.product-detail {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 26px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(51, 38, 25, 0.08);
}

.product-detail img { width: 100%; height: 190px; object-fit: contain; border-radius: 22px; background: #fbf3e6; padding: 14px; }
.product-detail .tags { margin-top: 14px; }
.product-detail h2 { font-size: clamp(28px, 4vw, 40px); }
.product-detail p { margin-top: 12px; }
.product-detail ul { color: var(--muted); padding-left: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 93, 70, 0.09);
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.notice {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(217, 164, 65, 0.14);
  border: 1px solid rgba(217, 164, 65, 0.28);
  color: #5e4211;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: grid; gap: 8px; }
.label { font-weight: 850; color: #3d362f; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(36,32,27,0.15);
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  padding: 14px 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(47, 93, 70, 0.54);
  box-shadow: 0 0 0 4px rgba(47, 93, 70, 0.1);
}

textarea { min-height: 128px; resize: vertical; }
.full { grid-column: 1 / -1; }
.form-status { min-height: 24px; font-weight: 800; color: var(--leaf); }
.form-hint { font-size: 14px; color: var(--muted); }

.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
}
.contact-item strong { display: block; }
.contact-item span { color: var(--muted); }

.map-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  box-shadow: 0 18px 52px rgba(51, 38, 25, 0.08);
}

.requisites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bank-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
}

.bank-card dl { margin: 18px 0 0; display: grid; gap: 12px; }
.bank-card div { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid rgba(36,32,27,0.08); }
.bank-card dt { color: var(--muted); font-size: 14px; font-weight: 800; }
.bank-card dd { margin: 0; font-weight: 850; word-break: break-word; }

.site-footer {
  margin-top: 70px;
  padding: 46px 0 28px;
  background: #211d19;
  color: #fff;
}
.site-footer p, .site-footer a { color: rgba(255,255,255,0.72); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 30px; }
.footer-links { display: grid; gap: 8px; }
.footer-title { color: #fff; font-weight: 900; margin-bottom: 12px; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1040px) {
  .header-contacts .phone-link { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-card { min-height: 440px; }
  .feature-grid, .requisites-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 62px 0; }
  .nav {
    position: fixed;
    inset: 78px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; }
  .burger { display: block; }
  .burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-active span:nth-child(2) { opacity: 0; }
  .burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 42px; }
  .stats { grid-template-columns: 1fr; }
  .section-head, .page-hero-grid { display: grid; }
  .cards-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 390px; }
}

@media (max-width: 520px) {
  h1 { font-size: 40px; }
  .hero-actions, .btn { width: 100%; }
  .hero-card { padding: 22px; }
  .hero-visual { width: 92%; }
  .product-card { min-height: auto; }
}

.lumber-grid { grid-template-columns: repeat(3, 1fr); }
.pallet-size-grid { margin-top: 24px; grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 820px) {
  .lumber-grid, .pallet-size-grid { grid-template-columns: 1fr; }
}


/* FAQ styles */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(51, 38, 25, 0.06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.faq-list details:hover {
  border-color: rgba(47, 93, 70, .28);
  box-shadow: 0 18px 46px rgba(51, 38, 25, 0.09);
  transform: translateY(-1px);
}

.faq-list details[open] {
  background: #fffaf2;
  border-color: rgba(47, 93, 70, .32);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  color: var(--text);
  font-weight: 900;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(47, 93, 70, .10);
  color: var(--green);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.faq-list details[open] summary::before {
  content: "−";
  background: var(--green);
  color: #fff;
}

.faq-list details p {
  padding: 0 22px 20px 66px;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .faq-list summary {
    padding: 16px;
    align-items: flex-start;
  }

  .faq-list details p {
    padding: 0 16px 18px 60px;
  }
}


/* Product photo gallery */
.product-gallery-section {
  position: relative;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.gallery-thumb {
  position: relative;
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  cursor: pointer;
  padding: 14px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(51, 38, 25, 0.10);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(51, 38, 25, 0.15);
}

.gallery-thumb-main {
  grid-column:  auto;
}

.gallery-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.gallery-missing {
  position: absolute;
  inset: 14px;
  z-index: 1;
  display: none;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-weight: 900;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(47,93,70,.08), rgba(166,106,63,.10)),
    #fffaf2;
}

.gallery-thumb.is-missing .gallery-missing {
  display: grid;
}

@media (max-width: 760px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-thumb-main {
    grid-column: auto;
  }
}


.gallery-thumb::after {
  content: "Смотреть";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(36, 32, 27, .72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(6px);
  transition: .2s ease;
}

.gallery-thumb:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-missing {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(47,93,70,.08), rgba(166,106,63,.10)),
    #fffaf2;
}

.gallery-missing small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(107, 98, 86, .82);
  font-weight: 700;
}

.gallery-thumb.is-missing .gallery-missing {
  display: grid;
}

.gallery-thumb.is-missing::after {
  content: "Место для фото";
  opacity: 1;
  transform: none;
  background: rgba(47,93,70,.78);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(20, 18, 16, .82);
  backdrop-filter: blur(10px);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-inner {
  position: relative;
  width: min(100%, 1100px);
  display: grid;
  gap: 14px;
}

.gallery-lightbox-frame {
  position: relative;
  min-height: min(72vh, 720px);
  border-radius: 28px;
  overflow: hidden;
  background: #161412;
  box-shadow: 0 32px 90px rgba(0,0,0,.35);
}

.gallery-lightbox-img {
  width: 100%;
  height: min(72vh, 720px);
  object-fit: contain;
}

.gallery-lightbox-caption {
  color: rgba(255,255,255,.86);
  text-align: center;
  font-weight: 800;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  z-index: 3;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  transition: .2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(255,255,255,.24);
}

.gallery-lightbox-close {
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 28px;
  line-height: 1;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border-radius: 18px;
  font-size: 30px;
  line-height: 1;
}

.gallery-lightbox-prev {
  left: 14px;
}

.gallery-lightbox-next {
  right: 14px;
}

@media (max-width: 760px) {
  .product-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-thumb,
  .gallery-thumb-main {
    min-height: 150px;
    grid-row: auto;
  }

  .gallery-thumb-main {
    grid-column: span 2;
    min-height: 220px;
  }

  .gallery-lightbox {
    padding: 14px;
  }

  .gallery-lightbox-frame {
    min-height: 58vh;
    border-radius: 20px;
  }

  .gallery-lightbox-img {
    height: 58vh;
  }
}
