.container {
    max-width: 767px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* === ШАПКА === */
.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: white;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: -1;
}

/* Специальные стили для iOS Safari */
@supports (-webkit-touch-callout: none) {
    .header {
        background: white !important;
        background-color: white !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-perspective: 1000 !important;
        perspective: 1000 !important;
        will-change: transform !important;
    }
}

/* Специальные стили для Яндекс.Браузера */
@supports (-webkit-appearance: none) and (not (overflow: -webkit-marquee)) and (not (-ms-ime-align: auto)) and (not (-moz-appearance: none)) {
    .header {
        background: white !important;
        background-color: white !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        isolation: isolate !important;
    }
}

/* Дополнительные стили для Яндекс.Браузера */
.header {
    background: white !important;
    background-color: white !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Специальные стили для Safari (десктоп и мобильный) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    _::-webkit-full-page-media, _:future, :root .header {
        background: white !important;
        background-color: white !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-perspective: 1000 !important;
        perspective: 1000 !important;
        will-change: transform !important;
    }
}

/* Дополнительные стили для Safari */
@supports (-webkit-appearance: none) {
    .header {
        background: white !important;
        background-color: white !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-perspective: 1000 !important;
        perspective: 1000 !important;
        will-change: transform !important;
    }
}


/* === БУРГЕР-МЕНЮ === */
.header__nav {
    display: none;
}

.header__burger {
    flex: 0;
    display: flex;
    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;
    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__button {
    display: none;
}

/* Показываем переключатель языков на мобильных */
.lang {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.lang a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.lang a.is-active {
    color: #000;
    font-weight: 600;
}

.lang a:not(.is-active) {
    color: #666;
}

.lang a:hover {
    color: #000;
}

/* === ШТОРКА МОБИЛЬНОГО МЕНЮ ===*/
.header__mobile-nav {
    position: fixed;
    top: 50px; /* высота фиксированного хедера */
    right: -100%; /* скрываем меню */
    width: 100%; /* ширина выхода меню */
    height: calc(100vh - 50px); /* высота минус высота хедера */
    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;
    justify-content: flex-start; /* сдвигаем к верху */
    visibility: hidden; /* дополнительное скрытие */
}

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

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

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

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

/* Блокировка скролла при открытом меню */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}



/* === ОСНОВНОЙ КОНТЕНТ === */
.main {
    margin-top: 50px; /* Высота хедера */
}

.hero__content {
    padding: 0 20px;
}





/* === ПРЕИМУЩЕСТВА === */
#benefits {
    padding: 40px 0;
}

#benefits .section__content {
    padding: 0 20px;
}

#benefits h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

#benefits .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0;
}

#benefits .card {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

#benefits .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3c70d8;
}

#benefits .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(60, 112, 216, 0.15);
}

#benefits .card h3 {
    color: #3c70d8;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

#benefits .card p {
    color: #666;
    line-height: 1.5;
    font-size: 15px;
}

/* === ВРЕМЕННАЯ ШКАЛА === */
#process {
    padding: 40px 0;
}

#process .section__content {
    padding: 0 20px;
}

#process h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

.timeline {
    padding-left: 22px;
}

.timeline::before {
    left: 15px;
    top: 10px;
    bottom: 130px;
    width: 2px;
    border-radius: 1px;
    z-index: 1;
}

.timeline__item {
    margin-bottom: 30px;
    padding-left: 25px;
}

.timeline__number {
    left: -20px;
    top: 3px;
    width: 30px;
    height: 30px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid white;
}

.timeline__content {
    padding: 20px 20px;
    border-radius: 12px;
}

.timeline__content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.timeline__content p {
    font-size: 14px;
    line-height: 1.5;
}

/* === ГАРАНТИЯ === */
#guarantee {
    padding: 40px 0;
}

#guarantee .section__content {
    padding: 0 20px;
}

#guarantee h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

.guarantee__content {
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
}

.guarantee__content p {
    font-size: 16px;
    line-height: 1.6;
}

/* === ФОРМА ОБРАТНОЙ СВЯЗИ === */
#cta {
    padding: 40px 0;
}

#cta .section__content {
    padding: 0 20px;
}

#cta h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

.contact-form {
    padding: 25px 20px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 6px;
    font-size: 15px;
}

.form-input,
.form-textarea,
.form-select {
    padding: 12px 15px;
    font-size: 15px;
}

.form-textarea {
    min-height: 80px;
}

.form-submit {
    height: 50px;
    font-size: 16px;
}

.form-hint {
    margin-top: 15px;
    font-size: 13px;
}

.form-error,
.form-success {
    padding: 12px;
    margin-top: 15px;
    font-size: 14px;
}

/* === FAQ === */
#faq {
    padding: 40px 0;
}

#faq .section__content {
    padding: 0 20px;
}

#faq h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

.faq__content {
    border-radius: 15px;
}

.faq__question {
    padding: 20px 20px;
    font-size: 16px;
}

.faq__question::before {
    right: 20px;
    font-size: 20px;
}

.faq__answer {
    padding: 0 20px 20px 20px;
}

.faq__answer p {
    font-size: 15px;
    line-height: 1.5;
}

/* === СПЕЦИАЛИСТЫ === */
#team {
    padding: 30px 0;
    min-height: auto; /* переопределяем десктопный min-height */
}

#team .section__content {
    padding: 0 20px;
}

#team h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

#team .team__card {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    align-items: center;
    min-height: 120px; /* одинаковая высота карточек */
}

#team .team__card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* вертикальная центровка текста */
}

#team .team__card-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

#team .team__card-image img,
#team .team__card-image svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

#team .team__card-content-title h3 {
    font-size: 16px;
    margin-bottom: 3px;
    color: #3c70d8;
}

#team .team__card-content-title p {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

#team .team__card-content-text p {
    font-size: 12px;
    color: #888;
}