:root {
    --blue: #028ebd;
    --blue-dark: #0D6E94;
    --orange: #E8984F;
    --navy: #12324A;
    --bg: #F2FAFD;
    --white: #ffffff;
    --text: #1E293B;
    --muted: #555555;
    --border: #DCEAF2;
    --shadow: 0 4px 24px rgba(18, 50, 74, .08);
    --radius: 12px;
    --container: 1200px;

    /* Bootstrap 5.3 breakpoints */
    --bs-sm: 576px;
    --bs-md: 768px;
    --bs-lg: 992px;
    --bs-xl: 1200px;
    --bs-xxl: 1400px;
    --bs-sm-max: 575.98px;
    --bs-md-max: 767.98px;
    --bs-lg-max: 991.98px;
    --bs-xl-max: 1199.98px;
    --bs-xxl-max: 1399.98px;
}

/*
 * Responsive breakpoints (Bootstrap 5.3):
 *   sm  ≥576px   → max-width: 575.98px
 *   md  ≥768px   → max-width: 767.98px
 *   lg  ≥992px   → max-width: 991.98px
 *   xl  ≥1200px  → max-width: 1199.98px
 *   xxl ≥1400px  → min-width: 1400px
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

h1,
h2,
h3,
h4 {
    font-family: Raleway, sans-serif;
    line-height: 1.2;
    color: var(--navy);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    :root {
        --container: 1400px;
    }
}
.field2 {display:none}

.is-hidden {
    display: none !important;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 1px 0 var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0 12px;
    position: relative;
}

.header__row--top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.header__logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.header__logo img {
    height: 100px;
    width: auto;
}

.header__nav-wrap {
    position: static;
    transform: none;
    width: 100%;
    z-index: 1;
    padding-top: 10px;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    flex-wrap: wrap;
}

.header__nav-link {
    padding: 8px 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
    border-radius: 8px;
    white-space: nowrap;
    transition: color .2s, background .2s;
}

.header__nav-link:hover {
    color: var(--blue);
    background: rgba(35, 148, 234, .08);
}

.header__nav-link.is-active {
    color: var(--blue);
    background: rgba(35, 148, 234, .12);
}

.header__calc-btn {
    margin-left: 8px;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
}

.header__burger span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.header__burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.header__burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1199.98px) {
    .header__nav-link {
        padding: 8px 8px;
        font-size: 13px;
    }

    .header__calc-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 991.98px) {
    .header__inner {
        gap: 0;
        padding: 6px 0;
    }

    .header__row--top {
        min-height: 56px;
        gap: 8px;
    }

    .header__burger {
        display: flex;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    .header__contacts {
        margin-left: auto;
    }

    .header__messengers {
        display: none;
    }

    .header__phone-block::before {
        display: none;
    }

    .header__contacts .btn {
        display: none;
    }

    .header__nav-wrap {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        flex: none;
        background: var(--white);
        border: none;
        border-top: none;
        box-shadow: none;
        z-index: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 72px 0 32px;
    }

    .header__nav-wrap.is-open {
        display: block;
    }

    .header__nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 20px 24px;
        gap: 4px;
        flex-wrap: wrap;
        max-width: var(--container);
        margin: 0 auto;
    }

    .header__nav-link {
        padding: 14px 16px;
        font-size: 17px;
    }

    .header__calc-btn {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        justify-content: center;
        padding: 14px 16px;
        font-size: 15px;
    }
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-left: auto;
}

.header__address-block,
.header__phone-block {
    position: relative;
}

.header__address-block::before,
.header__phone-block::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: rgba(18, 50, 74, .15);
    pointer-events: none;
}

.header__phone {
    font-family: Raleway, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}

.header__phone:active,
.header__phone:focus {
    color: var(--navy);
}

@media (hover: hover) {
    .header__phone:hover {
        color: var(--blue);
    }
}

body.menu-open .header__phone,
body.menu-open .header__phone:hover,
body.menu-open .header__phone:active,
body.menu-open .header__phone:focus {
    color: var(--navy);
}

.header__hours {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.header__address-block {
    text-align: right;
    max-width: 240px;
}

@media (max-width: 1199.98px) {
    .header__contacts .header__address-block {
        display: none;
    }
}

.header__address {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
    margin-top: 8px;
}

.header__address-label {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

.header__phone-block {
    text-align: right;
}

.header__phone-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* Header compact sizes (after base rules so cascade wins) */
@media (max-width: 991.98px) {
    .header__logo img {
        height: 52px;
    }

    .header__contacts {
        gap: 8px;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .header__address-block::before,
    .header__phone-block::before {
        left: -4px;
    }

    .header__phone-block {
        min-width: 0;
    }

    .header__phone {
        font-size: 16px;
    }

    .header__hours {
        font-size: 11px;
    }
}

@media (max-width: 767.98px) {
    .header .container {
        padding: 0 12px;
    }

    .header__logo {
        left: 12px;
    }

    .header__row--top {
        gap: 6px;
        padding: 4px 0;
    }

    .header__logo img {
        height: 44px;
    }

    .header__hours {
        display: none;
    }

    .header__phone {
        font-size: 16px;
    }

    .header__phone-row {
        gap: 4px;
    }

    .header__burger {
        width: 38px;
        height: 38px;
        padding: 7px;
    }
}

@media (max-width: 575.98px) {
    .header .container {
        padding: 0 10px;
    }

    .header__logo {
        left: 10px;
    }

    .header__logo img {
        height: 38px;
    }

    .header__phone {
        font-size: 16px;
        letter-spacing: -0.01em;
    }

    .header__burger {
        width: 36px;
        height: 36px;
        gap: 4px;
        padding: 6px;
    }

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: Raleway, sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--blue);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--orange);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
}

