/*
  Single-screen shell for Сектор Икс.
  Visual base: the original Wiex import (black, white, gold #D4AF37,
  crimson numbers, Oswald + Raleway, skewed menu, fullscreen photos).
  Tokens and components: docs/DESIGN-SYSTEM.md
  Transition hooks: docs/ANIMATION-HOOKS.md
*/

html,
body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    overflow: hidden !important;
    overscroll-behavior: none;
    background: #000;
    color: #fff;
}

body {
    position: relative;
}

#preloader,
.preloader-bg,
.pswp:not(.pswp--open) {
    display: none !important;
}

.fadeIn-element {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo.top-position,
#menu-mobile-btn.top-position {
    transform: none;
}

.social-icons-wrapper.bottom-position {
    transform: none;
    display: none;
}

/* Fullscreen frames. 100vh is taller than the visible phone screen. */
.hero-fullscreen,
.hero-bg,
.slick-fullscreen-slideshow,
.slick-fullscreen-slideshow .slick-list,
.slick-fullscreen-slideshow .slick-track,
.slick-fullscreen-item,
.slick-slide,
.slick-fullscreen-img-fill,
.slide-picture,
.slide-picture img {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
}

.hero-fullscreen,
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    max-height: 100dvh;
    overflow: hidden;
}

.hero-bg {
    opacity: 1;
    transform: none;
}

.slide-picture,
.slide-picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

.overlay-dark-65:before,
.hero-fullscreen:before,
.overlay:before {
    pointer-events: none;
}

.overlay-dark-65:before {
    background: rgba(0, 0, 0, 0.6);
}

#pages {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

#pages .page {
    position: absolute;
    inset: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    pointer-events: none;
}

#pages .page.hide {
    display: none !important;
}

html[data-sx-boot]:not([data-sx-ready]) #pages .page {
    display: none !important;
}

html[data-sx-boot="home"]:not([data-sx-ready]) #pages #home,
html[data-sx-boot="about"]:not([data-sx-ready]) #pages #about,
html[data-sx-boot="services"]:not([data-sx-ready]) #pages #services,
html[data-sx-boot="works"]:not([data-sx-ready]) #pages #works,
html[data-sx-boot="contact"]:not([data-sx-ready]) #pages #contact,
html[data-sx-boot="request"]:not([data-sx-ready]) #pages #request,
html[data-sx-boot="lider"]:not([data-sx-ready]) #pages #lider,
html[data-sx-boot="rubezh"]:not([data-sx-ready]) #pages #rubezh,
html[data-sx-boot="den-rozhdeniya"]:not([data-sx-ready]) #pages #den-rozhdeniya,
html[data-sx-boot="korporativy"]:not([data-sx-ready]) #pages #korporativy,
html[data-sx-boot="vyezdnye"]:not([data-sx-ready]) #pages #vyezdnye,
html[data-sx-boot="shkoly"]:not([data-sx-ready]) #pages #shkoly,
html[data-sx-boot="sertifikaty"]:not([data-sx-ready]) #pages #sertifikaty,
html[data-sx-boot="komnata-otdyha"]:not([data-sx-ready]) #pages #komnata-otdyha {
    display: block !important;
}

.center-container,
.center-container-home,
.center-block,
.center-block-home,
.lower-content,
.sections,
.sections-home {
    pointer-events: none;
}

.sx-stage,
.sx-stage a,
.sx-stage button,
.sx-stage input,
.sx-stage textarea,
.sx-stage label,
.legendary-gallery,
.legendary-gallery a {
    pointer-events: auto;
}

/* The hero block covers the arrow column on a short landscape screen.
   Let those taps fall through; only the real controls stay hot. */
.introduction,
.introduction.hero-copy {
    pointer-events: none;
}

.introduction a,
.introduction button {
    pointer-events: auto;
}

.center-container,
.center-container-home {
    overflow: hidden;
}

.lower-page .center-container,
.upper-page .center-container-home {
    display: block;
}

.lower-page .center-block,
.upper-page .center-block-home {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
}

.sections,
.sections-home {
    padding: 0 !important;
    width: 100%;
    max-height: 100%;
}

.sx-stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    width: min(1180px, calc(100% - 28px));
    max-height: 100%;
    margin: 0 auto;
    padding: 78px 8px 22px;
    box-sizing: border-box;
    overflow: hidden;
}

.sx-stage .inner-divider,
.sx-stage .inner-divider-half,
.sx-stage .inner-divider-full,
.lower-content p {
    height: auto;
    margin: 0;
    padding: 0;
}

.sx-head {
    flex: 0 0 auto;
}

h2.section-subheading {
    margin: 0 0 6px;
}

h2.section-heading {
    font-size: clamp(32px, 4.6vw, 68px);
    line-height: 0.95;
    margin: 0;
    max-width: 18ch;
}

.about-number-title,
.service-number-title {
    font-size: clamp(22px, 2.4vw, 36px);
    margin: 0;
    color: #B48E3D;
}

.about-heading {
    margin: 0;
    text-align: left;
}

.sx-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

#about p,
#services p,
.sx-card p,
.sx-note {
    margin: 0 !important;
    padding: 0 !important;
    position: static;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: 0.03em;
    color: #fff;
    text-align: left;
}

.sx-price {
    margin-top: 6px !important;
    font-family: "Oswald", sans-serif;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: #D4AF37;
}

.sx-note {
    flex: 0 0 auto;
    max-width: 62ch;
    margin-top: 12px !important;
}

.sx-cards,
.sx-about,
.sx-links {
    min-height: 0;
}

.sx-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 22px;
}

.sx-about {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 28px;
    align-items: start;
}

.sx-about > * {
    min-width: 0;
}

.sx-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.sx-card,
.sx-link {
    min-width: 0;
}

.sx-link-wide {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sx-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 8px 16px;
    white-space: nowrap;
    border: 1px solid #D4AF37;
    background: transparent;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

a.sx-link.sx-link-wide,
a.sx-link.sx-link-wide span {
    white-space: normal;
    overflow-wrap: anywhere;
}

.sx-link:hover,
.sx-link:focus {
    background: #D4AF37;
    color: #000;
    font-weight: 400;
}

.sx-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
}

.sx-lightbox[hidden] {
    display: none !important;
}

.sx-lightbox-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
}

