/* ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ */
html {
    scroll-behavior: smooth; /* Включает плавную анимацию скролла по якорным ссылкам */
}

:root {
    --primary-color: #006633; /* Фирменный зеленый */
    --primary-dark: #004d26;
    --orange-color: #ff6600; /* Оранжевый для кнопок */
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --bg-light: #f9f9f9;
    --border-color: #e5e5e5;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.5;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* КНОПКИ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
	text-decoration: none;
}

.btn--primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--primary-dark);
}

.btn--outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn--outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--orange {
    background-color: var(--orange-color);
    color: #fff;
    padding: 15px 40px;
    font-size: 16px;
}

.btn--orange:hover {
    background-color: #e05500;
}

/* ШАПКА СЙТА */
.header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Стили для ссылки-логотипа */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none; /* Убираем подчеркивание, если оно наследуется */
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85; /* Легкий эффект при наведении */
}

/* Ограничиваем размеры самого PNG изображения */
.logo__img {
    height: 40px;      /* Задайте высоту, которая лучше всего подходит под ваш макет */
    width: auto;       /* Ширина подстроится автоматически с сохранением пропорций */
    display: block;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.nav__link.active, .nav__link:hover {
    color: var(--primary-color);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
}

.lang {
    cursor: pointer;
    color: var(--text-gray);
	text-decoration: none;
}

.langlink {
	text-decoration: none;
}	
	
.lang.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* ГЛАВНЫЙ ЭКРАН */
.hero-section {
    padding: 30px 0;
    overflow: hidden;
}

.hero-section__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /*align-items: center;*/
	align-items: stretch;
    gap: 40px;
}

.hero-content {
    align-self: start;
}




.badge {
    background-color: #e6f2ec;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-text {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 25px;
}

.hero-features {
    list-style: none;
    margin-bottom: 30px;
}

.hero-features li {
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    color: #fff;
    background-color: var(--primary-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Контейнер для картинок делаем относительным */
.hero-images {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px; /* Минимальная высота, чтобы картинки не сжимались */
	max-height: 550px;   /* Ограничиваем максимальную высоту композиции */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фоновая картинка с домами */
.hero-images__bg {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 1; /* Задний план */
}


/* Картинка телефона, которая накладывается поверх */
.hero-images__phone {
    position: absolute;
    left: 10%; /* Смещение влево, чтобы заходить на фон и быть ближе к тексту */
    /*bottom: -20px; /* Можно немного "утопить" или приподнять телефон */*/
    max-width: 320px; /* Ограничиваем ширину смартфона */
    height: auto;
    z-index: 2; /* Передний план (поверх домов) */
    
    /* Эффект красивой тени для реалистичности */
    filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.15));

	object-fit: contain; /* КЛЮЧЕВОЕ: если контейнер сжимается, телефон пропорционально уменьшается, не вылезая за границы */
    width: auto;         /* Позволяет ширине уменьшаться пропорционально */
    height: 100%;        /* Занимает всю доступную высоту контейнера */
    bottom: 0;           /* Привязываем строго к нижнему краю */
    top: 0;              /* И к верхнему краю, задавая рамки высоты */	
}

.mockup-placeholder {
    width: 280px;
    height: 550px;
    background: #ccc; /* Здесь будет картинка телефона */
    border-radius: 30px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ЗАГОЛОВКИ СЕКЦИЙ */
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* ЧТО ВЫ МОЖЕТЕ ПУБЛИКОВАТЬ */
.features-section {
    padding: 30px 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center; /* Центрируем текст внутри карточки */
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем flex-элементы по горизонтали */
    transition: box-shadow 0.3s;
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-card__icon-wrapper {
    width: 48px;          
    height: 48px;         
    display: flex;
    align-items: center;
    justify-content: center; /* Выравниваем PNG-иконку строго по центру */
    margin-bottom: 20px;  
}

/* Сама PNG иконка внутри карточки */
.feature-card__icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;  
    display: block;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
}

/* КАК ЭТО РАБОТАЕТ */
.steps-section {
    padding: 30px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
	margin-top: 30px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px auto;
    background-color: #fff;
}

.step-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 13px;
    color: var(--text-gray);
}

/* ФОРМА (ОБЛАСТЬ СТА) */
.cta-section {
	padding-left: 0;
	padding-right: 0;
    padding-top: 60px;
	padding-bottom: 20px;
}

/* Основной контейнер формы */
.cta-container {
    background-color: var(--primary-color);
    border-radius: 20px;
    color: #fff;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    overflow: hidden;
    padding: 60px;
    max-width: 1160px;   
    margin: 0 auto;       
    
    /* Важно: создаем контекст наложения, чтобы контент был выше прозрачного фона */
    position: relative; 
    z-index: 1;
}

/* Псевдоэлемент, который отвечает ТОЛЬКО за картинку на фоне */
.cta-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Настройки картинки */
    background-image: url('images/cta-buildings.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    
    /* НАСТРОЙКА ПРОЗРАЧНОСТИ: 0 — полностью невидимая, 1 — обычная. 
       Значение 0.3 сделает её мягкой, ненавязчивой подложкой (30% видимости) */
    opacity: 0.3; 
    
    /* Отправляем картинку под текст формы */
    z-index: -1; 
}


.cta-form-wrapper h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-form-wrapper p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

/* Базовые стили для всех полей ввода в форме */
.cta-form input,
.form-textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-family: var(--font-main); /* Передаем шрифт */
}