.btn--outline:hover {
    background: var(--blue);
    color: var(--white);
}

.btn--white {
    background: var(--white);
    color: var(--blue);
}

.btn--white:hover {
    background: var(--orange);
    color: var(--white);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn--block {
    width: 100%;
}

.shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 70%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .4) 50%, transparent);
    transform: skewX(-20deg);
    animation: shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {

    0%,
    70% {
        left: -120%;
    }

    100% {
        left: 150%;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, .01) 10%,
            rgba(255, 255, 255, .55) 42%,
            rgba(255, 255, 255, .35) 68%,
            rgba(255, 255, 255, .15) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    padding: 60px 0;
}

@media (min-width: 992px) {
    .hero__inner {
        grid-template-columns: 1fr minmax(300px, 380px);
        gap: 48px;
    }
}

/* Tablet / mid desktop: more side room so content isn't flush to edges */
@media (max-width: 1199.98px) {
    .hero .container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero {
        min-height: 600px;
    }

    .hero__inner {
        grid-template-columns: 1fr minmax(260px, 320px);
        gap: 24px;
        padding: 48px 0;
    }

    .hero__form-card {
        padding: 24px 20px 20px;
    }

    .hero__form-title {
        font-size: 20px;
    }

    .hero__info-contact-phone a {
        font-size: 20px;
    }
}

@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
    }

    .hero .container {
        padding-left: 28px;
        padding-right: 28px;
    }

    .hero__inner {
        padding-top: 48px;
        padding-bottom: 48px;
        gap: 24px;
    }

    .hero__content .btn {
        display: none;
    }

    .hero__subtitle {
        margin-bottom: 0;
    }

    .hero__bg img {
        object-position: left;
    }

    .hero__bg::after {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, .40) 0%,
                rgba(255, 255, 255, .0) 55%,
                rgba(255, 255, 255, .0) 100%);
    }
}

@media (max-width: 767.98px) {
    .hero .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero__inner {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 575.98px) {
    .hero .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero__inner {
        padding-top: 32px;
        padding-bottom: 32px;
        gap: 20px;
    }

    .hero__form-card {
        padding: 22px 18px 18px;
    }
}

.hero__content {
    max-width: 640px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.hero h1 span {
    color: var(--blue);
}

.hero__subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--navy);
    margin-bottom: 32px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.hero__subtitle b {
    color: var(--orange);
}

.hero__form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px 24px;
    border: 1px solid var(--border);
}

.hero__form-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
    color: var(--navy);
}

.hero__form-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero__form .form-group {
    margin-bottom: 14px;
}

.hero__form-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.hero__info {
    padding-top: 24px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.hero__info-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 4px;
}

.hero__info-subtitle {
    font-size: 15px;
    line-height: 1.3;
    color: var(--text);
}

.hero__info-contact {
    font-size: 12px;
    color: var(--muted);
    padding-top: 16px;
}

.hero__info-contact-phone a {
    display: inline-block;
    margin-top: 4px;
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    transition: color .2s;
}

.hero__info-contact-phone a:hover {
    color: var(--blue);
}

.form-consent {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--muted);
    text-align: center;
}

.form-consent--calc {
    margin-top: 16px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section--white {
    background: var(--white);
}

#contacts.section {
    padding-bottom: 0;
}

.section__title {
    text-align: center;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 12px;
}

.section__subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card__img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.service-card__body {
    padding: 20px;
}

.service-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}

.service-card__price {
    font-family: Raleway, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 16px;
}
@media (max-width: 1399px) {
    .service-card__title {
        font-size: 16px;
    }
}

/* Brands */
.brands {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.brand {
    background: var(--white);
    border: none;
    border-radius: 0;
    padding: 22px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
    transition: background .25s, filter .25s, opacity .25s;
    filter: grayscale(1);
    opacity: .65;
}

.brand:hover {
    background: var(--white);
    filter: grayscale(0);
    opacity: 1;
    z-index: 1;
    box-shadow: inset 0 0 0 2px var(--blue);
}

.brand img {
    max-height: 65px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .brands {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767.98px) {
    .brands {
        grid-template-columns: repeat(3, 1fr);
    }

    .brand {
        height: 72px;
        padding: 14px 8px;
    }

    .brand img {
        max-height: 60px;
    }
}

/* Products */
.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1199.98px) {
    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

.product-card.is-hidden {
    display: none;
}

.products__more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.products__more[hidden] {
    display: none;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.product-gallery {
    margin-bottom: 16px;
}

.product-gallery__viewport {
    position: relative;
    height: 160px;
    display: grid;
    place-items: center;
}

.product-gallery__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-gallery__link {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    cursor: zoom-in;
    transition: opacity .25s ease;
}

.product-gallery__link.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.product-gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, .55);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s, background .2s;
    z-index: 1;
}

.product-gallery:hover .product-gallery__btn,
.product-gallery:focus-within .product-gallery__btn {
    opacity: 1;
}

.product-gallery__btn:hover {
    background: rgba(15, 23, 42, .8);
}

.product-gallery__btn--prev {
    left: 0;
}

.product-gallery__btn--next {
    right: 0;
}

.product-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.product-gallery__dots button {
    width: 7px;
    height: 7px;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: #cbd5e1;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.product-gallery__dots button.is-active {
    background: var(--navy);
    transform: scale(1.15);
}

/* ── Fancybox кастомизация ────────────────── */
.fancybox__container {
    --fancybox-accent-color: var(--blue, #2394ea);
}

.fancybox__toolbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    /* iOS Safari: parent pointer-events:none breaks taps on toolbar buttons */
    pointer-events: auto;
    z-index: 40;
    padding-top: env(safe-area-inset-top, 0px);
}

.fancybox__toolbar .f-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
}

