:root {
    --color-navy: #0b2345;
    --color-blue: #254f85;
    --color-ink: #112b4b;
    --color-muted: #61738a;
    --color-ice: #c7daee;
    --color-line: #dce4ed;
    --color-light: #f3f6fa;
    --color-white: #ffffff;
    --color-error: #ab3348;

    --radius-control: 8px;
    --radius-card: 12px;

    --container: 1280px;
    --gutter: 24px;
    --section-y: 24px;

    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (min-width: 1024px) {
    :root {
        --gutter: 80px;
        --section-y: 80px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --gutter: 40px;
        --section-y: 56px;
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.35;
    color: var(--color-ink);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

body.is-locked {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

h1,
h2,
h3,
p {
    margin: 0;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Типографика */

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-blue);
    text-transform: uppercase;
}

.h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy);
}

.lead {
    font-size: 16px;
    line-height: 1.35;
    color: var(--color-muted);
}

.link-more {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-navy);
    transition: color .15s;
}

.link-more:hover {
    color: var(--color-blue);
}

.link-more--blue {
    color: var(--color-blue);
}

.link-more--blue:hover {
    color: var(--color-navy);
}

@media (min-width: 1024px) {
    .h2 {
        font-size: 40px;
        line-height: 1.35;
    }
}

/* Кнопка (UI kit: Default / Hover / Disabled) */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 56px;
    padding: 0 32px;
    border: 0;
    border-radius: var(--radius-control);
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s;
}

.btn:hover,
.btn:focus-visible {
    background: var(--color-blue);
}

.btn:disabled,
.btn.is-loading {
    background: var(--color-muted);
    cursor: default;
}

.btn img {
    width: 20px;
    height: 20px;
}

.btn--light {
    background: var(--color-white);
    color: var(--color-navy);
}

.btn--light:hover,
.btn--light:focus-visible {
    background: var(--color-ice);
}

.btn--block {
    width: 100%;
}

/* Поле (UI kit: Default / Focus / Error) */

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field__label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-ink);
}

.field__input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-control);
    background: var(--color-white);
    color: var(--color-ink);
    font-size: 16px;
    line-height: 1.35;
    outline: none;
    transition: border-color .15s;
}

.field__input::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

.field__input:focus {
    border-color: var(--color-navy);
}

textarea.field__input {
    display: block;
    min-height: 53px;
    resize: none;
    overflow: hidden;
}

.field__error {
    display: none;
    font-size: 12px;
    line-height: 1.35;
    color: var(--color-error);
}

.field.has-error .field__input {
    border-color: var(--color-error);
}

.field.has-error .field__error {
    display: block;
}

.form-error {
    font-size: 14px;
    color: var(--color-error);
}

.form-error:empty {
    display: none;
}

/* Согласие */

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--color-muted);
    cursor: pointer;
}

.consent input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid var(--color-muted);
    border-radius: 3px;
    appearance: none;
    background: var(--color-white) center / 12px no-repeat;
    cursor: pointer;
}

.consent input:checked {
    border-color: var(--color-navy);
    background-color: var(--color-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.17 10l3.33 3.33L15.83 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.consent a {
    text-decoration: underline;
}

.consent-wrap.has-error .consent input {
    border-color: var(--color-error);
}

.consent-wrap .field__error {
    margin-top: 6px;
}

.consent-wrap.has-error .field__error {
    display: block;
}

/* Шапка */

.header {
    position: relative;
    z-index: 20;
    background: var(--color-navy);
    color: var(--color-white);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.brand {
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    width: 234px;
}

.brand__drop {
    width: 48px;
    height: 66.4px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 174px;
}

.brand__lettering {
    width: 174px;
    height: 38.8px;
}

.brand__descriptor {
    font-size: 9px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-white);
}

.header__nav {
    display: none;
}

.header__nav ul,
.mobile-nav ul,
.footer__links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header__nav ul {
    display: flex;
    gap: 32px;
}

.header__nav a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: color .15s;
}

.header__nav a:hover {
    color: var(--color-ice);
}

.header__contact {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 210px;
    line-height: 1.4;
    white-space: nowrap;
}

.header__phone {
    font-size: 16px;
    font-weight: 700;
}

.header__cta {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-ice);
}

.header__cta:hover {
    color: var(--color-white);
}

.header__burger {
    display: flex;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.header__burger img {
    width: 24px;
    height: 24px;
}

.mobile-nav {
    display: none;
    padding: 8px var(--gutter) 32px;
    border-top: 1px solid rgba(220, 228, 237, .2);
}

.header.is-open .mobile-nav {
    display: block;
}

.mobile-nav li + li {
    margin-top: 16px;
}

.mobile-nav a {
    font-size: 18px;
    font-weight: 600;
}

.mobile-nav__contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
}