/* Стили конкретно для многострочного комментария */
.form-textarea {
    grid-column: 1 / -1; /* Растягивает поле на всю ширину сетки (обе колонки) */
    resize: vertical;    /* Разрешаем пользователю менять высоту поля только по вертикали */
    min-height: 100px;   /* Задаем минимальную комфортную высоту */
}

/* ПРЕИМУЩЕСТВА */
.benefits-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;	
}

/* Контейнер-обертка для PNG-иконки */
.benefit-icon-wrapper {
    width: 32px;          /* Оптимальный размер для мелких иконок преимуществ */
    height: 32px;         
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;       /* Запрещаем иконке сжиматься, если текст рядом длинный */
}

.benefit-icon {
    font-size: 24px;
	
	max-width: 100%;
    max-height: 100%;
    object-fit: contain;  /* Сохраняет пропорции без искажений */
    display: block;	
	
}

.benefit-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.benefit-item p {
    font-size: 13px;
    color: var(--text-gray);
}

/* ПОДВАЛ */
.footer {
    padding: 30px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Контейнер для логотипа в футере */
.logo-footer {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo-footer:hover {
    opacity: 0.85;
}

/* Настройка размеров PNG-картинки в футере */
.logo-footer__img {
    height: 32px;       /* В подвале логотип обычно делают чуть компактнее, чем в шапке */
    width: auto;        /* Пропорции сохраняются автоматически */
    display: block;
    object-fit: contain;
}

/* АДАТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 992px) {
    /* Перестраиваем главный экран в одну колонку */
    .hero-section__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    /* Выравниваем элементы текста по центру на мобилках */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-features li {
        text-align: left; /* Чтобы галочки и текст списка оставались ровными */
    }

	/* Контейнер картинок */
    .hero-images {
        display: block;
        position: relative;
        width: 100%;
        max-width: 450px; 
        height: 420px; /* Немного увеличили высоту, чтобы композиция смотрелась свободнее */
        margin: 40px auto 0 auto; 
    }

	/* Фоновые дома (смещаем чуть вправо, чтобы освободить центр) */
    .hero-images__bg {
        position: absolute;
        right: -10px;
        bottom: 0;
        width: 80%;       
        max-height: 90%;
        object-fit: contain;
        z-index: 1;
    }

	/* Телефон — теперь строго ПО ЦЕНТРУ */
    .hero-images__phone {
        position: absolute;
        left: 50%; /* Сдвигаем левый край картинки ровно на середину контейнера */
        transform: translateX(-50%); /* Сдвигаем сам телефон обратно влево на половину его собственной ширины */
        bottom: -10px;
        width: 55%; /* Оптимальный размер для мобильного экрана */
        max-width: 220px;
        height: auto;
        z-index: 2; /* Гарантированно поверх домов */
    }

    /* Остальные адаптивные стили для формы и карточек */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
	.benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }	
	.benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }	
    .form-grid {
        grid-template-columns: 1fr;
		gap: 12px; /* Чуть уменьшаем расстояние между инпутами для компактности */
    }
	
	.cta-container {
        grid-template-columns: 1fr;
        padding: 40px 20px; 
        margin: 0 15px; 
        border-radius: 16px;
    }

    /* Настраиваем прозрачный фон для мобилок */
    .cta-container::before {
        background-position: right bottom; /* Прижимаем к правому нижнему углу */
        background-size: 60%;               /* Размер картинки на мобильном */
        opacity: 0.25;                      /* На мобилке можно сделать еще чуть бледнее, чтобы инпуты читались идеально */
    }
		
    .cta-image {
        display: none;
    }
	.cta-form input {
        padding: 12px; /* Немного уменьшаем высоту инпутов на мобилке */
		background-color: rgba(255, 255, 255, 0.95); /* Белый фон инпута на 95% плотности */
    }	
    .header__container {
        flex-direction: column;
        gap: 15px;
    }
	
	.footer__container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

	.footer-links {
        display: flex;
        flex-direction: column; /* На мобилке ссылки в футере встанут аккуратно друг под друга */
        gap: 10px;
    }
    
    .footer-links a {
        margin-left: 0; /* Сбрасываем десктопный отступ */
    }	
	
	/* Навигация встает в ГОРИЗОНТАЛЬНЫЙ ряд по центру, прямо под логотипом */
    .nav {
        flex-direction: row;       /* Принудительно задаем горизонтальный ряд */
        flex-wrap: wrap;           /* Разрешаем перенос на мобильных, если ссылки не влезают */
        justify-content: center;   /* Центрируем ссылки по горизонтали */
        gap: 15px 25px;            /* Отступы: 15px между строками (если перенесутся) и 25px между ссылками */
        width: 100%;               /* Занимает всю ширину для корректного центрирования */
    }
	
	/* Делаем ссылки чуть крупнее для удобного тапа пальцем */
    .nav__link {
        font-size: 15px;
        padding: 5px 0;
    }
	
	/* Шапка выстраивает элементы сверху вниз (Логотип -> Навигация -> Кнопка) */
    .header__container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
	
	/* Блок с переключателем языка и кнопкой также центрируем в самом низу шапки */
    .header__actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 20px;
    }	
	
}

