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

:root {
    --dark: #1d271f;
    --green: #2f4336;
    --accent: #d9ad67;
    --accent-light: #efc983;
    --surface: #f1efe9;
    --white: #ffffff;
    --text: #20231f;
    --muted: #74766f;
    --line: rgba(32, 35, 31, 0.13);
}

html {
    scroll-behavior: smooth;
}

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

body.modal-open {
    overflow: hidden;
}

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

button,
input {
    font: inherit;
}

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

/* Header */

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

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

.logo {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 3px;
}

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

.main-nav a {
    position: relative;
    padding: 32px 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 23px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-phone {
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 6px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

/* Hero */

.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
            linear-gradient(
                    135deg,
                    #29382e,
                    #566b58 52%,
                    #263129
            );
}

/* Фонове циклічне відео */

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

/* Декоративні елементи поверх відео */

.hero::before,
.hero::after {
    display: none;
}

/* Затемнення відео */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
            linear-gradient(
                    90deg,
                    rgba(10, 15, 12, 0.76) 0%,
                    rgba(10, 15, 12, 0.56) 38%,
                    rgba(10, 15, 12, 0.25) 68%,
                    rgba(10, 15, 12, 0.10) 100%
            ),
            linear-gradient(
                    180deg,
                    rgba(0, 0, 0, 0.14),
                    rgba(0, 0, 0, 0.24)
            );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    color: var(--white);
}

.hero-label,
.section-label,
.modal__eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.hero-label {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 100px;
}

.hero h1 {
    max-width: 800px;
    margin-bottom: 24px;
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.97;
    letter-spacing: -3px;
}

.hero p {
    max-width: 640px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    cursor: pointer;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.25s ease;
}

.button-primary {
    background: var(--accent);
    color: #1c201c;
}

.button-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.46);
    color: var(--white);
}

/* Catalog */

.catalog-section {
    padding: 115px 0;
    background: var(--surface);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
    align-items: end;
    gap: 50px;
    margin-bottom: 52px;
}

.section-label {
    margin-bottom: 13px;
    color: #9b6d2c;
}

.section-heading h2 {
    max-width: 650px;
    font-size: clamp(40px, 5vw, 62px);
    line-height: 1;
    letter-spacing: -2.5px;
}

.section-heading > p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

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

/* Product card */

.catalog-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(29, 39, 31, 0.12);
}

.catalog-card__media {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--card-start), var(--card-end));
    color: rgba(255, 255, 255, 0.78);
}

.catalog-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.26)),
            radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.12), transparent 38%);
}

.catalog-card__number {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.catalog-card__photo {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.catalog-card__badge {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(18, 25, 20, 0.32);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.catalog-card__body {
    padding: 25px 24px 22px;
}

.catalog-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.catalog-card__eyebrow {
    margin-bottom: 5px;
    color: #999a94;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.catalog-card h3 {
    font-size: 27px;
    line-height: 1.08;
    letter-spacing: -0.7px;
}

.catalog-card__price {
    flex: 0 0 auto;
    display: grid;
    justify-items: end;
    gap: 2px;
}

.catalog-card__price span {
    color: #92938d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.catalog-card__price strong {
    font-size: 16px;
    white-space: nowrap;
}

.catalog-card__description {
    min-height: 48px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.catalog-card__specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.catalog-card__spec {
    min-width: 0;
    padding: 15px 10px;
    text-align: center;
}

.catalog-card__spec + .catalog-card__spec {
    border-left: 1px solid var(--line);
}

.catalog-card__spec span,
.catalog-card__spec strong {
    display: block;
}

.catalog-card__spec span {
    margin-bottom: 4px;
    color: #93958f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.catalog-card__spec strong {
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Card buttons */

.catalog-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 18px;
}

.catalog-card__button {
    position: relative;
    min-height: 44px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            color 0.25s ease,
            background 0.25s ease;
}

.catalog-card__button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 75%;
    height: 100%;
    transform: skewX(-20deg);
    background: rgba(255, 255, 255, 0.35);
    transition: left 0.5s ease;
}

.catalog-card__button:hover::before {
    left: 150%;
}

.catalog-card__button:hover {
    transform: translateY(-3px);
}

.catalog-card__button:active {
    transform: translateY(0) scale(0.98);
}

.catalog-card__button--details {
    border: 1px solid var(--green);
    background: transparent;
    color: var(--green);
}

.catalog-card__button--details:hover {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(47, 67, 54, 0.2);
}

.catalog-card__button--order {
    background: var(--accent);
    color: var(--text);
    box-shadow: 0 8px 18px rgba(217, 173, 103, 0.22);
}

.catalog-card__button--order:hover {
    background: var(--accent-light);
    box-shadow: 0 12px 28px rgba(217, 173, 103, 0.34);
}

/* Modal */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 18, 14, 0.76);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    transition: none;
}

.modal__dialog {
    position: relative;
    z-index: 1;
    max-height: calc(100vh - 36px);
    overflow: auto;
    background: var(--white);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.38);
    transform: translateY(28px) scale(0.97);
    transition: transform 0.28s ease;
}

.modal.is-open .modal__dialog {
    transform: translateY(0) scale(1);
}

