/* =========================================================
   Саквояж — туристическое агентство
   Стиль: морской премиум
   ========================================================= */

:root {
  /* Палитра — яркая, под логотип (солнце + море) */
  --sky:         #00b4e6;   /* голубая волна */
  --sky-light:   #1bd3ff;
  --sun:         #ffb01f;   /* солнце */
  --sun-light:   #ffd23f;
  --green:       #6fb52c;   /* зелёная волна */
  --green-light: #9ed13a;
  --indigo:      #3f3a9e;   /* надпись логотипа */

  --navy:        #21306b;   /* глубокий индиго-синий */
  --navy-deep:   #182456;
  --teal:        #00a8d6;   /* яркий морской */
  --teal-light:  #1bd3ff;
  --sand:        #ffe6a8;   /* тёплый солнечный */
  --sand-soft:   #fff7e8;   /* светлый тёплый фон */
  --cream:       #fffdf8;   /* почти белый, тёплый */
  --gold:        #ff9f1c;   /* солнечный акцент */
  --ink:         #233044;
  --muted:       #5b6b7a;
  --line:        rgba(33, 48, 107, 0.12);
  --white:       #ffffff;

  --shadow-sm: 0 4px 16px rgba(8, 31, 46, 0.08);
  --shadow-md: 0 18px 48px rgba(8, 31, 46, 0.16);

  --maxw: 1180px;
  --radius: 18px;

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans:  "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ------------------ База ------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 720px;
}

/* ------------------ Кнопки ------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(31, 122, 140, 0.32);
}
.btn-primary:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-wa, .btn-call {
  background: #25d366;
  color: #fff;
}
.btn-wa:hover, .btn-call:hover { background: #1da851; color: #fff; transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------ Шапка ------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--indigo);
  font-weight: 700;
}
.brand:hover { color: var(--indigo); }
.brand img.logo { height: 62px; width: auto; display: block; }
.site-footer .brand img.logo {
  height: 92px;
  background: rgba(255,255,255,0.75);
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 26px rgba(0,0,0,0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
/* Пункты верхнего меню — «квадратик» с подсветкой при наведении */
.nav-links > li > a {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 14.5px;
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.nav-links > li > a:hover,
.nav-links > li.has-sub:hover > a,
.nav-links > li > a.active {
  background-color: var(--sand-soft);
  color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-links .has-sub > a::after { content: " ▾"; color: var(--teal); font-size: 11px; }

/* Выпадающее подменю */
.submenu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 10px;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden;
  transition: all .2s ease;
  z-index: 120;
}
.nav-links .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.submenu li { display: block; }
.submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 14px;
  white-space: nowrap;
}
.submenu a:hover { background: var(--sand-soft); color: var(--teal); }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}

.burger {
  display: none;
  background: none; border: none;
  font-size: 26px; color: var(--navy);
  cursor: pointer;
}