.fancybox__toolbar [data-fancybox-close] {
    /* Larger hit area for close on touch devices */
    min-width: 48px;
    min-height: 48px;
}

.fancybox__caption {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.product-card__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    min-height: 40px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-card__specs-wrap {
    margin-bottom: 12px;
    flex: 1;
    min-width: 0;
}

.product-card__specs {
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--muted);
}

.product-card__specs table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.product-card__specs tr {
    vertical-align: baseline;
}

.product-card__specs tr + tr td,
.product-card__specs tbody + tbody tr:first-child td {
    padding-top: 6px;
}

.product-card__specs td {
    padding: 0;
    border: none;
    min-width: 0;
}

.product-card__specs td:first-child {
    width: 45%;
    padding-right: 12px;
    color: var(--muted);
    overflow-wrap: break-word;
}

.product-card__specs td:last-child {
    width: 55%;
    text-align: right;
    color: var(--navy);
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-card__specs-wrap:not(.is-expanded) .product-card__specs-extra {
    display: none;
}

.product-card__specs-more {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    color: var(--blue);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-card__specs-more:hover {
    color: var(--navy);
}

.product-card__install {
    font-size: 13px;
    margin-bottom: 8px;
    overflow-wrap: break-word;
}

.product-card__install .old,
.form-checkbox .old {
    text-decoration: line-through;
    color: var(--muted);
}

.product-card__install .discount,
.form-checkbox .discount {
    color: #ef4444;
    font-weight: 600;
}

.product-card__price {
    font-family: Raleway, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.product-card__actions {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.product-card__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    font-size: 14px;
}

@media (max-width: 1199.98px) {
    .product-card__actions {
        flex-direction: column;
        gap: 10px;
    }

    .product-card__actions .btn {
        width: 100%;
        padding: 20px 20px;
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        padding: 12px;
    }

    .product-gallery {
        margin-bottom: 10px;
    }

    .product-gallery__viewport {
        height: 110px;
    }

    .product-gallery__btn {
        width: 24px;
        height: 24px;
    }

    .product-gallery__dots {
        margin-top: 6px;
        gap: 4px;
    }

    .product-card__title {
        font-size: 13px;
        min-height: 45px;
        margin-bottom: 8px;
    }

    .product-card__specs {
        font-size: 10px;
    }

    .product-card__specs tr + tr td,
    .product-card__specs tbody + tbody tr:first-child td {
        padding-top: 4px;
    }

    .product-card__specs td:first-child {
        padding-right: 6px;
    }

    .product-card__specs-more {
        font-size: 12px;
    }

    .product-card__install {
        font-size: 11px;
    }

    .product-card__price {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .product-card__actions {
        gap: 8px;
    }

    .product-card__actions .btn {
        padding: 20px 15px;
        font-size: 13px;
    }
}

/* Calculator */
.calc {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    /* max-width: 860px; */
    margin: 0 auto;
}

.calc__steps {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.calc__step-dot {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    transition: background .3s;
}

.calc__step-dot.active {
    background: var(--blue);
}

.calc__step-dot.done {
    background: var(--orange);
}

.calc__question {
    display: none;
}

.calc__question.active {
    display: block;
    animation: fadeIn .3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc__question-title,
.calc__question h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.calc__final-text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    margin: -8px 0 20px;
}

.calc__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.calc__options--img {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.calc__option {
    position: relative;
    display: block;
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 14px;
    appearance: none;
}

.calc__option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.calc__option--img {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calc__option-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.calc__option--img span {
    padding: 12px 10px;
    font-size: 13px;
    line-height: 1.3;
}

.calc__option:hover,
.calc__option:has(input[type="radio"]:checked) {
    border-color: var(--blue);
    background: rgba(35, 148, 234, .05);
}

.calc__option--img:hover,
.calc__option--img:has(input[type="radio"]:checked) {
    background: rgba(35, 148, 234, .05);
}

.calc__option--img:has(input[type="radio"]:checked) .calc__option-img {
    opacity: .92;
}

.calc__nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.calc__summary {
    margin-top: 20px;
    padding: 16px 18px;
    background: rgba(0, 153, 204, .04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    animation: fadeIn .3s;
}

.calc__summary-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.calc__summary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calc__summary-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    max-width: 100%;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-align: left;
    font: inherit;
    appearance: none;
}

.calc__summary-item:hover {
    border-color: var(--blue);
    background: rgba(0, 153, 204, .06);
}

.calc__summary-item__label {
    color: var(--muted);
    flex-shrink: 0;
}

.calc__summary-item__label::after {
    content: ":";
}

.calc__summary-item__value {
    font-weight: 600;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.calc__message {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin: 10px 0 20px 0;
    font-size: 15px;
}

.calc__message--success {
    background: rgba(0, 208, 132, .1);
    color: #007a4d;
    border: 1px solid rgba(0, 208, 132, .25);
}

.calc__message--error {
    background: rgba(207, 46, 46, .08);
    color: #a82828;
    border: 1px solid rgba(207, 46, 46, .2);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s, padding .2s;
    background: var(--white);
}

/* Placeholder есть в HTML (для PageSpeed), визуально скрыт — подпись у floating label */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
    opacity: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.form-group--float {
    position: relative;
    margin-bottom: 20px;
}

.form-group--float input,
.form-group--float textarea {
    padding: 18px 16px 8px;
}

.form-group--float textarea ~ label {
    top: 18px;
    transform: none;
}

.form-group--float label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
    pointer-events: none;
    transition: all .2s ease;
}

.form-group--float input:focus~label,
.form-group--float input:not(:placeholder-shown)~label,
.form-group--float textarea:focus~label,
.form-group--float textarea:not(:placeholder-shown)~label {
    top: 10px;
    transform: translateY(0);
    font-size: 11px;
    color: var(--blue);
    font-weight: 500;
}
@media (max-width: 767.98px) {
    .calc__options--img {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .calc__option-img {
        height: 125px;
    }

    .calc__option--img span {
        padding: 10px 8px;
        font-size: 12px;
    }
}




/* About */
.about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .about {
        grid-template-columns: 1fr 1fr;
    }
}

/* Form row for calculator final step: stacked on mobile, row on desktop */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row .form-group--float {
    margin-bottom: 0;
    flex: 1 1 0;
}

@media (min-width: 992px) {
    .form-row {
        flex-direction: row;
        gap: 16px;
        align-items: flex-start;
    }
}

.about__text p {
    margin-bottom: 16px;
    color: var(--muted);
}

/* Steps */
.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 275px;
    text-align: center;
    padding: 28px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(35, 148, 234, .12);
    border-color: rgba(35, 148, 234, .25);
}

.step__num {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Raleway, sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(35, 148, 234, .3);
}

.step h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.step-arrow {
    position: absolute;
    top: 50%;
    right: -34px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    color: var(--blue);
    opacity: .7;
    pointer-events: none;
}

.step:last-child .step-arrow {
    display: none;
}

.step-arrow::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background-color: currentColor;
    filter: drop-shadow(0 2px 4px rgba(35, 148, 234, .15));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 991.98px) {
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .step {
        max-width: 320px;
        width: 100%;
    }

    .step-arrow {
        top: auto;
        right: auto;
        bottom: -34px;
        left: 50%;
        margin-top: 0;
        margin-left: -14px;
        transform: rotate(90deg);
    }
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-item__q {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-item__icon {
    flex-shrink: 0;
    color: var(--blue);
    transition: transform .3s;
}

.faq-item.open .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
}

.faq-item__a-inner {
    padding: 0 24px 20px;
    color: var(--muted);
    font-size: 15px;
}

.faq-item.open .faq-item__a {
    max-height: 200px;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--navy) 0%, #2d3a5c 100%);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta h2 {
    color: var(--white);
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 16px;
}

.cta p {
    opacity: .8;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta__phones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.cta__phone {
    font-family: Raleway, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 0;
}

.cta__phone:hover {
    color: var(--orange);
}

@media (max-width: 575.98px) {
    .cta__phone {
        font-size: 22px;
    }
}

/* Contacts */
.contacts {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacts__panel {
    background: var(--white);
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.contacts__socials {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    width: 100%;
}

.contacts__panel .contact-item:last-of-type {
    margin-bottom: 0;
}

.contact-item {
    display: flex;
    gap: 16px;
    min-height: 100%;
    margin-bottom: 0;
    padding: 24px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-item__icon {
    width: 48px;
    height: 48px;
    background: rgba(35, 148, 234, .1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}

.contact-item__icon svg {
    display: block;
}

.contact-item__title {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 4px;
}

.contact-item p {
    font-weight: 600;
}

.contact-item p+p {
    margin-top: 6px;
}

.map {
    border-radius: 0;
    overflow: hidden;
    height: 600px;
    background: var(--border);
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.map.map--active iframe {
    pointer-events: auto;
}

@media (max-width: 991.98px) {
    .contacts {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .contacts__panel {
        width: 100%;
        padding: 0 20px;
        background: transparent;
    }

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

    .contacts__socials {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
        width: 100%;
    }

    .map {
        height: 300px;
    }
}

/* Footer */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .7);
    padding: 40px 0 20px;
    font-size: 14px;
}

.footer-top {
    padding-bottom: 24px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin-bottom: 16px;
}

.footer-nav__link {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s ease;
}

.footer-nav__link:hover {
    color: var(--white);
}

.footer-policy {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, .55);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 13px;
    transition: color .2s ease;
}

.footer-policy:hover {
    color: var(--white);
}

.footer-middle {
    padding-bottom: 18px;
}

.footer-middle__text {
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    line-height: 1.5;
    max-width: 980px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__inner > div:last-child {
    text-align: right;
}

.footer a {
    color: rgba(255, 255, 255, .7);
}

.footer a:hover {
    color: var(--white);
}

@media (max-width: 767.98px) {
    .footer__inner {
        justify-content: center;
    }

    .footer__inner > div:last-child {
        width: 100%;
        text-align: center;
    }
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal__box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
    transform: translateY(20px);
    transition: transform .3s;
}

.modal.open .modal__box {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--navy);
    transition: background .2s;
}

.modal__close:hover {
    background: var(--border);
}

.modal__close svg {
    display: block;
}

.modal h3 {
    font-size: 22px;
    margin-bottom: 8px;
    text-align: center;
}

.modal p {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Calc modal */
.calc-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 24px 16px;
    z-index: 210;
}

.calc-modal__box {
    max-width: 900px;
    padding: 28px 24px 24px;
    margin: auto;
}

.calc-modal__title {
    margin-bottom: 6px;
}

.calc-modal__subtitle {
    margin-bottom: 20px;
}

.calc-modal .calc {
    box-shadow: none;
    padding: 0;
    max-width: none;
    margin: 0;
}

@media (max-width: 575.98px) {
    .calc-modal__box {
        padding: 24px 16px 16px;
    }

    .calc-modal .calc__option--img {
        min-width: 0;
    }
}

.product-modal__info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
}

.product-modal__preview {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.product-modal__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-modal__details {
    flex: 1;
    min-width: 0;
}

.product-modal__name {
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 6px;
    text-align: left;
}

.product-modal__price {
    margin: 0;
    font-family: Raleway, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    text-align: left;
}

/* Product details modal */
.product-details-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 24px 16px;
    z-index: 210;
}

.product-details-modal__box {
    max-width: 760px;
    padding: 0;
    margin: auto;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-details-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(18, 50, 74, .12);
}

.product-details-modal__scroll {
    overflow-y: auto;
    padding: 28px 28px 24px;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.product-details-modal__title {
    text-align: left;
    margin-bottom: 20px;
    padding-right: 44px;
    font-size: 22px;
    color: var(--navy);
}

.product-details-modal__body {
    text-align: left;
}

.product-details__desc p {
    text-align: left;
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 12px;
}

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

.product-details__heading {
    margin: 24px 0 12px;
    font-size: 18px;
    color: var(--navy);
}

.product-details__table {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.product-details__table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.product-details__table th,
.product-details__table td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.product-details__table tr:last-child th,
.product-details__table tr:last-child td {
    border-bottom: none;
}

.product-details__table th {
    width: 52%;
    font-weight: 500;
    color: var(--muted);
    background: var(--bg);
}

.product-details__table td {
    color: var(--navy);
    font-weight: 600;
}

.product-details__table tr:nth-child(even) td {
    background: rgba(242, 250, 253, .45);
}

@media (max-width: 575.98px) {
    .product-details-modal__box {
        max-height: calc(100vh - 32px);
    }

    .product-details-modal__scroll {
        padding: 24px 16px 16px;
    }

    .product-details-modal__title {
        font-size: 18px;
    }

    .product-details__table th,
    .product-details__table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .product-details__table th {
        width: 48%;
    }
}

/* Mobile bar */
.mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 10px 12px;
    z-index: 99;
    gap: 8px;
}

.mobile-bar .btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .mobile-bar {
        display: flex;
        align-items: stretch;
    }

    .footer {
        padding-bottom: 80px;
    }
}

/* Service modal */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    cursor: pointer;
    flex-shrink: 0;
}

.form-group--comment {
    margin-top: 4px;
}

.form-group--comment textarea {
    resize: vertical;
    min-height: 80px;
}

/* Contact dropdown */
.contact-drop-wrap {
    position: relative;
}

.contact-drop-btn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(35, 148, 234, .08);
    color: var(--blue);
    cursor: pointer;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}

.contact-drop-btn__arrow {
    transition: transform .2s ease;
}

.contact-drop-btn[aria-expanded="true"] .contact-drop-btn__arrow {
    transform: rotate(180deg);
}

.contact-drop-btn:hover {
    background: rgba(35, 148, 234, .15);
    border-color: var(--blue);
}

.contact-drop-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transform-origin: top right;
    transform: scale(.95) translateY(-6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 200;
}

.contact-drop-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    text-align: left;
}

@media (max-width: 991.98px) {
    .contact-drop-panel {
        right: 0;
        width: min(280px, calc(100vw - 24px));
    }
}

@media (max-width: 767.98px) {
    .contact-drop-btn {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 575.98px) {
    .contact-drop-panel {
        right: -8px;
        width: min(280px, calc(100vw - 20px));
    }

    .contact-drop-btn {
        width: 24px;
        height: 24px;
    }

    .contact-drop-btn__arrow {
        width: 12px;
        height: 12px;
    }
}

.cdp-section {
    margin-bottom: 14px;
}

.cdp-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 4px;
}

.cdp-phone {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    display: block;
}

.cdp-phone+.cdp-phone {
    margin-top: 4px;
}

.cdp-phone:hover {
    color: var(--blue);
}

.cdp-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.cdp-hours {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.cdp-hours-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
}

.cdp-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

.cdp-socials {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.cdp-social {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: transform .2s, background .2s;
}

.cdp-social:hover {
    transform: translateY(-2px);
}

.cdp-social--wa {
    background: rgba(37, 211, 102, .12);
    color: #128c7e;
}

.cdp-social--tg {
    background: rgba(34, 158, 217, .12);
    color: #0088cc;
}

.cdp-social--vb {
    background: rgba(115, 96, 242, .12);
    color: #7360f2;
}

.cdp-social--ig {
    background: rgba(248, 22, 98, .12);
    color: #f81662;
}

/* Chat widget */
.chat-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 150;
}

.chat-fab {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(35, 148, 234, .4);
    transition: transform .25s, box-shadow .25s;
}

.chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(35, 148, 234, .5);
}

.chat-fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(35, 148, 234, .3);
    animation: chat-pulse 2.5s ease-out infinite;
}

@keyframes chat-pulse {
    0% {
        transform: scale(1);
        opacity: .7;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.chat-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--navy);
}

.chat-widget:hover .chat-tooltip {
    opacity: 1;
}

.chat-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.96);
    transition: all .2s;
}

.chat-widget.is-open .chat-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.chat-link:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.chat-link--phone {
    background: var(--blue);
}

.chat-link--wa {
    background: #25d366;
}

.chat-link--tg {
    background: #229ed9;
}

.chat-link--vb {
    background: #7360f2;
}

.chat-link-icon {
    display: flex;
    align-items: center;
    color: var(--white);
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--white);
    color: var(--blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 140;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s, box-shadow .25s;
    box-shadow: var(--shadow);
}

.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.scroll-top:hover {
    box-shadow: 0 8px 24px rgba(35, 148, 234, .25);
    transform: translateY(-2px);
}

.scroll-top__ring {
    position: absolute;
    inset: 0;
}

.scroll-top__track {
    stroke: var(--border);
}

.scroll-top__progress {
    stroke: var(--blue);
    transition: stroke-dashoffset .1s linear;
}

.scroll-top__icon {
    position: relative;
    z-index: 1;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 300;
    width: min(640px, calc(100vw - 32px));
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .12);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.cookie-banner.is-visible {
    transform: translateX(-50%) translateY(0);
}

.cookie-icon {
    flex-shrink: 0;
    color: var(--orange);
}

.cookie-body {
    flex: 1;
}

.cookie-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--navy);
}

