@font-face {
    font-family: "Cera Pro";
    src: url("./assets/fonts/CeraPro-Light.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Clarendon Black BT";
    src: url("./assets/fonts/Clarendon-Black-BT.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    --main-blue: #012c1d;
    /* Футер: дуже темний фон з легким синьо-бірюзовим відтінком (як у макеті, не обводка Figma) */
    --footer-bg: #041c1b;
    --white: #ffffff;
    --black: #031c1c;
    --grey-light: #eef5f2;
    --yellow: #f9af03;
    --grey: #7d7878;
    --font-body: "Cera Pro", "Montserrat", "Inter", sans-serif;
    --font-display: "Clarendon Black BT", "Roboto Slab", Georgia, serif;
}

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    scroll-behavior: smooth;
}

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

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

.header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background: rgba(1, 44, 29, 0.5);
}

.header__inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    color: var(--white);
    padding-inline: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.logo__svg {
    width: 235px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 30px;
    font-size: 18px;
    font-weight: 300;
}

.header__aside {
    flex-shrink: 0;
}

.header__phone-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 14px 20px;
}

.header__phone-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header__icon--phone {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--yellow);
}

.header__phone-svg {
    display: block;
}

.header__social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--white);
    transition: opacity 0.2s ease;
}

.header__social-link:hover {
    opacity: 0.78;
}

.header__social-link svg {
    display: block;
}

.header__menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-left: 8px;
    color: var(--white);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    outline: none;
}

.header__menu-toggle span {
    display: block;
    position: absolute;
    left: 50%;
    width: 24px;
    height: 3px;
    background: currentColor;
    margin: 0;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.header__menu-toggle span:nth-child(1) {
    top: 11px;
}

.header__menu-toggle span:nth-child(2) {
    top: 18px;
}

.header__menu-toggle span:nth-child(3) {
    top: 25px;
}

.mobile-menu {
    display: none;
}

body.mobile-menu-open {
    overflow: hidden;
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 18px;
    transform: translateX(-50%) rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 18px;
    transform: translateX(-50%) rotate(-45deg);
}

.nav a,
.phone-link,
.logo,
.header__social-link {
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.logo:hover {
    opacity: 0.78;
}

.phone-link {
    color: var(--yellow);
    font-weight: 800;
}

.phone-link:hover {
    color: #ffd66b;
}

.hero {
    position: relative;
    min-height: 929px;
    padding-top: 130px;
    overflow: hidden;
    touch-action: pan-y;
}

.hero__bg,
.trust__bg,
.estimate__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__bg {
    transition: opacity 0.9s ease;
    will-change: opacity;
}

.hero--booting .hero__bg {
    opacity: 0 !important;
}

.hero__bg.hero__bg--fading {
    opacity: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 44, 29, 0.6);
    z-index: 1;
}

.hero__grid {
    position: relative;
    z-index: 2;
    max-width: none;
    padding-top: 50px;
}

.hero__content {
    max-width: 991px;
    text-align: left;
}

.hero__dots {
    position: absolute;
    left: 50%;
    bottom: 58px;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 14px;
    z-index: 2;
}

.hero__dots span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero__dots .is-active {
    background: var(--yellow);
}

.hero__dots span:hover {
    transform: scale(1.08);
}

h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    font-family: var(--font-display);
}

