/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--surface);
    overflow-x: hidden;
    font-weight: 300;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Top Menu */
.top-menu {
    position: fixed;
    top: max(10px, env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), var(--site-content-width));
    max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 16px);
    z-index: 1000;
    transition: top 0.25s ease;
    box-sizing: border-box;
}

.top-menu-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: var(--radius-pill);
    background: rgba(28, 25, 23, 0.55);
    backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transition: padding 0.25s ease, border-radius 0.25s ease, background 0.25s ease;
}

.top-menu-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.top-menu-link:hover {
    background: rgba(255, 255, 255, 0.18);
}

.top-menu-link-question {
    background: linear-gradient(135deg, #242120 0%, #0c0a09 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.top-menu-link-question:hover {
    background: linear-gradient(135deg, #312d2b 0%, #0f0d0c 100%);
}

.top-menu.compact {
    top: 8px;
}

.top-menu.compact .top-menu-inner {
    padding: 7px 9px;
    border-radius: var(--radius-md);
    background: rgba(28, 25, 23, 0.78);
}

.top-menu.compact .top-menu-link {
    font-size: 0.84rem;
    padding: 6px 10px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.top-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(28, 25, 23, 0.45);
    backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
}

.top-menu-overlay.is-visible {
    display: block;
}

.top-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(28, 25, 23, 0.55);
    backdrop-filter: blur(14px) saturate(1.2);
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.top-menu-toggle:hover {
    background: rgba(28, 25, 23, 0.72);
    border-color: rgba(255, 255, 255, 0.35);
}

.top-menu-toggle:focus-visible {
    outline: 2px solid var(--turquoise);
    outline-offset: 2px;
}

.top-menu-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 22px;
}

.top-menu-line {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.top-menu.is-open .top-menu-toggle-bars .top-menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.top-menu.is-open .top-menu-toggle-bars .top-menu-line:nth-child(2) {
    opacity: 0;
}

.top-menu.is-open .top-menu-toggle-bars .top-menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Typography */
h1, h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Color Variables */
:root {
    --yellow-orange: #de9905;
    --turquoise: #EFE8D2;
    --dark-green: #010101;
    --medium-green: #45734e;
    --white: #ffffff;
    --black: #0c0a09;

    --ink: #1c1917;
    --ink-muted: #44403c;
    --surface: #faf8f5;
    --surface-2: #f3f0eb;
    --surface-3: #ebe7e0;
    --surface-elevated: rgba(255, 253, 250, 0.92);
    --shadow-soft: 0 4px 24px rgba(28, 25, 23, 0.06);
    --shadow-lift: 0 20px 50px rgba(28, 25, 23, 0.1);
    --shadow-card: 0 12px 40px rgba(28, 25, 23, 0.08);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-pill: 999px;

    --color-yellow: #de9905;
    --color-teal: #EFE8D2;
    --color-green: #010101;
    --color-green2: #010101;
    --color-white: #fefefe;
    --site-content-width: 1400px;
    --gray-700: #57534e;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-bg-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 120% 80% at 50% 100%, rgba(12, 10, 9, 0.55) 0%, transparent 55%),
        linear-gradient(145deg, rgba(28, 25, 23, 0.72) 0%, rgba(28, 25, 23, 0.35) 45%, rgba(7, 178, 194, 0.08) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
    max-width: 100%;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 0.9;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-colors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.hero-logo {
    display: block;
    width: min(100%, 390px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.color-square {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.color-square:hover {
    transform: scale(1.1);
}

.square-yellow {
    background-color: var(--yellow-orange);
}

.square-turquoise {
    background-color: var(--turquoise);
}

.square-green {
    background-color: var(--dark-green);
}

.square-medium-green {
    background-color: var(--medium-green);
}


/* About Section */
.about {
    padding: clamp(72px, 12vw, 120px) 40px;
    background: var(--surface);
    text-align: center;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(222, 153, 5, 0.25), rgba(7, 178, 194, 0.2), transparent);
    pointer-events: none;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--ink);
}

.about-content,
.gallery-header,
.products-header,
.we-are-header,
.anchor-section-content {
    max-width: var(--site-content-width);
    margin-left: auto;
    margin-right: auto;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--gray-700);
    max-width: 42rem;
    margin: 0 auto 1.25rem;
    text-align: left;
}

/* Стили для миссии */
.mission-text {
    max-width: 800px;
    margin: 0 auto;
}

.mission-lead {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 500;
}

.mission-sub {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.about-colors {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.color-accent {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.color-accent:hover {
    transform: scale(1.1);
}

/* Mission Section */
.mission {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mission-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mission-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 100% 70% at 30% 20%, rgba(222, 153, 5, 0.12) 0%, transparent 50%),
        linear-gradient(160deg, rgba(12, 10, 9, 0.82) 0%, rgba(28, 25, 23, 0.5) 100%);
    z-index: 2;
}

.mission-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 40px;
}

.mission-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 30px;
}

.mission-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 40px;
}

.mission-colors {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.color-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.color-circle:hover {
    transform: scale(1.1);
}

/* We Are Section */
.we-are {
    padding: clamp(100px, 14vw, 140px) 40px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(7, 178, 194, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

.we-are-header {
    text-align: center;
    margin-bottom: 50px;
}

.we-are-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 30px;
    color: var(--ink);
}

.we-are-colors {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.we-are-slider {
    max-width: var(--site-content-width);
    margin: 0 auto;
    display: block;
    position: relative;
}

.we-are-track {
    position: relative;
    min-height: 590px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    background: #1c1917;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --glow-x: 50%;
    --glow-y: 50%;
}

.we-are-track::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.25), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.we-are-track.is-interactive::before {
    opacity: 1;
}

.we-are-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.45s ease, transform 0.45s ease;
    display: flex;
    flex-direction: column;
    background: var(--white);
    text-decoration: none;
    color: inherit;
}

.we-are-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.we-are-image {
    width: 100%;
    height: calc(100% - 108px);
    object-fit: cover;
    display: block;
    transform: scale(1.03) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
    transform-origin: center;
    transition: transform 0.45s ease;
}

.we-are-slide.active .we-are-image {
    transform: scale(1) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
}

.we-are-caption {
    position: relative;
    z-index: 2;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    border-top: 1px solid rgba(28, 25, 23, 0.06);
    background: linear-gradient(180deg, var(--surface-elevated) 0%, var(--surface-2) 100%);
    backdrop-filter: blur(12px) saturate(1.1);
}

.we-are-caption h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    text-align: center;
    color: var(--ink);
    letter-spacing: 0.015em;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.we-are-caption h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 62px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--yellow-orange) 0%, var(--turquoise) 100%);
}

.we-are-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    -webkit-tap-highlight-color: transparent;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 253, 250, 0.88);
    color: var(--ink);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-soft);
    z-index: 5;
}