/* ------------------ Hero ------------------ */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background-color: #0a87b8;
  background-image:
    linear-gradient(105deg, rgba(13,42,98,.82) 0%, rgba(0,138,196,.45) 55%, rgba(0,180,230,.18) 100%),
    url("../img/bg/1507525428034-b723cf961d3e.jpg");
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 60 C 240 20 480 20 720 50 C 960 80 1200 80 1440 45 L1440 90 L0 90 Z' fill='%23fffdf8'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: 100% 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 110px 28px 120px;
  max-width: 848px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  margin-bottom: 22px;
}
.hero .sub {
  font-size: 1.3rem;
  color: var(--sand);
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 22px;
}
.hero p.intro {
  font-size: 1.12rem;
  color: rgba(255,255,255,.88);
  max-width: 680px;
  margin-bottom: 34px;
}
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ------------------ Секции ------------------ */
.section { padding: 92px 0; }
.section-sand { background: var(--sand-soft); }
.section-navy {
  color: #fff;
  background-color: var(--navy);
  background-image:
    linear-gradient(120deg, rgba(33,48,107,.94) 0%, rgba(0,138,196,.86) 100%),
    url("../img/bg/1512100356356-de1b84283e18.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--sun-light); }
.section-navy .lead { color: rgba(255,255,255,.85); }
.section-navy .card { background: rgba(255,255,255,.96); }

.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

/* ------------------ Сетки карточек ------------------ */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.card {
  position: relative;
}
.card .ico {
  position: relative;
  overflow: hidden;
  width: 62px; height: 62px;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 20px;
  /* стеклянный эффект */
  background: linear-gradient(135deg, rgba(27,211,255,.32), rgba(0,168,214,.48));
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -8px 16px rgba(0,90,140,.12), 0 12px 28px rgba(0,168,214,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.card .ico > * { position: relative; z-index: 1; }
/* пробегающий глянцевый блик */
.card .ico::before {
  content: ""; position: absolute; top: 0; left: -130%;
  width: 70%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-18deg);
  transition: left .6s cubic-bezier(.2,.7,.2,1);
}
.card:hover .ico::before { left: 150%; }
.card:hover .ico {
  transform: translateY(-3px) scale(1.06) rotate(-3deg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 16px 34px rgba(0,168,214,.36);
}
/* Цветовые вариации (стекло) по очереди */
.grid > .card:nth-child(3n+2) .ico {
  background: linear-gradient(135deg, rgba(255,210,63,.38), rgba(255,159,28,.50));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 26px rgba(255,159,28,.26);
}
.grid > .card:nth-child(3n+3) .ico {
  background: linear-gradient(135deg, rgba(158,209,58,.36), rgba(111,181,44,.50));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 26px rgba(111,181,44,.26);
}

/* Карточки направлений с верхней полосой */
.dest-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.dest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dest-card .band {
  position: relative;
  height: 190px;
  background-color: #0a4d68;
  background-size: cover;
  background-position: center;
  display: flex; align-items: flex-end;
  padding: 18px 24px;
}
.dest-card .band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,30,66,.78) 0%, rgba(16,30,66,.18) 55%, rgba(16,30,66,0) 100%);
}
.dest-card .band span {
  position: relative; z-index: 1;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.dest-card .body { padding: 22px 24px 28px; }
.dest-card .body p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Список ценностей */
.values {
  columns: 2;
  column-gap: 48px;
  list-style: none;
  padding: 0; margin: 0;
}
.values li {
  padding: 12px 0 12px 32px;
  position: relative;
  break-inside: avoid;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
}
.values li::before {
  content: "✦";
  position: absolute; left: 0; top: 12px;
  color: var(--gold);
}

/* Отзывы */
.quote {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote::before {
  content: "“";
  font-family: var(--serif);
  font-size: 4.5rem;
  color: var(--sand);
  position: absolute; top: 6px; left: 22px;
  line-height: 1;
}
.quote p { position: relative; z-index: 1; color: var(--ink); font-style: italic; margin: 14px 0 0; }
.quote .who { display: block; margin-top: 18px; font-style: normal; font-weight: 700; color: var(--teal); font-size: .9rem; letter-spacing: .04em; }

/* Шаги «как работаем» */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step .n {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}
.step h3 { margin-bottom: 8px; font-size: 1.3rem; }
.step p { color: var(--muted); margin: 0; }

/* Сплит-секция текст */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .panel {
  position: relative;
  overflow: hidden;
  background-color: #0a6f9c;
  background-image:
    linear-gradient(135deg, rgba(63,58,158,.86), rgba(0,168,214,.78)),
    url("../img/bg/1505228395891-9a51e7e86bf6.jpg");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  padding: 48px;
  color: #fff;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-md);
}
.split .panel h3 { color: #fff; font-size: 1.8rem; position: relative; z-index: 1; }
.split .panel p { color: rgba(255,255,255,.92); margin: 0; position: relative; z-index: 1; }

/* CTA-полоса */
.cta-band {
  position: relative;
  overflow: hidden;
  background-color: #0a6f9c;
  background-image:
    linear-gradient(120deg, rgba(63,58,158,.9), rgba(0,168,214,.82)),
    url("../img/bg/1473116763249-2faaef81ccda.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 26px;
  padding: 64px 56px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 30px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { border-color:#fff; background: rgba(255,255,255,.1); color:#fff; }

/* Внутренний герой страниц */
.page-hero {
  position: relative;
  color: #fff;
  padding: 92px 0 80px;
  background-color: #0a6f9c;
  background-image:
    linear-gradient(110deg, rgba(13,42,98,.85) 0%, rgba(0,168,214,.55) 100%),
    url("../img/bg/1507525428034-b723cf961d3e.jpg");
  background-size: cover;
  background-position: center;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.page-hero p { color: rgba(255,255,255,.92); max-width: 700px; margin: 0; font-size: 1.12rem; }
/* Тематические фоны внутренних героев */
.page-hero.ph-services { background-image: linear-gradient(110deg, rgba(13,42,98,.82), rgba(0,168,214,.5)), url("../img/bg/1488646953014-85cb44e25828.jpg"); }
.page-hero.ph-directions { background-image: linear-gradient(110deg, rgba(13,42,98,.82), rgba(0,168,214,.5)), url("../img/bg/1469854523086-cc02fe5d8800.jpg"); }
.page-hero.ph-clients { background-image: linear-gradient(110deg, rgba(13,42,98,.82), rgba(0,168,214,.5)), url("../img/bg/1436491865332-7a61a109cc05.jpg"); }
.page-hero.ph-request { background-image: linear-gradient(110deg, rgba(13,42,98,.82), rgba(0,168,214,.5)), url("../img/bg/1503220317375-aaad61436b1b.jpg"); }
.page-hero.ph-contacts { background-image: linear-gradient(110deg, rgba(13,42,98,.82), rgba(0,168,214,.5)), url("../img/bg/1488085061387-422e29b40080.jpg"); }
.page-hero.ph-about { background-image: linear-gradient(110deg, rgba(13,42,98,.82), rgba(0,168,214,.5)), url("../img/bg/1530789253388-582c481c54b0.jpg"); }

/* ------------------ Форма ------------------ */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

.form-success {
  display: none;
  background: var(--sand-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.form-success.show { display: block; }
.form-success h3 { color: var(--teal); }

/* ------------------ Контакты ------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-item { margin-bottom: 26px; }
.contact-item .k { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 6px; }
.contact-item .v { font-size: 1.15rem; color: var(--navy); font-weight: 600; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ------------------ Подвал ------------------ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
  font-size: 15px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--sand); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; display: inline-flex; width: -moz-fit-content; width: fit-content; }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ------------------ Адаптив ------------------ */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Скрыть телефон на узких десктопах, чтобы меню не теснилось */
@media (max-width: 1180px) { .nav-phone { display: none; } }

/* Сворачивание меню в бургер до того, как оно начнёт переноситься */
@media (max-width: 1024px) {
  .nav-links, .nav-phone { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 88px; left: 0; right: 0;
    z-index: 200;
    background: var(--cream);
    padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-links.open > li > a { display: block; }
  .nav-links.open .submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; padding: 4px 0 8px 14px; min-width: 0;
  }
  .nav-links.open .has-sub:hover .submenu { transform: none; }
  .burger { display: block; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; }
  .step { grid-template-columns: 60px 1fr; gap: 18px; }
}

/* ============ Контентные страницы (генерируемые) ============ */

/* Хлебные крошки */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb { color: rgba(255,255,255,.7); }

/* Текстовый контент */
.prose { max-width: 860px; }
.prose p { color: var(--ink); font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.15em; }
.prose > p:first-of-type {
  font-size: 1.2rem; line-height: 1.7; color: var(--navy); font-weight: 500;
  border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px;
}
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; color: var(--navy); }
.prose h3 {
  font-size: 1.3rem; margin: 1.7em 0 .55em; color: var(--navy);
  padding-left: 16px; border-left: 4px solid var(--sky);
}
.prose ul { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--teal); }
.prose .sub-block { margin-top: .3em; }
@media (max-width: 760px) { .prose > p:first-of-type { font-size: 1.08rem; } }

/* Контентная колонка с боковой карточкой */
.content-split { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.aside-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  position: sticky; top: 96px;
}
.aside-card h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.aside-card .thumb { width: 100%; border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--line); }
.aside-card p { font-size: .95rem; color: var(--muted); }

/* Сетка ссылок-карточек (страны, разделы) */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  color: var(--navy); font-weight: 600;
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); color: var(--teal); }
.link-card img { width: 54px; height: 36px; object-fit: cover; border-radius: 7px; flex: none; border: 1px solid var(--line); }
.link-card .flag-ph { width: 54px; height: 36px; border-radius: 7px; flex: none; background: linear-gradient(135deg,var(--sky-light),var(--indigo)); }

/* Карточки сотрудников */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.staff-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.staff-card .av { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,var(--sun-light),var(--sun)); display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: 14px; }
.staff-card .nm { font-weight: 700; color: var(--navy); font-size: 1.12rem; }
.staff-card .role { color: var(--teal); font-size: .9rem; font-weight: 600; margin: 2px 0 10px; }
.staff-card a { font-size: .92rem; word-break: break-all; }

/* Сетка партнёров */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 14px; }
.partner-card {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; min-height: 64px; text-align: center; font-weight: 600; font-size: .92rem;
  color: var(--navy); box-shadow: var(--shadow-sm); transition: all .2s ease;
}
.partner-card:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-3px); }

/* Галерея фото на страницах стран */
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 14px; margin: 26px 0; }
.photo-strip img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