.sx-lightbox-img {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

.sx-lightbox-close,
.sx-lightbox-prev,
.sx-lightbox-next {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #B48E3D;
    background: rgba(20, 20, 20, 0.86);
    color: #D4AF37;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sx-lightbox-close {
    top: 12px;
    right: 12px;
}

.sx-lightbox-prev {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.sx-lightbox-next {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

@media (orientation: portrait) {
    .sx-lightbox {
        box-sizing: border-box;
        padding: 56px 8px 72px;
    }

    .sx-lightbox-img {
        max-width: 100%;
        max-height: 100%;
    }

    .sx-lightbox-prev,
    .sx-lightbox-next {
        top: auto;
        bottom: 12px;
        transform: none;
        background: rgba(20, 20, 20, 0.55);
    }

    .sx-lightbox-prev {
        left: calc(50% - 56px);
    }

    .sx-lightbox-next {
        right: calc(50% - 56px);
    }
}

body[data-sx-lightbox="open"] {
    overflow: hidden;
}

body[data-sx-lightbox="open"] .slick-prev,
body[data-sx-lightbox="open"] .slick-next,
body[data-sx-lightbox="open"] .slick-arrow {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.legendary-gallery.sx-shots {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 8px;
    height: min(42dvh, 380px);
    margin: 0;
    top: 0;
}

.sx-shots figure {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.sx-shots a,
.sx-shots picture,
.sx-shots img {
    display: block;
    width: 100%;
    height: 100%;
}

.sx-shots img {
    object-fit: cover;
}

.section-plate {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* The visible photo lives here. The slick track and the plates stay
   as sources. Each layer carries its own veil so the darkening
   travels with the cut instead of popping. */
.sx-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #000;
}

.sx-bg-layer {
    position: absolute;
    inset: 0;
}

.sx-bg-layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.sx-bg-layer img.sx-bg-photo {
    position: relative;
    z-index: 1;
}

.sx-bg-layer img.sx-bg-fill {
    position: absolute;
    z-index: 0;
    inset: -12%;
    width: 124%;
    height: 124%;
    max-width: none;
    object-fit: cover;
    filter: blur(28px);
    transform: none;
}

.sx-bg-layer img.sx-bg-fill[hidden] {
    display: none !important;
}

.sx-bg-veil {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.sx-bg-layer.is-plain .sx-bg-veil {
    opacity: 0;
}

html.sx-photo .slick-list {
    opacity: 0 !important;
}

html.sx-photo .overlay:before {
    opacity: 0 !important;
}

html.sx-photo .section-plate,
html.sx-photo body[data-sx-section="about"] .section-plate-about,
html.sx-photo body[data-sx-section="contact"] .section-plate-contact,
html.sx-photo body[data-sx-section="komnata-otdyha"] .section-plate-komnata {
    display: none !important;
}

.section-plate picture,
.section-plate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Deferred plates have no src until the cut layer copies them.
   A visible img without src paints its alt over the logo. */
.section-plate img:not([src]) {
    display: none !important;
}

body[data-sx-section="about"] .section-plate-about,
body[data-sx-section="contact"] .section-plate-contact,
body[data-sx-section="komnata-otdyha"] .section-plate-komnata {
    display: block;
}

body[data-sx-section="about"] .hero-fullscreen,
body[data-sx-section="about"] .hero-fullscreen *,
body[data-sx-section="contact"] .hero-fullscreen,
body[data-sx-section="contact"] .hero-fullscreen *,
body[data-sx-section="komnata-otdyha"] .hero-fullscreen,
body[data-sx-section="komnata-otdyha"] .hero-fullscreen * {
    visibility: hidden !important;
}

/* Arrows set visibility:visible, which paints them through a hidden hero.
   They belong to the home slider only. */
body[data-sx-section]:not([data-sx-section="home"]) .slick-prev,
body[data-sx-section]:not([data-sx-section="home"]) .slick-next,
body[data-sx-section]:not([data-sx-section="home"]) .slick-arrow,
body[data-sx-section]:not([data-sx-section="home"]) .slick-dots {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.sx-panel {
    background: rgba(20, 20, 20, 0.82);
    padding: 14px 16px 16px;
    max-width: 100%;
}

.sx-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 18px;
}

.sx-stat .about-number-title {
    white-space: nowrap;
    font-size: clamp(26px, 3vw, 40px);
}

.sx-stat .about-heading {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0;
    color: #fff;
    text-transform: none;
}

.sx-stat .about-heading {
    white-space: nowrap;
    font-size: 15px;
}

#about .sx-copy,
#services .sx-panel .sx-copy {
    margin: 12px 0 0 !important;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
}

.sx-promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 2px solid #B48E3D;
    background: rgba(45, 45, 45, 0.92);
    text-align: center;
}

#services .sx-promo p {
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Oswald", sans-serif;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.2;
    letter-spacing: 0.03em;
    color: #fff;
    text-align: center;
}

.sx-promo .home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
}

.sx-formats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.sx-format-arrow,
.sx-format-dots {
    display: none;
}

.sx-format {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    height: auto;
    align-self: stretch;
    padding: 0 0 12px;
    overflow: hidden;
    border: 1px solid rgba(180, 142, 61, 0.75);
    background: rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    text-align: center;
    position: relative;
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.sx-format-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px 0;
}

.sx-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    align-items: start;
    gap: 6px;
    flex: 0 0 auto;
    width: 100%;
    max-width: min(100%, 720px);
    min-height: min-content;
    margin: 0;
}

.sx-mini a {
    display: block;
    min-width: 0;
    min-height: 44px;
    overflow: hidden;
    background: #111;
}

.sx-mini-photo,
.sx-mini-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #111;
}

@media (max-height: 430px) {
    .sx-mini {
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
        gap: 4px;
        max-width: 100%;
    }

    .sx-mini a {
        position: relative;
        justify-self: start;
        width: 100%;
        max-width: 168px;
        max-height: 84px;
        aspect-ratio: 16 / 9;
    }

    .sx-mini-photo {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .sx-mini-photo img {
        width: 100%;
        height: 100%;
        max-height: none;
        aspect-ratio: auto;
        object-fit: cover;
    }
}

/* One desktop photo must stay a thumb, so the price and the button
   remain on the first screen. */
@media (min-width: 1024px) {
    .sx-mini {
        grid-template-columns: repeat(auto-fill, minmax(120px, 168px));
        justify-content: start;
        width: 100%;
        max-width: min(100%, 880px);
    }

    .sx-mini a {
        max-height: 112px;
    }

    .sx-mini-photo,
    .sx-mini-photo img {
        max-height: 112px;
        object-fit: cover;
    }
}

.sx-format .about-heading {
    position: relative;
    width: 100%;
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: #D4AF37;
    transition: color 220ms ease;
}

#services .sx-format p {
    width: 100%;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    font-family: "Raleway", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    color: #fff;
    text-align: center;
}

a.sx-format,
a.sx-format:hover,
a.sx-format:visited,
a.sx-format:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.sx-format .about-heading a {
    color: inherit;
    text-decoration: none;
}

.sx-format .about-heading a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    min-height: 44px;
    height: 100%;
}

@media (hover: hover) {
    .sx-format:hover {
        transform: translateY(-4px);
        border-color: #B48E3D;
        background: rgba(180, 142, 61, 0.22);
        box-shadow: 0 8px 18px rgba(180, 142, 61, 0.42);
        z-index: 1;
    }

    .sx-format:hover .about-heading {
        color: #F2D78A;
    }
}

.sx-format:focus-visible,
.sx-format:has(:focus-visible) {
    transform: translateY(-4px);
    border-color: #B48E3D;
    background: rgba(180, 142, 61, 0.22);
    box-shadow: 0 8px 18px rgba(180, 142, 61, 0.42);
    z-index: 1;
    outline: 2px solid #F2D78A;
    outline-offset: 2px;
}

.sx-format:focus-visible .about-heading,
.sx-format:has(:focus-visible) .about-heading {
    color: #F2D78A;
}

.sx-format:active {
    border-color: #B48E3D;
    background: rgba(180, 142, 61, 0.28);
    box-shadow: 0 0 0 1px #B48E3D;
    transform: none;
}

#contact .sx-contact-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin-top: 16px !important;
    text-align: center;
}

#contact .sx-contact-cta a.sx-gold {
    min-height: 48px;
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

@media (hover: hover) {
    #contact .sx-contact-cta a.sx-gold:hover {
        transform: translateY(-4px);
        background: #C6A04A;
        box-shadow: 0 8px 18px rgba(180, 142, 61, 0.45);
    }
}

#contact .sx-contact-cta a.sx-gold:focus-visible {
    transform: translateY(-4px);
    background: #C6A04A;
    box-shadow: 0 8px 18px rgba(180, 142, 61, 0.45);
    outline: 2px solid #F2D78A;
    outline-offset: 3px;
}

#contact .sx-contact-cta a.sx-gold:active {
    background: #C6A04A;
    box-shadow: 0 0 0 1px #F2D78A;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .sx-format,
    .sx-format .about-heading,
    #contact .sx-contact-cta a.sx-gold {
        transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
    }

    .sx-format:hover,
    .sx-format:focus-visible,
    .sx-format:has(:focus-visible),
    #contact .sx-contact-cta a.sx-gold:hover,
    #contact .sx-contact-cta a.sx-gold:focus-visible {
        transform: none;
    }
}

/* Home */
.center-container-home {
    height: 100%;
    min-height: 100%;
    background: none;
}

.hero-fullscreen {
    background: #050503;
    pointer-events: none;
}

.hero-fullscreen .slick-arrow,
.hero-fullscreen .slick-dots,
.hero-fullscreen .slick-dots button {
    pointer-events: auto;
}

.logo,
#menu-mobile-btn,
#menu-mobile-caller {
    z-index: 1200;
    pointer-events: auto;
    visibility: visible;
    transition: none;
}

.center-block-home {
    width: min(1080px, calc(100% - 36px));
    vertical-align: middle;
}

.introduction {
    text-align: center;
    background: none;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
    padding: 0 12px;
}

h2.home-page-title {
    font-size: clamp(13px, 1.4vw, 16px);
    letter-spacing: 0.18em;
    color: #fff;
}

h1.home-page-title {
    font-size: clamp(34px, 6.4vw, 108px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 8px auto 0;
}

h1.home-page-title .keep-together {
    white-space: nowrap;
}

.home-lead {
    max-width: none;
    margin: 16px auto 0;
    text-align: center;
    font-family: "Raleway", sans-serif;
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.45;
    letter-spacing: 0.03em;
    color: #fff;
    white-space: nowrap;
}

a.button-the,
a.button-the.button-the-all {
    width: auto !important;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px 10px 0;
    background: none;
    color: #D4AF37;
    font-size: 16px;
    line-height: 1.2;
}

.home-slogan {
    margin: 10px 0 0;
    text-align: center;
    font-family: "Oswald", sans-serif;
    font-size: clamp(16px, 2vw, 22px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #B48E3D;
}

#home .home-actions.fadeIn-element {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
}

.sx-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sx-socials a.sx-gold,
.sx-socials a.sx-gold:hover,
.sx-socials a.sx-gold:visited {
    min-width: 64px;
    min-height: 48px;
    padding: 10px 18px;
}

a.sx-gold,
a.sx-gold:hover,
a.sx-gold:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 18px;
    background: #B48E3D;
    color: #1a1a1a;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
}

a.sx-gold-phone,
a.sx-gold-phone:hover,
a.sx-gold-phone:visited {
    background: transparent;
    color: #fff;
    border: 1px solid #B48E3D;
}

.button-the-wrapper {
    margin-top: 18px;
}

