*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #d91212;
  --red-hover: #b80f0f;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #232323;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d1d1d1;
  --gray-400: #9e9e9e;
  --gray-500: #6b6b6b;
  --gray-600: #444;
  --white: #ffffff;
  --green: #2e7d32;
  --green-light: #e8f5e9;
  --green-medium: #4caf50;
  --orange: #e65100;
  --yellow: #f9a825;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== RESPONSIVE IMAGES ========== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
}

/* Prevent layout shift for images */
img[width][height] {
  height: auto;
}

/* Performance optimizations for smooth scrolling on mobile */
@media (max-width: 768px) {
  * {
    -webkit-overflow-scrolling: touch;
  }

  /* GPU acceleration for transforms */
  .header,
  .gallery-main-img,
  .shorts-track,
  .cart-overlay,
  .installments-modal {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Optimize animations */
  .adv-card,
  .short-card,
  .review-card {
    will-change: opacity, transform;
  }
}

/* ========== GLOBAL TOUCH & ACCESSIBILITY ========== */
button, a, input[type="radio"], input[type="checkbox"] {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
}

html {
  scroll-behavior: smooth;
}

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

/* Touch-friendly minimum sizes */
@media (max-width: 768px) {
  button:not(.gallery-thumb),
  a.cta-primary,
  a.cta-secondary,
  .header-cart-btn,
  .header-hamburger,
  .config-select,
  .payment-method-badge {
    min-height: 44px;
  }
}

/* ========== STICKY HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo svg {
  height: 32px;
  width: auto;
}

.header-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.header-logo-text span {
  color: var(--red);
}

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

.header-nav a {
  text-decoration: none;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--dark);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
}

.header-phone svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.header-cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-cart-btn svg {
  width: 22px;
  height: 22px;
  color: var(--dark);
}

.header-buy-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-100);
  border-radius: 5px;
  padding: 6px 6px 6px 12px;
}

.header-buy-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.header-buy-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.header-buy-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.header-buy-btn:hover {
  background: var(--red-hover);
}

.header-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}

.header-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header-hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.header-hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}

.header-mobile-menu.open {
  max-height: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-mobile-menu-inner {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-mobile-menu a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s;
}

.header-mobile-menu a:last-child {
  border-bottom: none;
}

.header-mobile-menu a:hover {
  color: var(--dark);
}

/* ========== HERO SECTION ========== */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 24px 60px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* Gallery */
.gallery {
  flex: 1;
  max-width: 560px;
  position: sticky;
  top: 88px;
}

.gallery-wrapper {
  display: flex;
  gap: 16px;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  width: 72px;
  align-self: stretch;
  min-height: 0;
}

.gallery-thumbs-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  max-height: 340px;
  overflow: hidden;
  padding: 3px 2px 3px 0;
}

.gallery-thumbs-scroll::-webkit-scrollbar {
  width: 4px;
}

.gallery-thumbs-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 2px;
}

.gallery-thumbs-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.gallery-thumbs-more {
  display: none;
  font-size: 11px;
  color: var(--dark);
  text-decoration: underline;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font: inherit;
}

.gallery-thumbs-more:not(:empty) {
  display: block;
}

.gallery-thumbs-more:hover {
  color: var(--red);
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 3px;
  border: 1px solid #e7e7e7;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #fff;
  transition: border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  box-sizing: border-box;
}

.gallery-thumb:hover {
  border-color: #d1d1d1;
}

.gallery-thumb.active {
  border-color: var(--red);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-main {
  flex: 1;
  position: relative;
  border-radius: 0px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.gallery-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-50%) scale(1.06);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
}

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

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

.gallery-main-video {
  display: none;
  position: absolute;
  inset: 0;
  background: #000;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

.gallery-main-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
}

.gallery-thumb--video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: #fff;
  flex-shrink: 0;
  border: none;
}

.gallery-thumb-video-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #ff2f00;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
}

.gallery-thumb-video-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.gallery-thumb-video-icon svg {
  display: none;
}

.gallery-thumb-video-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: underline;
  letter-spacing: 0.02em;
}

.gallery-main-img-clickable {
  cursor: pointer;
}

/* ========== GALLERY POPUP ========== */
.gallery-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-popup.open {
  opacity: 1;
  visibility: visible;
}

.gallery-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.gallery-popup-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.gallery-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
}

.gallery-popup-close:hover {
  background: #fff;
  transform: scale(1.05);
}

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

.gallery-popup-content {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 48px 16px 16px;
  max-height: 90vh;
  min-height: 0;
}

.gallery-popup-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  width: 88px;
  min-height: 0;
}

.gallery-popup-thumbs-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 12px;
  box-sizing: border-box;
}

.gallery-popup-thumbs-scroll::-webkit-scrollbar {
  width: 4px;
}

.gallery-popup-thumbs-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.gallery-popup-thumbs-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.gallery-popup-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #fff;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.gallery-popup-thumb:hover {
  border-color: #d1d1d1;
}

.gallery-popup-thumb.active {
  border-color: var(--red);
}

.gallery-popup-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-popup-thumb--video {
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
}

.gallery-popup-main {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-popup-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-popup-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.gallery-popup-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-50%) scale(1.06);
}

.gallery-popup-arrow svg {
  width: 20px;
  height: 20px;
}

