/* Яскраво й тепло: захід сонця (кораловий + сонячний), море (бірюза), ягідний акцент на кремовому тлі */
:root {
  --bg: #fff7ee; --card: #ffffff; --ink: #2b1d33; --muted: #7a6a80; --line: #f2e2d2;
  --coral: #ff6b4a; --sun: #ffb238; --teal: #10a39b; --berry: #e8467c; --sky: #3ba3f0; --leaf: #3cb371; --plum: #7b4fd6;
  --tg: #229ed9; --sand: #ffeedd;
  --grad: linear-gradient(135deg, #ff6b4a 0%, #ff8f4a 45%, #ffb238 100%);
  --grad-sea: linear-gradient(135deg, #10a39b, #3ba3f0);
  --radius: 22px; --shadow: 0 10px 30px rgba(255, 107, 74, .10), 0 2px 8px rgba(43, 29, 51, .05);
  --shadow-h: 0 18px 44px rgba(255, 107, 74, .22), 0 4px 12px rgba(43, 29, 51, .08);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1d1520; --card: #281e2c; --ink: #fbf1ea; --muted: #c2afbf; --line: #3a2d3e; --sand: #3a2a33;
          --shadow: 0 10px 30px rgba(0,0,0,.35); --shadow-h: 0 18px 44px rgba(0,0,0,.5); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg);
       background-image: radial-gradient(900px 500px at 100% -10%, rgba(255,178,56,.22), transparent 60%),
                         radial-gradient(700px 500px at -10% 30%, rgba(16,163,155,.12), transparent 60%),
                         radial-gradient(700px 500px at 110% 80%, rgba(232,70,124,.10), transparent 60%);
       background-attachment: fixed; }
a { color: var(--coral); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; gap: 12px; align-items: center; justify-content: space-between;
       padding: 10px 20px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px);
       border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 1.12rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo span { color: var(--coral); }
nav { display: flex; gap: 4px; }
nav a { text-decoration: none; color: var(--ink); padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
nav a:hover { background: var(--sand); }
nav a.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(255,107,74,.3); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.tg-pill, .login-pill { text-decoration: none; font-weight: 700; font-size: .9rem; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.tg-pill { background: var(--tg); color: #fff; }
.login-pill { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.login-pill.in { background: var(--grad-sea); color: #fff; border: 0; }
@media (max-width: 720px) {
  .top { padding: 8px 10px; gap: 6px; }
  .tg-pill, .logo .lg-full { display: none; }
  nav a { padding: 6px 8px; font-size: .84rem; }
  .login-pill { padding: 6px 10px; font-size: .82rem; }
}

main { max-width: 1160px; margin: 0 auto; padding: 0 16px 40px; }

/* ---------- банер ---------- */
.hero { position: relative; margin: 16px 0 0; border-radius: 30px; overflow: hidden; color: #fff;
        background: #ff6b4a center / cover no-repeat; min-height: 400px; display: flex; align-items: flex-end;
        box-shadow: 0 24px 60px rgba(255,107,74,.25); }
.hero::before { content: ""; position: absolute; inset: 0;
                background: linear-gradient(160deg, rgba(255,107,74,.35) 0%, rgba(255,178,56,.10) 40%, rgba(43,29,51,.78) 100%); }
.hero-in { position: relative; padding: 40px 30px 30px; width: 100%; }
.hero .kicker { display: inline-block; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); padding: 5px 12px;
                border-radius: 999px; font-weight: 700; font-size: .88rem; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); max-width: 780px; text-shadow: 0 3px 22px rgba(0,0,0,.25); }
.hero h1 em { background: linear-gradient(135deg, #ffe08a, #ffb238); -webkit-background-clip: text; background-clip: text; }
.hero p.lead { margin: 0 0 20px; font-size: 1.1rem; max-width: 640px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: .9rem; font-weight: 500; }

/* ---------- пошук ---------- */
.search { background: var(--card); color: var(--ink); border-radius: 20px; padding: 8px; display: flex; gap: 8px;
          box-shadow: 0 16px 44px rgba(0,0,0,.25); max-width: 780px; position: relative; flex-wrap: wrap; }
.search .field { flex: 1; min-width: 220px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 10px; }
.search .field b { font-size: .8rem; color: var(--muted); width: 100%; font-weight: 700; }
.search input { border: 0; outline: 0; font: inherit; font-size: 1.05rem; flex: 1; min-width: 140px; background: transparent; color: var(--ink); padding: 4px 0; }
.suggest { position: absolute; left: 8px; right: 8px; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line);
           border-radius: 16px; box-shadow: var(--shadow-h); max-height: 330px; overflow: auto; z-index: 15; }
.suggest button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; padding: 11px 14px; border: 0;
                  background: none; font: inherit; color: var(--ink); cursor: pointer; }
.suggest button:hover, .suggest button.hl { background: var(--sand); }
.suggest small { color: var(--muted); margin-left: auto; }
.search.inline { box-shadow: var(--shadow); max-width: none; border: 1px solid var(--line); }

.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 14px;
        font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .15s; }
.chip:hover { transform: translateY(-1px); }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(255,107,74,.28); }
.chip.port { background: var(--sand); border-color: transparent; padding: 5px 10px; font-size: .88rem; }
.chip .x { margin-left: 6px; opacity: .6; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 20px 0 6px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }

.btn { font: inherit; font-weight: 700; border: 0; border-radius: 14px; padding: 12px 20px; cursor: pointer; text-decoration: none;
       display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(255,107,74,.32); }
.btn.sea { background: var(--grad-sea); color: #fff; }
.btn.tg { background: var(--tg); color: #fff; }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn.danger { background: none; color: var(--berry); border: 1px solid var(--line); }
.btn.sm { padding: 8px 14px; font-size: .9rem; }
.btn:disabled { opacity: .6; cursor: wait; }

details.more { margin: 6px 0 0; }
details.more summary { cursor: pointer; color: var(--muted); font-size: .92rem; padding: 6px 0; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 8px 0; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); min-width: 170px; flex: 1; font-weight: 600; }
select, input[type=range], input.inp { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line);
                                       border-radius: 12px; padding: 10px 12px; font-weight: 400; }
input.inp:focus, select:focus { outline: 2px solid rgba(255,107,74,.35); border-color: var(--coral); }
input[type=range] { padding: 0; accent-color: var(--coral); }

/* ---------- картки ---------- */
.results-head { margin: 14px 0 12px; color: var(--muted); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
        box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.card .ph { aspect-ratio: 4 / 3; background: var(--grad) center / cover; position: relative; }
.card .price { position: absolute; right: 12px; bottom: 12px; background: var(--grad); color: #fff; font-weight: 800;
               padding: 7px 13px; border-radius: 14px; font-size: 1.2rem; box-shadow: 0 6px 18px rgba(255,107,74,.45); }
.card .price small { display: block; font-size: .64rem; font-weight: 700; opacity: .9; text-align: right; margin-top: -3px; }
.card .badge { position: absolute; left: 12px; top: 12px; background: rgba(43,29,51,.6); color: #fff; font-size: .78rem; font-weight: 700;
               padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.card .badge.hot { background: var(--berry); }
.card .body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 1.22rem; margin: 0; }
.card .meta { color: var(--muted); font-size: .9rem; }
.card .cta { margin-top: auto; padding-top: 12px; }
.card .cta .btn { width: 100%; }
.card .more-link { font-size: .86rem; text-decoration: none; font-weight: 600; }
.flag { vertical-align: -3px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

.card.promo { background: linear-gradient(160deg, #229ed9, #10a39b); color: #fff; border: 0; padding: 24px; justify-content: center; }
.card.promo h3 { font-size: 1.45rem; }
.card.promo .btn { background: #fff; color: #10737a; margin-top: 10px; }
.card.join { background: var(--grad); color: #fff; border: 0; padding: 24px; justify-content: center; }
.card.join .btn { background: #fff; color: var(--coral); margin-top: 10px; }

.skel { background: linear-gradient(90deg, var(--line) 25%, var(--sand) 50%, var(--line) 75%); background-size: 200% 100%;
        animation: sk 1.2s infinite; border-radius: var(--radius); height: 340px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- секції ---------- */
.section { margin: 56px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 18px; overflow-x: auto;
            padding: 4px 4px 12px; scroll-snap-type: x mandatory; }
.scroller > * { scroll-snap-align: start; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 10px; color: #fff; }
.step b { display: block; font-family: Fraunces, serif; font-size: 1.15rem; margin-bottom: 4px; }

.join-band { margin-top: 56px; border-radius: 30px; padding: 32px 28px; background: var(--grad); color: #fff;
             box-shadow: 0 24px 60px rgba(255,107,74,.28); display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: center; }
.join-band h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.join-band p { margin: 0; opacity: .95; }
.join-band form { background: rgba(255,255,255,.18); backdrop-filter: blur(6px); border-radius: 20px; padding: 14px; display: grid; gap: 10px; }
.join-band .inp { border: 0; }
.join-band .btn.white { background: #fff; color: var(--coral); }
.join-band .msg { color: #fff; }
.join-band .or { text-align: center; font-size: .85rem; opacity: .9; }
@media (max-width: 820px) { .join-band { grid-template-columns: 1fr; padding: 24px 18px; } }
.perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.perks span { background: rgba(255,255,255,.2); border-radius: 999px; padding: 5px 12px; font-size: .88rem; font-weight: 600; }
.msg { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.msg.err { color: var(--berry); font-weight: 600; }
.msg.ok { color: var(--teal); font-weight: 600; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.page-head { padding: 32px 0 10px; }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.page-head p { color: var(--muted); max-width: 700px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--plum); }
.tag.romance { background: var(--berry); } .tag.food { background: var(--sun); color: #4a2c00; } .tag.sea { background: var(--sky); }
.tag.nature { background: var(--leaf); } .tag.quiet { background: var(--teal); } .tag.history { background: var(--plum); }
.tag.who { background: var(--sand); color: var(--ink); }
.card.city { text-decoration: none; color: inherit; }

.guide-hero { border-radius: 30px; overflow: hidden; margin-top: 16px; min-height: 420px; background: center / cover;
              position: relative; display: flex; align-items: flex-end; color: #fff; box-shadow: 0 24px 60px rgba(43,29,51,.2); }
.guide-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(170deg, rgba(255,107,74,.25), transparent 35%, rgba(43,29,51,.78)); }
.guide-hero div { position: relative; padding: 30px; }
.guide-hero h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); margin: 0; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.cols ul { padding-left: 1.1em; margin: .3em 0 1em; }
.sticky { position: sticky; top: 78px; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } .guide-hero { min-height: 300px; } .sticky { position: static; } }

.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
       border-top: 5px solid var(--sun); }
.tip:nth-child(3n+2) { border-top-color: var(--teal); } .tip:nth-child(3n) { border-top-color: var(--berry); }

/* ---------- вхід і кабінет ---------- */
.auth { max-width: 460px; margin: 30px auto 0; }
.auth .panel { display: grid; gap: 12px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .acc-grid { grid-template-columns: 1fr; } }
.plan { display: flex; gap: 12px; flex-wrap: wrap; }
.plan .stat { flex: 1; min-width: 140px; background: var(--sand); border-radius: 18px; padding: 14px; }
.plan .stat b { display: block; font-size: 1.6rem; font-family: Fraunces, serif; }
.upsell { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px dashed var(--line); }
.upsell:first-of-type { border-top: 0; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); flex-direction: row; min-width: 0; }
.switch input { width: 20px; height: 20px; accent-color: var(--coral); }
.wish { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- нижня панель Telegram (телефони) ---------- */
.tg-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; display: flex; align-items: center; gap: 10px;
          background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; box-shadow: var(--shadow-h);
          max-width: 560px; margin: 0 auto; font-size: .92rem; font-weight: 700; }
.tg-bar span { flex: 1; }
.tg-bar .x { border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 4px; }

.foot { text-align: center; color: var(--muted); font-size: .88rem; padding: 30px 16px 90px; border-top: 1px solid var(--line); margin-top: 56px; }
.foot .small { font-size: .8rem; max-width: 760px; margin: 8px auto 0; }

@media (max-width: 640px) {
  .hero { min-height: 0; border-radius: 22px; margin-top: 10px; }
  .hero-in { padding: 22px 16px 16px; }
  .hero h1 { font-size: 1.9rem; margin-bottom: 14px; }
  .hero p.lead, .hero .kicker { display: none; }
  .search .btn { width: 100%; }
  .trust span:nth-child(n+3) { display: none; }
  .trust { font-size: .82rem; margin-top: 10px; }
}

/* Захист форм і тарифи */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ts:empty { display: none; }
.ts { min-height: 0; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.tier { border: 2px solid rgba(0,0,0,.08); border-radius: 18px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.tier.on { border-color: var(--coral); box-shadow: 0 8px 24px rgba(255,107,74,.18); }
.tier .price { font-size: 1.6rem; font-weight: 700; color: var(--coral); }
.tier .price small { font-size: .9rem; color: #8a7c8f; font-weight: 500; }
.tier p { margin: 0 0 6px; color: #5f5168; }
.tier .btn, .tier .tag { margin-top: auto; align-self: flex-start; }
