/* ==========================================================================
   Kairat Remont - design tokens
   Скопировано 1:1 со значениями Tailwind CSS (значения по умолчанию в v3),
   которые использовал референс-сайт tr-remont, акцентный цвет заменён
   с red-600/700/50 на blue-600/700/50.
   ========================================================================== */

:root {
  --blue-50: #eff6ff;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --red-500: #ef4444; /* только для иконки "не входит" - универсальный негативный маркер */
  --green-500: #22c55e; /* WhatsApp / иконка "входит" */
  --green-600: #16a34a;
  --yellow-400: #facc15; /* звёзды рейтинга */

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* В tailwind.config.ts референса rounded-lg/md/sm переопределены на 1rem (не дефолтные 0.5rem/0.375rem/0.125rem) */
  --radius-lg: 1rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  --container-max: 72rem; /* max-w-6xl = 1152px */
  --font-sans: "Inter", Arial, sans-serif;
  --font-heading: "Rubik", "Inter", Arial, sans-serif;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

svg use {
  color: inherit;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
}

/* ==========================================================================
   Reusable: badges, buttons, photo placeholders
   ========================================================================== */

.badge {
  display: inline-block;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge--light {
  background: var(--gray-50);
  color: var(--gray-800);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgb(255 255 255 / 0.2);
}

.badge--solid {
  background: var(--blue-600);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 0.25rem 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0 1.75rem;
  height: 3rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn--primary:hover {
  background: var(--blue-700);
  box-shadow: var(--shadow-xl);
}

.btn--lg {
  height: 3.25rem;
  padding: 0 2rem;
  font-size: 0.875rem;
}
@media (min-width: 768px) { .btn--lg { font-size: 1rem; } }
.btn--lg:hover { transform: scale(1.03); }

.btn--block { width: 100%; }

.btn--outline {
  background: transparent;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}
.btn--outline:hover { border-color: var(--gray-400); }

.btn--icon {
  width: 3rem;
  padding: 0;
  flex-shrink: 0;
}

.btn--whatsapp {
  background: var(--green-500);
  color: #fff;
}
.btn--whatsapp:hover { background: var(--green-600); }

.btn:disabled {
  background: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
  box-shadow: none;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / 0.06) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, #1d4ed8, #2563eb 55%, #60a5fa);
  color: rgb(255 255 255 / 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 1rem;
}

.photo-placeholder--dark {
  background: linear-gradient(135deg, #0f172a, #1e3a8a 60%, #2563eb);
}

/* ==========================================================================
   Scroll progress
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: transparent;
  z-index: 60;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--blue-600);
  transition: width 0.1s linear;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 2rem;
  left: 0;
  right: 0;
  z-index: 50;
}

.header__bar {
  position: relative;
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .header__bar { padding: 1rem 1.5rem; }
}

.header__logo img { height: 2.25rem; width: auto; }

@media (min-width: 1024px) {
  .header__logo img { height: 2.5rem; }
}

.header__nav { display: none; }

@media (min-width: 1024px) {
  .header__nav {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .header__nav ul { display: flex; gap: 2rem; }
  .header__nav a {
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
  }
  .header__nav a:hover { color: var(--blue-600); }
}

.header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header__phone { display: none; flex-direction: column; align-items: flex-end; }

@media (min-width: 768px) {
  .header__phone { display: flex; }
}

.header__phone-number {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--gray-900);
  transition: color 0.2s ease;
}
.header__phone-number:hover { color: var(--blue-600); }

.header__phone-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.125rem;
}
@media (min-width: 1024px) { .header__phone-status { font-size: 1rem; } }

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green-500);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.lang-switch { position: relative; display: none; }

@media (min-width: 1024px) {
  .lang-switch { display: block; }
}

.lang-switch__toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: background-color 0.2s ease;
}
.lang-switch__toggle:hover { background: var(--gray-200); }

.lang-switch__menu {
  position: absolute;
  top: 3rem;
  right: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 0.5rem 0;
  min-width: 5rem;
  display: none;
  z-index: 50;
}
.lang-switch__menu.is-open { display: block; }
.lang-switch__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: background-color 0.2s ease;
}
.lang-switch__menu button:hover { background: var(--gray-50); }
.lang-switch__menu button.is-active,
.mobile-menu__langs button.is-active { color: var(--blue-600); font-weight: 600; }

.header__burger {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
@media (min-width: 1024px) {
  .header__burger { display: none; }
}
.header__burger span {
  width: 1.25rem;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.header__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Mobile menu
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 40;
  display: none;
  flex-direction: column;
  /* Реальная шапка (z-index 50) остаётся видна поверх этого фона -
     отступ рассчитан так, чтобы не залезать под неё. */
  padding-top: 6.5rem;
}
.mobile-menu.is-open { display: flex; }

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu__nav { padding-top: 0; }

.mobile-menu__nav li {
  border-bottom: 1px solid var(--gray-200);
}
.mobile-menu__nav li:last-child { border-bottom: none; }

.mobile-menu__nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: #000;
}
.mobile-menu__nav a:hover { color: var(--blue-600); }

.mobile-menu__langs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.mobile-menu__langs button {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-700);
}
.mobile-menu__langs .divider {
  width: 1px;
  height: 1.5rem;
  background: var(--gray-300);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding-top: 9rem; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgb(255 255 255 / 0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgb(255 255 255 / 0.08), transparent 40%);
}

.hero .container { position: relative; z-index: 1; }

.hero__card {
  background: rgb(8 12 24 / 0.55);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  padding: 2rem;
}

@media (min-width: 768px) {
  .hero__card { padding: 3rem; }
}
@media (min-width: 1024px) {
  .hero__card { padding: 4rem; }
}

.hero__inner {
  text-align: center;
  max-width: 64rem;
  margin-inline: auto;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 1.5rem 0 2rem;
}
@media (min-width: 1024px) { .hero__title { font-size: 3rem; } }
@media (min-width: 1280px) { .hero__title { font-size: 3.75rem; } }

.hero__price {
  color: var(--gray-100);
}

.hero__desc {
  font-size: 1.125rem;
  color: rgb(255 255 255 / 0.9);
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
@media (min-width: 768px) { .hero__desc { font-size: 1.25rem; } }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  background: var(--blue-600);
  padding: 1rem 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__group span {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0 0.75rem;
  white-space: nowrap;
}
@media (min-width: 768px) { .marquee__group span { font-size: 1.25rem; } }

.marquee__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fff;
  margin: 0 0.5rem;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Section heading
   ========================================================================== */

.section-head {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-head h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-head h2 { font-size: 3rem; } }

.section-head p {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-500);
}

.pricing, .quiz-section, .works {
  padding: 4rem 0;
}

/* ==========================================================================
   Pricing cards
   ========================================================================== */

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .pricing__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing__grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  background: #fff;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}
.price-card:hover { box-shadow: var(--shadow-xl); }

.price-card__photo {
  aspect-ratio: 4 / 3;
}

.price-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.price-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.price-card__head h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.price-card__guarantee {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.price-card__guarantee small {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.price-card__price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.price-card__caption {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.price-card .btn { margin-top: auto; }

/* ==========================================================================
   Works section
   ========================================================================== */

.works__top {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .works__top { grid-template-columns: 3fr 2fr; align-items: start; }
}

.works__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  line-height: 1.4;
}
@media (min-width: 768px) { .works__title { font-size: 1.875rem; text-align: left; } }

.works__stats {
  background: var(--blue-600);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: center;
  position: relative;
}

.works__stats::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: rgb(255 255 255 / 0.5);
}

.works__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.works__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
@media (min-width: 768px) { .works__stat-value { font-size: 1.875rem; } }

.works__stat-label {
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.3;
}

.works__bottom {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .works__bottom { grid-template-columns: 3fr 2fr; align-items: stretch; }
}

.works__photo {
  background: var(--gray-100);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
@media (min-width: 1024px) {
  .works__photo { aspect-ratio: auto; height: 400px; }
}

.works__photo .photo-placeholder {
  transition: opacity 0.3s ease-in-out;
}
.works__photo .photo-placeholder.is-hidden { opacity: 0; }

.reviews__card {
  background: var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.3s ease-in-out;
}
@media (min-width: 1024px) { .reviews__card { min-height: 400px; } }
.reviews__card.is-hidden { opacity: 0; }

.reviews__text {
  font-size: 1.125rem;
  color: var(--gray-900);
  line-height: 1.625;
}

.reviews__name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.reviews__footer { margin-top: 1.5rem; }

.reviews__stars {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  color: var(--yellow-400);
}
.reviews__stars svg { width: 16px; height: 16px; }

/* ==========================================================================
   Quiz
   ========================================================================== */

.quiz {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--gray-50);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.quiz__progress {
  height: 0.5rem;
  background: var(--gray-200);
  width: 100%;
}
.quiz__progress-bar {
  height: 100%;
  width: 20%;
  background: var(--blue-600);
  transition: width 0.3s ease;
}

.quiz__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.quiz__step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .quiz__step-title { font-size: 1.75rem; } }

.quiz__step-content { flex-grow: 1; }

.quiz__options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .quiz__options-grid { grid-template-columns: repeat(3, 1fr); } }

.quiz__option-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 var(--blue-600);
}
.quiz__option-card:hover { box-shadow: var(--shadow-lg); }
.quiz__option-card.is-selected { box-shadow: 0 0 0 4px var(--blue-600); }

