/*
 * Fedisa TV — public marketing site & advertiser portal
 * Minimal, premium RTL layout
 */

:root {
    --pub-bg: #fafafa;
    --pub-surface: #ffffff;
    --pub-text: #282828;
    --pub-muted: #6b7280;
    --pub-border: #e5e7eb;
    --pub-primary: #689F50;
    --pub-accent: #689F50;
    --pub-accent-hover: #5a8a44;
    --pub-accent-soft: #eef5ea;
    --pub-accent-gradient: linear-gradient(135deg, #689F50 0%, #5a8a44 100%);
    --pub-dark: #282828;
    --pub-radius: 12px;
    --pub-radius-lg: 16px;
    --pub-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    --pub-shadow-lg: 0 24px 48px rgba(0, 0, 0, .08);
    --pub-max: 1120px;
    --pub-header-h: 80px;
    --pub-ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.pub {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: "IRANSansWeb", system-ui, sans-serif;
    background: var(--pub-bg);
    color: var(--pub-text);
    direction: rtl;
    line-height: 1.7;
}

body.pub #main-content {
    flex: 1 0 auto;
}

a { color: var(--pub-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.pub-container {
    width: min(100% - 32px, var(--pub-max));
    margin-inline: auto;
}

/* Header — glass floating bar */
.pub-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    pointer-events: none;
}

.pub-header > * { pointer-events: auto; }

.pub-header-shell {
    padding: 16px 20px 0;
    transition: padding .35s var(--pub-ease);
}

.pub-header.is-scrolled .pub-header-shell {
    padding-top: 10px;
}

.pub-header-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    max-width: var(--pub-max);
    margin: 0 auto;
    min-height: 56px;
    padding: 6px 8px 6px 14px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 20px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, .04),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    transition:
        min-height .35s var(--pub-ease),
        background .35s var(--pub-ease),
        border-color .35s,
        box-shadow .35s,
        border-radius .35s;
}

.pub-home .pub-header:not(.is-solid) .pub-header-bar {
    background: rgba(255, 255, 255, .58);
    border-color: rgba(255, 255, 255, .45);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .03);
}

.pub-header.is-scrolled .pub-header-bar {
    min-height: 50px;
    border-radius: 16px;
}

.pub-header.is-solid .pub-header-bar,
body:not(.pub-home) .pub-header .pub-header-bar {
    background: rgba(255, 255, 255, .94);
    border-color: rgba(104, 159, 80, .12);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, .06),
        0 0 0 1px rgba(104, 159, 80, .06);
}

.pub-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
    padding: 4px 6px;
    border-radius: 12px;
    transition: opacity .2s;
}

.pub-brand:hover {
    opacity: .85;
    text-decoration: none;
}

.pub-brand-mark {
    display: block;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    object-fit: contain;
}

.pub-header.is-scrolled .pub-brand-mark {
    width: 32px;
    height: 32px;
}

.pub-nav-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.pub-nav-desktop > a,
.pub-nav-desktop > .pub-nav-group {
    flex-shrink: 0;
}

.pub-nav-group {
    position: relative;
}

.pub-nav-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    color: var(--pub-muted);
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 12px;
    transition: color .2s, background .2s;
}

.pub-nav-group-btn:hover,
.pub-nav-group.is-open .pub-nav-group-btn {
    color: var(--pub-text);
    background: rgba(0, 0, 0, .04);
}

.pub-nav-group-btn.active,
.pub-nav-group.is-active > .pub-nav-group-btn {
    color: var(--pub-accent);
    background: var(--pub-accent-soft);
}

.pub-nav-chevron {
    flex-shrink: 0;
    opacity: .55;
    transition: transform .22s var(--pub-ease);
}

.pub-nav-group.is-open .pub-nav-chevron {
    transform: rotate(180deg);
    opacity: .85;
}

.pub-nav-submenu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    padding: 6px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s var(--pub-ease), transform .2s var(--pub-ease), visibility .2s;
    z-index: 400;
}

.pub-nav-subitem {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--pub-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s, background .2s;
}

.pub-nav-subitem:hover {
    color: var(--pub-text);
    background: rgba(0, 0, 0, .04);
    text-decoration: none;
}

.pub-nav-subitem.active {
    color: var(--pub-accent);
    background: var(--pub-accent-soft);
}

