:root {
    --bg: #070d1a;
    --bg-soft: #0f172a;
    --surface: rgba(14, 25, 47, 0.92);
    --surface-2: rgba(11, 20, 38, 0.94);
    --surface-light: #f5f8ff;
    --text: #e7eefc;
    --text-dark: #142033;
    --muted: #a9bbdf;
    --line: rgba(132, 154, 206, 0.28);
    --brand: #3b82f6;
    --brand-2: #22d3ee;
    --ok: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 24px 60px rgba(3, 8, 20, 0.5);
    --content-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 10% -8%, rgba(56, 189, 248, 0.16), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.18), transparent 36%),
        linear-gradient(180deg, #070d1a 0%, #0a1428 44%, #0c1b34 100%);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

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

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 30;
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
}

.container {
    width: min(var(--content-width), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 13, 26, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.nav-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 1.5rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: clamp(180px, 23vw, 300px);
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(59, 130, 246, 0.25));
}

.brand-title {
    font-size: clamp(1.6rem, 2.3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ecf4ff;
}

.menu-toggle {
    display: none;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(14, 25, 47, 0.86);
    color: #dce8ff;
    font: inherit;
    font-weight: 500;
    padding: 0.45rem 0.8rem;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.3rem;
}

.site-nav a {
    color: #bfd2f8;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-nav .nav-request {
    padding: 0.68rem 1.08rem;
    border: 1px solid rgba(86, 153, 255, 0.55);
    border-radius: 999px;
    color: #eff6ff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(34, 211, 238, 0.28));
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #ffffff;
}

.site-nav .nav-request:hover {
    border-color: rgba(147, 197, 253, 0.8);
}

.hero,
.page-header {
    padding: 2.3rem 0 0;
}

.hero-panel,
.content-card,
.service-card,
.quote-card,
.contact-card,
.product-card,
.info-card,
.status-card,
.post-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 18px;
}

.hero-panel {
    display: block;
    padding: 3rem 2.4rem;
    text-align: center;
    background:
        radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.24), transparent 25%),
        radial-gradient(circle at 90% 14%, rgba(59, 130, 246, 0.3), transparent 29%),
        linear-gradient(145deg, rgba(17, 33, 64, 0.95) 0%, rgba(10, 22, 42, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(152, 197, 255, 0.18);
    border-radius: 14px;
    pointer-events: none;
}

.hero h1,
.page-header h1,
.section-heading h2,
.quote-card blockquote,
.post-card h1,
.hero-subhead {
    margin: 0;
    color: #f7fbff;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.3vw, 4.2rem);
    line-height: 1.14;
}

.hero p,
.page-header p,
.lede,
.muted {
    color: var(--muted);
}

.hero-subhead {
    margin-top: 1rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 400;
    color: #dbeafe;
}

.hero p {
    max-width: 56rem;
    margin: 1rem auto 0;
    font-size: 1.03rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.button,
.button-secondary,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-weight: 600;
}

.button,
button.button {
    background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    color: #eff8ff;
    box-shadow: 0 12px 24px rgba(34, 211, 238, 0.2);
}

.button:hover,
button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(34, 211, 238, 0.25);
}

.button-secondary {
    background: rgba(14, 25, 47, 0.88);
    color: #dbeafe;
    border-color: rgba(132, 154, 206, 0.5);
}

.button,
.button-secondary,
button.button,
.service-card,
.content-card,
.quote-card,
.product-card,
.info-card,
.contact-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.section {
    padding: 3rem 0;
}

.section-heading {
    margin-bottom: 1.4rem;
    text-align: center;
}

.section-heading h2,
.page-header h1,
.post-card h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading p,
.page-header p {
    max-width: 50rem;
    margin: 0.8rem auto 0;
}

.grid-3,
.grid-2,
.services-grid,
.shop-grid,
.info-grid,
.contact-grid,
.content-grid,
.product-layout,
.archive-grid,
.trust-grid,
.metrics-grid {
    display: grid;
    gap: 1.2rem;
}

.grid-3,
.services-grid,
.shop-grid,
.archive-grid,
.trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.contact-grid,
.content-grid,
.product-layout,
.metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.content-card,
.quote-card,
.contact-card,
.product-card,
.info-card,
.status-card,
.post-card {
    padding: 1.6rem;
}

.service-card:hover,
.content-card:hover,
.quote-card:hover,
.product-card:hover,
.info-card:hover,
.contact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(147, 197, 253, 0.6);
    box-shadow: 0 28px 46px rgba(3, 10, 24, 0.65);
}

.service-card h3,
.content-card h3,
.product-card h3,
.contact-card h3,
.info-card h3,
.trust-card h3,
.metric-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.22rem;
    color: #f1f7ff;
}

.service-card ul,
.content-card ul,
.product-card ul,
.info-card ul,
.footer-links,
.post-meta-list,
.service-list {
    margin: 0;
    padding-left: 1.2rem;
}