.gallery-popup-arrow--prev {
  left: 14px;
}

.gallery-popup-arrow--next {
  right: 14px;
}

.gallery-popup-video {
  display: none;
  position: absolute;
  inset: 0;
  background: #000;
  align-items: center;
  justify-content: center;
}

.gallery-popup-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 640px) {
  .gallery-popup {
    padding: 0;
    align-items: stretch;
  }

  .gallery-popup-inner {
    max-height: 100vh;
    border-radius: 0;
  }

  .gallery-popup-content {
    flex-direction: column;
    padding: 48px 12px 12px;
    max-height: 100vh;
  }

  .gallery-popup-thumbs-col {
    flex-direction: row;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    max-height: none;
  }

  .gallery-popup-thumbs-scroll {
    flex: none;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 8px;
  }

  .gallery-popup-thumb {
    width: 56px;
    height: 56px;
  }

  .gallery-popup-main {
    flex: 1;
    min-height: 200px;
    aspect-ratio: 1;
  }
}

/* Product Info */
.product-info {
  flex: 1;
  max-width: 600px;
  min-width: 0;
}

.product-title {
  font-size: clamp(19px, 4vw, 26px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

/* SKU + Rating row (change #5) */
.sku-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.product-sku {
  font-size: 13px;
  color: var(--gray-400);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  width: 16px;
  height: 16px;
  color: var(--yellow);
}

.rating-text {
  font-size: 13px;
  color: var(--gray-500);
}

.rating-text strong {
  color: var(--dark);
}

/* Viewers */
.viewers {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff8e1;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--gray-600);
}

.viewers-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.viewers strong {
  color: var(--dark);
}

/* Price */
.price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.price-current {
  font-size: clamp(28px, 5vw, 34px);
  font-weight: 800;
  color: var(--dark);
}

.price-old {
  font-size: 18px;
  color: var(--gray-400);
  text-decoration: line-through;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 10px;
}

.savings-badge svg {
  width: 16px;
  height: 16px;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* Configuration (change #2 - with thumbnails) */
.config-section {
  margin-bottom: 24px;
}

.config-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.config-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-card {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 10px 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
}

.config-card:hover {
  border-color: var(--gray-300);
}

.config-card.active {
  border-color: var(--red);
  background: #fef2f2;
}

.config-card-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}

.config-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.config-card-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.config-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.config-card-desc {
  font-size: 12px;
  color: var(--gray-500);
}

.config-card-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.config-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.config-card-save {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: var(--gray-100);
  border-radius: 10px;
  text-align: center;
  cursor: default;
  position: relative;
}

.trust-badge svg {
  width: 22px;
  height: 22px;
  color: var(--gray-600);
}

.trust-badge-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
  line-height: 1.3;
}

.trust-badge .tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.trust-badge .tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--dark);
}

.trust-badge:hover .tooltip {
  display: block;
}

/* Delivery (change #4 - no border, info icon with tooltip) */
.delivery-section {
  margin-bottom: 24px;
}

.delivery-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.delivery-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.delivery-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  flex: 1;

  position: relative;
}

.delivery-chip img {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.delivery-info-icon {
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  margin-left: auto;
  cursor: help;
  flex-shrink: 0;
  transition: color 0.2s;
}

.delivery-chip:hover .delivery-info-icon {
  color: var(--gray-600);
}

.delivery-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  line-height: 1.5;
}

.delivery-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--dark);
}

.delivery-chip:hover .delivery-tooltip {
  display: block;
}

/* Payment (change #3 - matching reference) */
.payment-section {
  background: none;
  border-radius: 14px;
  padding: 18px 0;
  margin-bottom: 24px;
}

.payment-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.payment-header-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.payment-header-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.payment-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-method-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--green-light);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  height: 40px;
}

.payment-method-badge svg {
  height: 20px;
  width: auto;
}

.payment-method-badge img {
  height: 20px;
  width: auto;
}

/* CTA */
.cta-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.cta-btn:hover {
  background: var(--red-hover);
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn svg {
  width: 20px;
  height: 20px;
}

/* Installments (change #6 - redesigned matching reference) */
.installments-card {
  margin-top: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px;
  background: var(--white);
}

.installments-banks {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.bank-badge {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}

.bank-badge-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bank-badge-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-badge-count {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white);
}

.bank-more-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: none;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.bank-more-btn:hover {
  border-color: var(--gray-500);
  color: var(--dark);
}

.installments-price {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 14px;
}

.installments-price strong {
  font-size: 24px;
  font-weight: 800;
}

.installments-cta {
  width: 100%;
  padding: 16px 24px;
  background: var(--green-medium);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
  text-align: center;
}

.installments-cta:hover {
  background: var(--green);
}

.installments-cta:active {
  transform: scale(0.98);
}

/* Accordion */
.accordion {
  margin-bottom: 16px;
}

.accordion-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.accordion-tab {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: inherit;
}

.accordion-tab:first-child {
  border-radius: 10px 0 0 0;
}

.accordion-tab:last-child {
  border-radius: 0 10px 0 0;
  border-left: none;
}

.accordion-tab.active {
  background: var(--white);
  color: var(--dark);
  border-bottom-color: var(--white);
}

.accordion-content {
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 20px;
  display: none;
}

.accordion-content.active {
  display: block;
}

.spec-table {
  width: 100%;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--gray-500);
}

