:root {
    --fe-primary: #1b2430;
    --fe-primary-soft: #243044;
    --fe-secondary: #334155;
    --fe-accent: #e67a1f;
    --fe-accent-hover: #cf6a14;
    --fe-accent-soft: #fff4e8;
    --fe-sun: #f5b942;
    --fe-navy: #1b2430;
    --fe-bg: #f3f4f6;
    --fe-surface: #ffffff;
    --fe-surface-muted: #f7f8fa;
    --fe-text: #1a1f2b;
    --fe-muted: #6b7280;
    --fe-border: #e5e7eb;
    --fe-topbar: #141b24;
    --fe-success: #047857;
    --fe-success-soft: #ecfdf5;
    --fe-warning: #b45309;
    --fe-warning-soft: #fffbeb;
    --fe-danger: #b91c1c;
    --fe-danger-soft: #fef2f2;
    --fe-info: #1d4ed8;
    --fe-info-soft: #eff6ff;
    --fe-radius: 8px;
    --fe-radius-sm: 6px;
    --fe-radius-lg: 12px;
    --fe-radius-pill: 999px;
    --fe-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.06);
    --fe-shadow-hover: 0 8px 20px rgba(15, 23, 42, 0.08);
    --fe-shadow-focus: 0 0 0 3px rgba(230, 122, 31, 0.22);
    --fe-space-1: 0.25rem;
    --fe-space-2: 0.5rem;
    --fe-space-3: 0.75rem;
    --fe-space-4: 1rem;
    --fe-space-5: 1.5rem;
    --fe-space-6: 2rem;
    --fe-space-7: 3rem;
    --fe-font: "Inter", "Segoe UI", system-ui, sans-serif;
    --fe-fs-xs: 0.75rem;
    --fe-fs-sm: 0.85rem;
    --fe-fs-md: 0.95rem;
    --fe-fs-lg: 1.05rem;
    --fe-fs-xl: 1.25rem;
    --fe-fw-regular: 400;
    --fe-fw-medium: 500;
    --fe-fw-semibold: 600;
    --fe-fw-bold: 700;
    --fe-header-offset: 7.25rem;
    --fe-container: 1280px;
}

html {
    scroll-behavior: smooth;
}

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

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.fe-skip-link {
    position: absolute;
    left: -9999px;
    top: 0.5rem;
    z-index: 2000;
    background: #fff;
    color: var(--fe-primary);
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: var(--fe-fs-sm);
    font-weight: var(--fe-fw-semibold);
}

.fe-skip-link:focus {
    left: 0.75rem;
}

body.frontend-body {
    font-family: var(--fe-font);
    color: var(--fe-text);
    background: var(--fe-bg);
    margin: 0;
    font-size: var(--fe-fs-md);
    line-height: 1.55;
    font-weight: var(--fe-fw-regular);
    overflow-x: hidden;
}

.fe-main {
    padding-top: 0;
    padding-bottom: var(--fe-space-6);
    min-height: 56vh;
}

section {
    scroll-margin-top: var(--fe-header-offset);
}

.fe-page-title {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.03em;
    color: var(--fe-text);
}

.h1, h1 { font-weight: 800; }
.h2, h2 { font-weight: 800; }
.h3, h3 { font-weight: 700; }

.container {
    max-width: var(--fe-container);
}

.container.py-4,
.container.py-5 {
    scroll-margin-top: var(--fe-header-offset);
}

.fe-text-accent {
    color: var(--fe-accent) !important;
}

.fe-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fe-accent);
}

.fe-hero-title {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.fe-hero-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fe-sun);
}

.fe-hero-lead {
    font-size: 1.05rem;
    max-width: 36rem;
    color: #d7dde6;
}

