/* =========================================================
   ОСНОВНОЙ БЛОК
   ========================================================= */
.build_text{
    font-size:18px;
}
.house-element-about {
    color: #222;
}

/* =========================================================
   ВСТУПИТЕЛЬНЫЙ ТЕКСТ
   ========================================================= */

.about-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
}

.about-text {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
}

/* Адаптив */
@media (max-width: 767.98px) {
    .about-intro {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .about-text {
        font-size: 18px;
        margin-bottom: 30px;
    }
}

/* =========================================================
   СЕКЦИЯ "ЧТО МЫ СТРОИМ"
   ========================================================= */

.house-element-about {
    color: #222;
}

/* Заголовок */

.house-element-about .house-element-section-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 15px !important;
}

.house-element-about .house-element-section-title > span {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    color: #aaa;
    font-size: xx-large;
}

.house-element-about .house-element-section-title h2 {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 35px;
    font-weight: 700;
}

/* =========================================================
   КАРТОЧКИ
   ========================================================= */

.house-element-card {
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.house-element-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
}

/* Номер карточки */

.house-element-number {
    margin-bottom: 25px;
    color: #aaa;
    font-size: 18px;
}

/* Заголовок карточки */

.house-element-card h3 {
    margin-bottom: 12px;
    font-size: 25px;
    font-weight: 700;
}


.house-element-card {
    border-left: 3px solid #b45336; /* кирпичный цвет */
}

/* =========================================================
   ЗАГОЛОВОК
   ========================================================= */

.house-element-about .house-element-section-title > span {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    color: #aaa;
    font-size: xx-large;
}

.house-element-about .house-element-section-title h2 {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 35px;
    font-weight: 700;
}

/* =========================================================
   БЛОК-СХЕМА
   ========================================================= */

.house-element-process {
    width: 100%;
}

/* =========================================================
   РЯД
   ========================================================= */

.house-element-process__row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* =========================================================
   КАРТОЧКА
   ========================================================= */

.house-element-process__item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: 145px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 14px;
    box-sizing: border-box;
    transition:
        transform .2s ease, box-shadow .2s ease;
}

.house-element-process__item:hover {
    transform: translateY(-3px);
    border-color: #ccc;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
}

/* =========================================================
   ТЕКСТ
   ========================================================= */

.house-element-process__item p {
    margin: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

/* =========================================================
   СТРЕЛКИ МЕЖДУ БЛОКАМИ
   ========================================================= */

.house-element-process__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    color: #b45336;
    font-size: 22px;
    line-height: 1;
}

/* =========================================================
   ВТОРОЙ РЯД НА БОЛЬШОМ ЭКРАНЕ
   ========================================================= */

.house-element-process__row--forward {
    flex-direction: row;
}

.house-element-process__row--backward {
    flex-direction: row-reverse;
}

/* =========================================================
   ПЕРЕХОД МЕЖДУ РЯДАМИ
   ========================================================= */

.house-element-process__turn {
    display: flex;
    justify-content: flex-end;
    height: 45px;
    padding-right: 25px;
    box-sizing: border-box;
}

.house-element-process__turn span {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45336;
    font-size: 25px;
    line-height: 1;
}

/* =========================================================
   РЕЗУЛЬТАТ
   ========================================================= */

.house-element-result {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 25px;
    background: #f8faf9;
    border-radius: 12px;
}

.house-element-result strong {
    flex: 0 0 auto;
}

.house-element-gray {
    background: #f8faf9;
    border-radius: 14px;
}

.house-element-principle{
    border-left: 3px solid #b45336;
    padding-left:10px;
}

