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

/* Base for rem – scales with browser zoom; 1rem = 16px at 100% */
html {
    font-size: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 87.5rem; /* 1400px */
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* Header Styles */
.header {
    background-color: #0f0f0f;
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
    position: relative;
    z-index: 10;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: clamp(2rem, 4vw, 2.5rem);
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    background: transparent;
}

.navigation {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link-highlight {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    color: #d0d0d0;
}

.nav-link-active {
    color: #ffffff;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #1a1a1a;
    min-height: calc(100vh - 5rem);
    position: relative;
    padding: clamp(2rem, 8vw, 5rem) 0;
    overflow: hidden;
}

/* Centered background logo - fixed in viewport, reduced opacity (150% size) */
.hero-section::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(105%, 48.75rem);
    height: min(105vh, 48.75rem);
    background: url('logo/solo_whiteowl.png') center center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

/* Background Patterns */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(40, 40, 40, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(40, 40, 40, 0.2) 0%, transparent 50%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(30, 30, 30, 0.1) 2px,
            rgba(30, 30, 30, 0.1) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vw, 3rem);
    position: relative;
    z-index: 2;
}

/* Hero Logo (replaces speaker illustration) */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: transparent;
    flex-shrink: 0;
}

.hero-logo {
    width: 100%;
    max-width: min(280px, 18rem);
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    background: transparent;
}

