:root {
    /* Цвета */
    --primary-blue: #0056B3;
    --primary-hover: #004494;
    --accent-green: #00C853;
    --text-main: #2D3748;
    --text-secondary: #718096;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    
    /* Шрифты */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: swap;
    
    /* Размеры (ЕД НЫЕ ЗНАЧЕН Я) */
    --header-height: 100px; 
    --header-scrolled-height: 75px;
    --container-width: 1200px;
    --radius: 12px;
}
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Это скроет горизонтальную полосу прокрутки */
    position: relative;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.header.header--scrolled {
    height: var(--header-scrolled-height);
    background: #ffffff;
}

.header__container {
    display: flex;
    justify-content: space-between; /* Логотип — Слева, Контакты — Справа */
    align-items: center;
    width: 100%;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 80px; width: auto; object-fit: contain; transition: 0.3s ease; }
.header.header--scrolled .logo img { height: 55px; }

.nav { display: flex; align-items: center; margin-left: 50px; margin-right: auto; }
.nav__list { display: flex; gap: 30px; list-style: none; }
.nav__link { font-weight: 600; font-size: 1rem; color: var(--text-main); transition: 0.3s; }
.nav__link:hover { color: var(--primary-blue); }

.header__contacts {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto; /* Принудительно толкает блок вправо */
}
.header__phone {
    font-weight: 800; color: var(--primary-blue); white-space: nowrap;
    margin-left: 20px; padding-left: 20px; border-left: 1px solid var(--border-color);
}
.nav {
    display: flex;
    align-items: center;
    margin-left: 50px;  /* Отступ от логотипа */
    margin-right: auto; /* ЭТА СТРОКА отталкивает телефон максимально вправо */
}

.nav__list {
    display: flex;
    gap: 30px; /* Расстояние между ссылками */
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: 0.3s;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--primary-blue);
}


.hero {
    margin-top: 0; 
    padding-top: var(--header-height);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto; /* Центрирует всё содержимое сайта */
    padding: 0 20px; /* Одинаковые отступы слева и справа */
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section__desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

.section__line {
    width:80px;
    height: 4px;
    background-color: var(--primary-blue);
    margin-bottom: 30px;
}

.center { text-align: center; }

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn--outline {
    border: 2px solid white;
    color: white;
}

.btn--outline:hover {
    background-color: white;
    color: var(--primary-blue);
}


.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 150px; /* Увеличили высоту логотипа */
    width: auto;
    object-fit: contain;
    transition: 0.3s ease;
}

.footer__logo img {
    height: 150px; 
    filter: brightness(0) invert(1);
    opacity: 0.9;
}


.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav__link:hover {
    color: var(--primary-blue);
}


.burger {
    display: none;
    cursor: pointer;
}
.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 5px 0;
    transition: 0.3s;
}

.hero {
    margin-top: var(--header-height);
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a4b;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.hero__buttons {
    display: flex;
    gap: 15px;
}

.section {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--bg-light);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about__features {
    margin-top: 30px;
}

.about__features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.about__features i {
    color: var(--accent-green);
    background: rgba(0, 200, 83, 0.1);
    padding: 8px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.about__image img {
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.cat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--primary-blue);
}

.cat-card__icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.cat-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.cat-card p {
    color: var(--text-secondary);
}

.catalog__filter {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-secondary);
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Авто-адаптивность */
    gap: 30px;
}

/* ---  СПРАВЛЕННЫЙ БЛОК КАРТОЧК  --- */
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.product-card__img {
    height: 280px; /* Увеличено с 250px */
    background: #ffffff; /*  зменено с #f1f1f1 на белый */
    position: relative;
    padding: 20px; /* Добавлен отступ для "воздуха" */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /*  зменено с cover на contain, чтобы фото не обрезалось */
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge--stock {
    background: var(--accent-green);
    color: white;
}

.product-card__body {
    padding: 25px;
    flex-grow: 1; /* Чтобы тело карточки занимало всё свободное место */
}

.product-card__cat {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.product-card__title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-card__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4; /*  зменено с 2 на 4 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5.6em; /* Чтобы карточки были одной высоты */
}

.product-card__footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto; /* Прижимает футер к низу карточки */
    padding-bottom: 25px;
    padding-left: 25px;
}

