/* =====================================================================
   HAGATE — podstrony frontu (cennik, o nas) — 2026-11
   Ladowany z poziomu widoku podstrony; korzysta ze zmiennych z front.css.
   ===================================================================== */

/* --- wspolny naglowek podstrony --- */
.hg-page-hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(56px, 8vw, 96px) 20px clamp(96px, 12vw, 140px);
    text-align: center; color: #fff;
    background: #070b1d url('../front/hero-bg.svg') center 30% / cover no-repeat;
}
.hg-page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,11,29,.35), rgba(7,11,29,.7)); }
.hg-page-hero .hg-kicker { color: #a5f3fc; }
.hg-page-hero h1 { margin: 16px 0 0; font-size: clamp(36px, 6vw, 60px); font-weight: 800; line-height: 1.06; letter-spacing: -0.04em; color: #fff; text-wrap: balance; }
.hg-page-hero h1 span { background: var(--hg-grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hg-page-hero p { max-width: 620px; margin: 18px auto 0; color: #b8c1da; font-size: clamp(16px, 2vw, 18.5px); line-height: 1.65; }
.hg-page-hero .hg-note-vat { margin-top: 10px; font-size: 13px; color: #8a93ad; font-style: normal; }

.hg-page-body { position: relative; z-index: 2; margin-top: clamp(-90px, -9vw, -64px); padding-bottom: clamp(64px, 10vw, 110px); }

/* --- wyszukiwarka koncowek --- */
.hg-tld-search { position: relative; max-width: 560px; margin: 30px auto 0; }
.hg-tld-search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #9aa3ba; font-size: 16px; }
body.hg-front .hg-tld-search input {
    width: 100%; height: 58px; padding: 0 20px 0 52px; border-radius: 16px; border: 0; outline: none;
    background: #fff; color: var(--hg-ink); font-size: 16px; font-weight: 500;
    box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 0 7px rgba(255,255,255,.06), 0 24px 60px rgba(2,6,23,.5);
    transition: box-shadow .25s;
}
body.hg-front .hg-tld-search input:focus { box-shadow: 0 0 0 2px #818cf8, 0 0 0 8px rgba(129,140,248,.22), 0 24px 60px rgba(2,6,23,.5); }

/* --- polecane koncowki --- */
.hg-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.hg-feat {
    position: relative; overflow: hidden; padding: 26px; border-radius: 22px; background: #fff;
    border: 1px solid var(--hg-line); box-shadow: var(--hg-shadow);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.hg-feat:hover { transform: translateY(-4px); border-color: #c7d2fe; }
.hg-feat::before { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: var(--hg-grad); opacity: .1; }
.hg-feat-tld { font-family: var(--hg-head); font-size: 34px; font-weight: 800; letter-spacing: -0.04em; background: var(--hg-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; line-height: 1.1; }
.hg-feat-label { margin-top: 18px; color: var(--hg-soft); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hg-feat-price { margin-top: 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hg-feat-price strong { font-family: var(--hg-head); font-size: 30px; font-weight: 800; color: var(--hg-ink); letter-spacing: -0.03em; }
.hg-feat-price strong.is-promo { color: #16a34a; }
.hg-feat-price s { color: var(--hg-soft); font-size: 14px; }
.hg-feat-meta { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--hg-line); display: flex; justify-content: space-between; color: var(--hg-muted); font-size: 14px; }
.hg-feat-meta b { color: var(--hg-ink); }
.hg-feat-promo { position: absolute; top: 22px; right: 22px; padding: 5px 10px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) { .hg-featured { grid-template-columns: 1fr; } }

/* --- tabela cennika --- */
.hg-table-card { background: #fff; border-radius: 22px; border: 1px solid var(--hg-line); box-shadow: var(--hg-shadow); overflow: hidden; }
.hg-table { width: 100%; border-collapse: collapse; text-align: left; }
.hg-table thead th { padding: 18px 26px; background: #f8f9fd; border-bottom: 1px solid var(--hg-line); color: var(--hg-soft); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hg-table tbody tr { border-bottom: 1px solid #f0f2f8; transition: background .15s; }
.hg-table tbody tr:last-child { border-bottom: 0; }
.hg-table tbody tr:hover { background: #f8f9ff; }
.hg-table td { padding: 18px 26px; font-weight: 600; color: var(--hg-ink); font-variant-numeric: tabular-nums; }
.hg-table td.tld-name { font-family: var(--hg-head); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--hg-ink); }
.hg-table td.tld-name::first-letter { color: var(--hg-indigo); }
.hg-old { text-decoration: line-through; color: var(--hg-soft); font-size: 13px; font-weight: 500; margin-right: 6px; }
.hg-promo-price { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #15803d; font-weight: 800; }
.hg-muted-dash { color: #c3c9d8; }
.hg-table .td-mobile { padding: 14px 18px; }
.hg-no-results { display: none; padding: 60px 20px; text-align: center; color: var(--hg-muted); font-size: 16px; }
.hg-no-results i { display: block; font-size: 26px; color: #c7d2fe; margin-bottom: 12px; }

#paginationControls { margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
body.hg-front .page-btn { min-width: 40px; height: 40px; padding: 0 14px; border: 1px solid var(--hg-line); background: #fff; color: var(--hg-muted); border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px; transition: .2s; }
body.hg-front .page-btn:hover { border-color: #c7d2fe; color: var(--hg-indigo); }
body.hg-front .page-btn.active { background: var(--hg-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(59,130,246,.3); }
body.hg-front .page-btn:disabled { opacity: .45; cursor: not-allowed; }
.hg-updated { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--hg-muted); font-size: 13.5px; font-weight: 500; text-align: center; }
.hg-updated i { color: var(--hg-indigo); }

/* --- O nas --- */
.hg-about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hg-about-card { background: #fff; border: 1px solid var(--hg-line); border-radius: 22px; padding: clamp(26px, 4vw, 36px); box-shadow: var(--hg-shadow); }
.hg-about-card h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; color: var(--hg-ink); }
.hg-about-card p { margin: 0; color: var(--hg-muted); font-size: 15.5px; line-height: 1.7; }
.hg-about-card .hg-ico { margin-bottom: 22px; }
.hg-about-card--exp { background: radial-gradient(130% 140% at 100% 0%, #312e81 0%, #1e1b4b 45%, #0b1024 100%); border-color: transparent; color: #fff; }
.hg-about-card--exp h2 { color: #fff; }
.hg-about-card--exp p { color: #c7d2fe; }
.hg-about-card--exp .hg-big { display: block; margin-bottom: 6px; background: var(--hg-grad-text); -webkit-background-clip: text; background-clip: text; }
.hg-about-card--sec { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.hg-sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hg-sec-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #f6f8fc; border: 1px solid var(--hg-line); color: var(--hg-ink-2); font-size: 14.5px; font-weight: 600; line-height: 1.55; }
.hg-sec-list i { color: #16a34a; font-size: 16px; margin-top: 2px; }
.hg-owner-note { margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px dashed #c7d2fe; color: var(--hg-muted); font-size: 14.5px; line-height: 1.6; }
.hg-owner-note i { color: var(--hg-indigo); font-size: 18px; }
.hg-owner-note a { color: var(--hg-indigo); font-weight: 700; text-decoration: none; }
.hg-about-cta { margin-top: clamp(40px, 6vw, 64px); text-align: center; }
@media (max-width: 860px) {
    .hg-about-grid { grid-template-columns: 1fr; }
    .hg-about-card--sec { grid-template-columns: 1fr; }
}

/* reveal (ta sama mechanika co na stronie glownej) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }
