/* Эйлат 2026 · путеводитель — тема: тёплая тёмная палитра */

:root {
  --bg-main: #0D0B09;
  --bg-card: #17130F;
  --bg-card-2: #1E1812;
  --accent: #C8A96E;
  --accent-dark: #9C7F4E;
  --accent-sea: #2E7D8C;
  --accent-sea-light: #4BA3AE;
  --text: #F2EDE4;
  --text-muted: #A69C8D;
  --warn-bg: #2E1712;
  --warn-border: #E0603D;
  --tip-bg: #12241F;
  --tip-border: #2E9C8C;
  --author-bg: #241C0E;
  --author-border: var(--accent);
  --radius: 16px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --header-h: 56px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-sea-light); }

button { font-family: inherit; }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: rgba(13, 11, 9, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200, 169, 110, 0.15);
}

.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: var(--bg-card-2);
  color: var(--accent);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-btn:active { background: var(--accent-dark); color: var(--bg-main); }

.topbar-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
  color: var(--accent);
  cursor: pointer;
}

.topbar-back {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.topbar-back.show { display: flex; }

/* ===== Menu overlay ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 5, 4, 0.6);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-panel {
  width: min(340px, 88vw);
  height: 100%;
  background: var(--bg-card);
  overflow-y: auto;
  padding: 16px 12px 32px;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  box-shadow: -8px 0 24px rgba(0,0,0,0.4);
}
.menu-overlay.open .menu-panel { transform: translateX(0); }

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 16px;
}
.menu-header strong { color: var(--accent); letter-spacing: 0.04em; }
.menu-close {
  width: 38px; height: 38px; border-radius: 10px; border: none;
  background: var(--bg-card-2); color: var(--text); font-size: 18px; cursor: pointer;
}

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a, .menu-sub-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 15.5px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.menu-list a:active, .menu-sub-toggle:active { background: var(--bg-card-2); }
.menu-list a.active { color: var(--accent); background: rgba(200,169,110,0.1); }
.menu-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }

.menu-sub {
  list-style: none;
  margin: 0 0 4px 0;
  padding: 0 0 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.menu-sub.open { max-height: 900px; }
.menu-sub a { font-size: 14.5px; padding: 11px 12px; color: var(--text-muted); }
.menu-sub a.active { color: var(--accent); }
.menu-caret { margin-left: auto; transition: transform 0.2s ease; color: var(--text-muted); }
.menu-caret.rot { transform: rotate(90deg); }

/* ===== Main content ===== */
main#app {
  min-height: calc(100vh - var(--header-h));
  padding-bottom: 40px;
}

.page {
  padding: 16px 16px 8px;
  max-width: 720px;
  margin: 0 auto;
}

.page h1 {
  font-size: 22px;
  margin: 4px 0 4px;
  color: var(--accent);
  line-height: 1.25;
}
.page h1 .num { color: var(--text-muted); font-weight: 400; margin-right: 6px; }
.page .subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.block { margin-bottom: 18px; }
.block p { margin: 0 0 10px; }
.block h2 {
  font-size: 17px;
  color: var(--text);
  margin: 22px 0 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.block h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

/* ===== Callouts ===== */
.callout {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 15px;
  border-left: 4px solid;
}
.callout .callout-title {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  font-size: 13.5px;
}
.callout.warn { background: var(--warn-bg); border-color: var(--warn-border); }
.callout.warn .callout-title { color: var(--warn-border); }
.callout.tip { background: var(--tip-bg); border-color: var(--tip-border); }
.callout.tip .callout-title { color: var(--tip-border); }
.callout.author { background: var(--author-bg); border-color: var(--author-border); }
.callout.author .callout-title { color: var(--accent); }

/* ===== Table -> vertical cards ===== */
.table-cards { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.tcard {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.tcard-title {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 15.5px;
}
.tcard-row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 14.5px;
}
.tcard-row:first-of-type { border-top: none; }
.tcard-row .k {
  color: var(--text-muted);
  flex: 0 0 40%;
  font-size: 13px;
}
.tcard-row .v { flex: 1; }

/* Wide table for desktop */
@media (min-width: 720px) {
  table.wide-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
  }
  table.wide-table th, table.wide-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
    vertical-align: top;
  }
  table.wide-table th { color: var(--accent); font-weight: 700; background: var(--bg-card-2); }
  .table-cards { display: none; }
}
@media (max-width: 719.98px) {
  table.wide-table { display: none; }
}

