/* --- ПЕРЕМЕННЫЕ ЦВЕТОВ --- */
:root {
    --primary-orange: #f37021;
    --primary-hover: #d35400;
    --secondary-teal: #4ECDC4;
    --accent-yellow: #FFD93D;
    --bg-cream: #FFFBF0;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ФОНЫ ДЛЯ СЕКЦИЙ (ДЛЯ ВОЛН) */
.bg-cream { background-color: var(--bg-cream); }
.bg-white { background-color: var(--white); }

/* --- ШАПКА --- */
.header {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

/* --- ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ --- */
.lang-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
    align-items: center;
}

.lang-btn {
    border: 2px solid var(--primary-orange);
    background: transparent;
    color: var(--text-dark);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
    font-family: 'Nunito', sans-serif;
}

.lang-btn:hover {
    background: #ffe0b2;
}

.lang-btn.active {
    background: var(--primary-orange);
    color: white;
}

/* Адаптация для мобильного меню */
@media (max-width: 768px) {
    .lang-switcher {
        margin: 15px 0;
        justify-content: center;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-orange);
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid var(--primary-orange);
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    font-weight: 700;
    color: var(--text-dark);
}

.nav-link:hover { color: var(--primary-orange); }

.btn-contact {
    background: var(--secondary-teal);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-contact:hover {
    background: #3bbcb3;
    transform: translateY(-2px);
}

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-dark); }

/* --- HERO (Слайдер + Солнце) --- */
.hero {
    position: relative;
    height: 850px;
    overflow: hidden;
}

