/* Переменные */
:root {
    --primary-color: #d38c37;
    --secondary-color: #8A94A6;
    --accent-color: #FF6B6B;
    --text-primary: #d38c37;
    --text-white: #dcdcdc;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #1f1f1f;
    --bg-card: #252525f2;

    --border-color: #ffffff1a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --blur-bg: blur(10px);
    --border-radius-video: 40px;
}

/* Базовые стили */
body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-dark);
}

/* КОНТЕЙНЕР */
.container {
    width: 100%;
    max-width: 1920px;
    /* Максимальная ширина как у макета */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.burger_menu {
    display: none;
}

/* Контейнеры для разных брейкпоинтов */
@media (max-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

@media (max-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 1024px;
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    .container {
        max-width: 640px;
        padding: 0 12px;
    }
}

.text_primary {
    color: var(--text-primary);
}

/* Видео фон */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.video-background::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, #0000, #1d1d1df2 92.67%, #1f1f1f);
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}


/* Хедер с прозрачностью и блюром */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-bg);
    -webkit-backdrop-filter: var(--blur-bg);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(20px);
}

.header_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Логотип */
.logo a {
    display: flex;
    align-items: center;
}

.logo__desktop {
    height: 30px;
    width: auto;
}

.logo__mobile {
    display: none;
    height: 32px;
    width: auto;
}

/* Меню */
.menu_container {
    display: flex;
    gap: 15px;
    align-content: center;
    justify-content: space-between;
}

.menu {
    display: flex;
    align-items: center;
}

.menu_wrapper {
    display: flex;
    gap: 32px;
}

.menu_link_wrapper {
    padding: 0px 20px;
}

.menu_link {
    font-weight: 300;
    color: var(--text-white);
    transition: var(--transition);
    padding: 8px 0px;
    position: relative;

}

.menu_link:hover {
    color: var(--text-white);
}

.menu_link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bg-white);
    transition: var(--transition);
}

.menu_link:hover::after {
    width: 100%;
}