/* Logo and burger: no plate behind either control.
   The mark is the dragon and the X. Padding in the file keeps the tips off the box. */
.logo {
    width: 150px;
    height: 171px;
    top: 16px;
    left: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-image: radial-gradient(ellipse at center, rgba(58, 58, 58, 0.62) 0%, rgba(45, 45, 45, 0.22) 48%, rgba(45, 45, 45, 0) 72%);
    background-repeat: no-repeat;
    box-shadow: none;
    filter: none;
    overflow: visible;
    line-height: 0;
}

.logo picture,
.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.logo {
    overflow: hidden;
}

/* Same laser as the splash: 130×720 beam in the 560×545 mark,
   skewed -14deg, masked to the ink. One sx-sweep pass, then hidden. */
.logo .sx-logo-stripe {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.logo .sx-logo-stripe .beam {
    transform-box: view-box;
    transform-origin: 0 0;
    opacity: 0;
    transform: translate3d(-250px, 0, 0) skewX(-14deg);
}

.logo.is-sweep .sx-logo-stripe .beam {
    opacity: 1;
    animation: sx-sweep 2000ms linear 1 both;
}

@media (prefers-reduced-motion: reduce) {
    .logo .sx-logo-stripe .beam,
    .logo.is-sweep .sx-logo-stripe .beam {
        animation: none !important;
        opacity: 0 !important;
    }
}

#menu-mobile-btn {
    width: 48px;
    height: 48px;
    background: transparent;
    box-shadow: none;
}

#menu-mobile-caller {
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    background-image: radial-gradient(circle at 50% 50%, rgba(45, 45, 45, 0.6) 0%, rgba(45, 45, 45, 0) 70%);
    background-repeat: no-repeat;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    appearance: none;
}

#menu-mobile-caller .lines,
#menu-mobile-caller .lines:before,
#menu-mobile-caller .lines:after {
    width: 28px;
    height: 4px;
    background: #B48E3D !important;
    box-shadow: none;
    transform: skewX(-14deg);
    transition: transform 200ms ease, filter 200ms ease;
}

#menu-mobile-caller .lines:before {
    top: 9px;
}

#menu-mobile-caller .lines:after {
    top: -9px;
}

#menu-mobile-caller.lines-close .lines {
    background: transparent !important;
    box-shadow: none;
}

#menu-mobile-caller.lines-close .lines:before,
#menu-mobile-caller.lines-close .lines:after {
    top: 0;
    width: 28px;
    background: #B48E3D !important;
}

#menu-mobile-caller.lines-close .lines:before {
    transform: rotate(45deg);
}

#menu-mobile-caller.lines-close .lines:after {
    transform: rotate(-45deg);
}

@media (hover: hover) {
    #menu-mobile-caller:not(.lines-close):hover .lines,
    #menu-mobile-caller:not(.lines-close):focus-visible .lines,
    #menu-mobile-caller:not(.lines-close):hover .lines:before,
    #menu-mobile-caller:not(.lines-close):hover .lines:after,
    #menu-mobile-caller:not(.lines-close):focus-visible .lines:before,
    #menu-mobile-caller:not(.lines-close):focus-visible .lines:after {
        filter: drop-shadow(0 0 5px rgba(180, 142, 61, 0.75));
    }

    #menu-mobile-caller:not(.lines-close):hover .lines:after,
    #menu-mobile-caller:not(.lines-close):focus-visible .lines:after {
        transform: translateX(-3px) skewX(-14deg);
    }

    #menu-mobile-caller:not(.lines-close):hover .lines:before,
    #menu-mobile-caller:not(.lines-close):focus-visible .lines:before {
        transform: translateX(3px) skewX(-14deg);
    }
}

@media (min-width: 1024px) {
    #menu-mobile-btn,
    #menu-mobile-caller {
        width: 64px;
        height: 64px;
    }
}

/* Menu panel. Gold #B48E3D into graphite #2D2D2D, still moving. */
#menu-mobile {
    width: 390px;
    height: 100dvh;
    right: 0;
    overflow: hidden;
    background-color: #2D2D2D;
    background-image: linear-gradient(128deg,
        #B48E3D 0%,
        #e4d0a0 20%,
        #6e5b38 42%,
        #2D2D2D 70%,
        #B48E3D 100%);
    background-size: 240% 240%;
    background-position: 0% 40%;
    animation: sx-menu-flow 5s linear infinite;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(calc(100% + 40vh), 0, 0) skewX(-22deg);
    transform-origin: center center;
    transition: transform 0.45s ease, visibility 0s linear 0.45s;
}

#menu-mobile:not(.activated) {
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(calc(100% + 40vh), 0, 0) skewX(-22deg) !important;
}

#menu-mobile.activated {
    right: 0;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) skewX(-22deg);
    transition: transform 0.45s ease, visibility 0s linear 0s;
}

/* The list stays inside the sheared panel, as in the original import.
   No counter-skew: each line is offset along the slanted edge. */
#menu-mobile ul {
    width: 390px;
    padding-left: 121px;
    text-align: left;
}

#menu-mobile ul li {
    padding: 0 0 2px;
}

@media only screen and (max-width: 880px) {
    #menu-mobile {
        width: 300px;
        font-size: 20px;
    }

    #menu-mobile ul {
        width: 300px;
        padding-left: 81px;
    }
}

#menu-mobile.activated a {
    display: inline-block;
    color: #fff;
}

#menu-mobile a.active,
#menu-mobile li .active {
    color: #B48E3D;
}

#menu-mobile a.active:before,
#menu-mobile .link-underline-menu.active:before {
    visibility: visible;
    transform: scaleX(1);
    bottom: -4px;
    height: 2px;
    background: #B48E3D;
}

#menu-mobile .credits a,
#menu-mobile .credits a:hover {
    color: #fff;
    font-weight: 700;
}

@keyframes sx-menu-flow {
    0% { background-position: 0% 20%; }
    50% { background-position: 100% 80%; }
    100% { background-position: 0% 20%; }
}

.social-icons-wrapper {
    visibility: visible;
}

/* Slideshow arrows stay inside the viewport. The template parks them at -35px. */
/* Hero arrows sit below the copy on a phone and on a short phone landscape. */
@media (max-width: 767px) and (orientation: portrait),
       (max-width: 767px) and (max-height: 430px) {
    .slick-fullscreen .slick-prev,
    .slick-fullscreen .slick-next,
    .slick-fullscreen-slideshow .slick-prev,
    .slick-fullscreen-slideshow .slick-next,
    .slick-fullscreen:hover .slick-prev,
    .slick-fullscreen:hover .slick-next,
    .slick-fullscreen-slideshow:hover .slick-prev,
    .slick-fullscreen-slideshow:hover .slick-next {
        top: auto;
        bottom: 60px;
        width: 56px;
        height: 56px;
        margin: 0;
        line-height: 56px;
    }
}

/* A short portrait (320×568) centers Contacts into the corner logo. */
@media (max-width: 359px) and (max-height: 640px) {
    #contact .center-block,
    #contact .lower-content,
    #contact .container,
    #contact .sections {
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        min-height: 0;
    }

    #contact .sx-stage {
        justify-content: flex-start;
        height: 100%;
        max-height: 100%;
        padding-top: var(--sx-safe-top);
        padding-bottom: 8px;
        gap: 6px;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
    }

    #contact .sx-link {
        min-height: 44px;
        padding: 4px 10px;
    }

    #contact .sx-contact-cta {
        margin-top: 4px !important;
    }
}

.slick-fullscreen .slick-prev,
.slick-fullscreen-slideshow .slick-prev,
.slick-fullscreen:hover .slick-prev,
.slick-fullscreen-slideshow:hover .slick-prev {
    left: 12px;
}

.slick-fullscreen .slick-next,
.slick-fullscreen-slideshow .slick-next,
.slick-fullscreen:hover .slick-next,
.slick-fullscreen-slideshow:hover .slick-next {
    right: 12px;
}

.social-icons-wrapper.social-icons-wrapper-mobile {
    display: none;
}

ul.social-icons a.vk-link,
ul.social-icons a.vk-link:hover,
ul.social-icons a.max-link,
ul.social-icons a.max-link:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.12em;
    opacity: 1;
}

body[data-sx-section="contact"] .social-icons-wrapper,
body[data-sx-section="request"] .social-icons-wrapper {
    display: none;
}

.request-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    width: min(760px, 100%);
    margin: 0;
    text-align: left;
}

.request-form .sx-field-wide,
.request-form .hp {
    grid-column: 1 / -1;
}

.request-form label {
    display: block;
    margin: 0 0 4px;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.request-form .sx-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
}

.request-form input,
.request-form textarea {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(212, 175, 55, 0.85);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    text-align: left;
}