.cookie-text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--blue);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn-accept {
    padding: 9px 20px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.cookie-btn-accept:hover {
    background: var(--blue-dark);
}

.cookie-btn-decline {
    padding: 9px 20px;
    background: var(--bg);
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.cookie-btn-decline:hover {
    background: var(--border);
    color: var(--text);
}

@media (max-width: 767.98px) {
    .chat-widget {
        bottom: 80px;
        right: 16px;
    }

    .scroll-top {
        bottom: 148px;
        right: 16px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-btn-accept,
    .cookie-btn-decline {
        flex: 1;
        text-align: center;
    }
}

/* ── Portfolio ───────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 32px rgba(28, 35, 62, .16);
}

.portfolio-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    text-decoration: none;
    overflow: hidden;
}

.portfolio-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}

.portfolio-item:hover .portfolio-img-wrap img {
    transform: scale(1.07);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 35, 62, .35);
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .25s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-zoom-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    transform: scale(.85);
    transition: transform .35s ease;
}

.portfolio-item:hover .portfolio-zoom-icon {
    transform: scale(1);
}

@media (max-width: 1199.98px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991.98px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .portfolio-link {
        aspect-ratio: 3 / 4;
    }

    .portfolio-overlay {
        display: none;
    }
}

/* Payment */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.payment-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 32px 32px;
    text-align: center;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.payment-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--blue-dark));
}

