:root {
    --bg: #080808;
    --bg-soft: #101010;
    --card: rgba(255, 255, 255, 0.045);
    --card-hover: rgba(255, 255, 255, 0.07);
    --text: #f7f7f7;
    --muted: #a7a7a7;
    --red: #d3131b;
    --red-bright: #ff2b35;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 10% 10%, rgba(211, 19, 27, 0.08), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    width: auto;
    height: 48px;
    object-fit: contain;
}

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

.nav a {
    position: relative;
    color: #d7d7d7;
    font-size: 14px;
    font-weight: 650;
    transition: color 180ms ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    height: 2px;
    background: var(--red-bright);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.nav a:hover {
    color: #fff;
}

.nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 20px;
    transition: 200ms ease;
}

/* Hero */

.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 160px 0 90px;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -3;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -2;
    left: 50%;
    bottom: -320px;
    width: 900px;
    height: 520px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(211, 19, 27, 0.16);
    filter: blur(110px);
}

.hero-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero-glow-one {
    width: 360px;
    height: 360px;
    top: 100px;
    right: -120px;
    background: rgba(255, 43, 53, 0.15);
}

.hero-glow-two {
    width: 280px;
    height: 280px;
    left: -120px;
    bottom: 80px;
    background: rgba(140, 0, 10, 0.15);
}

.hero-content {
    max-width: 980px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 18px;
    color: var(--red-bright);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 1000px;
    margin: 0;
    color: #fff;
    font-size: clamp(52px, 8vw, 112px);
    line-height: 0.92;
    letter-spacing: -0.065em;
    font-weight: 820;
}

.hero h1 span {
    display: block;
    margin-top: 24px;
    color: #a8a8a8;
    font-size: 0.42em;
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 520;
}

.hero p {
    max-width: 760px;
    margin: 34px 0 0;
    color: #d3d3d3;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.65;
}

.hero-button {
    width: fit-content;
    margin-top: 38px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: #fff;
    color: #0a0a0a;
    font-size: 15px;
    font-weight: 800;
    transition:
        transform 180ms ease,
        background 180ms ease,
        color 180ms ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    background: var(--red-bright);
    color: #fff;
}

/* Sections */

.catalog-section {
    position: relative;
    padding: 120px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.015);
}

.section-heading {
    margin-bottom: 42px;
    display: flex;
    align-items: flex-end;
    gap: 22px;
}

.section-number {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.section-heading .section-kicker {
    margin-bottom: 7px;
}

.section-heading h2,
.contacts-title h2 {
    margin: 0;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1;
    letter-spacing: -0.055em;
}

/* Carousel */

.carousel {
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: #111;
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 560ms cubic-bezier(.22, .61, .36, 1);
}

.slide {
    flex: 0 0 100%;
    position: relative;
    min-width: 100%;

    height: 600px;

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

    overflow: hidden;
    background: #111;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.28), transparent 45%);
    pointer-events: none;
}

.slide img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 30px;

    transition: transform 900ms cubic-bezier(.22, .61, .36, 1);
}

.carousel:hover .slide img {
    transform: scale(1.012);
}

.carousel-controls {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.carousel-button {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.carousel-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 43, 53, 0.55);
    background: rgba(211, 19, 27, 0.18);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition:
        width 180ms ease,
        background 180ms ease;
}

.carousel-dot.active {
    width: 34px;
    background: var(--red-bright);
}

/* Contacts */

.contacts-section {
    padding: 130px 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(211, 19, 27, 0.15), transparent 28rem),
        #070707;
}

.contacts-card {
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
    box-shadow: var(--shadow);
}

.contacts-title {
    max-width: 920px;
    margin-bottom: 52px;
}

.contacts-title h2 {
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.06;
}

.contacts-title h2 span {
    display: block;
    margin-top: 10px;
    color: var(--red-bright);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-item {
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.24);
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 43, 53, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.contact-wide {
    grid-column: 1 / -1;
}

.contact-label {
    display: block;
    margin-bottom: 8px;
    color: #7f7f7f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.contact-item p,
.contact-item a {
    margin: 0;
    overflow-wrap: anywhere;
    color: #f0f0f0;
    font-size: 16px;
    line-height: 1.7;
}

.contact-item a:hover {
    color: var(--red-bright);
}

/* Footer */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: #050505;
}

.footer-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #747474;
    font-size: 14px;
}

.footer-inner p {
    margin: 0;
}

.footer-inner a {
    color: #bdbdbd;
}

.footer-inner a:hover {
    color: var(--red-bright);
}
/* Диваны */
#sofas .slide {
    height: auto;
    aspect-ratio: 2 / 1;

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

    background: #111;
}

#sofas .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* Accessibility */

:focus-visible {
    outline: 3px solid rgba(255, 43, 53, 0.75);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Responsive */

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        inset: 82px 0 auto;
        min-height: calc(100vh - 82px);
        padding: 34px 20px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: rgba(7, 7, 7, 0.98);
        transform: translateX(100%);
        transition: transform 240ms ease;
    }

    body.menu-open .nav {
        transform: translateX(0);
    }

    .nav a {
        padding: 18px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        font-size: 19px;
    }

    .nav a::after {
        display: none;
    }

    body.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero {
        min-height: 680px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .header-inner {
        min-height: 72px;
    }

    .logo {
        height: 40px;
    }

    .nav {
        inset: 72px 0 auto;
        min-height: calc(100vh - 72px);
    }

    .hero {
        min-height: 640px;
        padding: 130px 0 70px;
    }

    .hero h1 {
        font-size: clamp(44px, 15vw, 72px);
    }

    .hero h1 span {
        margin-top: 18px;
        font-size: 0.47em;
    }

    .hero p {
        margin-top: 26px;
        font-size: 17px;
    }

    .catalog-section,
    .contacts-section {
        padding: 84px 0;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .carousel-viewport {
        border-radius: 22px;
    }

    @media (max-width: 720px) {
    .slide {
        height: 430px;
    }

    .slide img {
        padding: 15px;
    }
}

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-wide {
        grid-column: auto;
    }

    .footer-inner {
        padding: 22px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
}