.request-form textarea {
    min-height: 68px;
    resize: none;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.c-btn.fullwidth-liquid {
    width: auto;
    min-width: 44px;
    min-height: 44px;
    margin: 4px 0 0;
    padding: 12px 22px;
    background: #D4AF37;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.12em;
}

.c-btn.fullwidth-liquid:hover {
    color: #000;
}

.form-status {
    min-height: 1.2em;
    color: #fff;
    font-size: 14px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 3px;
}

/* Default section transition. Desktop and mobile share the fade
   until a later pass replaces one profile. */
@keyframes sx-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page.sx-enter {
    animation-duration: 280ms;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

html[data-sx-profile="desktop"] .page.sx-enter {
    animation-name: sx-fade-in;
}

html[data-sx-profile="mobile"] .page.sx-enter {
    animation-name: sx-fade-in;
}

.page.sx-leave {
    opacity: 0;
}

html[data-sx-profile="desktop"] .page.sx-leave,
html[data-sx-profile="mobile"] .page.sx-leave {
    transition: opacity 280ms ease;
}

.intro-splash {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.intro-splash[hidden] {
    display: none !important;
}

.intro-splash.is-fading {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.intro-splash.is-fading .intro-skip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #050503;
    background-image: none;
    animation: none;
}

.intro-field img,
.intro-field.is-bg img {
    opacity: 1;
    transition: none;
}

.intro-field picture,
.intro-field img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.intro-field::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 72% 66% at 50% 46%,
        rgba(0, 0, 0, 0.16) 0%,
        rgba(0, 0, 0, 0.04) 48%,
        rgba(0, 0, 0, 0.42) 100%);
}

.intro-stage {
    position: relative;
    z-index: 1;
    width: min(72vw, 62dvh, 560px);
    height: auto;
}

.intro-anim,
.intro-still {
    position: absolute;
    display: block;
    border: 0;
    background: transparent;
    pointer-events: none;
}

/* Edge draws a gray hover toolbar (eye, camera, more) on a large image or
   video, anchored to the corner of that box. Full-screen photos put it
   under VK/Max. The cut layer and the slick track are decoration. */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-overlay-enclosure,
video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.slick-fullscreen-slideshow,
.slick-fullscreen-slideshow .slick-list,
.slick-fullscreen-slideshow .slick-track,
.slick-fullscreen-slideshow .slick-slide,
.slick-fullscreen-slideshow img,
.sx-bg img,
.section-plate img,
.intro-field img,
.intro-anim {
    pointer-events: none !important;
}

.slick-fullscreen-slideshow .slick-arrow,
.slick-fullscreen-slideshow .slick-dots {
    pointer-events: auto !important;
    z-index: 5;
}

/* The template shows these only while the slideshow is hovered. The track
   no longer receives the pointer, and a touch screen has no hover, so the
   hero arrows stay visible on their own. */
.slick-fullscreen .slick-prev,
.slick-fullscreen .slick-next,
.slick-fullscreen-slideshow .slick-prev,
.slick-fullscreen-slideshow .slick-next,
.slick-fullscreen:hover .slick-prev,
.slick-fullscreen:hover .slick-next,
.slick-fullscreen-slideshow:hover .slick-prev,
.slick-fullscreen-slideshow:hover .slick-next {
    opacity: 1;
    width: 64px;
    height: 64px;
    min-width: 44px;
    min-height: 44px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    border-radius: 0;
}

.slick-fullscreen-slideshow .slick-prev::before,
.slick-fullscreen-slideshow .slick-next::before,
.slick-fullscreen .slick-prev::before,
.slick-fullscreen .slick-next::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78%;
    height: 78%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.slick-fullscreen-slideshow .slick-prev span,
.slick-fullscreen-slideshow .slick-next span {
    display: none;
}

/* Only the plate fades. The gold X-cut stays a solid shape. */
.slick-fullscreen-slideshow .slick-prev,
.slick-fullscreen-slideshow .slick-next,
.slick-fullscreen .slick-prev,
.slick-fullscreen .slick-next {
    background-image: radial-gradient(circle at 50% 50%, rgba(45, 45, 45, 0.6) 0%, rgba(45, 45, 45, 0) 70%);
}

.slick-fullscreen-slideshow .slick-next::before,
.slick-fullscreen .slick-next::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='%23B48E3D' fill-rule='evenodd' stroke='%23141210' stroke-width='1.4' stroke-linejoin='miter' transform='skewX(-14) translate(14 0)' d='M8 6 L22 6 L46 32 L22 58 L8 58 L32 32 Z M16 16 L24 16 L40 32 L24 48 L16 48 L32 32 Z'/></svg>");
}

.slick-fullscreen-slideshow .slick-prev::before,
.slick-fullscreen .slick-prev::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g transform='translate(64 0) scale(-1 1)'><path fill='%23B48E3D' fill-rule='evenodd' stroke='%23141210' stroke-width='1.4' stroke-linejoin='miter' transform='skewX(-14) translate(14 0)' d='M8 6 L22 6 L46 32 L22 58 L8 58 L32 32 Z M16 16 L24 16 L40 32 L24 48 L16 48 L32 32 Z'/></g></svg>");
}

@media (hover: hover) and (pointer: fine) {
    .slick-fullscreen-slideshow .slick-prev,
    .slick-fullscreen-slideshow .slick-next,
    .slick-fullscreen .slick-prev,
    .slick-fullscreen .slick-next {
        transition: background-image 200ms ease;
    }

    .slick-fullscreen-slideshow .slick-prev::before,
    .slick-fullscreen-slideshow .slick-next::before,
    .slick-fullscreen .slick-prev::before,
    .slick-fullscreen .slick-next::before {
        transition: transform 200ms ease, filter 200ms ease;
    }

    .slick-fullscreen-slideshow .slick-prev:hover,
    .slick-fullscreen-slideshow .slick-next:hover,
    .slick-fullscreen .slick-prev:hover,
    .slick-fullscreen .slick-next:hover,
    .slick-fullscreen-slideshow .slick-prev:focus-visible,
    .slick-fullscreen-slideshow .slick-next:focus-visible,
    .slick-fullscreen .slick-prev:focus-visible,
    .slick-fullscreen .slick-next:focus-visible {
        background-image: radial-gradient(circle at 50% 50%, rgba(45, 45, 45, 0.82) 0%, rgba(45, 45, 45, 0) 74%);
    }

    .slick-fullscreen-slideshow .slick-prev:hover::before,
    .slick-fullscreen-slideshow .slick-next:hover::before,
    .slick-fullscreen .slick-prev:hover::before,
    .slick-fullscreen .slick-next:hover::before,
    .slick-fullscreen-slideshow .slick-prev:focus-visible::before,
    .slick-fullscreen-slideshow .slick-next:focus-visible::before,
    .slick-fullscreen .slick-prev:focus-visible::before,
    .slick-fullscreen .slick-next:focus-visible::before {
        transform: translate(-50%, -50%) scale(1.08);
        filter: drop-shadow(0 0 6px rgba(180, 142, 61, 0.7));
    }
}

@media (max-width: 767px) and (orientation: portrait),
       (max-width: 767px) and (max-height: 430px) {
    .slick-fullscreen .slick-prev,
    .slick-fullscreen .slick-next,
    .slick-fullscreen-slideshow .slick-prev,
    .slick-fullscreen-slideshow .slick-next {
        width: 56px;
        height: 56px;
        bottom: 36px;
        transform: none;
    }

    #home .home-actions {
        padding-left: 64px;
        padding-right: 64px;
    }
}