@media (min-width: 901px) {
    .pub-nav-desktop .pub-nav-group:hover .pub-nav-submenu,
    .pub-nav-desktop .pub-nav-group:focus-within .pub-nav-submenu,
    .pub-nav-desktop .pub-nav-group.is-open .pub-nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.pub-nav-desktop a {
    padding: 9px 12px;
    font-size: 13px;
}

.pub-nav a {
    position: relative;
    color: var(--pub-muted);
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 12px;
    transition: color .2s, background .2s;
}

.pub-nav a span {
    position: relative;
    z-index: 1;
}

.pub-nav a:hover {
    color: var(--pub-text);
    text-decoration: none;
    background: rgba(0, 0, 0, .04);
}

.pub-nav-desktop a.active {
    color: var(--pub-accent);
    background: var(--pub-accent-soft);
    text-decoration: none;
}

.pub-nav-desktop a.active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pub-accent);
}

.pub-header-end {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pub-header-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--pub-muted);
    padding: 9px 12px;
    text-decoration: none;
    border-radius: 12px;
    transition: color .2s, background .2s;
}

.pub-header-link:hover {
    color: var(--pub-text);
    background: rgba(0, 0, 0, .04);
    text-decoration: none;
}

.pub-btn-header {
    background: var(--pub-accent-gradient);
    color: #fff !important;
    border-radius: 12px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(104, 159, 80, .28);
}

.pub-btn-header:hover {
    background: var(--pub-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(104, 159, 80, .32);
}

.pub-btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pub-btn-icon {
    flex-shrink: 0;
    transform: scaleX(-1);
}

.pub-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--pub-border);
    background: var(--pub-surface);
    cursor: pointer;
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background .2s, border-color .2s, transform .2s;
}

.pub-menu-btn:hover {
    background: var(--pub-accent-soft);
    border-color: rgba(104, 159, 80, .25);
}

.pub-menu-line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--pub-text);
    border-radius: 2px;
    transition: transform .28s var(--pub-ease), opacity .2s, width .2s;
}

.pub-menu-line:nth-child(2) {
    width: 14px;
    margin-inline-start: 4px;
}

.pub-header.nav-open .pub-menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 18px;
    margin-inline-start: 0;
}

.pub-header.nav-open .pub-menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.pub-header.nav-open .pub-menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.pub-drawer {
    display: none;
}

.pub-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(40, 40, 40, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 280;
    opacity: 0;
    transition: opacity .3s var(--pub-ease);
    pointer-events: none;
}

.pub-header.nav-open .pub-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.pub-nav-backdrop[hidden] { display: block; }

body.pub-nav-locked {
    overflow: hidden;
}

body.pub-home main { padding-top: 0; }
body:not(.pub-home) main { padding-top: 0; }

/* Unified inner-page hero */
.pub-page-hero {
    padding: calc(var(--pub-header-h) + 36px) 0 44px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(104, 159, 80, .12), transparent 70%),
        var(--pub-bg);
    border-bottom: 1px solid var(--pub-border);
}

.pub-page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.pub-page-hero .lead {
    margin: 0 auto;
    max-width: 560px;
    font-size: clamp(15px, 2.5vw, 17px);
    color: var(--pub-muted);
    line-height: 1.75;
}

.pub-breadcrumbs {
    margin: 0 0 16px;
    text-align: center;
}

.pub-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 4px;
    font-size: 12px;
    color: var(--pub-muted);
}

.pub-breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-inline-start: 6px;
    color: var(--pub-border);
}

.pub-breadcrumbs a {
    color: var(--pub-muted);
    text-decoration: none;
}

.pub-breadcrumbs a:hover {
    color: var(--pub-accent);
}

.pub-breadcrumbs [aria-current="page"] {
    color: var(--pub-text);
    font-weight: 600;
}

.pub-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.pub-section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 4vw, 30px);
}

.pub-section-head p {
    margin: 0;
    color: var(--pub-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Form card */
.pub-form-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-lg);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--pub-shadow);
}

.pub-form-card-wide {
    max-width: 720px;
}

/* CTA band */
.pub-cta-band {
    padding: 48px 0;
    margin-top: 16px;
    background: var(--pub-dark);
    color: rgba(255, 255, 255, .75);
}

