@font-face {
    font-family: Onest;
    src: url("onest-variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

.phase-one {
    --phase-ink: #123148;
    --phase-muted: #627b8d;
    --phase-blue: #2367e8;
    --phase-blue-dark: #1454cd;
    --phase-bg: #f1f5fa;
    --phase-line: #dbe5f1;
    --phase-control: #f3f7fc;
    --phase-sidebar: clamp(11rem, 21%, 15.375rem);
    --phase-gap: 28px;
    background: var(--phase-bg);
    color: var(--phase-ink);
    font-family: Onest, Arial, sans-serif;
}

.phase-one .container {
    width: min(100% - 80px, 1360px);
    max-width: none;
}

.phase-one .content {
    background: var(--phase-bg);
}

.phase-one a:focus-visible,
.phase-one button:focus-visible,
.phase-one input:focus-visible,
.phase-one summary:focus-visible {
    outline: 2px solid var(--phase-blue);
    outline-offset: 2px;
}

.phase-one .btn-primary {
    --bs-btn-bg: var(--phase-blue);
    --bs-btn-border-color: var(--phase-blue);
    --bs-btn-hover-bg: var(--phase-blue-dark);
    --bs-btn-hover-border-color: var(--phase-blue-dark);
}

.phase-one .header {
    background: #fff;
    border-bottom: 1px solid var(--phase-line);
    box-shadow: 0 2px 13px #12314808;
}

.phase-one .header__top {
    min-height: 50px;
    padding-block: 12px;
    font-size: 15px;
    gap: 6px 20px;
}

.phase-one .header__links--left,
.phase-one .header__links--right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 17px;
}

.phase-one .header__links--left .header__link,
.phase-one .header__links--right .header__link {
    margin: 0;
    color: var(--phase-ink);
    text-decoration: none;
}

.phase-one .header__middle {
    display: grid;
    grid-template-columns: var(--phase-sidebar) minmax(0, 1fr);
    gap: var(--phase-gap);
    padding-block: 10px;
    align-items: center;
}

.phase-one .header__logo {
    width: auto;
    height: auto;
    margin: 0;
    gap: 6px;
}

.phase-one .header__logo img {
    width: min(100%, 232px);
    height: auto;
    display: block;
}

.phase-one .header__location {
    min-width: 0;
    margin: 0;
    align-self: flex-start;
    font-size: 13px;
    color: var(--phase-muted);
    text-decoration: none;
}

.phase-one .header__right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 20px;
    min-width: 0;
    align-items: center;
}

.phase-one .header__right .header__search {
    margin: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.phase-one .header__banner {
    display: block;
    width: 100%;
    height: clamp(52px, 6.4vw, 85px);
    object-fit: contain;
    object-position: left center;
}

.phase-one .header__basket--container {
    width: auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.phase-one .header__basket--container .header__basket,
.phase-one .header__basket--container .header__dropdown--auth {
    width: auto !important;
    min-width: 0;
    margin: 0;
}

.phase-one .header__menu,
.phase-one .header__dropdown--catalog,
.phase-one #catalog-dropdown,
.phase-one #catalog-dropdown-hide {
    width: 100%;
    max-width: none;
}

.phase-one .header__btn-dropdown {
    height: 50px;
    border-radius: 8px;
    font-size: 16px;
    justify-content: center;
    box-shadow: 0 3px 8px #2367e819;
}

.phase-one .header__search {
    width: 100%;
    height: 50px;
    border: 1px solid #a6bffc;
    border-radius: 8px;
    background: var(--phase-control);
}

.phase-one .header__search input {
    height: 100%;
    min-width: 0;
    padding: 0 13px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
}

.phase-one .header__search button {
    height: 100%;
    flex: 0 0 52px;
    width: 52px;
    border-radius: 0 7px 7px 0;
}

.phase-one .navigation {
    border: 0;
    background: #fff;
}

.phase-one .navigation__list {
    padding-left: min(22%, 274px);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-block: 0;
}

.phase-one .navigation__link {
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    color: var(--phase-ink);
    text-decoration: none;
}

.phase-one .navigation__link.phase-one-current {
    border-color: var(--phase-blue);
    color: var(--phase-blue);
}

.phase-one .breadcrumbs {
    margin-block: 21px 19px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--phase-muted);
}

