:root {
    --primary: #D20A0A;
    --primary-600: #A00808;
    --bg: #0B0C0F;
    --ink: #F3F5F7;
    --muted: #cfd2d8;
    --line: #22262e;
    --radius: 14px;
    --rz: all .28s cubic-bezier(.25, .46, .45, .94);
    --header-h: 64px;
    --container: 1320px;
    --pad-y: 45px;
}
html {
    scroll-behavior: auto;
}
html, body { height: 100%; }
#smooth-content { will-change: transform; }
::-webkit-scrollbar {
    width: 20px; /* width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #ff0000;
}

/*::-webkit-scrollbar-thumb {*/
/*    background: red; !* scrollbar color *!*/
/*    border-radius: 10px; !* rounded edges *!*/
/*}*/
::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, red, orange, yellow);
    border-radius: 10px;
    animation: scrollGlow 3s infinite linear;
}

@keyframes scrollGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

::-webkit-scrollbar-thumb:hover {
    background: #770000; /* darker on hover */
}

* {
    scrollbar-width: thin;
    scrollbar-color: red #454545;
}

:root {
    --ease-out: cubic-bezier(.22, .61, .36, 1);
}

.drawer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .34s var(--ease-out),
    transform .34s var(--ease-out),
    visibility 0s linear .34s;
}

.drawer.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity .34s var(--ease-out),
    transform .34s var(--ease-out);
}


.modal {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s var(--ease-out),
    visibility 0s linear .28s;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .32s var(--ease-out);
}

.modal-card {
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: transform .34s var(--ease-out),
    opacity .34s var(--ease-out);
    will-change: transform, opacity;
}

@media (max-width: 550px) {
    .grid.cols-4 {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

.modal.open .modal-card {
    opacity: 1;
    transform: none;
}

/* Reveal-on-scroll utility */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: transform .6s var(--ease-out),
    opacity .6s var(--ease-out);
    transition-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

/* Respect users who reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'CC Ultimatum', Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.35;
    letter-spacing: 1px;
}

@media (max-width: 1025px) {
    .hero-slider-controls {
        visibility: hidden;
    }

    .hero-slider-grid {
        gap: 0 !important;
    }
}

.top-link {
    font-weight: 500;
    font-style: italic;
    letter-spacing: 1px;
}

..submenu a, .submenu .submenu-link {
    font-style: italic !important;
    font-weight: 500 !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--rz)
}

img {
    display: block;
    max-width: 100%;
    height: auto
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px
}

body.no-scroll {
    overflow: hidden;
    height: 100%
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 5px 22px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .85rem;
    border: 2px solid transparent;
    cursor: pointer
}

.btn-primary {
    background: var(--primary);
    color: #fff
}

.btn-primary:hover {
    background: linear-gradient(0deg, var(--primary), #F01212);
    transform: translateY(-2px)
}

.btn-ghost {
    border: 2px solid #2a2f39;
    background: transparent;
    color: #fff
}

.btn-ghost:hover {
    background: #1a1f27
}

.tag {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #ffffff20;
    background: #ffffff10;
    font-weight: 500
}

.title-xl {
    font-size: clamp(2rem, 1.6rem + 2.6vw, 3.4rem);
    line-height: 1.1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -.02em
}

.title-xl span {
    color: var(--primary)
}

.lead {
    color: #fff;
    font-size: 20px;
}

.section {
    position: relative;
    padding: var(--pad-y) 0;
    isolation: isolate
}

/* ============ Map tabs & responsive iframe ============ */
.map-panels {
    margin-top: 12px;
}

.map-panel {
    display: none;
}

.map-panel.active {
    display: block;
}

/* Контейнер под iframe – управляет размером */
.map-embed {
    width: 100%;
    aspect-ratio: 16 / 9; /* красивый прямоугольник */
    background: #0e1117;
    border: 1px solid #1d222b;
    overflow: hidden;
}

#mapTabs {
    margin-top: 5px;
}

/* Вынуждаем встроенный iframe занять всю область */
.map-embed iframe,
.map-embed > * {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block;
}

/* Не используете класс .map (старый плейсхолдер) — можно удалить, чтобы не путался */

.with-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(1200px 600px at -10% -10%, rgba(210, 10, 10, .08), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(210, 10, 10, .06), transparent 55%), var(--bg)
}

.with-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-image, none) center/cover no-repeat;
    opacity: .55;
    filter: saturate(.9)
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1200;
    height: var(--header-h);
    background: #0c0d10;
    border-bottom: 1px solid #111419
}