@media (min-width: 1024px) {
    .header__inner {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .header__nav,
    .header__contact {
        display: flex;
    }

    .header__burger,
    .header.is-open .mobile-nav {
        display: none;
    }
}

/* Секции */

.section {
    padding: var(--section-y) 0;
}

.section--light {
    background: var(--color-light);
}

.section--navy {
    background: var(--color-navy);
    color: var(--color-white);
}

.section--navy .eyebrow,
.section--navy .lead {
    color: var(--color-ice);
}

.section--navy .h2 {
    color: var(--color-white);
}

.section__head {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section__stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Hero */

.hero {
    padding: 32px 0 40px;
    background: var(--color-light);
}

.hero__layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-navy);
}

.hero__lead {
    font-size: 16px;
    line-height: 1.35;
    color: var(--color-muted);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hero__actions .btn {
    width: 100%;
}

.hero__tz {
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-navy);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.hero__tz:hover {
    color: var(--color-blue);
}

.hero__note {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-muted);
}

.hero__visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero__photo {
    width: 100%;
    height: 270px;
    border-radius: var(--radius-card);
    object-fit: cover;
}

.caption {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    line-height: 1.4;
}

.caption__num {
    font-weight: 700;
    color: var(--color-blue);
}

.caption__text {
    font-weight: 500;
    color: var(--color-muted);
}

@media (min-width: 1024px) {
    .hero {
        padding: 48px 0 56px;
    }

    .hero__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .hero__copy {
        flex: 0 1 584px;
    }

    .hero__visual {
        flex: 0 1 648px;
    }

    .hero__title {
        font-size: 54px;
    }

    .hero__lead {
        max-width: 548px;
        font-size: 18px;
        line-height: 1.4;
    }

    .hero__actions {
        flex-direction: row;
    }

    .hero__actions .btn {
        width: 306px;
    }

    .hero__photo {
        height: 450px;
    }
}

/* Преимущества */

.benefits {
    padding: 40px 0;
}

.benefits__grid {
    display: grid;
    gap: 32px;
}

.benefit {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit img {
    width: 32px;
    height: 32px;
}

.benefit__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy);
}

.benefit__text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-muted);
}

.divider {
    height: 1px;
    margin-top: 32px;
    background: var(--color-line);
}

@media (min-width: 768px) {
    .benefits__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* Сферы применения */

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

.sector {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--color-light);
}

.sector__photo {
    width: 100%;
    height: 220px;
    border-radius: var(--radius-card);
    object-fit: cover;
}

.sector--transport .sector__photo {
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.sector__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.sector--transport .sector__body {
    gap: 20px;
}

.sector__title-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sector__title-row img {
    flex: none;
    width: 28px;
    height: 28px;
}

.sector--transport .sector__title-row img {
    width: 32px;
    height: 32px;
}

.sector__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy);
}

.sector__text {
    font-size: 16px;
    color: var(--color-muted);
}

@media (min-width: 768px) {
    .sectors {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sector__photo {
        height: 270px;
    }

    .sector--featured .sector__title {
        font-size: 24px;
        line-height: 1.35;
    }
}

/* Принцип работы */

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

.principle {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--color-blue);
}

.principle__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.principle__top img {
    width: 32px;
    height: 32px;
}

.principle__num {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-ice);
}

.principle__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-white);
}

.principle__text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-ice);
}

.technology__note {
    font-size: 12px;
    color: var(--color-ice);
}

.technology .btn {
    width: 100%;
}

.technology .section__stack {
    gap: 40px;
}

@media (min-width: 768px) {
    .principles {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .technology .btn {
        width: 320px;
    }
}

@media (min-width: 1024px) {
    .technology .h2,
    .technology .lead {
        max-width: 760px;
    }
}

/* Услуги */

.services .section__stack {
    gap: 40px;
}

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

.service {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service__num {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-ice);
}

.service__line {
    height: 1px;
    background: var(--color-line);
}

.service__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy);
}

.service__text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-muted);
}

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .service__text {
        padding-right: 12px;
    }
}

/* Экспертиза */

.expertise__layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.expertise__photo {
    width: 100%;
    height: 230px;
    border-radius: var(--radius-card);
    object-fit: cover;
}

.expertise__copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .expertise__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .expertise__photo {
        flex: 0 1 590px;
        width: 590px;
        height: 330px;
    }

    .expertise__copy {
        flex: 0 1 642px;
    }

    .expertise__copy > * {
        max-width: 620px;
    }
}

/* Проекты */

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

.project {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--color-light);
}

.project__photo {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.project__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
}

.project__summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    line-height: 1.4;
}

.project__meta {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-blue);
}

.project__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy);
}

.project__text {
    font-size: 14px;
    color: var(--color-muted);
}

@media (min-width: 768px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects {
        grid-template-columns: repeat(4, 1fr);
    }

    .project {
        height: 460px;
    }
}