.pub-cta-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pub-cta-band h2 {
    margin: 0 0 8px;
    font-size: clamp(20px, 3.5vw, 26px);
    color: #fff;
    font-weight: 800;
}

.pub-cta-band p {
    margin: 0;
    font-size: 15px;
    max-width: 480px;
}

.pub-cta-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pub-btn-on-dark {
    border-color: rgba(255, 255, 255, .25) !important;
    color: #fff !important;
    background: transparent !important;
}

.pub-btn-on-dark:hover {
    background: rgba(255, 255, 255, .08) !important;
    box-shadow: none;
    transform: none;
}

.pub-page-messages {
    padding-top: calc(var(--pub-header-h) + 12px);
}

body.pub-home .pub-page-messages {
    padding-top: 16px;
}

/* Buttons */
.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .15s, box-shadow .15s;
}

.pub-btn-primary,
.pub-btn-dark {
    background: var(--pub-primary);
    color: #fff !important;
}

.pub-btn-primary:hover,
.pub-btn-dark:hover {
    background: var(--pub-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(104, 159, 80, .25);
}

.pub-btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 999px;
}

.pub-btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 999px;
}

.pub-btn-light {
    background: var(--pub-accent-soft);
    color: var(--pub-text) !important;
    border: 1px solid var(--pub-border);
}

.pub-btn-outline {
    background: transparent;
    color: var(--pub-text) !important;
    border: 1px solid var(--pub-border);
}

.pub-btn-outline:hover { background: var(--pub-surface); }

/* Hero — full viewport home */
.pub-hero {
    padding: 48px 0 32px;
    text-align: center;
}

.pub-hero-main {
    position: relative;
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--pub-header-h) + 32px) 20px 88px;
    overflow: hidden;
    text-align: center;
}

.pub-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--pub-bg);
}

.pub-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.pub-hero-orb--1 {
    width: min(520px, 90vw);
    height: min(520px, 90vw);
    top: -18%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(104, 159, 80, .14);
}

.pub-hero-orb--2 {
    width: min(360px, 70vw);
    height: min(360px, 70vw);
    bottom: 8%;
    right: -8%;
    background: rgba(104, 159, 80, .07);
}

.pub-hero-grid {
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image:
        linear-gradient(rgba(40, 40, 40, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 40, 40, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.pub-hero-wrap {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.pub-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.pub-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 36px;
    padding: 8px 16px 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pub-muted);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    backdrop-filter: blur(8px);
}

.pub-hero-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pub-accent);
    box-shadow: 0 0 0 3px rgba(104, 159, 80, .18);
    flex-shrink: 0;
}

.pub-hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55em;
    margin: 0 0 36px;
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--pub-text);
    max-width: none;
    width: 100%;
}

.pub-hero-title-line {
    display: block;
}

.pub-hero-title-accent {
    color: var(--pub-accent);
    font-weight: 700;
}

.pub-hero-desc {
    margin: 0 auto 44px;
    font-size: clamp(16px, 2.2vw, 18px);
    font-weight: 400;
    line-height: 1.85;
    color: var(--pub-muted);
    max-width: 40ch;
}

.pub-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pub-hero-actions .pub-btn-outline {
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(8px);
}

.pub-hero-actions .pub-btn-outline:hover {
    background: #fff;
    border-color: rgba(104, 159, 80, .25);
}

.pub-hero-stats {
    list-style: none;
    margin: 0;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: min(100%, 420px);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 20px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, .04),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px);
}

.pub-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 14px 10px;
    border-radius: 14px;
    transition: background .2s;
}

.pub-hero-stat:hover {
    background: rgba(104, 159, 80, .06);
}

.pub-hero-stat .num {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--pub-text);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.pub-hero-stat .lbl {
    font-size: 11px;
    font-weight: 500;
    color: var(--pub-muted);
}

.pub-hero-stat-divider {
    display: none;
}

.pub-hero-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--pub-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--pub-border);
    padding-bottom: 2px;
    transition: color .2s, border-color .2s;
}

.pub-hero-link:hover {
    color: var(--pub-text);
    border-color: var(--pub-text);
    text-decoration: none;
}

.pub-hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 28px;
    height: 44px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
    opacity: .35;
    transition: opacity .2s;
}

.pub-hero-scroll:hover { opacity: .65; text-decoration: none; }