.topbar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    padding: 16px 12px
}

.brand img {
    height: 32px
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px
}

.nav-item {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: .06em
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.lk-btn {
    width: 40px;
    height: 36px;
    display: grid;
    place-items: center;
    background: #141821;
    border: 1px solid #1f2530;
    color: white
}

.phone {
    white-space: nowrap;
    font-weight: 600
}

.burger {
    display: none;
    width: 40px;
    height: 36px;
    border: 1px solid #1d222b;
    background: #101318;
    align-items: center;
    justify-content: center
}

.burger i {
    width: 20px;
    height: 2px;
    background: #fff;
    position: relative;
    display: block
}

.burger i::before, .burger i::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff
}

.burger i::before {
    top: -7px
}

.burger i::after {
    top: 7px
}

/* Drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: #0c0f14;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--rz);
    display: flex;
    flex-direction: column;
    gap: 35px;
    overflow-y: auto; /* drawer can scroll, page behind won't */
    -webkit-overflow-scrolling: touch;
}

.drawer.open {
    opacity: 1;
    visibility: visible;
    transform: none
}

.drawer .link {
    padding: 14px 16px;
    border: 1px solid #1d222b;
    background: #0f1218;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase
}

.drawer .m-nav, .drawer .m-nav .m-nav {
    font-size: larger !important;
}

/* Drawer close button (sticky) */
.drawer-top {
    position: sticky;
    top: 0;
    z-index: 1;
    max-height: 2px;
    display: flex;
    justify-content: flex-end;
}

.drawer-close {
    width: 44px;
    height: 44px;
    border: 1px solid #1d222b;
    background: #101318;
    color: #fff;
    display: grid;
    place-items: center;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 22px;
}

/* Socials fixed */
.v-socials {
    position: fixed;
    right: 18px;
    top: 40%;
    display: grid;
    gap: 10px;
    z-index: 900
}

.v-socials a {
    width: 65px;
    height: 65px;
    border-radius: 999px;
    display: grid;
    font-size: x-large;
    place-items: center;
    border: 1px solid #ffffff20
}

.v-socials a:hover {
    background: var(--primary);
    border-color: transparent;
    transform: translateY(-2px)
}

/* Hero */
.hero {
    padding-top: calc(var(--header-h) + 72px);
    min-height: 92vh;
    display: grid;
    place-items: center
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    width: 100%
}

.badge {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(210, 10, 10, .35);
    background: rgba(210, 10, 10, .18);
    font-weight: 700
}

.hours-card {
    margin-top: 6px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid #ffffff3a;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    width: min(360px, 100%);
    padding: 18px 22px;
    position: relative
}

.hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(0, 0, 0, .18);
    margin-top: 8px
}

/* Cards / grids */
.grid {
    display: grid;
    gap: 15px
}

.grid.cols-3 {
    grid-template-columns: repeat(3, 1fr)
}

.grid.cols-4 {
    grid-template-columns: repeat(2, 1fr)
}

.card {
    background: rgba(23, 26, 32, .6);
    border: 1px solid #ffffff12;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.thumb {
    aspect-ratio: 16/9;
    background: #0f1116;
    object-fit: cover;
    width: 100%
}

.card-body {
    padding: 18px;
    display: flex;
    font-size: 20px;
    flex-direction: column;
    gap: 8px;
    flex: 1
}

.card-body .btn:last-child {
    margin-top: auto
}

/* Tabs / filters pill */
.filter {
    display: flex;
    gap: 8px;
    background: #12151b;
    border: 1px solid #1d222b;
    padding: 6px;
    width: max-content
}

.filter button {
    padding: 10px 16px;
    background: transparent;
    border: 0;
    color: #cfd2d8;
    font-weight: 800;
    cursor: pointer
}

.filter button.active {
    background: var(--primary);
    color: #fff
}

.load-more {
    display: flex;
    justify-content: center;
    margin-top: 18px
}

.fr-cta {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 64px;
    border: 1px solid #ffffff12;
    background: linear-gradient(0deg, rgba(210, 10, 10, .12), rgba(210, 10, 10, .06))
}

/* Goals */
.goals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.goal {
    padding: 18px;
    color: white;
    border: 1px solid #ffffff14;
    background: #12151a;
    font-family: 'CC Ultimatum', Arial, sans-serif;
    text-align: center;
    font-size: 22px;
    cursor: pointer
}