/* Кнопка */
.button {
    background: var(--primary-color);
    color: white;
    padding: 4px 24px;
    border-radius: 26px;
    font-weight: 300;
    transition: var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.button:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Языки */
.locales {
    display: flex;
    align-items: center;
    gap: 16px;
}

.locales::before {
    content: "";
    margin-left: 5px;
    width: 1px;
    height: 16px;
    background-color: var(--bg-white)
}

.locales_wrapp {
    position: relative;
}

.locales_link {
    color: var(--text-white);
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.locales_active {
    font-weight: 500;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.locales_link:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Главная секция */
.first_block {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    /* Выравнивание по нижнему краю */
    position: relative;
    z-index: 2;
    padding-bottom: 100px;
    /* Отступ снизу */
}

.hero-content {
    text-align: left;
    /* Текст по левому краю */
    max-width: 600px;
}

.hero_title {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.hero_subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-button {
    background: var(--primary-color);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-button:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 95, 222, 0.3);
}

/* Второй блок about_us */
.about_us {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.about_title {
    font-size: 36px;
    font-weight: 200;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about_subtitle {
    font-size: 14px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #dcdcdc;
}

.animation {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
}

.animation__container {
    position: relative;
    width: 100%;
    height: 100%;
}

.animation img {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100vh) scale(0.1);
    /* ниже экрана */
    transition: transform 3s ease;
    max-width: none;
}

/* класс active добавляется через JS при скролле */
.animation.active_scale img {
    bottom: 0;
    transform: translate(-50%, 48%) scale(0.7);
    /* вырастает снизу */
}

.animation__container::before {
    content: "";
    position: absolute;
    top: 0px;
    /* Прижимаем к верху */
    left: 0px;
    right: 0px;
    height: 10%;
    /* Высота затемнения сверху */
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(31, 31, 31, 0.9) 0%,
            /* Непрозрачный сверху */
            rgba(31, 31, 31, 0.3) 70%,
            /* Полупрозрачный */
            transparent 100%
            /* Полная прозрачность снизу */
        );
}

.animation::before {
    content: "";
    position: absolute;
    bottom: 0px;
    /* Прижимаем к низу */
    left: 0px;
    right: 0px;
    height: 10%;
    /* Высота затемнения снизу */
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top,
            /* Направление градиента снизу вверх */
            rgba(31, 31, 31, 0.955) 10%,
            /* Непрозрачный снизу */
            rgba(31, 31, 31, 0.597) 80%,
            /* Полупрозрачный */
            transparent 100%
            /* Полная прозрачность сверху */
        );
}


/* Третий блок services_section */

.services_section {
    background: var(--bg-dark);
    position: relative;
}

.services_title {
    display: block;
    position: absolute;
    top: 150px;
    left: 100px;
    z-index: 1000;
    font-size: 50px;
    color: #dcdcdc;
    transition: transform 0.5s ease, font-size 0.5s ease;
    padding: 10px 0;
    font-weight: 300;
    will-change: transform, font-size;
    /* Для плавности */
}

/* .zap {
    position: absolute; 
    transform: translateY(0);
    font-size: 20px;
    top: 100px; 
    left: 50px; 
} */

.accordion {
    max-width: 32vw;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.accordion-item {
    background: #252525f2;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 18px;
    transition: background 0.3s ease;
}

.accordion-toggle {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
    background-color: var(--primary-color);
}

.accordion-toggle::before,
.accordion-toggle::after {
    content: '';
    position: absolute;
    background: #333;
    transition: all 0.3s ease;
}

.accordion-toggle::before {
    width: 20px;
    height: 2px;
    top: 9px;
    left: 0;
}

.accordion-toggle::after {
    width: 2px;
    height: 20px;
    top: 0;
    left: 9px;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content-inner {
    padding: 0 0 20px 0;
}

/* Активное состояние */
.accordion-item.active .accordion-toggle {
    transform: rotate(45deg);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 20px;
}

.accordion-spacer>.accordion {
    margin: 0 !important;
    /* убираем auto */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    /* ниже аккордеона */
    pointer-events: none;
    /* клики проходят сквозь видео */
}

#animate-video {
    width: 100%;
    height: 100vh;
    /* Видео занимает только первый экран */
    position: sticky;
    top: 0;
    transform-origin: right bottom;
}

.video-services {
    border-radius: var(--border-radius-video);
}

.spacer {
    height: 40vh;
    /* Уменьшаем спейсеры */
}

/* services_section_2 второй блок*/
.services_section_2 {
    background: var(--bg-dark);
    position: relative;
}

.services_title_2 {
    display: block;
    position: absolute;
    top: 150px;
    left: 100px;
    z-index: 1000;
    font-size: 50px;
    color: #dcdcdc;
    transition: transform 0.5s ease, font-size 0.5s ease;
    padding: 10px 0;
    font-weight: 300;
    will-change: transform, font-size;
}

.accordion_2 {
    max-width: 32vw;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.accordion-spacer-2>.accordion_2 {
    margin: 0 !important;
}

.video-container_2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
}

.services_section_3 {
    background: var(--bg-dark);
    position: relative;
}

.services_title_3 {
    display: block;
    position: absolute;
    top: 150px;
    left: 100px;
    z-index: 1000;
    font-size: 50px;
    color: #dcdcdc;
    transition: transform 0.5s ease, font-size 0.5s ease;
    padding: 10px 0;
    font-weight: 300;
    will-change: transform, font-size;
}

.accordion_3 {
    max-width: 32vw;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.video-container_3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
}

.accordion-spacer-3>.accordion_3 {
    margin: 0 !important;
}

/* Блок команда слайдер */
.team-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
    background: var(--bg-dark);
}

.team-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 60px;
    align-items: flex-start;
}

.team-text {
    flex: 0 0 33.333%;
    position: sticky;
    top: 100px;
}

.team-title {
    padding: 10px 0;
    font-weight: 300;
}

.team-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
}

.team-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-slider-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: 40px;
}

.team-slider {
    display: flex;
    gap: 20px;
    animation: slide 30s linear infinite;
    will-change: transform;
    padding: 10px 0;
}