@media (max-width: 480px) {
    /* Дополнительная полировка для совсем маленьких экранов (смартфоны вертикально) */
    .hero-title {
        font-size: 28px;
    }
	.hero-images {
        height: 340px; /* Корректируем высоту под маленькие экраны */
    }
    .features-grid {
        grid-template-columns: 1fr; /* Карточки встают в один ряд */
    }
	/* Для самых маленьких экранов уменьшаем отступы, чтобы всё аккуратно помещалось */
    .nav {
        gap: 10px 15px;
    }
    .nav__link {
        font-size: 14px;
    }
	.form-textarea {
        grid-column: auto; /* Сбрасываем растяжение для мобильной одной колонки */
        min-height: 80px;  /* На смартфонах делаем чуть компактнее */
    }	
}

/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ "ДЛЯ ЖИТЕЛЕЙ"
   ========================================================================== */

/* Кнопки App Store и Google Play */
.store-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.store-btn img {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.store-btn:hover img {
    transform: scale(1.03);
}

/* Сетка возможностей для жителей (4 колонки на десктопе вместо 5) */
.features-grid-residents {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИИ ОПИСАНИЯ */
.app-screens-section {
    padding: 60px 0;
    background-color: #fafafa; /* Легкий серый фон для визуального разделения блоков */
}

/* Вводный крупный абзац */
.app-intro-text {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-dark);
}



.screens-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.screen-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.screen-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0px 10px 25px rgba(0,0,0,0.08));
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.screen-item:hover .screen-img {
    transform: translateY(-5px);
}

