
/* =========================================
   1. СБРОС И БАЗОВЫЕ СТИЛИ
========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f6fa;
    color: #18213a;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 18px;
}


/* =========================================
   2. ШАПКА САЙТА (HEADER)
========================================= */

.top {
    width: 100%;
    background: #fff;
}

.head {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #24327e;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 55px;
    height: 70px;
    flex: 0 0 55px;
    border-radius: 5px;
    background: linear-gradient(145deg, #24327e, #5665b8);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 5px 14px rgba(24, 33, 58, 0.19);
}

.brand b {
    display: block;
    font-size: 27px;
    line-height: 1.1;
}

.brand small {
    display: block;
    color: #9a751c;
    margin-top: 4px;
    font-size: 15px;
}

.head-right {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.phone {
    font-size: 20px;
    font-weight: 800;
    color: #29347f;
    text-decoration: none;
    white-space: nowrap;
}

.call,
.btn {
    background: #e0a62b;
    color: #fff;
    padding: 13px 19px;
    border-radius: 5px;
    font-weight: 800;
    display: inline-block;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.call:hover,
.btn:hover {
    background: #c9921f;
}


/* =========================================
   3. ИКОНКИ СОЦСЕТЕЙ И МЕССЕНДЖЕРОВ
========================================= */

.header-socials,
.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: rgba(41, 52, 127, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #29347f;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon:hover {
    background: #e0a62b;
    color: #fff;
    transform: translateY(-2px);
}

.foot-socials-wrapper {
    min-width: 0;
}

.foot-socials-wrapper strong {
    display: block;
    margin-bottom: 12px;
}

.messenger-icon {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    display: inline-block !important;
    vertical-align: middle;
}


/* =========================================
   4. НАВИГАЦИЯ (МЕНЮ)
========================================= */

.nav {
    width: 100%;
    background: #29347f;
    box-shadow: 0 4px 12px rgba(17, 25, 54, 0.27);
}

.nav-in {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.nav a {
    color: #fff;
    padding: 16px 24px;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s;
}

.nav a:hover {
    background: #1e2869;
}


/* =========================================
   5. ОСНОВНОЙ КОНТЕНТ / SIDEBAR
========================================= */

.page {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 35px;
    padding-top: 35px;
}

.page > * {
    min-width: 0;
    max-width: 100%;
}

.sidebar {
    min-width: 0;
    max-width: 100%;
}

.sidebar section {
    background: #fff;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(24, 33, 58, 0.06);
}

.sidebar h3 {
    margin: 0;
    padding: 15px 22px;
    background: #303b91;
    color: #fff;
    font-size: 21px;
    line-height: 1.25;
}

.sidebar a {
    display: block;
    padding: 11px 22px;
    color: #252b39;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
    overflow-wrap: anywhere;
}

.sidebar a:hover {
    background: #f0f1fa;
    color: #29347f;
}

.sidebar button {
    margin: 12px;
    width: calc(100% - 24px);
    border: 1px solid #333;
    background: #fff;
    border-radius: 8px;
    padding: 9px;
    font-weight: 800;
    cursor: pointer;
}


/* =========================================
   6. ГЛАВНЫЙ СЛАЙДЕР (HERO)
========================================= */

.hero {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(24, 33, 58, 0.07);
    overflow: hidden;
    max-width: 100%;
}

.slider {
    position: relative;
    min-height: 420px;
    max-width: 100%;
}

.slide {
    display: none;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 48px 55px;
    min-height: 420px;
    background: linear-gradient(110deg, #f9fafc, #edf0fb);
}

.slide.active {
    display: grid;
}

.slide > div:first-child > span,
.title > span,
.feature > div > span,
.article > span,
.request > div > span {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 900;
    color: #b07b15;
    text-transform: uppercase;
}

.slide h1 {
    font-size: 42px;
    line-height: 1.08;
    margin: 12px 0 17px;
    color: #29347f;
}

.slide p {
    font-size: 17px;
    line-height: 1.6;
    color: #596275;
    max-width: 630px;
}

.slide-art {
    display: grid;
    place-items: center;
    min-width: 0;
}

.document {
    width: 205px;
    height: 265px;
    background: #fff;
    border: 10px solid #303b91;
    box-shadow: 12px 15px 35px rgba(25, 33, 60, 0.19);
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 900;
    color: #303b91;
    font-size: 22px;
    transform: rotate(4deg);
}

.document small {
    font-size: 11px;
}

.circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e0a62b;
    color: #fff;
    font-size: 90px;
    font-weight: 300;
}

.map {
    width: 250px;
    height: 170px;
    background: #303b91;
    color: #fff;
    border-radius: 50% 45% 55% 40%;
    display: grid;
    place-items: center;
    font-size: 70px;
    font-weight: 900;
    transform: rotate(-8deg);
}

.arrows {
    position: absolute;
    inset: 50% 14px auto;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    width: calc(100% - 28px);
}

.arrows button {
    pointer-events: auto;
    border: 0;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(17, 19, 51, 0.2);
    cursor: pointer;
    color: #29347f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dots {
    position: absolute;
    bottom: 17px;
    left: 0;
    right: 0;
    text-align: center;
}

.dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    margin: 4px;
    background: #b7bfd7;
    cursor: pointer;
}

.dots button.active {
    background: #e0a62b;
}


/* =========================================
   7. СЕКЦИИ И КАРТОЧКИ
========================================= */

.section {
    padding: 50px 0;
    min-width: 0;
}

.title h2,
.feature h2,
.article h2,
.request h2 {
    font-size: 31px;
    margin: 7px 0 25px;
    color: #29347f;
}

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

.cards article {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(24, 33, 58, 0.07);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-img {
    height: 170px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 50px;
    font-weight: 900;
    color: #fff;
}

.i1 {
    background: #303b91;
}

.i2 {
    background: #5967aa;
}

.i3 {
    background: #b07b15;
}

.i4 {
    background: #65738e;
}

.cards h3 {
    font-size: 18px;
    margin: 17px 7px 8px;
}

.cards p {
    font-size: 13px;
    line-height: 1.5;
    color: #697386;
    margin: 0 7px 15px;
    flex-grow: 1;
}

.cards a {
    font-weight: 800;
    color: #29347f;
    font-size: 13px;
    margin: 7px;
    text-decoration: none;
}

.product-row {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    min-width: 0;
}

.product-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #29347f;
    overflow-wrap: anywhere;
}

.product-button {
    flex: 0 0 auto;
    display: inline-block;
    background: #e0a62b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.product-button:hover {
    background: #c9921f;
    color: #fff;
    transform: translateY(-1px);
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 35px;
    background: #29347f;
    color: #fff;
    padding: 38px;
    border-radius: 11px;
    min-width: 0;
}

.feature h2 {
    color: #fff;
}

.feature p {
    line-height: 1.65;
    color: #d6d9e8;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.feature-list b {
    background: rgba(255, 255, 255, 0.07);
    padding: 18px;
    border-radius: 8px;
    display: block;
}

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

.steps div {
    background: #fff;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(24, 33, 58, 0.06);
    min-width: 0;
}

.steps i {
    font-style: normal;
    color: #e0a62b;
    font-size: 25px;
    font-weight: 900;
}

.steps b {
    display: block;
    margin: 22px 0 8px;
}

.steps p {
    font-size: 13px;
    line-height: 1.5;
    color: #697386;
}

.article {
    background: #fff;
    padding: 35px;
    border-radius: 11px;
    box-shadow: 0 2px 10px rgba(24, 33, 58, 0.06);
    min-width: 0;
}

.article > p {
    line-height: 1.7;
    color: #596275;
}

.columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 25px;
}

.columns li,
.columns p {
    color: #596275;
    line-height: 1.7;
}

.request {
    margin: 50px 0;
    background: #19213c;
    color: #fff;
    padding: 38px;
    border-radius: 11px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    min-width: 0;
}

.request h2 {
    color: #fff;
}

.request p {
    color: #cbd0dc;
    line-height: 1.6;
}

.request form {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.request input,
.request textarea {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #424d6d;
    background: #242d4a;
    color: #fff;
    font: inherit;
}

.request textarea {
    min-height: 100px;
    resize: vertical;
}

.request small {
    color: #9da7bc;
}

.faq {
    padding-bottom: 55px;
}

.faq details {
    background: #fff;
    margin: 9px 0;
    padding: 17px;
    border-radius: 8px;
}

.faq summary {
    font-weight: 800;
    cursor: pointer;
}

.faq p {
    color: #697386;
    line-height: 1.6;
    margin-bottom: 0;
}


/* =========================================
   8. ПОДВАЛ (FOOTER)
========================================= */

footer {
    width: 100%;
    max-width: 100%;
    background: #19213c;
    color: #cbd0dc;
    padding: 35px 0;
    overflow: visible;
}

footer .wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
}

.foot {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    font-size: 13px;
}

.foot > * {
    min-width: 0;
    max-width: 100%;
}

.foot .brand b {
    color: #fff;
}

.foot .brand small {
    color: #b9a06b;
}

footer .social-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

footer .social-icon:hover {
    background: #e0a62b;
    color: #fff;
}

footer a,
footer p,
footer h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
}


/* =========================================
   9. СЕКЦИЯ: КАК МЫ РАБОТАЕМ
========================================= */

.work-process {
    width: 100%;
    padding: 75px 20px 80px;
    background: #f7f9fc;
    overflow: hidden;
}

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

.work-process__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.work-process__head {
    text-align: center;
    margin-bottom: 65px;
}

.work-process__label {
    display: inline-block;
    margin-bottom: 12px;
    color: #d5a33a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.work-process__head h2 {
    margin: 0 0 12px;
    color: #29347f;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
}

.work-process__head p {
    margin: 0;
    color: #737985;
    font-size: 16px;
    line-height: 1.6;
}

.work-process__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.work-process__steps::before {
    content: "";
    position: absolute;
    top: 43px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: #d5a33a;
    opacity: 0.65;
    z-index: 0;
}

.work-step {
    position: relative;
    z-index: 1;
    text-align: center;
    min-width: 0;
}

.work-step__circle {
    position: relative;
    width: 86px;
    height: 86px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #29347f;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(41, 52, 127, 0.18), 0 0 0 2px #d5a33a;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.work-step__icon {
    color: #fff;
    font-size: 29px;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.35s ease;
}

.work-step__number {
    position: absolute;
    right: -8px;
    top: -8px;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d5a33a;
    color: #fff;
    border: 3px solid #f7f9fc;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
}

.work-step h3 {
    margin: 0 0 9px;
    color: #29347f;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
}

.work-step p {
    margin: 0;
    color: #727782;
    font-size: 13px;
    line-height: 1.55;
}

.work-step:hover .work-step__circle {
    background: #d5a33a;
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(41, 52, 127, 0.22), 0 0 0 3px #29347f;
}

.work-step:hover .work-step__icon {
    transform: scale(1.15) rotate(-3deg);
}

.work-step:hover h3 {
    color: #d5a33a;
}


/* =========================================
   10. ПЛАВАЮЩИЙ ВИДЖЕТ МЕССЕНДЖЕРОВ
========================================= */

.messenger-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messenger-btn {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    text-decoration: none;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.messenger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.messenger-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.messenger-btn.tg {
    background-color: #24A1DE;
}

.messenger-btn.wa {
    background-color: #25D366;
}


/* =========================================
   11. ПЛАНШЕТЫ — max-width: 1050px
========================================= */

@media (max-width: 1050px) {

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

    .page {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .slide h1 {
        font-size: 34px;
    }

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

    .work-process__steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 55px;
    }

    .work-process__steps::before {
        display: none;
    }
}


/* =========================================
   12. СМАРТФОНЫ — max-width: 768px
========================================= */

@media (max-width: 768px) {

    /* ---------- ОБЩЕЕ ---------- */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .wrap {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }


    /* ---------- HEADER ---------- */

    .head {
        width: 100%;
        min-height: 0;
        height: auto;

        flex-direction: column;
        align-items: flex-start;

        padding: 15px 0;
    }

    .head-right {
        width: 100%;
        max-width: 100%;

        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
    }

    .header-socials {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }

    .phone {
        display: inline-block;
        font-size: 16px;
        max-width: 100%;
    }

    .brand {
        max-width: 100%;
    }

    .brand b {
        font-size: 22px;
    }


    /* ---------- NAV ---------- */

    .nav {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .nav-in {
        width: 100%;
        max-width: 100%;
    }

    .nav a {
        padding: 12px 16px;
        font-size: 14px;
    }


    /* ---------- CONTENT ---------- */

    .page {
        width: 100%;
        max-width: 100%;

        display: block;

        padding-top: 20px;
    }

    .sidebar {
        width: 100%;
        max-width: 100%;

        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

        gap: 12px;
        margin-bottom: 20px;
    }

    .sidebar section {
        margin: 0;
        min-width: 0;
    }

    .sidebar section:last-child {
        display: none;
    }


    /* ---------- HERO ---------- */

    .slide {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        min-height: auto;
    }

    .slide-art {
        display: none;
    }

    .slide h1 {
        font-size: 26px;
    }

    .slide p {
        font-size: 15px;
    }


    /* ---------- SECTIONS ---------- */

    .cards,
    .feature,
    .request,
    .columns {
        grid-template-columns: 1fr;
    }

    .request {
        padding: 25px 20px;
        gap: 25px;
    }

    .feature {
        padding: 25px 20px;
    }

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

    .feature-list {
        grid-template-columns: 1fr;
    }


    /* ---------- PRODUCT ---------- */

    .product-row {
        width: 100%;
        max-width: 100%;
        gap: 12px;
    }

    .product-title {
        font-size: 16px;
    }

    .product-button {
        padding: 9px 14px;
        font-size: 12px;
    }


    /* =====================================================
       FOOTER MOBILE
    ===================================================== */

    footer {
        width: 100% !important;
        max-width: 100% !important;

        padding: 30px 0 25px !important;

        overflow: visible !important;
    }

    footer .wrap {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 auto !important;

        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .foot {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: center !important;
        justify-content: flex-start !important;

        gap: 20px;

        text-align: center !important;
    }

    .foot > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }


    /* ---------- FOOTER BRAND ---------- */

    .foot .brand {
        width: 100% !important;
        max-width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: center !important;
        justify-content: center !important;

        text-align: center !important;
    }

    .foot .brand-mark {
        flex: 0 0 auto;
    }

    .foot .brand b,
    .foot .brand small {
        max-width: 100%;

        overflow-wrap: anywhere;
        word-break: normal;
    }


    /* ---------- FOOTER TEXT ---------- */

    footer p,
    footer h3,
    footer a {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    footer p {
        line-height: 1.6;
    }

    footer a {
        line-height: 1.5;
    }


    /* ---------- FOOTER SOCIALS ---------- */

    .foot-socials-wrapper {
        order: 99 !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: center !important;

        margin: 0 !important;
        padding: 18px 0 0 !important;

        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .foot-socials-wrapper strong {
        display: block;

        margin: 0 0 12px !important;

        color: #fff !important;
    }

    .footer-socials {
        width: 100% !important;
        max-width: 100% !important;

        display: flex !important;
        flex-direction: row !important;

        align-items: center !important;
        justify-content: center !important;

        gap: 12px !important;

        flex-wrap: nowrap !important;
    }

    .footer-socials a {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        width: auto !important;
    }

    .messenger-icon {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;

        flex: 0 0 40px !important;
    }


    /* ---------- FLOATING MESSENGERS ---------- */

    .messenger-widget {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .messenger-btn {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
    }

    .messenger-btn svg {
        width: 22px;
        height: 22px;
    }
}


/* =========================================
   13. МОБИЛЬНЫЙ ТАЙМЛАЙН — max-width: 650px
========================================= */

@media (max-width: 650px) {

    .work-process {
        padding: 40px 15px 45px;
    }

    .work-process__head {
        margin-bottom: 35px;
    }

    .work-process__head h2 {
        font-size: 26px;
    }

    .work-process__head p {
        font-size: 14px;
    }

    .work-process__steps {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-left: 5px;
    }

    .work-process__steps::before {
        display: block;

        top: 35px;
        bottom: 35px;
        left: 42px;
        right: auto;

        width: 2px;
        height: auto;

        background: #d5a33a;
    }

    .work-step {
        min-height: 80px;

        display: grid;
        grid-template-columns: 75px minmax(0, 1fr);

        column-gap: 20px;

        text-align: left;
    }

    .work-step__circle {
        grid-column: 1;
        grid-row: 1 / span 2;

        width: 75px;
        height: 75px;

        margin: 0;
    }

    .work-step h3 {
        grid-column: 2;
        margin: 4px 0 4px;
    }

    .work-step p {
        grid-column: 2;
        padding-right: 5px;
    }
}


/* =========================================
   14. МАЛЕНЬКИЕ ЭКРАНЫ — max-width: 560px
========================================= */

@media (max-width: 560px) {

    .wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand b {
        font-size: 20px;
    }

    .brand small {
        font-size: 12px;
    }

    .phone {
        font-size: 15px;
    }

    .nav a {
        padding: 11px 12px;
        font-size: 13px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .product-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-button {
        width: 100%;
        text-align: center;
    }


    /* ---------- FOOTER ---------- */

    footer {
        padding: 28px 0 22px !important;
    }

    footer .wrap {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .foot {
        gap: 18px;
    }

    .foot-socials-wrapper {
        padding-top: 15px !important;
    }

    .footer-socials {
        gap: 10px !important;
    }

    footer p {
        font-size: 12px;
        line-height: 1.6;
    }

    footer a {
        font-size: 12px;
        line-height: 1.5;
    }
}


/* =========================================
   15. ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ — max-width: 480px
========================================= */

@media (max-width: 480px) {

    .sidebar {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .product-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-button {
        width: 100%;
        text-align: center;
    }

    .work-process {
        padding-left: 10px;
        padding-right: 10px;
    }

    .work-step {
        grid-template-columns: 60px minmax(0, 1fr);
        column-gap: 15px;
    }

    .work-step__circle {
        width: 60px;
        height: 60px;
    }

    .work-step__icon {
        font-size: 22px;
    }

    .work-process__steps::before {
        left: 35px;
    }

    .work-step h3 {
        font-size: 15px;
    }

    .work-step p {
        font-size: 12px;
    }
}


/* =========================================
   16. САМЫЕ МАЛЕНЬКИЕ ЭКРАНЫ — max-width: 400px
========================================= */

@media (max-width: 400px) {

    .wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .head {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand b {
        font-size: 19px;
    }

    .brand small {
        font-size: 11px;
    }

    .phone {
        font-size: 14px;
    }

    .nav a {
        padding: 10px 9px;
        font-size: 12px;
    }


    /* ---------- FOOTER ---------- */

    footer {
        padding: 25px 0 20px !important;
    }

    footer .wrap {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .foot {
        gap: 16px;
    }

    .foot-socials-wrapper {
        padding-top: 15px !important;
    }

    .footer-socials {
        gap: 8px !important;
    }

    .messenger-icon {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        flex: 0 0 36px !important;
    }

    footer p {
        font-size: 11px;
    }

    footer a {
        font-size: 11px;
    }
}


/* =========================================
   17. ЗАЩИТА ОТ ВЫХОДА ЗА ЭКРАН
========================================= */

@media (max-width: 768px) {

    header,
    main,
    footer,
    section,
    .top,
    .nav,
    .page,
    .foot {
        max-width: 100%;
    }

    .page *,
    .foot *,
    footer * {
        max-width: 100%;
    }

    iframe,
    video {
        max-width: 100%;
    }

    table {
        max-width: 100%;
    }
}