.pub-hero-scroll span {
    display: block;
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, var(--pub-muted), transparent);
    animation: pub-scroll-hint 2.4s ease-in-out infinite;
}

@keyframes pub-scroll-hint {
    0%, 100% { opacity: .25; transform: scaleY(.5); transform-origin: top; }
    50% { opacity: .9; transform: scaleY(1); }
}

.pub-hero-compact {
    min-height: auto;
    padding: calc(var(--pub-header-h) + 32px) 0 40px;
}

.pub-hero-compact .pub-hero-bg { display: none; }

.pub-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--pub-muted);
    margin-bottom: 12px;
}

.pub-hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -.03em;
}

.pub-hero p.lead,
.pub-hero > .pub-container > p:not(.pub-hero-desc) {
    font-size: 16px;
    color: var(--pub-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* Stats (inner pages) */
.pub-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 48px 0;
}

.pub-stat {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 24px;
    text-align: center;
}

.pub-stat strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--pub-text);
}

.pub-stat span { font-size: 13px; color: var(--pub-muted); }

/* Sections */
.pub-section { padding: clamp(48px, 8vw, 72px) 0; content-visibility: auto; contain-intrinsic-size: auto 400px; }
.pub-section-sm { padding: clamp(32px, 5vw, 48px) 0; }
.pub-section-alt { background: var(--pub-surface); border-block: 1px solid var(--pub-border); }

.pub-section h2 {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    margin: 0 0 12px;
    text-align: center;
}

.pub-section > .pub-container > p.lead {
    text-align: center;
    color: var(--pub-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 15px;
    line-height: 1.7;
}

/* Cards grid */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pub-card {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-lg);
    padding: clamp(22px, 3vw, 28px);
    transition: box-shadow .25s var(--pub-ease), transform .25s var(--pub-ease), border-color .25s;
    height: 100%;
}

.pub-card:hover {
    box-shadow: var(--pub-shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(104, 159, 80, .25);
}

.pub-card h3 { margin: 0 0 8px; font-size: 18px; }
.pub-card p { margin: 0; color: var(--pub-muted); font-size: 14px; }

.pub-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--pub-accent-soft);
    color: var(--pub-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

/* Pricing */
.pub-price-card {
    text-align: center;
    position: relative;
}

.pub-price-card.featured {
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 1px var(--pub-accent);
}

.pub-price-card .badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pub-accent);
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
}

.pub-price-card .price {
    font-size: 36px;
    font-weight: 800;
    margin: 16px 0;
}

.pub-price-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: right;
}

.pub-price-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--pub-border);
    font-size: 14px;
    color: var(--pub-muted);
}

.pub-price-card li::before {
    content: "✓";
    color: var(--pub-accent);
    margin-left: 8px;
}

.pub-pricing-grid {
    align-items: stretch;
}

.pub-price-desc {
    color: var(--pub-muted);
    font-size: 14px;
    min-height: 42px;
}

.pub-price-daily,
.pub-price-meta {
    font-size: 13px;
    color: var(--pub-muted);
    margin: 0 0 8px;
}

.pub-price-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pub-price-features li i {
    color: var(--pub-accent);
    margin-top: 3px;
}

.pub-price-features li::before {
    content: none;
}

.pub-pricing-note {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--pub-border);
}

.pub-empty-state {
    text-align: center;
    grid-column: 1 / -1;
    color: var(--pub-muted);
}

/* Forms */
.pub-form {
    max-width: 520px;
    margin: 0 auto;
}

.pub-field { margin-bottom: 16px; }
.pub-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.pub-field input,
.pub-field textarea,
.pub-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--pub-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: var(--pub-bg);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.pub-field input:focus,
.pub-field textarea:focus,
.pub-field select:focus {
    outline: none;
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 3px var(--pub-accent-soft);
    background: var(--pub-surface);
}

.pub-field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #b91c1c;
}

.pub-form-actions {
    margin-top: 8px;
}

.pub-form-actions .pub-btn {
    width: 100%;
}

/* Map */
.pub-map-wrap {
    height: clamp(320px, 55vh, 520px);
    border-radius: var(--pub-radius-lg);
    overflow: hidden;
    border: 1px solid var(--pub-border);
    margin-top: 24px;
    background: #e8eef4;
    box-shadow: var(--pub-shadow);
}

