:root {
    --col-slant-deg: 3.8deg;
    --bg: #efefef;
    --surface: #ffffff;
    --ink: #111111;
    --muted: #5c5c5c;
    --line: #d6d6d6;
    --brand: #141414;
    --brand-dark: #0e0e0e;
    --accent: #f5a800;
    --accent-dark: #d99400;
    --accent-light: #ffc83b;
    --danger: #a63d38;
    --info: #2b6cb0;
    --success: #1f7a4d;
    --shadow: 0 8px 30px rgba(24, 34, 40, .09);
    --radius: 14px;

    /* Landing page columns (Light theme) */
    --col-bg: #edf0f3;
    --col-bg-active: #ffffff;
    --col-bg-hover: #f7f9fa;
    --col-title: #484f56;
    --col-title-active: #0e0e0e;
    --col-work-bg: #1c1e20;
    --col-work-text: #e5e7eb;
    --col-work-active-bg: #0e0e0e;
    --col-work-active-text: #ffffff;
    --col-shelf-bg: #18191b;
    --col-machine-glow: none;
}

html[data-theme="dark"] {
    --bg: #0c0d0e;
    --surface: #161719;
    --ink: #f0f2f5;
    --muted: #9aa1a9;
    --line: #272a2e;
    --brand: #ffffff;
    --brand-dark: #0e0e0e;
    --shadow: 0 8px 32px rgba(0, 0, 0, .45);

    /* Landing page columns (Dark theme) */
    --col-bg: #111215;
    --col-bg-active: #17181c;
    --col-bg-hover: #1c1e23;
    --col-title: #7c848d;
    --col-title-active: #ffffff;
    --col-work-bg: #1d1f23;
    --col-work-text: #e0e3e7;
    --col-work-active-bg: #22252a;
    --col-work-active-text: #ffffff;
    --col-shelf-bg: #131416;
    --col-machine-glow: radial-gradient(circle at 50% 55%, rgba(245, 168, 0, 0.16) 0%, rgba(255, 255, 255, 0.05) 45%, transparent 70%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

/* Главная страница — без прокрутки, полный экран */
body.no-header {
    overflow: hidden;
    height: 100vh;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 .5em;
}

h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    letter-spacing: -.02em;
}

h2 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

h3 {
    font-size: 1.1rem;
}

p {
    margin: 0 0 1rem;
}

small,
.muted {
    color: var(--muted);
}

.container {
    width: min(1440px, calc(100% - 2rem));
    margin: 0 auto;
}

.main-content {
    min-height: 60vh;
    padding-top: 1rem;
    padding-bottom: 3rem;
}

/* Header */
.site-header {
    background: #0e0e0e;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.no-header .site-header {
    display: none;
}

.site-topbar {
    background: #141414;
    color: #e6e6e6;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 46px;
    font-size: 1.05rem;
}

.topbar-region {
    color: #8fa89b;
    white-space: nowrap;
    font-size: .9rem;
}

.topbar-contacts {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    margin-left: auto;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #dbe6e0;
    white-space: nowrap;
    font-size: 1.05rem;
}

.topbar-link:hover {
    color: #fff;
    text-decoration: none;
}

.topbar-link .contact-ico {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    background: var(--accent);
    color: #1d252b;
    font-size: .95rem;
}

.topbar-link .social-icon {
    width: 28px;
    height: 28px;
    font-size: .9rem;
    border-radius: 7px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 84px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #fff;
    flex: 0 1 auto;
    min-width: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    width: auto;
    height: 38px;
    max-width: 58px;
    object-fit: contain;
    flex: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), #ffd07a);
    color: #1d252b;
    font-weight: 800;
    font-size: .95rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1rem;
}

.brand-text small {
    display: none;
    color: #a9c4b6;
    font-size: .72rem;
}

@media (min-width: 1400px) {
    .brand-text small {
        display: block;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    overflow: visible;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .8rem;
    color: #cfe0d6;
    border-radius: 9px;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(242, 167, 43, .16);
    color: #ffd489;
    text-decoration: none;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-3d {
    width: 23px;
    height: 23px;
    stroke: none;
    transition: transform .25s ease, filter .25s ease;
}

.nav-item:hover .icon-3d {
    transform: perspective(50px) rotateY(-14deg) rotateX(8deg) scale(1.12);
    filter: brightness(1.08);
}

.nav-item.active .icon-3d {
    transform: scale(1.08);
}

.icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: none;
    transition: transform .28s ease, filter .28s ease;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}

.nav-item:hover .icon-img {
    transform: perspective(60px) rotateY(-12deg) rotateX(6deg) scale(1.16);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)) brightness(1.08);
}

.nav-item.active .icon-img {
    transform: scale(1.12);
}

.icon-flat {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.nav-item.active .icon-flat {
    stroke: var(--accent);
}

.nav-lang {
    margin-left: auto;
}

/* Анимация иконок меню (только при наведении, без внешних ассетов) */
.icon-3d {
    --icon-play: paused;
}

.nav-item:hover .icon-3d {
    --icon-play: running;
}

#ico-home .home-roof,
#ico-about .about-cube,
#ico-apply .apply-lines,
#ico-reviews .star-shape,
#ico-gallery .gallery-photo {
    animation-play-state: var(--icon-play);
}

#ico-home .home-roof {
    animation: ic-home .75s ease-in-out infinite alternate;
    transform-origin: 12px 10px;
}

#ico-about .about-cube {
    animation: ic-about 1.5s ease-in-out infinite alternate;
    transform-origin: 12px 12px;
}

#ico-apply .apply-lines {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: ic-apply .9s ease-in-out infinite alternate;
}

#ico-reviews .star-shape {
    animation: ic-star 1s ease-in-out infinite alternate;
    transform-origin: 12px 12px;
}

#ico-gallery .gallery-photo {
    animation: ic-gallery .9s ease-in-out infinite alternate;
    transform-origin: 12px 12px;
}

@keyframes ic-home {
    to {
        transform: translateY(-1.5px) rotate(-2deg);
    }
}

@keyframes ic-about {
    to {
        transform: rotate(6deg) scale(1.04);
    }
}

