:root {
    --cma-blue: #6193d4;
    --cma-steel: #788792;
    --cma-ink: #687782;
    --cma-line: #98adbb;
    --cma-card: #f6f6f8;
    --cma-texture: repeating-linear-gradient(135deg, #64646408 0 1px, transparent 1px 4px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: #fff;
    color: var(--cma-steel);
    font: 16px/1.4 "PT Sans", sans-serif;
    letter-spacing: .4px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Noto Sans", sans-serif; color: var(--cma-ink); line-height: 1.15; }
a { color: var(--cma-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid #235890; outline-offset: 4px; }

.shell { width: min(100%, 1240px); padding-inline: 16px; margin-inline: auto; }

.site-surface {
    background: var(--cma-texture), url("../images/background.jpg") center / cover no-repeat;
}

.site-nav {
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 35px;
}

.brand, .custom-logo-link { display: inline-flex; flex: none; align-items: center; }
.brand img, .custom-logo { display: block; width: 108px; height: auto; }
.site-nav nav { margin-left: auto; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: #718997; font-size: 14px; text-transform: lowercase; }
.nav-links a:hover, .nav-links .current-menu-item > a { color: #3e71ab; }

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 0;
    background: var(--cma-blue);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 160ms ease;
}
.button:hover { background: #4e83c3; color: #fff; text-decoration: none; }
.callback { min-height: 32px; width: 175px; padding: 6px 12px; font-size: 15px; line-height: 20px; }

.age-label { color: #536470; font: 700 13px/1 "Noto Sans", sans-serif; white-space: nowrap; }
.site-nav > .age-label { position: absolute; inset-inline-end: 16px; inset-block-end: 3px; }
.hero { min-height: 657px; padding-bottom: 66px; }
.hero-grid { display: grid; grid-template-columns: 1fr 310px; align-items: start; gap: 35px; padding-top: 49px; }
.hero h1 { text-transform: uppercase; font-size: clamp(26px, 3vw, 40px); margin: 5px 0 0; letter-spacing: .25px; }
.hero h1 span { color: var(--cma-blue); }

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 235px));
    gap: 21px 15px;
    margin: 42px 0 0;
    padding: 0;
    list-style: none;
}
.hero-features li { display: flex; min-height: 54px; align-items: center; gap: 25px; font-size: 17px; line-height: 1.16; }
.hero-features img { width: 55px; height: 54px; flex: none; object-fit: contain; }
.hero-features span { max-width: 140px; }
.hero-features li:first-child span, .hero-features li:nth-child(2) span { max-width: 120px; }

.delivery {
    width: max-content;
    max-width: 100%;
    margin: 103px 0 0;
    padding-bottom: 3px;
    border-bottom: 6px solid var(--cma-blue);
}
.hero-contact { display: flex; flex-direction: column; align-items: center; }
.vessel { display: block; width: 210px; height: auto; margin: 0 auto 33px; }

.contact-form { display: grid; width: min(100%, 310px); gap: 10px; }
.phone-field input {
    width: 100%;
    height: 54px;
    border: 2px solid var(--cma-line);
    border-radius: 0;
    background: transparent;
    padding: 0 13px;
    color: var(--cma-ink);
    text-align: center;
    font: 18px Verdana, sans-serif;
}
.phone-field input::placeholder { color: var(--cma-steel); }
.contact-form > .button { padding-block: 13px; min-height: 51px; font-size: 18px; }
.form-consents { display: grid; gap: 5px; }
.consent { display: flex; gap: 7px; align-items: flex-start; font-size: 11px; line-height: 1.35; color: #536470; }
.consent input { flex: none; margin: 1px 0 0; accent-color: #3b73b4; }
.consent a { color: #375f88; text-decoration: underline; text-underline-offset: 2px; }

.catalog-section { padding-block: 75px 60px; text-align: center; }
.section-heading {
    display: table;
    margin: 0 auto;
    padding-top: 10px;
    border-top: 2px solid var(--cma-ink);
    color: var(--cma-ink);
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

.category-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 1088px;
    margin: 46px auto 54px;
    background: #f2f5f6;
}
.category-tabs a {
    position: relative;
    display: flex;
    min-height: 81px;
    padding: 12px 22px;
    align-items: center;
    justify-content: center;
    color: var(--cma-steel);
    font-size: 16px;
    line-height: 1.2;
}
.category-tabs a:hover { background: #e7edf0; text-decoration: none; }
.category-tabs [aria-current="true"] { background: var(--cma-line); color: #fff; }
.category-tabs [aria-current="true"]::after {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 18px solid transparent;
    border-top: 8px solid var(--cma-line);
    border-bottom: 0;
    content: "";
}

.category-panel { margin: 0 auto 30px; }
.has-carousel .category-panel:not([hidden]) .product-shelf {
    animation: product-reveal .5s cubic-bezier(.39, .575, .565, 1) both;
}
@keyframes product-reveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-shelf { position: relative; }
.product-track, .product-grid { gap: 20px; }
.product-track {
    display: flex;
    width: 90%;
    margin-inline: auto;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.product-track::-webkit-scrollbar { display: none; }
.product-track .product-card { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    background: var(--cma-card);
    text-align: start;
}
.product-image {
    display: grid;
    justify-items: center;
    align-items: center;
    min-height: 258px;
    padding: 30px 12px 20px;
}
.product-image img { width: 130px; max-width: 100%; height: 204px; object-fit: contain; }
.product-copy { flex: 1; padding: 0 21px 13px; }
.product-kind { margin: 4px 0 3px; font-size: 14px; }
.product-copy h3 { margin: 0; font-size: 18px; font-weight: 700; }
.product-copy h3 a { color: inherit; }
.product-description { min-height: 69px; margin: 12px 0 0; font-size: 12px; line-height: 18px; }
.product-description a { white-space: nowrap; }
.product-actions .button { width: 100%; justify-content: flex-start; padding-left: 23px; }
.document-link {
    min-height: 40px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--cma-line);
    padding: 7px 20px;
    color: #738c9d;
    font-size: 14px;
}
.document-link img { object-fit: contain; }
.shelf-arrow {
    position: absolute;
    inset-block-start: 50%;
    width: 5%;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}
.shelf-arrow.previous { inset-inline-start: 0; }
.shelf-arrow.next { inset-inline-end: 0; }
.shelf-arrow::after {
    display: block;
    width: 30px;
    height: 30px;
    margin-inline: auto;
    border: solid var(--cma-steel);
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
    content: "";
}
.shelf-arrow.previous::after { transform: rotate(225deg); }
.category-link { display: inline-block; margin-top: 20px; font-size: 14px; text-decoration: underline; }

.contacts-section { padding-block: 75px 28px; }
.contact-details {
    width: max-content;
    max-width: 100%;
    min-width: min(756px, 100%);
    margin: 69px auto 37px;
    padding: 28px clamp(20px, 10vw, 150px) 35px;
    border-block: 1px solid var(--cma-steel);
    list-style: none;
}
.contact-details li { display: flex; align-items: center; gap: 16px; margin: 14px 0; }
.contact-details img { flex: none; }
.contact-details a { color: #627986; }
.clock-icon { width: 18px; height: 18px; flex: none; position: relative; border: 1px solid var(--cma-blue); border-radius: 50%; margin-inline: 5px; }
.clock-icon::before { position: absolute; inset: 3px auto auto 7px; width: 5px; height: 5px; border: solid var(--cma-blue); border-width: 0 0 1px 1px; content: ""; }
.contact-page-form { width: min(100%, 380px); margin-inline: auto; }
.site-footer .contacts-section { background: none; padding-bottom: 0; }
.site-footer .contact-details { margin-bottom: 86px; padding-block: 20px 30px; }
.footer-row, .footer-legal { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.footer-row { min-height: 80px; }
.footer-legal { justify-content: center; flex-wrap: wrap; padding-block: 12px 22px; font-size: 13px; color: #52616b; }
.footer-legal a { color: #395f85; text-decoration: underline; }

.page-content { max-width: 1000px; padding-block: 58px 82px; color: #52616b; }
.page-content article > h1 { font-size: clamp(25px, 4vw, 38px); }
.page-content :is(h2, h3) { margin-top: 1.65em; }
.breadcrumbs, .cross-links { display: flex; flex-wrap: wrap; gap: 8px 18px; text-align: start; }
.breadcrumbs { margin-bottom: 28px; font-size: 14px; }
.breadcrumbs > a::after { margin-left: 14px; color: var(--cma-line); content: "/"; }
.cross-links { justify-content: center; margin-block: 36px 0; }
.catalog-section > .product-grid { margin-top: 35px; }
.single-product { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); align-items: start; gap: 36px; }
.single-product-image { background: var(--cma-card); display: grid; justify-items: center; padding: 35px 12px; }
.single-product h1 { margin: 7px 0; }
.single-product .document-link { max-width: 360px; }
.single-product .button { margin-top: 16px; }
.related-products { margin-top: 65px; }
.related-products .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.contact-dialog {
    width: min(calc(100% - 30px), 438px);
    max-height: calc(100dvh - 30px);
    padding: 25px;
    color: var(--cma-steel);
    background: #fff;
    border: 1px solid var(--cma-line);
}
.contact-dialog::backdrop { background: #18263288; }
.contact-dialog .contact-form { margin-inline: auto; }
.contact-dialog .consent { font-size: 13px; }
.close-dialog { position: absolute; top: 6px; right: 10px; border: 0; background: transparent; font-size: 27px; cursor: pointer; color: var(--cma-ink); }
.contact-dialog h2 { font-size: 21px; padding-right: 15px; }
.cookie-notice {
    position: fixed;
    z-index: 10;
    inset-inline-end: 16px;
    inset-block-end: max(16px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(430px, calc(100% - 32px));
    padding: 12px 14px;
    color: #52616b;
    background: #fff;
    border: 1px solid var(--cma-line);
    box-shadow: 0 4px 22px #31435628;
    font-size: 13px;
}
.cookie-notice p { margin: 0; }
.cookie-notice .button { flex: none; min-height: 35px; padding: 7px 14px; font-size: 14px; }
.request-notice { padding-block: 8px; color: #2f4d67; background: #edf4fb; }
.skip-link, .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}
.skip-link:focus { width: auto; height: auto; padding: 12px; clip-path: none; background: #fff; z-index: 11; }

@media (min-width: 1041px) {
    .vessel { transform: translateX(-26px); }
}

@media (max-width: 1040px) {
    .hero-grid { grid-template-columns: 1fr 270px; }
    .hero-features { margin-top: 30px; }
    .hero-features li { gap: 14px; }
    .hero-features span { font-size: 15px; }
    .delivery { margin-top: 70px; }
    .vessel { width: 170px; }
    .product-track .product-card { flex-basis: calc((100% - 40px) / 3); }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
    .site-nav { flex-direction: column; justify-content: center; gap: 10px; padding-block: 15px; }
    .site-nav nav { margin: 0; }
    .nav-links { gap: 14px; }
    .callback { width: 154px; }
    .site-nav > .age-label { inset-block-start: 18px; inset-block-end: auto; }
    .hero { padding-bottom: 28px; }
    .hero-grid { grid-template-columns: 1fr; gap: 42px; padding-top: 29px; }
    .hero h1 { text-align: center; font-size: clamp(21px, 6.2vw, 29px); margin: 0 auto; letter-spacing: .15px; }
    .hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 7px; margin-top: 39px; }
    .hero-features li { min-height: 52px; gap: 16px; }
    .hero-features img { width: 49px; height: 49px; }
    .hero-features span { font-size: 13px; }
    .delivery { margin: 42px auto 0; }
    .vessel { margin-bottom: 32px; }
    .hero-contact .contact-form { max-width: 270px; }
    .phone-field input { height: 49px; font-size: 16px; }
    .contact-form > .button { min-height: 43px; padding-block: 10px; font-size: 15px; }
    .consent { font-size: 10px; }
    .catalog-section { padding-block: 72px 45px; }
    .section-heading { font-size: 21px; }
    .category-tabs { width: 90%; grid-template-columns: 1fr; margin: 48px auto 41px; }
    .category-tabs a { min-height: 55px; padding: 9px 16px; font-size: 13px; }
    .category-tabs br { display: none; }
    .product-track { width: 90%; }
    .product-track .product-card { flex-basis: 100%; }
    .product-grid, .related-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-shelf .shelf-arrow::after { width: 23px; height: 23px; }
    .contacts-section { padding-top: 75px; }
    .contact-details { margin-top: 69px; padding-inline: 18px; }
    .footer-row { flex-direction: column; gap: 30px; padding-block: 15px 20px; }
    .footer-legal { gap: 10px 15px; }
    .single-product { grid-template-columns: 1fr; gap: 20px; }
    .single-product-image { min-height: 180px; padding: 16px; }
    .single-product-image img { width: 98px; height: 153px; }
}

@media (max-width: 440px) {
    .product-grid, .related-products .product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .button { transition: none; }
    .has-carousel .category-panel:not([hidden]) .product-shelf { animation: none; }
}
