* {
    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;
    gap: 40px;
    margin-left: 40px;
}

    .nav a {
        text-decoration: none;
        line-height: 1.55;
        font-weight: 600;
        font-size: 16px;
        color: #000;
        transition: 0.2s;
    }

        .nav a:hover {
            color: #00bfff;
        }

/* ===== 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: #00bfff;
    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: #00bfff;
    }

/* ===== 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: 30px 40px;
        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: #00bfff;
        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: #00bfff;
}

/* ===== 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: 5px;
}

.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;
    line-height: 1.55;
    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: #00bfff;
    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: 220px;
        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);
        }

/* ===== ID DESCRIPTION===== */
#descriptions {
    padding-top: 40px;
    padding-bottom: 100px;
}

/* ===== SECTION DESCRIPTION ====== */
.section-description-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

.block-description {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 600px;
    color: #000;
    font-size: 16px;
    line-height: 1.55;
}

.section-description-logo img {
    height: 490px;
}

@media (max-width: 1100px) {
    .section-description-grid {
        grid-template-columns: 1fr;
    }

    .block-description {
        max-width: none;
    }

    .section-description-logo img {
        display: none;
    }
}

.section-description-main {
    color: #4f4f4f;
    font-size: clamp(18px, 4vw, 20px);
    line-height: 1.55;
    font-weight: 400;
    align-items: start;
}

    .section-description-main span {
        color: #00bfff;
    }

.section-description-button {
    width: 100%;
    display: flex;
    align-items: start;
}

    .section-description-button a {
        cursor: pointer;
        z-index: 2;
        width: 195px;
        padding: 10px 10px;
        box-sizing: content-box;
        text-decoration: none;
        color: #00bfff;
        font-size: 14px;
        font-weight: 600;
        border-width: 3px;
        border-radius: 10px;
        background-position: center center;
        border-color: #00bfff;
        border-style: solid;
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
        text-align: center;
    }

        .section-description-button a:hover {
            background-color: #00bfff;
            background-image: none;
            border-color: #00bfff;
            color: #ffffff;
        }

@media (max-width: 1100px) {
    .section-description-button {
        justify-content: center;
    }

        .section-description-button a {
            padding: 10px 5px;
        }
}

/* ===== FOR WHOM ===== */
.section-for-whom-grid {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    margin: 0 auto;
    padding: 20px;
}

.for-whom-column {
    width: 100%;
}

.faq-item {
    border-top: 1px solid #eee;
}

.for-whom-column .faq-item:last-child {
    border-bottom: 1px solid #eee;
}

.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: #4f4f4f;
    text-align: start;
}

.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: #eee;
}

.faq-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #4f4f4f;
    left: 50%;
    top: 50%;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

    .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: #4f4f4f;
    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) {
    .section-for-whom-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .faq-header {
        padding: 10px 0;
    }

    .faq-item.active .faq-content {
        padding-bottom: 10px;
    }
}

/* ===== APPLICATION FORM ===== */
.section-application-form {
    width: 100%;
    max-width: 1200px;
}

#request-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #4f4f4f;
    margin: 0 auto;
    max-width: 850px;
}

    #request-form button {
        background: transparent;
        box-sizing: border-box;
        outline: none;
        text-align: center;
        white-space: nowrap;
        position: relative;
        color: #ffffff;
        border: 2px solid #00bfff;
        border-radius: 10px;
        font-size: 14px;
        cursor: pointer;
        background-color: #00bfff;
        padding: 0px 15px;
        display: block;
        width: 160px;
        font-weight: 600;
        height: 50px;
        margin-left: auto;
        margin-right: auto;
    }

        #request-form button:hover {
            background-color: #ffffff;
            color: #00bfff;
        }

    #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;
    }

    #request-form fieldset {
        display: flex;
        flex-direction: column;
        gap: 5px;
        border: none;
    }

        #request-form fieldset label {
            visibility: visible;
            cursor: pointer;
            font-size: 18px;
            font-weight: 400;
            box-sizing: content-box;
            word-break: break-word;
        }

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    color: #4f4f4f;
    font-family: 'PT Sans', sans-serif;
    padding: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    border: 2px solid #4f4f4f;
    opacity: 0.6;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.checkbox-input:checked + .checkbox-box {
    border-color: #000;
    opacity: 1;
}

    .checkbox-input:checked + .checkbox-box::after {
        content: '';
        position: absolute;
        width: 3px;
        height: 8px;
        border-style: solid;
        border-width: 0 2px 2px 0;
        border-color: #000;
        transform: rotate(45deg);
        left: 6px;
        top: 2px;
    }

.checkbox-label {
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    color: rgb(79, 79, 79);
    box-sizing: content-box;
    word-break: break-word;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 18px;
    position: relative;
}

    .form-field .input-error {
        display: none;
    }

    .form-field .checkbox-error {
        display: none;
    }

    .form-field input {
        box-sizing: border-box;
        line-height: 1.33;
        outline: none;
        padding: 0 20px;
        width: 100%;
        color: rgb(79, 79, 79);
        border: 1px solid rgb(79, 79, 79);
        border-radius: 10px;
        font-size: 14px;
        font-weight: 400;
        height: 50px;
    }

    .form-field .iti {
        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: #4f4f4f;
    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: 400;
        box-sizing: content-box;
        color: #ff8562;
        text-decoration: none;
    }

.checkbox.error {
    border-width: 1px;
    border-style: solid;
    border-color: red;
    opacity: 1;
}

.form-field.error input {
    border-color: red;
}

.form-field.error .input-error,
.checkbox-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,
    .checkbox-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{
        max-width: 220px;
    }
}

/*===== 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;
}

/* ===== CONTACTS ===== */
#contacts {
    padding-top: 40px;
    padding-bottom: 40px;
}

.section-contacts-content {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.section-contacts-main {
    box-sizing: content-box;
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    color: #4f4f4f;
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1.55;
    font-weight: 400;
}

@media (max-width: 600px) {
    .section-contacts-content {
        justify-content: center;
        align-items: center;
    }

    .section-contacts-main {
        width: 226px;
    }
}

.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: clamp(18px, 4vw, 20px);
        line-height: 1.55;
        font-weight: 400;
        box-sizing: content-box;
        text-decoration: none;
        color: #ffffff;
    }

.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: #ffffff;
    }

/* ===== 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: #0085ad;
        fill-opacity: 1;
    }

    .block-go-back-beginning:hover svg path {
        stroke: #ffffff;
        stroke-width: 1;
    }
