/* =========================================================
   MANIASLT - GLOBAL
   Palette: White / Sky Blue / Navy / Red Accent
========================================================= */

:root {
    --white: #ffffff;
    --sky-50: #f1f9ff;
    --sky-100: #e1f3ff;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;

    --navy-950: #04111f;
    --navy-900: #071c33;
    --navy-800: #0b2a4a;
    --navy-700: #123b65;

    --red: #ef3340;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;

    --shadow-sm: 0 8px 24px rgba(7, 28, 51, 0.08);
    --shadow-md: 0 18px 46px rgba(7, 28, 51, 0.12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--sky-50);
    color: var(--navy-900);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 800;
    transition: .2s ease;
}

.btn-primary,
.btn-register {
    background: var(--sky-400);
    color: var(--navy-950);
}

.btn-primary:hover,
.btn-register:hover {
    background: var(--sky-500);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-login {
    background: var(--white);
    color: var(--navy-900);
    border-color: var(--slate-200);
}

.btn-login:hover {
    border-color: var(--sky-400);
    color: var(--sky-600);
}

.btn-outline {
    background: transparent;
    color: var(--navy-900);
    border-color: rgba(7, 28, 51, 0.22);
}

.btn-outline:hover {
    border-color: var(--sky-500);
    color: var(--sky-600);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 20, 53, 0.96);
    border-bottom: 1px solid var(--slate-200);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: 180px minmax(280px, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.brand-logo img,
.footer-logo img {
    max-height: 44px;
    width: auto;
}

.header-search {
    width: 100%;
}

.search-box {
    min-height: 48px;
    display: flex;
    align-items: center;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    overflow: hidden;
    transition: .2s ease;
}

.search-box:focus-within {
    background: var(--white);
    border-color: var(--sky-400);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .12);
}

.search-icon {
    width: 48px;
    display: grid;
    place-items: center;
    color: var(--slate-500);
}

.search-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--navy-900);
}

.search-box input::placeholder {
    color: var(--slate-400);
}

.search-submit {
    min-height: 46px;
    border: 0;
    padding: 0 20px;
    background: var(--navy-900);
    color: var(--white);
    font-weight: 800;
}

.search-submit:hover {
    background: var(--sky-600);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.site-footer {
    background: var(--navy-950);
    color: var(--white);
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.5fr) 1fr 1fr;
    gap: 64px;
    padding-bottom: 48px;
}

.footer-brand p {
    max-width: 460px;
    margin: 20px 0 0;
    color: #b9c8d9;
}

.footer-column h2 {
    margin: 0 0 18px;
    font-size: 16px;
    color: var(--sky-300);
}

.footer-column nav {
    display: grid;
    gap: 10px;
}

.footer-column a,
.footer-legal a {
    color: #c9d7e6;
    transition: .2s ease;
}

.footer-column a:hover,
.footer-legal a:hover {
    color: var(--sky-300);
    transform: translateX(2px);
}

.footer-bottom {
    min-height: 76px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #91a7bc;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 22px;
}

@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding-block: 14px;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .brand-logo img {
        max-height: 38px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .header-inner {
        grid-template-columns: minmax(100px, 1fr) auto;
    }

    .header-actions .btn {
        min-height: 40px;
        padding: 0 13px;
        font-size: 14px;
    }

    .search-submit {
        padding-inline: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        padding-block: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        flex-wrap: wrap;
    }
}


/* =========================================================
   SHARED SIMPLE PAGES
========================================================= */

.simple-page,
.not-found-page {
    min-height: 66vh;
    display: grid;
    align-items: center;
    padding: 84px 0;
    background:
        radial-gradient(circle at 85% 10%, rgba(56,189,248,.18), transparent 25%),
        var(--sky-50);
}

.simple-page-card,
.not-found-card {
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.simple-page-card {
    max-width: 900px;
}

.simple-kicker,
.error-code {
    color: var(--sky-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.simple-page-card h1,
.not-found-card h1 {
    margin: 8px 0 12px;
    color: var(--navy-950);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.simple-page-card p,
.not-found-card p {
    max-width: 720px;
    margin: 0;
    color: var(--slate-500);
}

.not-found-card {
    max-width: 760px;
    text-align: center;
}

.error-code {
    display: block;
    font-size: clamp(54px, 10vw, 96px);
    letter-spacing: -.06em;
    line-height: .9;
}

.not-found-card p {
    margin-inline: auto;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}


/* ================ VISUAL REFINEMENT v3 ================ */
:root { --container: 1216px; }
html { scroll-padding-top: 120px; }
[id] { scroll-margin-top: 115px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ef3340; outline-offset: 3px; }
::selection { background: #b1e7ff; color: #071c33; }
body { -webkit-font-smoothing: antialiased; }
.site-header { box-shadow: 0 8px 28px rgba(7,28,51,.035); }
.header-inner { min-height: 82px; grid-template-columns: 190px minmax(250px,1fr) auto; gap: clamp(14px,2vw,34px); }
.brand-logo { width: fit-content; }
.brand-logo img { max-width: 182px; max-height: 50px; }
.search-box { min-height: 51px; background: #f5f9fd; border-color: #dce8f3; }
.search-submit { min-height: 49px; min-width: 83px; background: #0b2948; }
.header-actions .btn { min-width: 88px; }
.header-actions .btn-register { min-width: 102px; }
.site-footer { padding-top: 66px; }
.footer-logo img { max-width: 180px; max-height: 50px; }
.footer-grid { gap: 56px; }
@media (max-width:900px) {
  .header-inner { grid-template-columns: minmax(0,1fr) auto; gap: 12px; min-height: auto; }
  .header-search { grid-column:1 / -1; grid-row:2; }
}
@media (max-width:400px) {
  .brand-logo img { max-width: 134px; max-height: 38px; }
  .header-actions { gap:6px; }
  .header-actions .btn { min-width: 0; padding-inline: 11px; }
  .header-actions .btn-register { min-width: 0; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}