.phase-one h1.h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.35vw, 2rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.phase-one .catalog__header {
    gap: 10px 16px;
    margin-bottom: 24px;
    align-items: center;
}

.phase-one .catalog__qnty {
    padding: 4px 9px;
    border-radius: 5px;
    color: var(--phase-muted);
    background: #e4ecf7;
    white-space: nowrap;
}

.phase-one .catalog__body:has(> .sidebar):has(> .catalog__content) {
    display: grid;
    grid-template-columns: var(--phase-sidebar) minmax(0, 1fr);
    column-gap: var(--phase-gap);
    align-items: start;
}

.phase-one .catalog__body > .sidebar {
    width: 100%;
    min-width: 0;
    padding: 16px;
    margin: 0;
    border: 1px solid var(--phase-line);
    border-radius: 10px;
    background: #fff;
    overflow-wrap: anywhere;
}

.phase-one .catalog__body > .catalog__content {
    width: 100%;
    min-width: 0;
}

.phase-one .catalog__body .sidebar__item__search-field,
.phase-one .catalog-grid-search input {
    border: 1px solid var(--phase-line);
    border-radius: 6px;
    background: var(--phase-control);
}

.phase-one .catalog__body .sidebar__link.fw-500 {
    color: var(--phase-blue-dark);
}

.phase-one .catalog__body .catalog-root-tile,
.phase-one .catalog__body .subcategory-tile {
    color: var(--phase-ink);
    border-color: var(--phase-line);
    background-color: #fff;
}

.phase-one .catalog-root-tiles.mt-5,
.phase-one .subcategory-tiles.mt-5 {
    margin-top: 0 !important;
}

.phase-one-sidebar-toggle {
    display: none;
}

.phase-one .catalog__datatable {
    padding-top: 0;
}

.phase-one .catalog-filter-option .catalog-filter-checkbox {
    display: block;
    position: static;
    accent-color: var(--phase-blue);
}

.phase-one .catalog-filter-option input[type="checkbox"] + span {
    padding-left: 0;
}

.phase-one .catalog-filter-option input[type="checkbox"] + span::before,
.phase-one .catalog-filter-option input[type="checkbox"] + span::after {
    display: none;
}

.phase-one .catalog__filter:has(#events:empty):has(#events-clear.d-none) {
    display: none;
}

.phase-one .catalog-sort {
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid var(--phase-line);
    border-radius: 9px;
    background: #fff;
    gap: 7px 14px;
}

.phase-one .catalog-sort__panel {
    flex-wrap: wrap;
    gap: 5px 12px;
    font-size: 14px;
}

.phase-one .catalog-sort__link,
.phase-one .catalog-sort__label {
    margin-right: 0;
}

.phase-one .catalog-sort__label {
    color: var(--phase-muted);
}

.phase-one .catalog-sort__link.active,
.phase-one .catalog-direction__btn.active {
    color: var(--phase-blue);
}

.phase-one .catalog-direction {
    gap: 4px;
}

.phase-one .catalog-direction__btn.active {
    background: #e9f1ff;
    border-color: transparent;
    border-radius: 5px;
}

.phase-one .catalog-grid-search input {
    min-width: 0;
    background: #fff;
}

.phase-one .catalog-products-grid:not(.catalog-products-grid--list):not(.catalog-products-grid--compact) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.phase-one .catalog-offer--card {
    min-width: 0;
    border: 1px solid var(--phase-line);
    border-radius: 9px;
    color: var(--phase-ink);
    background: #fff;
    box-shadow: 0 2px 6px #12314808;
    overflow: hidden;
}

.phase-one .catalog-offer--card:hover {
    border-color: #a9c4f4;
}

.phase-one .catalog-offer--card .catalog-item__image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 9px;
    border-bottom: 1px solid var(--phase-line);
    background: #fff;
}