.payment-card:last-child::before {
    background: linear-gradient(90deg, var(--orange), #d4783a);
}

.payment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(18, 50, 74, .12);
    border-color: rgba(0, 153, 204, .28);
}

.payment-card:last-child:hover {
    border-color: rgba(232, 152, 79, .35);
}

.payment-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: linear-gradient(145deg, rgba(0, 153, 204, .12), rgba(13, 110, 148, .08));
    box-shadow: inset 0 0 0 1px rgba(0, 153, 204, .15);
}

.payment-card__icon--accent {
    color: var(--orange);
    background: linear-gradient(145deg, rgba(232, 152, 79, .16), rgba(212, 120, 58, .08));
    box-shadow: inset 0 0 0 1px rgba(232, 152, 79, .2);
}

.payment-card__icon svg {
    display: block;
}

.payment-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.payment-card__text {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        /* max-width: 420px; */
    }

    .payment-card {
        padding: 28px 22px 24px;
    }

    .payment-card__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .payment-card__icon svg {
        width: 28px;
        height: 28px;
    }

    .payment-card__title {
        font-size: 18px;
    }

    .payment-card__text {
        font-size: 14px;
    }
}
@media (max-width: 757px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 420px;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 0 28px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
}

.breadcrumbs .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
}

.breadcrumbs .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    display: inline-block;
    padding: 0 8px;
    color: var(--border);
    user-select: none;
}