.pub-map-offline.leaflet-container {
    background:
        linear-gradient(rgba(104, 159, 80, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 159, 80, .06) 1px, transparent 1px),
        linear-gradient(180deg, var(--pub-accent-soft) 0%, #eef3f8 100%);
    background-size: 32px 32px, 32px 32px, auto;
}

.pub-map-offline .leaflet-tile-pane {
    display: none;
}

.pub-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pub-map-toolbar p {
    margin: 0;
    color: var(--pub-muted);
    font-size: 14px;
}

.pub-map-empty {
    margin: 0 0 8px;
    padding: 12px 16px;
    border-radius: var(--pub-radius);
    background: var(--pub-accent-soft);
    color: var(--pub-muted);
    font-size: 14px;
    border: 1px solid rgba(104, 159, 80, .2);
}

/* API docs */
.pub-api-block {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--pub-radius);
    padding: 20px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    margin: 12px 0;
}

.pub-api-endpoint {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 20px;
    margin-bottom: 16px;
}

.pub-api-endpoint h4 { margin: 0 0 8px; }
.pub-method {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}
.pub-method.post { background: #dcfce7; color: #166534; }
.pub-method.get { background: #dbeafe; color: #1e40af; }

/* FAQ */
.pub-faq {
    max-width: 720px;
    margin: 0 auto;
}

.pub-faq details {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 0;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.pub-faq details[open] {
    border-color: rgba(104, 159, 80, .35);
    box-shadow: var(--pub-shadow);
}

.pub-faq summary {
    font-weight: 600;
    cursor: pointer;
    padding: 18px 20px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
    user-select: none;
}

.pub-faq summary::-webkit-details-marker { display: none; }

.pub-faq summary::after {
    content: "+";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pub-accent-soft);
    color: var(--pub-accent);
    font-size: 18px;
    font-weight: 400;
    transition: transform .2s, background .2s;
}

.pub-faq details[open] summary::after {
    content: "−";
    background: var(--pub-accent);
    color: #fff;
}

.pub-faq details p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--pub-muted);
    font-size: 14px;
    line-height: 1.8;
    border-top: 1px solid var(--pub-border);
    padding-top: 16px;
}

/* Footer — minimal, light, responsive */
.pub-footer {
    margin-top: auto;
    background: var(--pub-surface);
    border-top: 1px solid var(--pub-border);
    color: var(--pub-muted);
    padding: clamp(36px, 6vw, 56px) 0 clamp(20px, 3vw, 28px);
}

.pub-footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr);
    gap: clamp(28px, 5vw, 48px);
    align-items: start;
    padding-bottom: clamp(24px, 4vw, 32px);
}

.pub-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
}

.pub-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pub-text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
    transition: opacity .2s;
}

.pub-footer-logo:hover {
    opacity: .82;
    text-decoration: none;
}

.pub-footer-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.pub-footer-tagline {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--pub-muted);
}

.pub-footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--pub-border);
    background: var(--pub-bg);
    color: var(--pub-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, background .2s, color .2s;
}

.pub-footer-phone:hover {
    border-color: rgba(104, 159, 80, .35);
    background: var(--pub-accent-soft);
    color: var(--pub-accent);
    text-decoration: none;
}

.pub-footer-phone i {
    font-size: 12px;
    color: var(--pub-accent);
}

.pub-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 32px);
}

.pub-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pub-footer-label {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pub-text);
    opacity: .72;
}

.pub-footer-col a {
    display: inline-block;
    color: var(--pub-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s, transform .2s;
}

.pub-footer-col a:hover {
    color: var(--pub-accent);
    text-decoration: none;
    transform: translateX(-2px);
}

.pub-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: clamp(18px, 3vw, 24px);
    border-top: 1px solid var(--pub-border);
}

.pub-footer-copy {
    margin: 0;
    font-size: 13px;
    color: var(--pub-muted);
}

.pub-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pub-footer-actions a {
    font-size: 13px;
    font-weight: 600;
    color: var(--pub-muted);
    text-decoration: none;
    transition: color .2s;
}

.pub-footer-actions a:hover {
    color: var(--pub-accent);
    text-decoration: none;
}

