/* Риваж Тур — тестовый вариант 2 «Тёмный кинематографичный» */
:root {
  --night: #0b1520;
  --night-2: #101e2d;
  --gold: #e8b04b;
  --gold-2: #f5cf87;
  --cream: #f4efe6;
  --muted: #93a7b8;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  color: var(--cream);
  background: var(--night);
  line-height: 1.55;
}
h1, h2, h3, .logo { font-family: 'Playfair Display', Georgia, serif; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,21,32,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232,176,75,.18);
}
.topbar .container { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-size: 26px; font-weight: 700; color: var(--cream); }
.logo small { display: block; font-family: 'Manrope', sans-serif; font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: 3px; text-transform: uppercase; }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; }
.nav a { color: var(--cream); opacity: .85; }
.nav a:hover { opacity: 1; color: var(--gold); }
.phone { font-weight: 800; font-size: 18px; color: var(--cream); white-space: nowrap; }
.phone small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.messengers { display: flex; gap: 10px; }
.messengers a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(232,176,75,.45); color: var(--gold); transition: .2s;
}
.messengers a:hover { background: var(--gold); color: var(--night); }
.messengers a.wa { color: #25d366; border-color: rgba(37,211,102,.5); }
.messengers a.wa:hover { background: #25d366; color: #fff; }
.messengers svg { width: 19px; height: 19px; fill: currentColor; }

/* Хиро */
.hero {
  position: relative; color: #fff;
  background: url('hero-cruise.jpg') center/cover no-repeat;
  padding: 130px 0 150px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,12,20,.85) 0%, rgba(5,12,20,.45) 55%, rgba(5,12,20,.15) 100%);
}
.hero .container { position: relative; }
.kicker {
  display: inline-block; letter-spacing: 4px; text-transform: uppercase;
  font-size: 12px; font-weight: 700; color: var(--gold-2); margin-bottom: 18px;
}
.hero h1 { font-size: 52px; line-height: 1.1; max-width: 640px; font-weight: 700; }
.hero p { font-size: 19px; margin: 20px 0 34px; max-width: 540px; color: #d9dee4; }
.btn {
  display: inline-block; border: 0; cursor: pointer;
  padding: 15px 36px; border-radius: 4px;
  font: inherit; font-weight: 700; font-size: 16.5px;
  letter-spacing: .4px; transition: .2s;
}
.btn-accent { background: var(--gold); color: var(--night); }
.btn-accent:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(244,239,230,.55); margin-left: 12px; }
.btn-ghost:hover { border-color: var(--cream); background: rgba(255,255,255,.06); }

/* Преимущества */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -54px; position: relative; z-index: 5; }
.perk {
  background: var(--night-2); border-radius: var(--radius);
  border: 1px solid rgba(232,176,75,.16);
  padding: 24px; text-align: center;
}
.perk .ico { font-size: 26px; }
.perk b { display: block; margin: 10px 0 6px; font-size: 16px; color: var(--cream); font-family: 'Manrope', sans-serif; }
.perk span { font-size: 13.5px; color: var(--muted); }

/* Секции */
section { padding: 76px 0; }
.section-title { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 36px; }

/* Поиск туров */
.search-block {
  background: var(--night-2); border-radius: 24px; padding: 40px;
  border: 1px solid rgba(232,176,75,.16);
}
.tv-search-form { min-height: 480px; }

/* Круизы */
.cruise-promo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.cruise-promo .pic { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.cruise-promo h3 { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.cruise-promo p { color: var(--muted); margin-bottom: 26px; }

/* Подбор */
.pickme {
  background: linear-gradient(135deg, #16283c 0%, #0e1b2a 100%);
  border: 1px solid rgba(232,176,75,.25);
  border-radius: 24px; padding: 60px 48px; text-align: center;
}
.pickme h2 { font-size: 32px; margin-bottom: 12px; }
.pickme p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* Футер */
footer { background: #070f18; color: var(--muted); padding: 46px 0; border-top: 1px solid rgba(232,176,75,.14); }
footer .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
footer b { color: var(--cream); font-size: 19px; font-family: 'Playfair Display', serif; }
footer a { color: var(--gold); }
footer .messengers a { width: 34px; height: 34px; }

/* Модальное окно */
.modal-back {
  position: fixed; inset: 0; background: rgba(3,8,13,.7);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-back.open { display: flex; }
.modal {
  background: var(--night-2); border: 1px solid rgba(232,176,75,.25);
  border-radius: 20px; padding: 34px; width: 100%; max-width: 440px;
  color: var(--cream); position: relative; animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal h3 { font-size: 23px; margin-bottom: 6px; }
.modal .hint { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.modal label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 5px; color: var(--muted); }
.modal input, .modal textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  background: var(--night); border: 1.5px solid #2a3d52;
  color: var(--cream); font: inherit; resize: vertical;
}
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--gold); }
.modal .btn { width: 100%; margin-top: 20px; }
.modal .close { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal .done { text-align: center; padding: 18px 0 6px; }
.modal .done .big { font-size: 46px; }
.modal .done p { color: var(--muted); margin-top: 8px; }

/* Страница круизов */
.cruise-hero {
  position: relative; color: #fff;
  background: url('hero-cruise.jpg') center/cover no-repeat;
  padding: 100px 0 110px;
}
.cruise-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(5,12,20,.8), rgba(5,12,20,.3) 60%, transparent); }
.cruise-hero .container { position: relative; }
.cruise-hero h1 { font-size: 46px; font-weight: 700; max-width: 620px; line-height: 1.12; }
.cruise-hero p { font-size: 18px; margin-top: 16px; max-width: 520px; color: #e6dfd2; }
.widget-box {
  background: var(--night-2); border-radius: 24px; padding: 36px;
  border: 1px solid rgba(232,176,75,.16);
}
#awidget { min-height: 420px; }

@media (max-width: 900px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
  .cruise-promo { grid-template-columns: 1fr; }
  .hero h1, .cruise-hero h1 { font-size: 34px; }
  .nav { display: none; }
  .phone { margin-left: auto; }
  .topbar .container { flex-wrap: wrap; gap: 12px; }
  section { padding: 50px 0; }
  .search-block, .widget-box { padding: 22px; }
  .pickme { padding: 42px 24px; }
}
@media (max-width: 520px) {
  .perks { grid-template-columns: 1fr; margin-top: -32px; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
  .hero { padding: 76px 0 96px; }
}
