@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap");

:root {
    --bg: #f5f6f8;
    --paper: #ffffff;
    --text: #101828;
    --muted: #5f6877;
    --line: #d9dee7;
    --dark: #0f172a;
    --blue: #1f4e79;
    --blue-dark: #163a5b;
    --soft: #eef1f5;
    --green: #3b6256;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

body.is-locked {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: rgba(245, 246, 248, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

main {
    padding-top: 72px;
}

.header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    position: relative;
    z-index: 31;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.logo__mark {
    flex: 0 0 68px;
    width: 225px;
    object-fit: contain;
    border-radius: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 15px;
}

.nav a:hover {
    color: var(--text);
}

.nav__button {
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.nav__button:hover {
    background: var(--blue-dark);
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 31;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 8px;
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.menu-toggle span:nth-child(1) {
    top: 13px;
}

.menu-toggle span:nth-child(2) {
    top: 22px;
}

.menu-toggle span:nth-child(3) {
    top: 31px;
}

.menu-toggle.is-open span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.button:hover {
    background: var(--blue-dark);
}

.button--secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}

.button--secondary:hover {
    background: var(--soft);
}

.button--compact {
    min-width: 180px;
}

.hero {
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.74) 45%, rgba(15, 23, 42, 0.38) 100%),
        url("../image/headerPhoto.jpg") center / cover no-repeat;
    color: #fff;
}

.hero__grid {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 72px);
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

.hero h1 {
    max-width: 1120px;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 24px;
}

.hero__text {
    max-width: 760px;
    color: #d3d8e2;
    font-size: 19px;
    margin-bottom: 34px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__facts {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: center;
    max-width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 24px;
}

.hero__fact strong {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.hero__fact {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero__fact i {
    flex: 0 0 44px;
    width: 44px;
    color: #d8e8f7;
    font-size: 32px;
    line-height: 1;
    text-align: center;
}

.hero__fact span {
    color: #aeb7c7;
    font-size: 14px;
}

.section {
    padding: 92px 0;
}

.section h2 {
    max-width: 790px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 22px;
}

.section__lead {
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 42px;
}

.section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.service {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
    gap: 56px;
    align-items: stretch;
}

.service__text {
    display: grid;
    gap: 24px;
}

.service__lead {
    margin-bottom: 0;
}

.service__block {
    padding-top: 0;
}

.service__block p,
.service__block li {
    color: var(--muted);
    font-size: 16px;
}

.service__list {
    list-style: none;
    display: grid;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.service__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.service__list i {
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
}

.service__summary {
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef1f5;
    color: var(--text);
    font-weight: 600;
}

.service__image {
    height: 100%;
    min-height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--soft);
}

.service__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.benefits {
    background: #fff;
    border-top: 1px solid var(--line);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.benefits__actions {
    margin-top: 28px;
}

.benefit {
    min-height: 200px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.benefit__number {
    display: inline-block;
    color: #9aa4b2;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
}

.benefit h3 {
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.benefit p {
    color: var(--muted);
    font-size: 15px;
}

.workflow {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.workflow__grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
    gap: 52px;
    align-items: stretch;
}

.workflow__image {
    position: relative;
    height: clamp(460px, 42vw, 520px);
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--soft);
}

.workflow__image img {
    height: 100%;
    object-fit: cover;
}

.workflow__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.workflow__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.28));
}

.workflow__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.steps {
    position: relative;
    display: grid;
    gap: 0;
}

.steps::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 42px;
    bottom: 42px;
    width: 1px;
    background: var(--line);
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    padding: 16px 0;
}

.step__number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.step__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0;
}

.step__text {
    color: var(--muted);
    font-size: 15px;
}

.workflow__summary {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
}

.request {
    background: var(--dark);
    color: #fff;
    padding: 92px 0;
}

.request__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
    gap: 56px;
    align-items: start;
}

.request h2 {
    max-width: 680px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 20px;
}

.request__text {
    color: #c8d0dd;
    font-size: 18px;
    max-width: 620px;
}

.contacts {
    margin-top: 38px;
    display: grid;
    gap: 18px;
    color: #c8d0dd;
    font-size: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 28px;
}

.contacts strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

.form {
    background: #fff;
    color: var(--text);
    border-radius: 8px;
    padding: 28px;
    animation: formFadeIn 0.45s ease both;
}

.form__title {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.form__text {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 18px;
}

.form__grid {
    display: grid;
    gap: 13px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px 13px;
    font: inherit;
    color: var(--text);
    background: #fbfcfe;
    outline: none;
    transition: 0.2s ease;
}

.field__note {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.file-upload {
    display: grid;
    gap: 8px;
    width: 100%;
    min-height: 62px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fbfcfe;
    cursor: pointer;
    transition: 0.2s ease;
}

.file-upload__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.file-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-upload__button {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.file-upload__name {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload__clear {
    display: none;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 0;
    background: transparent;
    color: #3b6256;
    cursor: pointer;
    font-size: 16px;
}

.file-upload__clear:hover {
    color: #3b6256;
}

.file-upload.is-selected {
    border-color: #3b6256;
    background: #eef7f3;
    box-shadow: 0 0 0 4px rgba(59, 98, 86, 0.12);
}

.file-upload.is-selected .file-upload__button {
    background: #3b6256;
    color: #fff;
}

.file-upload.is-selected .file-upload__name {
    color: var(--text);
    font-weight: 600;
}

.file-upload.is-selected .file-upload__clear {
    display: grid;
}

.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px 13px;
    font: inherit;
    color: var(--text);
    background: #fbfcfe;
    outline: none;
    min-height: 96px;
    max-height: 140px;
    resize: vertical;
}

.field--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31, 78, 121, 0.12);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.checkbox input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--blue);
}

.checkbox a {
    color: var(--blue);
    font-weight: 700;
    text-underline-offset: 3px;
}

.form .button {
    width: 100%;
    margin-top: 4px;
}

.form .button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.form__hint {
    margin-top: -2px;
    color: var(--muted);
    font-size: 13px;
}

.form__status {
    margin: 0;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.form__status:empty {
    display: none;
}

.form__status:not(:empty) {
    display: block;
    margin-bottom: 2px;
}

.form__status[data-type="error"] {
    color: #b42318;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal.is-open .form {
    animation: formModalIn 0.3s ease both;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.68);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.modal.is-open .modal__overlay {
    opacity: 1;
}

.modal__dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.footer {
    padding: 24px 0;
    background: #0b1220;
    color: #99a3b3;
    font-size: 14px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
}

.footer__copy {
    display: grid;
    gap: 4px;
}

.footer__tagline {
    color: #7f8998;
}

.footer a {
    justify-self: end;
    color: #c8d0dd;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer a:hover {
    color: #fff;
}

.text-page {
    min-height: 100vh;
    padding: 72px 0;
    background: var(--bg);
}

.text-page__inner {
    max-width: 820px;
}

.text-page__back {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--blue);
    font-weight: 700;
}

.text-page h1 {
    margin-bottom: 24px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.text-page p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 17px;
}

.text-page a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-section {
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.text-section h2 {
    margin-bottom: 18px;
    color: var(--text);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.text-section ul {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding-left: 22px;
    color: var(--muted);
    font-size: 17px;
}

.text-details {
    margin: 18px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.text-details p {
    margin-bottom: 10px;
}

.text-details p:last-child {
    margin-bottom: 0;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes formModalIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
