:root {
    --primary-color: #000;
    --bg-page: #f5f7fb;
    --bg-section-light: #ffffff;
    --bg-section-soft: #eef3ff;
    --bg-section-dark: #0b1220;
    --card-border: rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Trebuchet MS", sans-serif;
    background: var(--bg-page);
    color: #111827;
}

header {
    display: flex;
    background: #000;
    padding: 1rem;
    position: relative;
    min-height: 100vh;
}

header .block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s, color 0.3s;
}

header .block h3 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
}

header .block p {
    margin: 0;
    font-size: 1rem;
}

header .block-1 { background: #fff; color: #000; }
header .block-2 { background: #1e90ff; color: #000; }
header .block-3 { background: #000; color: #fff; }

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    gap: 1rem;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.2s linear;
}

.top-bar.scrolled {
    background: var(--bg-section-dark);
}

.top-bar.scrolled .logo-main,
.top-bar.scrolled .logo-sub,
.top-bar.scrolled .desktop-menu a {
    color: #fff;
}

.top-bar.scrolled .desktop-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar .logo-fixed {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.desktop-menu {
    display: none;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        margin-left: auto;
        margin-right: 1rem;
    }

    .desktop-menu a {
        font-size: 1.2rem;
        font-weight: 600;
        color: #000;
        text-decoration: none;
        transition: color 0.2s;
    }

    .desktop-menu a:hover {
        color: #1e90ff;
    }

    .desktop-menu.inverted a {
        color: #fff;
    }

    .desktop-menu.inverted a:hover {
        color: rgba(255, 255, 255, 0.8);
    }
}

.menu-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #000;
    border: 3px solid #fff;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-overlay .menu-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.menu-nav a {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

about-us,
services-section,
products-section,
warranty-section,
pricing-section,
contact-us {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

#about-us {
    background: var(--bg-section-light);
}

#services {
    background: var(--bg-section-soft);
}

#products {
    background: var(--bg-section-light);
}

#warranty {
    background: var(--bg-section-soft);
}

#pricing {
    background: var(--bg-section-light);
}

contact-us {
    background: var(--bg-section-dark);
    color: #fff;
}

about-us .container,
services-section .container,
products-section .container,
warranty-section .container,
pricing-section .container,
contact-us .container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

about-us h2,
services-section h2,
products-section h2,
warranty-section h2,
pricing-section h2,
contact-us h2 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
}

about-us .container > p,
.warranty-intro,
.pricing-intro,
.contact-intro {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

about-us .container > p,
.warranty-intro,
.pricing-intro {
    color: #555;
}

.about-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    margin-top: 0.35rem;
}

.about-tech-tag {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
}

.warranty-catalog {
    --slider-gap: 1rem;
    position: relative;
    overflow: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
}

.warranty-block {
    flex: 0 0 calc((100% - 2 * var(--slider-gap)) / 3);
    min-width: calc((100% - 2 * var(--slider-gap)) / 3);
    max-width: calc((100% - 2 * var(--slider-gap)) / 3);
    margin: 0;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
}

.warranty-block-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.warranty-block-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #555;
}

.section-items {
    display: grid;
    gap: 1rem;
}

.services-catalog {
    --slider-gap: 1rem;
    position: relative;
    overflow: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
}

.service-group {
    flex: 0 0 calc((100% - 2 * var(--slider-gap)) / 3);
    min-width: calc((100% - 2 * var(--slider-gap)) / 3);
    max-width: calc((100% - 2 * var(--slider-gap)) / 3);
    margin: 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.service-group-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.service-group-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-group-list-item {
    position: relative;
    padding-left: 0.85rem;
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #334155;
}

.service-group-list-item:last-child {
    margin-bottom: 0;
}

.service-group-list-item::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #64748b;
}

.section-item {
    margin: 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 1rem;
    line-height: 1.5;
}

.carousel-slide .section-item {
    flex: 0 0 calc((100% - 2 * var(--slider-gap)) / 3);
    min-width: calc((100% - 2 * var(--slider-gap)) / 3);
    max-width: calc((100% - 2 * var(--slider-gap)) / 3);
}