.we-are-arrow:hover {
    background: var(--ink);
    color: var(--white);
    transform: translateY(-50%) scale(1.03);
}

.we-are-arrow-prev {
    left: 20px;
}

.we-are-arrow-next {
    right: 20px;
}

.we-are-arrow:focus-visible,
.we-are-dot:focus-visible {
    outline: 2px solid var(--turquoise);
    outline-offset: 2px;
}

.we-are-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.we-are-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(28, 25, 23, 0.2);
    cursor: pointer;
    transition: all 0.25s ease;
}

.we-are-dot.active {
    width: 26px;
    background: linear-gradient(90deg, var(--turquoise) 0%, var(--medium-green) 100%);
}

/* Anchor Sections */
.anchor-section {
    padding: clamp(88px, 12vw, 120px) 40px;
    background: var(--surface);
}

.anchor-section-alt {
    background: var(--surface-2);
}

.anchor-section-content {
    max-width: var(--site-content-width);
    margin: 0 auto;
}

.section-heading {
    --heading-line-height: 1.2;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.45em;
    flex-wrap: wrap;
    row-gap: 10px;
    margin-bottom: 24px;
    color: var(--ink);
    line-height: var(--heading-line-height);
}

.anchor-section-content .section-heading {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}

.products-header .section-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.section-heading-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: var(--heading-line-height);
    letter-spacing: inherit;
    font: inherit;
}

.section-heading-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center center;
    display: block;
    aspect-ratio: 1;
}

