@layer reset, base, layout, components, utilities;

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

@layer base {
    @font-face {
        font-family: 'Inter Web';
        src: url('/assets/fonts/Inter/Inter-Light.otf') format('opentype');
        font-weight: 300;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: 'Inter Web';
        src: url('/assets/fonts/Inter/Inter-Regular.otf') format('opentype');
        font-weight: 400;
        font-style: normal;
        font-display: swap;
    }
    
    @font-face {
        font-family: 'Inter Web';
        src: url('/assets/fonts/Inter/Inter-Bold.otf') format('opentype');
        font-weight: 700;
        font-style: normal;
        font-display: swap;
    }
    
    :root {
        --container-max: 80rem;
        --gutter: 2rem;
        --color-primary: oklch(0.6947 0.1158 192.64);
        --color-text: oklch(0.2781 0.0296 256.85);
        --color-text-muted: oklch(0.551 0.0234 264.36);
        --hover-opacity-70: 0.7;
        --hover-opacity-90: 0.9;
        --color-bg: oklch(1 0 0);
        --color-bg-featured: oklch(0.9846 0.0017 247.84);
        --radius-large: 1rem;
        --radius-small: 0.15rem;
        --color-border: oklch(0.9276 0.0058 264.53);
        --box-shadow: oklch(0 0 0 / 5%) 0 1px 4px;
        --box-shadow-hover: oklch(0 0 0 / 5%) 0 8px 24px;
        --transition-base: 0.2s ease-in-out;
    }

    html {
        scroll-behavior: smooth;
        scrollbar-gutter: stable;
        font-size: 16px;
    }

    body {
        font-family: Inter, 'Inter Web', sans-serif;
        font-size: 15px;
        line-height: 1.5;
        color: var(--color-text);
        background-color: var(--color-bg);
        display: flex; /* чтобы прижать footer к низу там, где контента не на 100% высоты */
        flex-direction: column;
        gap: 0;
        min-height: 100vh;
    }

    ::selection {
        background: color-mix(in oklch, var(--color-primary), transparent 45%);
        color: var(--color-text-muted);
    }

    img, video {
        max-width: 100%;
        height: auto;
        display: block;
    }

    a {
        text-decoration: none;
        color: var(--color-primary);
        transition: opacity var(--transition-base);
    }

    h3 {
        font-size: 17px;
    }

    textarea::placeholder, input::placeholder {
        color: #aaa;
    }
}

@layer layout {
    .container {
        width: min(100% - var(--gutter), var(--container-max));
        margin-inline: auto;
    }
}