.quiz__option-card-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.quiz__option-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.quiz__option-card-label {
  background: #fff;
  padding: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.quiz__options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz__radio {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.quiz__radio:hover { border-color: var(--gray-300); }
.quiz__radio.is-selected {
  background: var(--blue-50);
  border-color: var(--blue-600);
}
.quiz__radio input { width: 1.25rem; height: 1.25rem; accent-color: var(--blue-600); }
.quiz__radio span { font-weight: 500; color: var(--gray-900); }

.quiz__contact-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.quiz__contact-fields input {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  font-family: inherit;
}
.quiz__contact-fields input:focus {
  outline: none;
  border-color: var(--blue-600);
}

.quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.quiz__step-counter { color: var(--gray-500); }

.quiz__nav-buttons { display: flex; gap: 1rem; }

.success-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.form-error {
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.875rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   WhatsApp float button
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--green-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 45;
  animation: whatsapp-glow 3s ease-in-out infinite;
  transition: transform 0.3s ease, background-color 0.2s ease;
}
.whatsapp-float:hover { background: var(--green-600); transform: scale(1.1); }

@keyframes whatsapp-glow {
  0%, 100% { box-shadow: var(--shadow-lg); }
  50% { box-shadow: var(--shadow-lg), 0 0 0 8px rgb(34 197 94 / 0.15); }
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(2px);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal--sm { max-width: 28rem; }
.modal--lg { max-width: 42rem; border-radius: var(--radius-3xl); }

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  z-index: 2;
}
.modal__close:hover { background: var(--gray-200); }
.modal__close--floating { background: #fff; box-shadow: var(--shadow-lg); }

.modal__body { padding: 1.75rem 2rem 2rem; }

.modal__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.modal__body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) { .modal__body h2 { font-size: 1.5rem; } }

.modal__subtitle {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

#bookingForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#bookingForm label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}
#bookingForm input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-300);
  padding: 0 1rem;
  font-family: inherit;
  font-size: 1rem;
}
#bookingForm input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-50);
}

.modal__privacy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 1rem;
}

