:root {
    --primary-yellow: #ffcc00;
    --dark-bg: #000000;
    --surface: #0d0d0d;
    --surface-raised: #151515;
    --text-light: #ffffff;
    --text-gray: #aaa8a2;
    --line: rgba(255,255,255,.12);
    --line-yellow: rgba(255,204,0,.48);
    --radius-lg: 34px;
    --radius-md: 24px;
    --radius-sm: 16px;
    --container: 1320px;
    --ease: cubic-bezier(.22,.74,.18,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; background: var(--dark-bg); }
body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--dark-bg);
    color: var(--text-light);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; }

.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: opacity .5s ease, visibility .5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-text,
.hero-logo,
.about-image,
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .06em;
    color: var(--primary-yellow);
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1;
}
.loader-text { margin-bottom: 40px; font-size: clamp(3rem, 8vw, 5rem); animation: loaderPulse 2s infinite; }
.big-x { display: inline-block; font-size: 1.4em; transform: translateY(-.08em); }
.loader-bar { width: min(400px, 82vw); height: 6px; overflow: hidden; border-radius: 999px; background: #292929; }
.loader-progress { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary-yellow); transition: width 3s ease; }
@keyframes loaderPulse { 0%,100% { opacity: 1; } 50% { opacity: .8; } }

.nav-dots {
    position: fixed;
    top: 50%;
    right: 22px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 11px;
    transform: translateY(-50%);
}
.nav-dot {
    width: 8px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.24);
    cursor: pointer;
    transition: height .3s var(--ease), background .3s ease;
}
.nav-dot.active { height: 42px; background: var(--primary-yellow); }

.section {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 100px 28px;
}
.section-content { position: relative; z-index: 2; width: min(100%, var(--container)); margin: 0 auto; }
.hero-section { background: #000; }
.about-section, .contacts-section { background: var(--surface); }
.directions-section { background: #000; }

.hero-content { display: flex; justify-content: center; }
.hero-frame {
    width: min(1040px, 100%);
    min-height: min(670px, calc(100svh - 120px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(48px, 8vw, 112px) clamp(24px, 6vw, 90px);
    border: 1px solid rgba(255,204,0,.42);
    border-radius: 52px;
    background: #050505;
    box-shadow: inset 0 0 0 12px #000;
    text-align: center;
}
.hero-logo { font-size: clamp(4.3rem, 12vw, 9.8rem); letter-spacing: .12em; }
.hero-subtitle {
    max-width: 780px;
    margin: 34px auto 0;
    font-size: clamp(1.18rem, 2.2vw, 1.9rem);
    font-weight: 350;
    line-height: 1.45;
    letter-spacing: .012em;
}
.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    padding: 13px 22px;
    border: 1px solid var(--line-yellow);
    border-radius: 999px;
    color: var(--primary-yellow);
    font-size: 1rem;
}

.section-header, .directions-header { margin-bottom: 58px; }
.section-label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .2em;
}
.section-title {
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.055em;
}
.section-title span { color: var(--primary-yellow); }

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: 24px;
}
.about-text,
.about-image {
    min-height: 500px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #070707;
}
.about-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 72px); }
.about-text p { max-width: 730px; margin-bottom: 22px; color: #ceccc6; font-size: clamp(1.04rem, 1.4vw, 1.2rem); }
.about-text p:last-child { margin-bottom: 0; }
.about-highlight { color: var(--primary-yellow); font-weight: 800; }
.about-image { font-size: clamp(3.4rem, 7vw, 7rem); overflow: hidden; background: var(--primary-yellow); color: #000; }
.about-image .big-x { color: #000; }

.directions-header { text-align: center; }
.directions-subtitle { margin-top: 18px; color: var(--text-gray); font-size: 1.14rem; }
.carousel-stage { width: 100%; }
.carousel-container {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    perspective: 1400px;
}
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}
.carousel-card {
    position: absolute;
    width: min(460px, calc(100vw - 64px));
    height: 600px;
    display: flex;
    flex-direction: column;
    padding: 38px 34px 34px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 34px;
    background: #121212;
    box-shadow: 0 24px 70px rgba(0,0,0,.48);
    backface-visibility: hidden;
    transition: transform .72s var(--ease), opacity .55s ease, filter .55s ease, border-color .55s ease;
}
.carousel-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: var(--primary-yellow);
}
.carousel-card.left { transform: translateX(-82%) rotateY(13deg) scale(.86); opacity: .52; filter: brightness(.64); z-index: 1; }
.carousel-card.center { transform: translateX(0) rotateY(0) scale(1); opacity: 1; filter: none; z-index: 3; border-color: rgba(255,204,0,.62); }
.carousel-card.right { transform: translateX(82%) rotateY(-13deg) scale(.86); opacity: .52; filter: brightness(.64); z-index: 1; }
.carousel-card.hidden { transform: scale(.8); opacity: 0; pointer-events: none; z-index: 0; }
.card-content { height: 100%; display: flex; flex-direction: column; }
.card-icon {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border: 1px solid rgba(255,204,0,.55);
    border-radius: 22px;
    color: var(--primary-yellow);
    background: rgba(255,204,0,.065);
    font-size: 2rem;
}
.card-title { margin-bottom: 20px; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.18; font-weight: 750; }
.card-description {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    color: var(--text-gray);
    font-size: .97rem;
    line-height: 1.56;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,204,0,.45) transparent;
}
.card-description::-webkit-scrollbar { width: 4px; }
.card-description::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255,204,0,.45); }

