@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  --color-bg: #f5f5f5;
  --color-text: #2b2b2b;
  --color-primary: #537c94;
  --color-primary-hover: #6398b6;
  --color-muted: #adadad;
  --radius-lg: 30px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.12);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
body.no-scroll {
  overflow: hidden;
}
h1,
h2,
h3 {
  margin-bottom: 20px;
  color: var(--color-text);
  text-align: center;
}
h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 18px;
  font-weight: 700;
}
p {
  margin-top: 7px;
  color: var(--color-text);
}
li {
  list-style: none;
  text-align: center;
}
a {
  text-decoration: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 14px;
  text-align: center;
}
a:hover {
  color: var(--color-primary-hover);
}

.header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 20px;
  padding: 60px 0 40px;
  margin-bottom: 50px;
  min-height: 500px;
  background-image: url("../img/header.jpg"); /* путь к твоему файлу */
  background-size: cover; /* чтобы картинка растягивалась на весь блок */
  background-position: center; /* выравнивание по центру */
  background-repeat: no-repeat;
  overflow: hidden; /* на всякий случай */
  position: relative;
}
.header::before {
  content: "";
  position: absolute;
  height: 500px;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* ← интенсивность затемнения (0.6 = 60%) */
  z-index: 0;
}

/* Чтобы текст и кнопки были поверх затемнения */
.header > * {
  position: relative;
  z-index: 1;
}
.header > h1,
h2 {
  text-align: center;
  margin-bottom: 0;
  color: #f0f0f0;
  text-transform: none;
  padding: 10px;
}
.header > h1 {
  font-size: 24px;
}
.header > h2 {
  font-size: 28px;
}
.main-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 0px;
}
.mySwiper2,
.mySwiper {
  display: none;
  transition: opacity 0.5s ease;
  opacity: 0;
}
.mySwiper2.active,
.mySwiper.active {
  display: block;
  opacity: 1;
  margin-bottom: 20px;
}
.slider {
  max-width: 750px;
}
.swiper {
  height: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 4 / 3;
  max-height: 550px;
  border-radius: 30px;
  overflow: hidden;
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mySwiper {
  padding-top: 6px;
}
.mySwiper .swiper-slide {
  aspect-ratio: 1 / 1;
  max-height: 120px;
  opacity: 0.6;
  cursor: pointer;
}
.mySwiper .swiper-slide-thumb-active {
  opacity: 1;
}
.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  width: 50px !important;
  height: 50px !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 25px !important;
}

/* Стили для мини-слайдеров в разделе "Все модели" */
.all-models-slider {
  margin: 40px 0;
}