/* FAQ */

.faq .section__stack {
    gap: 24px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq__item {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-line);
}

.faq__list::after {
    content: '';
    height: 1px;
    background: var(--color-line);
}

.faq__question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-navy);
    list-style: none;
    cursor: pointer;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question img {
    flex: none;
    width: 24px;
    height: 24px;
}

.faq__icon-close,
.faq__item[open] .faq__icon-plus {
    display: none;
}

.faq__item[open] .faq__icon-close {
    display: block;
}

.faq__answer {
    font-size: 16px;
    color: var(--color-muted);
}

.faq__item:not([open]) {
    gap: 0;
}

@media (min-width: 1024px) {
    .faq__question {
        gap: 24px;
        font-size: 20px;
    }

    .faq__answer {
        max-width: 1080px;
    }
}

/* Форма заявки */

.lead-block .section__stack {
    gap: 40px;
}

.lead-block__layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.lead-block__copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lead-block__values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lead-block__values li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-ice);
}

.lead-block__values img {
    flex: none;
    width: 20px;
    height: 20px;
}

.lead-block__mail {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
}

.lead-block__mail a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--color-white);
    color: var(--color-ink);
}

.request-form__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy);
}

.attach {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-navy);
    cursor: pointer;
}

.attach img {
    flex: none;
    width: 20px;
    height: 20px;
}

.attach__name {
    font-weight: 400;
    color: var(--color-muted);
    word-break: break-all;
}

.request-form__note {
    font-size: 12px;
    color: var(--color-muted);
}

@media (min-width: 1024px) {
    .lead-block__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 64px;
    }

    .lead-block__copy {
        flex: 0 1 570px;
    }

    .request-form {
        flex: 0 1 646px;
        padding: 32px;
    }

    .request-form__title {
        font-size: 24px;
        line-height: 1.35;
    }
}

/* Подвал */

.footer {
    padding: var(--section-y) 0;
    background: var(--color-navy);
    color: var(--color-white);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer__line {
    height: 1px;
    background: var(--color-line);
}

.footer__row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.footer__links {
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-ice);
}

.footer__links ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
}

.footer__links a:hover,
.footer__contacts a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer__copy {
    font-size: 12px;
    color: var(--color-ice);
}

@media (min-width: 1024px) {
    .footer__row {
        flex-direction: row;
        align-items: flex-start;
        gap: 64px;
    }

    .footer__contacts {
        width: 360px;
    }
}

/* О компании */

.h2--xl {
    font-size: 32px;
    line-height: 1.4;
}

.about-hero__layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-hero__text {
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-muted);
}

.about-hero__photo {
    width: 100%;
    height: 270px;
    border-radius: var(--radius-card);
    object-fit: cover;
}

.about-story {
    max-width: 960px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-ink);
}

.about-cards {
    display: grid;
    gap: 24px;
}

.about-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--color-light);
}

.about-card__value {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-white);
}

.about-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy);
}

.about-card__text {
    font-size: 16px;
    line-height: 1.35;
    color: var(--color-muted);
}

.about-card--blue {
    background: var(--color-blue);
}

.about-card--blue .about-card__title {
    color: var(--color-white);
}

.about-card--blue .about-card__text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-ice);
}

.about-note {
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-ice);
}

@media (min-width: 1024px) {
    .about-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .h2--xl {
        font-size: 44px;
    }

    .about-hero__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .about-hero__copy {
        flex: 0 1 584px;
    }

    .about-hero__photo {
        flex: 1 1 648px;
        min-width: 0;
        height: 410px;
    }

    .about-story {
        font-size: 20px;
    }

    .about-card__value {
        font-size: clamp(36px, 3.4vw, 48px);
    }
}

/* Проекты */

.project__photo-link {
    display: block;
}

.project__photo--empty {
    display: block;
    background: var(--color-ice);
}

.project__title a:hover {
    color: var(--color-blue);
}

.projects--wide .project__photo {
    height: 190px;
}

.catalog__back {
    align-self: flex-start;
}

.catalog__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy);
}

.catalog__filter {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.catalog__all {
    font-weight: 700;
    color: var(--color-navy);
}

.catalog__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 500;
    color: var(--color-muted);
}

.catalog__filter a:hover,
.catalog__categories .is-active {
    color: var(--color-navy);
}

.catalog__categories .is-active {
    font-weight: 700;
}

.catalog__filter .catalog__all:not(.is-active) {
    font-weight: 500;
    color: var(--color-muted);
}

.catalog__total {
    font-size: 12px;
    line-height: 1.35;
    color: var(--color-muted);
}

.case-note {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-blue);
}

.case-task {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.case-task__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-task__lead {
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-ink);
}

.case-facts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.case-fact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--color-light);
    line-height: 1.4;
}

.case-fact__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-muted);
}

.case-fact__value {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy);
}