.products-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.products-filter-link {
    font-size: 1rem;
    font-weight: 400;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.products-filter-link:hover {
    color: #1d4ed8;
}

.products-filter-link.active {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.carousel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.carousel .products-catalog,
.carousel .pricing-plans,
.carousel .services-catalog,
.carousel .warranty-catalog {
    min-width: 0;
}

.carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
}

.carousel--empty .carousel-dots,
.carousel-dots:empty {
    display: none;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot:hover {
    background: #94a3b8;
}

.carousel-dot.active {
    background: #1e90ff;
    transform: scale(1.2);
}

.products-catalog {
    --slider-gap: 1rem;
    position: relative;
    overflow: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
}

.carousel-slide {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--slider-gap);
    width: 100%;
}

/* [hidden] must win over .carousel-slide { display: flex } or slides never hide */
.carousel-slide[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .carousel-slide .product-card,
    .carousel-slide .pricing-card,
    .carousel-slide .service-group,
    .carousel-slide .section-item,
    .carousel-slide .warranty-block {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

.product-card {
    flex: 0 0 calc((100% - 2 * var(--slider-gap)) / 3);
    min-width: calc((100% - 2 * var(--slider-gap)) / 3);
    max-width: calc((100% - 2 * var(--slider-gap)) / 3);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.product-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e90ff;
    margin-bottom: 0.5rem;
}

.product-name {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.product-description {
    margin: 0 0 1rem;
    color: #555;
    line-height: 1.5;
    flex: 1;
}

.product-demo {
    align-self: flex-start;
    margin-top: auto;
    font-size: 1rem;
    font-weight: 400;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.product-demo:hover {
    color: #1d4ed8;
}

.pricing-intro {
    max-width: 760px;
}

.pricing-plans {
    --slider-gap: 1rem;
    position: relative;
    overflow: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
}

.pricing-card {
    flex: 0 0 calc((100% - 2 * var(--slider-gap)) / 3);
    min-width: calc((100% - 2 * var(--slider-gap)) / 3);
    max-width: calc((100% - 2 * var(--slider-gap)) / 3);
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.25rem;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.pricing-card--featured {
    border-color: #1e90ff;
    box-shadow: 0 12px 32px rgba(30, 144, 255, 0.15);
}

.pricing-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.pricing-card-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.65rem;
}

.pricing-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
}

.pricing-card-period {
    font-size: 0.9rem;
    color: #64748b;
}

.pricing-card-description {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.pricing-card-features {
    margin: 0 0 1.25rem;
    padding-left: 1.15rem;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.55;
    flex: 1;
}

.pricing-card-features li {
    margin-bottom: 0.35rem;
}

.pricing-card-features li:last-child {
    margin-bottom: 0;
}

.pricing-card-cta {
    align-self: flex-start;
    margin-top: auto;
    font-size: 1rem;
    font-weight: 400;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.pricing-card-cta:hover {
    color: #1d4ed8;
}

.contact-intro {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info {
    margin-bottom: 0;
}

.contact-phone-split {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    vertical-align: middle;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.contact-phone-split-main {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-phone-split-main:hover {
    color: #1e90ff;
}

.contact-phone-split-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    padding: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-phone-split-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #1e90ff;
}

.contact-phone-split-toggle:focus-visible {
    outline: 2px solid #1e90ff;
    outline-offset: 2px;
}

.contact-phone-split-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
}

.contact-phone-split-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--bg-section-dark);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    z-index: 1200;
}

.contact-phone-split-menu li {
    margin: 0;
}

.contact-phone-split-menu-link {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.contact-phone-split-menu-link:hover {
    color: #1e90ff;
    background: rgba(255, 255, 255, 0.06);
}

.contact-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.contact-footer {
    padding-top: 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-social a {
    display: flex;
    color: #fff;
    transition: color 0.25s ease;
}

.contact-social a:hover {
    color: #1e90ff;
}

.contact-footer-copy {
    color: rgba(255, 255, 255, 0.8);
}

.header-copyright {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #000;
}

.header-social {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 1rem;
}

.header-social a {
    color: #fff;
    opacity: 0.9;
}

.header-social a:hover {
    opacity: 1;
}

.logo-fixed .logo-main,
.logo-fixed .logo-sub {
    transition: color 0.3s ease;
}

.logo-fixed.inverted .logo-main,
.logo-fixed.inverted .logo-sub {
    color: #fff;
}

.logo-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    header {
        flex-direction: column;
        min-height: 100vh;
    }

    .desktop-menu {
        display: none !important;
    }

    .header-copyright {
        color: #fff;
    }

    .menu-btn {
        display: flex;
    }

}

.music-dock {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1050;
    max-width: calc(100vw - 2rem);
    font-family: "Trebuchet MS", sans-serif;
}

.music-dock-inner {
    background: var(--bg-section-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    padding: 0.65rem 0.75rem 0.75rem;
    color: #e5e7eb;
}

.music-dock-row--eq {
    margin-bottom: 0.5rem;
}

.music-dock-row--eq canvas {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 56px;
    border-radius: 8px;
    background: #060b14;
}

.music-dock-row--main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.music-btn {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    background: rgba(30, 144, 255, 0.35);
}

.music-btn:active {
    transform: scale(0.96);
}

.music-btn-icon {
    width: 40px;
    height: 40px;
}

.music-btn-play {
    width: 52px;
    height: 52px;
    background: #1e90ff;
}

.music-btn-play:hover {
    background: #4aa3ff;
}

.music-btn-expand {
    width: 40px;
    height: 40px;
    margin-left: 0.25rem;
}

.music-btn-expand svg {
    transition: transform 0.2s ease;
}

.music-dock--expanded .music-btn-expand svg {
    transform: rotate(180deg);
}

.music-icon-pause[hidden],
.music-icon-play[hidden] {
    display: none;
}

.music-now-playing {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.75);
    text-align: center;
    line-height: 1.35;
    max-width: 320px;
}

.music-playlist-panel {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 220px;
    overflow-y: auto;
}

.music-playlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.music-playlist-item-btn {
    width: 100%;
    text-align: left;
    padding: 0.45rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.music-playlist-item-btn:hover {
    background: rgba(30, 144, 255, 0.2);
}

.music-playlist-item-btn--current {
    border-color: rgba(30, 144, 255, 0.7);
    background: rgba(30, 144, 255, 0.18);
}