.hero__char {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.hero__char.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__char--accent {
    color: var(--yellow);
}

.hero p {
    max-width: 553px;
    color: var(--white);
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 300;
    line-height: 1.45;
}

.button {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 0 0 36px;
    border-radius: 25px;
    border: 0;
    background: var(--yellow);
    color: var(--white);
    font-weight: 300;
    font-size: 20px;
    line-height: 1;
    font-family: var(--font-body);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.button strong {
    font-weight: 700;
}

.button__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 12px;
    background: var(--yellow);
    font-size: 24px;
    line-height: 1;
}

.button__arrow--outline {
    background: transparent;
    border: 2px solid var(--white);
    box-sizing: border-box;
}

.hero .button {
    width: 302px;
    height: 50px;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 10px 22px rgba(249, 175, 3, 0.3);
}

.section {
    padding: 100px 0;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.title {
    margin: 0 0 40px;
    font-size: clamp(36px, 5vw, 76px);
    line-height: 1.05;
    text-align: center;
    font-weight: 900;
    font-family: var(--font-display);
}

.title--left {
    text-align: left;
}

.title--light {
    color: var(--white);
}

.cards {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.card {
    border-radius: 50px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #eef5f2 100%);
    padding: 0;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px;
    transition: transform 0.35s ease;
}

.card__media {
    position: relative;
    height: 380px;
    border-radius: 50px;
    overflow: hidden;
}

.cards .card:nth-child(1),
.cards .card:nth-child(4) {
    height: 515px;
}

.cards .card:nth-child(2),
.cards .card:nth-child(3) {
    height: 585px;
}

.cards .card:nth-child(3) {
    margin-top: -40px;
}

.cards .card:nth-child(4) {
    margin-top: 30px;
}

.cards .card:nth-child(2) .card__media,
.cards .card:nth-child(3) .card__media {
    height: 450px;
}

.card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 44, 29, 0) 40%, rgba(1, 44, 29, 0.82) 100%);
    pointer-events: none;
}

.card h3 {
    margin: 0;
    font-size: 32px;
    font-family: var(--font-display);
    position: absolute;
    left: 50px;
    bottom: 50px;
    color: var(--white);
    z-index: 1;
}

.card p {
    margin: 30px 30px 0;
    color: #4b5c57;
    font-size: 18px;
    line-height: 1.45;
    text-align: center;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(1, 44, 29, 0.14);
}

.card:hover img {
    transform: scale(1.03);
}

.trust {
    position: relative;
    min-height: 869px;
}

.trust__overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 44, 29, 0.55);
}

.trust .container {
    position: relative;
    z-index: 2;
}

.benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefits li {
    background: rgba(19, 44, 35, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    color: var(--white);
    padding: 26px 28px 26px 96px;
    min-height: 126px;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 300;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.benefits li:hover {
    transform: translateY(-2px);
    background: rgba(19, 44, 35, 0.55);
}

.benefit__icon {
    position: absolute;
    left: 18px;
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: var(--yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.benefit__icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.benefits li:hover .benefit__icon {
    transform: scale(1.08);
}

.equipment {
    background: #ffffff;
}

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

.equipment__grid article {
    text-align: center;
    transition: transform 0.25s ease;
    background: linear-gradient(180deg, #ffffff 0%, #eef5f2 100%);
    border-radius: 50px;
    padding: 28px 24px 30px;
}

.equipment__grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    object-fit: cover;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    max-width: 408px;
    margin-inline: auto;
}

.equipment__grid h3 {
    font-size: 32px;
    margin: 16px 0 8px;
    font-family: var(--font-display);
}

.equipment__grid p {
    margin: 0 auto;
    max-width: 290px;
    font-size: 20px;
    color: #465854;
}

.equipment__grid article:hover {
    transform: translateY(-4px);
}

.equipment__grid article:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(1, 44, 29, 0.16);
}

.section--muted {
    background: linear-gradient(180deg, #dfece7 0%, #e9f3ef 42%, #ffffff 100%);
}

.contact {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
}

.contact p {
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 10px;
}

.contact h4 {
    margin: 18px 0 14px;
    font-size: 32px;
    font-family: var(--font-display);
}

.contact__title {
    text-align: center;
    white-space: nowrap;
    margin-bottom: 36px;
}

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

.contact__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
}

.contact__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.contact__icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.contact__icon--mark {
    background: transparent;
    padding: 0;
    overflow: hidden;
    justify-content: flex-start;
}

.contact__icon .contact__mark-from-logo {
    width: 307px;
    height: 50px;
    max-width: none;
    flex-shrink: 0;
    display: block;
}

.contact__map {
    width: 100%;
    border-radius: 50px;
    min-height: 540px;
    object-fit: cover;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact__map:hover {
    transform: scale(1.01);
    box-shadow: 0 14px 28px rgba(1, 44, 29, 0.16);
}

.estimate {
    position: relative;
    min-height: 918px;
}

.estimate__overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 44, 29, 0.82);
}

.estimate .container {
    position: relative;
    z-index: 2;
    padding-bottom: 24px;
}

.contact__form {
    width: min(860px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact__form--estimate {
    width: min(845px, 100%);
    column-gap: 30px;
    row-gap: 22px;
}

.estimate__subtitle {
    margin: -8px auto 32px;
    max-width: 845px;
    color: var(--white);
    font-size: 20px;
    line-height: 1.45;
    text-align: center;
    font-weight: 300;
}

.contact__form label {
    display: grid;
    gap: 6px;
    color: var(--white);
    font-size: 16px;
}

.contact__form--estimate .contact__form-field {
    gap: 8px;
    font-size: 16px;
    font-weight: 300;
}

.contact__input-wrap {
    position: relative;
    display: block;
}

.contact__input-wrap--phone {
    display: block;
}

.contact__input-flag {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 3;
    display: flex;
    transform: translateY(-50%);
    pointer-events: none;
    isolation: isolate;
    filter: none;
}

.contact__input-flag-svg {
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
    forced-color-adjust: none;
}

.contact__input-wrap--phone input {
    position: relative;
    z-index: 0;
    padding-left: 56px;
}

.contact__input-wrap--select select {
    appearance: none;
    padding-right: 58px;
    cursor: pointer;
}

.contact__select-indicator {
    position: absolute;
    top: 50%;
    right: 4px;
    z-index: 1;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--yellow);
    pointer-events: none;
    transform: translateY(-50%);
}

.contact__select-chevron {
    display: block;
    width: 0;
    height: 0;
    margin-top: 3px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--white);
}

.contact__form input,
.contact__form textarea,
.contact__form select {
    width: 100%;
    min-height: 50px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.35);
    color: var(--white);
    font: inherit;
    font-size: 20px;
    font-weight: 300;
    padding: 0 22px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.contact__form input:focus,
.contact__form textarea:focus,
.contact__form select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.45);
}