.product-card__status {
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* --- КОНЕЦ  СПРАВЛЕННОГО БЛОКА --- */

.partners__grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 30px;
    align-items: center; 
}
.partner-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #CBD5E0;
    font-family: var(--font-heading);
}
.partner-item img {
    max-width: 150px !important; 
    width: 100% !important;     
    height: auto !important;    
    display: block !important;
    margin: 0 auto;            
}
.partner-item {
    max-width: 250px !important; 
    flex: 0 0 auto;           
}
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.contacts__info {
    padding: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--primary-blue);
    font-weight: 600;
}

.sm-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.socials {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

.contacts__map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}
.contacts__map iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: var(--radius);
}
.footer {
    background: #1A202C;
    color: white;
    padding: 40px 0;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo {
    margin-bottom: 10px;
}

.footer__col p {
    color: #A0AEC0;
    font-size: 0.9rem;
}

.hide {
    display: none;
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 1024px) {
    .catalog__grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        transform: translateY(-150%);
        transition: 0.4s;
        z-index: 999;
    }
    :root {
        --header-height: 100px; /* Уменьшаем высоту шапки для мобилок */
    }

    .logo img {
        height: 80px !important;
        width: auto;
        margin-top: 5px; /* Уменьшаем логотип, чтобы он не давил на контент */
    }

    .header__phone {
        font-size: 0.85rem; /* Уменьшаем шрифт телефона */
        margin-left: 10px;
        padding-left: 10px;
        border-left: 1px solid var(--border-color);
    }
    
    .header__container {
        padding: 0 15px; /* Уменьшаем боковые отступы в шапке */
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .burger {
        display: block;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .about__grid, .contacts__wrapper {
        grid-template-columns: 1fr;
    }

    .about__image {
        order: -1;
    }
    
    .partners__grid {
        gap: 30px;
    }

    .footer__container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .catalog__grid {
        grid-template-columns: 1fr; /* Карточки категорий встанут одна под другой */
        gap: 15px;
    }
.partner-item {
    width: 100% !important; 
    max-width: 280px;
    margin: 0 auto;
}
        .catalog__filter {
        gap: 8px; /* Добавляем четкий зазор между кнопками */
    }
    .filter-btn {
        font-size: 0.85rem;
        padding: 6px 15px;
    }
     .categories__grid {
        grid-template-columns: 1fr; /* БЫЛО repeat(2, 1fr), СТАЛО 1fr */
        gap: 15px; /* Расстояние между карточками по вертикали */
    }
.cat-card {
    padding: 30px 20px; /* Уменьшаем внутренние отступы (было 40px) */
        text-align: center;
}
 .cat-card__icon {
        font-size: 2.5rem; /* Уменьшаем размер синей иконки */
        margin-bottom: 15px;
    }

    /* Подправляем заголовки внутри карточек */
    .cat-card h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .cat-card p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
     .catalog__filter {
justify-content: center;
    gap: 10px; /* Увеличь зазор */
    flex-wrap: wrap; /* Разреши перенос на новую строку */
    }
    
    .filter-btn {
        flex: 0 1 auto; /* Кнопки не растягиваются, а аккуратно ложатся в ряд */
    }
       .hero__content {
        padding: 0 20px; 
        width: 100%;
    }

    /* 2. Немного уменьшаем шрифт заголовка */
    .hero__title {
        font-size: 1.75rem; /* Было 2rem или больше */
        line-height: 1.2;
        word-wrap: break-word; /* На случай очень длинных слов */
    }

    /* 3. Можно также немного уменьшить межбуквенное расстояние, если "й" всё еще тесно */
    .hero__title {
        letter-spacing: -0.02em; 
    }
    .hero__subtitle {
        font-size: 0.95rem; /* Было 1.25rem */
        line-height: 1.4;    /* Делаем расстояние между строками чуть плотнее */
        margin-bottom: 25px; /* Уменьшаем отступ до кнопок, чтобы всё влезло в экран */
        opacity: 0.9;        /* Можно оставить легкую прозрачность для мягкости */
        max-width: 90%;      /* Чтобы текст не растягивался на всю ширину и легче читался */
    }

    /* Убедись, что кнопки тоже не слишком огромные */
    .btn {
        padding: 12px 20px; 
        font-size: 0.9rem;
    }
        .hero__buttons .btn {
        padding: 10px 18px;  /* Было 14px 28px — теперь кнопки станут ниже и уже */
        font-size: 0.85rem;   /* Уменьшаем шрифт внутри кнопки */
        border-radius: 30px;  /* Можно чуть уменьшить скругление для компактности */
    }

    /* Уменьшаем расстояние между кнопками */
    .hero__buttons {
        gap: 10px; /* Расстояние между кнопками станет меньше */
        justify-content: center; /* Центрируем их, если они стоят в ряд */
    }
    .product-card__img {
        height: 150px; /* Уменьшаем высоту фото, чтобы оно не занимало весь экран */
        padding: 10px;
    }

    .product-card__body {
        padding: 12px; /* Меньше отступов внутри */
    }

    .product-card__title {
        font-size: 0.95rem; /* Чуть меньше шрифт */
        margin-bottom: 5px;
        min-height: 2.4em; /* Ограничиваем высоту заголовка под 2 строки */
        line-height: 1.2;
    }

    .product-card__desc {
        display: none; /* СКРЫВАЕМ описание в каталоге на мобилках */
        /* Оно всё равно есть в модальном окне, а здесь оно только мешает */
    }

    .product-card__cat {
        font-size: 0.7rem; /* Делаем категорию совсем маленькой */
    }

    .product-card__footer {
        padding: 10px 12px;
        margin-top: 5px;
    }

    .product-card__status {
        font-size: 0.75rem; /* Текст "В наличии" делаем компактнее */
    }

    .badge {
        font-size: 0.65rem; /* Метка "В наличии" на самом фото */
        padding: 3px 8px;
        top: 8px;
        left: 8px;
    }
        }
@media (max-width: 350px) {
    .catalog__grid {
        gap: 8px;
    }
    .product-card__title {
        font-size: 0.85rem;
    }
}
@media (max-width: 768px) {
    /* На планшетах оставляем 2 колонки, но чуть уменьшаем расстояние */
    .catalog__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; 
    }
    .header__container {
    padding: 0 15px;
    justify-content: space-between;
}
.logo img {
    height: 110px !important; /* Было 50px */
}
.header__phone {
    font-size: 0.8rem; /* Уменьши шрифт */
    border-left: none; /* Убери вертикальную полоску, она мешает */
}
        .section__header {
        text-align: center; /* Заголовок "Каталог продукции" теперь по центру */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section__line {
        margin-left: auto;
        margin-right: auto; /* Центрируем синюю полоску */
    }

    .section__desc {
        margin-left: auto;
        margin-right: auto;
    }
}
/* --- ПАРТНЕРЫ ТЕПЕРЬ ВНЕ МОБ ЛЬНОГО БЛОКА   БУДУТ В ДНЫ НА ПК --- */
.partners__grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
    margin: 40px auto 0 !important;
    width: 100% !important;
}

.partner-item {
    background: #ffffff !important;
    width: 100%;;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

.partner-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Для мобильных устройств отдельно */
/* --- Г БР ДНОЕ МОДАЛЬНОЕ ОКНО (Ф НАЛЬНЫЙ  СПРАВЛЕННЫЙ ВАР АНТ) --- */
/* --- СТ Л  МОДАЛЬНОГО ОКНА (SENIOR PATCH) --- */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; visibility: hidden; transition: 0.3s;
    padding: 20px;
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal__content {
    background: white;
    border-radius: 24px;
    max-width: 1000px; /* Оптимально для ПК */
    width: 100%;
    max-height: 90vh;
    display: flex; /* Делим на 2 колонки */
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

/* Колонки */
.modal__img-column {
    flex: 1;
    background: #f9f9f9;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
}

.modal__info {
    flex: 1.2;
    padding: 50px;
    overflow-y: auto; /* Скролл только для текста */
    display: flex;
    flex-direction: column;
}

.modal__img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.modal__title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1A202C;
    line-height: 1.1;
}

.modal__desc {
    display: block;
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
}

/* Оформление жирных заголовков в описании */
.modal__desc b, .modal__desc strong {
    display: block;
    margin-top: 20px;
    margin-bottom: 5px;
    color: #000;
    font-size: 17px;
}

.modal__close {
    position: absolute;
    top: 20px; right: 20px;
    background: #fff; border: 1px solid #ddd;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; cursor: pointer; z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.modal__info::-webkit-scrollbar {
    width: 6px; /* Делаем его очень тонким */
}

.modal__info::-webkit-scrollbar-track {
    background: transparent; /* Убираем серый фон дорожки */
}

.modal__info::-webkit-scrollbar-thumb {
    background: #cbd5e0; /* Светло-серый цвет самого ползунка */
    border-radius: 10px; /* Скругляем края */
}

.modal__info::-webkit-scrollbar-thumb:hover {
    background: #a0aec0; /* Цвет при наведении (чуть темнее) */
}

/* 2. Настройка для Firefox */
.modal__info {
    scrollbar-width: thin; /* Тонкий скролл */
    scrollbar-color: #cbd5e0 transparent; /* Цвет ползунка и прозрачный фон */
    
    /* Добавим небольшой внутренний отступ справа, 
       чтобы текст не прилипал к скроллбару */
    padding-right: 45px; 
}

/* На мобильных устройствах обычно скроллбар и так скрыт, 
   но добавим фикс, чтобы отступ не портил центровку */
@media (max-width: 850px) {
    .modal__content {
        flex-direction: column; /* Стак в одну колонку */
        max-height: 95vh; /* Почти на весь экран по высоте */
        width: 98%; /* Занимаем почти всю ширину на маленьких экранах */
        overflow-y: auto; /* Скролл всего окна */
    }

    .modal__img-column {
        flex: none;
        width: 100%;
        height: 300px;        /* Задаем фиксированную высоту, чтобы картинка не "прыгала" */
        padding: 50px 20px 20px; /* Увеличиваем отступ сверху (50px), чтобы картинка не мешала кнопке */
        display: flex;
        align-items: center;   /* Центрируем картинку по вертикали */
        justify-content: center; /* Центрируем по горизонтали */
        background: #f9f9f9;
        border-bottom: 1px solid #eee;
    }

    .modal__img {
        max-width: 100%;
        max-height: 100%;    /* Картинка не выйдет за пределы контейнера */
        width: auto;
        height: auto;
        object-fit: contain; /* Сохраняем пропорции без обрезки */
    }

.modal__info {
   padding: 30px 20px;
    flex: none; /* Даем блоку с текстом занимать столько места, сколько нужно */
    overflow-y: auto;
    display: flex;
    flex-direction: column; /* Элементы выстраиваются строго вертикально */
    align-items: flex-start; /* Все прижато к левому краю */
}
.modal__title {
    display: block; /* Заголовок становится блоком-кирпичом */
    width: 100%;    /* Занимает всю ширину правой колонки */
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px; /* Создает четкую границу перед описанием */
    color: #1a202c;
    word-wrap: break-word; /* Если слово слишком длинное, оно перенесется */
}
    /*  справляем кнопку закрытия, чтобы не мешала */
    .modal__close {
        top: 15px;
        right: 15px;
        background: white;
        z-index: 10;          /* Кнопка всегда сверху */
    }
}

/* Фикс для совсем маленьких экранов (iPhone 5/SE) */
@media (max-width: 380px) {
    .modal__img-column {
        max-height: 200px;
    }
    .modal__title {
        font-size: 1.3rem;
    }
}

.contacts__socials {
    display: flex;      
    gap: 15px;           
    margin-top: 25px;    
    justify-content: flex-start; 
}


.social-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;       
    height: 50px;        
    border-radius: 50%;  
    background-color: #f0f0f0; 
    text-decoration: none; 
    transition: background-color 0.3s ease, transform 0.2s ease;
}


.social-circle i {
    font-size: 24px;     
}


.social-circle .fa-telegram {
    color: #0088cc;      
}

.social-circle .fa-vk {
    color: #4c75a3;     
}

.social-circle .fa-instagram {
    color: #e1306c;      
}

.social-circle:hover {
    background-color: #e0e0e0; 
    transform: scale(1.05);     
}