.phase-one .catalog-offer--card .catalog-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phase-one .catalog-offer .catalog-item__title {
    color: var(--phase-ink);
    font-size: 16px;
    font-weight: 550;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.phase-one .catalog-offer__attribute-label,
.phase-one .catalog-offer__supplier-label {
    color: var(--phase-muted);
}

.phase-one .catalog-offer__attribute-value {
    overflow-wrap: anywhere;
}

.phase-one .catalog-offer__footer {
    padding-top: 10px;
    border-top: 1px solid var(--phase-line);
}

.phase-one .catalog-item__price {
    color: var(--phase-ink);
    font-size: 19px;
    line-height: 1.2;
}

.phase-one .catalog-item__btn {
    border-radius: 6px;
}

.phase-one .catalog-offer--list {
    border-color: var(--phase-line);
    background: transparent;
}

.phase-one .catalog-offer--list .catalog-item__image {
    background: #fff;
    border-radius: 8px;
}

.phase-one .catalog-compact-wrap {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--phase-line);
    border-radius: 8px;
    background: #fff;
}

.phase-one .catalog-compact-table th {
    color: var(--phase-ink);
    background: #edf2f9;
}

.phase-one .catalog-compact-table td {
    min-width: 76px;
    border-color: var(--phase-line);
}

.phase-one .custom-modal-overlay {
    background: #102d4066;
}

.phase-one .custom-modal {
    outline: 1px solid var(--phase-line);
    border-radius: 13px;
    color: var(--phase-ink);
    box-shadow: 0 24px 70px #082b4b42;
}

.phase-one .product-card-title {
    color: var(--phase-ink);
    font-weight: 600;
    margin-right: 26px;
}

.phase-one .product-card-modal :is(.product-company, .product-param, .product-price) {
    color: var(--phase-ink);
}

.phase-one-home-top {
    padding-top: 28px;
}

.phase-one .phase-one-hero {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 18px;
    margin: 24px 0 19px;
}

.phase-one-hero a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 190px;
    padding: 24px 34px;
    border: 1px solid #f3e17c;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    color: var(--phase-ink);
    text-decoration: none;
}

.phase-one-hero a:hover {
    text-decoration: none;
}

.phase-one-hero h2 {
    margin: 0 0 9px;
    font-size: clamp(24px, 2.75vw, 36px);
    font-weight: 680;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.phase-one-hero p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.phase-one-hero .phase-one-hero__catalog {
    background-image: linear-gradient(90deg, #fff29b, #fff29bf2 28%, #fff29b55 60%, transparent 83%), url("warehouse.jpg");
}

.phase-one-hero .phase-one-hero__supplier {
    justify-content: flex-end;
    padding-inline: 24px;
    border-color: #34506d;
    color: #fff;
    background-image: linear-gradient(0deg, #0b2a49f2, #0b2a4914), url("pipe-warehouse.jpg");
}

.phase-one-hero__supplier h2 {
    font-size: 23px;
}

.phase-one-home-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 20px;
    margin-bottom: 30px;
}

.phase-one-home-action {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--phase-ink);
    font-size: 13px;
    line-height: 1.45;
}

.phase-one-home-action span {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    border: 1px solid var(--phase-line);
    border-radius: 50%;
    background: #fff;
}

.phase-one-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 18px;
}

.phase-one-section-title h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.3vw, 1.75rem);
    font-weight: 650;
    letter-spacing: -.02em;
}

.phase-one-section-title a {
    color: var(--phase-blue);
    font-size: 14px;
}

.phase-one-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 34px;
}

