/* === ШАПКА === */
.site-header__container {
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header__logo {
    flex: 1;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__menu {
    display: none;
}

.header__button {
    flex: 0;
}

.header__burger {
    flex: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border: 2px solid #000;
    border-radius: 8px;
    background-color: #fff;
    padding: 6px;
    margin-left: 10px;
    gap: 4px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header__burger span {
    display: block;
    height: 2px;
    width: 20px;
    background-color: #000;
    border-radius: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.header__burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4.25px, 4.25px);
}

.header__burger.open span:nth-child(2) {
    opacity: 0;
}

.header__burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4.25px, -4.25px);
}

.header__burger.open {
    background-color: #000;
    border-color: #000;
}

.header__burger.open span {
    background-color: #fff;
}



/* === Мобильное меню === */
.header__mobile-nav {
    position: fixed;
    top: 60px; /* высота отступа от шапки */
    right: -100%; /* скрываем меню */
    width: 100%; /* ширина выхода меню */
    height: 100%; /* высота выхода меню */
    background: #fff;
    padding: 32px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 999;
    align-items: flex-end;
}

.header__mobile-nav.open {
    right: 0;
}

.header__mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right; /* выравнивание текста по правому краю */
}

.header__mobile-nav a {
    text-decoration: none;
    color: #000;
    text-align: right; /* выравнивание текста по правому краю */
    font-size: 28px; /* как h5 на мобильных */
    font-weight: 500; /* как h5 */
    line-height: 1.4; /* как h5 */
}

.header__mobile-nav li {
    padding-bottom: 8px;
}

.header__button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border: 2px solid #000;
    background-color: #000;
    height: 36px;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
}

.header__button-link {
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 6px;
    box-sizing: border-box;
}

.header__nav {
    display: none;
}

.site-header__container {
    justify-content: space-between;
}



/* === НАЧАЛО ОСНОВНОГО КОНТЕКТА === */
.site-main {
    flex: 1;
}

.container.site-main__container {
    display: block;
    justify-content: center;
    margin-top: 20px;
    padding: 0 20px;
}

.main-about__container {
    display: flex;
    flex-direction: column;
    align-items: start;
    height: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #f3f3f3;
    margin: 0 0 60px 0;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    border-radius: 32px;
}

.main-about__image {
    display: none !important;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.main-about__content {
    align-items: start;
    justify-content: start;
    max-width: 100%;
    margin: 0;
}

.main-about__content h1 {
    color: #000;
    max-width: 100%;
    margin: 16px 0;
}

.main-about__content p {
    color: #000;
    max-width: 100%;
    text-align: left;
    margin: 0;
}

.section-divider__title {
    display: flex;
    padding: 8px 20px;
    white-space: normal;
    /* разрешить перенос строк на маленьком экране */
    text-align: left;
    justify-content: flex-start;
    border-radius: 16px;
}



/* === КОМАНДА === */
.about-co-card {
    padding: 30px 0 60px 0;
}

.advantages-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 0 60px 0;
}

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

.about-co-card_desc-left {
    padding: 30px;
}

.about-co-card_desc-right {
    display: none;
}



/* === КАРТОЧКИ УСЛУГ === */
.services-grid {
    padding: 30px 0 60px 0;
}

.service-card:hover {
    transform: none;
    box-shadow: none;
}

.service-card-content {
    padding: 20px;
}

.service-card-title h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.service-card-title span {
    font-size: 22px;
}

.service-card-desc {
    margin-top: 0;
    margin-bottom: 10px;
}

.service-card-img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 150px;
}

.service-card-img img {
    height: 120px;
    width: 120px;
    object-fit: cover;
    max-height: 100%;
}

.service-card-more img {
    height: 30px;
}

.service-card a {
    color: #000;
    text-decoration: none;
}

/* === КАК МЫ РАБОТАЕМ === */
.work-steps {
    padding: 30px 0 60px 0;
    gap: 32px;
}

.work-steps_item {
    display: flex;
    flex-direction: row;
}

.work-steps_item {
    display: flex;
    align-items: start;
    padding: 30px;
    gap: 15px;
}

.work-steps_number span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #181818;
    color: #c1ff5f;
    font-size: 25px;
    margin-top: 5px;
}

.work-steps_desc h3 {
    hyphens: none;
}

.work-steps_desc p {
    margin-left: -65px;
}




/* === БЛОК «КОНСУЛЬТАЦИЯ» === */
.consult-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0 40px 0;
    padding: 30px;
    border-radius: 32px;
    background-color: #f3f3f3;
}

.consult-block__form {
    flex: 1;
    margin: 0;
}

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

.consult-form label {
    margin-bottom: 4px;
    color: #000;
}

.consult-form__input,
.consult-form__textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
    margin-top: -10px;
    padding: 12px;
    border: 1px solid #111;
    border-radius: 8px;
    background-color: #fff;
}

/* Специальные стили для select элемента на iOS */
.consult-form select {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
    padding: 12px;
    border: 1px solid #111;
    border-radius: 8px;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.consult-form__textarea {
    min-height: 100px;
    resize: vertical;
}

.consult-block__image {
    display: none;
}

.consult-form__button {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: #000;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consult-form__button:hover {
    background-color: #333;
}

.consult-form__privacy {
    color: #666;
}



/* === КАПЧА === */




/* === ФУТЕР === */
.site-footer__container {
    padding: 0 20px;
}