.carousel-navigation {
    width: min(560px, 100%);
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 16px;
    margin: 28px auto 0;
}
.carousel-button {
    width: 64px;
    height: 64px;
    border: 1px solid var(--line-yellow);
    border-radius: 20px;
    background: #111;
    color: var(--primary-yellow);
    cursor: pointer;
    transition: color .25s ease, background .25s ease, transform .25s var(--ease);
}
.carousel-button:hover { color: #000; background: var(--primary-yellow); transform: translateY(-2px); }
.carousel-status {
    min-height: 64px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #0d0d0d;
    color: #d3d0c9;
    font-size: .9rem;
    text-align: center;
}
.carousel-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.carousel-dot { height: 4px; padding: 0; border: 0; border-radius: 999px; background: #363636; cursor: pointer; transition: background .25s ease; }
.carousel-dot.active { background: var(--primary-yellow); }

.price-info {
    max-width: 900px;
    margin: 82px auto 0;
    padding: clamp(30px, 5vw, 56px);
    border: 1px solid rgba(255,204,0,.35);
    border-radius: var(--radius-lg);
    background: #0d0d0d;
    text-align: center;
}
.price-info p { margin-bottom: 18px; font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 16px; }
.old-price { color: var(--text-gray); font-size: clamp(1.3rem, 2vw, 1.6rem); text-decoration: line-through; }
.new-price { color: var(--primary-yellow); font-size: clamp(2.5rem, 5vw, 4.4rem); font-weight: 850; line-height: 1; }
.installment { color: var(--primary-yellow); font-weight: 700; }
.contact-link {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 0 34px;
    border: 1px solid var(--primary-yellow);
    border-radius: 18px;
    background: var(--primary-yellow);
    color: #000;
    font-weight: 800;
    text-decoration: none;
    transition: transform .25s var(--ease), background .25s ease, color .25s ease;
}
.contact-link:hover { transform: translateY(-2px); background: transparent; color: var(--primary-yellow); }

.contacts-container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.social-cards { display: grid; gap: 18px; }
.social-card {
    min-height: 138px;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #080808;
    color: var(--text-light);
    text-decoration: none;
    transition: border-color .3s ease, transform .3s var(--ease), background .3s ease;
}
.social-card:hover { transform: translateY(-3px); border-color: rgba(255,204,0,.55); background: #101010; }
.social-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,204,0,.45);
    border-radius: 22px;
    background: rgba(255,204,0,.06);
    color: var(--primary-yellow);
    font-size: 2rem;
}
.social-text h3 { margin-bottom: 5px; font-size: 1.45rem; }
.social-text p { color: var(--text-gray); }
.card-arrow { color: var(--primary-yellow); font-size: 1.05rem; }
.contact-map {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--primary-yellow);
    color: #000;
    text-align: center;
}
.map-icon { margin-bottom: 28px; font-size: 4rem; }
.map-text { font-size: 1.45rem; font-weight: 800; }
.map-address { margin-top: 9px; font-size: 1.05rem; }
.map-phone { margin-top: 28px; }