.service-list li,
.content-card li,
.product-card li,
.info-card li,
.footer-links li,
.post-meta-list li {
    margin-bottom: 0.65rem;
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.45rem;
    border-radius: 9px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(125, 211, 252, 0.4);
}

.service-nav-wrap {
    display: grid;
    gap: 1rem;
}

.service-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.service-nav-btn {
    appearance: none;
    border: 1px solid rgba(132, 154, 206, 0.4);
    border-radius: 999px;
    background: rgba(11, 20, 38, 0.75);
    color: #c9daf7;
    padding: 0.58rem 0.95rem;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.service-nav-btn:hover,
.service-nav-btn.is-active {
    border-color: rgba(147, 197, 253, 0.75);
    color: #f8fcff;
    background: rgba(37, 99, 235, 0.28);
}

.service-panel {
    display: none;
    gap: 0.75rem;
}

.service-panel.is-active {
    display: grid;
}

.service-dropdown {
    border: 1px solid rgba(132, 154, 206, 0.38);
    border-radius: 14px;
    background: rgba(11, 20, 38, 0.86);
    overflow: hidden;
}

.service-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 1rem;
    font-weight: 700;
    color: #f1f7ff;
    border-bottom: 1px solid transparent;
}

.service-dropdown[open] summary {
    border-bottom-color: rgba(132, 154, 206, 0.28);
}

.service-dropdown summary::-webkit-details-marker {
    display: none;
}

.service-detail-body {
    padding: 0.85rem 1rem 1rem;
}

.service-detail-body p {
    margin-top: 0;
}

.service-detail-body ul {
    margin: 0;
    padding-left: 1.2rem;
}

.service-detail-body li {
    margin-bottom: 0.55rem;
}

/* ── Service popup overlay ─────────────────────────────────────────── */
.svc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(4, 9, 20, 0.76);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(6px);
}

.svc-overlay[hidden] {
    display: none;
}

body.svc-open {
    overflow: hidden;
}

.svc-popup {
    position: relative;
    width: min(520px, 100%);
    background: linear-gradient(145deg, rgba(14, 26, 52, 0.98), rgba(10, 18, 38, 0.99));
    border: 1px solid rgba(132, 154, 206, 0.42);
    border-radius: 20px;
    box-shadow: 0 32px 72px rgba(2, 6, 18, 0.72);
    padding: 2rem 1.8rem 1.8rem;
    animation: popIn 0.18s ease;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.svc-close {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    background: none;
    border: none;
    color: #94afd8;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.svc-close:hover {
    color: #f0f9ff;
}

.svc-popup-icon {
    font-size: 2.2rem;
    margin: 0 0 0.4rem;
}

.svc-popup h3 {
    margin: 0 0 0.6rem;
    font-size: 1.35rem;
    color: #f0f9ff;
}

.svc-popup-desc {
    color: #b2c4e8;
    margin: 0 0 0.85rem;
    font-size: 0.97rem;
}

.svc-popup-list {
    margin: 0 0 1.2rem;
    padding-left: 1.2rem;
    color: #c4d7f4;
    font-size: 0.93rem;
}

.svc-popup-list li {
    margin-bottom: 0.5rem;
}

.svc-popup-book {
    display: block;
    text-align: center;
}

/* ── Services page book button ──────────────────────────────────────── */
.btn-book {
    display: inline-block;
    margin-top: 0.9rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(86, 153, 255, 0.6);
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.22);
    color: #bfe0ff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-book:hover {
    background: rgba(37, 99, 235, 0.42);
    border-color: rgba(147, 197, 253, 0.85);
    color: #f0f9ff;
}

.quote-card {
    gap: 0.65rem;
}

.quote-card blockquote {
    font-size: 1.25rem;
    line-height: 1.6;
}

.quote-card cite {
    color: #c5d5f7;
    font-style: normal;
}

.page-header {
    text-align: center;
}

.page-header .page-kicker {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: #7dd3fc;
}

.band {
    padding: 2rem 0 3rem;
}

.band-soft {
    background: transparent;
    border: 0;
}

.contact-list,
.simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li,
.simple-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.contact-list li:last-child,
.simple-list li:last-child {
    border-bottom: 0;
}

.map-card {
    overflow: hidden;
}

.map-frame-wrap {
    margin-top: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(11, 20, 38, 0.7);
}

.map-frame {
    display: block;
    width: 100%;
    min-height: 340px;
    border: 0;
}

form {
    display: grid;
    gap: 1rem;
}

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