/* Карточка рейтингов */
.house-element-stat {
     padding: 25px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.house-element-stat:hover {
    transform: translateY(-3px);
    border-left: 2px solid #b45336;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
}

.house-element-stat strong {
       display: block;
    margin-bottom: 10px;
    font-size: 35px;
    font-weight: 700;
    color: #222;
    transition: color .2s ease;
}

.house-element-stat:hover strong {
    color: #b45336; /* заголовок становится кирпичным при наведении */
}

.house-element-stat span {
     color: #6f6f6f;
    line-height: 1.5;
    font-size: 18px;
}

/* Как работаем */
.house-element-work {
    display: flex;
    gap: 25px;
    height: 100%;
    padding: 30px 20px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.house-element-work > span {
    flex: 0 0 auto;
    color: #aaa;
    font-size: 18px;
}

.house-element-work h3 {
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.house-element-work p {
     margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 18px;
    position: relative;
    z-index: 1;
}



/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (max-width: 1199.98px) and (min-width: 992px) {
    .house-element-process__item {
        padding: 18px 12px;
    }

    .house-element-process__item p {
        font-size: 18px;
        line-height: 1.4;
    }

    .house-element-process__arrow {
        flex: 0 0 25px;
        font-size: 18px;
    }
}

@media (max-width: 991.98px) {
    .house-element-process__row {
        flex-direction: column !important;
    }

    .house-element-process__row--backward {
        flex-direction: column !important;
    }

    .house-element-process__item {
        width: 100%;
        min-height: auto;
        padding: 20px;
    }

    .house-element-process__arrow {
        flex: 0 0 38px;
        width: 100%;
        height: 38px;
        font-size: 0;
    }

    .house-element-process__arrow::after {
        content: "↓";
        display: block;
        color: #b45336;
        font-size: 22px;
        line-height: 1;
    }

    .house-element-process__turn {
        display: flex;
        justify-content: center;
        height: 38px;
        padding: 0;
    }

    .house-element-process__turn span {
        font-size: 25px;
    }
}

/* =========================================================
   МОБИЛЬНЫЙ
   ========================================================= */

@media (max-width: 767.98px) {
    .house-element-about .house-element-section-title {
        gap: 12px !important;
    }

    .house-element-about .house-element-section-title h2 {
        font-size: 35px;
    }

    .house-element-process__item {
        padding: 20px;
    }

    .house-element-process__number {
        margin-bottom: 12px;
    }

    .house-element-result {
        display: block;
    }

    .house-element-result strong {
        display: block;
        margin-bottom: 8px;
    }

    .house-element-section-title h2 {
        font-size: 35px;
    }

    .house-element-card {
        padding: 22px;
    }

    .house-element-stat {
        padding: 18px;
    }

    .house-element-stat strong {
        font-size: 35px;
    }

    .house-element-work {
        padding: 25px 10px;
    }
}

/* Отступы всей страницы "О компании" */
.about-page {
    padding: 60px 0;
}

@media (max-width: 767.98px) {
    .about-page {
        padding: 40px 0;
    }
}

/* =========================================================
   БЛОК "НАША МИССИЯ"
   ========================================================= */

.mission-section {
    padding: 80px 0;
    background-color: #f8faf9;
    text-align: center;
}

.mission-title {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #222;
}

.mission-text {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}

/* Адаптив */
@media (max-width: 991.98px) {
    .mission-section {
        padding: 60px 0;
    }

    .mission-title {
        font-size: 35px;
    }

    .mission-text {
        font-size: 18px;
    }
}

@media (max-width: 767.98px) {
    .mission-section {
        padding: 50px 0;
    }

    .mission-title {
        font-size: 35px;
        margin-bottom: 20px;
    }

    .mission-text {
        font-size: 18px;
        line-height: 1.6;
    }
}

/* =========================================================
   БЛОК С ЦИФРАМИ (горизонтальные строки)
   ========================================================= */

.stats-section {
    padding: 0 0 60px;
    background-color: #f8faf9;
}

.stats-section .section-title {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* Список */
.stats-list {
    max-width: 800px;
    margin: 0 auto;
}

/* Строка */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 18px;
    color: #555;
    padding-right: 20px;
    flex: 0 0 50%;
}

.stat-value {
    font-size: 18px;
    color: #222;
    text-align: right;
    white-space: nowrap;
    flex: 0 0 50%;
}

.stat-value strong {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

/* Адаптив */
@media (max-width: 767.98px) {
    .stats-section {
        padding: 0 0 50px;
    }

    .stats-section .section-title {
        font-size: 35px;
        margin-bottom: 20px;
    }

    .stat-row {
        flex-direction: column;
        gap: 6px;
        padding: 14px 0;
        text-align: center;
        align-items: center;
    }

    .stat-label {
        font-size: 18px;
        padding-right: 0;
        flex: 0 0 auto;
    }

    .stat-value {
        text-align: left;
        white-space: normal;
        font-size: 18px;
        flex: 0 0 auto;
    }

    .stat-value strong {
        font-size: 35px;
    }
}

/* =========================================================
   БЛОК "КОМАНДА"
   ========================================================= */

.team-section {
    padding: 60px 0;
    background-color: #fff;
}

.team-section .section-title {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
}

/* Карточка сотрудника: одна структура .team-photo + .team-info,
   добавление человека = копия блока, CSS править не нужно.
   Задача 16: типографика по spec.md п. 4.3 (дизайнер, 18.10.2026). */
.team-leader {
    display: flex;
    flex-wrap: wrap;          /* узкая карточка — фото встаёт над текстом */
    align-items: center;      /* фото по центру карточки, а не липнет к верху */
    align-content: center;    /* на переносе строки не растягиваются по высоте */
    justify-content: center;
    gap: 20px 24px;
    padding: 30px;
    background: #f8faf9;
    border-radius: 12px;
    border: 1px solid #e2e6e3;
}

.team-photo {
    flex: 0 0 120px;
}

.team-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(56, 62, 66, .12);
}

.team-photo-placeholder {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e5e5;
    border-radius: 50%;
    color: #5f5f5f;
    font-size: 18px;
}

.team-info {
    flex: 1 1 240px;
    min-width: 0;
    text-align: left;
}

.team-name {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.01em;
    font-weight: 700;
    margin-bottom: 4px;
    color: #383e42;
}

.team-position {
    font-size: 15px;
    font-weight: 600;
    color: #3a9f45;
    margin-bottom: 14px;
}

.team-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5257;
    margin: 0;
}

/* Текст про команду */
.team-text {
    padding: 30px;
}

.team-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}

.team-text p:last-child {
    margin-bottom: 0;
}

/* Адаптив */
@media (max-width: 991.98px) {
    .team-section {
        padding: 50px 0;
    }

    .team-leader {
        padding: 24px;
        gap: 16px 20px;
    }

    .team-photo {
        flex: 0 0 100px;
    }

    .team-photo img,
    .team-photo-placeholder {
        width: 100px;
        height: 100px;
    }

    .team-name {
        font-size: 22px;
    }
}

@media (max-width: 767.98px) {
    .team-section {
        padding: 50px 0;
    }

    .team-section .section-title {
        font-size: 35px;
        margin-bottom: 30px;
    }

    .team-leader {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .team-photo {
        flex: 0 0 auto;
    }

    .team-photo img,
    .team-photo-placeholder {
        width: 100px;
        height: 100px;
    }

    .team-info {
        margin-top: 0;
        text-align: center;
    }

    .team-name {
        font-size: 22px;
    }

    .team-position {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .team-desc {
        font-size: 16px;
        text-align: left;
    }

    .team-text {
        padding: 20px;
    }

    .team-text p {
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .team-section {
        padding: 44px 0;
    }

    .team-section .section-title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .team-name {
        font-size: 21px;
    }
}

/* =========================================================
   БЛОК "ЧАСТЫЕ ВОПРОСЫ"
   ========================================================= */

.faq-section {
    padding: 60px 0;
    background-color: #fff;
}

.faq-section .section-title {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
}

/* Список вопросов */
.faq-list {
    max-width: 900px;
    margin: 0;
}

/* Элемент FAQ */
.faq-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
}

.faq-item:last-child {
    margin-bottom: 0;
}

/* Вопрос (summary) */
.faq-question {
    font-size: 18px;
    font-weight: 700;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 50px;
    background: #f8faf9;
    transition: color .2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-item:hover .faq-question {
    color: #b45336;
}

/* Иконка +/- */
.faq-question:after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: #666;
    transition: transform 0.2s;
}

.faq-item:hover .faq-question:after {
    color: #b45336;
}

.faq-item[open] .faq-question:after {
    content: "−";
    transform: translateY(-50%) scale(1.1);
}

/* Ответ */
.faq-answer {
    padding: 20px;
    font-size: 18px;
    line-height: 1.7;
    color: #444;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 12px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 6px;
    color: #444;
    font-size: 18px;
}

/* Адаптив */
@media (max-width: 991.98px) {
    .faq-section {
        padding: 50px 0;
    }

    .faq-question {
        font-size: 18px;
        padding: 16px 18px;
    }

    .faq-answer {
        padding: 18px;
        font-size: 18px;
    }
}

@media (max-width: 767.98px) {
    .faq-section {
        padding: 50px 0;
    }

    .faq-section .section-title {
        font-size: 35px;
        margin-bottom: 20px;
    }

    .faq-list {
        max-width: 100%;
    }

    .faq-item {
        border-radius: 10px;
    }

    .faq-question {
        font-size: 18px;
        padding: 14px 16px;
        padding-right: 45px;
    }

    .faq-question:after {
        font-size: 20px;
        right: 16px;
    }

    .faq-answer {
        padding: 16px;
        font-size: 18px;
    }
}

/* =========================================================
   ЗАДАЧА 16, 18.10.2026 (frontend): сетка команды + фикс переполнения.
   Блок самодостаточный — можно удалить целиком, ничего другого не заденет.
   ========================================================= */

/* --- 1. Карточки команды в колонке: 2 в ряд на десктопе, 1 на телефоне.
   Добавление человека = копия .team-leader в .team-cards, CSS не меняется. --- */
.team-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .team-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* одна карточка (как сейчас, только Сергей) занимает всю ширину колонки */
    .team-cards > .team-leader:only-child {
        grid-column: 1 / -1;
    }

    /* карточка в паре уже — padding меньше, иначе текст в «колодец» */
    .team-cards > .team-leader:not(:only-child) {
        padding: 24px;
    }
}

/* --- 2. Блок «Почему нам доверяют» (/about/, инклюд about_us_main.php):
   на телефоне слово «Гарантия» (35px) и «100%» не влезали в карточку
   и распирали страницу (scrollWidth 408 при clientWidth 390). --- */
@media (max-width: 575.98px) {
    .house-element-stat {
        padding: 16px 12px;
    }

    .house-element-stat strong {
        font-size: 26px;
        overflow-wrap: anywhere;
    }

    .house-element-stat span {
        font-size: 15px;
    }
}