* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PT Sans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #ffffff;
}

/* ===== HEADER ===== */

.site-header {
    position: fixed;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.09);
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 40px;
    display: flex;
    align-items: start;
    justify-content: space-between;
}

/* ===== LEFT GROUP ===== */

.left-group {
    display: flex;
    align-items: center;
}

.logo img {
    height: 59px;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-grow: 1;
}

    .nav a {
        text-decoration: none;
        line-height: 1.55;
        font-weight: 600;
        font-size: 16px;
        color: #000;
        text-align: center;
        width: 200px;
        transition: 0.2s;
    }

        .nav a:hover {
            color: #0245d6;
        }

/* ===== RIGHT GROUP ===== */

.right-group {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 5px;
    justify-content: center;
}

.phone {
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
}

.request-btn {
    position: relative;
    text-decoration: none;
    text-align: center;
    text-decoration: none;
    color: #0245d6;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
}

    .request-btn::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 100%;
        height: 3px;
        background: currentColor;
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }

    .request-btn:hover::after {
        transform: scaleX(1);
    }

/* ===== BURGER ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

    .burger span {
        width: 30px;
        height: 5px;
        background: #0245d6;
    }

/* ===== DESKTOP NAV ===== */

.desktop-nav {
    display: flex;
    gap: 40px;
}

    .desktop-nav a {
        text-decoration: none;
        font-weight: 600;
        color: #000;
    }

/* ===== OVERLAY ===== */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9998;
}

    .menu-overlay.active {
        opacity: 0.6;
        visibility: visible;
    }

/* ===== SIDE MENU ===== */

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: #fff;
    transform: translateX(-100%);
    transition: 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 25px;
    background: #111;
}

    .side-menu a {
        color: #fff;
    }

    .side-menu.active {
        transform: translateX(0);
    }

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .menu-content a {
        font-size: 22px;
        text-decoration: none;
        color: #fff;
    }

/* ===== MOBILE ===== */

@media (max-width: 980px) {
    .container {
        padding: 20px 30px;
        padding-bottom: 10px;
    }

    .nav {
        display: none;
    }

    .right-group {
        display: none;
    }

    .burger {
        display: flex;
    }

    .logo img {
        width: 122px;
        height: auto;
    }
}

/* ===== PAGE LAYOUT ===== */

.page {
    position: absolute;
    width: 100%;
    top: 123px;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
}

/* ===== SECTION ===== */
.section-block {
    -webkit-font-smoothing: antialiased;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 40px;
    padding: 100px 0;
}

@media (max-width: 1560px) {
    .section-block {
        padding: 40px 0;
        gap: 30px;
    }

    #descriptions {
        padding: 40px 0;
    }
}

@media (max-width: 1200px) {
    .section-block {
        padding: 20px;
        gap: 30px;
    }

    #descriptions {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .section-block img {
        width: 350px;
    }
}

/* ===== SECTION TITLE ===== */
.section-block-title {
    width: 100%;
    max-width: 1200px;
    display: grid;
    place-items: center;
    text-align: center;
}

    .section-block-title h1 {
        color: #0245d6;
        font-size: clamp(30px, 4vw, 42px);
        line-height: 1.55;
        font-weight: 600;
    }

        .section-block-title h1.color-white {
            color: #ffffff;
        }

/* ===== BACKGROUNDS ===== */
.background-blue {
    background-color: #0245d6;
}

/* ===== BOTTOM MENU ===== */
.section-bottom-menu {
    position: relative;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    width: 1200px;
    gap: 20px;
    justify-content: space-between;
}

.section-bottom-menu-main {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
}

.section-bottom-menu-all {
    display: flex;
    align-items: end;
}

.menu-link {
    position: relative;
    text-decoration: none;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

    .menu-link:hover {
        color: #4f4f4f;
    }

    .menu-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 100%;
        height: 3px;
        background: currentColor;
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }

    .menu-link:hover::after {
        transform: scaleX(1);
    }

/* ===== ID SERVICES ===== */
#services {
    position: fixed;
    top: 123px;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #0245d6;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0s linear 0.35s;
    pointer-events: none;
}

    #services.active {
        max-height: 250px;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0s;
        pointer-events: all;
    }

@media (max-width: 1200px) {
    #services {
        display: none;
    }
}

/* ===== CLOSE BUTTON ===== */
.close-button {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 999999;
}