/* PNG внутри SVG с разным viewBox — подгоняем «вес» графики */
.section-heading-icon--workshop,
.section-heading-icon--design,
.section-heading-icon--stock {
    transform: translateY(0.28em);
}

.section-heading-icon--workshop {
    object-position: 50% 48%;
}

.section-heading-icon--design {
    object-position: 50% 44%;
}

.section-heading-icon--stock {
    object-position: 50% 46%;
}

.anchor-section-image {
    width: 100%;
    max-width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 22px;
    box-shadow: var(--shadow-card);
}

.anchor-section-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.anchor-section-contacts {
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    background: rgba(255, 253, 250, 0.85);
    border: 1px solid rgba(7, 178, 194, 0.18);
    box-shadow: var(--shadow-soft);
}

.anchor-section-contacts p {
    margin: 0 0 6px;
}

.anchor-section-contacts p:last-child {
    margin-bottom: 0;
}

#workshop,
#auto-design,
#stock {
    scroll-margin-top: clamp(100px, 28vw, 160px);
}

@media (prefers-reduced-motion: reduce) {
    .we-are-slide,
    .we-are-image,
    .we-are-dot,
    .we-are-arrow,
    .we-are-track::before {
        transition: none;
    }
}

/* Gallery Section */
.gallery {
    padding: clamp(88px, 12vw, 120px) 40px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 30px;
    color: var(--ink);
}

.gallery-colors {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.color-dot:hover {
    transform: scale(1.2);
}

.projects-slider {
    max-width: var(--site-content-width);
    margin: 0 auto;
    position: relative;
}

.projects-track {
    position: relative;
    height: 72vh;
    min-height: 520px;
    max-height: 760px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    cursor: pointer;
}

.project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.project-image.active {
    opacity: 1;
}

.projects-next {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    background: rgba(28, 25, 23, 0.45);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 1.7rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-soft);
}

.projects-next:hover {
    background: rgba(28, 25, 23, 0.65);
    transform: translateX(2px) scale(1.04);
}

.projects-next:focus-visible {
    outline: 2px solid var(--turquoise);
    outline-offset: 3px;
}

/* Products Section */
.products {
    padding: clamp(88px, 12vw, 120px) 40px;
    background: var(--surface);
}

.products-header {
    text-align: left;
    margin-bottom: 30px;
}

.products-colors {
    display: flex;
    justify-content: center;
    gap: 10px;
}


.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: var(--site-content-width);
    margin: 0 auto;
}

.product-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    border-radius: var(--radius-md);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
    height: 300px;
    background-color: #1c1917;
    touch-action: manipulation;
}

button.product-item {
    font: inherit;
    padding: 0;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: #1c1917;
    -webkit-tap-highlight-color: transparent;
}

.product-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.product-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    pointer-events: none;
}

.product-bg-image.active {
    opacity: 1;
}

.product-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-info {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 12px 10px;
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: hidden;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.product-name {
    font-size: clamp(0.7rem, 1.05vw, 0.88rem);
    font-weight: 600;
    line-height: 1.25;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 1), 0 0 12px rgba(0, 0, 0, 0.75);
}

.product-price {
    flex-shrink: 0;
    font-size: clamp(0.8rem, 1.15vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #de9905;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 1), 0 0 12px rgba(0, 0, 0, 0.75);
}

.product-item.is-active {
    border-color: rgba(222, 153, 5, 0.45);
    box-shadow: var(--shadow-lift);
}

.product-item.is-active::before {
    opacity: 1;
}

.product-item.is-active .product-bg-image {
    /* Keep reveal readable: stop mid-fade between collage frames */
    transition: opacity 0.35s ease;
}

.product-item.is-active .product-info {
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
    .product-item:hover {
        transform: translateY(-6px);
        border-color: rgba(222, 153, 5, 0.45);
        box-shadow: var(--shadow-lift);
    }

    .product-item:hover::before {
        opacity: 1;
    }

    .product-item:hover .product-info {
        opacity: 1;
        visibility: visible;
    }
}

.product-item:focus-visible {
    outline: 2px solid var(--turquoise);
    outline-offset: 3px;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
    color: var(--white);
    padding: clamp(56px, 10vw, 80px) 40px;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(7, 178, 194, 0.35), rgba(222, 153, 5, 0.3), transparent);
    pointer-events: none;
}