.spec-value {
  font-weight: 600;
  color: var(--dark);
  text-align: right;
}

.kit-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}

.kit-item:last-child {
  border-bottom: none;
}

.kit-name {
  color: var(--dark);
}

.kit-qty {
  color: var(--gray-400);
  font-weight: 500;
}

/* ========== ADVANTAGES MOSAIC ========== */
.advantages {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.advantages-header {
  text-align: center;
  margin-bottom: 48px;
}

.advantages-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.advantages-tag svg {
  width: 14px;
  height: 14px;
}

.advantages-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.adv-card {
  display: flex;
  gap: 0;
  border-radius: 0px;
  overflow: hidden;
  background: var(--gray-100);
  min-height: 340px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.adv-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.adv-card.reverse {
  flex-direction: row-reverse;
}

.adv-media {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.adv-media img,
.adv-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.adv-card:hover .adv-media img,
.adv-card:hover .adv-media video {
  transform: scale(1.04);
}

.adv-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 44px;
}

.adv-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.adv-icon svg {
  width: 24px;
  height: 24px;
}

.adv-icon--red {
  background: #fef2f2;
  color: var(--red);
}

.adv-icon--green {
  background: var(--green-light);
  color: var(--green);
}

.adv-icon--dark {
  background: var(--dark);
  color: var(--white);
}

.adv-icon--orange {
  background: #fff3e0;
  color: var(--orange);
}

.adv-icon--blue {
  background: #e3f2fd;
  color: #1565c0;
}

.adv-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.adv-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.adv-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adv-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.adv-feature svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-medium);
}

@media (max-width: 1024px) {
  .advantages {
    padding: 40px 24px 60px;
  }

  .advantages-title {
    font-size: 26px;
  }

  .adv-card {
    min-height: 280px;
  }

  .adv-content {
    padding: 28px 28px;
  }

  .adv-name {
    font-size: 18px;
  }

  .adv-desc {
    font-size: 14px;
  }
}

@media (max-width: 768px) {

  .adv-card,
  .adv-card.reverse {
    flex-direction: column;
  }

  .adv-media {
    aspect-ratio: 16/10;
    max-height: 240px;
  }

  .adv-content {
    padding: 24px;
  }

  .adv-card {
    min-height: auto;
  }
}

/* ========== SHORTS CAROUSEL ========== */
.shorts {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.shorts-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.shorts-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shorts-logo {
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.shorts-label {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.shorts-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 14px;
}

.shorts-count svg {
  width: 14px;
  height: 14px;
}

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

.shorts-page {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}

.shorts-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.shorts-arrow:hover {
  border-color: var(--gray-400);
  background: var(--gray-100);
}

.shorts-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.shorts-arrow:disabled:hover {
  border-color: var(--gray-200);
  background: var(--white);
}

.shorts-arrow svg {
  width: 18px;
  height: 18px;
  color: var(--dark);
}

.shorts-sub {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.shorts-track-wrap {
  overflow: hidden;
  border-radius: 16px;
}

.shorts-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.short-card {
  flex: 0 0 calc((100% - 64px) / 5);
  min-width: 0;
  cursor: pointer;
  outline: none;
}

.short-card:focus-visible .short-thumb {
  box-shadow: 0 0 0 3px var(--red);
}

.short-thumb {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-100);
  transition: box-shadow 0.2s ease;
}

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

.short-card:hover .short-thumb img {
  transform: scale(1.05);
}

.short-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(217, 18, 18, 0.9);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 1;
}

.short-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.short-card:hover .short-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--red);
}