.modal__dialog--details {
    width: min(1440px, 100%);
}

.modal__dialog--form {
    width: min(520px, 100%);
}

.modal__close {
    position: sticky;
    top: 14px;
    float: right;
    z-index: 20;
    width: 44px;
    height: 44px;
    margin: 14px 14px -58px 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
    transition: transform 0.25s ease, background 0.25s ease;
}

.modal__close:hover {
    transform: rotate(90deg);
    background: var(--accent);
}

/* Details modal */

.details-layout {
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(560px, 1.35fr);
    min-height: 780px;
}

.product-gallery {
    position: sticky;
    top: 0;
    align-self: start;
    padding: 26px;
    background: #e7e4dc;
}

.product-gallery__main {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #34483a, #879b8d);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.35s ease;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    cursor: pointer;
    font-size: 19px;
    transform: translateY(-50%);
    transition: transform 0.25s ease, background 0.25s ease;
}

.gallery-arrow:hover {
    background: var(--accent);
}

.gallery-arrow--prev {
    left: 18px;
}

.gallery-arrow--next {
    right: 18px;
}

.gallery-counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 5px;
    padding: 8px 11px;
    background: rgba(17, 23, 18, 0.45);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.gallery-thumb {
    min-height: 88px;
    border: 2px solid transparent;
    background: var(--thumb);
    color: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
}

.gallery-thumb.is-active {
    border-color: var(--accent);
}

.details-content {
    padding: 58px 52px 48px;
}

.modal__eyebrow {
    margin-bottom: 12px;
    color: #9b6d2c;
}

.details-content > h2,
.order-form h2 {
    margin-bottom: 18px;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -1.7px;
}

.modal__description {
    margin-bottom: 28px;
    color: var(--muted);
    line-height: 1.75;
}

.modal__specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 42px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.modal__specs div {
    padding: 18px 12px;
    text-align: center;
}

.modal__specs div + div {
    border-left: 1px solid var(--line);
}

.modal__specs span,
.modal__specs strong {
    display: block;
}

.modal__specs span {
    margin-bottom: 5px;
    color: #92938d;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Technical section */

.technical-section {
    margin-bottom: 44px;
}

.technical-section__heading,
.palette-section__heading {
    margin-bottom: 22px;
}

.technical-section__heading span,
.palette-section__heading span {
    display: inline-block;
    margin-bottom: 7px;
    color: #9b6d2c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.technical-section__heading h3,
.palette-section__heading h3 {
    font-size: 28px;
    letter-spacing: -0.8px;
}

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

.technical-card {
    min-height: 220px;
    padding: 22px;
    border: 1px solid var(--line);
    background: #faf9f6;
}

.technical-card__number {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

.technical-card h4 {
    margin-bottom: 11px;
    font-size: 17px;
}

.technical-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* Palette */

.palette-section {
    margin-bottom: 42px;
}

.palette-section__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 30px;
    align-items: end;
}

.palette-section__heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 20px;
}

.color-swatch {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--swatch);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-swatch::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(135deg, rgba(255,255,255,.16), transparent 45%),
            repeating-linear-gradient(
                    15deg,
                    rgba(255,255,255,.05) 0 2px,
                    rgba(0,0,0,.025) 2px 4px
            );
}

.color-swatch:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.14);
}

.ral-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px;
    border: 1px solid rgba(217, 173, 103, 0.55);
    background: #fff8eb;
}

.ral-note__badge {
    min-width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
}

.ral-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.ral-note p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

/* Footer modal */

.modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.modal__price {
    display: grid;
    gap: 3px;
}

.modal__price span {
    color: #92938d;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.modal__price strong {
    font-size: 24px;
}

.modal__primary-button,
.form-submit {
    min-height: 52px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.modal__primary-button {
    padding: 0 24px;
}

.modal__primary-button:hover,
.form-submit:hover {
    transform: translateY(-2px);
    background: var(--accent-light);
    box-shadow: 0 12px 28px rgba(217, 173, 103, 0.3);
}

/* Order form */

.order-form {
    padding: 58px 48px 44px;
}

.order-form > p {
    margin-bottom: 28px;
    color: var(--muted);
    line-height: 1.7;
}

.form-field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.form-field span {
    font-size: 12px;
    font-weight: 800;
}

.form-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
}

.form-submit {
    width: 100%;
}