.team-slider:hover {
    animation-play-state: paused;
}

.slide {
    flex: 0 0 650px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: grab;
    border-radius: 40px;
}

.slide:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.slide-content {
    padding: 20px;
    text-align: center;
}

.slide-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.slide-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-300px * 5 - 20px * 5));
    }
}

/* блок наши проекты */
/* Блок проекты */
.projects-section {
    position: relative;
    height: 400vh;
    /* Высота для скролла */
    background: var(--bg-dark);
    overflow: hidden;
}

.projects-container {
    position: relative;
    height: 100vh;
    display: flex;
    padding: 0 20px;
    max-width: 1920px;
    margin: 0 auto;
}

/* Текстовая часть */
.projects-text {
    position: sticky;
    top: 0;
    width: 40%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 100px 100px;
    z-index: 0;
}

.projects-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--text-white);
}

.projects-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 400px;
}

.projects-counter {
    font-size: 24px;
    color: var(--text-white);
}

.current-project {
    color: var(--primary-color);
    font-weight: 500;
}

.total-projects {
    color: var(--text-secondary);
}

/* Контейнер для изображений */
.projects-images {
    position: absolute;
    top: 0;
    right: 0;
    width: 800px;
    height: 100vh;
}

.projects-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 1.2s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.project-slide.active {
    opacity: 1;
    transform: translateY(0);
}


.project-slide img {
    width: 80%;
    height: 70%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-info {
    position: absolute;
    bottom: 50px;
    left: 50px;
    background: rgba(37, 37, 37, 0.9);
    padding: 20px 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.project-info h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-white);
}

.project-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .projects-container {
        flex-direction: column;
    }

    .projects-text {
        width: 100%;
        height: auto;
        position: relative;
        padding: 60px 20px 40px;
        text-align: center;
    }

    .projects-images {
        position: relative;
        width: 100%;
        height: 60vh;
    }

    .project-slide img {
        width: 90%;
        height: 80%;
    }
}

@media (max-width: 768px) {
    .projects-title {
        font-size: 2.5rem;
    }

    .project-info {
        left: 20px;
        bottom: 30px;
        padding: 15px 20px;
    }

    .project-info h3 {
        font-size: 16px;
    }

    .project-info p {
        font-size: 12px;
    }
}

/* Адаптивность блока команда  */
@media (max-width: 1024px) {
    .team-container {
        flex-direction: column;
        gap: 40px;
    }

    .team-text {
        position: static;
        flex: none;
        width: 100%;
    }

    .team-slider-container {
        width: 100%;
    }

    .slide {
        flex: 0 0 350px;
    }

    @keyframes slide {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-250px * 5 - 20px * 5));
        }
    }
}

@media (max-width: 768px) {
    .team-title {
        font-size: 2.5rem;
    }

    .team-stats {
        flex-direction: column;
        gap: 20px;
    }

    .slide {
        flex: 0 0 360px;
    }

    .slide img {
        height: 380px;
    }
}

/* Адаптивность - Оптимизированная версия */

/* Планшет (768px - 968px) */
@media (max-width: 968px) {
    .header_wrapper {
        gap: 20px;
    }

    .menu_wrapper {
        gap: 20px;
    }

    .hero_title {
        font-size: 2.5rem;
    }

    .about_title {
        font-size: 28px;
    }

    .about_subtitle {
        font-size: 15px;
    }

    .animation {
        height: 400px;
    }
}