.close-icon {
    position: relative;
    width: 24px;
    height: 20px;
    color: #fff;
}

    .close-icon span {
        position: absolute;
        display: block;
        width: 100%;
        height: 2px;
        background-color: currentColor;
        left: 0;
        top: 8px;
    }

        .close-icon span:first-child {
            width: 0%;
            left: 50%;
            opacity: 0;
        }

        .close-icon span:last-child {
            width: 0%;
            left: 50%;
            opacity: 0;
        }

        .close-icon span:nth-child(2) {
            transform: rotate(45deg);
        }

        .close-icon span:nth-child(3) {
            transform: rotate(-45deg);
        }

/* ===== BUTTONS ===== */
.cta-button {
    cursor: pointer;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #0245d6;
    border-style: solid;
    border-color: #0245d6;
    border-radius: 10px;
    padding: 15px 30px;
    transition: 0.25s ease;
}

    .cta-button:hover {
        background: #0245d6;
        color: #ffffff;
    }

/* ===== COUNTS ===== */

.section-count-grid {
    display: grid;
    grid-template-columns: repeat(4, 260px); /* desktop */
    justify-content: center;
    align-items: start;
    gap: 3px;
    width: 100%;
}

@media (max-width: 1100px) {
    .section-count-grid {
        grid-template-columns: repeat(2, 260px);
    }
}

@media (max-width: 521px) {
    .section-count-grid {
        grid-template-columns: repeat(1, 260px);
    }
}

.block-count {
    width: 260px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    color: #000000;
    font-size: 16px;
}

@media (max-width: 521px) {
    .section-count-grid {
        grid-template-columns: repeat(1, 320px);
    }

    .block-count {
        width: 320px;
    }
}

.block-count h2 {
    text-align: center;
    font-family: 'PT Sans', Arial, sans-serif;
    color: #0245d6;
    padding-top: 8px;
    padding-bottom: 6px;
    margin-right: 20px;
    font-weight: 700;
    font-size: clamp(28px, 2vw, 32px);
    line-height: 1.17;
}

.line {
    height: 3px;
    margin: 14px 20px 14px 20px;
    background-color: #000;
    width: 100%;
}

/* ===== FOR WHOM ===== */
.section-for-whom-grid {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 auto;
    padding: 20px;
}

.for-whom-column {
    width: 100%;
}

.faq-item {
    border-top: 1px solid #ffffff;
}

.for-whom-column .faq-item:last-child {
    border-bottom: 1px solid #ffffff;
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
}

.faq-title {
    font-size: clamp(20px, 4vw, 24px);
    line-height: 1.35;
    font-style: normal;
    font-weight: 600;
    color: #ffffff;
    text-align: start;
    width: 90%;
}

.faq-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: inherit;
    cursor: pointer;
    position: relative;
    transition: background 0.25s;
}

.faq-item:hover .faq-toggle {
    background: #ffffff;
}

.faq-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #ffffff;
    left: 50%;
    top: 50%;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover .faq-toggle span {
    background: #4f4f4f;
}