.fe-hero {
    background:
        radial-gradient(900px 380px at 88% 0%, rgba(230, 122, 31, 0.22), transparent 58%),
        linear-gradient(180deg, #141b24 0%, #1b2430 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fe-hero-panel {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--fe-radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.16);
    overflow: hidden;
}

.fe-hero-panel-media {
    aspect-ratio: 4 / 3;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fe-hero-panel-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
}

.fe-btn-primary {
    background: var(--fe-accent) !important;
    border-color: var(--fe-accent) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: var(--fe-radius-sm) !important;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.fe-btn-primary:hover,
.fe-btn-primary:focus {
    background: var(--fe-accent-hover) !important;
    border-color: var(--fe-accent-hover) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(230, 122, 31, 0.28);
    transform: translateY(-1px);
}

.fe-btn-primary:disabled,
.fe-btn-primary.disabled {
    opacity: 0.55;
    transform: none;
}

.fe-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-weight: 700;
    border-radius: var(--fe-radius-sm);
}

.fe-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.fe-btn-outline {
    background: #fff;
    border: 1px solid var(--fe-border);
    color: var(--fe-text);
    font-weight: 700;
    border-radius: var(--fe-radius-sm);
}

.fe-btn-outline:hover {
    border-color: var(--fe-primary);
    color: var(--fe-primary);
    background: #fff;
}

.btn-outline-danger {
    border-color: #fca5a5;
}

.fe-btn-search {
    background: var(--fe-accent);
    color: #fff;
    border: 1px solid var(--fe-accent);
}

.fe-btn-search:hover {
    background: var(--fe-accent-hover);
    color: #fff;
}

.fe-section-muted {
    background: var(--fe-surface-muted);
}

.fe-price {
    color: var(--fe-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fe-price-old {
    color: var(--fe-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.btn {
    border-radius: var(--fe-radius-sm);
    font-weight: 600;
}

.form-control,
.form-select {
    border-radius: var(--fe-radius-sm);
    border-color: var(--fe-border);
    min-height: 46px;
    padding-inline: 0.85rem;
    background: #fff;
}

.form-control:focus,
.form-select:focus,
.btn:focus-visible {
    box-shadow: var(--fe-shadow-focus);
    border-color: rgba(37, 99, 235, 0.5);
}

.form-label {
    font-size: 0.84rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #f8fafc;
}

.table > :not(caption) > * > * {
    padding: 0.85rem 0.85rem;
    border-bottom-color: var(--fe-border);
}

.table thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    background: #f8fafc;
    border-bottom-width: 1px;
}

.modal-content {
    border-radius: var(--fe-radius);
    border: 1px solid var(--fe-border);
    box-shadow: var(--fe-shadow-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(14, 116, 144, 0.7);
    outline-offset: 2px;
}

.fe-brand-text {
    letter-spacing: -0.03em;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 11rem;
    line-height: 1.15;
    font-weight: 800;
}

.py-lg-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.fe-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.fe-empty-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fe-accent-soft);
    color: var(--fe-accent);
    font-size: 1.25rem;
}

.fe-alert {
    border-radius: var(--fe-radius-sm);
    border: 1px solid var(--fe-border);
    padding: 0.75rem 1rem;
    font-size: var(--fe-fs-sm);
}

.fe-alert-success {
    background: var(--fe-success-soft);
    border-color: #a7f3d0;
    color: #065f46;
}

.fe-alert-danger {
    background: var(--fe-danger-soft);
    border-color: #fecaca;
    color: #991b1b;
}

.fe-alert-warning {
    background: var(--fe-warning-soft);
    border-color: #fde68a;
    color: #92400e;
}

.fe-skeleton {
    background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 37%, #eef2f7 63%);
    background-size: 400% 100%;
    animation: fe-shimmer 1.2s ease-in-out infinite;
    border-radius: var(--fe-radius-sm);
}

@keyframes fe-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@media (min-width: 992px) {
    .frontend-navbar .navbar-brand {
        max-width: 280px;
        margin-right: 1rem;
    }

    .frontend-navbar .fe-brand-text {
        max-width: 180px;
    }

    .py-lg-6 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

@media (max-width: 767.98px) {
    body.frontend-body {
        font-size: 0.93rem;
    }

    .fe-main {
        padding-bottom: 1.5rem;
    }

    .fe-hero-lead {
        font-size: 0.98rem;
    }

    .fe-brand-text {
        max-width: 7.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