/* Адаптив для контентных страниц */
@media (max-width: 980px) {
  .content-split { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}
@media (max-width: 760px) {
  .nav-links.open .submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; padding: 6px 0 6px 14px; min-width: 0;
  }
  .nav-links .has-sub:hover .submenu { transform: none; }
}

/* ============ Лайтбокс-слайдер для галерей ============ */
.photo-strip a.lb-item { display:block; cursor: zoom-in; overflow: hidden; border-radius: 12px; position: relative; }
.photo-strip a.lb-item img { transition: transform .5s ease; width:100%; height:140px; object-fit:cover; }
.photo-strip a.lb-item:hover img { transform: scale(1.08); }
.photo-strip a.lb-item::after {
  content: "⤢"; position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center;
  font-size: 15px; opacity: 0; transition: opacity .25s ease;
}
.photo-strip a.lb-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8, 20, 35, 0.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
  -webkit-tap-highlight-color: transparent;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage {
  position: relative; width: 92%; max-width: 1100px; height: 82vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  opacity: 0; transform: scale(.94);
  transition: opacity .4s ease, transform .4s ease;
  user-select: none; -webkit-user-drag: none;
}
.lightbox img.show { opacity: 1; transform: scale(1); }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease, transform .2s ease;
  z-index: 2;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: -8px; }