.phase-one-category {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    min-height: 86px;
    padding: 8px;
    gap: 9px;
    border: 1px solid var(--phase-line);
    border-radius: 8px;
    background: #fff;
    color: var(--phase-ink);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.phase-one-category:hover {
    border-color: #9ebdf2;
    color: var(--phase-blue-dark);
}

.phase-one-category img {
    width: 100%;
    height: 66px;
    object-fit: cover;
    border-radius: 5px;
}

.phase-one-home-search-slot:empty {
    display: none;
}

@media (min-width: 1000px) {
    .phase-one .header__right {
        grid-template-columns: minmax(0, 1fr) clamp(12.5rem, 22%, 17.5rem);
    }


    .phase-one--home .header__middle.mb-2 .header__right {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-start;
        gap: clamp(25px, 7vw, 150px);
    }

    .phase-one-home-search-slot {
        width: min(100%, 280px);
    }

    .phase-one--home .header__middle:not(.mb-2) .header__right {
        display: flex;
        justify-content: flex-end;
    }

    .phase-one--home .navigation__list {
        justify-content: center;
        padding-left: 0;
        gap: clamp(20px, 5vw, 65px);
    }
}

@media (max-width: 1100px) {
    .phase-one .container {
        width: calc(100% - 40px);
    }

    .phase-one-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .phase-one .catalog-products-grid:not(.catalog-products-grid--list):not(.catalog-products-grid--compact) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .phase-one .container {
        width: calc(100% - 32px);
    }

    .phase-one .header__top {
        display: none;
    }

    .phase-one .header__middle {
        gap: 8px 12px;
        padding-block: 5px;
    }

    .phase-one .header__middle.mb-2 {
        grid-template-columns: minmax(0, 1fr) auto;
        padding-top: 13px;
        margin-bottom: 0 !important;
    }

    .phase-one .header__middle.mb-2 .header__right {
        display: contents;
    }

    .phase-one .header__middle.mb-2 .header__basket--container {
        grid-column: 2;
        grid-row: 1;
        gap: 12px;
    }

    .phase-one .header__basket--container .header__basket > span,
    .phase-one .header__btn-auth > span {
        position: absolute;
        width: 1px;
        height: 1px;
        clip-path: inset(50%);
        overflow: hidden;
    }

    .phase-one .header__middle.mb-2 .header__search {
        grid-column: 1 / -1;
    }

    .phase-one .header__banner {
        height: auto;
        max-height: 52px;
        margin-block: 3px;
    }

    .phase-one .header__middle:not(.mb-2) {
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: start;
    }

    .phase-one .header__middle:not(.mb-2) .header__right {
        display: block;
    }

    .phase-one .header__middle:not(.mb-2) .header__basket--container {
        display: none;
    }

    .phase-one .header__btn-dropdown {
        height: 44px;
        padding-inline: 0;
    }

    .phase-one .header__btn-dropdown span {
        position: absolute;
        width: 1px;
        height: 1px;
        clip-path: inset(50%);
        overflow: hidden;
    }

    .phase-one .header__search {
        height: 44px;
    }

    .phase-one .header__search input {
        font-size: 15px;
    }

    .phase-one .header__search button {
        flex-basis: 42px;
    }

    .phase-one .navigation__list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-left: 0;
        gap: 4px;
    }

    .phase-one .navigation__item {
        display: flex;
        min-width: 0;
        margin: 0;
    }

    .phase-one .navigation__link {
        display: grid;
        place-items: center;
        width: 100%;
        min-width: 0;
        padding: 9px 2px 7px;
        text-align: center;
        white-space: normal;
        font-size: 12px;
        line-height: 1.2;
    }

    .phase-one .breadcrumbs {
        margin-block: 11px 13px;
        font-size: 12px;
    }

    .phase-one .catalog__header {
        margin-bottom: 12px;
    }

    .phase-one .catalog__qnty {
        margin-left: 0;
    }

    .phase-one .catalog__body:has(> .sidebar):has(> .catalog__content) {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .phase-one .catalog__body[data-sidebar-collapsed="true"] > .sidebar {
        display: none;
    }

    .phase-one-sidebar-toggle:not([hidden]) {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 40px;
        margin-bottom: 10px;
        padding: 6px 12px;
        border: 1px solid var(--phase-line);
        border-radius: 6px;
        background: var(--phase-control);
        color: var(--phase-ink);
    }

    .phase-one .catalog-sort {
        padding: 8px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .phase-one .catalog-sort__label {
        display: none;
    }

    .phase-one .catalog-grid-search {
        width: 100%;
        margin: 0;
        grid-row: 1;
        grid-column: 1 / -1;
    }

    .phase-one .catalog-grid-search input {
        width: 100%;
    }

    .phase-one .catalog-products-grid:not(.catalog-products-grid--list):not(.catalog-products-grid--compact) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .phase-one .catalog-offer--card .catalog-item__image {
        padding: 5px;
    }

    .phase-one .catalog-offer .catalog-item__title {
        font-size: 14px;
    }

    .phase-one .catalog-offer__attributes,
    .phase-one .catalog-offer__attribute {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .phase-one .catalog-item__price {
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    .phase-one .catalog-direction__btn {
        min-width: 36px;
    }

    .phase-one-home-top {
        padding-top: 18px;
    }

    .phase-one .phase-one-hero {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 16px;
    }

    .phase-one-hero a {
        min-height: 134px;
        padding: 18px 22px;
    }

    .phase-one-hero .phase-one-hero__supplier {
        min-height: 90px;
        padding: 14px 22px;
    }

    .phase-one-hero__supplier h2 {
        font-size: 20px;
    }

    .phase-one-home-actions,
    .phase-one-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .phase-one-category {
        grid-template-columns: minmax(32px, 38%) minmax(0, 1fr);
        min-height: 71px;
        font-size: 12px;
        gap: 6px;
    }

    .phase-one-category img {
        height: 50px;
    }

    .phase-one--home .statistic__row,
    .phase-one--home .tariff__row,
    .phase-one--home .about-project__description,
    .phase-one--home .saving__row,
    .phase-one--home .marketing-banner__inner {
        flex-wrap: wrap;
    }
}

/* Approved catalogue colours. The backdrop on the catalogue index follows the home reference. */
.phase-one.phase-one--catalog {
    --phase-bg: #f2f4f0;
    --phase-ink: #173b43;
    --phase-muted: #536762;
    --phase-blue: #2b4c63;
    --phase-blue-dark: #244258;
    --phase-line: #e3e7e0;
    --phase-control: #f6f7f4;
    color: #263d3d;
}
.phase-one.phase-one--catalog:has(.catalog-root-layout) {
    --phase-bg: #f7f8f5;
    --phase-ink: #132d39;
    --phase-line: #dee3dd;
    color: var(--phase-ink);
}
.phase-one--catalog .catalog__body > .sidebar,
.phase-one--catalog .catalog-sort { border-color: #e4e7e2; }
.phase-one--catalog:has(.catalog-root-layout) .catalog__body > .sidebar {
    background: transparent;
    border-color: var(--phase-line);
}
.phase-one--catalog .catalog__qnty { background: #e8ece4; }
.phase-one--catalog .catalog__body .sidebar__link.fw-500,
.phase-one--catalog .catalog-direction__btn.active,
.phase-one--catalog .catalog-direction__btn[aria-pressed="true"] {
    color: var(--phase-blue);
    background: #eaf1e6;
}
.phase-one--catalog .catalog-metal-tree :is(.catalog-metal-tree__toggle, .catalog-metal-tree__standalone) {
    color: #001d3a;
    text-decoration: none;
}

.phase-one--catalog .catalog-metal-tree__sublink {
    color: var(--phase-ink);
    text-decoration: none;
    border-radius: 4px;
}

.phase-one--catalog .catalog-metal-tree__sublink:hover {
    text-decoration: underline;
}

.phase-one--catalog .catalog-metal-tree__sublink.is-active {
    background: #edf3e9;
}

.phase-one--catalog .catalog-item :is(.catalog-item__option__link, .catalog-item__phone__label, .catalog-item__phone__number a) {
    color: #2f4f6a;
}

.phase-one--catalog .catalog-item :is(.catalog-item__option__link, .catalog-item__phone__label, .catalog-item__phone__number a):hover {
    text-decoration: underline;
}

.phase-one--catalog .catalog-offer--card { border-color: #e4e7e1; }
.phase-one--catalog .catalog-offer--card:hover { border-color: #3f735a; }
.phase-one--catalog .catalog-offer--card .catalog-item__image,
.phase-one--catalog .catalog-offer__footer { border-color: #eaede8; }
.phase-one--catalog .catalog-offer--list { background: transparent; }
.phase-one--catalog .catalog-compact-table th {
    background: #ecedea;
    border-color: #e1e4df;
}
.phase-one--catalog .catalog-compact-table td { border-color: #dee4da; }
.phase-one--catalog .catalog-compact-table tbody tr:nth-child(even) { background: #f3f4f2; }
.phase-one--catalog .catalog-compact-table tbody tr:hover { background: #f1f6ed; }
.phase-one--catalog :is(.catalog-item__btn, #addToCartButton) {
    background-color: var(--phase-blue);
    border-color: var(--phase-blue);
}
.phase-one--catalog :is(.catalog-item__btn, #addToCartButton):hover {
    background-color: var(--phase-blue-dark);
    border-color: var(--phase-blue-dark);
}
.phase-one--catalog .catalog :is(a, button, input, summary):focus-visible { outline-color: #708d76; }
@media (max-width: 650px) {
    .phase-one--catalog:has(.catalog-root-layout) .catalog__body > .sidebar { background: #fff; }
}
