/* ==========================================================================
   Таксопарк «Вектор» г. Пермь — Mobile-First Clean Studio CSS
   ========================================================================== */

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 88px;
}

#wrapwrap {
    width: 100%;
    min-height: 100dvh;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
}

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

/* Sticky Header */
.sticky-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
}

/* Links & Keyboard Focus */
a, a:hover, a:focus, a:active, a:visited {
    text-decoration: none !important;
}

.legal-link, .legal-link:hover {
    text-decoration: underline !important;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #EAB308 !important;
    outline-offset: 2px !important;
}

/* Fix broken JetBrains Mono fallback: clean geometric sans with tabular numbers */
.font-mono {
    font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Base & Typography */
body {
    background-color: #F6F5F1 !important;
    color: #18181B !important;
    font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 16px;
    letter-spacing: -0.01em;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .serif-heading {
    font-family: 'Unbounded', 'Manrope', system-ui, sans-serif !important;
}

.serif-heading {
    font-family: 'Unbounded', 'Manrope', system-ui, sans-serif !important;
    letter-spacing: -0.03em !important;
    font-weight: 700 !important;
    line-height: 1.16 !important;
}

/* Highlight Marker inside H1 (high 11:1 contrast dark ink on taxi gold) */
.hero-highlight {
    background-color: #FACC15;
    color: #18181B;
    padding: 0.04em 0.32em 0.08em;
    border-radius: 12px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Primary CTA Button — flat, tactile, thumb-friendly 44px+ */
.btn-gold {
    background-color: #EAB308 !important;
    color: #18181B !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    padding: 11px 20px !important;
    min-height: 44px;
    font-size: 14px !important;
    transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap !important;
}

.btn-gold.hidden {
    display: none !important;
}

@media (min-width: 640px) {
    .btn-gold.sm\:inline-flex {
        display: inline-flex !important;
    }
}

@media (min-width: 640px) {
    .btn-gold {
        padding: 12px 26px !important;
        font-size: 14px !important;
    }
}

.btn-gold:hover {
    background-color: #FACC15 !important;
    transform: translateY(-1px);
    color: #18181B !important;
}

.btn-gold:active {
    transform: translateY(0);
}

/* Secondary Surface Button */
.btn-outline {
    background-color: #FFFFFF !important;
    color: #18181B !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    padding: 11px 20px !important;
    min-height: 44px;
    font-size: 14px !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap !important;
}

.btn-outline:hover {
    background-color: #FEF9C3 !important;
    color: #18181B !important;
}

/* Social & Messenger Pills */
.social-pill {
    background-color: #F6F5F1 !important;
    color: #18181B !important;
    min-height: 42px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.social-pill:hover, .social-pill:focus {
    background-color: #FEF08A !important;
    transform: translateY(-1px) !important;
    color: #18181B !important;
    text-decoration: none !important;
}

/* Clean Studio Card — separated by surface tone, zero resting shadow */
.card-studio {
    background-color: #FFFFFF !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease !important;
}

.card-studio:hover {
    transform: translateY(-2px);
}

/* Full-bleed Catalog Car Card, Flagship Configurator & Advantage Editorial Photos */
.car-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.4;
    border-radius: 18px;
    overflow: hidden;
    background-color: #18181B;
}

.car-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-studio:hover .car-card-img {
    transform: scale(1.04);
}

.flagship-car-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background-color: #18181B;
}

.flagship-car-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

.advantage-photo-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    border-radius: 22px;
    overflow: hidden;
    background-color: #18181B;
}

.advantage-photo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.advantage-row:hover .advantage-photo-img {
    transform: scale(1.03);
}

/* Swatches & Model Pills */
.swatch-btn {
    background-color: #FFFFFF;
    color: #3F3F46;
    min-height: 42px;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.swatch-btn:hover {
    background-color: #FEF9C3;
    color: #18181B;
}

.swatch-btn.active {
    background-color: #EAB308 !important;
    color: #18181B !important;
    font-weight: 800 !important;
}

.model-pill {
    background-color: #FFFFFF;
    color: #3F3F46;
    min-height: 40px;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.model-pill:hover {
    background-color: #FEF9C3;
    color: #18181B;
}

.model-pill.active {
    background-color: #EAB308 !important;
    color: #18181B !important;
    font-weight: 800 !important;
}

/* Inputs */
.input-gold {
    background-color: #F6F5F1;
    border: 1px solid #D4D4D8;
    min-height: 46px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.input-gold:focus {
    outline: none;
    border-color: #EAB308;
    background-color: #FFFFFF;
}

/* Hero UMO 360 Card */
.umo-hero-card {
    background: #DFE0E2;
}

.umo-video-fullbleed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Reviews Carousel */
.reviews-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding-top: 12px !important;
    padding-bottom: 16px !important;
    margin-top: -12px !important;
    margin-bottom: -16px !important;
}

.reviews-track {
    display: flex;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    will-change: transform;
    cursor: grab;
}

.reviews-track:active {
    cursor: grabbing;
}

.review-slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

@media (min-width: 640px) {
    .review-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1024px) {
    .review-slide {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Checkbox */
.legal-checkbox {
    accent-color: #EAB308;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Container Width Constraints */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

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