/* Риваж Тур — тестовый вариант 1 «Светлый морской» */
:root {
  --sea: #0e7d8c;
  --sea-dark: #0a5b67;
  --sand: #faf6ef;
  --ink: #16303a;
  --muted: #5b7280;
  --accent: #ff8a3d;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.topbar {
  background: rgba(255,255,255,.92);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8eef0;
}
.topbar .container {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { font-size: 24px; font-weight: 800; letter-spacing: .5px; color: var(--sea-dark); }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 2.5px; text-transform: uppercase; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--sea); }
.phone { font-weight: 800; font-size: 18px; color: var(--ink); 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;
  background: var(--sea); color: #fff; transition: .2s;
}
.messengers a:hover { background: var(--sea-dark); transform: translateY(-2px); }
.messengers a.wa { background: #25d366; }
.messengers a.wa:hover { background: #1eb856; }
.messengers svg { width: 19px; height: 19px; fill: currentColor; }

/* Хиро */
.hero {
  position: relative; color: #fff;
  background: url('hero-beach.jpg') center/cover no-repeat;
  padding: 110px 0 130px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,60,72,.62) 0%, rgba(10,60,72,.30) 55%, rgba(10,60,72,.05) 100%);
}
.hero .container { position: relative; max-width: 1180px; }
.hero h1 { font-size: 46px; line-height: 1.12; max-width: 620px; font-weight: 800; }
.hero p { font-size: 19px; margin: 18px 0 32px; max-width: 520px; color: #eaf6f8; }
.btn {
  display: inline-block; border: 0; cursor: pointer;
  padding: 15px 34px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 17px;
  transition: .2s;
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(255,138,61,.4); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,138,61,.5); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.7); margin-left: 12px; }
.btn-ghost:hover { background: rgba(255,255,255,.28); }

/* Преимущества */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -52px; position: relative; z-index: 5; }
.perk {
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(22,48,58,.10);
  padding: 22px; text-align: center;
}
.perk .ico { font-size: 26px; }
.perk b { display: block; margin: 10px 0 6px; font-size: 16px; }
.perk span { font-size: 13.5px; color: var(--muted); }

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

/* Поиск туров */
.search-block { background: var(--sand); border-radius: 24px; padding: 40px; box-shadow: inset 0 0 0 1px #eee4d3; }
.tv-search-form { min-height: 480px; }

/* Круизы */
.cruise-promo {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
}
.cruise-promo .pic { border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px rgba(22,48,58,.18); }
.cruise-promo h3 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.cruise-promo p { color: var(--muted); margin-bottom: 24px; }

/* Подбор */
.pickme { background: linear-gradient(135deg, var(--sea) 0%, var(--sea-dark) 100%); border-radius: 24px; color: #fff; padding: 56px 48px; text-align: center; }
.pickme h2 { font-size: 30px; margin-bottom: 12px; }
.pickme p { color: #d9edf1; max-width: 560px; margin: 0 auto 28px; }

/* Футер */
footer { background: #10262e; color: #b9cdd4; padding: 44px 0; }
footer .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
footer b { color: #fff; font-size: 18px; }
footer a { color: #7fd1dd; }
footer .messengers a { width: 34px; height: 34px; }

/* Модальное окно */
.modal-back {
  position: fixed; inset: 0; background: rgba(10,30,36,.55);
  display: none; align-items: center; justify-content: center; z-index: 100;
  padding: 20px;
}
.modal-back.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px; padding: 34px;
  width: 100%; max-width: 440px; position: relative;
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal h3 { font-size: 22px; 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: 10px;
  border: 1.5px solid #d8e2e6; font: inherit; resize: vertical;
}
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--sea); }
.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: 90px 0 100px;
}
.cruise-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,30,45,.66), rgba(20,30,45,.18) 60%, transparent); }
.cruise-hero .container { position: relative; }
.cruise-hero h1 { font-size: 42px; font-weight: 800; max-width: 600px; line-height: 1.15; }
.cruise-hero p { font-size: 18px; margin-top: 16px; max-width: 520px; color: #f3e9dc; }
.widget-box { background: #fff; border-radius: 24px; box-shadow: 0 20px 50px rgba(22,48,58,.12); padding: 36px; }
#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: 32px; }
  .nav { display: none; }
  .phone { margin-left: auto; }
  .topbar .container { flex-wrap: wrap; gap: 12px; }
  section { padding: 48px 0; }
  .search-block, .widget-box { padding: 22px; }
  .pickme { padding: 40px 24px; }
}
@media (max-width: 520px) {
  .perks { grid-template-columns: 1fr; margin-top: -32px; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
  .hero { padding: 70px 0 90px; }
}

/* logo + instagram */
.logo-img img { height: 64px; width: auto; display: block; }
.messengers a.ig { background: #d62976; }
.messengers a.ig:hover { background: #b02361; }
@media (max-width: 720px) {
  .logo-img img { height: 48px; }
}

/* кликабельная карточка круизов */
a.cruise-promo { color: inherit; text-decoration: none; }
a.cruise-promo:hover h3 { color: var(--sea-dark); }
a.cruise-promo:hover .btn-accent { filter: brightness(1.07); }

/* Россия и мир */
.russia-hero {
  position: relative; color: #fff;
  background: url('hero-russia.jpg') center/cover no-repeat;
  padding: 90px 0 100px;
}
.russia-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,30,45,.66), rgba(20,30,45,.18) 60%, transparent); }
.russia-hero .container { position: relative; }