.breadcrumbs .breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.breadcrumbs .breadcrumb-item a:hover {
    color: var(--blue);
}

.breadcrumbs .breadcrumb-item .fa {
    font-size: 12px;
    line-height: 1;
}

.breadcrumbs .breadcrumb-item.active,
.breadcrumbs .breadcrumb-item[aria-current="page"] {
    color: var(--navy);
    font-weight: 500;
}

.breadcrumbs .breadcrumb-item.active span,
.breadcrumbs .breadcrumb-item[aria-current="page"] span {
    color: inherit;
}

/* 404 page */
.text-content:has(.page-404__code),
.text-content.send-success {
    text-align: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.send-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(0, 208, 132, .12);
    color: #00a86b;
    box-shadow: 0 0 0 8px rgba(0, 208, 132, .06);
}

.send-success__text {
    color: var(--muted);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.65;
}

.send-success__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.text-content.send-success .send-success__actions .btn {
    text-decoration: none;
}

.text-content .page-404__code {
    font-family: Raleway, sans-serif;
    font-size: clamp(96px, 18vw, 160px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 55%, var(--orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 16px;
    user-select: none;
}

.text-content .page-404__text {
    color: var(--muted);
    font-size: 16px;
    max-width: 440px;
    margin: 0 auto 32px;
}

.page-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.text-content .page-404__actions .btn {
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .text-content:has(.page-404__code),
    .text-content.send-success {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .page-404__actions,
    .send-success__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-404__actions .btn,
    .send-success__actions .btn {
        width: 100%;
    }
}

/* Service details page */
.service-page {
    padding-top: 48px;
    padding-bottom: 80px;
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(0, 153, 204, .07), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 20%, rgba(232, 152, 79, .06), transparent 50%),
        var(--bg);
}

.service-page__layout {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.service-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-hero__media {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) - 2px);
    background: var(--bg);
    min-height: 280px;
}

.service-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-hero__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 8px 12px 8px 0;
}

.service-hero__lead {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--navy);
}