.model-preview {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model-preview:hover {
  transform: translateY(-5px);
}

.model-preview-container {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.model-preview:hover .model-preview-container {
  box-shadow: var(--shadow-md);
}

.model-preview-slider {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  position: relative;
}

.model-preview-slider .swiper-slide {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.model-preview-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-preview-info {
  padding: 5px;
  text-align: center;
}

.model-preview-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.model-preview-price {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
}

/* Навигация для мини-слайдеров */
.model-preview-slider .swiper-button-next,
.model-preview-slider .swiper-button-prev {
  width: 30px !important;
  height: 30px !important;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.model-preview-slider .swiper-button-next::after,
.model-preview-slider .swiper-button-prev::after {
  font-size: 14px !important;
  color: var(--color-text);
  font-weight: bold;
}

.model-preview:hover .swiper-button-next,
.model-preview:hover .swiper-button-prev {
  opacity: 1;
}

.model-preview-slider .swiper-pagination {
  opacity: 0;
  transition: opacity 0.3s ease;
  bottom: 10px !important;
}

.model-preview:hover .swiper-pagination {
  opacity: 1;
}

.model-preview-slider .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.model-preview-slider .swiper-pagination-bullet-active {
  background: #fff;
}

.allModelsSwiper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}
.allModelsSwiper .swiper-slide {
  aspect-ratio: 4 / 3;
  max-height: 300px;
  overflow: hidden;
}
.allModelsSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-info {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 20px;
}
.model-info {
  padding: 15px;
  display: none;
  flex-direction: column;
  justify-content: start;
  color: var(--color-text);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.model-info p {
  margin-bottom: 10px;
}
.models-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.grid-item {
  max-width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.grid-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.item-images {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.item-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.item-thumbs {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.item-thumbs img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
}

@media (min-width: 801px) {
  .item-thumbs {
    display: none;
  }
}
.item-discription {
  padding: 12px 16px 16px;
}
.item-discription p:first-child {
  font-weight: 700;
}
.item-discription p:last-child {
  color: var(--color-primary);
  font-weight: 600;
}

.item-actions {
  padding: 0 16px 16px;
}

.item-actions .btn {
  width: 100%;
}

.consultation-cta {
  max-width: 1240px;
  margin: 20px auto 30px;
  padding: 0 20px;
  text-align: center;
}
.reviews {
  max-width: 1240px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.reviews-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.reviews-viewport {
  overflow: hidden;
  width: 100%;
}
.reviews-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
}
.review-card {
  flex: 0 0 calc(33.333% - 10.67px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-stars {
  color: #f5a623;
  font-size: 16px;
}
.review-text {
  font-size: 14px;
  color: var(--color-text);
}
.review-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}
.review-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.review-media:has(.review-thumb:only-child) {
  grid-template-columns: 1fr;
  max-width: 180px;
  justify-content: start;
}
.review-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: #f8f8f8;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.review-thumb:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(83, 124, 148, 0.25);
}
.review-thumb img,
.review-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-thumb--video {
  border-color: rgba(83, 124, 148, 0.2);
}
.review-thumb--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5));
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.review-thumb--video:hover::after {
  opacity: 0.95;
}
.review-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.review-thumb__play::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: block;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.review-thumb__play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid rgba(83, 124, 148, 0.9);
}
.reviews-nav {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  border: none;
  width: 40px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reviews-nav:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Media Modal */
.media-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}
.media-modal.active {
  display: block;
}
.media-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}
.media-modal__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.media-modal__body {
  max-width: min(1000px, 96vw);
  max-height: 86vh;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.media-modal__body img,
.media-modal__body video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.media-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

@media (max-width: 992px) {
  .review-card { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 600px) {
  .review-card { flex: 0 0 100%; }
  .review-media { 
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
  }
  .review-thumb {
    border-radius: 10px;
  }
}
@media (max-width: 480px) {
  .review-media {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
  }
}
.footer {
  background-color: rgb(255, 255, 255);
  text-align: center;
  padding: 15px 0;
}
.footer-text > p {
  font-size: 14px;
  color: var(--color-text);
  margin: 5px;
}

/* Цветовые кнопки-кружочки */
.color-selector {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.color-selector p {
  flex: 0 0 100%;
  margin: 0 0 6px 0;
  font-size: 14px;
  color: var(--color-text);
}
.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #ccc;
}
.color-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}
.color-circle[data-color="brown"] {
  background-color: #8b5e3c;
}
.color-circle[data-color="black"] {
  background-color: #000000;
}
.color-circle[data-color="beige"] {
  background-color: #d8cab8;
}
.color-circle[data-color="jeans"] {
  background-color: #4a6fa5;
}
.color-circle[data-color="blue"] {
  background-color: #add8e6; /* или #90D5FF */
}
.color-circle[data-color="marsala"] {
  background-color: #964F4C;
}
.color-circle[data-color="mustard"] {
  background-color: #D2A74A;
}
.color-circle[data-color="gray"] {
  background-color: #808080;
}

.color-circle.selected {
  outline: 3px solid var(--color-primary);
}

/* --- ФОРМА --- */
.contact-form {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.15);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
}
.contact-form.active {
  display: flex;
  opacity: 1;
}
.contact-form__container {
  display: flex;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 32px;
  flex-direction: column;
  position: relative;
}
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.form-header p {
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}
.quiz-close-btn {
  background: transparent;
  border: none;
  color: #444;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: start;
  padding-top: 3px;
  justify-content: center;
  border-radius: 50%;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
label {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  color: var(--color-text);
  gap: 5px;
  width: 100%;
}
input[type="text"],
input[type="tel"],
textarea {
  outline: none;
  border: 1.5px solid #ccc;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.3s;
  margin-top: 5px;
}
input::placeholder,
textarea::placeholder {
  font-weight: 400;
  color: #adadad;
}
textarea {
  resize: vertical;
  min-height: 40px;
  max-height: 80px;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(83, 124, 148, 0.15);
}
.open-form {
  margin: 0px 0 10px 0 !important;
}
.btn {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 12px 16px;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: background-color 0.3s;
}
.btn:hover {
  background-color: var(--color-primary-hover);
}
.quiz-modal {
  /* если используется квиз-модал */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.quiz-modal.active {
  display: flex;
}
.quiz-container {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.quiz-close {
  position: absolute;
  right: 20px;
  top: 16px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}
.quiz-question {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 16px;
}
.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.quiz-answer {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 24px;
  width: 100%;
  cursor: pointer;
  transition: background 0.25s ease;
  text-align: center;
}
.quiz-answer:hover,
.quiz-answer.selected {
  background: var(--color-primary-hover);
}
.quiz-progress {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 6px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.3s;
}
.quiz-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 24px;
  cursor: pointer;
  margin-top: 16px;
  width: 100%;
  transition: background 0.25s;
  font-size: 16px;
}
.quiz-btn:hover {
  background: var(--color-primary-hover);
}
.quiz-success {
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 18px;
}
.spec-block {
  margin-bottom: 16px;
}
.spec-block h4 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--color-text);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 3px 0;
  font-size: 14px;
}
.spec-label {
  color: #666;
}
.spec-value {
  color: #333;
  text-align: right;
  max-width: 60%;
}

/* Адаптивность */
@media (max-width: 800px) {
  .models > h2 {
    text-align: center;
  }
  .header {
    margin-bottom: 30px;
  }
  .header > h1 {
    font-size: 24px;
  }
  .slider-info {
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
  }
  .model-info {
    max-width: 100%;
  }
  .model-info p {
    margin-bottom: 7px;
  }
  .models-grid {
    gap: 20px;
  }
  .slider {
    max-width: 100%;
  }
  .swiper {
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .swiper-slide {
    aspect-ratio: 1 / 1;
    max-height: 360px;
    width: 100%;
  }
  .swiper-slide img {
    margin-top: 0;
    width: 100%;
  }
  .contact-form__container,
  .quiz-container {
    max-width: 90%;
    padding: 20px;
  }
  .quiz-answer {
    font-size: 14px;
    padding: 10px 12px;
  }

  .model-preview-slider {
    height: 200px;
  }

  .model-preview-slider .swiper-button-next,
  .model-preview-slider .swiper-button-prev {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
  }

  .model-preview-slider .swiper-pagination {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .model-preview-slider {
    height: 180px;
  }

  .model-preview-info {
    padding: 12px;
  }

  .model-preview-title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .model-preview-price {
    font-size: 13px;
  }
}
/* .open-consultation {   
  width: auto;         
  min-width: 120px;
} */