.footer-content {
    max-width: var(--site-content-width);
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-colors {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.color-line {
    width: 60px;
    height: 4px;
    transition: transform 0.3s ease;
}

.color-line:hover {
    transform: scaleY(2);
}

.footer-social {
    margin: 20px 0;
}

.footer-social-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    row-gap: 12px;
    padding: 0 4px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 14px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(6px);
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.social-link:hover {
    color: var(--white);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 22px rgba(255, 255, 255, 0.16);
}

.social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.25);
}

.social-link-youtube .social-icon,
.social-icon-youtube {
    background: linear-gradient(135deg, #ff4b4b 0%, #c40000 100%);
}

.social-link-telegram .social-icon,
.social-icon-telegram {
    background: linear-gradient(135deg, #2ca5e0 0%, #1976d2 100%);
}

.social-link-instagram .social-icon,
.social-icon-instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 100%);
}

.social-link-instagram2 .social-icon,
.social-icon-instagram2 {
    background: linear-gradient(135deg, #ff9f43 0%, #ff5e62 50%, #6a11cb 100%);
}

.social-link-mail .social-icon,
.social-icon-mail {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%);
}

.social-icon-mail svg {
    display: block;
}

.social-link-youtube:hover {
    border-color: rgba(255, 75, 75, 0.55);
    background: linear-gradient(135deg, rgba(255, 75, 75, 0.18), rgba(196, 0, 0, 0.12));
}

.social-link-telegram:hover {
    border-color: rgba(44, 165, 224, 0.55);
    background: linear-gradient(135deg, rgba(44, 165, 224, 0.2), rgba(25, 118, 210, 0.12));
}

.social-link-instagram:hover {
    border-color: rgba(221, 42, 123, 0.55);
    background: linear-gradient(135deg, rgba(245, 133, 41, 0.2), rgba(129, 52, 175, 0.12));
}

.social-link-instagram2:hover {
    border-color: rgba(255, 94, 98, 0.55);
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.2), rgba(106, 17, 203, 0.12));
}

.social-link-mail:hover {
    border-color: rgba(100, 116, 139, 0.55);
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.22), rgba(51, 65, 85, 0.12));
}