.lb-next { right: -8px; }
.lb-close {
  position: absolute; top: 22px; right: 22px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 26px; cursor: pointer; display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease; z-index: 3;
}
.lb-close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }
.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600;
  background: rgba(0,0,0,.35); padding: 6px 16px; border-radius: 999px;
}
@media (max-width: 760px) {
  .lightbox-stage { width: 100%; height: 78vh; }
  .lb-btn { width: 44px; height: 44px; font-size: 22px; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
  .lb-close { top: 14px; right: 14px; }
}

/* Документы (лицензия, награды) — показываем целиком, без обрезки */
.photo-strip.docs { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-items: start; }
.photo-strip.docs a.lb-item { cursor: zoom-in; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.photo-strip.docs a.lb-item img { height: 340px; object-fit: contain; padding: 12px; transform: none; }
.photo-strip.docs a.lb-item:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .photo-strip.docs a.lb-item img { height: 300px; } }

/* ============ Сетка флагов (страны) ============ */
.flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}
.flag-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  background: #eef2f7;
}
.flag-card img, .flag-card .flag-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.flag-card .flag-fallback { background: linear-gradient(135deg, var(--sky-light), var(--indigo)); }
.flag-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.flag-card:hover img { transform: scale(1.09); }
.flag-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,20,40,.82) 0%, rgba(8,20,40,.25) 42%, rgba(8,20,40,0) 68%);
}
.flag-card .name {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1;
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.28rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.flag-card .go {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--navy);
  display: grid; place-items: center; font-weight: 700;
  opacity: 0; transform: translateY(-6px); transition: all .28s ease;
}
.flag-card:hover .go { opacity: 1; transform: none; }

/* Флаг в боковой карточке страны */
.aside-card img.flag-thumb {
  height: auto; aspect-ratio: 3/2; object-fit: cover;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 760px) {
  .flag-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .flag-card .name { font-size: 1.05rem; left: 12px; bottom: 10px; }
}

/* Карточки-ссылки на странице «Клиентам» */
.info-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.info-card h3 { color: var(--navy); }
.info-card p { flex: 1; }
.info-card .card-link { margin-top: 14px; font-weight: 700; color: var(--teal); font-size: .95rem; }
.info-card:hover .card-link { color: var(--navy); }

