@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
    --bg: #0a1017;
    --bg-soft: #0e1823;
    --surface: rgba(14, 22, 35, 0.86);
    --surface-strong: #111b29;
    --surface-alt: rgba(20, 31, 49, 0.92);
    --text: #f5f7fd;
    --muted: #91a4bf;
    --line: rgba(129, 156, 197, 0.16);
    --line-strong: rgba(127, 173, 255, 0.28);
    --accent: #5ddcff;
    --accent-2: #6cf3c8;
    --accent-3: #6f7cff;
    --accent-soft: rgba(93, 220, 255, 0.13);
    --danger: #ff8d79;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    --button-text: #071019;
    --grid: rgba(110, 131, 180, 0.07);
}

html[data-theme="light"] {
    --bg: #eef5fb;
    --bg-soft: #f6fbff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-alt: rgba(246, 250, 255, 0.96);
    --text: #10233f;
    --muted: #667b97;
    --line: rgba(99, 125, 162, 0.16);
    --line-strong: rgba(92, 160, 240, 0.24);
    --accent: #1898ec;
    --accent-2: #19c8a9;
    --accent-3: #6670ff;
    --accent-soft: rgba(24, 152, 236, 0.1);
    --danger: #df6151;
    --shadow: 0 26px 68px rgba(31, 64, 100, 0.14);
    --button-text: #ffffff;
    --grid: rgba(101, 130, 168, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(93, 220, 255, 0.12), transparent 24%),
        radial-gradient(circle at 86% 11%, rgba(111, 124, 255, 0.18), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, black 12%) 100%);
    transition: background 0.25s ease, color 0.25s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 88%);
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.site-shell {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 20px 40px;
}

.site-header,
.site-footer,
.hero-panel,
.order-card,
.trust-tile,
.faq-item,
.info-card,
.table-card,
.stat-card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    padding: 16px 18px;
    border-radius: 28px;
    background: var(--surface);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
}

.brand-mark.small {
    width: 44px;
    height: 44px;
}

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-title,
.hero-copy h1,
.section-heading h1,
.section-heading h2,
.order-card h2,
.faq-item summary,
.trust-tile h3,
.info-card h3,
.admin-page h1,
.admin-page h2 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
}

.brand-title {
    font-size: 1.24rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.site-nav a,
.theme-toggle {
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a.nav-accent,
.theme-toggle:hover {
    color: var(--text);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    gap: 22px;
    margin-bottom: 24px;
}

.hero-panel,
.order-card,
.trust-tile,
.info-card,
.table-card,
.faq-item,
.stat-card {
    border-radius: 32px;
    background: var(--surface);
}

.hero-panel,
.order-card,
.trust-tile,
.info-card,
.table-card {
    padding: 30px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 520px;
    background:
        radial-gradient(circle at 76% 24%, rgba(111, 124, 255, 0.18), transparent 28%),
        radial-gradient(circle at 22% 78%, rgba(93, 220, 255, 0.12), transparent 22%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, white 10%) 0%, var(--surface) 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 690px;
    min-height: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 9.2ch;
    margin: 0;
    font-size: clamp(3.3rem, 5.3vw, 5.5rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.lead {
    max-width: 44ch;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.76;
}

.lead.small {
    max-width: 70ch;
}

.hero-inline-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-inline-points span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 28px;
    border: 1px solid rgba(124, 151, 192, 0.08);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 72%);
    pointer-events: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--button-text);
}

.button.ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.button.full {
    width: 100%;
}

.button.small {
    padding: 10px 14px;
    border-radius: 12px;
}

.order-card {
    display: grid;
    align-content: start;
    gap: 18px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, white 8%) 0%, var(--surface) 100%);
}

.order-card-head h2 {
    margin: 0 0 10px;
}

.form-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.order-form {
    display: grid;
    gap: 14px;
}

.order-form label {
    display: grid;
    gap: 8px;
}