.short-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.short-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.short-num {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.short-dur {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.short-dur svg {
  width: 12px;
  height: 12px;
}

.short-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

.short-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
}

.short-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.short-stat svg {
  width: 15px;
  height: 15px;
}

.short-stat--heart svg {
  color: var(--red);
}

/* Shorts modal */
.shorts-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.shorts-modal--open {
  opacity: 1;
  visibility: visible;
}

.shorts-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.shorts-modal-inner {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: min(90vh, 711px);
  z-index: 1;
}

.shorts-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.shorts-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.shorts-modal-close svg {
  width: 22px;
  height: 22px;
}

.shorts-modal-video-wrap {
  position: relative;
  width: 100%;
  min-height: 280px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.shorts-modal-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

@media (max-width: 1024px) {
  .short-card {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

@media (max-width: 768px) {
  .shorts-top {
    flex-wrap: wrap;
    gap: 12px;
  }
  .shorts-nav {
    width: 100%;
    justify-content: flex-end;
  }
  .shorts-label {
    font-size: 22px;
  }
  .short-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 480px) {
  .shorts {
    padding: 0 16px 48px;
  }
  .short-card {
    flex: 0 0 70%;
  }
  .shorts-track-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .shorts-track-wrap::-webkit-scrollbar {
    display: none;
  }
  .shorts-track {
    transition: none;
  }
  .shorts-nav {
    display: none;
  }
}

/* ========== PAINS & SOLUTIONS ========== */
.pains {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.pains-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-bottom: 40px;
  max-width: 600px;
}

.pains-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pain-item {
  border-top: 1px solid var(--gray-200);
  cursor: pointer;
  transition: background 0.2s;
}

.pain-item:last-child {
  border-bottom: 1px solid var(--gray-200);
}

.pain-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  user-select: none;
}

.pain-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.pain-item.open .pain-number {
  background: var(--dark);
  color: var(--white);
}

.pain-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.pain-toggle {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.pain-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  transition: color 0.3s;
}

.pain-item.open .pain-toggle {
  transform: rotate(180deg);
}

.pain-item.open .pain-toggle svg {
  color: var(--dark);
}

.pain-solution {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.pain-item.open .pain-solution {
  opacity: 1;
}

.pain-solution-inner {
  padding: 0 0 24px 52px;
}

.pain-solution-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Trust block */
.pains-trust {
  margin-top: 48px;
  padding: 28px;
  border-left: 3px solid var(--gray-300);
}

.pains-trust-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
}

/* CTA */
.pains-cta-wrap {
  margin-top: 36px;
  text-align: center;
}

.pains-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}

.pains-cta:hover {
  background: var(--dark-2);
}

.pains-cta:active {
  transform: scale(0.98);
}

.pains-cta svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .pains {
    padding: 40px 18px 56px;
  }
  .pains-title {
    font-size: 21px;
    margin-bottom: 28px;
  }
  .pain-header {
    padding: 18px 0;
    gap: 12px;
  }
  .pain-number {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .pain-text {
    font-size: 15px;
  }
  .pain-solution-inner {
    padding: 0 0 20px 44px;
  }
  .pain-solution-text {
    font-size: 14px;
  }
  .pains-trust {
    margin-top: 36px;
    padding: 20px;
  }
  .pains-trust-text {
    font-size: 14px;
  }
  .pains-cta {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
}

/* ========== REVIEWS ========== */
.reviews {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.reviews-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.reviews-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.review-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: background 0.2s;
}

.review-write-btn:hover {
  background: var(--dark-2);
}

.review-write-btn svg {
  width: 16px;
  height: 16px;
}

/* Summary */
.reviews-summary {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 28px;
  background: var(--gray-100);
  border-radius: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.reviews-score {
  text-align: center;
  flex-shrink: 0;
  min-width: 100px;
}

/* Photos Gallery */
.reviews-photos {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-photos-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.reviews-photos-header svg {
  width: 18px;
  height: 18px;
  color: var(--gray-500);
}

.reviews-photos-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
}

.reviews-photos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.review-photo-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.review-photo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-color: var(--red);
}

.review-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}

.review-photo-item:hover img {
  transform: scale(1.1);
}

.review-photo-more {
  position: relative;
}

.review-photo-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  transition: background 0.2s;
}

.review-photo-more:hover .review-photo-more-overlay {
  background: rgba(0, 0, 0, 0.75);
}

.reviews-score-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.reviews-score-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 6px;
}

.reviews-score-stars svg {
  width: 18px;
  height: 18px;
  color: var(--yellow);
  fill: var(--yellow);
}

.reviews-score-count {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Bars */
.reviews-bars {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviews-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-bar-label {
  font-size: 13px;
  color: var(--gray-500);
  width: 14px;
  text-align: right;
  flex-shrink: 0;
}

.reviews-bar-stars {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
}

.reviews-bar-stars svg {
  width: 12px;
  height: 12px;
}

.reviews-bar-stars svg.filled {
  color: var(--yellow);
  fill: var(--yellow);
}

.reviews-bar-stars svg.empty {
  color: var(--gray-300);
  fill: var(--gray-300);
}

.reviews-bar-track {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.reviews-bar-fill {
  height: 100%;
  background: var(--green-medium);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.reviews-bar-count {
  font-size: 12px;
  color: var(--gray-400);
  width: 24px;
  flex-shrink: 0;
}

.reviews-recommend {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
}

.reviews-recommend-badge {
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.reviews-recommend-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}

/* Tabs + sort */
.reviews-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.reviews-tabs {
  display: flex;
  gap: 0;
}

.reviews-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  position: relative;
  transition: color 0.2s;
}

.reviews-tab:hover {
  color: var(--dark);
}

.reviews-tab.active {
  color: var(--dark);
}

.reviews-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--dark);
}

.reviews-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--gray-200);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  margin-left: 6px;
}

.reviews-tab.active .reviews-tab-badge {
  background: var(--dark);
  color: var(--white);
}

.reviews-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.reviews-sort label {
  font-size: 13px;
  color: var(--gray-500);
}

.reviews-sort select {
  padding: 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  cursor: pointer;
}

/* Review form */
.review-form-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.review-form-wrap.open {
  max-height: 900px;
}

.review-form {
  padding: 28px;
  background: var(--gray-100);
  border-radius: 14px;
  margin-bottom: 28px;
}

.review-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.review-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.review-form-group input,
.review-form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.review-form-group input:focus,
.review-form-group textarea:focus {
  outline: none;
  border-color: var(--dark);
}

.review-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.review-form-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.review-form-rating span {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.review-form-stars {
  display: flex;
  gap: 4px;
}

.review-form-stars svg {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--gray-300);
  fill: var(--gray-300);
  transition: color 0.15s, fill 0.15s;
}

.review-form-stars svg.active {
  color: var(--yellow);
  fill: var(--yellow);
}

.review-form-recommend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.review-form-recommend span {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.review-form-recommend label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}

.review-form-recommend input[type="radio"] {
  accent-color: var(--green);
}

