* {
    box-sizing: border-box;
}

:root {
    --pub-bg: #080f12;
    --pub-bg-alt: #0f1a20;
    --pub-card: #101b21;
    --pub-text: #eaf3f7;
    --pub-muted: #9cb2bc;
    --pub-accent: #34d058;
    --pub-accent-dark: #26aa47;
    --pub-border: rgba(148, 178, 190, 0.2);
}

body.public-body {
    margin: 0;
    background: radial-gradient(circle at 10% 0%, rgba(52, 208, 88, 0.12), transparent 45%), var(--pub-bg);
    color: var(--pub-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.public-container {
    width: min(1180px, calc(100% - 2.2rem));
    margin: 0 auto;
}

.public-topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 15, 18, 0.92);
    border-bottom: 1px solid var(--pub-border);
    backdrop-filter: blur(8px);
}

.public-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 86px;
}

.public-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.public-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--pub-accent);
    background: #0f1b22;
}

.public-logo-title {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.public-logo-sub {
    color: var(--pub-muted);
    font-size: 12px;
}

.public-nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.public-nav-link {
    padding: 10px 12px;
    border-radius: 8px;
    color: #dbe7ec;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.public-nav-link:hover,
.public-nav-link.active {
    color: var(--pub-accent);
    border-bottom-color: var(--pub-accent);
}

.public-main {
    padding: 2.2rem 0 3.4rem;
}

.hero {
    border: 1px solid var(--pub-border);
    border-radius: 18px;
    overflow: hidden;
    min-height: 520px;
    background:
        linear-gradient(to bottom, rgba(4, 9, 11, 0.42), rgba(4, 9, 11, 0.72)),
        radial-gradient(circle at 20% 15%, rgba(65, 255, 115, 0.2), transparent 32%),
        radial-gradient(circle at 80% 85%, rgba(65, 255, 115, 0.15), transparent 30%),
        #071118;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 3rem 1.2rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.3rem, 7vw, 5rem);
    line-height: 1.08;
    text-transform: uppercase;
}

.hero p {
    margin: 1.2rem auto 0;
    max-width: 680px;
    color: #d4e2e9;
    font-size: clamp(1rem, 2.3vw, 1.25rem);
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 30px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.pub-btn-primary {
    margin-top: 1.6rem;
    background: var(--pub-accent);
    color: #06200e;
    box-shadow: 0 10px 24px rgba(52, 208, 88, 0.26);
}

.pub-btn-primary:hover {
    transform: translateY(-1px);
    background: var(--pub-accent-dark);
}

.rural-connect-section {
    margin-top: 1.8rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--pub-border);
    background: #081217;
}

.rural-connect-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    padding: 1.3rem;
    background-size: cover;
    background-position: center;
}

.rural-connect-left h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.8vw, 3.2rem);
    line-height: 1.05;
}

.rural-connect-left p {
    max-width: 560px;
    margin-top: 0.9rem;
    color: #e0edf3;
}

.rural-stats {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rural-stat-item strong {
    display: block;
    color: #35e46b;
    font-size: clamp(1.4rem, 3vw, 2.3rem);
    line-height: 1;
}

.rural-stat-item span {
    color: #dae8ee;
    font-size: 0.95rem;
}

.rural-connect-right {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--pub-border);
    align-self: stretch;
}

.rural-connect-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rural-connect-bottom {
    background: #050608;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    padding: 1.3rem;
}

.rural-connect-info h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.rural-connect-info p {
    color: #e2edf1;
    margin: 0 0 0.85rem;
}

.rural-connect-map {
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    overflow: hidden;
    min-height: 260px;
}

.rural-connect-map iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
}

.public-section {
    margin-top: 2rem;
    background: var(--pub-card);
    border: 1px solid var(--pub-border);
    border-radius: 16px;
    padding: 1.4rem;
}

.public-section h2 {
    margin: 0 0 0.9rem;
    font-size: 1.6rem;
}

.public-section p,
.public-section li,
.public-section dd,
.public-section dt {
    color: #d9e7ed;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    padding: 1rem;
    background: #0a1419;
}

.service-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--pub-border);
    margin-bottom: 10px;
}

.service-speed {
    margin: 0 0 4px;
    color: #9ddcb1;
    font-weight: 600;
}

.service-price {
    color: var(--pub-accent);
    font-size: 1.4rem;
    font-weight: 800;
}

.faq-item {
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    background: #0b151b;
}

.faq-item summary {
    cursor: pointer;
    padding: 0.95rem 1rem;
    font-weight: 600;
}

.faq-item p {
    margin: 0;
    padding: 0 1rem 1rem;
}

.inquiry-wrap {
    margin-top: 1.3rem;
    background: #e7edf1;
    color: #13202a;
    border-radius: 20px;
    padding: 1.1rem;
}

.inquiry-wrap h3 {
    margin: 0 0 1rem;
    color: #0b1822;
    text-align: center;
}

.inquiry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.inquiry-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #13202a;
}

.inquiry-field input,
.inquiry-field textarea {
    width: 100%;
    border: 1px solid #b8c4cd;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    background: #f3f7fa;
    color: #0f1f2a;
}

.plan-list {
    display: grid;
    gap: 0.5rem;
}

.plan-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.plan-item input[type="radio"] {
    margin-top: 3px;
}

.promo-note {
    font-weight: 600;
    color: #0f1f2a;
    font-size: 0.95rem;
}

.alert-public {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.alert-public.success {
    background: rgba(52, 208, 88, 0.18);
    border: 1px solid rgba(52, 208, 88, 0.4);
    color: #c7ffd7;
}

.alert-public.error {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ffd1d1;
}

.public-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--pub-border);
    padding: 1.1rem 0 1.8rem;
    color: var(--pub-muted);
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .rural-connect-top,
    .rural-connect-bottom {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 820px) {
    .public-nav-inner {
        min-height: auto;
        padding: 1rem 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .public-nav-links {
        justify-content: flex-start;
    }

    .hero {
        min-height: 430px;
    }
}