.order-form span {
    font-weight: 800;
}

.order-form input,
.order-form textarea,
.status-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
    background: rgba(7, 13, 21, 0.9);
    font: inherit;
}

html[data-theme="light"] .order-form input,
html[data-theme="light"] .order-form textarea,
html[data-theme="light"] .status-form select {
    background: rgba(247, 251, 255, 0.96);
}

.form-message {
    min-height: 0;
    margin: 0;
    font-size: 0.95rem;
    color: var(--accent-2);
}

.form-message.error {
    color: var(--danger);
}

.order-checklist {
    display: grid;
    gap: 10px;
    padding-top: 8px;
}

.check-item {
    position: relative;
    padding: 12px 14px 12px 44px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    line-height: 1.62;
}

.check-item::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 14px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 5px rgba(93, 220, 255, 0.08);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.trust-tile {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.trust-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #fff;
    font-size: 0.84rem;
    font-weight: 900;
}

.trust-tile h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.trust-tile p,
.info-card p,
.faq-item p,
.site-footer p {
    color: var(--muted);
    line-height: 1.68;
}

.faq-section,
.inner-page {
    margin-top: 18px;
}

.checkout-shell {
    display: grid;
    gap: 20px;
}

.checkout-grid,
.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.checkout-card {
    padding: 28px;
    border-radius: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.checkout-card h2 {
    margin: 0 0 18px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
}

.checkout-summary {
    display: grid;
    gap: 14px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.summary-row span {
    color: var(--muted);
}

.summary-row strong {
    font-size: 1.02rem;
}

.summary-row.total strong {
    font-size: 1.28rem;
}

.checkout-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.checkout-tags span {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
}

.checkout-confirm {
    display: grid;
    gap: 18px;
}

.accept-box {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.accept-box input {
    margin: 2px 0 0;
}

.accept-box span {
    color: var(--muted);
    line-height: 1.65;
}

.accept-box a {
    color: var(--accent);
    font-weight: 700;
}

.checkout-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

.button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.faq-section.compact {
    margin-top: 0;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list.wide {
    max-width: 920px;
}

.faq-item {
    padding: 22px 24px;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 1.03rem;
    font-weight: 700;
}

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

.faq-item p {
    margin: 12px 0 0;
}

.contacts-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card,
.table-card {
    padding: 28px;
}

.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 28px;
    background: var(--surface);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-login-page {
    display: flex;
    justify-content: center;
}

.admin-login-card {
    width: min(100%, 460px);
}

.admin-page {
    display: grid;
    gap: 20px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.stats-grid {
    gap: 16px;
}

.stat-card {
    padding: 18px;
}

.stat-card strong {
    display: block;
    font-size: 1.24rem;
}

.stat-card span {
    color: var(--muted);
}

.table-scroll {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.orders-table th {
    color: var(--muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-chip {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
}

.status-new {
    background: rgba(93, 220, 255, 0.12);
    color: var(--accent);
}

.status-reviewed {
    background: rgba(255, 193, 99, 0.12);
    color: #ffca6f;
}

.status-contacted {
    background: rgba(108, 243, 200, 0.12);
    color: var(--accent-2);
}

.status-closed {
    background: rgba(255, 141, 121, 0.14);
    color: #ff9f93;
}

.status-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-form select {
    min-width: 150px;
}

@media (max-width: 1040px) {
    .hero-stage,
    .trust-grid,
    .contacts-grid,
    .stats-grid,
    .checkout-grid,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .site-header,
    .site-footer,
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .site-shell {
        padding: 18px 14px 28px;
    }

    .hero-panel,
    .order-card,
    .trust-tile,
    .info-card,
    .table-card,
    .site-footer {
        padding: 22px;
        border-radius: 24px;
    }

    .brand-title {
        font-size: 1.04rem;
        letter-spacing: 0.12em;
    }

    .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2.7rem, 11.6vw, 3.8rem);
    }
}