/* Photo upload */
.review-form-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.review-photo-upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100px;
  height: 100px;
  border: 1px dashed var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.review-photo-upload-btn:hover {
  border-color: var(--gray-500);
  background: var(--gray-100);
}

.review-photo-upload-btn svg {
  width: 28px;
  height: 28px;
  color: var(--gray-400);
}

.review-photo-upload-btn span {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  text-align: center;
}

.review-photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-photo-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-100);
}

.review-photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.review-photo-remove:hover {
  background: rgba(0, 0, 0, 0.9);
}

.review-photo-remove svg {
  width: 14px;
  height: 14px;
  color: var(--white);
}

.review-form-hint {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
}

.review-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.review-form-submit:hover {
  background: #256d29;
}

/* Review cards */
.reviews-list {
  display: flex;
  flex-direction: column;
}

.review-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}

.review-card:first-child {
  padding-top: 0;
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-500);
  flex-shrink: 0;
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
}

.review-verified svg {
  width: 13px;
  height: 13px;
}

.review-author-loc {
  font-size: 12px;
  color: var(--gray-400);
}

.review-date {
  font-size: 12px;
  color: var(--gray-400);
  flex-shrink: 0;
}

.review-recommend-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.review-recommend-tag svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.review-card-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.review-card-stars .stars {
  display: flex;
  gap: 1px;
}

.review-card-stars .stars svg {
  width: 14px;
  height: 14px;
  color: var(--yellow);
  fill: var(--yellow);
}

.review-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.review-card-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* Review photos in cards */
.review-photos-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.review-photo-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-photo-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.review-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-helpful {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
}

.review-helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--gray-500);
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}

.review-helpful-btn:hover {
  border-color: var(--gray-400);
  color: var(--dark);
}

.review-helpful-btn.review-helpful-voted {
  border-color: var(--green);
  color: var(--green);
}

.review-helpful-btn.review-helpful-voted:hover {
  border-color: var(--green);
  color: var(--green);
}

.review-heart-icon {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.review-heart-voted {
  display: none;
}
.review-helpful-btn.review-helpful-voted .review-heart-default {
  display: none;
}
.review-helpful-btn.review-helpful-voted .review-heart-voted {
  display: inline-block;
}

.review-helpful-count {
  display: inline;
}

/* ========== PHOTO MODAL ========== */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.photo-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  animation: photoZoomIn 0.3s ease-out;
}

@keyframes photoZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.photo-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

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

.photo-modal-close svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

/* Стрілки поза межами картинки — на темному фоні попапу, завжди видно */
.photo-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 20;
}

.photo-modal-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.photo-modal-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.photo-modal-arrow svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.photo-modal-arrow--prev {
  left: 16px;
}

.photo-modal-arrow--next {
  right: 16px;
}

.photo-modal-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .photo-modal-content {
    max-width: 95vw;
    max-height: 85vh;
  }

  .photo-modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .photo-modal-arrow {
    width: 44px;
    height: 44px;
  }

  .photo-modal-arrow--prev {
    left: 8px;
  }

  .photo-modal-arrow--next {
    right: 8px;
  }

  .photo-modal-counter {
    bottom: 10px;
    font-size: 13px;
    padding: 6px 12px;
  }

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

  .review-photo-thumb {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .reviews {
    padding: 40px 16px 56px;
  }
  .reviews-header {
    flex-direction: column;
    gap: 16px;
  }
  .reviews-header h2 {
    font-size: 22px;
  }
  .reviews-summary {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .reviews-score {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }
  .reviews-photos {
    width: 100%;
  }
  .reviews-photos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .reviews-recommend {
    align-self: flex-start;
  }
  .reviews-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .review-form-row {
    flex-direction: column;
  }
  .review-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .review-photo-upload-btn {
    width: 90px;
    height: 90px;
  }
  .review-photo-preview-item {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .reviews-photos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .review-photo-thumb {
    width: 60px;
    height: 60px;
  }
  
  .review-photo-upload-btn {
    width: 80px;
    height: 80px;
  }
  
  .review-photo-preview-item {
    width: 80px;
    height: 80px;
  }
}

/* ========== VIDEO REVIEWS (YouTube Bloggers) ========== */
.video-reviews {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.video-reviews-header {
  text-align: center;
  margin-bottom: 48px;
}

.video-reviews-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.video-reviews-tag svg {
  width: 18px;
  height: 18px;
}

.video-reviews-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.video-reviews-sub {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

.video-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 16px;
}

.vr-card {
  background: transparent;
  cursor: pointer;
  border: none;
}

.vr-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
  border-radius: 12px;
  margin-bottom: 12px;
}

.vr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vr-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.vr-card:hover .vr-play {
  opacity: 1;
}

.vr-play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.vr-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 4px;
  border-radius: 3px;
  z-index: 2;
  letter-spacing: 0.3px;
}

.vr-info {
  display: flex;
  gap: 12px;
}

.vr-channel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  overflow: hidden;
  flex-shrink: 0;
}

.vr-channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vr-channel-avatar svg {
  width: 100%;
  height: 100%;
  padding: 8px;
  color: var(--gray-400);
}

.vr-info-text {
  flex: 1;
  min-width: 0;
}

.vr-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vr-channel-name {
  font-size: 12px;
  font-weight: 400;
  color: #606060;
  line-height: 1.5;
}

