* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-primary: #ffffff;
  --bg-surface: #f8f9fa;
  --bg-card: #f8f9fa;
  --bg-card-hover: #f1f3f5;
  --text-main: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --accent-green: #25d366;
  --accent-green-hover: #20ba5a;
  --brand-primary: #25d366;
  --brand-primary-hover: #20ba5a;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

/* Контейнеры */
.content-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка (всегда зафиксирована вверху) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

main {
  padding-top: 74px;
}

.header-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

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

.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
}

.brand-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-main);
  text-transform: uppercase;
}

.header-delivery-badge {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  font-weight: 500;
}

.header-wa-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent-green);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  transition: background-color 0.15s ease;
}

.header-wa-button:hover {
  background-color: var(--accent-green-hover);
}

.wa-icon-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-icon-img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.header-wa-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hero секция с двухколоночным макетом */
.hero-section {
  padding: 60px 0 70px 0;
  background-color: var(--bg-primary);
  border: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}


.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.hero-features-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.feature-bullet {
  color: var(--accent-green);
  font-weight: 700;
}

.hero-actions-row {
  display: flex;
  gap: 16px;
}

/* Кнопка перехода к каталогу (зеленая как кнопки связи) */
.primary-action-btn {
  display: inline-block;
  background-color: var(--accent-green);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  transition: background-color 0.15s ease;
}

.primary-action-btn:hover {
  background-color: var(--accent-green-hover);
}

/* Колонка миниатюр в Hero */
.hero-preview-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-preview-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.hero-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hero-thumb-card {
  background-color: var(--bg-surface);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  border: none;
}

.hero-thumb-card:hover {
  background-color: var(--bg-card-hover);
}

.hero-thumb-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 240px;
  background-color: var(--bg-card-hover);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.hero-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.18) contrast(1.05);
}

.hero-thumb-card[data-id="tent-5"] .hero-thumb-video {
  filter: brightness(1.0) contrast(1.0);
}


.hero-thumb-meta {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-thumb-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-thumb-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-green);
}

/* Каталог палаток */
.catalog-section {
  padding: 50px 0 70px 0;
  background-color: var(--bg-primary);
  border: none;
}

.section-header-block {
  margin-bottom: 36px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

/* Карточка товара с видео (серый контейнер без обводки) */
.product-card {
  background-color: var(--bg-card);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  background-color: var(--bg-card-hover);
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.18) contrast(1.05);
}

.product-card[data-id="tent-5"] .card-video {
  filter: brightness(1.0) contrast(1.0);
}


/* Кнопка звука на карточке */
.video-sound-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.video-sound-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Индикатор паузы по центру видео */
.card-pause-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 4;
}

.card-pause-indicator.visible {
  opacity: 1;
}

.card-pause-indicator svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

/* Описание под видео */
.product-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.card-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.card-specs {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 6px;
}

