/* ===== Цвета и шрифты — меняйте здесь ===== */
:root {
  --bg: #F6F4EF;
  --card: #FFFFFF;
  --ink: #1C2321;
  --muted: #5B6461;
  --line: #E4E0D6;
  --accent: #1F5E57;
  --accent-dark: #163F3A;
  --chip: #EFECE5;
  --radius: 16px;
  --font: Manrope, system-ui, sans-serif;
  --font-title: Lora, Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; }
a { color: var(--accent); }
[hidden] { display: none !important; }

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

/* Шапка */
.header { background: var(--card); border-bottom: 1px solid var(--line); }
.header__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { font-family: var(--font-title); font-size: 24px; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav .nav__phone { color: var(--accent); font-weight: 700; }

.main { padding-top: 28px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; }
.title { margin: 0; font-family: var(--font-title); font-size: 36px; font-weight: 600; line-height: 1.15; }

/* Даты и гости */
.search { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.field { flex: 1 1 180px; display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.field__label { font-size: 13px; color: var(--muted); }
.field input, .field select { font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); background: transparent; border: 0; padding: 0; min-height: 28px; }
.search__nights { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-size: 15px; }

/* Шаги */
.steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
.steps li { padding: 8px 14px; border-radius: 999px; background: #E9E5DC; color: #4A524F; }
.steps li.is-active { background: var(--accent); color: #fff; }
.steps li.is-done { background: #D5E3E0; color: var(--accent-dark); }

.screen { display: flex; flex-direction: column; gap: 20px; }
.screen__top { display: flex; flex-direction: column; gap: 8px; }
.back { font-weight: 600; text-decoration: none; font-size: 15px; }

/* Фильтры */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #CFC9BC; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Карточки номеров */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.room { background: var(--card); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.photo { position: relative; height: 230px; background: var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo__badge { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--accent); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.photo__count { position: absolute; right: 12px; bottom: 12px; background: rgba(28,35,33,.75); color: #fff; font-size: 13px; padding: 5px 10px; border-radius: 8px; }
.room__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.room__name { margin: 0; font-family: var(--font-title); font-size: 22px; font-weight: 600; line-height: 1.25; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.room__price { margin-top: auto; padding-top: 14px; border-top: 1px solid #ECE8DF; display: flex; flex-direction: column; gap: 2px; }
.room__price strong { font-size: 24px; }
.room__price span { font-size: 14px; color: var(--muted); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 12px; border: 0; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: var(--card); color: var(--ink); border: 1.5px solid #CFC9BC; }
.btn--wide { width: 100%; }

/* Шаг 2: сводка по номеру */
.room-summary { background: var(--card); border-radius: 18px; overflow: hidden; display: flex; flex-wrap: wrap; }
.room-summary .photo { flex: 0 0 280px; height: auto; min-height: 200px; }
.room-summary__body { flex: 1 1 360px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.amenities li { background: var(--chip); border-radius: 10px; padding: 8px 12px; font-size: 14px; }

/* Шаг 2: тарифы */
.tariffs { display: flex; flex-direction: column; gap: 16px; }
.tariff { background: var(--card); border-radius: 18px; padding: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.tariff__info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.tariff__name { margin: 0; font-size: 20px; font-weight: 700; }
.tariff__desc { margin: 0; color: var(--muted); font-size: 15px; }
.tariff__terms { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--accent-dark); }
.tariff__terms li::before { content: "✓ "; font-weight: 700; }
.tariff__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.tariff__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tariff__price strong { font-size: 26px; }
.tariff__price span { font-size: 14px; color: var(--muted); }

/* Шаг 3: форма */
.form-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.form { flex: 1 1 420px; background: var(--card); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.input { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.input input, .input textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 12px 14px; border: 1.5px solid #CFC9BC; border-radius: 10px; background: #fff; color: var(--ink); }
.input input:focus, .input textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.summary { flex: 1 1 300px; background: var(--ink); color: #fff; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.summary h2 { margin: 0; font-family: var(--font-title); font-size: 22px; font-weight: 600; }
.summary p { margin: 0; color: #C9CFCC; font-size: 15px; }
.summary strong { font-size: 26px; }

.done { background: var(--card); border-radius: 18px; padding: 40px 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.done p { margin: 0; color: var(--muted); }

@media (max-width: 600px) {
  .title { font-size: 28px; }
  .tariff__price { align-items: flex-start; }
  .tariff__buy, .tariff__buy .btn { width: 100%; }
  .room-summary .photo { flex-basis: 100%; min-height: 200px; }
}