.vr-meta-stats {
  font-size: 12px;
  font-weight: 400;
  color: #606060;
  line-height: 1.5;
}

.vr-meta-row,
.vr-meta-label,
.vr-meta-channel,
.vr-meta-title,
.vr-meta-duration,
.vr-duration-value {
  display: none;
}

/* Video Review Modal */
.vr-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vr-modal--open {
  opacity: 1;
  visibility: visible;
}

.vr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.vr-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  z-index: 1;
}

.vr-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.vr-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

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

.vr-modal-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vr-modal-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* Center last row if less than 3 items */
@supports (grid-template-columns: subgrid) {
  .video-reviews-grid {
    justify-items: center;
  }
}

@media (max-width: 1024px) {
  .video-reviews {
    padding: 40px 24px 60px;
  }

  .video-reviews-title {
    font-size: 26px;
  }

  .video-reviews-sub {
    font-size: 15px;
  }

  .video-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .video-reviews {
    padding: 40px 16px 56px;
  }

  .video-reviews-header {
    margin-bottom: 32px;
  }

  .video-reviews-title {
    font-size: 22px;
  }

  .video-reviews-sub {
    font-size: 14px;
  }

  .video-reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vr-play {
    width: 56px;
    height: 40px;
  }

  .vr-play svg {
    width: 18px;
    height: 18px;
  }

  .vr-channel-avatar {
    width: 32px;
    height: 32px;
  }

  .vr-channel-avatar svg {
    width: 16px;
    height: 16px;
  }

  .vr-card-title {
    font-size: 13px;
  }

  .vr-channel-name {
    font-size: 11px;
  }

  .vr-meta-stats {
    font-size: 11px;
  }

  .vr-modal-inner {
    max-width: 100%;
  }

  .vr-modal-close {
    top: -42px;
    width: 36px;
    height: 36px;
  }

  .vr-modal-video-wrap {
    border-radius: 12px;
  }
}

/* ========== FINAL CTA ========== */
.final-cta {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.final-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.final-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.88) 0%,
    rgba(10, 10, 10, 0.72) 50%,
    rgba(10, 10, 10, 0.60) 100%
  );
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 80px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.final-cta-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-medium);
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.final-cta-heading {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.final-cta-heading em {
  font-style: normal;
  color: var(--red);
}

.final-cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 560px;
}

.final-cta-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.final-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.final-cta-btn:active {
  transform: scale(0.97);
}

.final-cta-btn svg {
  width: 18px;
  height: 18px;
}

.final-cta-btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(217, 18, 18, 0.35);
}

.final-cta-btn--primary:hover {
  box-shadow: 0 6px 32px rgba(217, 18, 18, 0.5);
}

.final-cta-btn--secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.final-cta-btn--secondary:hover {
  background: rgba(255,255,255,0.16);
}

.final-cta-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.final-cta-stat {
  text-align: center;
}

.final-cta-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.final-cta-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .final-cta {
    min-height: 480px;
  }
  .final-cta-inner {
    padding: 56px 20px;
  }
  .final-cta-heading {
    font-size: 28px;
  }
  .final-cta-sub {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .final-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
  }
  .final-cta-stats {
    gap: 24px;
    margin-top: 36px;
    padding-top: 24px;
  }
  .final-cta-stat-num {
    font-size: 22px;
  }
  .final-cta-stat-label {
    font-size: 11px;
  }
}

/* ========== SECTION DESCRIPTION (Доставка, Гарантія, Оплата, Повернення) ========== */
.section-description {
  background: var(--white);
  padding: 56px 24px 72px;
}

.description-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.description-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 32px;
}

.description-card {
  flex: 1 1 200px;
  max-width: 280px;
  min-width: 0;
}

.description-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.description-card-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  /* Червоний колір бренду #d91212 для SVG */
  filter: brightness(0) saturate(100%) invert(18%) sepia(99%) saturate(5462%) hue-rotate(355deg) brightness(95%) contrast(91%);
}

.description-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.description-card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-600);
}

@media (max-width: 900px) {
  .description-grid {
    justify-content: center;
    gap: 32px 24px;
  }
  .description-card {
    flex: 1 1 calc(50% - 16px);
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .section-description {
    padding: 40px 20px 56px;
  }
  .description-grid {
    gap: 28px 20px;
  }
  .description-card {
    flex: 1 1 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .section-description {
    padding: 32px 16px 48px;
  }
  .description-card-header {
    gap: 8px;
    margin-bottom: 8px;
  }
  .description-card-icon {
    width: 20px;
    height: 20px;
  }
  .description-card-title {
    font-size: 14px;
  }
  .description-card-text {
    font-size: 13px;
  }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 48px 24px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}

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

.footer-logo-svg {
  width: 180px;
  height: auto;
}

.footer-company {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.7;
}

.footer-company strong {
  color: var(--gray-300);
  font-weight: 600;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--gray-400);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-400);
}

.footer-contact-item a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gray-400);
}

