/* Guide2Baku: общие стили. Цвета и шрифты заданы переменными вверху. */
:root {
  --bg: #EDEFEA; --surface: #F7F8F4; --ink: #0B2B33; --muted: #4A6166; --line: #CBD3CE;
  --accent: #A8203A; --accent-ink: #FFFFFF; --sea: #146C74; --sea-soft: #D5E6E4; --sun: #E8A33D;
  --wa: #1E8F4E; --tg: #2A7CB8; --mx: #5B4BC4;
  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08191E; --surface: #0F2830; --ink: #E6EFEC; --muted: #9CB4B5; --line: #22414A;
    --accent: #E2556C; --accent-ink: #200A10; --sea: #4FB5B5; --sea-soft: #123840; --sun: #F0B65A;
    --wa: #3DBE76; --tg: #5AAEE6; --mx: #9A8CF2; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--f-body); padding-bottom: 72px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.02rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); font-weight: 600; margin-bottom: 8px; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.mt { margin-top: 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; padding-block: 60px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
section.wrap { padding-block: 40px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.logo { font-family: var(--f-display); font-weight: 600; text-decoration: none; margin-right: auto; font-size: 1.05rem; }
.logo b { color: var(--accent); font-weight: 600; }
.nav { display: flex; gap: 16px; font-size: .9rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.burger { display: none; font: inherit; font-size: .9rem; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
@media (max-width: 900px) {
  .js .burger { display: block; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 12px 16px; gap: 12px; }
  .js .nav.open { display: flex; }
  .nav { order: 5; width: 100%; }
  .head-cta { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: .95rem; padding: 11px 18px; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.btn.sm { padding: 7px 14px; font-size: .85rem; }
.btn.block, .btn.full { width: 100%; }
.msgrs { display: flex; gap: 8px; flex-wrap: wrap; }
.msgrs.stack { flex-direction: column; align-items: stretch; margin-top: 12px; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.tg { background: var(--tg); border-color: var(--tg); color: #fff; }
.btn.mx { background: var(--mx); border-color: var(--mx); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.wa, :root:not([data-theme="light"]) .btn.tg, :root:not([data-theme="light"]) .btn.mx { color: #08191E; } }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg); border-top: 1px solid var(--line); padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); display: none; }
.dock .msgrs { flex-wrap: nowrap; } .dock .btn { flex: 1; padding: 10px 8px; }
@media (max-width: 700px) { .dock { display: block; } }
@media (min-width: 701px) { body { padding-bottom: 0; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding-block: 36px 20px; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; border-radius: 18px; }
.facts { list-style: none; padding: 0; margin: 4px 0 0; display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); margin-right: 8px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--sea-soft); border-radius: 14px; padding: 18px 20px; }
.strip.wrap { max-width: 1048px; }
.strip p { max-width: 52ch; }

/* generic blocks */
.sec-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; max-width: 64ch; }
.sec-head p { color: var(--muted); }
.crumbs { padding-block: 16px 0; font-size: .85rem; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.about-text { display: flex; flex-direction: column; gap: 12px; max-width: 66ch; }
.about-text p, .prose p { color: var(--muted); }
.more { font-weight: 600; }
.prose { display: flex; flex-direction: column; gap: 14px; } .prose ul { color: var(--muted); padding-left: 20px; margin: 0; } .prose h2 { margin-top: 10px; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 30px; }
.why div { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.why p { color: var(--muted); font-size: .94rem; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 80ch; }
.callout p { color: var(--muted); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-art { background: var(--sea-soft); color: var(--sea); height: 100px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.card-art svg { width: 58px; height: 58px; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 a { text-decoration: none; } .card-body h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); font-size: .93rem; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.meta span { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--f-body); font-size: .75rem; color: var(--muted); display: block; font-weight: 400; }

/* tour page */
.tour { padding-block: 24px 40px; }
.tour-head { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.tour-ico { flex: none; width: 84px; height: 84px; border-radius: 18px; background: var(--sea-soft); color: var(--sea); display: flex; align-items: center; justify-content: center; }
.tour-ico svg { width: 48px; height: 48px; }
.tour-head > div:last-child { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tour-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .tour-grid { grid-template-columns: 1fr; } .tour-head { flex-direction: column; align-items: flex-start; } }
.tour-main { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.blk { display: flex; flex-direction: column; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } @media (max-width: 640px) { .two { grid-template-columns: 1fr; } }
.route { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.route li::marker { color: var(--accent); font-weight: 600; }
ul.tick, ul.cross, ul.plain { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
ul.tick li, ul.cross li { padding-left: 24px; position: relative; }
ul.tick li::before { content: "+"; position: absolute; left: 0; color: var(--sea); font-weight: 700; }
ul.cross li::before { content: "–"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
ul.plain li { color: var(--muted); padding-left: 16px; position: relative; } ul.plain li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.tbl-wrap { overflow-x: auto; } table { border-collapse: collapse; min-width: 380px; width: 100%; font-variant-numeric: tabular-nums; }
th, td { border: 1px solid var(--line); padding: 8px 12px; text-align: center; } th:first-child, td:first-child { text-align: left; } thead th { background: var(--sea-soft); }
.note { font-size: .88rem; color: var(--muted); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.side-card dl { margin: 0; display: grid; gap: 12px; } .side-card dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); } .side-card dd { margin: 2px 0 0; font-weight: 500; }
.side-card dd.big { font-family: var(--f-display); font-size: 1.4rem; } .side-card dd small { font-family: var(--f-body); font-size: .8rem; color: var(--muted); font-weight: 400; }

/* gallery, reviews */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--sea-soft); border: 1px solid var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile figcaption { position: absolute; left: 10px; bottom: 8px; font-size: .78rem; font-weight: 600; background: var(--surface); padding: 2px 8px; border-radius: 6px; }
.revs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 18px; }
.rev { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.rev blockquote { margin: 0; } .rev figcaption { color: var(--muted); font-size: .88rem; }

/* booking */
.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .book { grid-template-columns: 1fr; } }
.book > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
@media (max-width: 480px) { .req { grid-template-columns: 1fr; } }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }
label { font-size: .84rem; color: var(--muted); font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%; min-width: 0; }
.terms { border-left: 3px solid var(--sun); padding-left: 14px; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; } .terms p { color: var(--muted); font-size: .92rem; }
.contact { margin: 0; display: grid; gap: 14px; } .contact dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); } .contact dd { margin: 2px 0 0; font-weight: 600; font-size: 1.15rem; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 28px 20px; color: var(--muted); font-size: .9rem; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: start; }
.foot-in nav { display: flex; flex-direction: column; gap: 6px; } .foot-in nav a { text-decoration: none; } .foot-in nav a:hover { color: var(--ink); }
.foot .phone { margin-top: 8px; font-weight: 600; color: var(--ink); } .copy { margin-top: 20px; font-size: .8rem; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } .foot-msgrs { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* увеличение фото */
.tile a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(4, 14, 18, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lb button { position: absolute; top: 12px; right: 12px; font: inherit; font-size: 1rem; background: var(--surface); color: var(--ink); border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; }

.form-msg { color: var(--accent); margin: 0; font-size: .95rem; }
.form-msg[hidden] { display: none; }