/* Мобильные устройства (640px - 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .logo__desktop {
        display: none;
    }

    .logo__mobile {
        display: block;
    }

    .menu_wrapper {
        gap: 16px;
    }

    .button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero_title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about_title {
        font-size: 24px;
    }

    .about_subtitle {
        font-size: 14px;
    }

    .animation {
        height: 300px;
    }

    .animation img {
        transform: translate(-50%, 100vh) scale(0.2);
    }

    .animation.active_scale img {
        transform: translate(-50%, 48%) scale(0.25);
    }
}

/* Маленькие мобильные (до 640px) */
@media (max-width: 640px) {
    .header_wrapper {
        flex-wrap: wrap;
        gap: 16px;
    }

    .menu {
        order: 3;
        width: 100%;
    }

    .menu_wrapper {
        justify-content: center;
        gap: 24px;
    }

    .locales {
        margin-left: auto;
    }

    .hero_title {
        font-size: 1.75rem;
    }

    .hero_button {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .about_title {
        font-size: 22px;
    }

    .animation {
        height: 250px;
    }

    .animation img {
        transform: translate(-50%, 100vh) scale(0.3);
    }

    .animation.active_scale img {
        transform: translate(-50%, 48%) scale(0.2);
    }

    .menu_container {
        display: none;
    }

    .services_title,
    .services_title_2,
    .services_title_3 {
        display: none;
    }

    .services_title_mobile,
    .services_title_2_mobile,
    .services_title_3_mobile {
        display: block;
        position: absolute;
        top: 20px;
        left: 10px;
        z-index: 1000;
        font-size: 20px;
        color: #dcdcdc;
        transition: transform 0.5s ease, font-size 0.5s ease;
        padding: 10px 0;
        font-weight: 300;
        will-change: transform, font-size;
    }

    .burger_menu {
        display: block;
        position: absolute;
        z-index: 1000;
        right: 10px;
        top: 0;
    }

    .menu_container.active {
        display: block;
        transition: all 0.3s ease;
    }

    .button_burger {
        width: 30px;
        height: 25px;
        position: relative;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .line_1,
    .line_2,
    .line_3 {
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #F8FAFC;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .line_1 {
        top: 0;
        transform-origin: center;
    }

    .line_2 {
        top: 50%;
        transform: translateY(-50%);
    }

    .line_3 {
        bottom: 0;
        transform-origin: center;
    }

    /* Анимация в крестик */
    .button_burger.active {
        transform: rotate(180deg);
    }

    .button_burger.active .line_1 {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .button_burger.active .line_2 {
        opacity: 0;
    }

    .button_burger.active .line_3 {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .header_wrapper {
        display: flex;
        align-items: normal;
        justify-content: normal;
        gap: 16px;
    }

    .menu_container {
        margin-top: 100px;
    }

    .menu_wrapper {
        display: flex;
        gap: 34px;
        flex-wrap: wrap;
        flex-direction: column;
        align-content: center;
        align-items: center;
    }

    .button {
        margin-top: 34px;
        margin-bottom: 10px;
    }

    /* Видео адаптив */
  .video-container,
  .video-container_2,
  .video-container_3 {
    width: 100vw;
    height: 440px;
    overflow: hidden;
  }
  
  .video-services {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  #animate-video,
  #animate-video-2,
  #animate-video-3 {
    width: 100%;
    height: 100%;
  }
/* акардион адаптив */
    .accordion,
    .accordion_2,
    .accordion_3 {
        position: relative;
        max-width: 100%;
        z-index: 1000;
        padding-top: 320px;
        padding: 0px;
        margin-bottom: 0px;
        margin-bottom: 0px;
        padding-top: 420px;
    }
    .accordion-item {
        border-radius: 30px;     
    }
    .spacer {
        display: none;
    }
/* Блок Команда адаптив */
    .team-stats {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }
    .scrollmagic-pin-spacer {
    min-height: 320px !important;
    height: 320px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    }
    .project-slide {
    justify-content: center;
    }
}

/* Контейнер блога */
.blog-preview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-preview__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 700;
}

/* Сетка карточек */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

/* Карточка */
.post-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Ссылка на всю карточку */
.post-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Изображение */
.post-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card__img {
    transform: scale(1.05);
}

/* Контент */
.post-card__content {
    padding: 1.5rem;
}

.post-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Мета-информация */
.post-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

.post-card__date {
    font-weight: 500;
}

.post-card__comments {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

/* Сообщение пустого состояния */
.blog-preview__empty {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 3rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .post-card__content {
        padding: 1.25rem;
    }
    
    .post-card__image {
        height: 180px;
    }
    
    .blog-preview__title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card__meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}