.footer-phone-big {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-phone-big a {
  font-size: 20px;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
}

.footer-phone-big svg {
  color: var(--green);
}

.footer-phone-note {
  font-size: 12px;
  color: var(--gray-500);
  margin-left: 28px;
  line-height: 1.5;
}

.footer-social-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-socials a:hover {
  background: var(--gray-600);
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
  color: var(--gray-300);
}

.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--dark-3);
  font-size: 13px;
  color: var(--gray-500);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .header-buy-block {
    display: none;
  }

  .header-hamburger {
    display: flex;
  }

  .header-mobile-menu {
    top: 64px;
  }

  .hero {
    flex-direction: column;
    padding: 80px 20px 40px;
    gap: 28px;
  }

  .gallery {
    position: static;
    max-width: 100%;
    width: 100%;
  }

  .gallery-wrapper {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 10px;
    align-self: auto;
    width: auto;
    min-height: 0;
  }

  .gallery-thumbs-scroll {
    flex: none;
    flex-direction: row;
    overflow: visible;
    min-height: 0;
    max-height: none;
    padding-right: 0;
  }

  .gallery-thumbs-more {
    display: none !important;
  }

  .gallery-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
  }

  .gallery-main {
    aspect-ratio: 1;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 0px;
  }

  .gallery-arrow {
    width: 36px;
    height: 36px;
  }

  .gallery-arrow--prev {
    left: 10px;
  }

  .gallery-arrow--next {
    right: 10px;
  }

  .gallery-arrow svg {
    width: 18px;
    height: 18px;
  }

  .gallery-thumb--video .gallery-thumb-video-icon {
    width: 22px;
    height: 22px;
  }

  .gallery-thumb-video-label {
    font-size: 9px;
  }

  .product-info {
    max-width: 100%;
  }

  .product-title {
    font-size: 24px;
  }

  .price-current {
    font-size: 32px;
  }

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


  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .final-cta-heading {
    font-size: 32px;
  }

  .final-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .final-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .header-phone {
    display: none;
  }

  .header-mobile-menu {
    top: 56px;
  }

  .header-mobile-menu-inner {
    padding: 12px 16px;
  }

  .header-logo-text {
    font-size: 17px;
  }

  .header-cart-btn {
    padding: 6px;
  }

  .header-cart-btn svg {
    width: 20px;
    height: 20px;
  }

  .hero {
    padding: 68px 16px 32px;
  }

  .gallery-thumb {
    width: 56px;
    height: 56px;
  }

  .gallery-main {
    max-width: 100%;
    border-radius: 0px;
  }

  .product-title {
    font-size: 19px;
    line-height: 1.3;
  }

  .sku-rating-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .price-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .price-current {
    font-size: 28px;
  }

  .price-old {
    font-size: 18px;
  }

  .savings-badge {
    font-size: 13px;
    padding: 4px 10px;
  }

  .delivery-row {
    flex-direction: column;
    gap: 10px;
  }

  .delivery-chip {
    font-size: 13px;
  }

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

  .trust-badge {
    padding: 10px;
    font-size: 11px;
  }

  .trust-badge svg {
    width: 18px;
    height: 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-logo-svg {
    width: 140px;
  }

  .footer-heading {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .footer-links a,
  .footer-contact-item {
    font-size: 13px;
  }

  .footer-phone-big a {
    font-size: 18px;
  }

  .footer-bottom {
    font-size: 12px;
    margin-top: 24px;
    padding-top: 16px;
  }

  .config-card {
    flex-wrap: wrap;
    padding: 14px;
  }

  .config-card-right {
    flex-basis: 100%;
    align-items: flex-start;
    margin-left: 56px;
  }

  .config-card-name {
    font-size: 13px;
  }

  .config-card-price {
    font-size: 15px;
  }

  .config-card-thumb {
    width: 48px;
    height: 48px;
  }

  .sku-rating-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .product-sku {
    font-size: 11px;
  }

  .payment-methods {
    gap: 6px;
    flex-wrap: wrap;
  }

  .payment-method-badge {
    padding: 6px 10px;
    font-size: 11px;
    height: 34px;
  }

  .installments-banks {
    gap: 6px;
  }

  .bank-badge {
    width: 34px;
    height: 34px;
  }

  .bank-badge-inner {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }

  .cta-btn,
  .final-cta-btn {
    font-size: 14px;
    padding: 14px 20px;
  }
}

/* ========== LANDSCAPE MOBILE ========== */
@media (max-width: 896px) and (max-height: 480px) and (orientation: landscape) {
  .hero {
    flex-direction: row;
    padding: 80px 20px 40px;
    gap: 32px;
  }

  .gallery {
    max-width: 45%;
  }

  .product-info {
    max-width: 55%;
  }

  .gallery-wrapper {
    flex-direction: row;
    gap: 10px;
  }

  .gallery-thumbs {
    flex-direction: column;
    width: 60px;
    align-self: stretch;
  }

  .gallery-thumbs-scroll {
    flex: 1;
    min-height: 0;
    max-height: 290px;
    overflow: hidden;
    flex-direction: column;
  }

  .gallery-thumb {
    width: 60px;
    height: 60px;
  }

  .final-cta {
    min-height: 400px;
  }

  .final-cta-inner {
    padding: 60px 32px;
  }

  .final-cta-stats {
    margin-top: 32px;
    padding-top: 24px;
  }

  .header-mobile-menu.open {
    max-height: 300px;
  }
}

/* ========== CART OVERLAY ========== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-panel {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  height: 100%;
  overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-overlay.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.cart-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.cart-close-btn:hover {
  background: var(--gray-100);
}

.cart-close-btn svg {
  width: 24px;
  height: 24px;
  color: var(--gray-500);
}

.cart-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--gray-100);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.4;
}

.cart-item-config {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.cart-divider-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.cart-form-group {
  margin-bottom: 16px;
}

.cart-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

/* Тільки текстові поля — не радіо/чекбокс, щоб радіо й текст залишались в один рядок */
.cart-form-group input:not([type="radio"]):not([type="checkbox"]),
.cart-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.cart-form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.cart-form-group textarea:focus {
  border-color: var(--red);
}

.cart-form-group input::placeholder,
.cart-form-group textarea::placeholder {
  color: var(--gray-400);
}

.cart-form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.cart-payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-payment-option {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
  min-height: 44px;
  box-sizing: border-box;
}

.cart-payment-option:hover {
  border-color: var(--gray-300);
}

.cart-payment-option input[type="radio"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--red);
  cursor: pointer;
  display: block;
  position: relative;
  top: 1px;
}