.modal__photo {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.modal__head h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}
@media (min-width: 768px) { .modal__head h3 { font-size: 1.875rem; } }
.modal__head .price-card__guarantee { flex-direction: row; align-items: center; gap: 0.5rem; }

.segmented {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}
.segmented__btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.segmented__btn.is-active {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.modal__price {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.modal__lists {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.modal__lists h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1rem;
}

.check-list, .cross-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.check-list li, .cross-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.check-list li::before, .cross-list li::before {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  margin-top: 0.125rem;
  background-color: var(--green-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat;
}
.cross-list li::before {
  background-color: var(--red-500);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.9);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox__stage {
  width: 100%;
  max-width: 56rem;
  margin: 0 2rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.5);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) { .lightbox__nav { display: flex; } }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

@media (max-width: 1023px) {
  .lightbox__nav {
    display: flex;
    top: auto;
    bottom: 2rem;
    transform: none;
  }
  .lightbox__nav--prev { left: calc(50% - 4rem); }
  .lightbox__nav--next { right: calc(50% - 4rem); }
}

/* ==========================================================================
   Thank-you page (/thank-you)
   ========================================================================== */

.thank-you {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--gray-50);
}

.thank-you__card {
  max-width: 26rem;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 2rem;
  text-align: center;
}

.thank-you__logo { display: inline-block; margin-bottom: 2rem; }
.thank-you__logo img { height: 2.5rem; }

.thank-you__card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.thank-you__card p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.thank-you__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   Utility
   ========================================================================== */

[hidden] { display: none !important; }