footer { padding: 72px 28px 34px; border-top: 1px solid var(--line); background: #000; text-align: center; }
.footer-logo { margin-bottom: 24px; font-size: clamp(2.4rem, 5vw, 4rem); }
.copyright { color: #666; font-size: .9rem; }

.animate-element, .slide-left, .slide-right { opacity: 0; transform: translateY(26px); transition: opacity .72s ease var(--delay,0s), transform .72s var(--ease) var(--delay,0s); }
.slide-left { transform: translateX(-36px); }
.slide-right { transform: translateX(36px); }
.animate-element.visible, .slide-left.visible, .slide-right.visible { opacity: 1; transform: translate(0); }

@media (max-width: 1050px) {
    .about-content, .contacts-container { grid-template-columns: 1fr; }
    .about-image { min-height: 340px; }
    .contact-map { min-height: 360px; }
    .carousel-card.left { transform: translateX(-70%) rotateY(10deg) scale(.82); }
    .carousel-card.right { transform: translateX(70%) rotateY(-10deg) scale(.82); }
}

@media (max-width: 768px) {
    .nav-dots { display: none; }
    .section { min-height: auto; padding: 82px 16px; }
    .hero-section { min-height: 100svh; padding: 20px 14px; }
    .hero-frame { min-height: calc(100svh - 40px); border-radius: 34px; box-shadow: inset 0 0 0 7px #000; }
    .hero-logo { font-size: clamp(3.2rem, 17vw, 5.6rem); letter-spacing: .07em; }
    .hero-subtitle { margin-top: 25px; font-size: 1.14rem; }
    .hero-location { margin-top: 26px; padding: 11px 16px; font-size: .92rem; }
    .section-header, .directions-header { margin-bottom: 38px; }
    .section-title { font-size: clamp(2.7rem, 13vw, 4.4rem); }
    .about-text, .about-image, .price-info, .contact-map { border-radius: 26px; }
    .about-text { min-height: auto; padding: 30px 24px; }
    .about-text p { font-size: 1rem; }
    .about-image { min-height: 270px; font-size: 3.4rem; }
    .carousel-container { height: 650px; overflow: hidden; }
    .carousel-card { width: min(100%, 390px); height: 610px; padding: 32px 26px 28px; border-radius: 28px; }
    .carousel-card.left, .carousel-card.right { opacity: 0; pointer-events: none; transform: translateX(0) scale(.92); }
    .card-description { overflow-y: auto; }
    .carousel-navigation { grid-template-columns: 58px minmax(0,1fr) 58px; gap: 10px; margin-top: 18px; }
    .carousel-button { width: 58px; height: 58px; border-radius: 18px; }
    .carousel-status { min-height: 58px; padding: 0 12px; border-radius: 18px; }
    .carousel-dots { gap: 3px; }
    .price-info { margin-top: 62px; padding: 30px 22px; }
    .social-card { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 16px; padding: 20px; border-radius: 22px; }
    .social-icon { width: 58px; height: 58px; border-radius: 18px; font-size: 1.7rem; }
    .social-text h3 { font-size: 1.22rem; }
    .social-text p { font-size: .9rem; }
}

@media (max-width: 430px) {
    .hero-frame { padding-inline: 18px; }
    .hero-location { flex-direction: column; gap: 5px; }
    .carousel-container { height: 620px; }
    .carousel-card { height: 585px; }
    .card-icon { width: 64px; height: 64px; flex-basis: 64px; border-radius: 20px; }
    .carousel-status { grid-template-columns: 22px minmax(0,1fr) 22px; gap: 7px; padding-inline: 9px; }
    .carousel-dots { gap: 2px; }
    .social-card { grid-template-columns: 56px minmax(0,1fr); }
    .social-icon { width: 54px; height: 54px; }
    .card-arrow { display: none; }
    .contact-map { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .animate-element, .slide-left, .slide-right { opacity: 1; transform: none; }
}