.contact__form textarea {
    min-height: 74px;
    padding: 14px 22px;
    resize: vertical;
    line-height: 1.45;
}

.contact__form select option {
    color: var(--black);
    background: var(--white);
}

.contact__notes {
    grid-column: span 2;
}

.contact__notes textarea {
    min-height: 74px;
}

.contact__form button {
    grid-column: span 2;
    justify-self: center;
    margin-top: 14px;
    min-width: 400px;
}

.estimate__submit {
    width: 440px;
    max-width: 100%;
    min-width: unset;
    margin-top: 18px;
    padding: 0 0 0 36px;
    font-weight: 700;
    font-size: 20px;
}

.estimate__submit .button__arrow--outline {
    margin-left: 12px;
    margin-right: 0;
    width: 50px;
    height: 50px;
    font-size: 22px;
    line-height: 1;
}

.contact__form--attempted input:invalid,
.contact__form--attempted textarea:invalid,
.contact__form--attempted select:invalid {
    border-color: #e85a5a;
}

.contact__form--attempted input:invalid:focus,
.contact__form--attempted textarea:invalid:focus,
.contact__form--attempted select:invalid:focus {
    border-color: #ff8a8a;
}

.footer {
    background: var(--footer-bg);
    padding: 72px 0 40px;
    color: var(--white);
}

.footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 32px 56px;
    align-items: start;
}

.footer__col--brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    min-width: 0;
    max-width: 100%;
}

.footer__logo-img {
    width: 235px;
    height: auto;
}

.footer__contact-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 12px;
    align-items: center;
    align-self: stretch;
    width: 100%;
}

.footer__contact-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    text-align: left;
    transition: opacity 0.2s ease;
}

.footer__contact-text {
    flex: 1;
    min-width: 0;
}

.footer__contact-row:hover {
    opacity: 0.92;
}

.footer__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.footer__icon--stroke {
    color: var(--yellow);
}

.footer__icon--stroke svg {
    display: block;
    width: 30px;
    height: 30px;
}

.footer__col--nav {
    justify-self: center;
    padding-top: 8px;
}

.nav--footer {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    font-weight: 300;
}

.nav--footer a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav--footer a:hover {
    color: var(--yellow);
    opacity: 1;
}

.footer__col--aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;
    justify-self: end;
}

.footer__aside-top {
    width: 100%;
}

