/* ── Reset & Variables ─────────────────────────────────────── */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-dark: #1a1a1a;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-light: #c0c0c0;
  --accent: #c7926a;
  --accent-hover: #b07d58;
  --accent-light: #f5ebe0;
  --border: #e8e4df;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --transition: 150ms ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(199,146,106,0.35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn--outline-dark {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--outline-dark:hover {
  background: var(--accent-light);
}

.btn--sm { padding: 8px 18px; font-size: 13px; }
.btn--lg { padding: 16px 40px; font-size: 16px; width: 100%; }

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav a:hover { color: var(--text); }
.nav .btn--sm { color: #fff; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero (главная) ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 60%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 720px;
  padding-top: 80px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page Hero (внутренние страницы) ──────────────────────── */
.page-hero {
  padding: 140px 0 72px;
  text-align: center;
  background: var(--surface-dark);
  color: #fff;
}
.page-hero--models { background: linear-gradient(135deg, #1a1a1a 0%, #2d241b 100%); }
.page-hero--how    { background: linear-gradient(135deg, #1a1a1a 0%, #1f2a1f 100%); }
.page-hero--about  { background: linear-gradient(135deg, #1a1a1a 0%, #1f1f2d 100%); }
.page-hero--book   { background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1f 100%); }

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 12px;
}
.page-hero__subtitle {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}
.section--dark {
  background: var(--surface-dark);
  color: #fff;
}
.section--dark .section__subtitle { color: var(--text-light); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.section__title--left { text-align: left; }
.section__subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CTA block ────────────────────────────────────────────── */
.cta-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__cta {
  text-align: center;
  margin-top: 32px;
}

/* ── Models Grid ──────────────────────────────────────────── */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.model-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 300ms ease;
  cursor: pointer;
}
.model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.model-card__img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 400ms ease;
}
.model-card:hover .model-card__img {
  transform: scale(1.04);
}
.model-card__body {
  padding: 20px 24px;
}
.model-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.model-card__params {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.model-card__params span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.model-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.model-card__price {
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
}
.model-card__btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.model-card:hover .model-card__btn { gap: 8px; }

/* ── Steps ────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  text-align: center;
  padding: 32px 20px;
}
.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step__text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Steps detailed (how.html) */
.steps--detailed {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
  gap: 40px;
}
.step--detailed {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.step--detailed .step__text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* ── About ────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about--page {
  gap: 60px;
}
.about__text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
}
.stat {
  text-align: center;
}
.stat span {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}
.about__image img {
  border-radius: var(--radius);
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* ── Features (about.html) ────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  text-align: center;
  padding: 32px 20px;
}
.feature__icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.feature__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature__text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── FAQ (how.html) ───────────────────────────────────────── */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.faq__item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
}
.faq__item h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}
.faq__item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Booking Form ─────────────────────────────────────────── */
.booking-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-pricing {
  text-align: center;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--accent);
}
.booking-success {
  text-align: center;
  padding: 60px 40px;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.booking-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 8px;
}
.booking-success p { color: var(--text-light); }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn 300ms ease;
  position: relative;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 12px; right: 16px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.modal__close:hover { background: rgba(0,0,0,0.6); }
.modal__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.modal__body { padding: 28px; }
.modal__name {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 8px;
}
.modal__params {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.modal__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.modal__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #111;
  color: #aaa;
  padding: 60px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #222;
}
.footer__brand .logo { color: #fff; margin-bottom: 12px; display: inline-block; }
.footer__brand p { font-size: 14px; line-height: 1.6; }
.footer__links h4,
.footer__contacts h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  margin-bottom: 16px;
}
.footer__links a {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent); }
.footer__contacts p { font-size: 14px; margin-bottom: 6px; }
.footer__bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: #555;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--surface);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .burger { display: flex; }

  .hero__subtitle { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: center; }

  .page-hero { padding: 120px 0 48px; }

  .steps { grid-template-columns: 1fr; }
  .steps--detailed { grid-template-columns: 1fr; }

  .features { grid-template-columns: 1fr 1fr; }
  .feature { padding: 20px 12px; }

  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__image img { height: 280px; }

  .booking-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }

  .section { padding: 64px 0; }
}
