/* Treeline Software: shared styles for subpages (see includes/layout.php) */
:root {
    --brand: #00695C;
    --brand-dark: #005046;
    --brand-deep: #00201B;
    --brand-soft: #CCE8E0;
    --brand-tint: #F4FBF8;
    --accent: #F2A93B;
    --ink: #1B2B28;
    --muted: #5B6B67;
    --line: #E3ECE9;
    --surface: #FFFFFF;
    --page: #F6F9F8;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(0, 32, 27, 0.06), 0 4px 14px rgba(0, 32, 27, 0.06);
    --shadow-hover: 0 4px 8px rgba(0, 32, 27, 0.08), 0 14px 30px rgba(0, 32, 27, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; border-radius: 6px; }
.brand span { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--brand-deep); }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--brand); background: var(--brand-tint); }
.nav a.active { color: var(--brand); background: var(--brand-tint); }
.nav .nav-cta { background: var(--brand); color: #fff; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; font-size: 1.1rem; color: var(--brand-deep); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(242, 169, 59, 0.18), transparent 60%), linear-gradient(140deg, var(--brand-deep) 0%, var(--brand-dark) 45%, var(--brand) 100%); padding: 64px 0 60px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--brand-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--brand-soft); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 0.7rem; opacity: 0.7; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; }
.hero h1 .hero-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.25em; border-radius: 14px; font-size: 0.7em; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--accent); margin-right: 14px; vertical-align: middle; position: relative; top: -0.08em; }
.hero .lead { font-size: 1.15rem; color: #D6EBE5; max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.on-page { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 22px 22px 14px; }
.on-page h2 { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-soft); margin-bottom: 10px; }
.on-page ul { list-style: none; }
.on-page a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; color: #fff; font-weight: 600; transition: color .2s; }
.on-page li:first-child a { border-top: none; }
.on-page a:hover { color: var(--accent); }
.on-page a i.lead-icon { width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.on-page a .chev { margin-left: auto; font-size: 0.75rem; opacity: 0.6; }

/* Service tabs */
.service-tabs { background: var(--surface); border-bottom: 1px solid var(--line); }
.service-tabs .wrap { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.service-tabs .wrap::-webkit-scrollbar { display: none; }
.service-tabs .label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-right: 6px; white-space: nowrap; }
.service-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 0.92rem; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s, border-color .2s; }
.service-tabs a i { color: var(--brand); }
.service-tabs a:hover { color: var(--brand); border-color: var(--brand-soft); background: var(--brand-tint); }
.service-tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.service-tabs a.active i { color: #fff; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--brand-deep); }
.section-head p { color: var(--muted); max-width: 640px; margin-top: 8px; }

/* Service groups */
.group { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.group-intro { position: sticky; top: 100px; }
.group-num { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.group-num::after { content: ""; height: 1px; width: 40px; background: var(--brand-soft); }
.icon-box { width: 52px; height: 52px; border-radius: 13px; background: var(--brand-tint); border: 1px solid var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; flex-shrink: 0; }
.group-intro h2 { font-size: 1.55rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--brand-deep); }
.group-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.group-items.single { grid-template-columns: 1fr; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.section.alt .card { background: var(--page); }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brand-soft); }
.card h3 { font-size: 1.1rem; color: var(--brand-deep); margin-bottom: 8px; display: flex; align-items: flex-start; gap: 10px; }
.card h3 i { color: var(--brand); font-size: 0.85rem; margin-top: 6px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Promo card (e.g. hardware for sale) */
.promo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 26px 28px; border-radius: var(--radius); background: var(--brand-tint); border: 1px dashed #9CCFC2; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.promo .icon-box { margin: 0; background: #fff; }
.promo h2 { font-size: 1.3rem; color: var(--brand-deep); margin-bottom: 4px; }
.promo p { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(0, 105, 92, 0.22); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--brand-deep); box-shadow: 0 4px 14px rgba(242, 169, 59, 0.3); }
.btn-accent:hover { background: #F5B85A; transform: translateY(-1px); }
.btn-light { background: var(--surface); color: var(--brand); border: 1px solid var(--brand-soft); }
.btn-light:hover { background: var(--brand-tint); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; }
.text-link i { transition: transform .2s; }
.text-link:hover i, .promo:hover .text-link i { transform: translateX(3px); }

/* Call to action band */
.cta-band { padding: 0 0 72px; }
.cta-band.alt { background: var(--surface); }
.section.alt:has(+ .cta-band.alt) { border-bottom: none; }
.section.alt + .section.alt { border-top: none; padding-top: 0; }
.cta-band .cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 40px; border-radius: 18px; color: #fff; background: radial-gradient(700px 300px at 100% 0%, rgba(242, 169, 59, 0.2), transparent 60%), linear-gradient(140deg, var(--brand-deep), var(--brand-dark)); }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; margin-bottom: 8px; }
.cta-band p { color: #C4DED7; max-width: 620px; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Games */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card.game-card { position: relative; overflow: hidden; padding: 0; }
.game-art { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; color: rgba(255, 255, 255, 0.92); background: linear-gradient(140deg, var(--brand-deep), var(--brand)); position: relative; }
.game-art::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.game-art i { position: relative; }
.game-art.amber { background: linear-gradient(140deg, #5A3A06, #C0841F); }
.game-art.slate { background: linear-gradient(140deg, #1E2A3A, #3E5A7A); }
.game-body { padding: 22px 24px 24px; }
.game-body h2 { font-size: 1.35rem; color: var(--brand-deep); margin-bottom: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: #FFF6E8; color: #9A5B00; border: 1px solid #F6DDB3; }

/* Generic grids and helpers */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.card .card-foot { margin-top: auto; padding-top: 18px; }
.btn-small { padding: 8px 14px; font-size: 0.88rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ===== Home page (index.php) ===== */
.hero.home { padding: 84px 0 72px; }
.hero.home h1 { max-width: 760px; margin-bottom: 18px; }
.hero.home .lead { max-width: 640px; margin-bottom: 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-soft); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero-label { font-size: 0.9rem; font-weight: 700; color: var(--brand-soft); margin-bottom: 14px; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-link { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); text-decoration: none; color: #fff; transition: background .2s, transform .2s, border-color .2s; }
.quick-link:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-3px); }
.quick-link i.lead-icon { font-size: 1.35rem; color: var(--accent); margin-bottom: 6px; }
.quick-link strong { font-size: 1.05rem; }
.quick-link small { color: #C4DED7; font-size: 0.9rem; line-height: 1.45; }
.quick-link .go { margin-top: auto; padding-top: 8px; font-size: 0.85rem; font-weight: 700; color: var(--brand-soft); }

.app-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-top img { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: var(--brand-tint); }
.app-top h3 { margin: 0; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--brand-tint); color: var(--brand); border: 1px solid var(--brand-soft); }
.tag.self { background: #FFF6E8; color: #9A5B00; border-color: #F6DDB3; }
.tag.web { background: #EEF3FF; color: #2F4FA8; border-color: #D3DDF8; }
.app-cta { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius); background: var(--brand-tint); border: 1px dashed #9CCFC2; }
.app-cta h3 { color: var(--brand-deep); font-size: 1.15rem; margin-bottom: 4px; }
.app-cta p { color: var(--muted); max-width: 680px; }

.points { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.points li { display: flex; gap: 10px; color: var(--muted); font-size: 0.93rem; line-height: 1.45; }
.points li i { color: var(--brand); font-size: 0.8rem; margin-top: 5px; }

.sale-note { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.chip i { color: var(--brand); }
.price { font-size: 1.7rem; font-weight: 800; color: var(--brand-dark); letter-spacing: -0.01em; }
.price.ask { font-size: 1.05rem; font-weight: 700; color: var(--muted); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }

.feature { padding: 32px; }
.feature h3 { font-size: 1.4rem; }
.card.feature.dark { background: linear-gradient(140deg, var(--brand-deep), var(--brand-dark)); color: #fff; border: none; }
.feature.dark h3 { color: #fff; }
.feature.dark p { color: #C4DED7; }
.feature.dark .icon-box { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: var(--accent); }
.game-list { list-style: none; margin: 16px 0 4px; display: grid; gap: 10px; }
.game-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--page); border: 1px solid var(--line); font-weight: 700; color: var(--brand-deep); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--brand-deep); letter-spacing: -0.015em; margin-bottom: 12px; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-weight: 600; color: var(--brand-deep); }
.contact-detail i { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-tint); border: 1px solid var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail a { text-decoration: none; }
.contact-detail a:hover { color: var(--brand); }
.contact-form { background: var(--surface); padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.contact-form label .opt { font-weight: 500; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 11px 12px; margin-bottom: 16px; border: 1px solid #CBD8D4; border-radius: 9px; font: inherit; font-size: 0.95rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 105, 92, 0.15); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; padding: 13px; }
.success-banner { display: flex; gap: 10px; align-items: flex-start; background: #E3F5EC; color: #0F5132; border: 1px solid #B7E2CB; padding: 14px 16px; border-radius: 10px; margin-bottom: 24px; font-weight: 600; }

/* ===== Software page (software/index.php) ===== */
.hero.apps { padding: 72px 0 64px; }
.hero.apps h1 { max-width: 720px; }
.hero.apps .lead { max-width: 640px; margin-bottom: 40px; }
.app-jump { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.app-jump a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); text-decoration: none; color: #fff; font-weight: 700; font-size: 0.92rem; text-align: center; transition: background .2s, transform .2s, border-color .2s; }
.app-jump a:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-3px); }
.app-jump img { width: 52px; height: 52px; border-radius: 13px; object-fit: contain; background: #fff; padding: 2px; }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.section.alt .app-card { background: var(--page); }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brand-soft); }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.app-head img { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: var(--brand-tint); flex-shrink: 0; }
.app-head h3 { font-size: 1.3rem; color: var(--brand-deep); line-height: 1.2; margin-bottom: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; border: 1px solid; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.live { background: #E3F5EC; color: #0F7A45; border-color: #B7E2CB; }
.badge.beta { background: #FFF6E8; color: #9A5B00; border-color: #F6DDB3; }
.badge.oss { background: var(--brand-tint); color: var(--brand); border-color: var(--brand-soft); }
.badge.web { background: #EEF3FF; color: #2F4FA8; border-color: #D3DDF8; }
.app-card > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 16px; }
.features { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.features li { display: flex; gap: 10px; font-size: 0.93rem; line-height: 1.45; color: var(--ink); }
.features li i { color: var(--brand); font-size: 0.8rem; margin-top: 5px; }
.app-actions { margin-top: auto; display: grid; gap: 10px; }
.app-note { margin-top: 12px; font-size: 0.84rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.app-note i { color: var(--brand); }
.custom-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 32px; border-radius: var(--radius); color: #fff; background: radial-gradient(700px 300px at 100% 0%, rgba(242, 169, 59, 0.18), transparent 60%), linear-gradient(140deg, var(--brand-deep), var(--brand-dark)); }
.custom-banner .icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.custom-banner h2 { font-size: 1.45rem; margin-bottom: 4px; }
.custom-banner p { color: #C4DED7; max-width: 640px; }

/* ===== IPTV landing page (iptv/index.php) ===== */
.hero.iptv { padding: 72px 0 68px; }
.hero.iptv .lead { margin-bottom: 30px; }
.iptv-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.iptv-brand img { height: 56px; width: auto; border-radius: 12px; background: rgba(255, 255, 255, 0.92); padding: 4px; }
.iptv-brand span { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.18em; }
.iptv-brand span b { color: var(--accent); }
.hero-sub { margin-top: 18px; font-size: 0.95rem; color: var(--brand-soft); }
.hero-sub a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.hero-sub a:hover { border-color: #fff; }
.stat-panel { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px; padding: 26px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.stat strong { display: block; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.01em; }
.stat span { font-size: 0.88rem; color: #C4DED7; }
.price-callout { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 12px; background: rgba(242, 169, 59, 0.14); border: 1px solid rgba(242, 169, 59, 0.4); }
.price-callout small { display: block; color: var(--brand-soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.price-callout strong { font-size: 1.5rem; }
.price-callout strong em { font-style: normal; font-size: 0.9rem; font-weight: 600; color: #C4DED7; }
.price-callout a { color: var(--accent); font-weight: 800; text-decoration: none; white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 0 0 6px var(--brand-tint); }
.device-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Footer */
.site-footer { background: var(--brand-deep); color: #A9C4BD; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand img { height: 34px; border-radius: 6px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #A9C4BD; text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; }

/* Responsive */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .group { grid-template-columns: 1fr; gap: 20px; }
    .group-intro { position: static; display: flex; align-items: center; gap: 16px; }
    .group-intro .icon-box { margin-bottom: 0; }
    .group-num { display: none; }
    .game-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-3, .grid-4, .quick-links { grid-template-columns: repeat(2, 1fr); }
    .app-jump { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0, 32, 27, 0.08); }
    .nav.open { display: flex; }
    .nav a { padding: 12px; font-size: 1rem; }
    .nav .nav-cta { margin: 6px 0 0; text-align: center; }
    .cta-band .cta-inner { grid-template-columns: 1fr; padding: 30px; }
    .promo { grid-template-columns: auto 1fr; }
    .promo .text-link { grid-column: 1 / -1; }
    .contact-grid, .grid-2 { grid-template-columns: 1fr; }
    .custom-banner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .hero { padding: 44px 0 40px; }
    .section { padding: 52px 0; }
    .cta-band { padding-bottom: 52px; }
    .group-items, .game-grid { grid-template-columns: 1fr; }
    .hero-actions .btn-ghost[href^="#"] { display: none; }
    .service-tabs .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; }
    .service-tabs .label { display: none; }
    .service-tabs a { justify-content: center; padding: 9px 8px; font-size: 0.86rem; white-space: normal; text-align: center; line-height: 1.25; }
    .group-intro h2 { font-size: 1.3rem; }
    .card { padding: 20px; }
    .promo { padding: 22px; }
    .cta-band .cta-inner { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero.home { padding: 56px 0 48px; }
    .hero.home .lead { margin-bottom: 32px; }
    .hero.apps { padding: 48px 0 44px; }
    .hero.apps .lead { margin-bottom: 30px; }
    .quick-links { gap: 10px; }
    .quick-link { padding: 16px 14px; }
    .quick-link small, .quick-link .go { display: none; }
    .quick-link strong { font-size: 0.98rem; line-height: 1.3; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 22px; }
    .feature { padding: 24px; }
    .app-jump { gap: 8px; }
    .app-jump a { padding: 12px 6px; font-size: 0.8rem; }
    .app-jump img { width: 44px; height: 44px; }
    .app-card { padding: 22px; }
    .custom-banner { padding: 24px; }
    .hero.iptv { padding: 44px 0 44px; }
    .stat-panel { padding: 18px; }
    .stat strong { font-size: 1.3rem; }
    .price-callout { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
