:root {
    --primary: #2f7da3;
    --primary-dark: #215c78;
    --text: #333333;
    --muted: #6b6b6b;
    --line: #dddddd;
    --footer: #2c2c2c;
    --page-width: 1050px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    border-top: 6px solid #dce7ed;
    background: #b77b4d url("../images/image1.jpg") center top / cover fixed;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.site {
    display: flex;
    width: min(calc(100% - 48px), var(--page-width));
    min-height: calc(100vh - 6px);
    margin: 0 auto;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 0 18px rgb(0 0 0 / 16%);
}

.site > main {
    flex: 1 0 auto;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 0 30px;
    background: #ffffff;
    border-bottom: 17px solid var(--primary);
}

.brand {
    display: inline-flex;
    flex: 0 0 310px;
    align-items: center;
}

.brand img {
    display: block;
    width: 285px;
    height: 44px;
    object-fit: contain;
    object-position: left center;
}

.nav-toggle {
    display: none;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #333333;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.main-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: stretch;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    position: relative;
    display: flex;
    min-height: 72px;
    align-items: center;
    padding: 0 13px;
    color: #333333;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a:focus-visible,
.main-nav > ul > li > a[aria-current="page"] {
    color: var(--primary);
}

.main-nav > ul > li > a[aria-current="page"]::before {
    position: absolute;
    top: 0;
    right: 10px;
    left: 10px;
    height: 2px;
    background: var(--primary);
    content: "";
}

.dropdown li {
    display: block;
    width: 100%;
}

.main-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;

    display: none;
    width: 200px;
    margin: 0;
    padding: 0;

    background: #ffffff;
    border: 1px solid #e1e1e1;
    box-shadow: 0 8px 16px rgb(0 0 0 / 18%);
    list-style: none;
}

.main-nav .dropdown li {
    display: block;
    width: 100%;
    margin: 0;
}

.main-nav .dropdown a {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;

    border-bottom: 1px solid #eeeeee;
    color: #333333;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav .dropdown li:last-child a {
    border-bottom: 0;
}

.main-nav .dropdown a:hover,
.main-nav .dropdown a:focus-visible {
    background: #f2f6f8;
    color: var(--primary);
}

.main-nav .has-dropdown:hover > .dropdown,
.main-nav .has-dropdown:focus-within > .dropdown,
.main-nav .has-dropdown.is-open > .dropdown {
    display: block;
}

.hero {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.hero img {
    display: block;
    width: 100%;
    aspect-ratio: 960 / 288;
    object-fit: cover;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    transform: translateY(-50%);
    border: 2px solid rgb(255 255 255 / 40%);
    border-radius: 50%;
    background: rgb(0 0 0 / 28%);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    user-select: none;
}

.hero-arrow.left {
    left: 14px;
}

.hero-arrow.right {
    right: 14px;
}

.brand-section {
    padding: 48px 60px 58px;
    background: var(--primary);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 54px;
    align-items: center;
}

.brand-card {
    display: grid;
    min-height: 84px;
    place-items: center;
    padding: 8px;
    border-radius: 3px;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease;
}

.brand-card.featured {
    min-height: 138px;
    background: #ffffff;
}

.brand-card:hover,
.brand-card:focus-visible {
    transform: translateY(-3px);
    background: rgb(255 255 255 / 10%);
    outline: none;
}

.brand-card.featured:hover,
.brand-card.featured:focus-visible {
    background: #ffffff;
}

.brand-card img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.brand-card.featured img {
    max-height: 120px;
}

.page-hero {
    min-height: 112px;
    padding: 30px;
    background: var(--primary);
    color: #ffffff;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 400;
}

.content {
    padding: 46px 28px 70px;
}

.content h2 {
    margin: 0 0 12px;
    font-size: clamp(29px, 4vw, 39px);
    font-weight: 400;
}

.content-rule {
    margin: 0 0 32px;
    border: 0;
    border-top: 1px solid var(--line);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 48px;
    align-items: start;
}

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

.offer-card {
    display: grid;
    grid-template-rows: 165px auto;
    color: #203d4e;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease;
}

.offer-card:hover,
.offer-card:focus-visible {
    transform: translateY(-4px);
    outline: none;
}

.offer-card img {
    width: 100%;
    height: 165px;
    object-fit: contain;
}

.offer-card span {
    padding-top: 10px;
    font-size: 18px;
    text-transform: uppercase;
}

.unior-card {
    display: block;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
}

.unior-card img {
    display: block;
    width: 100%;
    max-height: 230px;
    object-fit: contain;
}

.unior-card strong {
    display: block;
    margin-top: 12px;
    color: #203d4e;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
}

.text-content {
    max-width: 900px;
}

.text-content p {
    margin: 0 0 15px;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.contact-list a {
    color: var(--primary);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.map-frame {
    display: block;
    width: 100%;
    min-height: 540px;
    border: 0;
}

.breadcrumb {
    padding: 8px 28px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer {
    margin-top: auto;
    background: var(--footer);
    color: #ffffff;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 46px;
    padding: 45px 28px 42px;
}

.footer-column h2 {
    margin: 0 0 18px;
    font-size: 21px;
    font-weight: 400;
}

.footer-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list a {
    color: #4ca3d0;
    text-decoration: none;
}

.footer-list a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 13px 28px;
    background: #252525;
    color: #ffffff;
    font-size: 12px;
}

.footer-bottom a {
    color: #4ca3d0;
    text-decoration: none;
}

@media (max-width: 900px) {
    .site {
        width: min(calc(100% - 24px), var(--page-width));
    }

    .site-header {
        min-height: 68px;
        padding: 8px 18px;
    }

    .brand {
        flex: 1 1 auto;
    }

    .brand img {
        max-width: 285px;
    }

    .nav-toggle {
        display: block;
        width: 42px;
        height: 38px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        background: #ffffff;
        box-shadow: 0 10px 18px rgb(0 0 0 / 18%);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        display: block;
    }

    .main-nav a {
        min-height: 44px;
        padding: 0 20px;
        border-bottom: 1px solid #eeeeee;
    }

    .dropdown {
        position: static;
        width: 100%;
        border: 0;
        box-shadow: none;
    }

    .dropdown a {
        padding-left: 38px;
        background: #f7f7f7;
    }

    .brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .offer-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    body {
        border-top-width: 4px;
        background: #ffffff;
    }

    .site {
        width: 100%;
        min-height: calc(100vh - 4px);
        box-shadow: none;
    }

    .site-header {
        border-bottom-width: 10px;
    }

    .brand img {
        width: 240px;
        height: auto;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 23px;
    }

    .brand-section {
        padding: 36px 22px 44px;
    }

    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .brand-card.featured {
        min-height: 105px;
    }

    .content {
        padding: 38px 20px 55px;
    }

    .offer-grid,
    .offer-grid.four {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .offer-card {
        grid-template-rows: 190px auto;
    }

    .offer-card img {
        height: 190px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 38px 22px;
    }

    .footer-bottom,
    .breadcrumb {
        padding-right: 22px;
        padding-left: 22px;
    }

    .map-frame {
        min-height: 430px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
