.button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    min-height: 48px;
    border: 1px solid var(--urban-line-strong);
    padding: 0 24px;
    color: var(--urban-white);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-align: center;
    white-space: normal;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

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

.button:hover::after { opacity: 1; }

.button--light {
    background: var(--urban-white);
    border-color: var(--urban-white);
    color: var(--urban-black);
    display: inline-flex;
}

.button--light:hover {
    background: transparent;
    color: var(--urban-white);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--urban-white);
}

.button--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--urban-white);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0) rotate(45deg); }
    40% { transform: translateX(-50%) translateY(-10px) rotate(45deg); }
    60% { transform: translateX(-50%) translateY(-5px) rotate(45deg); }
}

.home-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 34px;
    height: 34px;
    border-right: 1px solid var(--urban-white);
    border-bottom: 1px solid var(--urban-white);
    transform: translateX(-50%) rotate(45deg);
    opacity: .82;
    animation: scrollBounce 2.5s infinite;
    transition: opacity 180ms ease;
}

.home-hero__scroll:hover { opacity: 1; border-color: var(--urban-silver); }

/* Shared page introduction used by catalog, company, services, and contacts. */
.page-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 62svh;
    padding: 140px var(--home-content-gutter) 72px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.page-hero > div {
    opacity: 0;
    transform: translateY(24px);
    animation: pageHeroIn 700ms cubic-bezier(.16, 1, .3, 1) forwards;
}

.page-hero h1 {
    max-width: 1050px;
    margin: 0;
    font-family: var(--urban-font-display);
    font-size: clamp(2.5rem, 6.5vw, 6.5rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--urban-silver);
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.6;
}

@keyframes pageHeroIn {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 780px) {
    .page-hero { min-height: 62svh; padding: 120px var(--home-content-gutter) 56px; }
}

@media (max-width: 480px) {
    .page-hero { min-height: 58svh; }
    .page-hero h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
}

.page-hero.page-hero--full {
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 100px;
}

.floating-call {
   position: fixed;
   right: 66px;
   bottom: 72px;
   z-index: 100;

   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 12px;
}

body.car-details-page:not(.has-scrolled) .floating-call {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
}

body.car-details-page .floating-call {
    transition: opacity 250ms ease, transform 250ms ease, visibility 250ms ease;
}

.floating-call__hint {
    position: relative;
    padding: 11px 16px;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--urban-line-strong);

    color: var(--urban-white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    pointer-events: none;
}

.floating-call__hint::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;

    width: 10px;
    height: 10px;

    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--urban-line-strong);
    border-bottom: 1px solid var(--urban-line-strong);

    transform: translateX(-50%) rotate(45deg);
}

.floating-call-button {
    position: relative;
    isolation: isolate;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;
    min-height: 46px;
    white-space: nowrap;

    box-shadow:
            0 4px 14px rgba(0, 0, 0, 0.2),
            0 0 0 rgba(255, 255, 255, 0);

    animation: floatingCallAttention 3.5s ease-in-out infinite;

    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease;
}

.floating-call-button::before {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;

    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: inherit;

    opacity: 0;
    transform: scale(0.85);

    animation: floatingCallRing 3.5s ease-out infinite;
}

.floating-call-button::after {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;

    border-radius: inherit;
    background: rgba(255, 255, 255, 0.2);

    opacity: 0;
    filter: blur(12px);

    animation: floatingCallGlow 3.5s ease-in-out infinite;
}

.floating-call-button span {
    display: inline-block;
    position: relative;
    z-index: 1;
}

@keyframes floatingCallAttention {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    }

    8% {
        transform: translateY(-12px) scale(1.06);
        box-shadow:
                0 12px 28px rgba(0, 0, 0, 0.3),
                0 0 22px rgba(255, 255, 255, 0.3);
    }

    16% {
        transform: translateY(0) scale(1);
    }

    22% {
        transform: translateY(-5px) scale(1.02);
    }

    28% {
        transform: translateY(0) scale(1);
    }

    35% {
        transform: scale(1);
    }
}

@keyframes floatingCallRing {
    0%, 5% {
        opacity: 0;
        transform: scale(0.85);
    }

    12% {
        opacity: 0.8;
    }

    35% {
        opacity: 0;
        transform: scale(1.45);
    }

    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

@keyframes floatingCallGlow {
    0%, 100% {
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    25% {
        opacity: 0;
    }
}

.floating-call-button:hover {
    animation-play-state: paused;

    transform: translateY(-4px) scale(1.04);

    box-shadow:
            0 12px 28px rgba(0, 0, 0, 0.3),
            0 0 24px rgba(255, 255, 255, 0.3);
}

.floating-call-button:hover::before,
.floating-call-button:hover::after {
    animation-play-state: paused;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .floating-call-button,
    .floating-call-button::before,
    .floating-call-button::after {
        animation: none;
    }
}

@media (max-width: 680px) {
    .floating-call {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }

    .floating-call__hint {
        padding: 9px 12px;
        font-size: 12px;
    }

    .floating-call-button {
        padding: 10px 16px;
        min-height: 42px;
    }
}


.floating-call__hint {
    animation: floatingHintAttention 3.5s ease-in-out infinite;
}

@keyframes floatingHintAttention {
    0%, 100% {
        transform: translateY(0);
        border-color: var(--urban-line-strong);
    }

    10% {
        transform: translateY(-3px);
        border-color: rgba(255, 255, 255, 0.55);
    }

    25% {
        transform: translateY(0);
        border-color: var(--urban-line-strong);
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-call__hint {
        animation: none;
    }
}
.contact-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity .25s ease, transform .25s ease, background .25s ease;
}

.contact-submit:disabled {
    cursor: wait;
    opacity: .78;
}

.contact-submit__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

.is-loading .contact-submit__spinner {
    display: inline-block;
    animation: contact-submit-spin .7s linear infinite;
}

@keyframes contact-submit-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .is-loading .contact-submit__spinner { animation-duration: 1.4s; }
}