.service-hero__facts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-hero__facts li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.service-hero__facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.service-hero__price {
    font-family: Raleway, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--blue);
}

.service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.service-hero__actions .btn {
    text-decoration: none;
}

.service-page__content {
    margin: 0;
}

.service-page__content h2:first-of-type {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .service-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }

    .service-hero__media {
        min-height: 160px;
        aspect-ratio: 16 / 10;
    }

    .service-hero__intro {
        padding: 4px 4px 8px;
    }
}

@media (max-width: 575.98px) {
    .service-page {
        padding-top: 32px;
        padding-bottom: 56px;
    }

    .service-page__layout {
        gap: 20px;
    }

    .service-hero__lead {
        font-size: 16px;
    }

    .service-hero__actions {
        flex-direction: column;
    }

    .service-hero__actions .btn {
        width: 100%;
    }
}

/* Text page */
.text-page {
    padding-top: 48px;
    padding-bottom: 80px;
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(0, 153, 204, .07), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 20%, rgba(232, 152, 79, .06), transparent 50%),
        var(--bg);
}

.text-page__layout {
    max-width: 860px;
    margin: 0 auto;
}

.text-content {
    padding: 36px 40px 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.text-content__meta {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--muted);
}

.text-content__meta time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
}

.text-content__lead {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
    line-height: 1.65;
    color: var(--navy);
}

.text-content h2 {
    margin: 36px 0 14px;
    scroll-margin-top: 130px;
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 700;
}

.text-content h2:first-of-type {
    margin-top: 0;
}

.text-content p {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

.text-content a:not(.btn) {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}

.text-content a:not(.btn):hover {
    color: var(--orange);
}

.text-content ol {
    margin: 0 0 18px 30px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.text-content ul {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.text-content ol li {
    position: relative;
    padding-left: 10px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}
.text-content ul li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}

.text-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.text-note {
    margin: 20px 0 8px;
    padding: 16px 18px;
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(90deg, rgba(0, 153, 204, .08), rgba(0, 153, 204, .02));
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.text-note strong {
    color: var(--navy);
}

.text-contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0 24px;
}

.text-contacts__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.text-contacts__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--muted);
}

.text-contacts__item a,
.text-contacts__item span:last-child {
    color: var(--navy);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
}

.text-contacts__item a:hover {
    color: var(--blue);
}

.text-content__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.text-content__footer .btn {
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .text-page {
        padding-top: 32px;
        padding-bottom: 56px;
    }

    .text-content {
        padding: 24px 20px 28px;
    }

    .text-content__lead {
        font-size: 16px;
    }

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

    .text-content__footer {
        flex-direction: column;
    }

    .text-content__footer .btn {
        width: 100%;
    }
}

/* Product details page */
.product-page {
    padding-top: 32px;
    padding-bottom: 80px;
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(0, 153, 204, .07), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 20%, rgba(232, 152, 79, .06), transparent 50%),
        var(--bg);
}

.product-page__layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-page__card {
    padding: 24px;
}

.product-page__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 32px;
    align-items: start;
}

.product-page .product-gallery {
    margin-bottom: 0;
}

.product-page .product-gallery__viewport {
    height: 340px;
    background: var(--bg);
    border-radius: calc(var(--radius) - 2px);
}

.product-page .product-gallery__btn {
    width: 36px;
    height: 36px;
}

.product-page__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

.product-page .product-card__specs {
    font-size: 14px;
}

.product-page .product-card__specs tr + tr td,
.product-page .product-card__specs tbody + tbody tr:first-child td {
    padding-top: 8px;
}

.product-page .product-card__install {
    font-size: 14px;
    margin-bottom: 10px;
}

.product-page .product-card__price {
    font-size: 28px;
    margin-bottom: 20px;
}

.product-page .product-card__actions {
    margin-top: auto;
}

.product-page .product-card__actions .btn {
    flex: 0 1 auto;
    min-width: 200px;
    padding: 14px 28px;
    font-size: 15px;
}

.product-tabs {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0;
    overflow: hidden;
}

.product-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.product-tabs__btn {
    position: relative;
    appearance: none;
    border: none;
    background: transparent;
    padding: 16px 24px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: color .2s;
}

.product-tabs__btn:hover {
    color: var(--navy);
}

.product-tabs__btn.is-active {
    color: var(--navy);
    background: var(--white);
}

.product-tabs__btn.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--blue);
}

.product-tabs__panels {
    padding: 28px 28px 32px;
}

.product-tabs__panel[hidden] {
    display: none;
}

.product-tabs__panel .product-details__desc p:first-child {
    margin-top: 0;
}

.product-tabs__panel .product-details__table {
    margin: 0;
    max-height: none;
    overflow: visible;
}

@media (max-width: 991.98px) {
    .product-page__top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-page .product-gallery__viewport {
        height: 280px;
    }

    .product-page .product-card__actions .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .product-page {
        padding-top: 20px;
        padding-bottom: 56px;
    }

    .product-page__card {
        padding: 16px;
    }

    .product-page .product-gallery__viewport {
        height: 220px;
    }

    .product-page .product-card__specs {
        font-size: 13px;
    }

    .product-page .product-card__price {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .product-tabs__btn {
        flex: 1;
        padding: 14px 12px;
        font-size: 14px;
        text-align: center;
    }

    .product-tabs__panels {
        padding: 20px 16px 24px;
    }
}

/* Reviews page */
.reviews-page {
    padding-top: 40px;
    padding-bottom: 80px;
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(0, 153, 204, .07), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 20%, rgba(232, 152, 79, .06), transparent 50%),
        var(--bg);
}

