/* =============================================================
   site.css — საჯარო გვერდების განლაგება (ჰედერი, ფუტერი, ამინდი, კურსი, არხების სია)
   ============================================================= */
html { scroll-behavior: smooth; }
body { overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.3; }
p { line-height: 1.7; }
.muted { color: var(--text-secondary); }
#pricing, #weather, #rates { scroll-margin-top: 90px; }

/* ---------- ჰედერი ---------- */
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 24px; }
.navbar .logo { font-size: 22px; flex-shrink: 1; min-width: 0; }
.navbar .logo a { display: block; }
.navbar .nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.navbar .nav-links a, .navbar .nav-mobile a {
    margin: 0; padding: 8px 16px; font-size: 14px; font-weight: 500; white-space: nowrap;
    color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 999px; transition: border-color .2s, color .2s;
}
.navbar .nav-links a:hover, .navbar .nav-mobile a:hover { color: var(--text-primary); border-color: var(--accent); }
.navbar .nav-cta { color: #fff !important; background: var(--accent-gradient) !important; border-color: transparent !important; }
.nav-mobile { display: none; }

/* ---------- ქვედა პანელი (მობილური) ---------- */
.bottom-bar { display: none; }

/* ---------- ფუტერი ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 26px 20px 30px; text-align: center; margin-top: 30px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.foot-links a { padding: 7px 14px; font-size: 13px; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; }
.foot-links a:hover { color: var(--text-primary); border-color: var(--accent); }
.foot-copy { color: var(--text-muted); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 20px 40px; }
.hero h1 { font-size: 42px; line-height: 1.2; margin-bottom: 14px; }
.hero p { font-size: 17px; line-height: 1.7; margin: 0 auto 26px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-actions .btn { flex: 1 1 170px; max-width: 220px; }

/* ---------- პაკეტები ---------- */
.section-title { text-align: center; font-size: 28px; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--text-secondary); margin: 0 auto 6px; max-width: 560px; font-size: 15px; }
.grid { padding: 24px 0 30px; }
.btn-block { width: 100%; }
.pkg-desc { color: var(--text-secondary); font-size: 14px; margin: 6px 0 4px; }
.card ul li { line-height: 1.5; padding: 7px 0; }
.card .price { line-height: 1.2; }
.card .price small { display: inline-block; margin-left: 4px; }
.card ul li.ch-li::before { content: "▸ "; }
.ch-link {
    -webkit-appearance: none; appearance: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
    color: var(--accent-2); background: rgba(0,217,192,.08); border: 1px solid rgba(0,217,192,.4);
}
.ch-link:hover { background: rgba(0,217,192,.16); }

/* ---------- ამინდი და კურსი (კომპაქტური) ---------- */
.info-section { padding-top: 10px; padding-bottom: 10px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.info-card { padding: 18px 18px 16px; }
.info-card:hover { transform: none; }
.info-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: nowrap; }
.info-head h3 { margin: 0; font-size: 17px; white-space: nowrap; }
.info-sub { font-size: 11px; color: var(--text-muted); text-align: right; }
.info-head select {
    background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border);
    border-radius: 8px; padding: 6px 10px; font-size: 14px; max-width: 150px; min-width: 0;
}
.info-loading { color: var(--text-secondary); font-size: 14px; padding: 12px 0; text-align: center; }

.w-now { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.w-icon { font-size: 40px; line-height: 1; }
.w-temp { font-size: 32px; font-weight: 800; line-height: 1; }
.w-side { min-width: 0; }
.w-desc { font-size: 14px; }
.w-meta { color: var(--text-muted); font-size: 12px; margin-top: 3px; }
.w-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.w-day { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 7px 2px; text-align: center; min-width: 0; }
.w-day-name { font-size: 11px; color: var(--text-secondary); }
.w-day-ic { font-size: 18px; margin: 2px 0; line-height: 1.2; }
.w-day-t { font-size: 12px; white-space: nowrap; }
.w-day-t span { color: var(--text-muted); }

.r-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.r-grid.scroll { max-height: 300px; overflow-y: auto; padding-right: 2px; }
.r-tile { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.r-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.r-top b { color: var(--text-primary); font-size: 13px; }
.r-val { font-size: 16px; font-weight: 700; margin-top: 2px; white-space: nowrap; }
.r-diff { font-size: 11px; color: var(--text-muted); }
.r-diff.up { color: var(--success); }
.r-diff.down { color: var(--danger); }
.link-btn { background: none; border: none; color: var(--accent-2); font-size: 13px; cursor: pointer; margin-top: 10px; padding: 2px 0; }

/* ---------- არხების სია ---------- */
.ch-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ch-overlay[hidden] { display: none; }
.ch-modal { width: 100%; max-width: 520px; max-height: 84vh; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.ch-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 12px; }
.ch-modal-head h3 { margin: 0; font-size: 21px; }
.ch-close { background: none; border: none; color: var(--text-secondary); font-size: 22px; cursor: pointer; padding: 6px 10px; line-height: 1; }
.ch-list { overflow-y: auto; padding: 0 18px 18px; display: flex; flex-direction: column; gap: 9px; -webkit-overflow-scrolling: touch; }
.ch-item { display: flex; align-items: center; gap: 14px; padding: 9px 12px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 14px; flex-shrink: 0; }
.ch-logo { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ch-logo img { width: 100%; height: 100%; object-fit: contain; }
.ch-ph { font-size: 20px; }
.ch-name { font-size: 15px; font-weight: 500; line-height: 1.4; min-width: 0; }
body.no-scroll { overflow: hidden; }

/* ---------- მობილური ---------- */
@media (max-width: 768px) {
    body { padding-bottom: 78px; }
    .navbar { padding: 12px 16px; }
    .navbar .logo { font-size: 20px; }
    .navbar .nav-links { display: none; }
    .nav-mobile { display: flex; }
    .navbar .nav-mobile a { padding: 7px 14px; }

    .bottom-bar {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        background: rgba(19,23,34,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 4px;
    }
    .bottom-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; color: var(--text-secondary); border: 1px solid transparent; border-radius: 12px; text-align: center; overflow-wrap: normal; }
    .bottom-bar a span { font-size: 19px; line-height: 1.2; }
    .bottom-bar a:active, .bottom-bar a:hover { color: var(--text-primary); border-color: var(--border); background: var(--bg-card); }

    .hero { padding: 34px 18px 26px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; margin-bottom: 20px; }
    .section-title { font-size: 24px; }
    .container { padding: 0 16px; }
    .grid { padding: 18px 0 24px; gap: 16px; }
    .card { padding: 22px 18px; }
    .info-card { padding: 16px 14px; }
    .info-grid { grid-template-columns: 1fr; }
    .r-grid { grid-template-columns: repeat(2, 1fr); }
    .form-wrap { margin: 26px 16px; padding: 26px 18px; }
    .ch-overlay { align-items: flex-end; padding: 0; }
    .ch-modal { max-width: none; max-height: 82vh; border-radius: 20px 20px 0 0; }
}
