/* REEF TRAVEL GROUP — reeftravel.ru
   Вид и порядок блоков — как на прежнем сайте (Roboto, синий #2c65bf, оранжевый #e88042, фон #ebeff4),
   вёрстка переписана заново: без пустых блоков, дублей и поломок на телефоне. */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/roboto-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/roboto-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --text: #494949;
  --dark: #212529;
  --blue: #2c65bf;
  --blue-dark: #1f4f9c;
  --orange: #e88042;
  --orange-dark: #cf6a2e;
  --bg: #ebeff4;
  --soft: #f8f9fa;
  --line: #dee2e6;
  --muted: #6c757d;
  --white: #fff;
  --wrap: 1140px;
  --gap: clamp(1rem, 3vw, 1.5rem);
  --font: "Roboto", Verdana, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--text); background: var(--white); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { color: var(--dark); font-weight: 700; line-height: 1.25; margin: 0 0 .75em; overflow-wrap: break-word; }
h1 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.875rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: .5rem 1rem; }

/* ---------- шапка ---------- */
.top { background: var(--white); }
.top-row { display: flex; align-items: center; gap: 1.5rem; padding-block: .75rem; }
.logo { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--dark); }
.logo img { width: 110px; height: auto; }
.logo span { font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.phones { display: flex; gap: 1.75rem; }
.phone a { display: block; color: var(--dark); text-decoration: none; font-weight: 500; font-size: 1.05rem; white-space: nowrap; }
.phone a:hover { color: var(--blue); }
.phone small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.2; }
.social { display: flex; gap: .5rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.social a:hover { background: var(--blue-dark); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.navbar { background: var(--bg); }
.navbar .wrap { display: flex; align-items: center; }
.nav { display: flex; flex-wrap: wrap; }
.nav a { display: block; padding: .8rem 1.1rem; color: var(--dark); text-decoration: none; font-weight: 500; }
.nav a:first-child { padding-left: 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.menu-btn { display: none; }
@media (max-width: 991px) {
  .phones { gap: 1rem; }
  .phone:nth-child(2) { display: none; }
}
@media (max-width: 767px) {
  .top-row { flex-wrap: wrap; gap: .5rem 1rem; }
  .logo img { width: 90px; }
  .logo span { font-size: .95rem; }
  .top-right { width: 100%; margin-left: 0; justify-content: space-between; }
  .phone:nth-child(2) { display: block; }
  .phone a { font-size: .95rem; }
  .social { display: none; }
  .menu-btn { display: block; margin-left: auto; background: none; border: 0; font: 500 1rem var(--font); color: var(--dark); padding: .8rem 0; cursor: pointer; }
  .navbar .wrap { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: .5rem; }
  .nav.open { display: flex; }
  .nav a { padding: .6rem 0; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) { .phones { flex-direction: column; gap: .25rem; } }

/* ---------- слайдер ---------- */
.slider { position: relative; background: #1d2b3a; overflow: hidden; }
.slides { position: relative; height: clamp(340px, 42vw, 560px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 80%); }
.slide-text { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; }
.slide-text .wrap > div { max-width: 600px; padding-inline: 2.5rem; }
.slide-title { color: #fff; font-size: clamp(1.4rem, 3.2vw, 2.25rem); font-weight: 700; line-height: 1.2; margin: 0 0 .6rem; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.slide-short { color: #fff; font-size: clamp(1rem, 1.6vw, 1.2rem); margin: 0 0 1.25rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.85); color: var(--dark); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.slider-arrow:hover { background: #fff; }
.slider-arrow.prev { left: 1rem; } .slider-arrow.next { right: 1rem; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 1rem; z-index: 2; display: flex; justify-content: center; gap: .5rem; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slider-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 767px) {
  .slides { height: 460px; }
  .slide::after { background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,0) 100%); }
  .slide-text { align-items: flex-end; padding-bottom: 3rem; }
  .slide-text .wrap > div { padding-inline: 0; }
  .slider-arrow { display: none; }
}

/* ---------- блоки ---------- */
.block { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.block.grey { background: var(--bg); }
.block-title { text-align: center; margin-bottom: 1.75rem; }

/* поиск туров */
.sletat-box { min-height: 380px; max-width: 100%; overflow-x: auto; }
.sletat-copyright { display: block; color: var(--muted); font-size: .9rem; padding: 1rem 0; }
.alert { background: var(--soft); border-left: 4px solid var(--orange); padding: 1.1rem 1.4rem; margin-top: 1.75rem; }
.alert strong { color: var(--dark); }
.alert p:last-child { margin: 0; }

/* «Внимание!» по центру */
.notice { text-align: center; max-width: 820px; margin-inline: auto; }
.notice p:last-child { margin: 0; }

/* преимущества и способы оплаты — иконка + подпись */
.icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.icons.four { grid-template-columns: repeat(4, 1fr); }
.icon-item svg { width: 64px; height: 64px; margin: 0 auto 1rem; stroke: var(--blue); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-item h3 { margin-bottom: .4rem; }
.icon-item p { margin: 0; color: var(--text); }
@media (max-width: 767px) { .icons, .icons.four { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; } }
@media (max-width: 480px) { .icons { grid-template-columns: 1fr; } }

/* фото + карточка */
.plate { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
.plate-image { min-height: 320px; }
.plate-image img { width: 100%; height: 100%; object-fit: cover; }
.plate-text { padding: clamp(1.5rem, 4vw, 3rem); align-self: center; }
.plate.reverse .plate-image { order: 2; }
.plate.reverse .plate-text { background: var(--soft); align-self: stretch; }
@media (max-width: 767px) { .plate { grid-template-columns: 1fr; } .plate.reverse .plate-image { order: 0; } .plate-image { min-height: 0; aspect-ratio: 4 / 3; } }

/* договоры-оферты */
.docs { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.docs > li { position: relative; padding-left: 2rem; margin-bottom: 1rem; color: var(--dark); }
.docs > li::before { content: ""; position: absolute; left: 0; top: .8em; width: 1.25rem; height: 2px; background: var(--text); }
.docs ul { list-style: none; padding: 0; margin: .25rem 0 0; }
.docs ul a { display: inline-block; padding: .1rem 0; }

/* карты */
.cards-logos { width: 100%; max-width: 520px; margin: 0 auto; }

/* алгоритм заказа */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; text-align: left; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps li small { display: block; color: var(--muted); margin-top: .25rem; }

/* направления (страницы) */
.dest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.dest a { display: block; height: 100%; background: var(--white); color: inherit; text-decoration: none; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.dest a:hover { border-color: var(--blue); }
.dest img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dest-body { padding: 1rem 1.25rem 1.25rem; }
.dest-body b { display: block; color: var(--dark); font-size: 1.15rem; margin-bottom: .25rem; }
.dest-body span { color: var(--muted); font-size: .95rem; }
@media (max-width: 991px) { .dest { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dest { grid-template-columns: 1fr; } }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: .75rem; max-width: 320px; }
.months span { height: 1.4rem; display: grid; place-items: center; font-size: .65rem; color: var(--muted); background: var(--soft); border-radius: 2px; }
.months span.ok { background: #d6e3f7; color: var(--dark); }
.months span.best { background: var(--orange); color: #fff; font-weight: 700; }
.legend { display: flex; gap: 1.25rem; font-size: .85rem; color: var(--muted); margin-top: .9rem; flex-wrap: wrap; }
.legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: -1px; margin-right: .35rem; }
.legend .b { background: var(--orange); } .legend .o { background: #d6e3f7; } .legend .n { background: var(--soft); border: 1px solid var(--line); }

/* кнопки */
.btn { display: inline-block; font: 500 1rem/1 var(--font); padding: .9rem 1.6rem; border-radius: 4px; border: 0; background: var(--orange); color: #fff;
  text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--orange-dark); color: #fff; }
.btn.outline { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.outline:hover { background: var(--blue); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btns { justify-content: center; }

/* контакты */
.contacts { text-align: center; }
.contacts p { margin-bottom: .6rem; }
.contacts .big a { font-size: 1.15rem; font-weight: 500; color: var(--dark); text-decoration: none; }
.messengers { display: flex; justify-content: center; gap: .6rem; margin-top: 1.25rem; }
.messengers a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.messengers svg { width: 20px; height: 20px; fill: #fff; }
.messengers .tg { background: #229ed9; } .messengers .wa { background: #25d366; } .messengers .vk { background: #0077ff; }

/* форма */
.form { background: var(--white); padding: clamp(1.25rem, 3vw, 2rem); max-width: 820px; margin-inline: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .95rem; color: var(--dark); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--dark); background: var(--white); border: 1px solid #ced4da; border-radius: 4px; padding: .65rem .8rem; width: 100%; }
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,101,191,.2); }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: 1.25rem 0; font-size: .92rem; color: var(--muted); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-weight: 500; }
.form-status.ok { color: #198754; }
.form-status.err { color: #dc3545; }

/* внутренние страницы */
.page-head { background: var(--bg); padding-block: 2rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .75rem 0 0; max-width: 760px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.crumbs a { color: var(--muted); }
.dest-hero { position: relative; }
.dest-hero img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; }
.dest-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 60%); }
.dest-hero .wrap { position: absolute; left: 0; right: 0; bottom: 1.5rem; z-index: 1; }
.dest-hero h1 { color: #fff; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 4vw, 3rem); }
.article .content { max-width: 720px; }
.article h2 { font-size: 1.5rem; margin-top: 1.5em; }
.aside { position: sticky; top: 1rem; align-self: start; background: var(--soft); border: 1px solid var(--line); padding: 1.25rem; }
.aside h3 { font-size: 1.05rem; }
.aside p { font-size: .95rem; }
@media (max-width: 860px) { .article { grid-template-columns: 1fr; } .aside { position: static; } }
.resorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem 2rem; list-style: none; padding: 0; }
.resorts li { border-top: 1px solid var(--line); padding-top: .6rem; }
.resorts b { display: block; color: var(--dark); }
.resorts span { color: var(--muted); font-size: .95rem; }
.doclist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doclist li { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.doclist .t { font-weight: 500; color: var(--dark); }
@media (max-width: 640px) { .doclist li { grid-template-columns: 1fr; gap: .25rem; } }
.pay { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.pay li { padding-left: 1.5rem; position: relative; margin-bottom: .4rem; }
.pay li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--blue); }

/* юридические тексты */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal ol, .legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .45rem; }
.legal table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
.legal td, .legal th { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.legal .meta { color: var(--muted); }

/* проверяемые факты в черновике */
mark.verify { background: #fff1b8; color: inherit; box-shadow: 0 0 0 2px #fff1b8; }

/* подвал */
.foot { background: var(--dark); color: #adb5bd; padding-block: 2.5rem 1.5rem; font-size: .95rem; }
.foot a { color: #fff; }
.foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.foot h3 { color: #fff; font-size: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .35rem; }
.foot .fine { border-top: 1px solid #343a40; margin-top: 2rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 767px) { .foot .cols { grid-template-columns: 1fr; } }

/* cookie */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 640px; margin-inline: auto; background: var(--white);
  border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.15);
  display: flex; gap: 1rem; align-items: center; font-size: .92rem; }
.cookie p { margin: 0; }
.cookie .btn { padding: .6rem 1.1rem; flex: none; }
.cookie[hidden] { display: none; }
@media (max-width: 520px) { .cookie { flex-direction: column; align-items: stretch; } }

.lost { min-height: 45vh; display: grid; place-items: center; text-align: center; }

@media print { .top, .navbar, .foot, .cookie, .slider-arrow, .slider-dots, .aside { display: none; } }

/* ---------- правки после просмотра живого сайта 25.11 ---------- */
/* шапка на телефоне: логотип и меню в одну строку, телефоны — одной строкой ниже */
@media (max-width: 767px) {
  .top-row { padding-block: .5rem; }
  .logo img { width: 76px; }
  .logo span { font-size: .85rem; }
  .top-right { order: 3; }
  .phones { flex-direction: row !important; gap: 1.25rem; }
  .phone small { display: none; }
  .phone a { font-size: .95rem; }
}
/* уведомление о cookie — компактное */
@media (max-width: 520px) {
  .cookie { flex-direction: row; align-items: center; left: .5rem; right: .5rem; bottom: .5rem; padding: .6rem .8rem; gap: .75rem; font-size: .8rem; line-height: 1.35; }
  .cookie .btn { padding: .5rem .8rem; font-size: .85rem; }
}
/* карточки без фото: круизы и свой маршрут */
.dest-panel { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.dest-panel svg { width: 96px; height: 96px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dest-panel.blue { background: var(--blue); }
.dest-panel.orange { background: var(--orange); }
/* фото с белым фоном — не обрезать */
.plate.reverse { background: transparent; gap: 0; }
.plate.reverse .plate-image { align-self: start; min-height: 0; aspect-ratio: auto; position: sticky; top: 1rem; }
@media (max-width: 767px) { .plate.reverse .plate-image { position: static; } }
.plate.reverse .plate-image img { height: auto; object-fit: initial; }
.steps + .btns { margin-top: 1.25rem; }

/* «Наше предложение» на телефоне — по центру */
@media (max-width: 767px) { .plate:not(.reverse) .plate-text { text-align: center; } }

/* ================= шапка v3: язык, гамбургер, выдвижное меню, навигация по секциям ================= */
:lang(zh) body, body:lang(zh) { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Roboto", sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: .02em; }

.menu-btn { display: none !important; }
.top { position: relative; z-index: 40; }

/* переключатель языка */
.lang { position: relative; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 19px;
  background: #fff; color: var(--dark); font: 500 .9rem/1 var(--font); cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-btn svg:last-child { width: 12px; height: 12px; stroke-width: 1.8; transition: transform .2s; }
.lang-btn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; margin: 0; padding: .35rem; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 .75rem 1.75rem rgba(0,0,0,.14); z-index: 60; }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 6px; color: var(--dark); text-decoration: none; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--bg); }
.lang-menu a[aria-current="true"] { color: var(--blue); font-weight: 500; }
.lang-menu .code { min-width: 2.2rem; font-size: .8rem; color: var(--muted); }

/* гамбургер */
.burger { display: none; width: 42px; height: 42px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--dark); flex: none; }
.burger svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.burger path { transition: transform .25s, opacity .2s; transform-origin: 12px 12px; }
.burger[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .l2 { opacity: 0; }
.burger[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

/* выдвижное меню (телефон) */
.drawer { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 60px); overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer-nav { display: flex; flex-direction: column; padding: .5rem var(--gap); }
.drawer-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--dark); text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.drawer-contacts { padding: 1rem var(--gap) 1.5rem; }
.drawer-contacts p { margin: 0 0 .6rem; }
.drawer-contacts a { color: var(--dark); font-weight: 500; text-decoration: none; font-size: 1.05rem; }
.drawer-contacts small { display: block; color: var(--muted); font-size: .8rem; }
.drawer-contacts .messengers { justify-content: flex-start; }

/* полоса разделов страницы (телефон, главная) */
.secnav { display: none; }
.secnav-track { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem var(--gap); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.secnav-track::-webkit-scrollbar { display: none; }
.secnav a { flex: none; padding: .4rem .85rem; border-radius: 999px; background: var(--bg); color: var(--dark); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.secnav a.active { background: var(--blue); color: #fff; }

/* навигация на компьютере закреплена и подсвечивает текущую секцию */
.navbar { position: sticky; top: 0; z-index: 35; }
.nav a.active { color: var(--blue); }

@media (min-width: 768px) {
  .top-right { margin-left: auto; }
  .lang { margin-left: .25rem; }
}
@media (max-width: 767px) {
  .top { position: sticky; top: 0; box-shadow: 0 1px 0 var(--line), 0 4px 12px rgba(0,0,0,.04); }
  .top-row { flex-wrap: nowrap; gap: .5rem; padding-block: .4rem; }
  .logo img { width: 70px; }
  .logo span { font-size: .8rem; line-height: 1.15; max-width: 7.5rem; }
  .top-right { display: none; }
  .lang { margin-left: auto; }
  .lang-btn { height: 36px; padding: 0 .55rem; }
  .burger { display: grid; place-items: center; }
  .navbar { display: none; }
  .secnav { display: block; border-top: 1px solid var(--line); background: #fff; }
}
@media (max-width: 360px) { .logo span { display: none; } }

/* ================= шапка v4: компактнее (25.11) ================= */
/* переключатель языка — просто код языка со стрелкой */
.lang-btn { height: 32px; padding: 0 .45rem; border: 0; border-radius: 6px; background: transparent; font-weight: 600; font-size: .9rem; gap: .2rem; }
.lang-btn svg:first-child { display: none; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--bg); color: var(--blue); }
.lang-menu { min-width: 150px; padding: .25rem; }
.lang-menu a { padding: .45rem .6rem; font-size: .95rem; }

/* кнопка звонка — только на телефоне */
.call { display: none; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--blue); flex: none; }
.call svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 767px) {
  .top-row { padding-block: .3rem; gap: .25rem; min-height: 52px; }
  .logo { gap: .5rem; }
  .logo img { width: 62px; }
  .logo span { font-size: .78rem; max-width: 6.8rem; }
  .call { display: grid; }
  .burger { width: 40px; height: 40px; }
  .burger svg { width: 26px; height: 26px; }
  /* полоса разделов: ниже, мельче, с затуханием у края */
  .secnav-track { gap: .3rem; padding: .3rem var(--gap) .4rem; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .secnav a { padding: .28rem .7rem; font-size: .83rem; }
  /* меню — на весь экран поверх страницы */
  .drawer { position: fixed; left: 0; right: 0; bottom: 0; top: 52px; max-height: none; overflow-y: auto; z-index: 45; border-top: 1px solid var(--line); }
  .top.menu-open .secnav { display: none; }
  body.no-scroll { overflow: hidden; }
}
@media (max-width: 380px) { .logo span { display: none; } }

/* ================= микроанимации (25.11) ================= */
:root { --ease: cubic-bezier(.22, .61, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); }

/* кнопки: подъём при наведении, «нажатие» */
.btn { transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(232, 128, 66, .7); }
.btn.outline:hover { box-shadow: 0 8px 18px -8px rgba(44, 101, 191, .6); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .08s; }

/* ссылки в тексте: подчёркивание «растёт» слева направо */
.block p a, .legal a, .foot a, .alert a, .docs a, .doclist a {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .3s var(--ease), color .2s; }
.block p a:hover, .legal a:hover, .foot a:hover, .alert a:hover, .docs a:hover, .doclist a:hover { background-size: 0 1px; background-position: 100% 100%; }

/* меню: подчёркивание выезжает */
.nav a { position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: .45rem; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:first-child::after { left: 0; }
.nav a:hover::after, .nav a.active::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* соцсети и мессенджеры: пружинка */
.social a, .messengers a, .call { transition: transform .3s var(--spring), background-color .2s; }
.social a:hover, .messengers a:hover { transform: translateY(-3px) scale(1.06); }
.messengers a:active, .social a:active, .call:active { transform: scale(.9); }

/* телефоны в шапке */
.phone a { transition: color .2s, transform .2s var(--ease); display: inline-block; }
.phone a:hover { transform: translateX(2px); }

/* карточки направлений: подъём, фото медленно приближается, сезон «вспыхивает» */
.dest a { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.dest a:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(33, 37, 41, .45); }
.dest img, .dest-panel { transition: transform .8s var(--ease); }
.dest a { overflow: hidden; }
.dest a:hover img { transform: scale(1.05); }
.dest a:hover .dest-panel svg { animation: bob 1.6s ease-in-out infinite; }
.dest-panel svg { transition: transform .4s var(--spring); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.months span { transition: transform .25s var(--spring); }
.dest a:hover .months span.best { transform: translateY(-2px); }

/* иконки преимуществ и оплаты */
.icon-item svg { transition: transform .4s var(--spring), stroke .2s; }
.icon-item:hover svg { transform: translateY(-4px) scale(1.06); stroke: var(--orange); }

/* шаги заказа */
.steps li::before { transition: transform .35s var(--spring), background-color .2s; }
.steps li:hover::before { transform: scale(1.15); background: var(--orange); }

/* поля формы */
.field input, .field select, .field textarea { transition: border-color .2s, box-shadow .25s var(--ease), background-color .2s; }
.consent input { transition: transform .2s var(--spring); }
.consent input:checked { transform: scale(1.1); }
.btn[disabled] { position: relative; }
.btn.loading::after { content: ""; width: 1em; height: 1em; margin-left: .55rem; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status.ok, .form-status.err { animation: pop .45s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* слайдер: медленное приближение кадра, текст выезжает */
.slide img { transform: scale(1.08); transition: transform 7s linear; }
.slide.active img { transform: scale(1); }
.slide-text .slide-title, .slide-text .slide-short, .slide-text .btn { opacity: 0; transform: translateY(18px); }
.slide.active .slide-title, .slide.active .slide-short, .slide.active .btn { opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.active .slide-title { transition-delay: .2s; }
.slide.active .slide-short { transition-delay: .35s; }
.slide.active .btn { transition-delay: .5s, .5s, 0s, 0s, 0s; }
.slider-arrow { transition: transform .25s var(--spring), background-color .2s; }
.slider-arrow:hover { transform: translateY(-50%) scale(1.1); }
.slider-dots button { transition: background-color .3s, transform .3s var(--spring), width .3s var(--ease); }
.slider-dots button[aria-current="true"] { width: 26px; border-radius: 6px; }

/* выпадающий список языков и меню на телефоне */
.lang-menu:not([hidden]) { animation: drop .2s var(--ease); transform-origin: top right; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.lang-menu a { transition: background-color .15s, padding-left .2s var(--ease); }
.lang-menu a:hover { padding-left: .85rem; }
.drawer:not([hidden]) { animation: fadein .2s var(--ease); }
.drawer:not([hidden]) .drawer-nav a, .drawer:not([hidden]) .drawer-contacts > * { animation: slidein .35s var(--ease) both; }
.drawer-nav a:nth-child(2) { animation-delay: .03s !important; } .drawer-nav a:nth-child(3) { animation-delay: .06s !important; }
.drawer-nav a:nth-child(4) { animation-delay: .09s !important; } .drawer-nav a:nth-child(5) { animation-delay: .12s !important; }
.drawer-nav a:nth-child(6) { animation-delay: .15s !important; } .drawer-contacts > * { animation-delay: .18s !important; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes slidein { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.secnav a { transition: background-color .25s, color .25s, transform .2s var(--spring); }
.secnav a:active { transform: scale(.94); }

/* шапка: тень появляется, когда страница прокручена */
.top, .navbar { transition: box-shadow .3s; }
.scrolled .navbar { box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .25); }

/* появление при прокрутке — один раз, только если работает JS */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal .reveal.shown { opacity: 1; transform: none; }

/* cookie выезжает снизу */
.cookie:not([hidden]) { animation: rise .45s var(--ease) .6s both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
  .slide img, .slide.active img { transform: none; }
  .slide-text .slide-title, .slide-text .slide-short, .slide-text .btn { opacity: 1; transform: none; }
}

/* ================= попап «Позвонить» (телефон) ================= */
.call { border: 0; background: none; padding: 0; cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); animation: fadein .2s var(--ease); }
.sheet-panel { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 18px 18px 0 0;
  padding: .5rem 1rem calc(1rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0, 0, 0, .18);
  animation: sheetup .32s var(--ease); }
.sheet-panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: .25rem auto .5rem; }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.sheet-head h2 { font-size: 1.1rem; margin: 0; }
.sheet-x { width: 44px; height: 44px; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; }
.sheet-btn { display: flex; align-items: center; gap: .9rem; min-height: 56px; padding: .65rem 1rem; margin-bottom: .5rem; border-radius: 12px;
  background: var(--bg); color: var(--dark); text-decoration: none; transition: background-color .15s, transform .15s var(--spring); }
.sheet-btn:active { transform: scale(.98); background: #dde3ec; }
.sheet-btn svg { width: 22px; height: 22px; fill: var(--blue); flex: none; }
.sheet-btn b { display: block; font-size: 1.15rem; font-weight: 600; }
.sheet-btn small { display: block; font-size: .82rem; color: var(--muted); }
.sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sheet-row .sheet-btn { justify-content: center; margin-bottom: 0; color: #fff; }
.sheet-row .sheet-btn svg { fill: #fff; }
.sheet-btn.wa { background: #25d366; } .sheet-btn.tg { background: #229ed9; }

/* ================= «Наше предложение»: смена пейзажей ================= */
.fader { position: relative; overflow: hidden; background: #dfe5ec; }
.fade-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease-in-out; }
.fade-slide.active { opacity: 1; }
.fade-slide img { width: 100%; height: 100%; object-fit: cover; }
.fade-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .55rem; font-size: .78rem; line-height: 1.35;
  color: rgba(255,255,255,.92); background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.fade-slide figcaption a { color: inherit; background: none !important; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); }
@media (max-width: 767px) { .fader { aspect-ratio: 4 / 3; min-height: 0; } }
.foot .credits { margin: 1.5rem 0 0; font-size: .78rem; line-height: 1.5; color: #8a939c; }
.foot .credits a { color: #adb5bd; }

/* ================= кнопка тайского радио ================= */
.radio { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent;
  color: var(--dark); cursor: pointer; flex: none; transition: background-color .2s, color .2s, transform .25s var(--spring); }
.radio:hover { background: var(--bg); color: var(--blue); }
.radio:active { transform: scale(.92); }
.radio-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.radio .eq { position: absolute; right: 3px; bottom: 5px; display: none; gap: 1.5px; align-items: flex-end; height: 10px; }
.radio .eq i { width: 2.5px; height: 4px; background: var(--orange); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.radio .eq i:nth-child(2) { animation-delay: -.35s; } .radio .eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
.radio.on { color: var(--blue); background: #e3ecf9; }
.radio.on .eq { display: flex; }
.radio.loading .radio-ico { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .radio .eq i { animation: none; height: 7px; } }
@media (max-width: 767px) { .radio { width: 36px; height: 36px; } }

/* ================= выбор радиостанции ================= */
.radio-wrap { position: relative; flex: none; }
.radio { touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.radio-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 260px; max-height: min(70vh, 460px); overflow-y: auto; z-index: 65;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1rem 2rem rgba(0,0,0,.16); padding: .4rem;
  animation: drop .2s var(--ease); transform-origin: top right; }
.radio-menu[hidden] { display: none; }
.radio-menu ul { list-style: none; margin: 0; padding: 0; }
.rm-title { margin: .35rem .6rem .25rem; font-weight: 600; color: var(--dark); font-size: .95rem; }
.rm-hint { margin: .4rem .6rem .3rem; font-size: .75rem; color: var(--muted); }
.rm-group { margin: .55rem .6rem .15rem; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.radio-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 40px; padding: .4rem .6rem; border: 0; border-radius: 8px;
  background: none; font: 400 .95rem var(--font); color: var(--dark); text-align: left; cursor: pointer; transition: background-color .15s; }
.radio-menu button:hover, .radio-menu button:focus-visible { background: var(--bg); }
.radio-menu .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: background-color .2s, border-color .2s; }
.radio-menu [aria-checked="true"] { color: var(--blue); font-weight: 500; }
.radio-menu [aria-checked="true"] .dot { border-color: var(--blue); background: var(--blue); }
@media (max-width: 767px) {
  .radio-menu { position: fixed; left: .75rem; right: .75rem; top: 58px; width: auto; max-height: calc(100vh - 80px); }
  .radio-menu button { min-height: 46px; font-size: 1rem; }
}

/* ================= установка приложения (в меню) ================= */
.drawer-install { padding: .75rem var(--gap) 0; }
.drawer-install[hidden] { display: none; }
.install-btn { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 56px; padding: .6rem .9rem; border: 1px solid #cfdcf0; border-radius: 12px;
  background: #eef3fb; color: var(--dark); font: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--spring), background-color .2s; }
.install-btn:active { transform: scale(.98); }
.install-btn svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.install-btn b { display: block; font-weight: 600; }
.install-btn small { display: block; color: var(--muted); font-size: .8rem; }
.install-ios, .install-other { margin-top: .6rem; padding: .7rem .9rem; border-radius: 10px; background: var(--soft); font-size: .92rem; animation: pop .35s var(--spring); }
.install-ios[hidden], .install-other[hidden] { display: none; }
.install-ios p { margin: 0 0 .3rem; } .install-ios ol { margin: 0; padding-left: 1.2rem; }

/* ================= спокойная анимация логотипа (телефон) ================= */
@media (max-width: 767px) {
  .logo img { animation: logo-float 6s ease-in-out infinite; }
  .logo { position: relative; overflow: hidden; border-radius: 6px; }
  .logo::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
    animation: logo-sheen 9s ease-in-out 2s infinite; }
}
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes logo-sheen { 0%, 70% { left: -60%; } 85%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .logo img, .logo::after { animation: none !important; } }

/* ================= подвал: авторы фото во всплывающем окне ================= */
.foot .credits { position: relative; margin-top: 1.25rem; font-size: .8rem; }
.credits-btn { background: none; border: 0; padding: 0; color: #8a939c; font: inherit; cursor: pointer; border-bottom: 1px dotted #6c757d; }
.credits-btn:hover, .credits-btn[aria-expanded="true"] { color: #fff; }
.credits-pop { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(380px, calc(100vw - 2rem)); z-index: 20; padding: .9rem 1rem;
  background: #fff; color: var(--text); border-radius: 10px; box-shadow: 0 .75rem 2rem rgba(0,0,0,.35); animation: drop .2s var(--ease); transform-origin: bottom left; }
.credits-pop[hidden] { display: none; }
.credits-pop p { margin: 0 0 .5rem; }
.credits-pop ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
.credits-pop li { padding: .35rem 0; border-top: 1px solid var(--line); line-height: 1.35; }
.credits-pop li > a { color: var(--dark); font-weight: 500; display: block; }
.credits-pop li span { color: var(--muted); }
.foot .credits-pop a { color: var(--blue); }
.credits-pop .note { color: var(--muted); margin: 0; }

/* ================= погода на курортах ================= */
.wx-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.wx-head h2 { margin: 0; }
.wx-month { display: flex; align-items: center; gap: .25rem; background: var(--bg); border-radius: 999px; padding: .25rem; }
.wx-month button, .wx-nav { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: var(--dark); cursor: pointer;
  transition: transform .2s var(--spring), background-color .2s, opacity .2s; }
.wx-month button:hover, .wx-nav:hover { background: var(--blue); color: #fff; }
.wx-month button:active, .wx-nav:active { transform: scale(.9); }
.wx-month svg, .wx-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wx-label { min-width: 7.5rem; text-align: center; font-weight: 600; color: var(--dark); text-transform: capitalize; }
.wx-viewport { position: relative; }
.wx-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1rem) / 4); gap: 1rem; list-style: none; margin: 0; padding: .25rem .1rem 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.wx-track::-webkit-scrollbar { display: none; }
.wcard { scroll-snap-align: start; }
.wcard a { display: grid; grid-template-columns: 1fr auto; gap: .35rem .5rem; height: 100%; padding: 1.1rem 1.1rem .9rem; border-radius: 16px; color: var(--dark); text-decoration: none;
  background: linear-gradient(160deg, #eef4fc 0%, #fff 60%); border: 1px solid #dbe5f2; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.wcard a:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(33,37,41,.4); }
.wc-place b { display: block; font-size: 1.1rem; }
.wc-place small { color: var(--muted); }
.wc-icon { width: 46px; height: 46px; border-radius: 50%; position: relative; }
.wc-icon.sun { background: radial-gradient(circle at 50% 50%, #ffcf4a 0 42%, rgba(255,207,74,.25) 43% 100%); animation: sunspin 12s linear infinite; }
.wc-icon.part { background: radial-gradient(circle at 38% 40%, #ffcf4a 0 30%, transparent 31%); }
.wc-icon.part::after, .wc-icon.rain::after { content: ""; position: absolute; left: 10px; top: 18px; width: 30px; height: 16px; border-radius: 10px; background: #c9d6e8;
  box-shadow: 8px -6px 0 -1px #c9d6e8; }
.wc-icon.rain::before { content: ""; position: absolute; left: 14px; top: 36px; width: 22px; height: 8px;
  background: repeating-linear-gradient(105deg, #5b8fd6 0 2px, transparent 2px 7px); animation: drizzle 1.4s linear infinite; }
@keyframes sunspin { to { filter: hue-rotate(0deg); transform: rotate(360deg); } }
@keyframes drizzle { from { background-position: 0 0; } to { background-position: 7px 0; } }
.wc-air { grid-column: 1 / -1; }
.wc-air .v { display: block; font-size: 2.6rem; font-weight: 300; line-height: 1.05; color: var(--dark); }
.wc-air small, .wc-row small { color: var(--muted); font-size: .8rem; }
.wc-row { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: .5rem; font-weight: 500; }
.wc-sea i { font-style: normal; color: var(--blue); }
.wc-bars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; align-items: end; height: 28px; margin-top: .4rem; }
.wc-bars i { height: var(--h); background: #cfdcf0; border-radius: 2px; transition: background-color .3s; }
.wc-bars i.cur { background: var(--orange); }
.wcard.tick .v { animation: tick .45s var(--ease); }
@keyframes tick { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wx-nav { position: absolute; top: 42%; box-shadow: 0 4px 14px rgba(0,0,0,.15); z-index: 2; }
.wx-nav.prev { left: -18px; } .wx-nav.next { right: -18px; }
.wx-nav:disabled { opacity: 0; pointer-events: none; }
.wx-note { color: var(--muted); font-size: .85rem; margin: .25rem 0 0; }
@media (max-width: 991px) { .wx-track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); } }
@media (max-width: 767px) {
  .wx-track { grid-auto-columns: 72%; margin: 0 calc(-1 * var(--gap)); padding-inline: var(--gap); scroll-padding-inline: var(--gap); }
  .wx-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wc-icon.sun, .wc-icon.rain::before { animation: none; } }
.foot .credits-pop a { background: none !important; text-decoration: none; }
.foot .credits-pop li > a { color: var(--dark); }
.foot .credits-pop li a:hover { color: var(--blue); text-decoration: underline; }
.foot .credits-pop li span a { color: var(--blue); }
.credits-pop li { font-size: .82rem; }
.foot .credits-pop li span a { display: inline; font-weight: 400; }


/* ================= «сейчас» в карточках погоды ================= */
.wc-now { grid-column: 1 / -1; display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); }
.wc-now[hidden] { display: none; }
.wc-now b { color: var(--dark); font-weight: 600; }
.wc-now .dot { width: 7px; height: 7px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 0 rgba(47,179,109,.5); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(47,179,109,.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(47,179,109,0); } }
.wx-note a { color: var(--blue); }

/* ================= карта офиса ================= */
.office-map { position: relative; height: 420px; background: var(--bg); }
.office-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card { position: absolute; left: max(1rem, calc((100% - var(--wrap)) / 2)); top: 1.25rem; max-width: 320px; padding: 1rem 1.1rem;
  background: #fff; border-radius: 12px; box-shadow: 0 .75rem 1.75rem rgba(0,0,0,.18); display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; }
.map-card b { color: var(--dark); }
.map-card a { color: var(--blue); font-weight: 500; }
@media (max-width: 767px) {
  .office-map { height: auto; display: flex; flex-direction: column-reverse; }
  .office-map iframe { height: 320px; }
  .map-card { position: static; max-width: none; border-radius: 0; box-shadow: none; padding: 1rem var(--gap); }
}
@media (prefers-reduced-motion: reduce) { .wc-now .dot { animation: none; } }

/* иконки icons8 вместо своих svg */
.icon-item .ico { width: 80px; height: 80px; margin: 0 auto 1rem; transition: transform .4s var(--spring); }
.icon-item:hover .ico { transform: translateY(-4px) scale(1.06); }
/* карта через API */
.ymap { width: 100%; height: 100%; background: #e9eef3; }
@media (max-width: 767px) { .ymap { height: 320px; } }

/* «Вы можете делать заявки»: фото заполняет колонку целиком, как на прежнем сайте */
.plate.reverse { background: var(--white); }
.plate.reverse .plate-image { position: static; align-self: stretch; min-height: 360px; aspect-ratio: auto; }
.plate.reverse .plate-image img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 18%; }
.plate.reverse .plate-text { background: var(--soft); align-self: stretch; }
@media (max-width: 767px) { .plate.reverse .plate-image { min-height: 0; aspect-ratio: 4 / 3; } .plate.reverse .plate-image img { object-position: 55% 25%; } }


/* ================= договоры-оферты: компактный блок ================= */
.doc-box { margin-top: 1.5rem; }
.doc-who { margin: 0 0 .5rem; font-size: .85rem; color: var(--muted); }
.doc-tabs { display: inline-flex; padding: 4px; gap: 4px; background: #e6ebf2; border-radius: 999px; margin-bottom: .9rem; max-width: 100%; }
.doc-tabs button { border: 0; background: transparent; padding: .5rem 1rem; border-radius: 999px; font: 500 .92rem var(--font); color: var(--muted);
  cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.doc-tabs button[aria-selected="true"] { background: #fff; color: var(--dark); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.doc-panel { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.doc-panel[hidden] { display: none; }
.doc-panel:not([hidden]) { animation: fadein .25s var(--ease); }
.doc-panel a { display: flex; align-items: center; gap: .8rem; padding: .65rem .8rem; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  color: var(--dark); text-decoration: none; background-image: none !important; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.doc-panel a:hover { border-color: var(--blue); transform: translateX(3px); box-shadow: 0 6px 16px -10px rgba(44,101,191,.5); }
.doc-panel .di { width: 36px; height: 36px; border-radius: 8px; background: #fdecec; display: grid; place-items: center; flex: none; }
.doc-panel .di svg { width: 20px; height: 20px; fill: none; stroke: #d64545; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.doc-panel .dt { flex: 1; min-width: 0; }
.doc-panel .dt b { display: block; font-weight: 500; }
.doc-panel .dt small { color: var(--muted); font-size: .8rem; }
.doc-panel .dd svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--spring); }
.doc-panel a:hover .dd svg { transform: translateY(2px); }
@media (max-width: 420px) { .doc-tabs button { padding: .45rem .7rem; font-size: .85rem; } }


/* ================= MAX ================= */
.max-ico { width: 100%; height: 100%; display: block; border-radius: 50%; }
.social .max-round, .messengers .max-round { padding: 0; border: 0; cursor: pointer; overflow: hidden; background: transparent; border-radius: 50%; }
.social .max-round { width: 38px; height: 38px; }
.messengers .max-round { width: 42px; height: 42px; }
.sheet-row { grid-template-columns: repeat(3, 1fr) !important; }
.sheet-btn.max { background: linear-gradient(135deg, #2f8cff, #9b3cff); color: #fff; justify-content: center; border: 0; cursor: pointer; font: inherit; }
.sheet-btn.max .max-ico { width: 22px; height: 22px; border-radius: 6px; }
.sheet-head h2 { display: flex; align-items: center; gap: .5rem; }
.sheet-head .max-ico { width: 28px; height: 28px; border-radius: 8px; }
.sheet-text { color: var(--muted); font-size: .95rem; margin: 0 0 .75rem; }
.sheet-btn.copy-num { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.sheet-btn.copy-num.copied small { color: #198754; }
.sheet-panel .sheet-btn .max-ico { width: 24px; height: 24px; border-radius: 6px; flex: none; }
@media (min-width: 768px) {  /* на компьютере окно MAX — по центру, а не снизу */
  #max-sheet { align-items: center; }
  #max-sheet .sheet-panel { border-radius: 18px; }
}

/* ================= самолётик и яхта ================= */
.flyer { position: fixed; z-index: 30; pointer-events: none; }
.flyer.plane { left: 0; width: 120px; animation: fly 16s linear forwards; }
.flyer.plane svg { width: 120px; height: 40px; display: block; animation: wobble 3s ease-in-out infinite; }
.flyer.plane .trail { position: absolute; right: 100%; top: 20px; width: 220px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(44,101,191,.0) 0 6px, rgba(44,101,191,.35) 6px 12px); mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
@keyframes fly { from { transform: translateX(-360px) translateY(10px); } to { transform: translateX(calc(100vw + 120px)) translateY(-30px); } }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(1deg) translateY(-3px); } }
.flyer.yacht { bottom: 8px; right: 0; width: 110px; animation: sail 34s linear forwards; }
.flyer.yacht svg { width: 110px; height: 82px; display: block; animation: bob 2.6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes sail { from { transform: translateX(140px); } to { transform: translateX(calc(-100vw - 140px)); } }
@keyframes bob { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .flyer { display: none; } }
.sheet-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.sheet-row .sheet-btn { flex-direction: column; gap: .3rem; padding: .6rem .3rem; min-height: 64px; text-align: center; }
.sheet-row .sheet-btn b { font-size: .88rem; }


/* ================= QR СБП ================= */
.btn .i { width: 18px; height: 18px; fill: currentColor; vertical-align: -3px; margin-right: .3rem; }
.qr-open { display: inline-flex; align-items: center; }
.qr-panel { text-align: center; }
.qr-panel .sheet-head { text-align: left; }
.qr-img { width: min(260px, 70vw); height: auto; margin: .25rem auto 1rem; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.qr-panel .sheet-btn { text-align: left; }
.qr-panel .sheet-btn .i { width: 22px; height: 22px; fill: var(--blue); }
#qr-sheet .sheet-panel:not(:hover) {}
@media (min-width: 768px) { #qr-sheet { align-items: center; } #qr-sheet .sheet-panel { border-radius: 18px; } }


/* ================= веб-камеры ================= */
#kamery[hidden] { display: none; }
.cam-live { margin: 0; display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; }
.cam-live .dot, .cam-badge i { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: live 2.4s ease-out infinite; }
.cam-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 991px) { .cam-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cam-grid { grid-template-columns: 1fr; } }
.cam-card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #0f1b2a; cursor: pointer;
  text-align: left; font: inherit; color: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cam-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -16px rgba(0,0,0,.5); }
.cam-img { position: relative; display: block; aspect-ratio: 16 / 9; background: #1c2b3d; }
.cam-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.cam-img img.fresh { opacity: 1; }
.cam-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .65rem; background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,0)); }
.cam-meta b { display: block; }
.cam-meta small { display: block; font-size: .75rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-badge { position: absolute; top: .6rem; left: .6rem; display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .45rem; border-radius: 6px;
  background: rgba(0,0,0,.55); font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.cam-credit { margin: .9rem 0 0; font-size: .8rem; color: var(--muted); text-align: right; }
.cam-credit a { color: var(--blue); }
.cam-sheet .cam-panel { max-width: 960px; }
.cam-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.cam-frame iframe, .cam-frame img { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
@media (min-width: 768px) { .cam-sheet { align-items: center; } .cam-sheet .sheet-panel { border-radius: 18px; } }