.reviews-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 20px;
    max-width: 720px;
}

.reviews-summary__score {
    font-family: Raleway, sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: var(--navy);
}

.reviews-summary__stars {
    display: flex;
    gap: 2px;
    color: var(--orange);
    margin-bottom: 4px;
}

.reviews-summary__count {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.reviews-summary__lead {
    margin: 0;
    flex: 1 1 240px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.reviews-grid--preview {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 767.98px) {
    .reviews-grid--preview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: var(--shadow);
    transition: transform .3s;
}

.review-card:hover {
    transform: translateY(-4px);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    font-family: Raleway, sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.review-card__meta {
    flex-grow: 1;
    min-width: 0;
}

.review-card__author {
    font-weight: 700;
    color: var(--navy);
}

.review-card__subtitle {
    font-size: 0.8rem;
    color: var(--muted);
    display: block;
}

.review-card__rating {
    margin-left: auto;
}

.review-card__rating .stars {
    color: var(--orange);
    font-size: 1.05rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.review-card__body p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.review-card__date {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 16px;
    display: block;
}

.review-card__reply {
    margin-top: 16px;
    padding: 16px 18px;
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(90deg, rgba(2, 142, 189, .08), rgba(2, 142, 189, .02));
}

.review-card__reply-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-card__avatar--company {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    background: var(--navy);
}

.review-card__reply p {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.6;
}

.reviews-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.reviews-more[hidden] {
    display: none;
}

.reviews-more .pagination,
#pdopage .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 2px solid var(--blue);
    border-radius: 8px;
    font-family: Raleway, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--blue);
    background: transparent;
    line-height: 1;
    text-decoration: none;
    transition: all .25s;
}

.pagination a.page-link:hover {
    background: var(--blue);
    color: var(--white);
}

.pagination .page-item.active .page-link {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    pointer-events: none;
}

.pagination .page-item.disabled .page-link {
    border-color: var(--border);
    color: var(--muted);
    cursor: default;
    pointer-events: none;
    opacity: .55;
}

#pdopage:has(.btn-more) .pagination {
    display: none;
}

#pdopage .btn-more {
    width: auto;
    min-width: 200px;
    margin: 32px auto 0;
}

.reviews-form-card {
    margin-top: 48px;
    padding: 36px 40px 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    scroll-margin-top: 120px;
}

.reviews-form-card__title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: 8px;
}

.reviews-form-card__desc {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 15px;
}

.review-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.review-form .form-group--float {
    margin-bottom: 20px;
}

.review-form .form-group--comment textarea {
    min-height: 120px;
}

.review-form__rating {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 20px;
}

.review-form__rating-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.rating-stars-select {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

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

.rating-stars-select label {
    display: inline-block;
    margin: 0;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    color: #c5cdd4;
    cursor: pointer;
    transition: color .15s, transform .15s;
}

.rating-stars-select label:hover,
.rating-stars-select label:hover ~ label,
.rating-stars-select input:checked ~ label,
.rating-stars-select input:focus-visible + label {
    color: var(--orange);
}

.rating-stars-select label:hover {
    transform: scale(1.08);
}

.review-form .form-checkbox {
    margin: 4px 0 20px;
}

.review-form .form-checkbox a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.review-form .form-checkbox a:hover {
    color: var(--orange);
}

.reviews-form-success {
    text-align: center;
    padding: 24px 0 8px;
}

.reviews-form-success h3 {
    margin-bottom: 8px;
}

.reviews-form-success p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 767.98px) {
    .reviews-page {
        padding-top: 28px;
        padding-bottom: 56px;
    }

    .reviews-top {
        align-items: stretch;
    }

    .reviews-top .btn {
        width: 100%;
    }

    .reviews-summary__score {
        font-size: 40px;
    }

    .reviews-form-card {
        padding: 24px 20px 28px;
        margin-top: 36px;
    }

    .review-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}




/* ===== Catalog categories (grid of category tiles) ===== */
.catalog-section {
    padding: 48px 0 88px;
}

.catalog-section .catalogs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.catalog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(18, 50, 74, .14);
    border-color: rgba(2, 142, 189, .35);
}

.catalog-gallery {
    display: flex;
    margin-bottom: 18px;
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
}

.catalog-gallery__viewport {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
}

.catalog-gallery__track {
    display: flex;
    width: 100%;
    height: 100%;
}

.catalog-gallery__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 18px;
    overflow: hidden;
}

.catalog-gallery__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.catalog-card:hover .catalog-gallery__img {
    transform: scale(1.05);
}

.catalog-card__title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px;
    overflow-wrap: anywhere;
}

.catalog-card__title a {
    color: var(--navy);
    transition: color .2s;
}

.catalog-card__title a:hover {
    color: var(--blue);
}

.catalog-card__actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.catalog-card__actions .btn {
    min-width: 200px;
    padding: 12px 24px;
    font-size: 14px;
    text-decoration: none;
}

@media (max-width: 1199.98px) {
    .catalog-section .catalogs {
        gap: 20px;
    }
}

@media (max-width: 991.98px) {
    .catalog-section .catalogs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .catalog-section {
        padding: 32px 0 64px;
    }

    .catalog-card {
        padding: 16px 16px 20px;
    }

    .catalog-gallery {
        margin-bottom: 14px;
    }

    .catalog-gallery__viewport {
        height: 170px;
    }

    .catalog-card__title {
        font-size: 17px;
        margin-bottom: 16px;
    }
}

@media (max-width: 575.98px) {
    .catalog-section .catalogs {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .catalog-card__actions .btn {
        width: 100%;
        min-width: 0;
    }
}