.cart-payment-option input[type="radio"]:checked + .cart-payment-option-text {
  font-weight: 600;
  color: var(--dark);
}

.cart-payment-option:has(input:checked) {
  border-color: var(--red);
  background: rgba(217, 18, 18, 0.06);
}

.cart-payment-option-text {
  font-size: 14px;
  line-height: 1;
  color: var(--gray-600);
  flex: 1;
  min-width: 0;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-installment-summary {
  display: none;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--gray-100);
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray-600);
  border-left: 3px solid var(--red);
}

.cart-installment-summary.is-visible {
  display: block;
}

.cart-installment-summary[aria-hidden="true"] {
  display: none !important;
}

.cart-installment-summary-label {
  font-weight: 600;
  margin-right: 6px;
}

@media (max-width: 480px) {
  .cart-payment-option {
    padding: 10px 12px;
    min-height: 40px;
    gap: 10px;
  }
  .cart-payment-option-text {
    font-size: 13px;
  }
  .cart-installment-summary.is-visible {
    padding: 10px 12px;
    font-size: 12px;
  }
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--gray-200);
}

.cart-total-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
}

.cart-total-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

.cart-error {
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.cart-submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
}

.cart-submit-btn:hover {
  background: var(--red-hover);
}

.cart-submit-btn:active {
  transform: scale(0.98);
}

.cart-submit-btn:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
}

.cart-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 24px;
  text-align: center;
}

.cart-success.show {
  display: flex;
}

.cart-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--green);
}

.cart-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

.cart-success p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .cart-panel {
    max-width: 100%;
  }
}

/* Scrollbar */

/* ========== INSTALLMENTS CHECKOUT ========== */
.installments-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.installments-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.installments-modal {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  height: 100%;
  overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.installments-overlay.open .installments-modal {
  transform: translateX(0);
}

.installments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.installments-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

.installments-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.installments-close-btn:hover {
  background: var(--gray-100);
}

.installments-close-btn svg {
  width: 24px;
  height: 24px;
  color: var(--gray-500);
}

.installments-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.installment-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}

.installment-option:hover {
  border-color: var(--gray-300);
  background: var(--gray-100);
}

.installment-option.selected {
  border-color: var(--green-medium);
  background: #f1f8f1;
}

.installment-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.installment-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.installment-logo.abank {
  background: #ff9800;
}

.installment-logo.monobank {
  background: #111;
}

.installment-info {
  flex: 1;
  min-width: 0;
}

.installment-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.installment-subtitle {
  font-size: 12px;
  color: var(--gray-500);
}

.installment-price {
  text-align: right;
  flex-shrink: 0;
}

.installment-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.installment-term {
  font-size: 12px;
  color: var(--gray-500);
}

.installment-details {
  display: none;
  width: 100%;
  flex-basis: 100%;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.installment-option.selected .installment-details {
  display: block;
}

.installment-terms {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.term-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  border-radius: 8px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.term-btn:hover {
  border-color: var(--gray-400);
}

.term-btn.active {
  background: var(--green-medium);
  color: var(--white);
  border-color: var(--green-medium);
}

.installment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.installment-row-label {
  color: var(--gray-600);
}

.installment-row-value {
  color: var(--dark);
  font-weight: 600;
}

.installment-select-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px 24px;
  background: var(--green-medium);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
}

.installment-select-btn:hover {
  background: var(--green);
}

.installment-select-btn:active {
  transform: scale(0.98);
}

.installment-disclaimer {
  font-size: 12px;
  color: var(--gray-600);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .installments-modal {
    max-width: 100%;
  }

  .installments-header {
    padding: 16px 18px;
  }

  .installments-header h2 {
    font-size: 17px;
  }

  .installments-body {
    padding: 16px;
  }

  .installment-option {
    padding: 14px;
    gap: 10px;
  }

  .installment-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
  }

  .installment-title {
    font-size: 14px;
  }

  .installment-subtitle {
    font-size: 11px;
  }

  .installment-amount {
    font-size: 15px;
  }

  .installment-term {
    font-size: 11px;
  }

  .installment-details {
    padding-top: 12px;
  }

  .installment-terms {
    gap: 6px;
  }

  .term-btn {
    padding: 8px 6px;
    font-size: 13px;
  }

  .installment-row {
    font-size: 13px;
  }

  .installment-select-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .installment-disclaimer {
    font-size: 11px;
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}