.pub-footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--pub-border);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .pub-footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pub-footer-brand {
        max-width: none;
        text-align: center;
        align-items: center;
    }

    .pub-footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .pub-footer-nav {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pub-footer-col {
        padding-bottom: 4px;
        border-bottom: 1px solid var(--pub-border);
    }

    .pub-footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .pub-footer-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Prose & helpers */
.pub-prose { max-width: 720px; margin: 0 auto; }
.pub-prose h2 { font-size: 22px; margin: 32px 0 12px; }
.pub-prose p { color: var(--pub-muted); margin: 0 0 16px; }

.pub-check-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.pub-check-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--pub-border);
    font-size: 15px;
}

.pub-check-list li::before {
    content: "✓";
    color: var(--pub-accent);
    font-weight: 700;
    margin-left: 10px;
}

.pub-cta-text {
    text-align: center;
    margin-top: 28px;
    font-size: 15px;
}

.pub-highlight-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-lg);
    padding: 28px;
    max-width: 800px;
    margin: 0 auto;
}

.pub-highlight-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--pub-accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.pub-highlight-box h3 { margin: 0 0 8px; }
.pub-highlight-box p { color: var(--pub-muted); margin: 0 0 12px; font-size: 14px; }

/* App download page — centered responsive stack */
.pub-app-page {
    padding: clamp(28px, 5vw, 48px) 0 clamp(56px, 8vw, 88px);
}

.pub-app-page .pub-container {
    display: flex;
    justify-content: center;
}

.pub-app-stack {
    width: min(100%, 640px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(16px, 3vw, 24px);
}

.pub-app-card {
    width: 100%;
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-lg);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--pub-shadow-lg);
    text-align: center;
}

.pub-app-download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: none;
    margin: 0;
}

.pub-app-download-icon {
    width: clamp(64px, 12vw, 80px);
    height: clamp(64px, 12vw, 80px);
    border-radius: 20px;
    background: var(--pub-accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(28px, 6vw, 40px);
    flex-shrink: 0;
    margin-inline: auto;
    box-shadow: 0 12px 32px rgba(104, 159, 80, .28);
}

.pub-app-download-body {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

.pub-app-download-body h2,
.pub-app-empty h2 {
    margin: 0 0 10px;
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 800;
}

.pub-app-download-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.pub-app-badge,
.pub-app-size {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--pub-accent-soft);
    color: var(--pub-accent);
}

.pub-app-notes {
    color: var(--pub-muted);
    margin: 0 auto 20px;
    line-height: 1.75;
    font-size: clamp(14px, 2.5vw, 15px);
    max-width: 36em;
}

.pub-app-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: min(100%, 220px);
    margin-inline: auto;
}

.pub-app-short-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pub-app-short-label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pub-muted);
}

.pub-app-short-url {
    margin: 0 0 18px;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--pub-accent);
    direction: ltr;
    unicode-bidi: isolate;
    word-break: break-all;
}

.pub-app-short-qr {
    display: block;
    margin: 0 auto 14px;
    border-radius: 14px;
    border: 1px solid var(--pub-border);
    background: #fff;
    padding: 10px;
    max-width: 100%;
    height: auto;
}

.pub-app-short-hint {
    margin: 0;
    font-size: 13px;
    color: var(--pub-muted);
    line-height: 1.65;
    max-width: 28em;
}

.pub-app-install-steps {
    text-align: right;
}

.pub-app-install-steps h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.pub-app-install-steps ol {
    margin: 0 0 16px;
    padding-right: 1.25rem;
    color: var(--pub-muted);
    line-height: 1.85;
    font-size: clamp(14px, 2.5vw, 15px);
}

.pub-app-install-steps li + li {
    margin-top: 6px;
}

.pub-app-help {
    margin: 0;
    font-size: 14px;
    color: var(--pub-muted);
    text-align: center;
}

.pub-app-empty .pub-app-notes {
    margin-bottom: 24px;
}

body.pub-page-app .pub-page-hero {
    padding-bottom: clamp(24px, 4vw, 36px);
}

body.pub-page-app .pub-page-hero .lead {
    max-width: 42rem;
}

@media (max-width: 600px) {
    .pub-app-card {
        padding: 20px 18px;
        border-radius: var(--pub-radius);
    }

    .pub-app-install-steps ol {
        padding-right: 1rem;
    }

    .pub-app-download-btn {
        width: 100%;
    }
}