label {
    display: grid;
    gap: 0.45rem;
    font-weight: 500;
    color: #e7efff;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.92rem 1rem;
    border: 1px solid rgba(132, 154, 206, 0.48);
    border-radius: 10px;
    background: rgba(6, 13, 28, 0.62);
    color: #eff6ff;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

textarea {
    min-height: 10rem;
    resize: vertical;
}

button {
    cursor: pointer;
}

.status-card {
    margin-bottom: 1rem;
}

.status-card.is-success {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(22, 101, 52, 0.34);
}

.status-card.is-warning {
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(120, 53, 15, 0.34);
}

.status-card.is-error {
    border-color: rgba(239, 68, 68, 0.7);
    background: rgba(127, 29, 29, 0.35);
}

.price {
    margin: 0.35rem 0 1rem;
    color: #f8fdff;
    font-size: 1.5rem;
    font-weight: 700;
}

.shop-category-block {
    margin-bottom: 2.8rem;
}

.shop-category-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #7dd3fc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(132, 154, 206, 0.25);
}

.kicker {
    color: #7dd3fc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
}

.product-visual {
    min-height: 23rem;
    background:
        radial-gradient(circle at 14% 20%, rgba(56, 189, 248, 0.35), transparent 30%),
        linear-gradient(145deg, rgba(19, 36, 68, 0.95), rgba(9, 17, 32, 0.96));
    border: 1px solid var(--line);
    border-radius: 16px;
    position: relative;
}

.product-visual::after {
    content: 'Raspberry Pi 4';
    position: absolute;
    left: 1.4rem;
    bottom: 1.3rem;
    color: #f0f9ff;
    font-size: 2rem;
    font-weight: 700;
}

.trust-card,
.metric-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.3rem;
}

.metric-card strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #f8fcff;
    font-size: 2rem;
    line-height: 1;
}

.metric-card p,
.trust-card p,
.service-card p,
.content-card p,
.contact-card p,
.info-card p,
.post-card p,
.post-card li,
.service-list li,
.footer-copy,
.footer-tag,
.footer-contact,
.footer-links a,
.footer-base,
.muted {
    color: #b2c4e8;
}

.site-footer {
    padding: 2.8rem 0 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(8, 15, 30, 0.95), rgba(7, 12, 24, 1));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand-card {
    display: grid;
    gap: 0.7rem;
}

.footer-logo-row {
    display: flex;
    align-items: center;
}

.footer-logo {
    width: min(260px, 100%);
    height: auto;
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(10, 16, 32, 0.5);
}

.footer-title {
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
    color: #eff6ff;
}

.footer-divider {
    width: 72px;
    height: 1px;
    background: var(--line);
}

.footer-contact p {
    margin: 0 0 0.8rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-base {
    padding: 1.2rem 0;
    margin-top: 1.2rem;
    border-top: 1px solid var(--line);
    text-align: center;
}

.wp-section {
    max-width: 1020px;
    margin: 0 auto;
}

.hidden-hp {
    display: none !important;
}

@media (max-width: 1024px) {
    .grid-3,
    .services-grid,
    .shop-grid,
    .archive-grid,
    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .grid-2,
    .contact-grid,
    .content-grid,
    .product-layout,
    .footer-grid,
    .field-row,
    .grid-3,
    .services-grid,
    .shop-grid,
    .archive-grid,
    .trust-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .nav-row {
        grid-template-columns: 1fr auto;
    }

    .brand {
        gap: 0.75rem;
    }

    .brand-title {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        grid-column: 1 / -1;
        padding-top: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .site-nav .nav-request {
        width: 100%;
        justify-content: center;
    }

    .site-nav.is-open {
        display: flex;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--content-width), calc(100% - 1.1rem));
    }

    .section {
        padding: 2.15rem 0;
    }

    .brand-logo {
        width: 190px;
    }

    .hero-panel,
    .content-card,
    .service-card,
    .quote-card,
    .contact-card,
    .product-card,
    .info-card,
    .status-card,
    .post-card {
        padding: 1.15rem;
        border-radius: 14px;
    }

    .button,
    .button-secondary,
    button.button {
        width: 100%;
    }

    .service-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .service-nav-btn {
        width: 100%;
        min-height: 2.9rem;
        text-align: left;
    }

    input,
    select,
    textarea {
        min-height: 2.9rem;
        font-size: 16px;
    }

    .map-frame {
        min-height: 260px;
    }
}

@media (max-width: 420px) {
    .brand-logo {
        width: 168px;
    }

    .hero-panel,
    .content-card,
    .service-card,
    .quote-card,
    .contact-card,
    .product-card,
    .info-card,
    .status-card,
    .post-card {
        padding: 1rem;
    }

    .page-header h1,
    .section-heading h2 {
        line-height: 1.15;
    }
}

/* ── Popup mobile \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
@media (max-width: 600px) {
    .svc-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .svc-popup {
        border-radius: 20px 20px 0 0;
        padding: 1.6rem 1.2rem 2rem;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        animation: slideUp 0.22s ease;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }

    .svc-popup-list {
        font-size: 0.9rem;
    }

    .svc-popup h3 {
        font-size: 1.15rem;
    }
}