/* ============ Текстовая «статья» (памятки, виды путешествий) ============ */
.article {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 50px 56px;
  box-shadow: var(--shadow-sm);
}
.article > p:first-of-type {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 28px;
}
.article p { color: var(--ink); line-height: 1.85; margin-bottom: 1.15em; }
.article h3 {
  font-size: 1.3rem;
  margin: 1.7em 0 .55em;
  color: var(--navy);
  padding-left: 16px;
  border-left: 4px solid var(--sky);
}
.article h3:first-child { margin-top: 0; }
.article ul { padding-left: 1.3em; margin: 0 0 1.25em; }
.article li { margin-bottom: .55em; }
.article li::marker { color: var(--teal); }
@media (max-width: 760px) {
  .article { padding: 28px 22px; }
  .article > p:first-of-type { font-size: 1.08rem; }
}

/* SVG-иконки в стеклянных плитках */
.card .ico svg {
  width: 30px; height: 30px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.card .ico { color: #0089b8; }
.grid > .card:nth-child(3n+2) .ico { color: #e0860a; }
.grid > .card:nth-child(3n+3) .ico { color: #4f8d1e; }

/* Акцентная (тёмная) карточка с белой иконкой */
.grid > .card.card-accent {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff; border: none;
}
.grid > .card.card-accent h3 { color: #fff; }
.grid > .card.card-accent p { color: rgba(255,255,255,.85); }
.grid > .card.card-accent .ico {
  color: #fff;
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 24px rgba(0,0,0,.18);
}

/* Карточки партнёров с логотипами */
.partner-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.partner-card.logo {
  flex-direction: column;
  gap: 10px;
  min-height: 104px;
  padding: 20px 14px;
}
.partner-card.logo img {
  width: auto; max-width: 130px; height: auto;
  opacity: .92;
  transition: transform .25s ease, opacity .25s ease;
}
.partner-card.logo:hover { color: var(--teal); }
.partner-card.logo:hover img { transform: scale(1.07); opacity: 1; }
.partner-card.logo .pname { font-size: .8rem; color: var(--muted); font-weight: 600; line-height: 1.2; }
.partner-card.logo:hover .pname { color: var(--teal); }

/* Подпись-плашка на карте контактов */
.map-wrap { position: relative; }
.map-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  max-width: 80%;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  color: var(--navy);
  transition: transform .2s ease, box-shadow .2s ease;
}
.map-badge:hover { transform: translateY(-2px); color: var(--navy); }
.map-badge-pin { font-size: 20px; line-height: 1; flex: none; }
.map-badge span strong { display: block; font-size: .95rem; font-weight: 700; color: var(--navy); line-height: 1.25; }
.map-badge span { font-size: .8rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 760px) {
  .map-badge { max-width: calc(100% - 32px); top: 12px; left: 12px; padding: 8px 12px; }
  .map-badge span strong { font-size: .88rem; }
}

/* ============ FAQ-аккордеон ============ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 28px 16px 0; position: relative;
  font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--teal); transition: transform .25s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 18px; color: var(--muted); line-height: 1.7; }

/* =========================================================
   LIQUID GLASS — стеклянная эстетика (наслоение поверх базы)
   ========================================================= */
:root {
  --glass-bg:    rgba(255,255,255,0.55);
  --glass-bg-2:  rgba(255,255,255,0.42);
  --glass-brd:   rgba(255,255,255,0.65);
  --glass-blur:  blur(20px) saturate(180%);
  --glass-sh:    0 10px 34px rgba(13,42,98,0.14), inset 0 1px 0 rgba(255,255,255,0.85), inset 0 0 0 1px rgba(255,255,255,0.25);
}

/* Мягкие цветные блики на фоне — чтобы стекло «оживало» */
body { position: relative; background: #fbfdff; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 48% at 10% 16%, rgba(0,180,230,0.18), transparent 60%),
    radial-gradient(36% 44% at 90% 10%, rgba(255,176,31,0.15), transparent 60%),
    radial-gradient(46% 52% at 82% 84%, rgba(111,181,44,0.13), transparent 62%),
    radial-gradient(42% 48% at 16% 90%, rgba(63,58,158,0.13), transparent 62%);
}

/* Светлые секции делаем полупрозрачными, чтобы блики просвечивали */
.section-sand { background: rgba(255,247,232,0.5); }

/* --- Стеклянные поверхности --- */
.card:not(.card-accent),
.aside-card,
.quote,
.partner-card,
.faq-item,
.form,
.map-wrap {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-sh);
}
/* у карточек направлений/флагов фон — это фото, стекло только на тексте */
.dest-card, .flag-card { border: 1px solid var(--glass-brd); box-shadow: var(--glass-sh); }
.dest-card .body { background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

/* Шапка — более выраженное стекло */
.site-header {
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 4px 24px rgba(13,42,98,0.07), inset 0 -1px 0 rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

/* Выпадающее меню и активные пункты — стекло */
.submenu {
  background: rgba(255,255,255,0.7) !important;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-sh);
}
.nav-links > li > a:hover,
.nav-links > li.has-sub:hover > a,
.nav-links > li > a.active {
  background: rgba(255,255,255,0.6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 4px 14px rgba(13,42,98,0.08);
}

/* Кнопки: глянцевый блик сверху */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%;
  background: linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0));
  border-radius: inherit; pointer-events: none;
}
.btn-ghost {
  background: rgba(255,255,255,0.4);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-color: var(--glass-brd);
}
.hero .btn-ghost { background: rgba(255,255,255,0.14); }

/* Панель в сплит-блоках — оставляем фирменный градиент, добавляем стеклянный блик */
.split .panel, .cta-band {
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.25);
}
.split .panel::after, .cta-band::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 40%);
}