.pub-channel-tags {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pub-channel-tags li {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--pub-accent-soft);
    color: var(--pub-accent);
    border: 1px solid rgba(104, 159, 80, .2);
}

.pub-partner-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-lg);
    padding: 36px;
    box-shadow: var(--pub-shadow-lg);
}

.pub-partner-card h2 { margin: 0 0 12px; font-size: 24px; text-align: right; }
.pub-partner-content p { color: var(--pub-muted); margin: 0; line-height: 1.8; }

.pub-partner-orbit {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--pub-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-center {
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    color: var(--pub-accent);
    line-height: 1.3;
}

.orbit-item {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pub-accent);
    font-size: 14px;
    box-shadow: var(--pub-shadow);
}

.orbit-item:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-item:nth-child(2) { bottom: 8px; right: 0; }
.orbit-item:nth-child(3) { bottom: 8px; left: 0; }

.pub-partner-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-lg);
}

.pub-partner-strip h2 { margin: 8px 0; font-size: 22px; }
.pub-partner-strip p { margin: 0; color: var(--pub-muted); max-width: 520px; }

.pub-card-feature .icon {
    background: linear-gradient(135deg, var(--pub-accent-soft), #f0f7ec);
}

.pub-grid-help {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pub-grid-venues {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pub-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.pub-cta-row-start {
    justify-content: flex-start;
    margin-top: 20px;
}

.pub-cta-text a {
    font-weight: 600;
    text-decoration: none;
}

.pub-cta-text a:hover {
    text-decoration: underline;
}

.pub-cta-text a:hover {
    text-decoration: underline;
}

.pub-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.pub-info-card {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 20px;
    text-align: center;
}

.pub-info-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.pub-info-card p {
    margin: 0;
    color: var(--pub-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Alerts */
.pub-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}
.pub-alert-success { background: #dcfce7; color: #166534; }
.pub-alert-error { background: #fee2e2; color: #991b1b; }

/* Advertiser shell */
.adv-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - var(--pub-header-h) - 16px);
    margin-top: calc(var(--pub-header-h) + 16px);
}

.adv-sidebar-brand {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
    text-decoration: none;
}

.adv-sidebar {
    background: var(--pub-primary);
    color: #cbd5e1;
    padding: 24px 16px;
}

.adv-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 4px;
}

.adv-sidebar a:hover,
.adv-sidebar a.active {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.adv-main { padding: 24px; min-width: 0; }
.adv-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.adv-topbar h1 { margin: 0; font-size: 22px; }

.adv-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.adv-metric {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 20px;
}

.adv-metric strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
}

.adv-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--pub-surface);
    border-radius: var(--pub-radius);
    overflow: hidden;
    border: 1px solid var(--pub-border);
}

.adv-table th,
.adv-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid var(--pub-border);
    font-size: 14px;
}

.adv-table th {
    background: var(--pub-bg);
    font-weight: 600;
    color: var(--pub-muted);
}

@media (max-width: 1050px) and (min-width: 901px) {
    .pub-nav-desktop a {
        padding: 8px 10px;
        font-size: 12px;
    }

    .pub-btn-header-cta {
        padding: 8px 12px;
        font-size: 12px;
    }

    .pub-btn-header-cta .pub-btn-icon {
        display: none;
    }
}