.screen-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ГОРИЗОНТАЛЬНАЯ ФОРМА ОБРАТНОЙ СВЯЗИ */
.cta-container-residents {
    background-color: #e6f2ec; /* Светлый серо-зеленый фон плашки по макету жителей */
    border-radius: 20px;
    color: var(--text-dark);
    padding: 40px;
    max-width: 1160px;
    margin: 0 auto;
}

.cta-residents-content h2 {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.cta-residents-content p {
    font-size: 15px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 30px;
}

/* Сетка инпутов в один ряд */
.form-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Комментарий и кнопка занимают нижний ряд */
.form-horizontal-grid .input-comment {
    grid-column: span 2;
}

.cta-form-horizontal input {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    width: 100%;
    color: var(--text-dark);
}

.btn--orange-horizontal {
    background-color: var(--primary-color); /* Зеленая кнопка "Отправить" по макету жителей */
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: background-color 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn--orange-horizontal:hover {
    background-color: var(--primary-dark);
}










/* ==========================================================================
   СЕКЦИЯ ОПИСАНИЯ С КАРТИНКОЙ НА ФОНЕ КОНТЕЙНЕРА
   ========================================================================== */
.app-screens-section {
    padding: 50px 0;
    background-color: #fafafa;
    overflow: hidden;
}

/* ЗАДАЕМ ФОН ДЛЯ ОГРАНИЧЕННОГО КОНТЕЙНЕРА (1200px) */
.app-text-image-container {
    background-image: url('images/residents-description-img.png');
    background-repeat: no-repeat;
    background-position: right center; /* Картинка прижата к правому краю внутри 1200px */
    background-size: contain;          /* Занимает всю высоту контейнера */
}

/* Ограничиваем ширину текста, создавая контролируемое наложение */
.app-text-col {
    max-width: 680px; /* Текст доходит примерно до середины картинки */
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
    
    /* Эффект матового стекла (blur) и легкая прозрачность, чтобы текст идеально читался поверх картинки */
    background-color: rgba(250, 250, 250, 0.82); 
    padding: 30px 30px 30px 0; /* Делаем отступы, но слева оставляем 0, чтобы выровнять по сетке сайта */
    backdrop-filter: blur(6px); 
}

/* Заголовок, выровненный по левому краю */
.section-title-left {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.2;
}

/* Абзацы текста */
.app-paragraph {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Вводный лид-абзац (крупнее) */
.app-paragraph--lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Финальный призыв к действию */
.app-paragraph--highlight {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Внутренний блок-уведомление ("Но для этого...") */
.app-notice-box {
    background-color: #ffffff;
    border-left: 4px solid var(--orange-color); 
    padding: 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.app-notice-box p:first-child {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 15px;
}

/* Адаптивность для мобильных версий (меньше 992px) */
@media (max-width: 992px) {
    .app-text-image-container {
        /* На мобильных фиксируем картинку по центру, но делаем её крупной */
        background-position: right 40px bottom 20px;
        background-size: 340px; /* Увеличиваем размер телефона, чтобы он не сжимался сильно */
        position: relative;
    }
    
    .app-screens-section {
        /* Оставляем padding снизу чуть меньше, так как текст теперь будет накладываться поверх */
        padding: 50px 0 180px 0; 
    }
    
    .app-text-col {
        max-width: 100%;
        text-align: center;
        
        /* ВОЗВРАЩАЕМ ЭФФЕКТ МАТОВОГО СТЕКЛА НА МОБИЛКУ: */
        background-color: rgba(250, 250, 250, 0.88); /* Чуть плотнее, чтобы на фоне картинок текст читался идеально */
        padding: 30px 20px; /* Внутренние отступы, чтобы текст не прижимался к краям заблюренной плашки */
        border-radius: 16px;
        backdrop-filter: blur(1px); /* Эффект сильного размытия заднего плана */
        -webkit-backdrop-filter: blur(1px); /* Поддержка для Safari на iOS */
        
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Легкая тень для отделения плашки от картинки под ней */
        
        /* Сдвигаем блок немного вниз, чтобы он визуально перекрывал верхнюю часть телефона */
        margin-bottom: -120px; 
        position: relative;
        z-index: 5;
    }
    
    .section-title-left {
        text-align: center;
        font-size: 26px;
    }
    
    .app-notice-box {
        /* Центрируем оранжевую линию на мобилках сверху для красоты */
        border-left: none;
        border-top: 4px solid var(--orange-color);
        border-radius: 0 0 8px 8px;
        text-align: center;
    }
}

/* Дополнительное выравнивание для совсем маленьких экранов (меньше 480px) */
@media (max-width: 480px) {
    .app-text-image-container {
        background-size: 290px; /* На совсем узких телефонах чуть уменьшаем, чтобы не вылезала за края */
    }
    .app-screens-section {
        padding-bottom: 140px;
    }
    .app-text-col {
        margin-bottom: -100px;
    }
}














/* ==========================================================================
   АДАПТИВНЫЕ ПРАВКИ ДЛЯ СТРАНИЦЫ ЖИТЕЛЕЙ
   ========================================================================== */
@media (max-width: 992px) {
    .store-buttons {
        justify-content: center;
    }

    .features-grid-residents {
        grid-template-columns: repeat(2, 1fr);
    }

    .screens-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .form-horizontal-grid {
        grid-template-columns: 1fr;
    }

    .form-horizontal-grid .input-comment {
        grid-column: auto;
    }
    
    .btn--orange-horizontal {
        padding: 14px;
    }
}

@media (max-width: 560px) {
    .features-grid-residents,
    .screens-grid {
        grid-template-columns: 1fr;
    }
    
    .screen-img {
        max-width: 160px;
    }
}


/* ==========================================================================
   ЦЕНТРИРОВАНИЕ БЛОКА ПОДДЕРЖКИ
   ========================================================================== */

.support-content-section {
    padding: 40px 0 60px 0;
    background-color: #fafafa;
}

/* Перестраиваем общую сетку для выравнивания по центру */
.support-grid-layout {
    display: block; /* Отменяем двухколоночный grid, так как осталась одна колонка */
}

/* Центрируем колонку с документами и ограничиваем её ширину для аккуратного вида */
.support-docs-col {
    max-width: 680px;      /* Оптимальная ширина для удобного чтения карточек */
    margin: 0 auto;        /* Магия CSS: выравнивает блок строго по центру */
    text-align: center;    /* Центрируем заголовок секции */
}

/* Выравниваем подзаголовок по центру */
.support-subheading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

/* Внутренний список карточек выравниваем обратно по левому краю для читаемости текста */
.legal-links-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left; 
}

.legal-link-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.legal-link-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.legal-link-icon {
    font-size: 24px;
    line-height: 1;
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    flex-shrink: 0; /* Запрещает иконке сжиматься */
}

.legal-link-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.legal-link-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Баннер поддержки — выравниваем всё по центру */
.support-hero {
    padding: 30px 0 0 0;
}









/* Обертка для центрирования карточки на странице */
.contacts-center-col {
    max-width: 520px; /* Оптимальная ширина для компактной карточки контактов */
    margin: 0 auto;   /* Выравнивание по центру */
}

/* Карточка контактов */
.contacts-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    text-align: left; /* Контент внутри карточки читается слева направо */
}

.contacts-company {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.contacts-description {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Строки с иконками и описанием */
.contact-item-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.contact-item-row:last-child {
    margin-bottom: 0;
}

.contact-row-icon {
    font-size: 22px;
    line-height: 1;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
	
	width: 42px; 
    height: 42px;
}

.contact-item-row h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item-row p,
.contact-item-row a {
    font-size: 15px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item-row a:hover {
    color: var(--primary-color);
}

/* Стилизация заголовков страниц поддержки и контактов */
.support-subheading {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