.intro-anim {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* The still matches the ink box of the animation's last frame,
   expanded by the master file's own padding so the artwork lines up. */
.intro-mark {
    position: absolute;
    left: 29.75%;
    top: 9.06%;
    width: 40.46%;
    height: 81.88%;
    visibility: hidden;
}

.intro-mark,
.intro-still,
.intro-anim {
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

.intro-still {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    visibility: hidden;
}

.intro-beam {
    position: absolute;
    top: -24%;
    bottom: -24%;
    left: 0;
    width: 18%;
    pointer-events: none;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(180, 142, 61, 0.15) 38%,
        #d4af37 48%,
        #fff 50%,
        #b48e3d 53%,
        transparent 68%);
    opacity: 0;
    transform: translate3d(-180%, 0, 0) skewX(-14deg);
}

@keyframes sx-intro-field {
    0% { opacity: 0.35; }
    18% { opacity: 1; }
    100% { opacity: 1; }
}

.intro-splash.is-still .intro-anim {
    visibility: hidden;
}

.intro-splash.is-still.is-logo .intro-mark {
    visibility: visible;
    animation: sx-mark-in 1700ms linear forwards;
}

.intro-splash.is-still.is-logo .intro-still {
    visibility: visible;
    animation: sx-logo-reveal 1700ms linear forwards;
}

.intro-splash.is-still.is-logo .intro-beam {
    animation: sx-logo-beam 1700ms linear forwards;
}

@keyframes sx-mark-in {
    0% { opacity: 0; transform: scale(0.92); filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
    16% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
    62% { filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
    78% { filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.9)); }
    100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
}

@keyframes sx-logo-reveal {
    0%, 14% { clip-path: polygon(0 0, -6% 0, -34% 100%, 0 100%); }
    68%, 100% { clip-path: polygon(0 0, 132% 0, 104% 100%, 0 100%); }
}

@keyframes sx-logo-beam {
    0%, 12% { opacity: 0; transform: translate3d(-180%, 0, 0) skewX(-14deg); }
    20% { opacity: 1; }
    64% { opacity: 1; transform: translate3d(520%, 0, 0) skewX(-14deg); }
    76%, 100% { opacity: 0; transform: translate3d(560%, 0, 0) skewX(-14deg); }
}

.intro-skip {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    box-sizing: border-box;
    min-width: 152px;
    min-height: 44px;
    margin: 0;
    padding: 8px 16px;
    white-space: nowrap;
    border: 1px solid #D4AF37;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

@media only screen and (max-width: 767px) {
    .logo {
        width: 86px;
        height: 98px;
        top: max(8px, env(safe-area-inset-top));
        left: max(8px, env(safe-area-inset-left));
        position: fixed;
        overflow: visible;
    }

    #menu-mobile-btn {
        top: 12px;
        right: 8px;
    }

    #menu-mobile {
        width: 230px;
        font-size: 20px;
        transform: translate3d(calc(100% + 40vh), 0, 0) skewX(-22deg);
    }

    #menu-mobile.activated {
        transform: translate3d(0, 0, 0) skewX(-22deg);
    }

    #menu-mobile ul {
        width: 230px;
        padding-left: 47px;
    }

    :root {
        --sx-safe-top: calc(max(8px, env(safe-area-inset-top)) + 114px);
    }

    .lower-page .center-block,
    .lower-page .lower-content,
    .lower-page .container,
    .lower-page .sections {
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        min-height: 0;
    }

    .sx-stage {
        justify-content: flex-start;
        width: calc(100% - 16px);
        height: 100%;
        max-height: 100%;
        padding: var(--sx-safe-top) 4px 56px;
        gap: 8px;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
    }

    #about .sx-stage {
        height: 100%;
        max-height: 100%;
        padding-bottom: 58px;
        gap: 4px;
    }

    #about .sx-panel {
        padding-bottom: 8px;
    }

    #about .sx-copy {
        margin-top: 4px !important;
    }

    #services .center-block,
    #services .lower-content,
    #services .container,
    #services .sections,
    #services .sx-panel {
        align-items: flex-start;
        justify-content: flex-start;
        min-width: 0;
        max-width: 100%;
    }

    #services .sx-stage {
        justify-content: flex-start;
        height: calc(100% - 52px);
        max-height: calc(100% - 52px);
        padding: var(--sx-safe-top) 16px 8px;
        gap: 8px;
        overflow: hidden;
    }

    #services .sx-panel {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #services .sx-promo {
        margin-bottom: 0;
        padding: 6px 8px;
        gap: 6px;
    }

    #services .sx-promo .home-actions {
        width: 100%;
        gap: 6px;
    }

    #services .sx-promo .sx-gold {
        flex: 1 1 140px;
        min-height: 44px;
        padding: 6px 8px;
        font-size: 14px;
        letter-spacing: 0.03em;
    }

    #services .sx-formats {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        min-width: 0;
        min-height: 0;
        max-width: 100%;
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0;
        scroll-snap-type: y mandatory;
        scroll-padding: 0;
        scrollbar-width: thin;
        scrollbar-color: #B48E3D transparent;
        touch-action: pan-y;
    }

    #services .sx-formats::-webkit-scrollbar {
        width: 3px;
        height: 0;
    }

    #services .sx-formats::-webkit-scrollbar-thumb {
        background: #B48E3D;
    }

    #services .sx-format {
        flex: 0 0 auto;
        align-self: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 0 8px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    #services .sx-format-body {
        padding: 8px 12px 0;
    }

    h2.section-heading {
        font-size: clamp(28px, 8vw, 40px);
    }

    .sx-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sx-links {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 8px;
    }

    #contact .sx-link-wide {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
    }

    .sx-link {
        white-space: normal;
        text-align: center;
    }

    .sx-about {
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
    }

    .sx-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    .sx-copy {
        font-size: 15px;
    }

    .sx-formats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .sx-format .about-heading {
        font-size: 17px;
    }

    #services .sx-format p {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        font-size: 14px;
        line-height: 1.35;
    }

    #services .sx-promo p {
        font-size: 14px;
        line-height: 1.25;
    }

    #home .center-block-home,
    #home .upper-content,
    #home .container,
    #home .sections-home {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    #home .introduction {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 20px;
        box-sizing: border-box;
    }

    #home .home-lead {
        padding: 0 4px;
    }

    #home .home-actions.fadeIn-element {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    #home .home-actions a.sx-gold {
        width: 100%;
        box-sizing: border-box;
    }

    #home .sx-socials {
        width: 100%;
    }

    #home .sx-socials a.sx-gold {
        width: auto;
        flex: 1 1 0;
        min-height: 44px;
    }

    .sx-card p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .about-number-title,
    .service-number-title {
        font-size: 30px;
    }

    .legendary-gallery.sx-shots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        height: min(46dvh, 280px);
    }

    .request-form {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .request-form textarea {
        min-height: 52px;
    }

    h1.home-page-title {
        font-size: clamp(32px, 10vw, 46px);
    }

    .home-lead {
        margin-top: 10px;
        white-space: normal;
        font-size: 14px;
        letter-spacing: 0.02em;
        padding: 0 12px;
    }

    .social-icons-wrapper {
        left: 8px;
        bottom: 8px;
    }
}

/* Phone landscape is wider than 767px, so it was using the 12px desktop title. */
@media (max-height: 500px), (pointer: coarse) and (orientation: landscape) and (max-width: 932px) {
    .sx-format .about-heading {
        font-size: 16px;
    }
}

@media (max-height: 520px) {
    .logo {
        width: 72px;
        height: 82px;
        top: max(6px, env(safe-area-inset-top));
        left: max(8px, env(safe-area-inset-left));
        overflow: visible;
    }
}

/* Short landscape (844×390, 740×360, 667×375). The page stays fixed.
   Services becomes one scrolling row of cards. The request form may
   scroll inside its own panel when the height is tighter than the fields. */
