@font-face {
    font-family: "BTitr";
    src: url("../fonts/TitrB.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: #f8fafb;
    color: #193348;
    font-family: Tahoma, sans-serif;
    line-height: 1.9;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid #ca9a46;
    outline-offset: 5px;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e3e9eb;
}

.header-inner {
    min-height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand,
h1,
h2,
h3,
.button {
    font-family: "BTitr", Tahoma, sans-serif;
    font-weight: normal;
}

.brand {
    color: #16695f;
    font-size: 28px;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 14px;
}

nav a:hover {
    color: #16756b;
}

.nav-account {
    padding: 8px 16px;
    border: 1px solid #d4e2de;
    border-radius: 10px;
}

.hero {
    padding: 88px 0;
    background:
        radial-gradient(circle at 15% 20%, #dcece5, transparent 45%),
        #edf4f1;
    border-bottom: 1px solid #dce7e1;
}

.hero-inner {
    text-align: center;
}

.eyebrow {
    color: #526e66;
    font-size: 14px;
}

h1 {
    margin: 8px 0 20px;
    color: #134e46;
    font-size: clamp(42px, 7vw, 70px);
    line-height: 1.5;
}

.hero-description {
    max-width: 660px;
    margin: 0 auto;
    color: #4c626a;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.button {
    display: inline-block;
    padding: 11px 24px;
    border: 1px solid #16695f;
    border-radius: 12px;
    background: #16695f;
    color: #fff;
    text-align: center;
    font-size: 21px;
}

.button:hover {
    background: #10564d;
}

.button-outline {
    color: #16695f;
    background: transparent;
}

.button-outline:hover {
    color: #fff;
}

.section {
    padding-top: 64px;
    padding-bottom: 64px;
}

h2 {
    margin-top: 0;
    font-size: 28px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    border: 1px solid #e0e7e9;
    border-radius: 18px;
    background: #fff;
}

.category {
    color: #16756b;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #edf6f2;
}

h3 {
    font-size: 23px;
    margin-bottom: 10px;
}

.service-card p {
    color: #62727e;
    font-size: 14px;
    margin-bottom: 26px;
}

.service-card .button {
    margin-top: auto;
    width: 100%;
}

.process-section {
    background: #eef2f5;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-inline-start: 24px;
}

.steps li::marker {
    color: #16756b;
    font-weight: bold;
}

.steps p {
    font-size: 14px;
    color: #62727e;
}

.site-footer {
    background: #183a36;
    color: #eff7f3;
    padding: 22px 0;
}

.site-footer h2 {
    font-size: 20px;
    margin: 0 0 6px;
}

.site-footer p {
    font-size: 14px;
    margin: 4px 0;
}

.copyright {
    margin-top: 10px;
    color: #b9cec5;
}

@media (max-width: 800px) {
    .header-inner {
        padding: 18px 0;
        flex-direction: column;
        gap: 14px;
    }

    nav {
        justify-content: center;
        gap: 14px;
    }

    .services-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .hero {
        padding: 52px 0;
    }

    .services-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.hero h1 {
    font-size: clamp(16px, 3.5vw, 42px);
    white-space: nowrap;
    line-height: 1.7;
    margin: 0 0 24px;
}

.site-header {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.site-header .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    min-height: 94px;
}

.site-header .brand {
    flex-shrink: 0;
    white-space: nowrap;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    flex: 1;
}

.main-navigation > a,
.main-navigation > span,
.services-menu > summary {
    font-size: 15px;
    white-space: nowrap;
}

.services-menu,
.header-search {
    position: relative;
}

.services-menu > summary,
.header-search > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
}

.services-menu > summary::-webkit-details-marker,
.header-search > summary::-webkit-details-marker {
    display: none;
}

.services-menu > summary {
    min-height: 56px;
    font-weight: 600;
}

.menu-arrow {
    transition: transform 0.2s;
}

.services-menu[open] .menu-arrow {
    transform: rotate(180deg);
}

.services-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 290px;
    max-height: min(650px, 70vh);
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 3px solid #16756b;
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 0 14px 35px #18304824;
    z-index: 30;
}

.services-dropdown li + li {
    border-top: 1px solid #edf0f2;
}

.services-dropdown a,
.services-dropdown .menu-pending {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.8;
}

.services-dropdown a:hover {
    background: #edf6f2;
    color: #146457;
}

.menu-pending,
.top-menu-pending {
    color: #687780;
    cursor: default;
}

.menu-pending small {
    flex-shrink: 0;
    font-size: 10px;
    color: #687780;
}

.header-search > summary {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #16695f;
}

.header-search > summary:hover {
    background: #edf6f2;
}

.header-search-form {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 330px;
    padding: 18px;
    border: 1px solid #e0e7e9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 35px #18304824;
    z-index: 40;
}

.header-search-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.search-fields {
    display: flex;
    gap: 8px;
}

.search-fields input {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.header-search-form button {
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    background: #16695f;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.site-header .nav-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
    white-space: nowrap;
    font-size: 14px;
}

.site-header summary:focus-visible,
.search-fields input:focus-visible,
.header-search-form button:focus-visible {
    outline: 3px solid #ca9a46;
    outline-offset: 3px;
}

.services-filter-summary a {
    margin-inline-start: 12px;
    color: #146457;
    text-decoration: underline;
}

@media (max-width: 1050px) {
    .site-header .header-inner {
        position: relative;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 0;
    }

    .main-navigation {
        order: 4;
        flex: 1 0 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .header-search {
        position: static;
    }

    .header-search-form {
        top: 70px;
        right: 0;
        width: min(330px, 100%);
    }
}

@media (max-width: 540px) {
    .site-header .brand {
        font-size: 23px;
    }

    .site-header .nav-account {
        padding: 8px 10px;
        font-size: 13px;
    }

    .main-navigation > a,
    .main-navigation > span,
    .services-menu > summary {
        font-size: 13px;
    }

    .services-menu {
        position: static;
    }

    .services-dropdown {
        top: 100%;
        right: 0;
        width: 100%;
    }

    .services-dropdown a,
    .services-dropdown .menu-pending {
        font-size: 14px;
    }
}

@media (min-width: 1051px) {
    .site-header .main-navigation {
        justify-content: flex-end;
    }

    .site-header .nav-account {
        margin-inline-start: 0;
    }
}

.hero h1 {
    max-width: 100%;
    margin: 0 auto 12px;
    font-size: clamp(25px, 3.2vw, 42px);
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: break-word;
}

.hero-subtitle {
    margin: 0 auto 18px;
    color: #16756b;
    font-size: clamp(17px, 2vw, 23px);
    font-weight: 700;
}

.hero-description {
    max-width: 760px;
    margin: 0 auto;
    line-height: 2;
    text-align: center;
}

@media (max-width: 540px) {
    .hero h1 {
        font-size: 25px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 2.1;
        text-align: right;
    }
}