@keyframes ic-apply {
    from {
        stroke-dashoffset: 24;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ic-star {
    to {
        transform: scale(1.09) rotate(5deg);
        filter: brightness(1.12);
    }
}

@keyframes ic-gallery {
    to {
        transform: translateY(-1.5px) rotate(-3deg);
    }
}

@media (prefers-reduced-motion: reduce) {

    #ico-home .home-roof,
    #ico-about .about-cube,
    #ico-apply .apply-lines,
    #ico-reviews .star-shape,
    #ico-gallery .gallery-photo {
        animation: none !important;
    }
}

.nav-button {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.logout-form {
    margin: 0;
}

.header-side {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.header-side .contact-label {
    display: none;
}

@media (min-width: 1200px) {
    .header-side .contact-label {
        display: inline;
    }
}

.header-phone,
.header-fb {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #dfe9e3;
    font-size: .82rem;
    white-space: nowrap;
}

.header-phone:hover,
.header-fb:hover {
    color: #fff;
    text-decoration: none;
}

.header-phone .contact-ico {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    background: var(--accent);
    color: #1d252b;
    font-size: .8rem;
}

.header-fb .social-icon {
    width: 22px;
    height: 22px;
}

.lang-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-select-wrap::after {
    content: '▾';
    position: absolute;
    right: .55rem;
    color: #cfe0d6;
    font-size: .7rem;
    pointer-events: none;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 9px;
    padding: .42rem 1.7rem .42rem .6rem;
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
    line-height: 1.2;
    min-width: 62px;
}

.lang-select:hover,
.lang-select:focus {
    background: rgba(242, 167, 43, .16);
    border-color: var(--accent);
    outline: none;
}

.lang-select option {
    color: #111111;
    background: #ffffff;
}

.lang-noscript {
    color: #cfe0d6;
    font-size: .8rem;
    margin-left: .4rem;
}

.lang-switch {
    display: flex;
    gap: .3rem;
    align-items: center;
    font-size: .82rem;
    color: #8fae9f;
}

.lang-switch a {
    color: #cfe0d6;
    font-weight: 600;
}

.lang-switch a.active {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .7rem 1.15rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    text-align: center;
    transition: transform .15s ease, background .15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #1d252b;
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #1d252b;
}

.btn-outline {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.btn-ghost {
    background: transparent;
    color: inherit;
}

.btn-light {
    background: #fff;
    color: var(--brand-dark);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    background: #20ba59;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp .wa-icon {
    flex-shrink: 0;
}

.btn-sm {
    padding: .42rem .7rem;
    font-size: .82rem;
}

.btn-block {
    width: 100%;
}

/* Hero and sections */
.hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #e9edef, #fafbfb);
    border-radius: var(--radius);
    padding: clamp(2rem, 5vw, 4rem);
    margin: 2rem 0;
    overflow: hidden;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--brand);
    font-size: .75rem;
    font-weight: 700;
}

.hero p {
    max-width: 62ch;
    color: #42554b;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 340px;
    border-radius: 18px;
    overflow: hidden;
}

.hero-fallback,
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-fallback {
    object-fit: contain;
    border-radius: 18px;
    transition: opacity .4s ease;
    background: radial-gradient(circle at 50% 60%, #eef3f0 0%, #dfe8e2 70%, #d3ded7 100%);
}

.hero-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.hero-art.dragging .hero-canvas canvas {
    cursor: grabbing;
}

.scene-hint {
    position: absolute;
    bottom: .7rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(29, 37, 43, .82);
    color: #fff;
    padding: .35rem .75rem;
    border-radius: 99px;
    font-size: .74rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.scene-ready .hero-fallback {
    opacity: 0;
    pointer-events: none;
}

.scene-ready .scene-hint {
    opacity: 1;
}

.scene-fallback .hero-canvas {
    display: none;
}

.section {
    margin: 2.5rem 0;
}

.section-tint {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.link {
    font-weight: 600;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.page-head {
    padding: 2.2rem 0 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}

.page-head p {
    color: var(--muted);
    max-width: 70ch;
}

.page-head .btn {
    margin-top: .5rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.cards>.card {
    height: 100%;
}

.cards-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-fleet {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-partners .partner-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cards-partners a.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    border-color: var(--accent);
    text-decoration: none;
}

.partner-featured {
    grid-column: span 3;
    background: #ffffff;
    border: 2px solid #e1e7e4;
    padding: 2rem;
    align-items: center;
    text-align: center;
}

.cards-partners .partner-featured h3 {
    margin-top: 1rem;
    font-size: 1.35rem;
    color: #0b2b40;
}

.cards-partners .partner-featured p {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.02rem;
}

.partner-logo-wrap {
    width: 100%;
    max-width: 380px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.partner-logo {
    max-height: 110px;
    max-width: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

a.partner-card:hover .partner-logo {
    transform: scale(1.04);
}

.partner-link-label {
    display: inline-block;
    margin-top: 1rem;
    color: #1877f2;
    font-weight: 700;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .partner-featured {
        grid-column: span 2;
    }
}

@media (max-width: 520px) {
    .partner-featured {
        grid-column: span 1;
        padding: 1.25rem;
    }

    .partner-logo-wrap {
        height: 90px;
    }

    .partner-logo {
        max-height: 85px;
    }
}

@media (max-width: 900px) {

    .cards-services,
    .cards-fleet {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {

    .cards-services,
    .cards-fleet {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #e7c98d;
    box-shadow: 0 14px 34px rgba(24, 34, 40, .14);
}

.card h3 {
    margin-bottom: .3rem;
}

.fleet-card {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
}

.fleet-card .fleet-photo {
    height: 180px;
    background: #eef2f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.fleet-card .fleet-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .6rem;
    transition: transform .4s ease;
}

.fleet-card:hover .fleet-photo img {
    transform: scale(1.08);
}

.fleet-card h3,
.fleet-card p {
    padding: 0 1rem;
}

.fleet-card h3 {
    margin-top: .9rem;
}

.fleet-card .fleet-type {
    font-size: .8rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: .3rem;
}

.fleet-card .muted {
    font-size: .8rem;
    margin-bottom: 1rem;
}

.fleet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .fleet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .fleet-grid {
        grid-template-columns: 1fr;
    }
}

.card-service .card-icon {
    font-size: 1.6rem;
    color: var(--accent-dark);
    margin-bottom: .5rem;
}

.card-with-photo {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
}

.service-photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef2f0;
}

.service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.card-service:hover .service-photo img {
    transform: scale(1.08);
}

.card-with-photo h3 {
    margin: .9rem 1rem 1rem;
    font-size: 1rem;
}

.card-fleet .fleet-badge {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #fff2dc;
    color: #8a5600;
    display: grid;
    place-items: center;
    margin-bottom: .7rem;
}

.card-news time {
    font-size: .78rem;
    color: var(--muted);
}

.card-news h3 {
    margin-top: .5rem;
}

.tag {
    display: inline-block;
    font-size: .7rem;
    padding: .18rem .5rem;
    border-radius: 99px;
    background: #edf1ee;
    color: var(--muted);
}

.tag-promo {
    background: #fff0d2;
    color: #8a5600;
    font-weight: 700;
}

.quote {
    margin: 0 0 1rem;
    border-left: 3px solid var(--brand);
    background: var(--surface);
    padding: 1rem 1.2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.quote footer {
    color: var(--muted);
    font-size: .85rem;
    margin-top: .6rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1rem;
}

.review-stars {
    color: var(--accent);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.photo-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.photo {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
}

.photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
}

.photo figcaption {
    padding: .7rem;
    display: flex;
    flex-direction: column;
    font-size: .85rem;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--brand-dark);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    margin: 3rem 0;
}

.cta-band h2 {
    margin: 0;
}

.map-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #e8ecea;
}

.map-embed {
    display: block;
    width: 100%;
    height: clamp(260px, 40vw, 420px);
    border: 0;
}

.map-section {
    margin-bottom: 3rem;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.7fr .9fr;
    gap: 2rem;
}

.about-cards {
    margin-top: 1.5rem;
}

.lead {
    font-size: 1.05rem;
    color: #3d5047;
}

.info-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: .35rem 0 .35rem 1.6rem;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

/* Messages */
.alert {
    padding: .8rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: .92rem;
}

.alert-success {
    background: #e2f3ea;
    color: #125c3c;
}

.alert-error {
    background: #fbe7e6;
    color: #8f2c28;
}

/* Auth */
.auth-wrap {
    display: grid;
    place-items: center;
    padding: 4rem 0;
}

.auth-card {
    width: min(420px, 94vw);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.auth-icon {
    font-size: 2rem;
    margin-bottom: .6rem;
}

.auth-hint {
    margin: 1rem 0 0;
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
}

/* Forms */
.form-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1rem;
}

.field-full {
    grid-column: 1 / -1;
}

.field label,
.field .field-label,
.field legend {
    font-weight: 600;
    font-size: .88rem;
    color: #33443c;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid #cbd6cf;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .92rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid rgba(20, 107, 78, .25);
    border-color: var(--brand);
}

.field-check {
    justify-content: flex-end;
}

.field-check label {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.field-check input {
    width: auto;
}

.field-error {
    color: var(--danger);
    font-size: .82rem;
    min-height: 1em;
}

.form-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.twofa-user-switch {
    max-width: 280px;
}

.twofa-action {
    margin: 1rem 0;
    max-width: 380px;
}

.twofa-setup {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    max-width: 460px;
}

.twofa-qr {
    display: inline-block;
    padding: .8rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.recovery-code {
    display: inline-block;
    padding: .4rem .7rem;
    background: #fff;
    border: 1px dashed var(--accent-dark);
    border-radius: 8px;
    font-size: 1.1rem;
    letter-spacing: .1em;
}

.current-image img {
    max-height: 130px;
    border-radius: 8px;
    margin-top: .4rem;
}

/* Wizard */
.wizard {
    max-width: 780px;
    margin: 0 auto;
}

.wizard-steps {
    list-style: none;
    display: flex;
    padding: 0;
    gap: .25rem;
    margin: 0 0 1.5rem;
}

.wizard-steps li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem;
    border-radius: 9px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: .82rem;
    color: var(--muted);
}

.wizard-steps li.active {
    border-color: var(--accent);
    background: #fff5e4;
    color: #7a4d04;
    font-weight: 700;
}

.wizard-steps li.completed {
    border-color: #f0c880;
    background: #fffaf1;
    color: #8a5600;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #25282e;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: .75rem;
    font-weight: 700;
    flex: none;
}

.wizard-steps li.active .step-num {
    background: var(--accent);
    color: #0e0e0e;
    font-weight: 800;
}

.wizard-steps li.completed .step-num {
    background: var(--accent);
    color: #1d252b;
    font-size: 0;
}

.wizard-steps li.completed .step-num::after {
    content: '✓';
    font-size: .8rem;
}

.wizard-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.wizard-nav {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
}

.wizard-nav [hidden] {
    display: none;
}

.slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: .5rem;
}

.slot-option {
    position: relative;
}

.slot-option input {
    position: absolute;
    opacity: 0;
}

.slot-option span {
    display: block;
    text-align: center;
    padding: .45rem .3rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    font-size: .9rem;
}

.slot-option span small {
    display: block;
    font-size: .62rem;
    line-height: 1.1;
    font-weight: 500;
}

.slot-option input:checked+span {
    background: var(--accent);
    border-color: var(--accent-dark);
    color: #1d252b;
    font-weight: 700;
}

.slot-unavailable span {
    cursor: not-allowed;
    border-style: dashed;
    background: #f0f2f3;
    color: #8a969b;
}

.slot-busy span {
    background: #eaf2fb;
    color: #1b5fa8;
    border-color: #cfe0f3;
}

.slot-blocked span {
    background: #f6e1df;
    color: #8d3029;
    border-color: #ecc3c0;
}

.slot-disabled span {
    opacity: .6;
}

.slot-past span {
    opacity: .45;
}

.works-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.check-item {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .55rem .7rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
}

.check-item input {
    width: auto;
}

.summary {
    background: #f2f5f6;
    border-radius: 10px;
    padding: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 0;
    border-bottom: 1px dashed #d2dadd;
}

.summary-row:last-child {
    border: 0;
}

.summary-row strong {
    text-align: right;
}

.success-card {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #e2f3ea;
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.success-card .summary {
    text-align: left;
    margin: 1.5rem 0;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.table th,
.table td {
    padding: .7rem .85rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.table thead th {
    background: #f0f4f1;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table .center,
.table-hours td {
    text-align: center;
}

.row-actions {
    display: flex;
    gap: .4rem;
    align-items: center;
}

.row-actions form {
    margin: 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    color: var(--brand);
}

.stat-card span {
    font-size: .84rem;
    color: var(--muted);
}

.stat-card-accent strong {
    color: var(--accent);
}

.badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-new {
    background: #e3f0ff;
    color: #1b5fa8;
}

.badge-confirmed {
    background: #dff3e6;
    color: #17663c;
}

.badge-rescheduled {
    background: #fff0d2;
    color: #8a5600;
}

.badge-completed {
    background: #e6ece8;
    color: #4c5c55;
}

.badge-cancelled {
    background: #f6e1df;
    color: #8d3029;
}

/* Admin tiles */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.admin-tile {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: var(--shadow);
    color: var(--ink);
}

.admin-tile:hover {
    border-color: var(--brand);
    text-decoration: none;
}

.admin-tile-icon {
    font-size: 1.7rem;
}

.admin-thumb {
    width: 54px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}

.admin-photo-card {
    padding: 0;
    overflow: hidden;
}

.admin-photo-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.admin-photo-body {
    padding: .9rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* Calendar */
.calendar-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.calendar-toolbar strong {
    min-width: 190px;
    text-align: center;
}

.calendar-legend {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.legend {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    margin-right: .3rem;
    vertical-align: middle;
}

.legend-free {
    background: #fff;
    border: 1px solid var(--line);
}

.legend-booked {
    background: #cfe7db;
}

.legend-blocked {
    background: #f0d6d4;
}

.legend-past {
    background: #ecefee;
}

.calendar-scroll {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.calendar-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: .8rem;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid var(--line);
    padding: .3rem;
    height: 52px;
}

.calendar-table thead th {
    background: #f0f4f1;
}

.calendar-table .time-col {
    width: 70px;
    text-align: center;
    color: var(--muted);
}

.slot-cell {
    cursor: pointer;
    text-align: center;
}

.slot-cell:hover {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.slot-cell .cell-content {
    display: block;
    padding: .35rem;
    border-radius: 6px;
    height: 100%;
}

.slot-cell.booked .cell-content {
    background: #dfe9e4;
    color: #33473d;
}

.slot-cell.status-new .cell-content {
    background: #e3f0ff;
    color: #1b5fa8;
}

.slot-cell.status-confirmed .cell-content {
    background: #dff3e6;
    color: #17663c;
}

.slot-cell.status-rescheduled .cell-content {
    background: #fff0d2;
    color: #8a5600;
}

.slot-cell.status-completed .cell-content {
    background: #e6ece8;
    color: #4c5c55;
}

.slot-cell.status-cancelled .cell-content {
    background: #f6e1df;
    color: #8d3029;
}

.slot-cell.blocked .cell-content {
    background: #f0d6d4;
    color: #8f2c28;
}

.slot-cell.past {
    background: #f5f6f6;
    cursor: default;
}

.slot-cell.today {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.cell-time {
    display: block;
    font-size: .7rem;
    color: var(--muted);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 25, 18, .6);
}

.modal-card {
    position: relative;
    width: min(480px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.modal-close {
    position: absolute;
    right: .7rem;
    top: .5rem;
    border: 0;
    background: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--muted);
}

.modal-card .field {
    margin-bottom: .8rem;
}

/* Footer */
.site-footer {
    background: #0e0e0e;
    color: #9a9a9a;
    padding: 1.5rem 0;
    font-size: .82rem;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #dfe7e2;
}

.footer-social:hover {
    color: #fff;
    text-decoration: none;
}

.social-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    background: #1877f2;
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    line-height: 1;
}

/* Слайдер демо-работ */
.work-slider {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slider-viewport {
    overflow: hidden;
    border-radius: var(--radius);
    touch-action: pan-y;
}

.slider-track {
    display: flex;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.slide {
    position: relative;
    flex: 0 0 100%;
    height: clamp(260px, 42vw, 460px);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(15, 22, 26, .88));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    align-items: flex-start;
}

.slide-overlay strong {
    font-size: 1.2rem;
}

.slide-overlay span {
    font-size: .88rem;
    color: #dfe6e8;
}

.slide-open {
    margin-top: .5rem;
}

.slider-arrow {
    position: absolute;
    top: 45%;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(29, 37, 43, .65);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}

.slider-arrow:hover {
    background: var(--accent);
    color: #1d252b;
}

.slider-prev {
    left: .8rem;
}

.slider-next {
    right: .8rem;
}

.slider-dots {
    position: absolute;
    bottom: .8rem;
    right: 1rem;
    display: flex;
    gap: .4rem;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
}

.slider-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 99px;
}

/* Lightbox галереи */
body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 17, 20, .92);
}

.lightbox-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1050px, 96vw);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-card img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .5);
}

.lightbox-nav {
    position: absolute;
    top: 42%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav:hover {
    background: var(--accent);
    color: #1d252b;
}

.lightbox-prev {
    left: .3rem;
}

.lightbox-next {
    right: .3rem;
}

.lightbox-close {
    position: absolute;
    top: -2.6rem;
    right: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    padding: .9rem 1rem 0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.lightbox-caption span {
    color: #b8c4c9;
    font-size: .88rem;
}

.back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 40;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: .2s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.back-to-top:hover {
    background: var(--accent);
    color: #1d252b;
}

/* JV Tehnika — главная */
.jv-landing {
    display: flex;
    height: 100vh;
    max-height: 100vh;
    background: #0e0e0e;
    overflow: hidden;
    position: relative;
}

.no-header .site-footer {
    display: none;
}

.jv-panel {
    width: 290px;
    flex-shrink: 0;
    background: #0e0e0e;
    color: #fff;
    padding: 2.2rem 2.2rem 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 60px) 100%, 0 100%);
    position: relative;
    z-index: 10;
}

.jv-panel-main {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.jv-panel-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
}

.jv-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: .3rem 0;
    cursor: pointer;
    flex-shrink: 0;
}

.jv-burger span {
    display: block;
    width: 32px;
    height: 4px;
    background: #ffffff;
    border-radius: 1px;
    transition: background .2s ease;
}

.jv-burger:hover span {
    background: var(--accent);
}

.jv-caption {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #ffffff;
    line-height: 1.2;
}

.jv-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    margin-top: 0.2rem;
}

.jv-logo-wrap img {
    width: 145px;
    height: auto;
    display: block;
}

.jv-facebook {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #d8d8d8;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: color .2s ease;
}

.jv-facebook:hover {
    color: var(--accent);
    text-decoration: none;
}

.jv-facebook .social-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 1.15rem;
    background: #1877f2;
    color: #fff;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    transition: background .2s ease, transform .2s ease;
}

.jv-facebook:hover .social-icon {
    background: #0e62d0;
    transform: scale(1.08);
}

.jv-panel-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    margin-top: 0;
}

.jv-contact-title {
    color: #8c8c8c;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .15rem;
}

.jv-phone {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: .02em;
}

.jv-phone:hover {
    color: var(--accent);
    text-decoration: none;
}

.jv-email {
    color: #e0e0e0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.jv-email:hover {
    color: var(--accent);
    text-decoration: none;
}

.jv-address {
    color: var(--accent);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .01em;
}

.jv-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    min-height: 44px;
    margin-top: 0.8rem;
    background: var(--accent);
    color: #111;
    border: 0;
    border-radius: 3px;
    padding: .85rem 1.8rem;
    font: inherit;
    font-weight: 800;
    font-size: 1.02rem;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 12px rgba(245, 179, 0, 0.25);
}

.jv-panel .jv-cta {
    transform: skewX(calc(-1 * var(--col-slant-deg, 3.8deg)));
    transform-origin: 50% 50%;
}

.jv-panel .jv-cta>span {
    display: inline-block;
    transform: skewX(var(--col-slant-deg, 3.8deg));
}

.jv-cta:hover {
    background: #ffc93c;
    color: #111;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 179, 0, 0.4);
}

.jv-panel .jv-cta:hover {
    transform: skewX(calc(-1 * var(--col-slant-deg, 3.8deg))) translateY(-2px);
}

.jv-wa-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 44px;
    margin-top: 0.7rem;
    background: #18191b;
    color: #25d366;
    border: 1.5px solid #25d366;
    border-radius: 3px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    transform: skewX(calc(-1 * var(--col-slant-deg, 3.8deg)));
    transform-origin: 50% 50%;
}

.jv-wa-cta>span {
    display: inline-block;
    transform: skewX(var(--col-slant-deg, 3.8deg));
}

.jv-wa-cta .wa-icon {
    flex-shrink: 0;
    transform: skewX(var(--col-slant-deg, 3.8deg));
}

.jv-wa-cta:hover {
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    transform: skewX(calc(-1 * var(--col-slant-deg, 3.8deg))) translateY(-2px);
}

/* Колонки техники — состыковка со скосом, выравнивание по верху */
.jv-columns-wrapper {
    flex: 1;
    display: flex;
    min-width: 0;
    margin-left: -60px;
    padding: 0;
    overflow: hidden;
    background: #0a0a0a;
    align-items: stretch;
}

.tech-col {
    flex: 1;
    min-width: 0;
    margin-left: 0;
    clip-path: polygon(63px 0, 100% 0, calc(100% - 60px) 100%, 3px 100%);
    background: var(--col-bg, #edf0f3);
    transform: translateX(320px);
    opacity: 0;
    transition: transform 1.35s cubic-bezier(.16, 1, .3, 1), opacity 1.1s ease, background .25s ease;
    will-change: transform, opacity;
    cursor: pointer;
    position: relative;
}

.tech-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
    z-index: 10;
    transition: background .25s ease;
}

.tech-col.active::before {
    background: var(--accent);
}

.tech-col+.tech-col {
    margin-left: -60px;
}

.tech-col:last-child {
    clip-path: polygon(63px 0, 100% 0, 100% 100%, 3px 100%);
}

.tech-col.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.tech-col.active {
    background: var(--col-bg-active, #ffffff);
}

.tech-col:hover:not(.active) {
    background: var(--col-bg-hover, #f7f9fa);
}

.jv-col-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.8rem 1.5rem 2rem calc(63px + 1.2rem);
    gap: 0;
}

.tech-col:not(:last-child) .jv-col-inner,
.tech-col:last-child .jv-col-inner {
    padding-right: calc(60px + 1.2rem);
}

.jv-tab {
    background: transparent;
    color: #111;
    border: 0;
    padding: .2rem .5rem .8rem .5rem;
    text-align: center;
    cursor: pointer;
    font: inherit;
    flex-shrink: 0;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jv-tab-title {
    display: inline-block;
    font-size: 1.15rem;
    white-space: nowrap;
    font-weight: 700;
    color: var(--col-title, #484f56);
    letter-spacing: .02em;
    transition: color .2s ease, transform .2s ease;
}

.tech-col.active .jv-tab-title {
    color: var(--col-title-active, #0e0e0e);
    font-weight: 900;
}

.jv-tab:hover .jv-tab-title,
.tech-col:hover .jv-tab-title {
    color: var(--col-title-active, #0e0e0e);
    transform: translateY(-1px);
}

.jv-machine {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 200px;
    flex-shrink: 0;
    padding: 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background .3s ease;
    overflow: hidden;
}

.tech-col.active .jv-machine {
    background: var(--col-machine-glow, none);
    border-radius: 12px;
}

.jv-machine img {
    width: auto;
    height: auto;
    max-width: 92%;
    max-height: 175px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .22));
    opacity: 0.88;
    transition: transform .35s ease, filter .35s ease, opacity .3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.tech-col.active .jv-machine img,
.tech-col:hover .jv-machine img {
    opacity: 1;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .36));
}

.tech-col.active .jv-machine img {
    transform: scale(1.04);
}

/* Визуальное выравнивание техники по величине */
.tech-col[data-index="1"] .jv-machine img {
    transform: scale(1.0);
}

.tech-col[data-index="1"].active .jv-machine img {
    transform: scale(1.04);
}

.tech-col[data-index="2"] .jv-machine img {
    transform: scale(1.0);
}

.tech-col[data-index="2"].active .jv-machine img {
    transform: scale(1.04);
}

.tech-col[data-index="3"] .jv-machine img {
    transform: scale(1.0);
}

.tech-col[data-index="3"].active .jv-machine img {
    transform: scale(1.04);
}

/* Вибрация и отдача двигателя при клике */
@keyframes engineRumble {
    0% {
        transform: scale(1.04) translate(0, 0);
    }

    15% {
        transform: scale(1.07) translate(-1.5px, 1.5px);
    }

    30% {
        transform: scale(1.05) translate(1.5px, -1.5px);
    }

    45% {
        transform: scale(1.07) translate(-1.5px, -1px);
    }

    60% {
        transform: scale(1.05) translate(1px, 1.5px);
    }

    75% {
        transform: scale(1.06) translate(-0.5px, 0.5px);
    }

    100% {
        transform: scale(1.04) translate(0, 0);
    }
}

@keyframes engineRumbleKubota {
    0% {
        transform: scale(1.23) translate(0, 0);
    }

    15% {
        transform: scale(1.26) translate(-1.5px, 1.5px);
    }

    30% {
        transform: scale(1.24) translate(1.5px, -1.5px);
    }

    45% {
        transform: scale(1.26) translate(-1.5px, -1px);
    }

    60% {
        transform: scale(1.24) translate(1px, 1.5px);
    }

    75% {
        transform: scale(1.25) translate(-0.5px, 0.5px);
    }

    100% {
        transform: scale(1.23) translate(0, 0);
    }
}

@keyframes engineRumbleCase {
    0% {
        transform: scale(1.15) translate(0, 0);
    }

    15% {
        transform: scale(1.18) translate(-1.5px, 1.5px);
    }

    30% {
        transform: scale(1.16) translate(1.5px, -1.5px);
    }

    45% {
        transform: scale(1.18) translate(-1.5px, -1px);
    }

    60% {
        transform: scale(1.16) translate(1px, 1.5px);
    }

    75% {
        transform: scale(1.17) translate(-0.5px, 0.5px);
    }

    100% {
        transform: scale(1.15) translate(0, 0);
    }
}

.tech-col[data-index="0"] .jv-machine img.engine-rumble {
    animation: engineRumble .65s ease-in-out;
}

.tech-col[data-index="1"] .jv-machine img.engine-rumble {
    animation: engineRumbleKubota .65s ease-in-out;
}

.tech-col[data-index="2"] .jv-machine img.engine-rumble {
    animation: engineRumbleCase .65s ease-in-out;
}

/* Анимация заезда машины справа налево при переключении */
@keyframes machineSlideInRight {
    from {
        opacity: 0.3;
        transform: translateX(55px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1.03);
    }
}

.jv-machine img.slide-in-right {
    animation: machineSlideInRight .45s cubic-bezier(.16, 1, .3, 1) forwards;
}

/* Обертка полок и списка работ — наклон со скосом колонки */
.jv-works-wrap {
    display: flex;
    flex-direction: column;
    transform: skewX(calc(-1 * var(--col-slant-deg, 3.8deg)));
    transform-origin: 50% 50%;
}

/* Жёлтая полка переключается по разделам */
.jv-shelf {
    height: 18px;
    background: var(--col-shelf-bg, #18191b);
    border: 2px solid #0e0e0e;
    border-radius: 2px;
    flex-shrink: 0;
    position: relative;
    margin: 0.3rem 0 1rem 0;
    transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.tech-col:hover:not(.active) .jv-shelf {
    background: #25282c;
}

.tech-col.active .jv-shelf {
    background: linear-gradient(180deg, #ffc83b 0%, #f5a800 100%);
    border-color: #0e0e0e;
    box-shadow: 0 4px 18px rgba(245, 168, 0, 0.55);
}

/* Блоки под полкой */
.jv-works {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

.jv-work {
    background: var(--col-work-bg, #1c1e20);
    color: var(--col-work-text, #e5e7eb);
    border: 0;
    border-radius: 2px;
    padding: .85rem 1.1rem;
    text-align: center;
    cursor: pointer;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
    transition: background .2s ease, transform .2s ease, color .2s ease, box-shadow .2s ease;
}

.tech-col.active .jv-work {
    background: var(--col-work-active-bg, #0e0e0e);
    color: var(--col-work-active-text, #ffffff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}

.jv-work>span {
    display: inline-block;
    transform: skewX(var(--col-slant-deg, 3.8deg));
}

.jv-work:hover,
.jv-work:focus-visible {
    background: var(--accent);
    color: #0e0e0e;
    font-weight: 800;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 168, 0, 0.45);
}

.jv-drawer,
.jv-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
}

.jv-drawer[hidden],
.jv-modal[hidden] {
    display: none;
}

.jv-drawer-backdrop,
.jv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
}

.jv-drawer-nav {
    position: relative;
    z-index: 1;
    height: 100%;
    width: min(320px, 86vw);
    background: #0e0e0e;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 2rem 1.5rem;
}

.jv-drawer-nav a {
    color: #fff;
    padding: .8rem .4rem;
    border-bottom: 1px solid #2a2a2a;
}

.jv-drawer-nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

.jv-drawer-lang {
    padding: .4rem;
}

.jv-drawer-lang .lang-select {
    width: 100%;
    background: #232323;
    color: #f0f2f5;
    border-color: #363940;
    color-scheme: dark;
}

.jv-drawer-lang .lang-select option {
    background: #18191c;
    color: #f0f2f5;
}

.jv-drawer-phone {
    color: var(--accent) !important;
    font-weight: 700;
}

.jv-drawer-close,
.jv-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.jv-modal-card {
    position: relative;
    z-index: 1;
    width: min(480px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    background: #141414;
    color: #fff;
    padding: 2rem;
    border-top: 6px solid var(--accent);
}

.jv-modal-card h2 {
    margin-bottom: 1rem;
}

.jv-selected {
    background: #232323;
    padding: .8rem 1rem;
    margin-bottom: 1rem;
}

.jv-selected .field-label {
    color: #bdbdbd;
}

.jv-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.jv-modal-card .field input,
.jv-modal-card .field textarea {
    background: #fff;
    color: #111;
}

.jv-modal-card .jv-cta {
    width: 100%;
}

.jv-modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.2rem 0;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.jv-modal-divider::before,
.jv-modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

.jv-modal-divider span {
    padding: 0 0.8rem;
}

/* Мягкое появление блоков при прокрутке */
.revealed {
    animation: reveal .55s ease both;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1050px) {
    .jv-landing {
        flex-direction: column;
        height: auto;
        max-height: none;
        overflow-y: auto;
        background: var(--bg);
    }

    body.no-header {
        overflow: auto;
        height: auto;
    }

    .jv-panel {
        width: 100%;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 1.25rem;
        clip-path: none;
    }

    .jv-panel-main {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .jv-panel-top {
        flex-direction: row;
        align-items: center;
    }

    .jv-logo-wrap img {
        width: 70px;
    }

    .jv-panel-bottom {
        flex-direction: row;
        align-items: center;
        gap: .8rem;
        margin-left: auto;
        margin-top: 0;
        flex-wrap: wrap;
    }

    .jv-cta {
        margin-top: 0;
    }

    .jv-panel .jv-cta,
    .jv-panel .jv-cta>span {
        transform: none;
    }

    .jv-wa-cta {
        transform: none;
        margin-top: 0;
    }

    .jv-wa-cta>span,
    .jv-wa-cta .wa-icon {
        transform: none;
    }

    .jv-columns-wrapper {
        flex-direction: column;
        overflow: visible;
        padding: 1.25rem 1rem;
        margin-left: 0;
        background: var(--bg);
        gap: 1.25rem;
    }

    .tech-col,
    .tech-col.is-visible,
    .tech-col:last-child,
    .tech-col+.tech-col {
        transform: none;
        opacity: 1;
        clip-path: none;
        margin-left: 0;
        margin-bottom: 0;
        background: var(--surface);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        border-radius: 12px;
    }

    .tech-col::before {
        display: none;
    }

    .tech-col .jv-tab-title {
        color: var(--col-title-active);
        font-size: 1.2rem;
    }

    .jv-col-inner,
    .tech-col:not(:last-child) .jv-col-inner,
    .tech-col:last-child .jv-col-inner {
        padding: 1.35rem 1.15rem;
    }

    .jv-works-wrap {
        transform: none;
    }

    .jv-shelf {
        display: none !important;
    }

    .jv-work {
        transform: none;
        clip-path: none;
        font-size: .95rem;
        padding: .6rem .95rem;
        border-radius: 6px;
    }

    .jv-work>span {
        transform: none;
    }

    .jv-machine {
        height: 185px;
        margin-bottom: .5rem;
    }
}

@media (max-width: 640px) {
    .jv-panel {
        padding: .9rem 1rem;
    }

    .jv-panel-main {
        width: 100%;
        justify-content: space-between;
        gap: .75rem;
    }

    .jv-panel-bottom {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .55rem;
    }

    .jv-panel-bottom .jv-cta,
    .jv-panel-bottom .jv-wa-cta {
        width: 100%;
        justify-content: center;
    }

    .jv-contact-title,
    .jv-address {
        font-size: .92rem;
    }
}

@media (max-width: 1250px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
    }

    .brand-text strong {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    .topbar-region {
        display: none;
    }

    .public-area .main-nav .nav-item span {
        display: inline;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 260px;
    }

    .two-columns,
    .about-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: .7rem 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        overflow: visible;
        justify-content: space-between;
    }

    .header-contact {
        gap: .4rem;
    }

    .header-side .contact-label {
        display: none;
    }

    .form-grid,
    .works-list {
        grid-template-columns: 1fr;
    }

    .photo-grid,
    .photo-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
    }

    .main-content {
        padding-top: .75rem;
        padding-bottom: 2.25rem;
    }

    .page-head {
        margin-bottom: 1.25rem;
    }

    .card {
        padding: 1.25rem;
    }
}

@media (max-width: 420px) {
    .photo-grid-large {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 1.65rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .jv-phone {
        font-size: .95rem;
    }

    .topbar-fb-text {
        display: none;
    }

    .topbar-contacts {
        gap: .8rem;
    }

    .brand-text strong {
        font-size: .88rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-item {
        padding: .5rem .6rem;
    }

    .nav-item span {
        font-size: .82rem;
    }

    .wizard-steps {
        gap: .35rem;
        margin-bottom: 1.1rem;
    }

    .wizard-steps .step-label {
        display: none;
    }

    .wizard-steps li {
        justify-content: center;
        padding: .5rem;
    }

    .wizard-step {
        padding: 1.15rem 1rem;
    }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #f0f2f5;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease, color .2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.96);
}

.theme-toggle svg {
    display: none;
    pointer-events: none;
}

/* In Light mode: show Moon (switch to dark) */
:root .theme-toggle .theme-icon-moon,
html:not([data-theme="dark"]) .theme-toggle .theme-icon-moon {
    display: block;
}

:root .theme-toggle .theme-icon-sun,
html:not([data-theme="dark"]) .theme-toggle .theme-icon-sun {
    display: none;
}

/* In Dark mode: show Sun (switch to light) */
html[data-theme="dark"] .theme-toggle .theme-icon-sun {
    display: block;
    color: #ffc83b;
}

html[data-theme="dark"] .theme-toggle .theme-icon-moon {
    display: none;
}

/* Landing panel & drawer specific toggle placement */
.jv-theme-toggle {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.jv-drawer-lang {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Dark mode component styles */
html[data-theme="dark"] .site-header {
    background: #111214;
    border-bottom: 1px solid #22252a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .site-footer {
    background: #0b0c0d;
    border-top: 1px solid #1a1c20;
    color: #7d858f;
}

html[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #15171a 0%, #1a1d22 100%);
    border: 1px solid #272a2e;
}

html[data-theme="dark"] .hero p {
    color: #a4acb5;
}

html[data-theme="dark"] .card {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
    background: #121316;
    color: #f0f2f5;
    border-color: #2c3036;
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus {
    outline: 2px solid rgba(245, 168, 0, .35);
    border-color: var(--accent);
}

html[data-theme="dark"] .page-head {
    border-bottom-color: #25282d;
}

html[data-theme="dark"] .tag {
    background: #23262c;
    color: #c2c8d0;
}

html[data-theme="dark"] .tag-promo {
    background: #382900;
    color: #ffc83b;
}

html[data-theme="dark"] .service-photo,
html[data-theme="dark"] .fleet-card .fleet-photo {
    background: #191b1f;
}

html[data-theme="dark"] .card-fleet .fleet-badge {
    background: #382900;
    color: #ffc83b;
}

html[data-theme="dark"] .reviews-grid .card,
html[data-theme="dark"] .quote {
    background: var(--surface);
    border-color: var(--line);
}

html[data-theme="dark"] .info-box {
    background: #121316 !important;
    border: 1px solid #282b30;
}

html[data-theme="dark"] .table-wrap table {
    color: var(--ink);
}

html[data-theme="dark"] th,
html[data-theme="dark"] td {
    border-bottom-color: var(--line);
}

html[data-theme="dark"] .nav-item {
    color: #cfd4dc;
}

html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .nav-item.active {
    color: var(--accent);
}

html[data-theme="dark"] .lang-select {
    background: #1a1c20;
    color: #e5e7eb;
    border-color: #2d3036;
    color-scheme: dark;
}

html[data-theme="dark"] .lang-select option {
    background: #18191c;
    color: #f0f2f5;
}

html[data-theme="dark"] .wizard-steps li.active {
    background: rgba(245, 168, 0, 0.14);
    border-color: var(--accent);
    color: var(--ink);
}

html[data-theme="dark"] .wizard-steps li.completed {
    background: rgba(245, 168, 0, 0.06);
    border-color: rgba(245, 168, 0, 0.4);
    color: #e5e7eb;
}

html[data-theme="dark"] .step-num {
    background: #2c3036;
    color: #f0f2f5;
}

html[data-theme="dark"] .wizard-steps li.active .step-num {
    background: var(--accent);
    color: #0e0e0e;
}

html[data-theme="dark"] .summary {
    background: #121316;
    border: 1px solid var(--line);
}

html[data-theme="dark"] .summary-row {
    border-bottom-color: var(--line);
}

html[data-theme="dark"] .slot-unavailable span {
    background: #1a1c20;
    color: #6b7280;
    border-color: #2d3036;
}

/* --- Analytics & Statistics Module --- */
.period-pills {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.period-label {
    font-weight: 700;
    font-size: .88rem;
    color: var(--muted);
    margin-right: .3rem;
}

.period-pill {
    padding: .35rem .85rem;
    border-radius: 99px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.period-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.period-pill.active {
    background: var(--accent);
    color: #0e0e0e;
    border-color: var(--accent);
    font-weight: 800;
}

.metric-row {
    margin-bottom: .85rem;
}

.metric-meta {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    margin-bottom: .25rem;
}

.metric-bar-bg {
    width: 100%;
    height: 7px;
    background: rgba(120, 130, 140, .15);
    border-radius: 99px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease;
}

.tags-cluster {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.chart-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.btn-group {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
    margin: 0;
}

.btn-group .btn:not(:first-child) {
    border-left: 0;
}

.svg-container {
    width: 100%;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.stats-svg {
    width: 100%;
    height: auto;
    min-width: 580px;
    display: block;
}

.chart-bar {
    transition: transform .2s ease, opacity .2s ease;
    cursor: pointer;
}

.chart-bar-group:hover .chart-bar,
.chart-bar-group:focus .chart-bar {
    fill: url(#barGradHover) !important;
    transform: translateY(-2px);
}

.chart-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: .84rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: .8rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.annual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 800px) {
    .annual-grid {
        grid-template-columns: 1fr;
    }
}

.source-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.source-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
}

.source-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.source-name {
    flex: 1;
}

.filter-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-col {
    flex: 1;
    min-width: 150px;
}

.filter-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.field-input {
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
}

.badge-source {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: capitalize;
    background: #edf1ee;
    color: var(--ink);
}

.badge-direct {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-google {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-facebook {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-instagram {
    background: #fce7f3;
    color: #be185d;
}

.badge-sslv {
    background: #fef3c7;
    color: #b45309;
}

.path-badge {
    background: rgba(120, 130, 140, .12);
    padding: .15rem .45rem;
    border-radius: 4px;
    font-size: .82rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

html[data-theme="dark"] .badge-direct {
    background: #082f49;
    color: #7dd3fc;
}

html[data-theme="dark"] .badge-google {
    background: #450a0a;
    color: #fca5a5;
}

html[data-theme="dark"] .badge-facebook {
    background: #172554;
    color: #93c5fd;
}

html[data-theme="dark"] .badge-instagram {
    background: #500724;
    color: #f472b6;
}

html[data-theme="dark"] .badge-sslv {
    background: #451a03;
    color: #fde047;
}

html[data-theme="dark"] .field-input {
    background: #121316;
    border-color: #2c3036;
    color: #f0f2f5;
}

html[data-theme="dark"] .period-pill {
    background: #1a1c20;
    border-color: #2d3036;
    color: #cfd4dc;
}

html[data-theme="dark"] .period-pill.active {
    background: var(--accent);
    color: #0e0e0e;
    border-color: var(--accent);
}

/* ===== About Page 3D Flip Business Card ===== */
.flip-card {
    width: 100%;
    aspect-ratio: 1024 / 686;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 12px;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flip-card-back {
    transform: rotateY(180deg);
}