.form-message {
    min-height: 22px;
    margin-top: 14px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* Responsive */

@media (max-width: 1180px) {
    .details-layout {
        grid-template-columns: minmax(360px, 0.8fr) minmax(500px, 1.2fr);
    }

    .product-gallery__main {
        min-height: 560px;
    }

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

    .technical-card {
        min-height: auto;
    }
}

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

    .header-phone {
        display: none;
    }

    .details-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .product-gallery__main {
        min-height: 520px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 30px, 1220px);
    }

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

    .main-nav {
        display: none;
    }

    .hero {
        min-height: 700px;
    }

    .hero-video {
        object-position: center center;
    }

    .hero-overlay {
        background:
                linear-gradient(
                        90deg,
                        rgba(10, 15, 12, 0.80) 0%,
                        rgba(10, 15, 12, 0.62) 62%,
                        rgba(10, 15, 12, 0.30) 100%
                ),
                linear-gradient(
                        180deg,
                        rgba(0, 0, 0, 0.12),
                        rgba(0, 0, 0, 0.28)
                );
    }

    .hero-content {
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 50px;
        letter-spacing: -2px;
    }

    .catalog-section {
        padding: 78px 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 22px;
    }

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

    .modal {
        padding: 8px;
    }

    .modal__dialog {
        max-height: calc(100vh - 16px);
    }

    .product-gallery {
        padding: 14px;
    }

    .product-gallery__main {
        min-height: 390px;
    }

    .details-content,
    .order-form {
        padding: 36px 22px 28px;
    }

    .details-content > h2,
    .order-form h2 {
        font-size: 36px;
    }

    .palette-section__heading {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .color-palette {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .modal__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .modal__primary-button {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .hero h1 {
        font-size: 43px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .catalog-card__heading {
        flex-direction: column;
    }

    .catalog-card__price {
        justify-items: start;
    }

    .catalog-card__actions {
        grid-template-columns: 1fr;
    }

    .product-gallery__main {
        min-height: 300px;
    }

    .product-gallery__thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .modal__specs div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .color-palette {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ral-note {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   ТЕСТОВІ ФОТО З Images/gazebo.jpg
   ========================================= */

.catalog-card__media {
    position: relative;
    overflow: hidden;
    background: #d9d9d9;
}

.catalog-card__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.catalog-card:hover .catalog-card__image {
    transform: scale(1.07);
}

.catalog-card__media::before {
    z-index: 1;
}

.catalog-card__number,
.catalog-card__badge {
    z-index: 2;
}

/* Головне фото у великому popup */

.product-gallery__main {
    background: #d9d9d9;
}

.product-gallery__main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 0.22s ease, transform 0.5s ease;
}

.product-gallery__main:hover .product-gallery__main-image {
    transform: scale(1.015);
}

.gallery-arrow,
.gallery-counter {
    z-index: 3;
}

/* Мініатюри галереї */

.gallery-thumb {
    position: relative;
    min-height: 88px;
    padding: 0;
    overflow: hidden;
    background: #d9d9d9;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    min-height: 88px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.06);
}

.gallery-thumb:not(.is-active) img {
    filter: brightness(0.78);
}

.gallery-thumb.is-active img {
    filter: brightness(1);
}


/* =========================================================
   ІНДИВІДУАЛЬНИЙ ПРОЄКТ
   ========================================================= */

.custom-project-section {
    position: relative;
    overflow: hidden;
    padding: 130px 0;
    background:
            radial-gradient(circle at 12% 18%, rgba(217, 173, 103, 0.12), transparent 28%),
            radial-gradient(circle at 90% 75%, rgba(255, 255, 255, 0.05), transparent 30%),
            #172019;
    color: var(--white);
}

.custom-project-grid {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
    animation: customGridMove 24s linear infinite;
}

.custom-project-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.custom-project-orbit--one {
    top: -220px;
    right: -150px;
    width: 720px;
    height: 720px;
    animation: customOrbit 28s linear infinite;
}

.custom-project-orbit--two {
    bottom: -320px;
    left: -240px;
    width: 760px;
    height: 760px;
    animation: customOrbitReverse 36s linear infinite;
}

.custom-project-container {
    position: relative;
    z-index: 2;
}

.custom-project-intro {
    max-width: 970px;
    margin-bottom: 70px;
}

.custom-project-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.custom-project-kicker::before {
    content: "";
    width: 44px;
    height: 1px;
    background: var(--accent);
}

.custom-project-intro h2 {
    margin-bottom: 28px;
    font-size: clamp(48px, 6.4vw, 92px);
    line-height: 0.96;
    letter-spacing: -4px;
}

.custom-project-intro h2 span {
    display: block;
    color: rgba(255, 255, 255, 0.48);
}

.custom-project-intro p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 18px;
    line-height: 1.8;
}

.custom-project-showcase {
    display: grid;
    grid-template-columns: minmax(400px, 0.95fr) minmax(560px, 1.35fr);
    gap: 24px;
    margin-bottom: 84px;
}

.custom-project-photo {
    position: relative;
    min-height: 720px;
    overflow: hidden;
}

.custom-project-photo img {
    width: 100%;
    height: 100%;
    min-height: 720px;
    display: block;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.custom-project-photo:hover img {
    transform: scale(1.06);
}

.custom-project-photo-overlay {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(180deg, rgba(10, 14, 11, 0.06), rgba(10, 14, 11, 0.74)),
            linear-gradient(90deg, rgba(10, 14, 11, 0.12), transparent 55%);
}

.custom-project-photo-label {
    position: absolute;
    top: 26px;
    left: 26px;
    display: grid;
    gap: 2px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(18, 25, 20, 0.3);
    backdrop-filter: blur(14px);
}

.custom-project-photo-label span {
    color: var(--accent);
    font-size: 24px;
    font-weight: 900;
}

.custom-project-photo-label strong {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.custom-project-photo-caption {
    position: absolute;
    right: 26px;
    bottom: 26px;
    display: grid;
    justify-items: end;
    gap: 3px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.custom-project-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.custom-option-card {
    position: relative;
    min-height: 232px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.035);
    transition:
            transform 0.35s ease,
            border-color 0.35s ease,
            background 0.35s ease,
            box-shadow 0.35s ease;
}

.custom-option-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.custom-option-card:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 173, 103, 0.58);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.2);
}

.custom-option-card:hover::before {
    width: 100%;
}

.custom-option-number {
    position: absolute;
    top: 18px;
    right: 18px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    font-weight: 800;
}

.custom-option-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border: 1px solid rgba(217, 173, 103, 0.5);
    background: rgba(217, 173, 103, 0.1);
    color: var(--accent);
    font-size: 20px;
    transition: transform 0.35s ease, background 0.35s ease;
}

.custom-option-card:hover .custom-option-icon {
    transform: rotate(-6deg) scale(1.08);
    background: var(--accent);
    color: #172019;
}

.custom-option-card h3 {
    margin-bottom: 10px;
    font-size: 21px;
}

.custom-option-card p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.7;
}

.custom-project-ral {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(300px, 430px);
    align-items: center;
    gap: 28px;
    margin-bottom: 74px;
    padding: 30px;
    border: 1px solid rgba(217, 173, 103, 0.44);
    background:
            linear-gradient(90deg, rgba(217, 173, 103, 0.09), rgba(255, 255, 255, 0.025));
}

.custom-project-ral-mark {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #172019;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
}

.custom-project-ral-content > span {
    display: block;
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.custom-project-ral-content h3 {
    max-width: 660px;
    margin-bottom: 9px;
    font-size: 25px;
    line-height: 1.2;
}

.custom-project-ral-content p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.7;
}

.custom-project-mini-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.custom-project-mini-palette span {
    aspect-ratio: 1;
    background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 45%),
            var(--color);
    transition: transform 0.25s ease;
}