@media (max-height: 430px) {
    :root {
        --sx-safe-top: calc(max(2px, env(safe-area-inset-top)) + 70px);
    }

    body[data-sx-section="about"] .logo,
    body[data-sx-section="services"] .logo,
    body[data-sx-section="works"] .logo,
    body[data-sx-section="request"] .logo,
    body[data-sx-section="contact"] .logo,
    body[data-sx-section="lider"] .logo,
    body[data-sx-section="rubezh"] .logo,
    body[data-sx-section="den-rozhdeniya"] .logo,
    body[data-sx-section="korporativy"] .logo,
    body[data-sx-section="vyezdnye"] .logo,
    body[data-sx-section="shkoly"] .logo,
    body[data-sx-section="sertifikaty"] .logo,
    body[data-sx-section="komnata-otdyha"] .logo {
        width: 52px;
        height: 58px;
        top: 2px;
    }

    .lower-page .center-block {
        align-items: flex-start;
        justify-content: flex-start;
        height: 100%;
        max-height: 100%;
    }

    #services .center-block,
    #request .center-block {
        align-items: stretch;
        justify-content: flex-start;
        height: 100%;
        max-height: 100%;
    }

    #services .lower-content,
    #request .lower-content,
    #services .container,
    #request .container,
    #services .sections,
    #request .sections {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 100%;
        max-height: 100%;
        min-height: 0;
    }

    #services .sx-stage,
    #request .sx-stage,
    #about .sx-stage {
        justify-content: flex-start;
        width: calc(100% - 12px);
        max-width: calc(100% - 12px);
        min-width: 0;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        margin: 0 auto;
        padding: var(--sx-safe-top) 12px 52px;
        gap: 2px;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
    }

    #services .sx-stage {
        height: calc(100% - 56px);
        max-height: calc(100% - 56px);
        padding-bottom: 4px;
        overflow: hidden;
    }

    #about .center-block,
    #about .lower-content,
    #about .container,
    #about .sections {
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 100%;
        max-height: 100%;
        min-height: 0;
    }

    #about h2.section-subheading {
        margin: 0 0 2px;
        font-size: 14px;
        line-height: 1.1;
    }

    #about h2.section-heading {
        font-size: 22px;
        line-height: 1;
        margin: 0;
    }

    #about .sx-stats {
        gap: 2px 12px;
    }

    #about .about-number-title {
        font-size: 18px;
        line-height: 1;
    }

    #about .sx-stat .about-heading {
        font-size: 14px;
        line-height: 1.15;
    }

    #about .sx-stage {
        height: calc(100% - 48px);
        max-height: calc(100% - 48px);
    }

    #about .sx-copy {
        margin: 0 !important;
        font-size: 14px;
        line-height: 1.25;
    }

    #services .sx-panel {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #services .sx-format-rail {
        flex: 1 1 auto;
        min-height: 88px;
    }

    #services .sx-panel,
    #services .sx-formats,
    #request .request-form {
        min-width: 0;
        max-width: 100%;
    }

    #services h2.section-subheading,
    #request h2.section-subheading {
        margin: 0;
        font-size: 14px;
        line-height: 1.1;
    }

    #services h2.section-heading,
    #request h2.section-heading {
        font-size: 22px;
        line-height: 1;
        max-width: none;
    }

    #services .sx-promo {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0;
        padding: 4px 8px;
    }

    #services .sx-promo p {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0 !important;
        font-size: 14px;
        line-height: 1.2;
        text-align: center;
    }

    #services .sx-promo .home-actions {
        flex: 0 0 auto;
        width: auto;
        margin-top: 0;
        gap: 6px;
    }

    #services .sx-promo .sx-gold {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 12px;
        font-size: 14px;
    }

    #services .sx-formats {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        gap: 8px;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0;
        scroll-snap-type: y mandatory;
        scroll-padding: 0;
        scrollbar-width: thin;
        scrollbar-color: #B48E3D transparent;
        touch-action: pan-y;
    }

    #services .sx-formats::-webkit-scrollbar {
        width: 3px;
        height: 0;
    }

    #services .sx-formats::-webkit-scrollbar-thumb {
        background: #B48E3D;
    }

    #services .sx-format {
        flex: 0 0 auto;
        align-self: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 8px 12px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    #home .home-actions.fadeIn-element {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        width: max-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        gap: 10px;
    }

    #home .home-actions a.sx-gold {
        width: auto;
    }

    #home .sx-socials {
        width: auto;
    }

    #home .sx-socials a.sx-gold {
        width: auto;
        flex: 0 0 auto;
    }

    #services .sx-format p {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        margin: 6px 0 0 !important;
        font-size: 14px;
        line-height: 1.35;
    }

    #request .sx-note {
        margin: 0 !important;
        font-size: 14px;
        line-height: 1.2;
    }

    #request .form-status:empty {
        display: none;
    }

    #request .sx-stage {
        overflow-x: hidden;
        overflow-y: auto;
        padding-bottom: 6px;
    }

    #request .request-form {
        grid-template-columns: 1fr 1fr;
        gap: 2px 10px;
    }

    #request .request-form label {
        margin: 0;
        font-size: 14px;
        line-height: 1.15;
    }

    #request .request-form .sx-field {
        gap: 2px;
    }

    #request .request-form input,
    #request .request-form textarea {
        height: 44px;
        min-height: 44px;
        padding: 6px 8px;
    }

    #request .c-btn.fullwidth-liquid {
        margin: 0;
        padding: 8px 16px;
    }

    #contact .sx-stage {
        justify-content: flex-start;
        padding: var(--sx-safe-top) 10px 8px;
        gap: 6px;
    }

    #works .sx-stage {
        padding-top: var(--sx-safe-top);
    }

    #contact h2.section-heading {
        font-size: 22px;
        line-height: 1;
    }

    #contact .sx-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    #contact .sx-link {
        min-height: 44px;
        padding: 6px 10px;
        font-size: 14px;
    }

    #contact .sx-contact-cta {
        margin-top: 6px !important;
    }

    #contact .sx-contact-cta a.sx-gold {
        min-height: 44px;
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* 844×390 is wider than 767, so the 64px arrows sat on the subtitle. */
@media (max-height: 430px) and (min-width: 768px) {
    .slick-fullscreen .slick-prev,
    .slick-fullscreen .slick-next,
    .slick-fullscreen-slideshow .slick-prev,
    .slick-fullscreen-slideshow .slick-next,
    .slick-fullscreen:hover .slick-prev,
    .slick-fullscreen:hover .slick-next,
    .slick-fullscreen-slideshow:hover .slick-prev,
    .slick-fullscreen-slideshow:hover .slick-next {
        width: 56px;
        height: 56px;
        line-height: 56px;
    }

    #home .introduction {
        padding-left: 76px;
        padding-right: 76px;
        box-sizing: border-box;
    }

    #home .home-lead {
        white-space: normal;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767px), (max-height: 430px) {
    body[data-sx-section="services"] .slick-prev,
    body[data-sx-section="services"] .slick-next,
    body[data-sx-section="request"] .slick-prev,
    body[data-sx-section="request"] .slick-next,
    body[data-sx-section="contact"] .slick-prev,
    body[data-sx-section="contact"] .slick-next,
    body[data-sx-section="lider"] .slick-prev,
    body[data-sx-section="lider"] .slick-next,
    body[data-sx-section="rubezh"] .slick-prev,
    body[data-sx-section="rubezh"] .slick-next,
    body[data-sx-section="den-rozhdeniya"] .slick-prev,
    body[data-sx-section="den-rozhdeniya"] .slick-next,
    body[data-sx-section="korporativy"] .slick-prev,
    body[data-sx-section="korporativy"] .slick-next,
    body[data-sx-section="vyezdnye"] .slick-prev,
    body[data-sx-section="vyezdnye"] .slick-next,
    body[data-sx-section="shkoly"] .slick-prev,
    body[data-sx-section="shkoly"] .slick-next,
    body[data-sx-section="sertifikaty"] .slick-prev,
    body[data-sx-section="sertifikaty"] .slick-next,
    body[data-sx-section="komnata-otdyha"] .slick-prev,
    body[data-sx-section="komnata-otdyha"] .slick-next {
        display: none !important;
    }

    #services .sx-promo,
    #services .sx-formats {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    #services .sx-formats.is-more {
        -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 20px), transparent 100%);
        mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 20px), transparent 100%);
    }
}

@media (max-height: 700px) and (min-width: 768px) {
    h1.home-page-title {
        font-size: clamp(40px, 6vw, 72px);
    }

    h2.section-heading {
        font-size: clamp(28px, 4vw, 48px);
    }

    .sx-stage {
        padding-top: 70px;
        gap: 8px;
    }

    .club-mark {
        max-height: 18dvh;
    }

    .legendary-gallery.sx-shots {
        height: min(36dvh, 240px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #menu-mobile,
    .page.sx-enter,
    .page.sx-leave,
    .hero-bg,
    .slick-track,
    .slick-slide,
    .intro-splash,
    .intro-field,
    .intro-anim,
    .intro-mark,
    .intro-still,
    .intro-beam {
        animation: none !important;
        transition: none !important;
    }

    .page.sx-leave,
    .page.sx-enter {
        opacity: 1 !important;
    }
}

/* Narrow portrait: phone, VK and Max share one row so the format list stays usable. */
@media (max-width: 420px) {
    #home .home-actions > a.sx-gold-phone {
        padding: 8px 6px;
        font-size: 14px;
        letter-spacing: 0;
        white-space: nowrap;
    }

    #services .sx-promo {
        padding: 4px 6px;
        gap: 4px;
    }

    #services .sx-promo p {
        font-size: 14px;
        line-height: 1.15;
    }

    #services .sx-promo .home-actions {
        gap: 4px;
    }

    #services .sx-promo .home-actions > a.sx-gold {
        flex: 1 1 100%;
        min-height: 44px;
        padding: 6px 8px;
        font-size: 14px;
        letter-spacing: 0.02em;
    }

    #services .sx-promo .home-actions > a.sx-gold-phone {
        flex: 1 1 auto;
        min-width: 0;
        padding: 6px 4px;
        font-size: 14px;
        letter-spacing: 0;
        white-space: nowrap;
    }

    #services .sx-promo .sx-socials {
        display: contents;
    }

    #services .sx-promo .sx-socials a.sx-gold {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        font-size: 14px;
        letter-spacing: 0;
    }
}

#menu-mobile.activated {
    overflow-y: auto;
}

#menu-mobile .sx-menu-kicker {
    display: none;
    color: #111;
    font-size: 13px;
    letter-spacing: 0.16em;
    padding: 10px 0 2px;
    cursor: default;
}

#menu-mobile.activated .sx-menu-kicker {
    display: block;
}

#menu-mobile .sx-menu-sub a {
    font-size: 22px;
    line-height: 1.05;
    white-space: normal;
    padding-left: 14px;
}

@media only screen and (max-width: 880px) {
    #menu-mobile .sx-menu-kicker {
        font-size: 11px;
    }

    #menu-mobile .sx-menu-sub a {
        font-size: 16px;
    }
}

/* Narrow phones. The panel is skewed, so a vertically centered list
   pushes «Контакты» and «Заявка» off the visible gold. Keep the rows
   in the upper part of the panel, tighter, and scroll if a wrap
   still runs past the screen. */