.hero-container-flex {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slider-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active { opacity: 1; }

/* Градиент слева */
.hero-overlay-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(243, 112, 33, 0.95) 0%, rgba(243, 112, 33, 0.6) 40%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-content {
    text-align: left;
    max-width: 600px;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

.highlight-text { color: #FFD93D; }

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

/* --- СОЛНЫШКО (ИКОНКА) --- */
.sun-wrapper-icon {
    position: absolute;
    top: -50%; /* Опускаем немного ниже, чтобы не прилипало к верху */
    right: -93%; /* Сдвигаем вправо, отступ 10% от края экрана */
    width: 120px;
    height: 120px;
    animation: jumpIcon 3s infinite ease-in-out;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sun-center {
    width: 60px;
    height: 60px;
    background: #FFD93D;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.4);
}

.sun-rays-icon {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    animation: spinIcon 12s linear infinite;
}

.ray-bar {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 14px; height: 120px;
    background: #FFD93D;
    border-radius: 10px;
}

.bar-45 { transform: translate(-50%, -50%) rotate(45deg); }
.bar-90 { transform: translate(-50%, -50%) rotate(90deg); }
.bar-135 { transform: translate(-50%, -50%) rotate(135deg); }

@keyframes jumpIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes spinIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- ОБЩИЕ СЕКЦИИ --- */
.section { padding: 80px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; color: var(--primary-orange); font-size: 2.5rem; margin-bottom: 50px; }

/* --- ВОЛНЫ --- */
.section-with-wave {
    position: relative;
    padding-bottom: 0; /* Место под волну */
}

.wave-container {
    position: absolute;
    bottom: -1px; left: 0; width: 100%;
    overflow: hidden; line-height: 0;
}

.wave-svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* --- О НАС --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding-bottom: 150px; }
.about-text h2 { color: var(--secondary-teal); font-size: 2.5rem; margin-bottom: 20px; }
.features-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.features-list i { color: var(--primary-orange); }
.about-image img { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; box-shadow: var(--shadow); transition: 0.5s; }
.about-image:hover img { border-radius: 50%; }

/* --- СОТРУДНИКИ --- */
.staff-grid {
    display: grid;
    /* Жестко задаем 2 колонки равной ширины */
    grid-template-columns: repeat(2, 1fr);
    /* Отступы между колонками и рядами */
    gap: 30px;
    /* Центрируем сетку, если карточек меньше 4, и ограничиваем ширину */
    max-width: 800px;
    margin: 0 auto;
}

.staff-card {
    background: var(--bg-cream);
    padding: 30px;
    border-radius: 20px;
    text-align: center; /* Текст и фото будут по центру */
    transition: 0.3s;
    border: 1px solid #eee;
    /* Flexbox для вертикального выравнивания контента внутри карточки */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.avatar-wrapper {
    /* Дополнительное центрирование для обертки фото */
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

.avatar-wrapper img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--secondary-teal);
    object-fit: contain;
}

.staff-card h3 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.position {
    color: var(--primary-orange);
    font-weight: 700;
}

/* Адаптация для мобильных устройств */
@media (max-width: 600px) {
    .staff-grid {
        /* На маленьких экранах возвращаем 1 колонку */
        grid-template-columns: 1fr;
    }
}

/* --- ПРЕДЛОЖЕНИЯ --- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-bottom: 150px; }
.offer-item { background: white; padding: 30px; border-radius: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-bottom: 4px solid var(--secondary-teal); }
.offer-item i { font-size: 3rem; color: var(--primary-orange); margin-bottom: 20px; }

/* --- ГАЛЕРЕЯ --- */
.gallery-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.mini-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.gallery-item { height: 120px; border-radius: 10px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.1); }
.more-link { background: var(--secondary-teal); display: flex; align-items: center; justify-content: center; text-align: center; color: white; font-weight: 700; font-size: 0.8rem; }

/* Инста блок */
.insta-card { background: white; padding: 15px; border-radius: 15px; box-shadow: var(--shadow); border: 1px solid #dbdbdb; }
.insta-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: #C13584; font-weight: 700;}
.insta-latest-post img { border-radius: 10px; margin-bottom: 15px; }
.btn-insta { display: block; text-align: center; background: linear-gradient(45deg, #f09433 0%,#dc2743 50%,#bc1888 100%); color: white; padding: 10px; border-radius: 5px; font-weight: 700; }

/* --- КОНТАКТЫ (НОВЫЙ) --- */
.contacts-section { padding-top: 60px; }
.contact-new-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.map-visual { flex: 1; position: relative; }
.map-frame {
    background: #ffffff; padding: 15px; border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); position: relative;
    transform: rotate(-2deg); transition: 0.3s;
}
.map-frame:hover { transform: rotate(0deg); }
.map-frame img { width: 100%; height: 400px; object-fit: cover; border-radius: 20px; opacity: 0.9; }
.map-overlay-card {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: white; padding: 20px 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); text-align: center; min-width: 200px;
}
.map-overlay-card h3 { margin: 0; font-size: 1.2rem; }
.map-overlay-card p { margin: 5px 0 0; font-size: 0.9rem; color: var(--secondary-teal); font-weight: 700; text-transform: uppercase; }

.contact-info-new { flex: 1; padding-left: 20px; }
.contact-tag { background: #FFF0E6; color: var(--primary-orange); padding: 8px 16px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; display: inline-block; margin-bottom: 20px; }
.contact-heading { font-size: 3rem; line-height: 1.2; margin-bottom: 40px; }
.contact-list-new { display: flex; flex-direction: column; gap: 30px; }
.contact-row { display: flex; align-items: center; gap: 20px; }
.icon-circle { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.icon-teal { background: #E0F7FA; color: var(--secondary-teal); }
.icon-orange { background: #FFF3E0; color: var(--primary-orange); }
.icon-pink { background: #FCE4EC; color: #e91e63; }
.contact-text .label { display: block; font-size: 0.85rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.contact-text p { font-size: 1.2rem; font-weight: 700; margin: 0; }

footer { background: var(--text-dark); color: white; text-align: center; padding: 20px 0; margin-top: 50px; }

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ --- */
@media (max-width: 900px) {
    .contact-new-wrapper { flex-direction: column; gap: 40px; }
    .map-frame { transform: rotate(0deg); }
    .contact-info-new { padding-left: 0; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed; left: -100%; top: 70px; flex-direction: column;
        background-color: white; width: 100%; padding: 20px 0; transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active { left: 0; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .sun-wrapper-icon { top: -80px; right: 0; transform: scale(0.7); }
    /* Переопределяем анимацию для мобилки из-за scale */
    @keyframes jumpIcon {
        0%, 100% { transform: translateY(0) scale(0.7); }
        50% { transform: translateY(-20px) scale(0.7); }
    }
    
    .hero-overlay-gradient {
         background: linear-gradient(180deg, rgba(243, 112, 33, 0.95) 0%, rgba(243, 112, 33, 0.5) 100%);
    }

    .about-grid, .gallery-wrapper { grid-template-columns: 1fr; }
    .wave-svg { height: 80px; }
}

/* ========================================= */
/* --- СТИЛИ ДЛЯ СТРАНИЦЫ ГАЛЕРЕИ (GALLERY.HTML) --- */
/* ========================================= */

.page-header {
    background-color: var(--bg-cream); 
    padding: 60px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-dark);
}

/* Фильтры (кнопки) */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 2px solid var(--primary-orange);
    background: transparent;
    color: var(--text-dark);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: 0.3s;
}

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

/* Сетка полной галереи */
.gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-bottom: 80px; /* Отступ снизу */
}

/* Карточка фото в полной галерее */
.gallery-card {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #eee; /* Фон пока грузится фото */
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* Эффект при наведении (иконка лупы) */
.gallery-card .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(243, 112, 33, 0.6); /* Полупрозрачный оранжевый */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-card:hover .overlay {
    opacity: 1;
}

.gallery-card .overlay i {
    color: white;
    font-size: 2rem;
}

/* Скрытие элементов при фильтрации */
.gallery-card.hide {
    display: none;
}

/* --- МОДАЛЬНОЕ ОКНО (ЛАЙТБОКС) --- */
.lightbox {
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none; /* Скрыт по умолчанию */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-orange);
}

/* --- КНОПКА СКАЧИВАНИЯ В ЛАЙТБОКСЕ --- */
.download-btn {
    position: absolute;
    bottom: 30px; /* Отступ снизу */
    left: 50%;
    transform: translateX(-50%); /* Центрируем по горизонтали */
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px; /* Расстояние между иконкой и текстом */
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2001; /* Чтобы была поверх картинки */
}

.download-btn:hover {
    background-color: white;
    color: var(--primary-orange);
    transform: translateX(-50%) translateY(-3px); /* Легкое всплытие */
}

.download-btn i {
    font-size: 1.1rem;
}

/* --- БЛОК НОВОСТЕЙ --- */

/* Заголовок с кнопкой справа */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.all-news-link {
    color: var(--secondary-teal);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.all-news-link:hover {
    color: var(--primary-orange);
    gap: 12px; /* Анимация стрелочки */
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Карточка новости */
.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(243, 112, 33, 0.15);
}

/* Картинка и дата */
.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

/* Стикер даты */
.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-orange);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    line-height: 1;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: 900;
}

.news-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Текст новости */
.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-content h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Прижимает кнопку к низу */
}

.read-more {
    color: var(--primary-orange);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.read-more:hover {
    color: var(--secondary-teal);
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 600px) {
    .section-header-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* --- МОДАЛЬНОЕ ОКНО НОВОСТЕЙ --- */
.news-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8); /* Темный фон */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-modal.active {
    display: flex;
    opacity: 1;
}

.news-modal-content {
    background-color: var(--white);
    margin: 20px;
    width: 100%;
    max-width: 700px; /* Ширина окна */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.news-modal.active .news-modal-content {
    transform: translateY(0);
}

/* Крестик закрытия */
.close-news {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.close-news:hover {
    color: var(--primary-orange);
}

/* Шапка с фото */
.news-modal-header {
    position: relative;
    height: 300px;
}

.news-modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-modal-date {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: var(--primary-orange);
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.news-modal-date span {
    display: block;
    line-height: 1;
}

#modal-date-day { font-size: 1.8rem; font-weight: 900; }
#modal-date-month { font-size: 0.9rem; text-transform: uppercase; }

/* Текст */
.news-modal-body {
    padding: 40px 30px 30px;
}

.news-modal-body h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.news-modal-body div {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- СТРАНИЦА АТТЕСТАЦИИ --- */

.doc-section {
    background-color: var(--white);
    min-height: 60vh; /* Чтобы футер не прилипал, если документов мало */
}

.year-block {
    margin-bottom: 50px;
}

.year-title {
    font-size: 1.8rem;
    color: var(--secondary-teal); /* Бирюзовый для года */
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Адаптивная сетка */
    gap: 20px;
}

.doc-item {
    background: var(--bg-cream);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.doc-item:hover {
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-orange);
    transform: translateY(-3px);
}

.doc-icon {
    width: 50px;
    height: 50px;
    background: #ffebee; /* Светло-красный фон для иконки PDF */
    color: #e53935; /* Красный цвет PDF */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.doc-info {
    flex-grow: 1;
}

.doc-info h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.doc-size {
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn-doc {
    padding: 8px 15px;
    border: 2px solid var(--primary-orange);
    border-radius: 20px;
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-doc:hover {
    background: var(--primary-orange);
    color: white;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .doc-list {
        grid-template-columns: 1fr; /* Одна колонка на телефоне */
    }
    
    .doc-item {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .doc-info h4 {
        margin-top: 10px;
    }

    .btn-doc {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* --- ОБНОВЛЕННЫЙ БЛОК ИНСТАГРАМ (СЕТКА) --- */
.insta-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #dbdbdb;
    text-align: center;
}

.insta-profile-link p {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Сетка 2x2 */
.insta-feed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 колонки */
    gap: 5px; /* Маленький отступ как в инсте */
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.insta-post {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 100%; /* Делает элемент квадратным */
    overflow: hidden;
}

.insta-post img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Эффект наведения */
.insta-hover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.insta-hover i {
    color: white;
    font-size: 1.5rem;
}

.insta-post:hover .insta-hover {
    opacity: 1;
}

.insta-post:hover img {
    transform: scale(1.1);
}