:root {
    --primary: #1f5bff;
    --secondary: #0f172a;
    --accent: #00b3ff;
    --bg: #f7f7f7;
    --surface: #ffffff;
    --surface-strong: #eaf1ff;
    --text: #0f172a;
    --muted: #475569;
    --border: #d6deef;
    --success: #0f9d58;
    --danger: #d32f2f;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 20% 0%, #ecf4ff 0%, var(--bg) 36%), var(--bg);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: min(1180px, 92vw);
    margin-inline: auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(15, 23, 42, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 0.02em;
    font-weight: 700;
}

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

.site-nav a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    font-size: 0.96rem;
    padding: 10px 12px;
    border-radius: 999px;
    transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    transition: 0.25s ease;
}

main {
    min-height: 100vh;
}

.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-track {
    position: relative;
    min-height: 100vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.9s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-content {
    padding-top: 120px;
    padding-bottom: 80px;
    color: #fff;
    max-width: 760px;
}

.hero-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

.hero-content h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 1.02;
}

.hero-content h2 {
    margin: 12px 0 0;
    font-size: clamp(1.15rem, 2.2vw, 1.8rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.hero-content p {
    margin: 20px 0 0;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 66ch;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-dot.is-active {
    background: #fff;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.32);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-arrow:hover {
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.62);
}

.section {
    padding: 86px 0;
}

.section-muted {
    background: linear-gradient(180deg, rgba(234, 241, 255, 0.55), rgba(247, 247, 247, 0.45));
}

.section-label {
    margin: 0 0 10px;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    font-weight: 800;
}

.section-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.14;
}

.section-text {
    margin: 0;
    color: var(--muted);
    max-width: 56ch;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.text-link {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.text-link:hover {
    color: #1245d4;
}

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

.card,
.content-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 28px rgba(31, 91, 255, 0.08);
}

.card h3,
.content-card h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.25;
}

.card p {
    margin: 14px 0 18px;
    color: var(--muted);
}

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

.product-card {
    background: var(--surface);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.product-card-body {
    padding: 24px;
}

.product-card h3 {
    margin: 0 0 8px;
    font-size: 1.46rem;
    font-family: 'Space Grotesk', sans-serif;
}

.product-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.product-card ul,
.feature-list {
    margin: 0 0 20px;
    padding-left: 18px;
    color: var(--text);
}

.product-card li,
.feature-list li {
    margin-bottom: 8px;
}

.section-contact-strip {
    padding-top: 16px;
}

.contact-strip {
    background: linear-gradient(120deg, var(--secondary), #17367f);
    border-radius: 24px;
    color: #fff;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.contact-strip h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.btn {
    appearance: none;
    border: 0;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.24s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--primary), #2b77ff);
    color: #fff;
    box-shadow: 0 10px 22px rgba(31, 91, 255, 0.35);
}

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

.btn-ghost {
    background: rgba(31, 91, 255, 0.09);
    color: var(--primary);
    border: 1px solid rgba(31, 91, 255, 0.26);
}

.btn-ghost:hover {
    background: rgba(31, 91, 255, 0.15);
}

.site-footer {
    margin-top: 40px;
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.9);
    padding: 56px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 24px;
}

.site-footer h4 {
    margin: 0 0 10px;
    font-size: 1.02rem;
}

.site-footer p {
    margin: 7px 0;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
    color: #b5d9ff;
}

.footer-bottom {
    margin-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 16px;
}

.page-hero {
    background: linear-gradient(120deg, var(--secondary), #17367f);
    color: #fff;
}

.page-hero-small {
    padding: 138px 0 66px;
}

.page-hero h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.page-hero p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.84);
    max-width: 72ch;
}

.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

.content-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.product-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

.product-detail-image {
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.form-grid label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 13px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.form-grid input:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.15);
}

.full-width {
    grid-column: 1 / -1;
}

.field-error {
    color: var(--danger);
    font-size: 0.87rem;
    font-weight: 600;
}

.alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert.success {
    background: rgba(15, 157, 88, 0.09);
    border-color: rgba(15, 157, 88, 0.28);
    color: #13613d;
}

.alert.error {
    background: rgba(211, 47, 47, 0.08);
    border-color: rgba(211, 47, 47, 0.28);
    color: #8f2121;
}

.admin-body {
    background: linear-gradient(180deg, #eef4ff 0%, #f7f7f7 34%, #f7f7f7 100%);
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 45;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-nav {
    display: flex;
    gap: 10px;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.86);
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
}

.admin-nav a.active,
.admin-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.admin-main {
    padding-bottom: 60px;
}

.admin-section {
    padding-top: 34px;
    padding-bottom: 34px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.admin-topbar h1,
.admin-topbar h2 {
    margin: 0;
    font-size: 1.7rem;
    font-family: 'Space Grotesk', sans-serif;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stat-value {
    margin: 8px 0 0;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 800;
    color: var(--primary);
}

.admin-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.admin-subtitle {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: #4e5c77;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.admin-fieldset {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-fieldset legend {
    font-weight: 700;
    padding: 0 4px;
    color: var(--secondary);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

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

.admin-table th {
    background: #edf3ff;
    color: #2e3b59;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.inline-form {
    display: inline;
    margin-left: 10px;
}

.text-button {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: var(--primary);
    font-weight: 700;
}

.text-button.danger {
    color: var(--danger);
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 16px;
}

.auth-card {
    width: min(480px, 100%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.auth-card h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.auth-card p {
    color: var(--muted);
}

.auth-hint {
    margin-top: 18px;
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .intro-grid,
    .product-grid,
    .content-layout,
    .product-detail,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-fieldset {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 78px;
        left: 4vw;
        right: 4vw;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.11);
        border-radius: 14px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        transform-origin: top;
        opacity: 0;
        transform: scaleY(0.65);
        pointer-events: none;
        transition: 0.22s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        transform: scaleY(1);
        pointer-events: auto;
    }

    .hero-content {
        padding-top: 110px;
    }

    .hero-controls {
        width: min(340px, 90vw);
        bottom: 22px;
    }

    .contact-strip {
        padding: 28px;
        flex-direction: column;
        align-items: flex-start;
    }

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

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

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