.custom-project-mini-palette span:hover {
    transform: translateY(-4px) scale(1.04);
}

.custom-project-process {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 74px;
}

.custom-project-process-step {
    display: grid;
    gap: 6px;
}

.custom-project-process-step span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

.custom-project-process-step strong {
    font-size: clamp(22px, 3vw, 38px);
    white-space: nowrap;
}

.custom-project-process-line {
    height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.12));
    transform-origin: left;
    animation: customLinePulse 3.2s ease-in-out infinite;
}

.custom-project-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 46px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.custom-project-cta > div {
    max-width: 760px;
}

.custom-project-cta > div > span {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.custom-project-cta h3 {
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.custom-project-button {
    position: relative;
    flex: 0 0 auto;
    min-width: 260px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    overflow: hidden;
    padding: 0 22px 0 26px;
    border: 0;
    background: var(--accent);
    color: #172019;
    cursor: pointer;
    font-weight: 800;
    transition:
            transform 0.3s ease,
            background 0.3s ease,
            box-shadow 0.3s ease;
}

.custom-project-button::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-105%);
    background: rgba(255, 255, 255, 0.26);
    transition: transform 0.5s ease;
}

.custom-project-button:hover {
    transform: translateY(-4px);
    background: var(--accent-light);
    box-shadow: 0 18px 42px rgba(217, 173, 103, 0.27);
}

.custom-project-button:hover::before {
    transform: translateX(105%);
}

.custom-project-button span {
    position: relative;
    z-index: 1;
}

.custom-project-button-arrow {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.custom-project-button:hover .custom-project-button-arrow {
    transform: translateX(7px);
}

/* Scroll reveal */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(48px);
    transition:
            opacity 0.85s ease,
            transform 0.85s cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

.custom-project-options .reveal-on-scroll:nth-child(2) {
    transition-delay: 0.08s;
}

.custom-project-options .reveal-on-scroll:nth-child(3) {
    transition-delay: 0.16s;
}

.custom-project-options .reveal-on-scroll:nth-child(4) {
    transition-delay: 0.24s;
}

.custom-project-options .reveal-on-scroll:nth-child(5) {
    transition-delay: 0.32s;
}

.custom-project-options .reveal-on-scroll:nth-child(6) {
    transition-delay: 0.4s;
}

@keyframes customGridMove {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 64px 64px, 64px 64px;
    }
}