/* Карточка-плашка на карте — чистое стекло */
.map-badge {
  background: rgba(255,255,255,0.6) !important;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-brd);
}

/* Иконки уже стеклянные — усилим верхний блик */
.card .ico { box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -10px 18px rgba(0,90,140,0.10), 0 12px 28px rgba(0,168,214,0.26); }

/* Чуть крупнее скругления для «жидкого» ощущения */
.card, .aside-card, .quote, .form, .faq-item, .dest-card, .flag-card, .partner-card { border-radius: 22px; }

@media (max-width: 760px) {
  /* на слабых устройствах ослабляем блюр для скорости */
  .card, .aside-card, .quote, .partner-card, .faq-item, .form, .map-wrap, .submenu { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}

/* Карточки «Виды путешествий» — еле заметное фото-текстура, светлое стекло */
.type-card {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255,255,255,0.6);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-sh);
  transition: transform .3s ease, box-shadow .3s ease;
}
.type-card h3 { color: var(--navy); margin-bottom: 6px; }
.type-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.type-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(13,42,98,0.2); }

/* ============ Флаги в стиле Liquid Glass ============ */
.flag-card { border-radius: 20px; }
.flag-card::after {
  /* мягкое затемнение снизу + диагональный глянец сверху */
  background:
    linear-gradient(135deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0) 36%),
    linear-gradient(to top, rgba(10,22,46,0.34) 0%, rgba(10,22,46,0) 46%);
}
/* стеклянный блик-полоса, пробегающий при наведении */
.flag-card .flag-shine,
.flag-card::before {
  content: "";
  position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg); z-index: 2; pointer-events: none;
  transition: left .7s cubic-bezier(.2,.7,.2,1);
}
.flag-card:hover::before { left: 150%; }
/* название — на матовой стеклянной плашке */
.flag-card .name {
  left: 12px; right: 12px; bottom: 12px; z-index: 3;
  padding: 9px 14px;
  background: rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 18px rgba(0,0,0,0.22);
  font-size: 1.08rem; line-height: 1.2;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.flag-card .go {
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 12px rgba(0,0,0,0.18);
  z-index: 3;
}
/* лёгкая стеклянная рамка-кант поверх всей карточки */
.flag-card { box-shadow: var(--glass-sh), 0 14px 30px rgba(13,42,98,0.16); }

/* Флаги — чуть прозрачнее, мягче (стеклянный вид) */
.flag-card { background: rgba(255,255,255,0.55); }
.flag-card img { opacity: 0.8; transition: opacity .35s ease, transform .55s ease; }
.flag-card:hover img { opacity: 0.95; }

/* Первый экран на мобильных — комфортные отступы */
@media (max-width: 760px) {
  .hero-inner { padding: 72px 22px 84px; }
  .page-hero { padding: 60px 0 52px; }
}