.goal:hover {
    transform: translateY(-3px)
}


.reviews {
    position: relative
}

.rev-track {
    display: flex;
    gap: 16px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px
}

.rev {
    min-width: 320px;
    scroll-snap-align: start;
    background: #10141b;
    font-size: 20px;
    border: 1px solid #ffffff12;
    padding: 18px
}

.stars {
    color: #ffce3d
}

/* FAQ */
.faq-item {
    border: 1px solid #1d222b;
    background: #10141b;
    margin-bottom: 10px
}

.faq-q {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 20px;

}

.faq-a {
    padding: 0 16px 16px;
    display: none;
    color: #cfd2d8;
    font-size: 20px;
}

.faq-item.open .faq-a {
    display: block
}

/* Map & contacts tabs */
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px
}

.tabs button {
    color: #ffffffc4
}

.tabs button {
    border: 1px solid #1d222b;
    background: #0f1218;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer
}

.tabs button.active {
    background: var(--primary);
    border-color: transparent
}

.map {
    width: 100%;
    height: 360px;
    background: #0e1117;
    border: 1px solid #1d222b;
    display: grid;
    place-items: center;
    color: #98a0ad
}

/* Why */
.why-item {
    text-align: center;
    padding: 22px 18px
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(210, 10, 10, .16);
    border: 1px solid rgba(210, 10, 10, .35);
    font-size: 28px
}

.why-item h3 {
    margin-top: 4px;
    margin-bottom: 6px
}

.why-item p {
    color: #cfd2d8
}

/* Footer */
footer {
    border-top: 1px solid #11151e;
    background: #0b0c0f;
    padding: 46px 0 28px
}

.f-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    font-size: 18px;
}

.f-links {
    display: grid;
    gap: 8px
}

.f-links a {
    color: #aeb4c1
}

.f-links a:hover {
    color: #fff
}

.f-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 45px;
    margin-top: 90px;
    justify-content: center
}

.f-legal a {
    color: #aeb4c1
}

/* Modal (kept) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.open {
    display: flex
}

.modal-card {
    width: min(560px, 100%);
    background: #0f1218;
    border: 1px solid #1d222b
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #1d222b
}

.modal-body {
    padding: 16px
}

.input {
    width: 100%;
    padding: 14px;
    background: #171a20;
    border: 1px solid #ffffff12;
    color: #fff
}

.agree {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: .9rem;
    color: #cfd2d8
}

/* Responsive */
@media (max-width: 1220px) {
    .main-nav {
        display: none
    }

    .burger {
        display: flex
    }

    .actions .phone, .actions .btn-ghost {
        display: none
    }
}

@media (max-width: 1100px) {
    .grid.cols-4 {
        grid-template-columns: repeat(2, 1fr)
    }

    .goals {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width: 860px) {
    .v-socials {
        display: none
    }

    .grid.cols-3 {
        grid-template-columns: 1fr
    }
}

@media (max-width: 560px) {
    .f-grid {
        grid-template-columns: 1fr
    }

    .section {
        padding: 72px 0
    }
}

@media (max-width: 1100px) {
    .card-parent {
        justify-content: start !important;
    }
}


.card {
    display: flex;
    font-size: 20px;
    flex-direction: column;

}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1; /* fills the card */
}

/* Dedicated actions row that sticks to the bottom */
.card-actions {
    margin-top: auto; /* pushes actions to the bottom */
    display: flex;
    gap: 8px;
}

/* optional: keep single-button width natural */
.card-actions .btn {
    width: auto;
}

/* (Safe to keep) If you had this rule earlier, it won’t hurt,
   but .card-actions is now the authoritative solution. */
/* Make sure cards stay as flex even if inline display:block is injected */
.card {
    display: flex !important; /* override inline display:block */
    flex-direction: column;
}


.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.card-actions {
    margin-top: auto; /* pins the CTA to the bottom */
    display: flex;
    gap: 8px;
}


.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

/* NEW: class-based hide for filtering */
.card.is-hidden {
    display: none !important;
}

/* If you still have this from earlier, REMOVE it:
   .card { display:flex !important; }  */
/* === Equal-height cards only where the grid has .equal-cards === */
.equal-cards {
    align-items: stretch;
}

.equal-cards > .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.equal-cards .card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.equal-cards .card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

/* Filtering (keep this so tabs work) */
.card.is-hidden {
    display: none !important;
}