@media (max-width: 767px) {
    #menu-mobile.activated {
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
    }

    #menu-mobile .menu-nav-wrapper {
        display: block;
        height: auto;
        min-height: 100%;
        overflow: visible;
    }

    #menu-mobile .menu-nav {
        display: block;
        height: auto;
        /* Start at the vertical center. Above that, the skew pushes
           the panel off the right edge and cuts the words. */
        padding: 50vh 0 12px;
    }

    #menu-mobile ul {
        box-sizing: border-box;
        width: 100%;
        padding-left: 36px;
        padding-right: 14px;
    }

    #menu-mobile {
        font-size: 16px;
        line-height: 1.05;
    }

    #menu-mobile ul li {
        padding: 0;
    }

    #menu-mobile.activated a {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        min-height: 44px;
        padding-top: 8px;
        padding-bottom: 8px;
        line-height: 1.2;
        box-sizing: border-box;
        white-space: normal;
    }

    #menu-mobile .sx-menu-kicker {
        font-size: 11px;
        line-height: 1.1;
        padding: 2px 0 0;
    }

    #menu-mobile .sx-menu-sub a {
        font-size: 13px;
        line-height: 1.1;
        letter-spacing: 0;
        padding-left: 8px;
        max-width: none;
        white-space: nowrap;
    }
}

.sx-club .sx-stage {
    align-items: flex-start;
    justify-content: flex-start;
    max-height: 100%;
    overflow-y: auto;
    gap: 8px;
    text-align: left;
}

.sx-club h2.section-heading {
    width: auto;
    max-width: 100%;
    font-size: clamp(30px, 3.4vw, 52px);
    white-space: normal;
}

body[data-sx-section="lider"] .slick-prev,
body[data-sx-section="lider"] .slick-next,
body[data-sx-section="rubezh"] .slick-prev,
body[data-sx-section="rubezh"] .slick-next,
body[data-sx-section="den-rozhdeniya"] .slick-prev,
body[data-sx-section="den-rozhdeniya"] .slick-next,
body[data-sx-section="korporativy"] .slick-prev,
body[data-sx-section="korporativy"] .slick-next,
body[data-sx-section="vyezdnye"] .slick-prev,
body[data-sx-section="vyezdnye"] .slick-next,
body[data-sx-section="shkoly"] .slick-prev,
body[data-sx-section="shkoly"] .slick-next,
body[data-sx-section="sertifikaty"] .slick-prev,
body[data-sx-section="sertifikaty"] .slick-next,
body[data-sx-section="komnata-otdyha"] .slick-prev,
body[data-sx-section="komnata-otdyha"] .slick-next {
    display: none !important;
}

@media (min-width: 768px) {
    .sx-club .sx-stage {
        padding-left: 148px;
        padding-right: 48px;
    }
}

.sx-club p,
.sx-club li {
    margin: 0;
}

.sx-club .section-heading::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin-top: 8px;
    background: #B48E3D;
    transform: skewX(-14deg);
    transform-origin: left center;
}

.sx-club-slogan {
    margin: 0;
    max-width: 28em;
    font-family: "Oswald", sans-serif;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.2;
    letter-spacing: 0.03em;
    color: #B48E3D;
}

.sx-club-acts,
.sx-club-perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 720px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sx-club-acts li,
.sx-club-perks li {
    min-height: 44px;
    padding: 8px 14px;
    background: rgba(20, 20, 20, 0.78);
    border: 1px solid rgba(180, 142, 61, 0.85);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
}

.sx-club p.sx-club-note {
    margin: 0;
    max-width: 36em;
    padding: 4px 10px;
    background: rgba(45, 45, 45, 0.9);
    border-left: 3px solid #B48E3D;
    font-size: 15px;
    line-height: 1.35;
}

.sx-club-facts {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px 12px;
    width: min(100%, 720px);
    padding: 8px 18px 8px 14px;
    background: rgba(45, 45, 45, 0.92);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.sx-club-age {
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #B48E3D;
}

.sx-club-when {
    font-family: "Raleway", sans-serif;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
}

.sx-club-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.sx-club-actions a.sx-gold {
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
    text-align: center;
}

a[href^="tel:"],
a[href^="tel:"] span,
.sx-club-actions a[href^="tel:"],
#contact a.sx-link[href^="tel:"],
#contact a.sx-link[href^="tel:"] span,
#home .home-actions a[href^="tel:"],
#services .home-actions a[href^="tel:"] {
    white-space: nowrap;
}

.sx-club .sx-text-link {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    color: #B48E3D;
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

@media (min-width: 768px) {
    .sx-club-acts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: min(100%, 920px);
    }
}

@media (max-width: 767px) {
    .sx-club .sx-stage {
        gap: 6px;
    }

    .sx-club h2.section-heading {
        font-size: clamp(26px, 7.2vw, 34px);
    }

    .sx-club-acts li,
    .sx-club-perks li {
        min-height: 40px;
        padding: 6px 12px;
        font-size: 13px;
    }
}

.sx-format-page .sx-format-about,
.sx-format-page .sx-format-copy {
    margin: 0;
    max-width: 46em;
    font-size: 15px;
    line-height: 1.4;
    color: #fff;
}

.sx-format-page .sx-format-about {
    font-size: 14px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
}

.sx-format-page .sx-format-label {
    margin: 8px 0 0;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #B48E3D;
}

.sx-rates {
    display: grid;
    gap: 6px;
    width: min(100%, 720px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sx-rates li {
    margin: 0;
    padding: 8px 14px;
    background: rgba(45, 45, 45, 0.92);
    border-left: 3px solid #B48E3D;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
}

.sx-nowrap {
    white-space: nowrap;
}

.sx-inline {
    display: inline;
    position: relative;
    color: #D4AF37;
    line-height: inherit;
    text-underline-offset: 2px;
}

.sx-inline::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 44px);
    height: 44px;
    transform: translate(-50%, -50%);
}

.sx-club-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.sx-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 4px 14px;
    border: 1px solid rgba(180, 142, 61, 0.85);
    background: rgba(20, 20, 20, 0.78);
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.sx-format-page .sx-text-link {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
}

.sx-format-lead {
    margin: 0;
    max-width: 40em;
    font-size: 15px;
    line-height: 1.35;
    color: #fff;
}

.sx-rates {
    gap: 4px;
}

.sx-rates li {
    padding: 4px 10px;
    font-size: 14px;
    line-height: 1.25;
}

.sx-club .center-container,
.sx-club .center-block,
.sx-club .lower-content,
.sx-club .container,
.sx-club .sections {
    height: 100%;
    max-height: 100%;
    min-height: 0;
}

.sx-club .center-block {
    overflow: hidden;
}