/* ===== Cards grid (home menu tiles) ===== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 16px;
}
.tile {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 96px;
  justify-content: center;
}
.tile:active { background: var(--bg-card-2); }
.tile .tile-icon { font-size: 26px; }
.tile .tile-label { font-size: 13.5px; font-weight: 600; line-height: 1.25; }

/* ===== Hero (home) ===== */
.hero {
  position: relative;
  padding: 36px 20px 28px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(200,169,110,0.28), transparent 60%),
    radial-gradient(120% 90% at 90% 10%, rgba(46,125,140,0.28), transparent 55%),
    linear-gradient(180deg, #1b140c 0%, #0D0B09 75%);
  border-bottom: 1px solid rgba(200,169,110,0.15);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg-main) 100%);
  pointer-events: none;
}
.hero-eyebrow {
  color: var(--accent-sea-light);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
}
.hero h1 {
  font-size: 30px;
  margin: 8px 0 6px;
  color: var(--text);
  letter-spacing: 0.01em;
  position: relative;
}
.hero h1 span { color: var(--accent); }
.hero .dates {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
  position: relative;
}
.hero .names {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  position: relative;
}

.home-intro {
  padding: 18px 16px 4px;
  max-width: 720px;
  margin: 0 auto;
}
.home-intro p { margin: 0 0 12px; color: var(--text); font-size: 15.5px; }
.read-more-btn {
  background: none;
  border: 1px solid var(--accent-dark);
  color: var(--accent);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}

.section-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 16px 4px;
}

/* ===== Buttons ===== */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-waze { background: var(--accent-sea); color: #fff; }
.btn-maps { background: var(--bg-card-2); color: var(--text); border: 1px solid rgba(255,255,255,0.12); }
.btn-tel { background: var(--accent); color: #1a1305; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent-dark); }
.btn:active { filter: brightness(0.9); }

/* ===== Location card ===== */
.loc-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.loc-card .loc-name { font-weight: 700; margin-bottom: 4px; }
.loc-card .loc-note { color: var(--text-muted); font-size: 13.5px; margin-bottom: 6px; }
.loc-group-title {
  color: var(--accent-sea-light);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  margin: 22px 0 10px;
  text-transform: uppercase;
}

/* ===== Checklist ===== */
.checklist { list-style: none; margin: 10px 0; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 15px;
}
.checklist input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--accent-sea);
  margin-top: 1px;
}
.checklist label { flex: 1; cursor: pointer; }
.checklist li.checked label { color: var(--text-muted); text-decoration: line-through; }
.checklist-progress {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 2px;
}
.checklist-reset {
  background: none;
  border: 1px solid var(--warn-border);
  color: var(--warn-border);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  margin: 8px 0 4px;
}

/* ===== Submenu grid (Дополнительно) ===== */
.submenu-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 16px; }
.submenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}
.submenu-item .tile-icon { font-size: 22px; }
.submenu-item .arrow { margin-left: auto; color: var(--text-muted); }

/* ===== Footer nav (prev/next optional) ===== */
.page-footer {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: center;
}

/* ===== App badges (apps section) ===== */
.app-badge {
  display: inline-block;
  background: var(--bg-card-2);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 12px;
  margin-left: 6px;
}

::selection { background: var(--accent); color: #1a1305; }

@media (min-width: 720px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 38px; }
}