/* Кнопка WhatsApp в карточке */
.card-wa-button {
  margin-top: auto;
  width: 100%;
  height: 44px;
  background-color: var(--accent-green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.card-wa-button:hover {
  background-color: var(--accent-green-hover);
}

.card-wa-button .wa-icon-img {
  width: 18px;
  height: 18px;
}

/* Секция преимуществ */
.benefits-section {
  padding: 60px 0;
  background-color: var(--bg-primary);
  border: none;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.benefit-card {
  padding: 28px;
  background-color: var(--bg-surface);
  border: none;
  border-radius: 16px;
}

.benefit-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.benefit-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Подвал */
.site-footer {
  padding: 48px 0;
  background-color: var(--bg-surface);
  border: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  margin-bottom: 4px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.whatsapp-card-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-green);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  transition: background-color 0.15s ease;
}

.whatsapp-card-button:hover {
  background-color: var(--accent-green-hover);
}

.whatsapp-card-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Адаптивность для мобильных устройств и планшетов */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .content-container {
    padding: 0 16px;
  }

  .site-header {
    background: #ffffff;
  }

  main {
    padding-top: 58px;
  }

  .header-container {
    padding: 12px 16px;
  }

  .brand-logo-img {
    height: 32px;
  }

  .header-delivery-badge {
    display: none;
  }

  .header-wa-button {
    padding: 7px 12px;
    font-size: 13px;
    gap: 6px;
  }

  .header-wa-button .wa-icon-img {
    width: 18px;
    height: 18px;
  }

  .hero-section {
    padding: 24px 0 36px 0;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 18px;
  }

  .hero-features-row {
    gap: 8px;
    margin-bottom: 22px;
  }

  .hero-feature-item {
    font-size: 13px;
  }

  .hero-actions-row {
    width: 100%;
  }

  .primary-action-btn {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    font-size: 15px;
  }

  .hero-preview-col {
    gap: 10px;
  }

  .hero-preview-title {
    font-size: 12px;
  }

  .hero-thumbnails-grid {
    gap: 12px;
  }

  .hero-thumb-video-wrapper {
    max-height: 200px;
  }

  .hero-thumb-meta {
    padding: 8px 10px;
  }

  .hero-thumb-title {
    font-size: 12px;
  }

  .hero-thumb-price {
    font-size: 13px;
  }

  .catalog-section {
    padding: 36px 0 48px 0;
  }

  .section-header-block {
    margin-bottom: 24px;
  }

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

  .section-description {
    font-size: 14px;
    line-height: 1.45;
  }

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

  .product-card {
    border-radius: 12px;
  }

  .video-container {
    max-height: none;
    aspect-ratio: 9 / 16;
    border-radius: 12px 12px 0 0;
  }

  .product-card-body {
    padding: 10px 8px;
  }

  .card-title {
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-price-row {
    margin-bottom: 2px;
  }

  .card-price {
    font-size: 14px;
    font-weight: 800;
  }

  .card-specs {
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-wa-button {
    height: 38px;
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
    border-radius: 8px;
    gap: 4px;
    white-space: nowrap;
  }

  .card-wa-button .wa-icon-img {
    width: 15px;
    height: 15px;
  }

  .benefits-section {
    padding: 36px 0;
  }

  .benefits-grid {
    gap: 16px;
  }

  .benefit-card {
    padding: 20px;
  }

  .benefit-title {
    font-size: 16px;
  }

  .benefit-text {
    font-size: 13px;
  }

  .site-footer {
    padding: 32px 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .whatsapp-card-button {
    width: 100%;
    justify-content: center;
  }

  .video-modal-overlay {
    padding: 10px;
  }

  .video-modal-dialog {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 14px;
  }

  .modal-video-wrapper {
    max-height: calc(92dvh - 76px);
  }

  .modal-product-bar {
    padding: 12px 14px;
  }

  .modal-product-title {
    font-size: 13px;
    max-width: 160px;
  }

  .modal-product-price {
    font-size: 14px;
  }

  .modal-wa-button {
    padding: 9px 12px;
    font-size: 12px;
  }

  .modal-wa-button .wa-icon-img {
    width: 16px;
    height: 16px;
  }

  .modal-close-btn {
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .modal-sound-btn {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
}

/* Модальное окно просмотра видео со звуком */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.video-modal-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  max-height: 94dvh;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  border: none;
}

.modal-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: calc(94dvh - 84px);
  background-color: #000000;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.modal-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000000;
  display: block;
  filter: brightness(1.18) contrast(1.05);
}

.video-modal-overlay[data-product-id="tent-5"] .modal-video-player {
  filter: brightness(1.0) contrast(1.0);
}

/* Кнопка закрытия модального окна */
.modal-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: none;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: transform 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.modal-close-btn:hover,
.modal-close-btn:active {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}

/* Кастомная кнопка звука */
.modal-sound-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.modal-sound-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.05);
}

.modal-sound-btn .sound-svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

/* Центральный индикатор Play / Pause */
.modal-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-play-overlay.visible {
  opacity: 1;
}

.modal-play-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-play-icon-circle .play-svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  margin-left: 3px;
}

/* Нижняя панель управления видеоплеера */
.modal-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  padding: 24px 14px 10px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Прогресс-бар плеера (зеленый WhatsApp #25d366) */
.modal-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

.modal-progress-track:hover {
  height: 7px;
}

.modal-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-green);
  border-radius: 4px;
  position: relative;
  transition: width 0.05s linear;
}

.modal-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.modal-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-control-btn {
  background: none;
  border: none;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
}

.modal-control-btn .control-svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.modal-time-display {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.hidden {
  display: none !important;
}

.modal-product-bar {
  padding: 14px 18px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.modal-product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.modal-product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-green);
}

.modal-wa-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-green);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.modal-wa-button:hover {
  background-color: var(--accent-green-hover);
}

.modal-wa-button .wa-icon-img {
  width: 18px;
  height: 18px;
}