@keyframes customOrbit {
    from {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.05);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes customOrbitReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes customLinePulse {
    0%,
    100% {
        opacity: 0.35;
        transform: scaleX(0.72);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@media (max-width: 1100px) {
    .custom-project-showcase {
        grid-template-columns: 1fr;
    }

    .custom-project-photo,
    .custom-project-photo img {
        min-height: 620px;
    }

    .custom-project-ral {
        grid-template-columns: auto 1fr;
    }

    .custom-project-mini-palette {
        grid-column: 1 / -1;
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 760px) {
    .custom-project-section {
        padding: 88px 0;
    }

    .custom-project-intro {
        margin-bottom: 46px;
    }

    .custom-project-intro h2 {
        font-size: 50px;
        letter-spacing: -2.5px;
    }

    .custom-project-photo,
    .custom-project-photo img {
        min-height: 470px;
    }

    .custom-project-options {
        grid-template-columns: 1fr;
    }

    .custom-option-card {
        min-height: auto;
    }

    .custom-project-ral {
        grid-template-columns: 1fr;
    }

    .custom-project-mini-palette {
        grid-column: auto;
        grid-template-columns: repeat(4, 1fr);
    }

    .custom-project-process {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .custom-project-process-line {
        width: 1px;
        height: 38px;
        margin-left: 12px;
        background: linear-gradient(180deg, var(--accent), rgba(255, 255, 255, 0.12));
    }

    .custom-project-process-step strong {
        white-space: normal;
    }

    .custom-project-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .custom-project-button {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .custom-project-intro h2 {
        font-size: 42px;
    }

    .custom-project-photo,
    .custom-project-photo img {
        min-height: 380px;
    }

    .custom-project-photo-label {
        top: 16px;
        left: 16px;
    }

    .custom-project-photo-caption {
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-project-grid,
    .custom-project-orbit,
    .custom-project-process-line {
        animation: none;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =========================================================
   ОНОВЛЕНА СТИЛІСТИКА: РАДІУСИ, FIXED HEADER ТА FOOTER
   ========================================================= */

:root {
    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --radius-xl: 34px;
}

/* Fixed glass header */

.site-header {
    position: fixed;
    top: 14px;
    left: 50%;
    right: auto;
    z-index: 900;
    width: min(1220px, calc(100% - 28px));
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background:
            linear-gradient(
                    135deg,
                    rgba(25, 36, 29, 0.86),
                    rgba(49, 68, 56, 0.68)
            );
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition:
            top 0.3s ease,
            width 0.3s ease,
            background 0.3s ease,
            box-shadow 0.3s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    background:
            radial-gradient(
                    circle at 15% 0%,
                    rgba(217, 173, 103, 0.14),
                    transparent 34%
            );
}

.site-header.is-scrolled {
    top: 8px;
    width: min(1120px, calc(100% - 20px));
    background:
            linear-gradient(
                    135deg,
                    rgba(20, 29, 23, 0.96),
                    rgba(43, 58, 48, 0.9)
            );
    box-shadow:
            0 16px 48px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-inner {
    position: relative;
    z-index: 2;
    min-height: 72px;
    padding: 0 18px 0 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}



.main-nav {
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.main-nav a {
    padding: 13px 15px;
    border-radius: 10px;
    transition:
            color 0.25s ease,
            background 0.25s ease,
            transform 0.25s ease;
}

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

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.header-phone {
    border-radius: 12px;
    background: rgba(217, 173, 103, 0.12);
    transition:
            background 0.25s ease,
            transform 0.25s ease,
            border-color 0.25s ease;
}

.header-phone:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: var(--accent);
    color: var(--text);
}

/* Радіуси для основних елементів */

.button,
.catalog-card__button,
.modal__primary-button,
.form-submit,
.custom-project-button,
.product-button {
    border-radius: 12px;
}

.catalog-card {
    border-radius: var(--radius-large);
}

.catalog-card__media {
    border-radius: 0 0 18px 18px;
}

.catalog-card__badge {
    border-radius: 10px;
}

.catalog-card__specs {
    overflow: hidden;
    border-radius: 14px;
    background: #f8f7f3;
}

.modal__dialog {
    border-radius: var(--radius-large);
}

.product-gallery__main,
.product-gallery,
.gallery-thumb,
.technical-card,
.color-swatch,
.ral-note,
.custom-project-photo,
.custom-option-card,
.custom-project-ral,
.custom-project-button,
.site-footer__button {
    border-radius: var(--radius-medium);
}

.product-gallery__main {
    overflow: hidden;
}

.product-gallery {
    border-radius: var(--radius-large) 0 0 var(--radius-large);
}

.technical-card,
.custom-option-card {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.ral-note,
.custom-project-ral {
    border-radius: var(--radius-large);
}

.ral-note__badge,
.custom-project-ral-mark {
    border-radius: 14px;
}

.custom-project-mini-palette span {
    border-radius: 8px;
}

.form-field input {
    border-radius: 12px;
}

/* Footer */

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 92px 0 28px;
    background:
            linear-gradient(145deg, #111814 0%, #1c2820 58%, #26352b 100%);
    color: var(--white);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.13;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, #000, transparent 95%);
}

.site-footer__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.site-footer__glow--one {
    top: -260px;
    right: -170px;
    width: 560px;
    height: 560px;
    background: rgba(217, 173, 103, 0.11);
}

.site-footer__glow--two {
    bottom: -330px;
    left: -230px;
    width: 620px;
    height: 620px;
    background: rgba(80, 119, 91, 0.12);
}

.site-footer__container {
    position: relative;
    z-index: 2;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(480px, 1.25fr);
    gap: 80px;
    align-items: end;
    padding-bottom: 58px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand {
    max-width: 430px;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 4px;
}

.site-footer__logo::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--accent);
    transform: rotate(45deg);
}

.site-footer__brand p {
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.75;
}

.site-footer__cta > span {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.site-footer__cta h2 {
    max-width: 720px;
    margin-bottom: 26px;
    font-size: clamp(36px, 4.4vw, 64px);
    line-height: 1;
    letter-spacing: -2.5px;
}

.site-footer__button {
    min-width: 240px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 20px 0 24px;
    border: 0;
    background: var(--accent);
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
    transition:
            transform 0.3s ease,
            background 0.3s ease,
            box-shadow 0.3s ease;
}

.site-footer__button:hover {
    transform: translateY(-4px);
    background: var(--accent-light);
    box-shadow: 0 18px 38px rgba(217, 173, 103, 0.24);
}

.site-footer__button-arrow {
    font-size: 21px;
    transition: transform 0.3s ease;
}

.site-footer__button:hover .site-footer__button-arrow {
    transform: translateX(7px);
}

.site-footer__middle {
    display: grid;
    grid-template-columns: 1.35fr 1.35fr 1.7fr 1fr;
    gap: 44px;
    padding: 52px 0;
}

.site-footer__column,
.site-footer__socials {
    display: grid;
    align-content: start;
    gap: 11px;
}

.site-footer__column-title {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.site-footer__column a,
.site-footer__column > span:not(.site-footer__column-title) {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer__column a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.site-footer__socials > div {
    display: flex;
    gap: 9px;
}

.site-footer__socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 11px;
    font-weight: 800;
    transition:
            transform 0.25s ease,
            border-color 0.25s ease,
            background 0.25s ease;
}

.site-footer__socials a:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: rgba(217, 173, 103, 0.14);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

.site-footer__bottom > div {
    display: flex;
    gap: 24px;
}

.site-footer__bottom a {
    transition: color 0.25s ease;
}

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

@media (max-width: 1000px) {
    .site-header {
        width: calc(100% - 22px);
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .site-footer__middle {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-gallery {
        border-radius: var(--radius-large) var(--radius-large) 0 0;
    }
}

@media (max-width: 760px) {
    .site-header,
    .site-header.is-scrolled {
        top: 8px;
        width: calc(100% - 16px);
        border-radius: 16px;
    }

    .header-inner {
        min-height: 62px;
        padding: 0 14px;
    }

    .site-footer {
        padding-top: 72px;
    }

    .site-footer__middle {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__bottom > div {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 460px) {
    .catalog-card {
        border-radius: 20px;
    }

    .site-footer__cta h2 {
        font-size: 38px;
    }

    .site-footer__button {
        width: 100%;
    }
}


/* =========================================================
   НОВА КОЛЬОРОВА ГАМА КНОПОК ТА МЕСЕНДЖЕРИ В ХЕДЕРІ
   ========================================================= */

:root {
    --accent: #c96f45;
    --accent-light: #df8b63;
    --accent-dark: #9f4e2f;
    --button-dark: #263740;
    --button-dark-hover: #344c58;
    --button-soft: #edf1ef;
    --button-soft-hover: #dfe8e3;
}

/* Контейнер дій у хедері */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-messengers {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
}

.header-messenger {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.075);
    transition:
            transform 0.25s ease,
            background 0.25s ease,
            box-shadow 0.25s ease;
}

.header-messenger::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.header-messenger svg {
    position: relative;
    z-index: 1;
    width: 23px;
    height: 23px;
    display: block;
}

.header-messenger:hover {
    transform: translateY(-3px) scale(1.06);
}

.header-messenger--viber:hover {
    background: rgba(115, 96, 242, 0.22);
    box-shadow: 0 10px 24px rgba(115, 96, 242, 0.22);
}

.header-messenger--telegram:hover {
    background: rgba(42, 171, 238, 0.2);
    box-shadow: 0 10px 24px rgba(42, 171, 238, 0.2);
}

.header-messenger--whatsapp:hover {
    background: rgba(37, 211, 102, 0.18);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.19);
}

/* Телефон у новій гамі */

.header-phone {
    border-color: rgba(255, 255, 255, 0.16);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 22px rgba(201, 111, 69, 0.22);
}

.header-phone:hover {
    border-color: var(--accent-light);
    background: var(--accent-light);
    color: #fff;
    box-shadow: 0 12px 28px rgba(201, 111, 69, 0.3);
}

/* Головні кнопки */

.button-primary,
.catalog-card__button--order,
.modal__primary-button,
.form-submit,
.custom-project-button,
.site-footer__button {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 9px 24px rgba(201, 111, 69, 0.2);
}

.button-primary:hover,
.catalog-card__button--order:hover,
.modal__primary-button:hover,
.form-submit:hover,
.custom-project-button:hover,
.site-footer__button:hover {
    background: var(--accent-light);
    color: #fff;
    box-shadow: 0 14px 32px rgba(201, 111, 69, 0.3);
}

/* Кнопка Детальніше */

.catalog-card__button--details {
    border-color: var(--button-dark);
    background: var(--button-soft);
    color: var(--button-dark);
}

.catalog-card__button--details:hover {
    border-color: var(--button-dark);
    background: var(--button-dark);
    color: #fff;
    box-shadow: 0 11px 26px rgba(38, 55, 64, 0.22);
}

/* Другорядна кнопка першого екрану */

.button-secondary {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    backdrop-filter: blur(10px);
}

.button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* Акценти, що раніше були жовтими */

.custom-project-kicker,
.custom-project-process-step span,
.custom-project-ral-content > span,
.site-footer__cta > span,
.site-footer__column-title,
.modal__eyebrow,
.section-label {
    color: var(--accent-light);
}

.custom-project-kicker::before,
.custom-project-process-line,
.custom-option-card::before {
    background: var(--accent);
}

.custom-option-icon {
    border-color: rgba(201, 111, 69, 0.5);
    background: rgba(201, 111, 69, 0.11);
    color: var(--accent-light);
}

.custom-option-card:hover .custom-option-icon {
    background: var(--accent);
    color: #fff;
}

.custom-project-ral,
.ral-note {
    border-color: rgba(201, 111, 69, 0.48);
}

.custom-project-ral-mark,
.ral-note__badge {
    background: var(--accent);
    color: #fff;
}

.gallery-thumb.is-active {
    border-color: var(--accent);
}

.form-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(201, 111, 69, 0.15);
}

@media (max-width: 1120px) {
    .header-phone {
        display: none;
    }
}

@media (max-width: 880px) {
    .header-messengers {
        margin-left: auto;
    }

    .header-messenger {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        gap: 10px;
    }

    .logo {
        font-size: 19px;
        letter-spacing: 2px;
    }

    .header-messengers {
        gap: 4px;
        padding: 4px;
    }

    .header-messenger {
        width: 33px;
        height: 33px;
        border-radius: 9px;
    }

    .header-messenger svg {
        width: 20px;
        height: 20px;
    }
}


/* =========================================================
   ЗЕЛЕНИЙ ONLINE-ІНДИКАТОР БІЛЯ ЛОГОТИПУ
   ========================================================= */

.logo::before,
.site-footer__logo::before {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3bd671;
    box-shadow:
            0 0 0 0 rgba(59, 214, 113, 0.55),
            0 0 18px rgba(59, 214, 113, 0.65);
    transform: none;
    animation: logoOnlinePulse 2s ease-out infinite;
}

.site-footer__logo::before {
    width: 14px;
    height: 14px;
}

@keyframes logoOnlinePulse {
    0% {
        box-shadow:
                0 0 0 0 rgba(59, 214, 113, 0.58),
                0 0 14px rgba(59, 214, 113, 0.52);
    }

    65% {
        box-shadow:
                0 0 0 9px rgba(59, 214, 113, 0),
                0 0 22px rgba(59, 214, 113, 0.65);
    }

    100% {
        box-shadow:
                0 0 0 0 rgba(59, 214, 113, 0),
                0 0 14px rgba(59, 214, 113, 0.48);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo::before,
    .site-footer__logo::before {
        animation: none;
    }
}

/* =========================================================
   МОБІЛЬНЕ BURGER-МЕНЮ
   ========================================================= */

.burger-button {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    cursor: pointer;
    transition:
            transform 0.25s ease,
            background 0.25s ease,
            border-color 0.25s ease;
}

.burger-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.13);
}

.burger-button span {
    width: 20px;
    height: 2px;
    border-radius: 100px;
    background: currentColor;
    transition:
            transform 0.3s ease,
            opacity 0.3s ease,
            width 0.3s ease;
}

.burger-button span:nth-child(2) {
    width: 15px;
    margin-left: 5px;
}

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

.burger-button.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(8px);
}

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

/* Overlay */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
            opacity 0.35s ease,
            visibility 0.35s ease;
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 13, 10, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu__panel {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: min(430px, calc(100% - 16px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background:
            radial-gradient(circle at 85% 5%, rgba(201, 111, 69, 0.22), transparent 28%),
            linear-gradient(145deg, #18241d 0%, #25382d 100%);
    color: #ffffff;
    box-shadow: -28px 0 80px rgba(0, 0, 0, 0.34);
    transform: translateX(105%);
    transition: transform 0.42s cubic-bezier(0.2, 0.78, 0.2, 1);
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 54px 54px;
}

.mobile-menu__top,
.mobile-menu__nav,
.mobile-menu__bottom {
    position: relative;
    z-index: 2;
}

.mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu__logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
}

.mobile-menu__logo::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3bd671;
    box-shadow: 0 0 0 0 rgba(59, 214, 113, 0.55);
    animation: mobileMenuOnlinePulse 2s ease-out infinite;
}

.mobile-menu__close {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.mobile-menu__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    border-radius: 100px;
    background: #ffffff;
}

.mobile-menu__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__nav {
    display: grid;
    gap: 6px;
    margin: auto 0;
    padding: 25px 0;
}

.mobile-menu__nav a {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    min-height: 58px;
    padding: 0 15px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.8px;
    transition:
            transform 0.25s ease,
            color 0.25s ease,
            background 0.25s ease;
}

.mobile-menu__nav a span {
    color: rgba(255, 255, 255, 0.28);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a.active {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.mobile-menu__nav a.active {
    box-shadow: inset 3px 0 0 var(--accent);
}

.mobile-menu__bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu__phone {
    display: grid;
    gap: 3px;
    margin-bottom: 14px;
}

.mobile-menu__phone span {
    color: rgba(255, 255, 255, 0.42);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mobile-menu__phone strong {
    font-size: 19px;
}

.mobile-menu__messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.mobile-menu__messengers a {
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 800;
}

.mobile-menu__order {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border: 0;
    border-radius: 13px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    transition:
            transform 0.25s ease,
            background 0.25s ease,
            box-shadow 0.25s ease;
}

.mobile-menu__order:hover {
    transform: translateY(-3px);
    background: var(--accent-light);
    box-shadow: 0 14px 30px rgba(201, 111, 69, 0.26);
}

body.mobile-menu-open {
    overflow: hidden;
}

@keyframes mobileMenuOnlinePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 214, 113, 0.58);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(59, 214, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 214, 113, 0);
    }
}

@media (max-width: 880px) {
    .main-nav,
    .header-phone {
        display: none !important;
    }

    .burger-button {
        display: inline-flex;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-messengers {
        display: none;
    }
}

@media (max-width: 520px) {
    .site-header,
    .site-header.is-scrolled {
        width: calc(100% - 12px);
    }

    .header-inner {
        padding: 0 10px 0 13px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .burger-button {
        width: 42px;
        height: 42px;
    }

    .mobile-menu__panel {
        padding: 17px;
        border-radius: 22px;
    }

    .mobile-menu__nav a {
        min-height: 52px;
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .mobile-menu__panel,
    .burger-button span,
    .mobile-menu__logo::before {
        animation: none;
        transition: none;
    }
}



/* =========================================================
   ПЛАВАЮЧІ МЕСЕНДЖЕРИ ПОЗА ХЕДЕРОМ
   ========================================================= */

.floating-messengers {
    position: fixed;
    top: 50%;
    right: 18px;
    z-index: 850;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    background:
            linear-gradient(
                    145deg,
                    rgba(24, 34, 28, 0.92),
                    rgba(42, 57, 48, 0.84)
            );
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    box-shadow:
            0 18px 44px rgba(0, 0, 0, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-50%);
}

.floating-messengers__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.floating-messenger {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.075);
    transition:
            transform 0.25s ease,
            background 0.25s ease,
            box-shadow 0.25s ease;
}

.floating-messenger::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
    pointer-events: none;
}

.floating-messenger svg {
    position: relative;
    z-index: 1;
    width: 25px;
    height: 25px;
    display: block;
}

.floating-messenger:hover {
    transform: translateX(-4px) scale(1.07);
}

.floating-messenger--viber:hover {
    background: rgba(115, 96, 242, 0.25);
    box-shadow: 0 12px 26px rgba(115, 96, 242, 0.25);
}

.floating-messenger--telegram:hover {
    background: rgba(42, 171, 238, 0.23);
    box-shadow: 0 12px 26px rgba(42, 171, 238, 0.23);
}

.floating-messenger--whatsapp:hover {
    background: rgba(37, 211, 102, 0.21);
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.22);
}

/* Після винесення іконок у хедері залишається більше місця */
.header-actions {
    flex: 0 0 auto;
}

.site-header.is-scrolled {
    width: min(1180px, calc(100% - 20px));
}

@media (max-width: 1180px) {
    .floating-messengers {
        right: 10px;
    }

    .floating-messenger {
        width: 39px;
        height: 39px;
    }
}

@media (max-width: 880px) {
    .floating-messengers {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-messenger {
        transition: none;
    }
}

/* =========================================================
   TOKAR — НОВИЙ SVG-ЛОГОТИП У ХЕДЕРІ
   ========================================================= */

.logo.brand-logo,
.mobile-menu__logo.brand-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    color: inherit;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    position: relative;
}

.brand-logo__svg {
    position: absolute;
    top: -32px;
    width: 112px;
    height: auto;
    display: block;
    flex: 0 0 auto;
    overflow: visible;
    transition:
            width 0.28s ease,
            transform 0.28s ease,
            filter 0.28s ease;
}

.logo.brand-logo:hover .brand-logo__svg,
.mobile-menu__logo.brand-logo:hover .brand-logo__svg {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 10px rgba(232, 201, 157, 0.22));
}

/* Зберігаємо зелений online-індикатор, але робимо його акуратнішим біля нового лого */
.logo.brand-logo::before {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-right: 1px;
}

.site-header.is-scrolled .brand-logo__svg {
    width: 100px;
}

.mobile-menu__logo.brand-logo {
    gap: 11px;
}

.mobile-menu__logo.brand-logo .brand-logo__svg {
    width: 124px;
}

.mobile-menu__logo.brand-logo::before {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
}

@media (max-width: 1180px) {
    .brand-logo__svg {
        width: 104px;
    }

    .site-header.is-scrolled .brand-logo__svg {
        width: 110px;
    }
}

@media (max-width: 880px) {
    .brand-logo__svg,
    .site-header.is-scrolled .brand-logo__svg {
        width: 100px;
    }
}

@media (max-width: 520px) {
    .logo.brand-logo,
    .mobile-menu__logo.brand-logo {
        letter-spacing: 0;
        font-size: 0;
    }

    .brand-logo__svg,
    .site-header.is-scrolled .brand-logo__svg {
        width: 88px;
    }

    .logo.brand-logo::before {
        width: 8px;
        height: 8px;
        flex-basis: 8px;
    }

    .mobile-menu__logo.brand-logo .brand-logo__svg {
        width: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo__svg {
        transition: none;
    }
}

/* Якщо користувач вимкнув анімації */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}