.footer-copy {
    font-size: 1rem;
    opacity: 0.7;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Base media helpers */
img {
    max-width: 100%;
}

.hero-bg-image,
.mission-bg-image,
.we-are-image,
.project-image,
.anchor-section-image,
.product-bg-image {
    max-width: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .we-are-track {
        min-height: 520px;
    }

    .projects-track {
        height: 64vh;
        min-height: 440px;
    }
}

@media (max-width: 1024px) {
    .about,
    .we-are,
    .anchor-section,
    .gallery,
    .products,
    .footer {
        padding-left: 28px;
        padding-right: 28px;
    }

    .mission-content {
        padding: 0 28px;
        max-width: 680px;
    }

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

    .product-item {
        height: 260px;
    }

    .we-are-arrow {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .we-are-arrow-prev {
        left: 12px;
    }

    .we-are-arrow-next {
        right: 12px;
    }

    .anchor-section-image {
        height: 420px;
    }

    .hero-logo {
        width: min(100%, 320px);
    }
}

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }

    .top-menu-toggle {
        display: inline-flex;
    }

    .top-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        top: max(6px, env(safe-area-inset-top, 0px));
        left: auto;
        right: max(8px, env(safe-area-inset-right, 0px));
        transform: none;
        width: auto;
        max-width: none;
    }

    .top-menu.compact {
        top: max(4px, env(safe-area-inset-top, 0px));
    }

    .top-menu-inner {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: max(10px, env(safe-area-inset-left, 0px));
        right: max(10px, env(safe-area-inset-right, 0px));
        top: calc(env(safe-area-inset-top, 0px) + 58px);
        width: auto;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        gap: 0;
        border-radius: var(--radius-md);
        background: rgba(28, 25, 23, 0.94);
        backdrop-filter: blur(16px) saturate(1.2);
        border: 1px solid transparent;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s, max-height 0.35s ease, padding 0.28s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        z-index: 1001;
    }

    .top-menu:not(.is-open) .top-menu-inner {
        border-width: 0;
    }

    .top-menu.is-open .top-menu-inner {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        max-height: min(420px, calc(100vh - env(safe-area-inset-top, 0px) - 80px));
        max-height: min(420px, calc(100dvh - env(safe-area-inset-top, 0px) - 80px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
        gap: 6px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: var(--shadow-lift);
    }

    .top-menu-link {
        flex: none;
        width: 100%;
        font-size: 0.95rem;
        padding: 14px 16px;
        min-height: 48px;
        border-radius: var(--radius-sm);
        justify-content: flex-start;
        text-align: left;
    }

    .top-menu-link-question {
        margin-top: 4px;
    }

    .top-menu.compact .top-menu-inner {
        top: calc(env(safe-area-inset-top, 0px) + 52px);
    }

    .about,
    .we-are,
    .anchor-section,
    .gallery,
    .products,
    .footer {
        padding: clamp(40px, 10vw, 56px) max(16px, env(safe-area-inset-left)) clamp(40px, 10vw, 56px) max(16px, env(safe-area-inset-right));
    }

    .mission-content {
        padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
        max-width: 100%;
    }

    .mission {
        min-height: auto;
        padding-block: clamp(64px, 16vw, 96px);
    }

    .mission-content h2 {
        font-size: clamp(2rem, 8vw, 2.75rem);
        margin-bottom: 20px;
    }

    .mission-lead,
    .mission-content p {
        font-size: 1.05rem;
        line-height: 1.65;
        margin-bottom: 24px;
    }

    .mission-colors {
        gap: 14px;
        margin-top: 24px;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-content {
        padding-top: clamp(72px, 18vw, 110px);
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        width: 100%;
    }

    .hero-colors {
        margin-top: 24px;
        margin-bottom: 8px;
    }

    .hero-logo {
        width: min(72vw, 260px);
    }

    .hero-subtitle {
        margin-bottom: 0;
        font-size: clamp(1rem, 4.2vw, 1.3rem);
        padding: 0 4px;
        line-height: 1.45;
    }

    .hero-title {
        font-size: clamp(2.1rem, 9vw, 3.2rem);
        margin-bottom: 12px;
    }

    #workshop,
    #auto-design,
    #stock {
        scroll-margin-top: 88px;
    }

    .gallery-header,
    .we-are-header,
    .products-header {
        margin-bottom: 20px;
    }

    .gallery-header h2,
    .we-are-header h2,
    .about-content h2 {
        font-size: clamp(1.75rem, 6.5vw, 2.4rem);
        margin-bottom: 18px;
    }

    .about-content p {
        font-size: 1rem;
        text-align: left;
        max-width: 100%;
    }

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

    .product-item {
        height: min(42vw, 220px);
        min-height: 160px;
        border-radius: var(--radius-sm);
    }

    .product-item.is-active {
        transform: none;
        z-index: 2;
    }

    /* Mobile: ignore sticky :hover — text only via tap (.is-active) */
    .product-item:hover {
        transform: none;
        border-color: transparent;
        box-shadow: none;
    }

    .product-item:hover::before {
        opacity: 0;
    }

    .product-item:hover .product-info {
        opacity: 0;
        visibility: hidden;
    }

    .product-item.is-active::before {
        opacity: 1;
    }

    .product-item.is-active .product-info {
        opacity: 1;
        visibility: visible;
    }

    .product-info {
        padding: 8px 6px;
        gap: 4px;
    }

    .product-name {
        font-size: 0.68rem;
        line-height: 1.2;
    }

    .product-price {
        font-size: 0.78rem;
    }

    .projects-track {
        min-height: 280px;
        height: min(48vh, 420px);
        border-radius: var(--radius-md);
        -webkit-tap-highlight-color: transparent;
    }

    .projects-next {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        right: 12px;
        bottom: 12px;
        font-size: 1.4rem;
    }

    .we-are-track {
        min-height: 0;
        height: min(62vw, 380px);
        max-height: none;
        border-radius: var(--radius-md);
        -webkit-tap-highlight-color: transparent;
    }

    .we-are-image {
        height: calc(100% - 72px);
    }

    .we-are-caption {
        min-height: 72px;
        padding: 12px 16px;
    }

    .we-are-caption h3 {
        font-size: 1.15rem;
        padding-bottom: 8px;
    }

    .we-are-caption h3::after {
        width: 48px;
    }

    .we-are-arrow {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.25rem;
        top: 38%;
        background: rgba(255, 253, 250, 0.92);
    }

    .we-are-arrow-prev {
        left: 6px;
    }

    .we-are-arrow-next {
        right: 6px;
    }

    .we-are-dots {
        margin-top: 12px;
        gap: 8px;
    }

    .we-are-dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
        padding: 0;
    }

    .we-are-dot.active {
        width: 22px;
    }

    .anchor-section-image {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 10;
        margin-bottom: 16px;
        border-radius: var(--radius-sm);
    }

    .anchor-section-content .section-heading,
    .products-header .section-heading {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 16px;
        gap: 0.35em;
    }

    .anchor-section-content p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .anchor-section-contacts {
        padding: 14px 16px;
        word-break: break-word;
    }

    .footer-logo {
        font-size: 1.55rem;
    }

    .footer-colors {
        gap: 12px;
        margin: 20px 0;
    }

    .color-line {
        width: 44px;
    }

    .social-link {
        padding: 10px 12px;
        font-size: 0.88rem;
    }

    .social-icon {
        width: 22px;
        height: 22px;
        font-size: 0.66rem;
        flex-shrink: 0;
    }

    .social-icon-mail svg {
        width: 12px;
        height: 12px;
    }

    .footer-social-links {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.7rem, 9.5vw, 2.35rem);
    }

    .hero-logo {
        width: min(68vw, 220px);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .about-content h2,
    .mission-content h2,
    .we-are-header h2,
    .gallery-header h2 {
        font-size: 1.55rem;
    }

    .anchor-section-content .section-heading,
    .products-header .section-heading {
        font-size: clamp(1.3rem, 6.2vw, 1.7rem);
    }

    .about-content p,
    .anchor-section-content p {
        font-size: 0.92rem;
    }

    .mission-lead,
    .mission-content p {
        font-size: 0.95rem;
    }

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

    .product-item {
        height: min(46vw, 190px);
        min-height: 140px;
    }

    .product-info {
        padding: 6px 5px;
        gap: 3px;
    }

    .product-name {
        font-size: 0.62rem;
        line-height: 1.18;
    }

    .product-price {
        font-size: 0.72rem;
    }

    .we-are-track {
        height: min(78vw, 320px);
    }

    .we-are-image {
        height: calc(100% - 64px);
    }

    .we-are-caption {
        min-height: 64px;
        padding: 10px 12px;
        backdrop-filter: none;
    }

    .we-are-caption h3 {
        font-size: 1rem;
    }

    .we-are-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.1rem;
        top: 36%;
    }

    .projects-track {
        min-height: 220px;
        height: 42vh;
        border-radius: var(--radius-sm);
    }

    .projects-next {
        right: max(8px, env(safe-area-inset-right));
        bottom: max(8px, env(safe-area-inset-bottom));
    }

    .footer-social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: none;
        width: 100%;
    }

    .footer-social-links .social-link {
        justify-content: center;
        width: 100%;
    }

    .footer-social-links .social-link-mail {
        grid-column: 1 / -1;
    }
}

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-item {
        height: 200px;
        min-height: 180px;
    }

    .product-info {
        padding: 10px 8px;
        gap: 5px;
    }

    .product-name {
        font-size: 0.75rem;
        line-height: 1.22;
    }

    .product-price {
        font-size: 0.85rem;
    }

    .footer-social-links {
        grid-template-columns: 1fr;
    }

    .hero-logo {
        width: min(78vw, 200px);
    }
}

/* Тач / планшеты: без «залипшего» hover — текст только по тапу */
@media (hover: none), (pointer: coarse) {
    .product-item:hover {
        transform: none;
        border-color: transparent;
        box-shadow: none;
    }

    .product-item:hover::before {
        opacity: 0;
    }

    .product-item:hover .product-info {
        opacity: 0;
        visibility: hidden;
    }

    .product-item.is-active::before {
        opacity: 1;
    }

    .product-item.is-active .product-info {
        opacity: 1;
        visibility: visible;
    }

    .social-link:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-bg-image {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-bg-image {
        transition: none;
    }
}