@media (max-width: 767px), (max-height: 430px) {
    .sx-club .center-block {
        box-sizing: border-box;
        padding-top: var(--sx-safe-top);
    }

    .sx-club .sx-stage {
        height: 100%;
        max-height: 100%;
        min-height: 0;
        padding-top: 0;
        padding-bottom: 4px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .sx-format-page .sx-stage,
    .sx-club .sx-stage {
        gap: 4px;
    }

    .sx-format-page h2.section-heading,
    .sx-club h2.section-heading {
        font-size: clamp(22px, 6vw, 32px);
    }

    .sx-club .section-heading::after {
        margin-top: 4px;
    }

    .sx-format-lead {
        font-size: 14px;
        line-height: 1.3;
    }
}

@media (max-width: 400px) {
    .sx-club-age {
        font-size: 16px;
    }

    .sx-club-when {
        font-size: 14px;
    }

    .sx-club-facts {
        gap: 4px;
        padding: 4px 18px 4px 8px;
    }

    .sx-club-when {
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .sx-club:not(.sx-format-page) .sx-club-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sx-club:not(.sx-format-page) .sx-club-actions a.sx-gold {
        min-height: 44px;
        padding: 6px 8px;
        font-size: 15px;
    }
}

@media (max-height: 430px) {
    .sx-club .sx-stage {
        padding-left: 64px;
        padding-right: 12px;
        gap: 2px;
    }

    .sx-format-page h2.section-heading,
    .sx-club h2.section-heading {
        font-size: 22px;
    }

    .sx-club .section-heading::after {
        display: none;
    }

    .sx-club-facts {
        padding: 2px 8px;
        gap: 4px 10px;
    }

    .sx-club p.sx-club-note {
        padding: 2px 10px;
    }

    .sx-club-when {
        font-size: 14px;
    }

    .sx-club-age {
        font-size: 20px;
    }

    .sx-club-actions {
        display: flex;
        flex-wrap: nowrap;
    }

    .sx-club-actions a.sx-gold {
        flex: 1 1 auto;
        min-height: 44px;
        padding: 4px 8px;
        font-size: 15px;
    }

    .sx-rates li {
        padding: 2px 8px;
    }
}

html body[data-sx-lightbox="open"] .slick-fullscreen .slick-prev,
html body[data-sx-lightbox="open"] .slick-fullscreen .slick-next,
html body[data-sx-lightbox="open"] .slick-fullscreen-slideshow .slick-arrow {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.sx-format-fact {
    margin: 0;
    max-width: 46rem;
    font-size: 16px;
    line-height: 1.45;
    color: #fff;
}

.sx-format-fact-label {
    color: #F2D78A;
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.04em;
}

/* One shared credit, pinned to the viewport corner on every page. */
.sx-site-footer {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    width: auto;
    max-width: calc(100vw - 20px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: rgba(244, 236, 214, 0.72);
    font-family: "Raleway", sans-serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.02em;
    text-align: right;
    pointer-events: none;
}

.sx-site-footer p {
    margin: 0;
}

.sx-site-footer a {
    color: inherit;
    pointer-events: auto;
    text-decoration: none;
}

.sx-site-footer a:hover,
.sx-site-footer a:focus-visible {
    color: #F5A20A;
}

.sx-site-footer .sx-powered,
.sx-site-footer .sx-powered a {
    font-family: "Raleway", sans-serif;
    font-size: 11px;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0.02em;
    text-size-adjust: none !important;
    -webkit-text-size-adjust: none !important;
}

.sx-site-footer .sx-powered {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    width: auto;
    margin: 0;
    white-space: nowrap;
    text-align: right;
}

.sx-site-footer .sx-powered a {
    display: inline;
    padding: 0;
    font-size: 1em !important;
    font-weight: 700;
    line-height: 1;
    vertical-align: baseline;
}

html:not(.sx-splash-off):has(.intro-splash:not([hidden])) .sx-site-footer,
body[data-sx-lightbox="open"] .sx-site-footer,
body:has(#menu-mobile.activated) .sx-site-footer {
    visibility: hidden;
    pointer-events: none;
}

/* Short and ordinary desktops: a section taller than the viewport scrolls
   instead of being clipped. safe center keeps a short block in the middle. */
@media (min-width: 1024px) {
    #pages .page {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .center-container,
    .center-container-home {
        height: auto;
        min-height: 100%;
        overflow: visible;
    }

    .lower-page .center-block,
    .upper-page .center-block-home {
        align-items: safe center;
        height: auto;
        min-height: 100%;
        max-height: none;
        overflow: visible;
    }

    .lower-content,
    .sections,
    .sections-home,
    .sx-stage {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

/* Phones: the credit stays 10px and the last row clears the corner. */
@media (max-width: 767px), (orientation: landscape) and (max-height: 430px) and (max-width: 932px) {
    .sx-site-footer,
    .sx-site-footer .sx-powered,
    .sx-site-footer .sx-powered a {
        font-size: 10px !important;
        line-height: 1;
    }

    .sx-site-footer .sx-powered a {
        font-weight: 700;
    }
}

@media (max-width: 767px), (orientation: landscape) and (max-height: 500px) and (max-width: 932px) {
    #pages .lower-page .sx-stage {
        padding-bottom: 28px;
    }
}

/* Short narrow phones: the title starts under the logo, and the copy
   ends above the hero arrows. */
@media (max-width: 400px) and (max-height: 640px) {
    #pages #home {
        overflow-x: hidden;
        overflow-y: auto;
    }

    #home .center-container-home,
    #home .center-block-home,
    #home .upper-content,
    #home .container,
    #home .sections-home,
    #home .introduction {
        position: static;
        display: block;
        height: max-content;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    #home .center-container-home {
        min-height: 100%;
    }

    #home .center-block-home {
        box-sizing: border-box;
        align-self: flex-start;
        padding-top: calc(max(8px, env(safe-area-inset-top)) + 108px);
        padding-bottom: 108px;
    }

    #home h1.home-page-title {
        font-size: clamp(26px, 8.2vw, 36px);
        line-height: 0.95;
        margin-top: 0;
    }

    #home .home-lead {
        white-space: normal;
        margin-top: 8px;
        font-size: 14px;
    }

}

/* The hamburger is the menu on phones in both orientations. */
@media (max-width: 767px), (max-height: 430px) and (max-width: 932px), (hover: none) and (pointer: coarse) {
    #menu-mobile.activated {
        height: 100dvh;
        max-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    #menu-mobile.activated a {
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        max-width: 100%;
        min-height: 44px;
        padding-top: 8px;
        padding-bottom: 8px;
        line-height: 1.2;
    }
}

/* Phones only: the contacts title sits between the logo and the burger.
   It stays inside #contact, so the section wipe shows and hides it. */
@media (max-width: 767px), (max-height: 430px) and (max-width: 932px) {
    #contact .sx-head {
        position: fixed;
        z-index: 4;
        top: max(8px, env(safe-area-inset-top));
        left: 0;
        right: 0;
        height: 86px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        text-align: center;
    }

    #contact .sx-head .section-subheading {
        width: max-content;
        max-width: calc(100vw - 168px);
        margin: 0 auto 2px;
        font-size: clamp(12px, 3.4vw, 15px);
        line-height: 1;
        letter-spacing: 0.08em;
        text-align: center;
    }

    #contact .sx-head h2.section-heading {
        width: max-content;
        max-width: calc(100vw - 168px);
        font-size: clamp(18px, 6.4vw, 26px);
        line-height: 1;
        margin: 0 auto;
        white-space: nowrap;
        letter-spacing: 0;
        text-align: center;
    }

    #contact .sx-head .section-subheading span {
        padding-right: 18px;
    }
}

@media (max-height: 430px) and (max-width: 932px) {
    #contact .sx-head {
        top: 2px;
        left: 68px;
        height: 54px;
    }

    #contact .sx-head .section-subheading {
        display: none;
    }

    #contact .sx-head h2.section-heading {
        font-size: clamp(18px, 6.4vw, 26px);
    }
}

/* Short portrait phones, any width up to the phone breakpoint.
   390×844, landscape and desktop stay on the fitted layout. */
@media (orientation: portrait) and (max-width: 767px) and (max-height: 740px) {
    #pages #contact {
        top: var(--sx-safe-top);
        bottom: 0;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
    }

    #contact .center-container,
    #contact .center-block,
    #contact .lower-content,
    #contact .container,
    #contact .sections,
    #contact .sx-stage {
        position: static;
        display: block;
        height: max-content;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    #contact .sx-stage {
        padding-top: 8px;
        padding-bottom: 16px;
    }

    #contact h2.section-heading {
        z-index: auto;
        margin: 0;
    }

    #contact .sx-links {
        display: block;
        height: auto;
        margin: 8px 0 0;
    }

    #contact .sx-link,
    #contact .sx-link-wide {
        display: flex;
        position: static;
        top: auto;
        height: auto !important;
        min-height: 44px;
        margin: 0 0 6px;
    }

    #contact .sx-note,
    #contact .sx-contact-cta {
        position: static;
        margin: 8px 0 0 !important;
    }

}

/* Phones and short landscape: the heading and the booking block stay put.
   Only the cards scroll. The credit is pinned to the viewport. */
@media (orientation: portrait) and (max-width: 767px),
       (orientation: landscape) and (max-height: 500px) and (max-width: 932px) {
    #pages #services {
        top: 0;
        bottom: 0;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    #services .center-container,
    #services .center-block,
    #services .lower-content,
    #services .container,
    #services .sections {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    #services .sx-stage,
    #services .sx-panel {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        overflow: hidden;
    }

    #services .sx-head,
    #services .sx-promo {
        flex: 0 0 auto;
    }

    #services .sx-services-scroll {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        margin-top: 6px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    /* Padding on the scroller is not part of the reachable overflow.
       A trailing spacer keeps the last card's border off the edge
       and clear of the fixed credit. */
    #services .sx-services-scroll::after {
        content: "";
        display: block;
        height: calc(20px + env(safe-area-inset-bottom, 0px));
        pointer-events: none;
    }

    #services .sx-formats {
        display: flex;
        flex-direction: column;
        flex: none;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: visible;
        scroll-snap-type: none;
        touch-action: pan-y;
    }
}

/* Landscape phones: one promo row and a shorter heading so two cards fit. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 932px) {
    #services .sx-stage {
        padding-top: 60px;
        gap: 4px;
    }

    #services h2.section-subheading {
        margin: 0;
        font-size: 12px;
        line-height: 1;
    }

    #services h2.section-heading {
        font-size: 20px;
        line-height: 1;
    }

    #services .sx-promo {
        padding: 2px 6px;
        gap: 6px;
    }

    #services .sx-format {
        padding: 4px 10px;
    }
}

@media (max-width: 767px), (max-height: 430px) and (max-width: 932px) {
    #contact .sx-note:not(.sx-contact-cta) {
        display: block;
        width: max-content;
        max-width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
    }
}

@media (max-width: 340px) {
    .sx-stat {
        min-width: 0;
    }

    .sx-stat .about-number-title {
        font-size: 16px;
        line-height: 1.05;
        white-space: normal;
        overflow-wrap: break-word;
    }
}

/* Desktop formats: the stage is wide enough to start under the corner
   logo. Other sections sit further right on their own. Shift only this
   heading until its text clears the mark. Phones keep the current inset. */
@media (min-width: 1024px) {
    html[data-sx-profile="desktop"] #services .sx-head {
        margin-left: max(0px, calc(186px - (100vw - min(1180px, 100vw - 28px)) / 2 - 8px));
    }
}