.speaker-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker {
    position: relative;
    width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speaker-top {
    width: 180px;
    height: 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 20px 20px 0 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.speaker-top::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.speaker-body {
    width: 200px;
    height: 220px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.speaker-band {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 60px;
    background: 
        repeating-linear-gradient(
            0deg,
            #d0d0d0 0px,
            #d0d0d0 2px,
            #e8e8e8 2px,
            #e8e8e8 4px
        );
    border-radius: 8px;
}

.speaker-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    background-color: #1a1a1a;
    border-radius: 2px;
}

/* Sound Waves */
.sound-waves {
    position: absolute;
    top: -80px;
    right: -60px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.wave {
    width: 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(100, 150, 255, 0.6) 100%);
    border-radius: 2px;
    animation: waveAnimation 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.wave-1 {
    height: 60px;
    animation-delay: 0s;
}

.wave-2 {
    height: 80px;
    animation-delay: 0.2s;
}

.wave-3 {
    height: 100px;
    animation-delay: 0.4s;
}

.wave-4 {
    height: 70px;
    animation-delay: 0.6s;
}

@keyframes waveAnimation {
    0%, 100% {
        opacity: 0.6;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* Hero Text Content */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.25rem);
    max-width: min(480px, 100%);
    min-width: 0;
    align-items: flex-start;
}

.hero-title {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.title-main {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.title-sub {
    font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2.25rem);
    font-weight: 400;
    color: #6ba3ff;
    letter-spacing: -0.02em;
}

/* Email Container */
.email-container {
    position: relative;
    width: 100%;
    max-width: 31.25rem;
    min-width: 0;
    display: flex;
    gap: 0;
}

.email-input {
    flex: 1;
    min-width: 0;
    padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1rem, 2vw, 1.25rem);
    background-color: #ffffff;
    border: none;
    border-radius: 0.75rem 0 0 0.75rem;
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: 0.02em;
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.email-input::placeholder {
    color: #999999;
    font-weight: 400;
}

.email-input:focus {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.email-submit-btn {
    padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1rem, 2vw, 1.5rem);
    background-color: #2a2a2a;
    border: none;
    border-radius: 0 0.75rem 0.75rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.email-submit-btn:hover {
    background-color: #3a3a3a;
}

.email-submit-btn:active {
    transform: scale(0.98);
}

.email-icon {
    color: #ffffff;
}

/* Description */
.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: #b0b0b0;
    max-width: 500px;
    font-weight: 400;
}

/* CTA Button */
.cta-button {
    width: fit-content;
    padding: 16px 40px;
    background-color: #2a2a2a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Product / Прилади page (page 2) */
.page-section {
    min-height: calc(100vh - 5rem);
    padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
    position: relative;
    z-index: 2;
}

.page-prilady {
    overflow: hidden;
}

/* Same centered background logo as on home (solo_whiteowl.png, 150% size) */
.page-prilady::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(105%, 48.75rem);
    height: min(105vh, 48.75rem);
    background: url('logo/solo_whiteowl.png') center center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

/* Keep background logo behind carousel images on product detail page */
.product-detail-split.page-prilady::after {
    z-index: -1;
}

.page-title {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

/* Прилади main page: list of 2 clickable product cards (small pic + name) */
.product-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    max-width: 42rem;
    margin: 0 auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 0.75rem;
    background-color: rgba(40, 40, 40, 0.4);
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
    background-color: rgba(60, 60, 60, 0.5);
    transform: translateY(-2px);
}

.product-card-image-wrap {
    display: block;
    width: 100%;
    max-width: 12rem;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: rgba(30, 30, 30, 0.6);
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-card-name {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    font-weight: 600;
    text-align: center;
}

/* Product detail subsection: big image + full description */
.product-detail-page .page-title {
    margin-bottom: 1rem;
}

.product-detail-back {
    display: inline-block;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    color: #6ba3ff;
    text-decoration: none;
    font-size: clamp(0.875rem, 1.2vw + 0.3rem, 1rem);
    transition: color 0.2s ease;
}

.product-detail-back:hover {
    color: #8fbcff;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.product-detail-image-wrap {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: rgba(40, 40, 40, 0.5);
    min-width: 0;
}

.product-detail-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.product-detail-content {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.25rem);
    min-width: 0;
}

.product-detail-title {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.product-detail-description {
    font-size: clamp(0.9375rem, 1.2vw + 0.4rem, 1rem);
    line-height: 1.7;
    color: #b0b0b0;
}

.product-detail-description p {
    margin: 0 0 1em 0;
}

.product-detail-description p:last-child {
    margin-bottom: 0;
}

.product-detail-scroll .product-detail-description {
    max-width: 100%;
    overflow-x: hidden;
}

.product-specs {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: clamp(0.8125rem, 1vw + 0.35rem, 0.875rem);
    color: #b0b0b0;
}

.product-specs .spec-label {
    width: 48%;
    padding: 0.3rem 0.5rem 0.3rem 0;
    vertical-align: top;
    color: #d0d0d0;
    font-weight: 500;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-specs .spec-value {
    width: 52%;
    padding: 0.3rem 0 0.3rem 0.35rem;
    vertical-align: top;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-specs tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-specs tr:last-child {
    border-bottom: none;
}

.product-spec-section {
    margin-bottom: 1.25rem;
}

.product-spec-section:last-child {
    margin-bottom: 0;
}

.product-spec-section-title {
    font-size: clamp(0.75rem, 1vw + 0.2rem, 0.8125rem);
    font-weight: 600;
    color: #e8e8e8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
}

.product-detail-scroll .product-detail-title {
    margin-bottom: 0.75rem;
}

.product-specs th {
    padding: 0.3rem 0 0.3rem 0.35rem;
    vertical-align: top;
    font-weight: 600;
    color: #d0d0d0;
    font-size: inherit;
}

.product-specs th:first-child {
    text-align: left;
    padding-left: 0;
}

.product-specs th:last-child {
    text-align: left;
    padding-right: 0;
}

.product-specs-kit thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Прилад 1 (delfin): left = carousel, right = scrollable text; fit page */
.container-full {
    max-width: 100%;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.product-detail-split .container-full {
    padding-left: clamp(0.75rem, 3vw, 1.5rem);
    padding-right: clamp(0.5rem, 2vw, 1rem);
}

/* Contain split layout in viewport – no page scroll, only right panel scrolls */
.product-detail-page.product-detail-split {
    height: calc(100vh - 5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.product-detail-page.product-detail-split .container-full {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.product-detail-page.product-detail-split .product-detail-back {
    flex-shrink: 0;
}

.product-detail-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: stretch;
    min-height: 0;
    flex: 1;
}

.product-detail-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 0;
}

.carousel-arrow {
    flex-shrink: 0;
    width: clamp(2.5rem, 5vw, 3.5rem);
    height: clamp(2.5rem, 5vw, 3.5rem);
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    touch-action: manipulation;
    align-self: center;
}

.carousel-arrow-svg {
    width: 45%;
    height: 45%;
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.carousel-arrow:active {
    transform: scale(0.98);
}

.carousel-view {
    flex: 1;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgba(40, 40, 40, 0.4);
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0.5rem;
}

.product-detail-gallery {
    position: sticky;
    top: clamp(5rem, 10vw, 6rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    min-width: 0;
}

.product-detail-gallery-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 0.5rem;
    background-color: rgba(40, 40, 40, 0.4);
}

.product-detail-scroll {
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.25rem;
}

.product-detail-scroll > * {
    min-width: 0;
    max-width: 100%;
}


.product-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.product-image-wrap {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: rgba(40, 40, 40, 0.5);
    min-width: 0;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.product-description {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.25rem);
    min-width: 0;
}

.product-heading {
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.product-text {
    font-size: clamp(0.9375rem, 1.2vw + 0.4rem, 1rem);
    line-height: 1.7;
    color: #b0b0b0;
    font-weight: 400;
}

/* Responsive – breakpoints in rem so they scale with zoom */
@media (max-width: 64rem) {
    .hero-content {
        flex-direction: column;
        gap: clamp(1.5rem, 4vw, 2.5rem);
    }

    .hero-image {
        order: 2;
    }

    .hero-text {
        order: 1;
        text-align: center;
        align-items: center;
        max-width: 100%;
    }

    .speaker-container {
        max-width: 18.75rem;
        height: 25rem;
    }
}

@media (max-width: 48rem) {
    .hero-section::after,
    .page-prilady::after {
        content: none;
    }

    .nav-wrapper {
        flex-direction: column;
        justify-content: center;
        gap: 1.25rem;
    }

    .navigation {
        justify-content: center;
    }

    .email-container {
        max-width: 100%;
    }

    .hero-section {
        padding: clamp(1.5rem, 5vw, 2.5rem) 0;
    }

    .product-list {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .product-block {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2rem);
    }

    .product-image-wrap {
        max-width: 100%;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-split-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .product-detail-carousel {
        order: -1;
        position: static;
        max-height: min(45vh, 100vw * (3 / 4));
        flex-wrap: wrap;
        justify-content: center;
    }

    .carousel-view {
        order: -1;
        width: 100%;
        max-height: min(45vh, 100vw * (3 / 4));
    }

    .carousel-img {
        max-height: 100%;
    }

    .product-detail-scroll {
        min-height: 0;
        overflow-y: auto;
    }

    .product-detail-gallery {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .product-detail-gallery-img {
        flex: 1 1 40%;
        max-width: 100%;
    }

    .product-specs .spec-label {
        white-space: normal;
        min-width: 0;
    }
}