.faq-toggle span:first-child {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-toggle span:last-child {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-toggle span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.faq-item.active .faq-toggle span:last-child {
    transform: translate(-50%, -50%) rotate(135deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 14px;
    text-align: start;
    color: #ffffff;
    padding: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 200px;
    opacity: 1;
    padding-bottom: 30px;
}

@media (max-width: 900px) {
    .faq-header {
        padding: 10px 0;
    }

    .faq-item.active .faq-content {
        padding-bottom: 10px;
    }
}

/* ===== Main block information =====*/
.section-main-inform-grid {
    display: grid;
    grid-template-columns: repeat(3, 360px); /* desktop */
    justify-content: center;
    align-items: start;
    gap: 3px;
    width: 100%;
}

@media (max-width: 1086px) {
    .section-main-inform-grid {
        grid-template-columns: repeat(2, 360px);
    }
}

.block-main-inform {
    width: 360px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    color: #000000;
    font-size: 16px;
    line-height: 1.55;
}

@media (max-width: 726px) {
    .section-main-inform-grid {
        grid-template-columns: repeat(1, 320px);
    }

    .block-main-inform {
        width: 320px;
    }
}

.block-main-inform img {
    width: 100px;
    height: 100px;
}

.block-main-inform h2 {
    text-align: center;
    font-family: 'PT Sans', Arial, sans-serif;
    color: #000000;
    margin-top: 18px;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.35;
}

/* ===== Examples information ===== */
.section-example-informs {
    width: 100%;
    max-width: 1200px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

@media (max-width: 1000px) {
    .section-example-informs {
        max-width: 960px;
        padding: 0;
    }
}

@media (max-width: 767px) {
    .section-example-informs {
        max-width: 640px;
    }

        .section-example-informs li {
            padding: 0px;
        }
}

.section-example-informs li {
    padding: 20px;
    border-right: 1px solid #bebebe;
    border-bottom: 1px solid #bebebe;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 767px) {
    .section-example-informs li:nth-child(3n) {
        border-right: none;
    }

    .section-example-informs li:nth-last-child(-n + 3) {
        border-bottom: none;
    }
}

.section-example-informs img {
    max-width: 200px;
    width: 100%;
}

@media (max-width: 767px) {
    .section-example-informs {
        grid-template-columns: repeat(2, 1fr);
    }

        .section-example-informs li {
            border-right: 1px solid #bebebe;
        }

            .section-example-informs li:nth-child(2n) {
                border-right: none;
            }

            .section-example-informs li:nth-last-child(-n + 2) {
                border-bottom: none;
            }
}

@media (max-width: 640px) {
    .section-example-informs {
        grid-template-columns: repeat(2, 160px);
    }

    .section-example-informs {
        width: 160px;
    }

        .section-example-informs li {
            padding: 10px;
            box-sizing: border-box;
        }
}

/* ===== APPLICATION FORM ===== */
.section-application-form {
    width: 100%;
    max-width: 1200px;
}

#request-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #ffffff;
    margin: 0 auto;
    max-width: 850px;
    font-size: 18px;
}

    #request-form button {
        background: transparent;
        box-sizing: border-box;
        outline: none;
        text-align: center;
        white-space: nowrap;
        position: relative;
        color: #0245d6;
        border: 2px solid #ffffff;
        border-radius: 10px;
        font-size: 14px;
        cursor: pointer;
        background-color: #ffffff;
        padding: 0px 15px;
        display: block;
        width: 160px;
        font-weight: 600;
        height: 50px;
        margin-left: auto;
        margin-right: auto;
    }

        #request-form button:hover {
            background-color: #0245d6;
            color: #ffffff;
        }

    #request-form legend {
        display: table-cell;
        vertical-align: middle;
        width: 100%;
        color: #4f4f4f;
        font-size: 18px;
        line-height: 1.55;
        font-weight: 600;
        padding-bottom: 10px;
    }



.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 18px;
    position: relative;
}

    .form-field .input-error {
        display: none;
    }

    .form-field input {
        box-sizing: border-box;
        line-height: 1.33;
        outline: none;
        padding: 0 20px;
        width: 100%;
        color: #4f4f4f;
        border: 1px solid #4f4f4f;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 400;
        height: 50px;
    }

    .form-field .iti {
        color: #4f4f4f !important;
        font-size: 14px !important;
    }

.application-form-note {
    visibility: visible;
    text-align: center;
    box-sizing: content-box;
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 400;
    background-position: center center;
    border-color: transparent;
    border-style: solid;
}

    .application-form-note a {
        visibility: visible;
        text-align: center;
        font-size: 20px;
        line-height: 1.55;
        font-weight: bold;
        box-sizing: content-box;
        color: #ffffff;
    }

.form-field.error input {
    border-color: red;
}

.form-field.error .input-error {
    box-sizing: content-box;
    font-size: 13px;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 20px 0 rgba(0, 0, 0, 0.2);
    color: red;
    left: 0;
    top: 100%; /* сразу после input */
    margin-top: 10px;
    padding: 8px 10px;
    position: absolute;
    z-index: 2;
    display: block;
    opacity: 1;
}

    .form-field.error .input-error::after {
        border: 6px solid transparent;
        border-bottom-color: #fff;
        content: '';
        height: 0;
        left: 15%;
        position: absolute;
        top: -12px;
        width: 0;
    }