.footer__phone-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 18px 22px;
}

.footer__phone-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer__phone-link {
    color: var(--yellow);
    font-weight: 800;
    font-size: 20px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.footer__phone-link:hover {
    filter: brightness(1.08);
}

.footer__social {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--white);
    color: var(--main-blue);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer__social-link:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.footer__social-link svg {
    display: block;
}

.footer__cta {
    margin-top: 0;
    min-height: 50px;
    width: 302px;
    max-width: 100%;
    height: 50px;
    padding: 0 0 0 36px;
    font-size: 20px;
    font-weight: 300;
}

.footer__cta .button__arrow {
    margin-left: 12px;
}

.footer__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
}

.footer__legal-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__legal-link:hover {
    color: var(--yellow);
}

.footer__copyright {
    margin: 0;
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
}

.footer__credit {
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .hero__char {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 1100px) {
    .cards,
    .benefits,
    .equipment__grid,
    .contact,
    .contact__form {
        grid-template-columns: 1fr;
    }

    .contact__notes {
        grid-column: 1 / -1;
    }

    .header .nav {
        display: none;
    }

    .header__aside {
        margin-left: auto;
    }

    .header__social {
        display: none;
    }

    .header__menu-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        margin-left: auto;
    }

    .mobile-menu {
        position: fixed;
        left: 0;
        top: 80px;
        width: 100%;
        padding: 18px 20px 24px;
        background: rgba(1, 44, 29, 0.96);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        z-index: 49;
    }

    body.mobile-menu-open .mobile-menu {
        display: block;
    }

    .mobile-menu__nav {
        display: grid;
        gap: 14px;
    }

    .mobile-menu__phone-link {
        display: inline-block;
        color: var(--yellow);
        font-weight: 700;
        font-size: 18px;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .mobile-menu__nav a {
        color: var(--white);
        font-size: 20px;
        font-weight: 700;
    }

    .mobile-menu__social {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 16px;
    }

    .mobile-menu__social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        color: var(--white);
    }

    .header__phone-social {
        gap: 10px 14px;
    }

    .logo__svg {
        width: 170px;
    }

    .title {
        font-size: 42px;
    }

    .benefits li {
        font-size: 18px;
        min-height: auto;
        padding: 18px 18px 18px 78px;
    }

    .footer__main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer__col--brand {
        align-items: center;
    }

    .footer__contact-lines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        justify-items: stretch;
    }

    .footer__contact-row {
        justify-content: flex-start;
        text-align: left;
    }

    .footer__col--aside {
        align-items: center;
        justify-self: center;
        width: 100%;
    }

    .footer__phone-social {
        justify-content: center;
    }

    .footer__legal {
        flex-direction: column;
        margin-top: 40px;
        padding-top: 24px;
        font-size: 16px;
        text-align: center;
    }

    .footer__copyright {
        order: 0;
    }

    .contact__form button,
    .estimate__submit {
        min-width: 100%;
        width: 100%;
    }

    .contact__title {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .header__inner {
        justify-content: space-between;
    }

    .header__aside {
        display: none;
    }

    .header__menu-toggle {
        display: inline-flex !important;
    }

    .header__menu-toggle span {
        opacity: 1;
    }

    .hero {
        min-height: 100svh;
        min-height: 100dvh;
        height: 100svh;
        height: 100dvh;
        padding-top: 96px;
        padding-bottom: 74px;
    }

    .hero__grid {
        height: 100%;
        padding-top: 0;
    }

    .hero__content {
        max-width: 100%;
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }

    h1 {
        font-size: clamp(42px, 12vw, 64px);
        line-height: 1.03;
    }

    .hero p {
        max-width: 100%;
        margin: 14px 0 0;
        font-size: clamp(16px, 4.8vw, 22px);
        line-height: 1.32;
    }

    .hero__actions {
        margin-top: auto;
        padding-top: 16px;
    }

    .hero .button {
        width: 100%;
        max-width: none;
        font-size: clamp(18px, 5vw, 22px);
        margin-top: 0;
    }

    .hero__dots {
        bottom: 20px;
        gap: 10px;
    }

    .hero__dots span {
        width: 12px;
        height: 12px;
    }

    .cards {
        gap: 22px;
    }

    .cards .card {
        height: auto;
        margin-top: 0;
        border-radius: 34px;
    }

    .card__media,
    .cards .card:nth-child(2) .card__media,
    .cards .card:nth-child(3) .card__media {
        height: 280px;
        border-radius: 34px;
    }

    .card img {
        border-radius: 34px;
    }

    .card h3 {
        left: 26px;
        right: 20px;
        bottom: 24px;
        font-size: 48px;
        line-height: 1.06;
    }

    .card p {
        margin: 20px 18px 24px;
        font-size: 16px;
        line-height: 1.4;
    }

    .benefits {
        gap: 12px;
    }

    .benefits li {
        min-height: 0;
        border-radius: 28px;
        padding: 16px 16px 16px 84px;
        align-items: flex-start;
        font-size: 18px;
        line-height: 1.25;
    }

    .benefit__icon {
        width: 58px;
        height: 58px;
        left: 14px;
        top: 14px;
    }

    .benefit__icon img {
        width: 30px;
        height: 30px;
    }

    .contact__form,
    .contact__form--estimate {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
    }

    .contact__form--estimate .contact__form-field {
        font-size: 16px;
    }

    .contact__form input,
    .contact__form textarea,
    .contact__form select {
        min-height: 52px;
        font-size: 18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .contact__input-wrap--phone input {
        padding-left: 52px;
    }

    .contact__input-wrap--select select {
        padding-right: 66px;
    }

    .contact__notes,
    .contact__form button {
        grid-column: 1;
    }

    .contact__form textarea {
        min-height: 120px;
    }

    .estimate__submit {
        width: 100%;
        min-width: 0;
    }

    .footer__contact-lines {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }
}

@media (max-width: 390px) {
    .header__inner {
        min-height: 68px;
        gap: 10px;
    }

    .logo__svg {
        width: 150px;
    }

    .header__phone-social {
        gap: 6px 10px;
    }

    .mobile-menu {
        top: 68px;
    }

    .hero {
        padding-top: 88px;
        padding-bottom: 66px;
    }

    .hero__grid {
        padding-top: 0;
    }

    h1 {
        font-size: clamp(38px, 11.4vw, 52px);
    }

    .hero p {
        font-size: clamp(15px, 4.5vw, 18px);
        line-height: 1.35;
    }

    .hero .button {
        font-size: clamp(17px, 4.8vw, 20px);
    }

    .hero__dots {
        bottom: 16px;
    }

    .header__phone-row {
        gap: 4px;
    }

    .header__phone-svg {
        width: 22px;
        height: 22px;
    }

    .phone-link {
        font-size: 14px;
        white-space: nowrap;
    }

    .section {
        padding: 76px 0;
    }

    .title {
        margin-bottom: 28px;
        font-size: 52px;
        line-height: 1.08;
    }

    .card__media,
    .cards .card:nth-child(2) .card__media,
    .cards .card:nth-child(3) .card__media {
        height: 250px;
    }

    .cards .card:nth-child(1),
    .cards .card:nth-child(2),
    .cards .card:nth-child(3),
    .cards .card:nth-child(4) {
        height: auto;
        margin-top: 0;
    }

    .card h3 {
        left: 20px;
        right: 16px;
        bottom: 20px;
        font-size: 42px;
    }

    .benefits li {
        padding: 14px 14px 14px 74px;
        font-size: 17px;
    }

    .benefit__icon {
        left: 12px;
        top: 12px;
        width: 52px;
        height: 52px;
    }

    .benefit__icon img {
        width: 26px;
        height: 26px;
    }

    .estimate__subtitle {
        margin: -4px auto 24px;
        font-size: 16px;
        line-height: 1.35;
    }

    .contact__form,
    .contact__form--estimate {
        gap: 12px;
    }

    .contact__form input,
    .contact__form textarea,
    .contact__form select {
        min-height: 48px;
        font-size: 17px;
        border-radius: 22px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact__input-wrap--phone input {
        padding-left: 48px;
    }

    .contact__input-flag {
        left: 14px;
    }

    .contact__select-indicator {
        right: 4px;
        width: 38px;
        height: 38px;
    }
}
