:root {
    --bg: #0f131a;
    --bg-soft: #161c26;
    --text: #eef1f7;
    --muted: #b7becd;
    --accent: #dc2d35;
    --accent-2: #ff6a00;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] {
    --bg: #07090d;
    --bg-soft: #11151f;
    --text: #f0f3f8;
    --muted: #bac0ce;
    --accent: #ef2f3a;
    --accent-2: #8e040b;
    --line: rgba(255, 255, 255, 0.14);
}

html[data-theme="light"] {
    --bg: #f6f7fb;
    --bg-soft: #ffffff;
    --text: #161c27;
    --muted: #5d6678;
    --accent: #d11f2f;
    --accent-2: #ffb75e;
    --line: rgba(11, 16, 28, 0.14);
    --shadow: 0 20px 45px rgba(10, 20, 40, 0.12);
}

html[data-theme="corporate"] {
    --bg: #091318;
    --bg-soft: #11222a;
    --text: #edf9ff;
    --muted: #a4c0cb;
    --accent: #00c2a8;
    --accent-2: #0ea5e9;
    --line: rgba(149, 217, 233, 0.22);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 40%), var(--bg);
    color: var(--text);
    font-family: "Manrope", "Barlow", sans-serif;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

/* Scrollbar animation */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--bg) 82%, #000 18%);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 20px;
    animation: pulse-scroll 3s ease-in-out infinite;
}
@keyframes pulse-scroll {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #030507, #08151f, #10131d);
    display: grid;
    place-items: center;
    transition: opacity .5s ease, visibility .5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: preloader-float 1.8s ease-in-out infinite;
}

.logo-mark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--accent) 70%, white 30%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--text);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 65%, transparent);
    animation: wheel-spin 1.1s linear infinite, wheel-pulse 1.7s ease-in-out infinite;
}

.logo-text {
    font-size: .9rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #d5dae4;
}

@keyframes wheel-spin {
    to { transform: rotate(360deg); }
}
@keyframes wheel-pulse {
    50% { box-shadow: 0 0 0 20px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@keyframes preloader-float {
    50% { transform: translateY(-8px); }
}

#cursor-wheel,
#cursor-dot {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

#cursor-wheel {
    width: 26px;
    height: 26px;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform .08s linear;
}

#cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: transform .15s linear;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 150;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bg) 75%, transparent);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: grid;
    place-items: center;
    font-size: .8rem;
}

.nav {
    display: inline-flex;
    gap: 18px;
    font-weight: 600;
}

.nav a {
    opacity: .9;
}

.nav a:hover {
    color: var(--accent);
}

.header-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lang-switch,
.theme-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.lang-switch a,
.theme-switch a {
    padding: 8px 9px;
    font-size: .75rem;
    border-right: 1px solid var(--line);
}

.lang-switch a:last-child,
.theme-switch a:last-child {
    border-right: 0;
}

.book-btn,
.btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 11px 17px;
    font-weight: 700;
    font-size: .9rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text);
}

.w-full {
    width: 100%;
}

main {
    min-height: 60vh;
}

.hero-section {
    position: relative;
    min-height: calc(100svh - 68px);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,.65), rgba(0,0,0,.2));
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(920px, calc(100% - 32px));
    text-align: left;
    animation: slide-up .9s ease;
}

.hero-content h1 {
    margin: 12px 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
    max-width: 760px;
    font-family: "Barlow", sans-serif;
}

.hero-content p {
    max-width: 620px;
    color: #d3dae8;
}

.hero-badge {
    display: inline-flex;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.parallax-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    z-index: 2;
    pointer-events: none;
}
.layer-one {
    width: 380px;
    height: 380px;
    background: color-mix(in srgb, var(--accent) 45%, transparent);
    top: -120px;
    right: -110px;
}
.layer-two {
    width: 300px;
    height: 300px;
    background: color-mix(in srgb, var(--accent-2) 45%, transparent);
    left: -130px;
    bottom: -140px;
}

.section {
    max-width: 1220px;
    margin: 0 auto;
    padding: 74px 20px;
}

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

.section-head h2,
.section-head h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.section-head p {
    max-width: 720px;
    color: var(--muted);
}

.calc-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
}

.calc-form,
.calc-result,
.article-item,
.content-page,
.video-wrap,
.article-hero,
.article-body,
.article-video {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 90%, transparent), color-mix(in srgb, var(--bg-soft) 75%, #000 25%));
    border: 1px solid var(--line);
    border-radius: 18px;
}

.calc-form,
.calc-result,
.article-copy,
.content-page,
.article-hero,
.article-body {
    padding: 18px;
}

.calc-form label {
    display: block;
    margin-bottom: 6px;
    margin-top: 10px;
    font-weight: 700;
}

.calc-form input,
.calc-form select,
.search-form input {
    width: 100%;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, black 12%);
    color: var(--text);
    border-radius: 12px;
    padding: 11px 12px;
}

.location-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
}

#detect-location,
.search-form button {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    padding: 11px 13px;
}

.result-main {
    font-size: 2rem;
    font-weight: 800;
    margin: 8px 0;
}

.premium-box {
    margin-top: 14px;
    border: 1px dashed var(--accent);
    border-radius: 12px;
    padding: 12px;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.hidden {
    display: none !important;
}

.video-wrap {
    overflow: hidden;
    min-height: 340px;
}

.video-wrap video {
    width: 100%;
    min-height: 340px;
    object-fit: cover;
}

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

.article-item {
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;
}
.article-item:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--accent) 70%, white 30%);
}

.article-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.article-copy h3,
.article-copy h2 {
    margin: 0 0 8px;
}

.article-copy p {
    color: var(--muted);
    margin: 0 0 12px;
}

.inline-link {
    color: var(--accent);
    font-weight: 700;
}

.article-single {
    max-width: 980px;
}

.article-hero img {
    margin-top: 14px;
    border-radius: 14px;
}

.article-body {
    margin-top: 14px;
    line-height: 1.8;
    color: var(--text);
}

.article-video {
    margin-top: 14px;
    overflow: hidden;
}

.article-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.content-page {
    max-width: 980px;
}

.content-body {
    color: var(--text);
    line-height: 1.8;
}

.content-body a {
    color: var(--accent);
}

.search-form {
    display: flex;
    gap: 8px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-soft) 75%, black 25%);
}

.footer-grid {
    max-width: 1220px;
    margin: 0 auto;
    padding: 44px 20px 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-top: 0;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-bottom {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px 22px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.wa-float {
    position: fixed;
    right: 18px;
    bottom: 86px;
    z-index: 180;
    background: #1fbf5f;
    color: white;
    border-radius: 999px;
    padding: 11px 15px;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.wa-bar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 18px;
    z-index: 180;
    text-align: center;
    background: #159a4a;
    color: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 700;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 90px;
    width: min(340px, calc(100vw - 34px));
    z-index: 220;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    box-shadow: var(--shadow);
    padding: 16px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie-actions button {
    flex: 1;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    padding: 10px;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nav { display: none; }
    .calc-layout {
        grid-template-columns: 1fr;
    }
    .location-row {
        grid-template-columns: 1fr 1fr;
    }
    #detect-location {
        grid-column: span 2;
    }
    #cursor-wheel,
    #cursor-dot {
        display: none;
    }
}

@media (max-width: 680px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .wa-float {
        right: 14px;
        bottom: 74px;
        font-size: .88rem;
    }
    .wa-bar {
        font-size: .88rem;
        left: 10px;
        right: 10px;
    }
}
