.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    max-width: 100%;
}

img,
svg,
video {
    max-width: 100%;
}

.neon-glow:hover {
    box-shadow: 0 0 18px rgba(226, 162, 58, 0.45);
}

.structural-divider {
    border-bottom: 2px solid #1c1b1b;
}

.vertical-divider {
    border-right: 2px solid #1c1b1b;
}

.grid-blueprint {
    background-image:
        linear-gradient(#e5e2e1 1px, transparent 1px),
        linear-gradient(90deg, #e5e2e1 1px, transparent 1px);
    background-size: 40px 40px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #1c1b1b;
    border-radius: 0;
    max-width: 100%;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #E2A23A;
    border: 2px solid #1c1b1b;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #E2A23A;
    border: 2px solid #1c1b1b;
    cursor: pointer;
    border-radius: 0;
}

.catalog-card img,
#catalog .bg-primary-container img {
    transition: transform 0.4s ease;
}

.modal-overlay {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

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

.modal-overlay .modal-panel {
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-width: min(100%, 56rem);
}

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

.modal-overlay > .modal-backdrop {
    position: fixed;
    inset: 0;
}

.portfolio-item.is-hidden {
    display: none;
}

.portfolio-item {
    cursor: pointer;
    min-width: 0;
}

.portfolio-item.portfolio-extra.is-hidden {
    display: none;
}

.form-message {
    font-size: 14px;
    line-height: 20px;
    margin-top: 8px;
    min-height: 20px;
    overflow-wrap: anywhere;
}

.form-message.is-success {
    color: #E2A23A;
}

.form-message.is-error {
    color: #ba1a1a;
}

.form-message.on-light.is-success {
    color: #1c1b1b;
}

body.modal-open {
    overflow: hidden;
}

.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

.mobile-menu {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

#mobile-cta-bar {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

#catalog,
#portfolio,
#calculator,
#advantages,
#about {
    overflow-x: clip;
}

h1, h2, h3, h4, #calc-price {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.portfolio-item .portfolio-caption {
    pointer-events: none;
}

@media (max-width: 767px) {
    input[type="range"]::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    input[type="range"]::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    #advantages .p-12 {
        padding: 1.5rem;
    }

    #catalog .catalog-card {
        padding: 1.25rem;
        min-width: 0;
    }

    #catalog .catalog-card .text-headline-lg,
    #catalog .catalog-card .font-black.text-headline-lg {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .modal-overlay.is-open {
        align-items: flex-start;
        overflow-y: auto;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .modal-overlay .modal-panel {
        max-height: none;
        overflow-y: visible;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    #portfolio-modal .modal-panel,
    #measure-modal .modal-panel {
        overflow: visible;
    }

    .portfolio-item .portfolio-caption {
        opacity: 1;
        background: linear-gradient(to top, rgba(28, 27, 27, 0.92) 0%, rgba(28, 27, 27, 0.45) 55%, transparent 100%);
        justify-content: flex-end;
        padding: 1rem;
    }

    .portfolio-item .portfolio-caption .text-headline-lg,
    .portfolio-item .portfolio-caption .text-accent.font-black {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .portfolio-item .portfolio-caption p {
        margin-bottom: 0;
        font-size: 0.8125rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .portfolio-item .portfolio-caption .flex.items-center.gap-2 {
        display: none;
    }

    #portfolio-grid {
        grid-auto-rows: 240px;
        min-width: 0;
    }

    main {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
        max-width: 100%;
    }

    #calculator .lg\:col-span-5 > div,
    #calculator form,
    #calculator input,
    #calculator select,
    #calculator button {
        max-width: 100%;
    }

    #about .lg\:col-span-7 {
        min-width: 0;
    }

    footer .grid {
        min-width: 0;
    }
}
