:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --ink: #0f172a;
    --muted: #475569;
    --primary: #7c3aed;
    --accent: #06b6d4;
    --soft: #eef2ff;
    --line: rgba(15, 23, 42, 0.08);
    --radius: 18px;
    --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top right, #e0f2fe, transparent 45%),
        radial-gradient(circle at 20% 20%, #ede9fe, transparent 40%),
        var(--bg);
    min-height: 100vh;
}

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

h1, h2, h3, h4 {
    font-family: "Exo 2", "Inter", sans-serif;
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 16px;
    line-height: 1.6;
}

ul {
    margin: 0;
    padding-left: 18px;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.ast-container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.topbar-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.topbar-link {
    color: #334155;
    font-weight: 600;
}

.topbar-sep {
    opacity: 0.4;
    padding: 0 6px;
}

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

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo-image {
    width: 360px;
    height: auto;
    display: block;
    transition: width 0.2s ease;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.logo-text {
    font-size: 18px;
    letter-spacing: 0.02em;
}

.footer-logo .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 14px;
}

.footer-logo .logo-image {
    width: 140px;
}

.site-header.is-scrolled .logo-image {
    width: 160px;
}

.nav {
    display: flex;
    gap: 18px;
    justify-content: left;
    font-weight: 500;
    color: #1f2937;
    flex-wrap: wrap;
    padding-left: 30px;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle-btn span {
    width: 18px;
    height: 2px;
    background: #111;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav a {
    position: relative;
    padding-bottom: 4px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}

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

.hello {
    font-size: 13px;
    color: var(--muted);
}

.btn {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.2);
}

.btn.outline {
    background: #fff;
    border-color: rgba(124, 58, 237, 0.4);
    color: var(--primary);
}

.btn.ghost {
    background: transparent;
    color: #1f2937;
    border-color: var(--line);
}

.btn:hover {
    transform: translateY(-2px);
}

main {
    flex: 1;
}

.hero {
    padding: 80px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 52px);
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding-top: 12px;
}

.hero-meta strong {
    display: block;
    font-size: 20px;
}

.hero-card {
    background: linear-gradient(135deg, #f9fbff, #eef6ff);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(124, 58, 237, 0.12);
}

.hero-card-title {
    font-family: "Exo 2", sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-card-subtitle {
    font-size: 14px;
    color: #374151;
}

.hero-card-buttons {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.hero-card-footer {
    background: #0f172a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
}

.section {
    padding: 70px 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 14px;
}

.breadcrumbs a {
    color: inherit;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 32px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.card,
.service-card,
.price-card,
.promo-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #eef2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.mw-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.mw-feature {
    background: var(--surface);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.mw-icon-img {
    width: 36px;
    height: 36px;
}

.mw-rating {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.services-grid .service-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.services-grid .service-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.ast-outline-button {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 6px 10px;
}
.ast-outline-button2 {
    background: linear-gradient(90deg, #a193b9, #969c9d);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 6px 10px;
}
.ast-outline-button a {
    color: inherit;
    text-decoration: none;
}

.center {
    text-align: center;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.band {
    background: linear-gradient(120deg, #ede9fe 0%, #e0f2fe 100%);
}

.band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    align-items: center;
}

.adv-list {
    display: grid;
    gap: 16px;
}

.adv-item {
    background: var(--surface);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.promo {
    background: #0f172a;
    color: #fff;
}

.promo .muted {
    color: rgba(255, 255, 255, 0.75);
}

.promo-card {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.text-link {
    color: var(--primary);
    font-weight: 600;
}

.contact {
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: center;
}

.contact-card {
    background: linear-gradient(140deg, #ede9fe, #f8fafc);
    border-radius: var(--radius);
    padding: 26px;
    border: 1px solid var(--line);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}

.contact-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.auth-page {
    padding: 70px 0 90px;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.form {
    display: grid;
    gap: 16px;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.flash-wrap {
    width: min(720px, 90vw);
    margin: 20px auto 0;
}

.flash {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.flash.error {
    background: #ffe4e6;
    color: #9f1239;
}

.flash.info {
    background: #e0f2fe;
    color: #075985;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 40px 0;
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.muted {
    color: var(--muted);
}

.admin-page {
    padding: 60px 0 90px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-table {
    display: grid;
    gap: 12px;
}

.admin-table-head,
.admin-table-row {
    display: grid;
    grid-template-columns: 120px 1fr 140px 160px;
    gap: 16px;
    align-items: center;
}

.admin-table-head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.admin-table-row {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
}

.admin-title {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.admin-actions form {
    margin: 0;
}

.text-link.danger {
    color: #b91c1c;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-weight: 600;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #ede9fe;
    color: #6d28d9;
    font-weight: 600;
}

.admin-form {
    max-width: 720px;
}

.price-cards-form {
    display: grid;
    gap: 16px;
    padding-top: 12px;
}

.price-cards-form h2 {
    margin: 0;
    font-size: 20px;
}

.price-cards-form p {
    margin: 0;
}

.price-card-editor {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.price-card-editor h3 {
    margin: 0;
    font-size: 16px;
}

.stagger > * {
    animation: rise 0.6s ease both;
    animation-delay: calc(var(--delay, 0) * 0.08s);
}

.stagger > *:nth-child(1) { --delay: 1; }
.stagger > *:nth-child(2) { --delay: 2; }
.stagger > *:nth-child(3) { --delay: 3; }
.stagger > *:nth-child(4) { --delay: 4; }
.stagger > *:nth-child(5) { --delay: 5; }
.stagger > *:nth-child(6) { --delay: 6; }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .header-grid {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo toggle"
            "nav nav"
            "auth auth";
        text-align: left;
        row-gap: 12px;
        padding-bottom: 0;
    }

    .logo {
        grid-area: logo;
    }

    .logo-image {
        width: 260px;
    }

    .nav-toggle-btn {
        grid-area: toggle;
        display: inline-flex;
        justify-self: end;
    }

    .nav {
        grid-area: nav;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        display: none;
    }

    .auth {
        grid-area: auth;
        justify-content: flex-start;
        display: none;
    }

    .nav-toggle:checked ~ .nav,
    .nav-toggle:checked ~ .auth {
        display: flex;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-table-head,
    .admin-table-row {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        justify-content: flex-start;
    }

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