.about-card--solution .about-card__text {
    font-size: 16px;
    line-height: 1.35;
}

.case-subtitle {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-navy);
}

.case-equipment {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-equipment__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--color-light);
    line-height: 1.4;
}

.case-equipment__name {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-ink);
}

.case-equipment__qty {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy);
}

.case-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.case-gallery__item {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-card);
    background: var(--color-light);
}

.case-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}

.case-gallery__item:hover img {
    transform: scale(1.03);
}

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(11, 35, 69, .92);
}

.lightbox::backdrop {
    background: transparent;
}

.lightbox__image {
    position: absolute;
    inset: 56px 16px;
    width: calc(100% - 32px);
    height: calc(100% - 112px);
    object-fit: contain;
}

.lightbox__button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--color-white);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.lightbox__button:hover {
    background: rgba(255, 255, 255, .24);
}

.lightbox__close {
    top: 8px;
    right: 8px;
}

.lightbox__prev,
.lightbox__next {
    bottom: 8px;
}

.lightbox__prev {
    left: calc(50% - 52px);
}

.lightbox__next {
    left: calc(50% + 8px);
}

@media (min-width: 768px) {
    .projects--wide {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-equipment__row {
        flex-direction: row;
        align-items: baseline;
        gap: 24px;
    }

    .case-equipment__name {
        flex: 1;
    }

    .case-equipment__qty {
        flex: 0 0 104px;
    }

    .case-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .lightbox__image {
        inset: 64px 80px;
        width: calc(100% - 160px);
        height: calc(100% - 128px);
    }

    .lightbox__prev,
    .lightbox__next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox__prev {
        left: 16px;
    }

    .lightbox__next {
        left: auto;
        right: 16px;
    }
}

@media (min-width: 1024px) {
    .projects--wide .project {
        height: 500px;
    }

    .projects--wide .project__photo {
        height: 270px;
    }

    .catalog__title {
        font-size: 32px;
    }

    .catalog__filter {
        flex-direction: row;
        gap: 32px;
    }

    .case-task {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .case-task__text {
        flex: 0 1 736px;
    }

    .case-facts {
        flex: 0 0 496px;
    }

    .case-subtitle {
        font-size: 24px;
    }
}

/* Модальные окна */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(11, 35, 69, .6);
}

.modal.is-open {
    display: flex;
}

.modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 40px 24px 32px;
    background: var(--color-white);
}

.modal__dialog--light {
    background: var(--color-light);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px;
    border: 0;
    background: none;
    cursor: pointer;
}

.modal__close img {
    width: 24px;
    height: 24px;
}

.modal__title {
    padding-right: 32px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy);
}

.modal__text {
    font-size: 16px;
    color: var(--color-muted);
}

.modal__icon {
    width: 40px;
    height: 40px;
}

.upload {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border: 1px dashed transparent;
    background: var(--color-light);
    cursor: pointer;
    transition: border-color .15s;
}

.upload.is-over,
.upload:hover {
    border-color: var(--color-line);
}

.upload img {
    width: 32px;
    height: 32px;
}

.upload__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-navy);
    word-break: break-word;
}

.upload__hint {
    font-size: 12px;
    color: var(--color-muted);
}

.upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

@media (min-width: 768px) {
    .modal__dialog {
        padding: 40px;
    }

    .modal__title {
        font-size: 28px;
    }
}

/* Текстовые страницы */

.page-head {
    padding: 32px 0 40px;
    background: var(--color-light);
}

.page-head__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-muted);
}

.breadcrumbs li + li::before {
    content: '/';
    margin-right: 8px;
}

.breadcrumbs a:hover {
    color: var(--color-navy);
}

.page-head__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-navy);
}

.page-head__lead {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-muted);
}

.page-cover {
    width: 100%;
    max-height: 450px;
    margin-bottom: 40px;
    border-radius: var(--radius-card);
    object-fit: cover;
}

.prose {
    max-width: 860px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-ink);
}

.prose h2,
.prose h3 {
    margin: 1.6em 0 .6em;
    color: var(--color-navy);
    line-height: 1.35;
}

.prose > :first-child {
    margin-top: 0;
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose h2 {
    font-size: 28px;
}

.prose h3 {
    font-size: 22px;
}

.prose p,
.prose ul,
.prose ol {
    margin: 0 0 1em;
}

.prose a {
    color: var(--color-blue);
    text-decoration: underline;
}

.prose img {
    height: auto;
    border-radius: var(--radius-card);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: 8px 12px;
    border: 1px solid var(--color-line);
    text-align: left;
}

@media (min-width: 1024px) {
    .page-head {
        padding: 48px 0 56px;
    }

    .page-head__title {
        font-size: 54px;
    }
}

/* Ошибка */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-block: 80px;
}

.error-page__code {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-ice);
}

.modal__fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
