/* === SEGMENTED CONTROL (IOS STYLE) === */
.segmented {
  --h: 40px;
  --r: 999px;
  --gap: 0px;
  --bg: #f3f4f6;
  --bd: #e5e7eb;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--count), 1fr);
  align-items: center;
  gap: var(--gap);
  padding: 4px;
  height: var(--h);
  border-radius: var(--r);
  background: var(--bg);
  border: 1px solid var(--bd);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
  isolation: isolate;
}

/* Кнопки переключения тарифов */
.segmented__btn {
  appearance: none;
  border: 0;
  background: transparent;
  height: calc(var(--h) - 8px);
  padding: 0 10px;
  border-radius: var(--r);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 2;
  transition: color 0.2s ease;
}

.segmented__btn[aria-selected="true"] {
  color: #111827;
  font-weight: 600;
}

/* Бегунок слайдера */
.segmented__slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc((100% - 8px) / var(--count));
  left: calc(4px + var(--i) * ((100% - 8px) / var(--count)));
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
  pointer-events: none;
}

.card .segmented {
  margin: 10px 0 16px;
}

/* Картинка в карточке товара */
.card img {
  height: 200px;
  width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

/* === HOW BLOCK (Кружочки) === */
.how .how__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.how .how__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 9999px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
  font-size: 14px;
  line-height: 1.3;
}
.how .how__list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  font-weight: 600;
  background: #f9f9f9;
  flex-shrink: 0;
  color: #f97316;
}
@media (max-width: 900px){
  .how .how__list{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .how .how__list{ grid-template-columns: 1fr; }
}

/* === REVIEWS SECTION === */
.reviews { padding: 56px 0; }
.reviews h2 { margin-bottom: 16px; }
.reviews__summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 24px;
}
.reviews__rating { font-weight: 600; }
.reviews__link { text-decoration: underline; text-decoration-style: dotted; color: inherit; }
.reviews__link:hover { text-decoration: none; }

/* === МОДАЛЬНОЕ ОКНО (ИСПРАВЛЕННОЕ) === */

/* На компьютерах */
@media (min-width: 768px) {
  .modal__dialog {
    max-width: 960px; /* Широкое окно */
    width: 95%;
  }

  .modal__content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 30px;
    gap: 30px; 
  }

  /* Левая колонка (Картинка) */
  .modal__gallery {
    flex: 0 0 45%; /* Жестко 45% ширины */
    width: 45%;
    max-width: 45%;
    margin-bottom: 0;
  }

  /* Правая колонка (Текст) */
  .modal__info {
    flex: 1; /* Занимает ВСЁ оставшееся пространство */
    width: auto; /* Сбрасываем ограничения */
    max-width: none;
    display: flex;
    flex-direction: column;
  }
}

/* На мобильных (в столбик) */
@media (max-width: 767px) {
  .modal__content { flex-direction: column; padding: 20px; }
  .modal__gallery { width: 100%; margin-bottom: 20px; max-width: 100%; flex: auto; }
  .modal__info { width: 100%; }
}

/* Картинка внутри модалки */
.modal__gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #f9fafb;
  max-height: 500px;
}

/* Текст описания */
.specs__item.description-block {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  margin-top: 0;
  width: 100%; /* Убеждаемся, что текст занимает всю ширину блока */
}

/* Форма бронирования (чекбоксы) */
.consent-row { display: block !important; width: 100% !important; margin: 16px 0 12px !important; }
.consent-checkbox { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 8px !important; line-height: 1.4; cursor: pointer; }
.booking__form input[type="checkbox"] {
  appearance: checkbox !important; -webkit-appearance: checkbox !important;
  width: 18px !important; height: 18px !important; margin: 2px 0 0 0 !important; flex-shrink: 0; accent-color: #f97316;
}
.consent-checkbox a { text-decoration: underline !important; text-decoration-style: dotted !important; }
.booking__form .btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Скрываем крестик в модалке успеха */
#successModal .modal__close { display: none !important; }

/* HERO (Первый экран) */
.hero { padding: 40px 0; overflow: hidden; }
.hero__grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero__content { flex: 1; max-width: 600px; }
.hero h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 16px; color: #111827; }
.hero__subtitle { font-size: 1.15rem; color: #4b5563; margin-bottom: 32px; line-height: 1.5; }
.btn-lg { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; font-size: 18px; font-weight: 600; border-radius: 12px; background: #f97316; color: #fff; text-decoration: none; transition: transform 0.2s, background 0.2s, box-shadow 0.2s; box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4); }
.btn-lg:hover { background: #ea580c; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5); }
.hero__features { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero__feat { font-size: 14px; background: #fff; border: 1px solid #e5e7eb; padding: 6px 12px; border-radius: 20px; color: #374151; font-weight: 500; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.hero__image { flex: 1; display: flex; justify-content: center; position: relative; }
.hero__image img { max-width: 100%; height: auto; max-height: 450px; object-fit: contain; animation: floatBike 3s ease-in-out infinite; }
@keyframes floatBike { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .hero__grid { flex-direction: column-reverse; text-align: center; gap: 20px; }
  .hero__content { max-width: 100%; }
  .hero h1 { font-size: 2.2rem; }
  .hero__features { justify-content: center; }
  .hero__image img { max-height: 300px; }
}