:root {
  --primary: #1a73e8;
  --dark: #202124;
  --light: #f8f9fa;
  --accent: #34a853;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding-bottom: 100px;
}

/* Header */
header {
  padding: 15px;
  text-align: center;
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero */
.hero {
  padding: 20px;
  text-align: center;
}

.hero h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}

.hero p {
  font-size: 14px;
  color: #5f6368;
}

.hero img {
  width: 100%;
  border-radius: 15px;
  margin: 20px 0;
}

/* Оффер */
.offer-card {
  background: #e8f0fe;
  padding: 20px;
  margin: 0 20px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid #d2e3fc;
}

.price {
  margin: 10px 0;
}

.old-price {
  text-decoration: line-through;
  color: #70757a;
  font-size: 18px;
}

.new-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

/* Характеристики (используем ваши фото) */
.feature-img {
  width: 100%;
  display: block;
}

.feature-text {
  padding: 30px 20px;
  text-align: center;
}

.feature-text h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

/* Инфо-сетка */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px;
}

.spec-item {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #eee;
  font-size: 12px;
  font-weight: 600;
}

.spec-item i {
  display: block;
  font-size: 24px;
  margin-bottom: 5px;
  color: var(--primary);
}

/* Слайдер отзывов - ОБНОВЛЕННЫЕ СТИЛИ */
.reviews-slider {
  padding: 40px 0;
  background: #f1f3f4;
  overflow: hidden;
}

.reviews-slider h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 20px 20px;
  gap: 15px;
  /* Убираем стандартный скроллбар, но оставляем возможность прокрутки */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE и Edge */
  /* Добавляем плавную прокрутку для навигации по клику */
  scroll-behavior: smooth;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

/* Chrome, Safari, Opera */

/* Активный класс для захвата мышкой (меняем курсор) */
.slider-track.active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.review-card {
  flex: 0 0 80%;
  background: white;
  padding: 20px;
  border-radius: 15px;
  scroll-snap-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  /* Запрещаем выделение текста при свайпе */
  user-select: none;
}

.rev-head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.rev-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.rev-name {
  font-weight: 700;
  font-size: 14px;
}

.stars {
  color: #fbbc04;
  font-size: 12px;
}

/* Пагинация (точки) для слайдера */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--primary);
}

/* Technical Specs Table */
.tech-table {
  padding: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

table td:first-child {
  font-weight: 600;
  color: #5f6368;
}

/* Footer Sticky */
.footer-action {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  background: white;
  border-top: 1px solid #eee;
  z-index: 1000;
  display: flex;
  justify-content: center;
  margin: auto;
  max-width: 500px;
}

.btn {
  background: var(--primary);
  color: white;
  text-align: center;
  text-decoration: none;
  display: block;
  padding: 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn:active {
  transform: scale(0.98);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-inner {
  background: white;
  padding: 30px;
  width: 85%;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
}

input {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

/* Футер в оригинальном стиле сайта */
.footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 11px;
  color: #999;
  background: white;
  /* Белый фон как у всего сайта */
  border-top: 1px solid #eee;
  /* Легкая разделительная линия */
  margin-top: 20px;
}

.footer p {
  margin: 8px 0;
  line-height: 1.5;
}

.footer-brand {
  font-weight: 600;
  color: #666;
  font-size: 12px;
  margin-bottom: 12px;
}

.footer-phone a,
.footer-email a {
  color: var(--primary, #1a73e8);
  text-decoration: none;
}

.footer-phone a:hover,
.footer-email a:hover {
  text-decoration: underline;
}

.footer-links {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-link {
  color: #999;
  text-decoration: none;
  font-size: 11px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary, #1a73e8);
}

.field-error {
  max-width: 400px;
  color: var(--gold);
  margin: 0 0 18px 0;
  font-size: 0.8em;
  line-height: 1;
  text-align: left;
}

/* Чекбокс с согласием */
.consent-checkbox {
  margin: 15px 0;
  text-align: left;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.4;
  position: relative;
  user-select: none;
}

/* Скрываем стандартный чекбокс */
.checkbox-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

/* Создаем кастомный чекбокс */
.checkmark {
  min-width: 18px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border: 2px solid #dadce0;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  margin-top: 1px;
  transition: all 0.2s ease;
}

/* Состояние при наведении */
.checkbox-label:hover .checkmark {
  border-color: var(--primary, #1a73e8);
}

/* Состояние при checked */
.checkbox-label input:checked + .checkmark {
  background-color: var(--primary, #1a73e8);
  border-color: var(--primary, #1a73e8);
}

/* Галочка */
.checkbox-label input:checked + .checkmark:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Стиль текста согласия */
.consent-text {
  color: #5f6368;
  flex: 1;
}

.consent-text a {
  color: var(--primary, #1a73e8);
  text-decoration: none;
}

.consent-text a:hover {
  text-decoration: underline;
}

/* Стиль для ошибки валидации чекбокса */
.checkbox-label input:invalid + .checkmark {
  border-color: #ea4335;
}

/* Сообщение об ошибке (если нужно показывать) */
.consent-error {
  color: #ea4335;
  font-size: 11px;
  margin-top: 5px;
  margin-left: 28px;
  display: none;
}