.form-global-error {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #f95d51;
    color: #fff;
    border: 1px solid #f95d51;
    padding: 15px;
    border-radius: 3px;
    font-size: 14px;
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 999;
}

    .form-global-error .close-icon {
        padding: 3px;
        cursor: pointer;
        width: 20px;
        height: 20px;
        position: relative;
        fill: #fff;
        margin-right: 0;
        margin-left: auto;
        text-align: center;
        vertical-align: middle;
    }

        .form-global-error .close-icon:hover {
            background-color: #fff;
            fill: red;
        }

@media (max-width: 450px) {
    .form-global-error {
        flex-direction: row-reverse;
        align-items: center;
        max-width: 220px;
    }

        .form-global-error .close-icon {
            width: 30px;
            height: 30px;
        }
}

/* ===== CONTACTS ===== */
#contacts {
    padding: 40px 20px;
}

.section-contacts-content {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

@media (max-width: 460px) {
    .section-contacts-content {
        text-align: center;
    }
}

.section-contacts-main {
    box-sizing: content-box;
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    color: #4f4f4f;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 400;
}

.section-contacts-note {
    text-align: center;
    box-sizing: content-box;
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 400;
}

    .section-contacts-note a {
        text-align: center;
        font-size: 20px;
        line-height: 1.55;
        font-weight: 400;
        box-sizing: content-box;
        text-decoration: none;
        color: #0245d6;
    }

.section-contacts-by {
    box-sizing: content-box;
    display: table-cell;
    width: 100%;
    vertical-align: top;
    background-position: center center;
    text-align: center;
}

    .section-contacts-by a {
        box-sizing: content-box;
        text-decoration: none;
        color: #0245d6;
    }

/* ===== SWIPER ===== */

.gallerySwiper {
    width: 100%;
    max-width: 90%;
}

    .gallerySwiper img {
        width: 100%;
        border-radius: 10px;
        cursor: pointer;
        transition: transform 0.25s;
    }

        .gallerySwiper img:hover {
            transform: scale(1.03);
        }

.swiper-slide {
    display: flex;
    justify-content: center;
}

/* ===== IMAGE MODAL ===== */

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

    .image-modal img {
        max-width: 90%;
        max-height: 90%;
        cursor: grab;
        transition: transform 0.1s;
    }

    .image-modal.active {
        display: flex;
    }

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.zoomable {
    cursor: zoom-in;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; /* размер круга */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s ease;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

    .modal-arrow.left {
        left: 20px;
    }

    .modal-arrow.right {
        right: 20px;
    }

    .modal-arrow:active {
        background: rgba(255, 255, 255, 0.2);
    }

    .modal-arrow span {
        display: block;
        width: 20px;
        height: 20px;
        border-top: 3px solid white;
        border-right: 3px solid white;
        box-sizing: border-box;
        transform-origin: center;
    }

    .modal-arrow.right span {
        transform: rotate(45deg);
        margin-right: 10px;
    }

    .modal-arrow.left span {
        transform: rotate(-135deg);
        margin-left: 10px;
    }

/* --- Навигация точки --- */
.modal-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

    .modal-dots span {
        display: block;
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.25s;
    }

        .modal-dots span.active {
            background: white;
        }

/* ===== GO BACK BEGINNING ===== */
.block-go-back-beginning {
    box-sizing: content-box;
    margin: 0;
    padding: 0;
    border: 0;
    position: fixed;
    bottom: 20px;
    min-height: 30px;
    opacity: 1;
    z-index: 99990;
    right: 20px;
    left: unset;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

    .block-go-back-beginning.show {
        opacity: 1;
        visibility: visible;
    }

    .block-go-back-beginning button {
        box-sizing: content-box;
        cursor: pointer;
        display: inline-block;
        height: 50px;
        width: 50px;
        padding: 0;
        background-color: transparent;
        border: none;
        animation-duration: 0.5s;
        animation-fill-mode: both;
        outline: none;
        border-radius: 53px;
        box-shadow: 0px 0px 10px #00000033;
        opacity: 1;
        transform: scale(1);
    }

    .block-go-back-beginning svg * {
        transition: 0.2s ease-in;
    }

    .block-go-back-beginning:hover svg rect {
        fill: #0245d6;
        fill-opacity: 1;
    }

    .block-go-back-beginning:hover svg path {
        stroke: #ffffff;
        stroke-width: 1;
    }

/*===== FORM SUCCES MODAL =====*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.application-form-succes-modal {
    position: relative;
    max-width: 350px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.modal-form-succes-text {
    font-size: 16px;
}