@media (max-width: 900px) {
    .pub-header-shell {
        padding: 12px 16px 0;
    }

    .pub-header-bar {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 6px 8px 6px 12px;
        border-radius: 16px;
    }

    .pub-nav-desktop { display: none; }

    .pub-header-link-login,
    .pub-btn-header-cta {
        display: none;
    }

    .pub-menu-btn { display: flex; }

    .pub-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 90vw);
        max-width: 100%;
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--pub-border);
        box-shadow: -16px 0 48px rgba(0, 0, 0, .12);
        z-index: 290;
        padding: 0;
        transform: translateX(100%);
        visibility: hidden;
        transition:
            transform .32s var(--pub-ease),
            visibility .32s;
        overflow: hidden;
    }

    .pub-header.nav-open .pub-drawer {
        transform: translateX(0);
        visibility: visible;
    }

    .pub-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 20px 20px 16px;
        border-bottom: 1px solid var(--pub-border);
    }

    .pub-brand-drawer .pub-brand-mark {
        height: 28px;
    }

    .pub-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--pub-border);
        border-radius: 12px;
        background: var(--pub-bg);
        color: var(--pub-text);
        cursor: pointer;
        transition: background .2s, border-color .2s;
    }

    .pub-drawer-close:hover {
        background: var(--pub-accent-soft);
        border-color: rgba(104, 159, 80, .25);
    }

    .pub-nav-mobile {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 12px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pub-nav-mobile > a {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 14px;
        color: var(--pub-text);
    }

    .pub-nav-mobile > a:hover {
        background: rgba(0, 0, 0, .04);
    }

    .pub-nav-mobile > a.active {
        color: var(--pub-accent);
        background: var(--pub-accent-soft);
        box-shadow: inset 3px 0 0 var(--pub-accent);
    }

    .pub-nav-mobile .pub-nav-group {
        border-radius: 14px;
        overflow: hidden;
    }

    .pub-nav-mobile .pub-nav-group-btn {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 14px;
        text-align: right;
    }

    .pub-nav-mobile .pub-nav-group-btn.active,
    .pub-nav-mobile .pub-nav-group.is-active > .pub-nav-group-btn {
        color: var(--pub-accent);
        background: var(--pub-accent-soft);
    }

    .pub-nav-mobile .pub-nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 6px;
        min-width: 0;
        display: none;
    }

    .pub-nav-mobile .pub-nav-group.is-open .pub-nav-submenu {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .pub-nav-mobile .pub-nav-subitem {
        padding: 12px 16px 12px 28px;
        font-size: 14px;
        border-radius: 12px;
    }

    .pub-nav-mobile .pub-nav-subitem.active {
        box-shadow: inset 3px 0 0 var(--pub-accent);
    }

    .pub-drawer-foot {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--pub-border);
        background: var(--pub-bg);
    }

    .pub-drawer-btn {
        width: 100%;
        justify-content: center;
    }

    .pub-hero-wrap {
        gap: 32px;
        width: min(100% - 24px, 680px);
    }

    .pub-hero-stats {
        width: 100%;
        max-width: 360px;
    }

    .pub-hero-stat { padding: 12px 6px; }
    .pub-hero-stat .num { font-size: 17px; }

    .pub-partner-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pub-partner-visual { display: flex; justify-content: center; }
    .pub-partner-content .pub-hero-actions { justify-content: center !important; }

    .pub-highlight-box { flex-direction: column; }

    .pub-cta-band-inner {
        flex-direction: column;
        text-align: center;
    }

    .pub-cta-band-actions {
        width: 100%;
        justify-content: center;
    }

    .pub-cta-band-actions .pub-btn {
        flex: 1;
        min-width: 140px;
    }

    .adv-shell { grid-template-columns: 1fr; }
    .adv-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .pub-container {
        width: min(100% - 24px, var(--pub-max));
    }

    .pub-page-hero {
        padding: calc(var(--pub-header-h) + 24px) 0 32px;
    }

    .pub-hero-main {
        padding: calc(var(--pub-header-h) + 24px) 16px 72px;
        min-height: auto;
        min-height: calc(100dvh - 0px);
    }

    .pub-hero-title {
        max-width: none;
        font-size: clamp(1.85rem, 7.5vw, 2.35rem);
        gap: 0.45em;
        margin-bottom: 28px;
    }

    .pub-hero-label {
        margin-bottom: 28px;
        font-size: 12px;
    }

    .pub-hero-desc {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 36px;
        max-width: 34ch;
    }

    .pub-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .pub-hero-actions .pub-btn {
        width: 100%;
        max-width: 300px;
    }

    .pub-hero-stats {
        grid-template-columns: repeat(3, 1fr);
        border-radius: 16px;
    }

    .pub-hero-stat .lbl { font-size: 10px; }

    .pub-hero-scroll { display: none; }

    .pub-partner-strip {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .pub-stats { grid-template-columns: 1fr; }

    .pub-grid {
        grid-template-columns: 1fr;
    }

    .pub-price-card .price {
        font-size: 30px;
    }

    .pub-form-card {
        padding: 20px;
    }

    .pub-hero-stat-divider:nth-child(4) {
        display: none;
    }
}