@layer components {
    .site-main h2 {
        font-size: clamp(1.4rem, 2vw, 32px);
        position: relative;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        width: min(100%, 640px);
        line-height: 1.3;
        text-wrap: balance;
    }
    .site-main h2::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 52px;
        background: var(--color-primary);
    }

    .subtitle {
        text-transform: uppercase;
        font-size: .75rem;
        color: var(--color-primary);
        font-weight: 500;
    }

    .primary-button {
        width: 100%;
        max-width: 320px;
        font: inherit;
        background: var(--color-primary);
        color: var(--color-bg);
        padding: .75rem;
        border: none;
        border-radius: var(--radius-small);
        cursor: pointer;
        transition: opacity var(--transition-base);
        position: relative;
        overflow: hidden;
        isolation: isolate;
        z-index: 0;
    }

    .primary-button::after {
        content: "";
        position: absolute;
        inset: -50%;
        background: linear-gradient(
          135deg,
          transparent 44%,
          oklch(1 0 0 / 0.5) 50%,
          transparent 56%
        );
        transform: translate(-80%, -80%);
        opacity: 0;
        pointer-events: none;
        z-index: 0;
    }

    .primary-button:hover {
        opacity: var(--hover-opacity-90);
    }

    .primary-button:hover::after, .primary-button:focus-visible::after {
        animation: primary-shine 2.5s ease .1s 1 forwards;
    }
    @keyframes primary-shine {
        0% {
            transform: translate(-80%, -80%);
            opacity: 0;
        }
        15% {
            opacity: 1;
        }
        100% {
            transform: translate(80%, 80%);
            opacity: 0;
        }
    }

    .order-button {
        font: inherit;
        background: var(--color-bg);
        color: var(--color-primary);
        padding: .5rem;
        border-radius: var(--radius-small);
        cursor: pointer;
        transition: background-color var(--transition-base), color var(--transition-base);
        border: solid 1px var(--color-primary);
        max-width: 120px;
        margin-left: 1.8rem;
        margin-top: auto;
        position: relative;
        overflow: hidden;
        isolation: isolate;
        z-index: 0;
    }

    .order-button:hover {
        color: var(--color-bg);
    }

    .order-button::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 125%;
        aspect-ratio: 1;
        background: var(--color-primary);
        transform: translate(-114%, -114%) rotate(45deg);
        transform-origin: center;
        z-index: -1;
        transition: transform .75s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .order-button:hover::before, .order-button:focus-visible::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .order-button::after {
        content: "";
        position: absolute;
        inset: -50%;
        background: linear-gradient(
          135deg,
          transparent 44%,
          oklch(1 0 0 / 0.5) 50%,
          transparent 56%
        );
        transform: translate(-80%, -80%);
        opacity: 0;
        pointer-events: none;
        z-index: 0;
    }

    .order-button:hover::after, .order-button:focus-visible::after {
        animation: order-shine 2.5s ease .1s 1 forwards;
    }
    @keyframes order-shine {
        0% {
            transform: translate(-80%, -80%);
            opacity: 0;
        }
        15% {
            opacity: 1;
        }
        100% {
            transform: translate(80%, 80%);
            opacity: 0;
        }
    }

    .primary-button:focus-visible {
        outline: 2px solid var(--color-text);
        outline-offset: 3px;
        border-radius: var(--radius-small);
    }

    .grid-2 {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr));
        gap: 1.5rem;
        margin: 3rem 0 5rem;
    }

    .grid-3 {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
        gap: 1.5rem;
        margin: 3rem 0 5rem;
    }

    .grid-4 {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
        gap: 1.5rem;
        margin: 3rem 0 5rem;
    }

    table {
        border-collapse: collapse;
        margin: 2rem 0;
    }

    thead th {
        padding-block: 1rem;
        background: var(--color-primary);
        color: var(--color-bg);
    }

    tbody td {
        padding: 1rem;
        border-bottom: solid 1px var(--color-border);
    }

    /* Класс .current для выделения "особенной" или текущей колонки таблицы, пример тут: https://dev.vodahim.ru/ar-a/ */
    th.current {
        background: transparent;
        color: var(--color-primary);
        position: relative;
        z-index: 1;
    }

    th.current::before {
        content: "";
        position: absolute;
        inset: -0.5rem 0 0;
        background: color-mix(in oklch, var(--color-primary), transparent 85%);
        border: 1px solid var(--color-primary);
        border-bottom: none;
        border-radius: calc(var(--radius-small) * 2) calc(var(--radius-small) * 2) 0 0;
        z-index: -1;
    }

    tbody td:first-child {
        font-weight: 500;
    }

    td.current {
        background: color-mix(in oklch, var(--color-primary), transparent 97%);
        box-shadow:
            inset 1px 0 0 var(--color-primary),
            inset -1px 0 0 var(--color-primary);
    }

    tr:last-child td.current {
        position: relative;
        z-index: 1;
        border-bottom: none;
        background: transparent;
    }

    tr:last-child td.current::after {
        content: '';
        position: absolute;
        inset: 0 0 -.5rem 0;
        border: solid 1px var(--color-primary);
        border-top: 0;
        border-radius: 0 0 calc(var(--radius-small) * 2) calc(var(--radius-small) * 2);
        background: color-mix(in oklch, var(--color-primary), transparent 97%);
    }

    @media (width <= 768px) {
        table {
            overflow-x: auto;
            max-width: 100%;
            display: block;
            padding: 1rem 0;
        }
    }

    /* Header */
    .site-header {
        min-height: 80px;
        margin-bottom: var(--gutter);
        border-bottom: solid 1px var(--color-border);
        box-shadow: var(--box-shadow);
    }

    .site-header__inner {
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .site-header__logo-img {
        height: 56px;
        width: auto;
    }

    .site-header__menu-nav {
        display: flex;
        align-items: center;
        gap: var(--gutter);
    }

    .site-header__menu-nav-link {
        color: var(--color-text);
        position: relative;
    }

    .site-header__menu-nav-link.is-active::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-primary);
        margin-top: .5rem;
        position: absolute;
        transform-origin: center;
        animation: menuActiveDraw 0.25s ease-in-out 0.25s both;
    }

    @keyframes menuActiveDraw {
        0% {
            transform: scaleX(0);
        }
        100% {
            transform: scaleX(1);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .site-header__menu-nav-link.is-active::after {
            animation: none;
            transform: scaleX(1);
        }
    }

    .site-header__menu-nav-link:hover, .site-header__right a:hover {
        opacity: var(--hover-opacity-70);
    }

    .site-header__menu-nav-link:focus-visible, .site-header__right a:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 3px;
        border-radius: var(--radius-small);
    }

    .site-header__right {
        display: flex;
        gap: 1.5rem;
    }

    .site-header__right > div {
        font-size: 14px;
    }

    .site-header__right > div a {
        display: flex;
        gap: 6px;
        align-items: center;
        color: var(--color-text-muted);
    }

    .site-header__right__icon {
        opacity: var(--hover-opacity-70);
    }

    @media (width <= 992px) {
        .site-header__inner {
            flex-direction: column;
            padding: calc(var(--gutter) / 2) 0;
        }
    }

    @media (width <= 480px) {
        .site-header__menu-nav {
            gap: calc(var(--gutter) / 2);
        }

        .site-header__right {
            gap: 0.5rem;
            flex-direction: column;
            align-items: center;
        }
    }
    /* EOF Header */

    /* Breadcrumbs */
    .breadcrumbs {
        margin-bottom: 1rem;
    }

    .breadcrumbs__list {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
        font-size: .85rem;
    }

    .breadcrumbs__item {
        max-width: 100%;
        color: var(--color-text-muted);
    }

    .breadcrumbs__item + .breadcrumbs__item::before {
        content: ">";
        margin: 0 .75rem;
        color: color-mix(in oklch, var(--color-border), var(--color-text-muted) 30%);
    }

    .breadcrumbs__link,
    .breadcrumbs__current {
        overflow-wrap: anywhere;
        word-break: break-word;
        color: var(--color-text-muted);
    }
    /* EOF Breadcrumbs */

    /* Hero Section */
    .hero {
        position: relative;
        width: 100%;
        min-height: 340px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .hero__media, .hero__media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .hero__content {
        position: relative;
        z-index: 1;
        background: color-mix(in oklch, var(--color-bg-featured), transparent 5%);
        max-height: 320px;
        overflow: auto;
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
        border-radius: var(--radius-small) var(--radius-small) 0 0;
    }

    .hero__content-title {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: .75rem;
    }

    .hero__content-title::after {
        content: '';
        width: 1px;
        height: 65%;
        background: var(--color-border);
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .container.hero__content > div {
        padding: 2rem;
    }

    .hero__content-title h1 {
        font-size: 26px;
        line-height: 1.2;
        text-wrap: balance;
    }

    .hero__content-title p {
        color: var(--color-text-muted);
    }

    .hero__content-advantages {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 1rem;
    }

    .hero__content-advantages-item {
        color: var(--color-text-muted);
    }

    .hero__content-advantages-item-digit {
        font-size: 2.1rem;
        color: var(--color-primary);
    }

    @media (width <= 992px) {
        .hero__content {
            grid-template-columns: 1fr;
            max-height: 100%;
        }

        .hero__content-title::after { display: none; }

        .hero__content-advantages-item-digit {
            display: block;
        }
    }

    @media (width <= 480px) {
        .hero__content-advantages-item-digit {
            font-size: 1.1rem;
            text-align: center;
        }
    }
    /* EOF Hero Section */

    /* Main Page sections */
    .mainpage__production {
        margin-top: 3rem;
    }

    .mainpage__section-description {
        color: var(--color-text-muted);
    }

    .mainpage__production-item {
        border: solid 1px var(--color-border);
        border-radius: var(--radius-large);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: .5rem;
        box-shadow: var(--box-shadow);
        padding-bottom: 1rem;
        transition: box-shadow var(--transition-base), transform var(--transition-base);
    }

    .mainpage__production-item:hover {
        box-shadow: var(--box-shadow-hover);
        transform: translateY(-2px);
    }

    .mainpage__production-item > * {
        padding: 0 1.8rem;
    }

    .mainpage__production-item-image {
        padding: 0;
        overflow: hidden;
        height: 210px;
    }

    .mainpage__production-item-image a {
        display: block;
        height: 100%;
    }

    .mainpage__production-item-image img {
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center center;
    }

    .mainpage__production-item h3 {
        margin-top: .75rem;
    }

    .mainpage__production-item :is(h3 a) {
        color: var(--color-text);
    }

    .mainpage__production-item p {
        color: var(--color-text-muted);
    }

    .link-button {
        margin-top: auto;
        font-weight: 600;
    }

    .mainage__advantages, .mainpage__application, .get-consult {
        position: relative;
        padding-block: 3rem;
    }

    .mainage__advantages::before, .mainpage__application::before, .get-consult::before {
        content: '';
        position: absolute;
        z-index: -1;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 100vw;
        transform: translateX(-50%);
        background: var(--color-bg-featured);
    }

    .mainpage__advantages-items {
        margin: 3rem 0 2rem;
    }

    .mainpage__advantages-item {
        background: var(--color-bg);
        border-radius: var(--radius-large);
        box-shadow: var(--box-shadow);
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .mainpage__advantages-item img {
        width: 80px;
    }

    .mainpage__advantages-item h3 {
        font-weight: 400;
        font-size: 1rem;
        text-wrap: balance;
    }

    /* Featured Section */
    .section__featured {
        padding-block: 3rem;
    }

    .section__featured-items-carousel {
        --slides-visible: 3;
        --carousel-gap: 1.5rem;
        container-type: inline-size;
        margin: 2rem 0 0;
        overflow-x: auto;
        overflow-y: visible;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .section__featured-items-carousel.is-controlled-scroll {
        scroll-snap-type: none;
    }

    .section__featured-items-carousel::-webkit-scrollbar {
        display: none;
    }

    @media (width <= 992px) {
        .section__featured-items-carousel {
            --slides-visible: 2;
        }
    }

    @media (width <= 480px) {
        .section__featured-items-carousel {
            --slides-visible: 1;
        }
    }

    .section__featured-items {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--carousel-gap);
        width: max-content;
        min-width: 100%;
    }

    .section__featured-items > * {
        flex: 0 0 calc((100cqi - (var(--slides-visible) - 1) * var(--carousel-gap)) / var(--slides-visible));
        scroll-snap-align: start;
    }

    .section__featured-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1rem;
    }

    .section__featured-nav {
        display: flex;
        gap: 0.75rem;
        flex-shrink: 0;
    }

    .section__featured-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: none;
        border-radius: var(--radius-small);
        background: var(--color-primary);
        color: var(--color-bg);
        cursor: pointer;
        transition: opacity var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
    }

    .section__featured-arrow.is-disabled {
        cursor: default;
        pointer-events: none;
        background: var(--color-bg);
        color: var(--color-primary);
        border: solid 1px var(--color-primary);
    }

    .section__featured-dots {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 1rem;
        margin-top: 1.25rem;
    }

    .section__featured-dots[hidden] {
        display: none;
    }

    .section__featured-dot {
        width: 0.5rem;
        height: 0.5rem;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--color-border);
        cursor: pointer;
        transition: width var(--transition-base);
    }

    .section__featured-dot.is-active {
        width: 1.5rem;
        border-radius: 999px;
        background: var(--color-primary);
    }

    .section__featured--static .section__featured-nav {
        display: none;
    }

    .mainpage__production-item-price {
        font-weight: 600;
        display: flex;
        gap: .75rem;
        align-items: center;
        margin-bottom: 2rem;
    }

    .mainpage__production-item-price::after, .mainpage__production-item-price::before {
        content: '';
        display: inline-block;
        background: var(--color-primary);
        width: 20px;
        height: 2px;
        border-radius: 1px;
    }

    .mainpage__production-item .order-button {
        padding: .5rem;
    }
    /* EOF Featured Section */

    .centered-title .subtitle {
        display: block;
        text-align: center;
    }

    .centered-title h2 {
        text-align: center;
        width: 100%;
    }

    .centered-title h2::after {
        content: '';
        left: 50%;
        transform: translateX(-50%);
    }

    .centered-title .mainpage__section-description {
        text-align: center;
        width: min(36rem, 100%);
        margin: 0 auto;
    }

    .mainpage__application {
        padding-block: 3rem;
    }

    .mainpage__application-item {
        border: solid 1px var(--color-border);
        border-radius: var(--radius-large);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        box-shadow: var(--box-shadow);
        transition: box-shadow var(--transition-base), transform var(--transition-base);
        padding: 2.4rem;
    }

    .mainpage__application-item:hover {
        box-shadow: var(--box-shadow-hover);
        transform: translateY(-2px);
    }

    .mainpage__application-item::after {
        content: '';
        display: block;
        background: var(--color-primary);
        width: 52px;
        height: 2px;
        margin-top: auto;
    }

    .mainpage__application-item img {
        width: 42px;
    }

    .mainpage__application-item p {
        color: var(--color-text-muted);
    }

    .mainpage__contacts {
        padding-block: 3rem;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
        gap: 3rem;
    }

    .mainpage__contacts-left p {
        width: min(320px, 100%);
        color: var(--color-text-muted);
    }

    .mainpage__contacts-left-phone, .mainpage__contacts-left-email, .mainpage__contacts-left-address, .mainpage__contacts-left-schedule {
        padding: 2rem;
        margin-block: 1rem;
        border: solid 1px var(--color-border);
        border-radius: var(--radius-large);
    }

    .small-title, .small-text {
        display: block;
        padding-block: .5rem;
        color: var(--color-text-muted);
        font-size: .85rem;
    }

    .small-title {
        text-transform: uppercase;
    }

    :is(.mainpage__contacts-left-phone, .mainpage__contacts-left-email, .mainpage__contacts-left-address, .mainpage__contacts-left-schedule) a {
        color: var(--color-text);
        font-size: 1.3rem;
        font-weight: 500;
    }

    .mainpage__contacts-left > div p {
        color: var(--color-text);
    }

    .mainpage__contacts-right-inner {
        height: 100%;
        padding: 2rem;
        border: solid 1px var(--color-border);
        border-radius: var(--radius-large);
        box-shadow: var(--box-shadow);
    }

    form.mainpage__contacts-form {
        display: flex;
        flex-direction: column;
        gap: .75rem;
    }

    input:is([type=text], [type=email], [type=tel]), textarea, form .primary-button {
        width: 100%;
        padding: .75rem;
        margin-bottom: .75rem;
        border: solid 1px var(--color-border);
        max-width: 100%;
        border-radius: var(--radius-small);
        transition: border-color var(--transition-base), opacity var(--transition-base);
    }

    :is(
        input[type="text"],
        input[type="email"],
        input[type="tel"],
        textarea
    ):focus-visible {
        outline: none;
        border-color: var(--color-primary);
    }

    label {
        color: var(--color-text-muted);
        font-weight: 500;
        cursor: pointer;
    }

    fieldset {
        border: none;
        margin-bottom: .5rem;
    }

    .mainpage__contacts-form-radio, .form-order__form-radio, .form-consultation__form-radio {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    :is(.mainpage__contacts-form-radio, .form-order__form-radio, .form-consultation__form-radio) input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        margin: 0;
        width: 1.125rem;
        height: 1.125rem;
        flex-shrink: 0;
        border: 1px solid var(--color-border);
        background: var(--color-bg);
        cursor: pointer;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

    :is(.mainpage__contacts-form-radio, .form-order__form-radio, .form-consultation__form-radio) input[type="radio"]:checked {
        background: var(--color-primary);
    }

    :is(.mainpage__contacts-form-radio, .form-order__form-radio, .form-consultation__form-radio) input[type="radio"]:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

    :is(.mainpage__contacts-form-radio, .form-order__form-radio, .form-consultation__form-radio) label {
        cursor: pointer;
    }

    :is(.mainpage__contacts-form-radio, .form-order__form-radio, .form-consultation__form-radio) {
        margin-top: .15rem;
    }

    :is(.mainpage__contacts-form-checkbox, .form-order__form-checkbox, .form-consultation__form-checkbox) {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    :is(.mainpage__contacts-form-checkbox, .form-order__form-checkbox, .form-consultation__form-checkbox) input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        margin: 0.15rem 0 0;
        width: 1.125rem;
        height: 1.125rem;
        flex-shrink: 0;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-small);
        background: var(--color-bg);
        cursor: pointer;
        display: grid;
        place-content: center;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }
    
    /* галочка */
    :is(.mainpage__contacts-form-checkbox, .form-order__form-checkbox, .form-consultation__form-checkbox) input[type="checkbox"]::before {
        content: "";
        width: 0.55rem;
        height: 0.3rem;
        border: solid var(--color-bg);
        border-width: 0 0 3px 3px;
        transform: rotate(-45deg) scale(0);
        transition: transform 0.15s ease;
    }
    
    :is(.mainpage__contacts-form-checkbox, .form-order__form-checkbox, .form-consultation__form-checkbox) input[type="checkbox"]:checked {
        background: var(--color-primary);
        border-color: var(--color-primary);
    }
    
    :is(.mainpage__contacts-form-checkbox, .form-order__form-checkbox, .form-consultation__form-checkbox) input[type="checkbox"]:checked::before {
        transform: rotate(-45deg) scale(1);
    }
    
    :is(.mainpage__contacts-form-checkbox, .form-order__form-checkbox, .form-consultation__form-checkbox) input[type="checkbox"]:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }
    
    :is(.mainpage__contacts-form-checkbox, .form-order__form-checkbox, .form-consultation__form-checkbox) label {
        font-size: 0.8125rem;
        font-weight: 400;
        line-height: 1.4;
        color: var(--color-text-muted);
        cursor: pointer;
    }

    /* Catalog page */
    .catalog__head {
        display: flex;
        justify-content: space-between;
        gap: 2rem;
        border-bottom: solid 2px var(--color-border);
        margin-top: 1rem;
    }

    .catalog__head-right img {
        width: 80px;
        height: auto;
    }

    .catalog__head-left {
        display: flex;
        flex-direction: column;
        width: min(80%, 620px);
    }

    .introtext {
        font-size: .85rem;
        color: var(--color-text-muted);
    }

    .catalog__count {
        margin-top: 2rem;
        margin-bottom: .25rem;
        color: var(--color-text-muted);
    }

    .mainpage__production-item-inStock {
        margin-top: .25rem;
        display: flex;
        justify-content: flex-end;
        gap: .25rem;
        font-size: .85rem;
        color: var(--color-text-muted);
        font-weight: 100;
    }

    .mainpage__production-item-inStock img {
        max-width: 14px;
        height: auto;
    }

    .tpl-3 .mainpage__production-item h3 {
        margin: 0;
    }

    .mainpage__production-item-meta {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .mainpage__production-item-meta span {
        display: block;
        border: solid 1px var(--color-border);
        padding: .25rem .5rem;
        border-radius: var(--radius-small);
        color: var(--color-text-muted);
        font-size: .85rem;
    }

    .get-consult {
        display: grid;
        align-items: center;
        gap: 2rem;
        grid-template-columns: 1fr 320px;
        margin-bottom: 3rem;
    }

    .get-consult__left {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .get-consult__left img {
        height: 60px;
    }

    .get-consult__left-content h3 {
        font-size: 1.3rem;
    }

    .get-consult__left-content p {
        color: var(--color-text-muted);
        width: min(100%, 420px);
    }

    .get-consult__right {
        display: flex;
        justify-content: flex-end;
    }

    .content {
        margin-bottom: 3rem;
    }

    @media (width <= 992px) {
        .catalog__head-right {
            flex: 1 0 64px;
        }

        .get-consult {
            grid-template-columns: 1fr;
        }
        .get-consult__right {
            justify-content: center;
        }
    }
    /* EOF Catalog page */

    /* Text content sections */
    .content {
        margin-bottom: 5rem;
    }

    .content p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .content h2 {
        line-height: 1.8;
        width: 100%;
        padding-bottom: 0;
        margin: 2rem 0 .75rem;
    }

    .content h2::after {
        content: none;
    }

    .content h3 {
        font-size: clamp(1.1rem, 1.6vw, 24px);
        line-height: 1.6;
        margin: 2rem 0 .5rem;
    }

    .content ul {
        padding-left: 2rem;
        margin-bottom: 1rem;
    }

    .content ul li {
        list-style-type: square;
    }

    @media (width <= 992px) {
        .content h3 {
            line-height: 1.4;
        }
    }
    /* EOF Text content sections */

    /* Product page */
    .product-head {
        margin-top: 3rem;
        display: grid;
        grid-template-columns: 420px 1.25fr;
        gap: 4rem;
        border-bottom: solid 3px var(--color-border);
        margin-bottom: 3rem;
    }

    .product-head__left img {
        border-radius: var(--radius-small);
    }

    .product-head__right {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .product-head__large-intro {
        color: var(--color-text-muted);
    }

    .product-head__meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
    }

    .product-head__meta span {
        display: block;
        border: solid 1px var(--color-border);
        padding: .5rem 1rem;
        border-radius: var(--radius-small);
        color: var(--color-text-muted);
        text-transform: uppercase;
    }

    .product-head__price {
        font-weight: 600;
    }

    .product-head__price span {
        font-size: 1.2rem;
    }

    .product-head__buttons {
        display: flex;
        gap: 2rem;
    }

    .product-head__buttons .order-button {
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    .product-head__advantages {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin: 1rem 0 3rem;
    }

    .product-head__advantages-item {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .product-head__advantages-item-icon img {
        width: 42px;
        height: auto;
    }

    .product-head__advantages-item-content {
        font-size: .85rem;
    }

    .product-specs {
        border-top: solid 1px var(--color-border);
        padding-top: 3rem;
    }

    .product-specs .grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 3rem 0 5rem;
    }    

    .product-specs__item {
        display: flex;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
        border-bottom: solid 1px var(--color-border);
        padding: 0 1rem .5rem;
    }

    .product-specs__name {
        font-weight: 600;
    }

    .product-specs__value {
        color: var(--color-primary);
    }

    @media (width <= 992px) {
        .content h2 {
            line-height: 1.2;
        }
        .product-head {
            grid-template-columns: 1fr;
        }
        .product-specs__item > div {
            max-width: 50%;
        }
        .product-specs__value {
            text-align: right;
        }
    }

    @media (width <= 768px) {
        .product-head__advantages {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
    }
    /* EOF Product page */

    /* Footer */
    .site-footer {
        background: var(--color-text);
        color: var(--color-bg-featured);
        border-top: solid 1px var(--color-border);
        padding-top: 3rem;
        padding-bottom: 1.25rem;
        margin-top: auto;
    }

    .site-footer a {
        color: var(--color-bg-featured);
    }

    .footer__main {
        display: grid;
        grid-template-columns: 1.2fr 1.2fr 0.6fr;
        gap: 2rem;
    }

    .footer__company-logo img {
        background: var(--color-bg-featured);
        padding: 0 .5rem;
        max-width: 180px;
        height: auto;
        border-radius: var(--radius-small);
    }

    .footer__company {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer__company-text {
        width: min(18rem, 100%);
    }

    .footer__nav {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 1rem;
    }

    .footer__nav-list {
        display: flex;
        gap: 1.5rem;
    }

    .footer__contacts-item:first-child .small-title {
        padding-top: 0;
    }

    .footer__bottom {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: solid 1px var(--color-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: .85rem;
    }

    .footer__bottom-copyright {
        color: var(--color-text-muted);
    }

    .footer__bottom-links {
        display: flex;
        gap: 2rem;
    }

    @media (width <= 992px) {
        .footer__main {
            grid-template-columns: 1fr;
        }
    }

    @media (width <= 480px) {
        .footer__nav-list {
            flex-wrap: wrap;
        }
        .footer__bottom {
            flex-direction: column;
            gap: 1rem;
        }
    }
    /* EOF Footer */

    /* Contacts page */
    .mainpage__map {
        margin: 3rem 0 5rem;
    }
    /* EOF Contacts page */

    /* Forms / Popups */
    .overlay {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        position: fixed;
        inset: 0;
        background:
            linear-gradient(
                45deg,
                color-mix(in oklch, var(--color-primary), transparent 25%),
                color-mix(in oklch, oklch(0.84 0.08 182.89), transparent 25%)
            );
        backdrop-filter: blur(5px);
        z-index: 999;
    }

    .overlay.is-open {
        cursor: pointer;
        animation: overlayAppear 0.35s ease-in-out both;
    }

    @keyframes overlayAppear {
        0% {
            opacity: 0;
        }
        100% {
            visibility: visible;
            opacity: 1;
            pointer-events: auto;
        }
    }

    .form-popup {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        position: fixed;
        z-index: 9999;
        width: min(92%, 520px);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: var(--color-bg);
        padding: 2rem;
        max-height: min(98%, 700px);
        overflow-y: auto;
        box-shadow: var(--box-shadow-hover);
        border-radius: var(--radius-large);
    }

    .form-popup.is-open {
        animation: popupAppear 0.35s ease-out both;
    }

    @keyframes popupAppear {
        0% {
            transform: translate3d(-50%, calc(-50% + 80px), 0);
        }
        100% {
            transform: translate3d(-50%, -50%, 0);
            visibility: visible;
            opacity: 1;
            pointer-events: auto;
        }
    }

    .form-consultation__title,
    .form-order__title {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .form-popup__footer {
        font-size: .85rem;
    }

    .form-popup__close {
        position: absolute;
        right: 1rem;
        top: 1rem;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .form-popup__close::before,
    .form-popup__close::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 3px;
        background: var(--color-border);
        transition: var(--transition-base);
    }

    .form-popup__close::before {
        transform: translateY(-50%) rotate(45deg);
    }

    .form-popup__close::after {
        transform: translateY(-50%) rotate(-45deg);
    }

    .form-popup__close:hover::before {
        transform: translateY(-50%) rotate(0deg);
    }

    .form-popup__close:hover::after {
        transform: translateY(-50%) rotate(0deg);
    }

    .form-popup__close:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 3px;
        border-radius: var(--radius-small);
    }
    /* EOF Forms */
}

@layer utilities {   
    .tpl-4 .site-header {
        margin-bottom: 0;
    }

    .id-275 .mainpage__contacts-left > div {
        padding: 1rem 2rem;
    }

    .id-275 .mainpage__contacts-left > div a {
        font-size: 1rem;
    }

    .get-consult--special .get-consult__left-content :is(h3, p) {
        width: min(100%, 525px);
    }
}