/* ============================================
   Homepage в стиле Studio.site Newspaper
   Точная структура по референсу
   ============================================ */

:root {
    --np-primary: #1a1a1a;
    --np-secondary: #555;
    --np-muted: #888;
    --np-bg: #ffffff;
    --np-bg-light: #f5f5f5;
    --np-border: #eee;
    --np-accent: #3a5a7c;
}

* {
    box-sizing: border-box;
}

.home-newspaper {
    background: var(--np-bg);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   Carousel Slider (420px height как на референсе)
   ============================================ */

.carousel-section {
    padding: 30px 20px 50px;
    background: var(--np-bg);
}

.carousel-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Слайд - фиксированная высота 420px */
.carousel-slide {
    min-width: 100%;
    height: 420px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

/* Фоновое изображение через ::before (как на референсе) */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a5a7c 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
}

/* Градиентный оверлей */
.carousel-slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

/* Контент внизу слайда */
.carousel-slide__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 35px;
    color: #ffffff;
    z-index: 10;
}

.carousel-slide__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    max-width: 500px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.carousel-slide__title a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.carousel-slide__title a:hover {
    opacity: 0.9;
}

.carousel-slide__excerpt {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 420px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Навигация слайдера */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    color: var(--np-primary);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav--prev {
    left: -21px;
}

.carousel-nav--next {
    right: -21px;
}

/* ============================================
   Main Content Container
   ============================================ */

.home-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ============================================
   ROW 1: Three Column Layout
   Fashion Category | Modern Post | Info Box
   ============================================ */

.content-row-1 {
    display: grid;
    grid-template-columns: 280px 1fr 240px;
    gap: 30px;
    margin-bottom: 50px;
}

/* --- Fashion Category Column --- */
.category-column {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--np-primary);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--np-primary);
}

.category-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Article Card (Portrait Style) */
.article-card-portrait {
    display: flex;
    flex-direction: column;
}

.article-card-portrait__image {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--np-bg-light);
}

.article-card-portrait__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card-portrait:hover .article-card-portrait__image img {
    transform: scale(1.03);
}

.article-card-portrait__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.25);
}

.article-card-portrait__date {
    font-size: 0.8125rem;
    color: var(--np-muted);
    margin-bottom: 6px;
}

.article-card-portrait__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

.article-card-portrait__title a {
    color: var(--np-primary);
    text-decoration: none;
}

.article-card-portrait__title a:hover {
    text-decoration: underline;
}

.article-card-portrait__excerpt {
    font-size: 0.875rem;
    color: var(--np-secondary);
    line-height: 1.55;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--np-primary);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.read-more-link:hover {
    gap: 10px;
}

.read-more-link i {
    font-size: 0.9375rem;
}

/* --- Modern Post Column --- */
.modern-column {
    display: flex;
    flex-direction: column;
}

.modern-column__header {
    margin-bottom: 16px;
}

.modern-column__description {
    font-size: 0.9375rem;
    color: var(--np-secondary);
    line-height: 1.6;
    margin: 0;
}

.modern-column__image {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--np-bg-light);
}

.modern-column__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-column__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Article List Items */
.article-list {
    display: flex;
    flex-direction: column;
}

.article-list-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--np-border);
}

.article-list-item:first-child {
    padding-top: 0;
}

.article-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-list-item__date {
    font-size: 0.8125rem;
    color: var(--np-muted);
    margin-bottom: 4px;
}

.article-list-item__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}

.article-list-item__title a {
    color: var(--np-primary);
    text-decoration: none;
}

.article-list-item__title a:hover {
    text-decoration: underline;
}

.article-list-item__excerpt {
    font-size: 0.875rem;
    color: var(--np-secondary);
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Sidebar Column --- */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-box {
    background: var(--np-accent);
    border-radius: 10px;
    padding: 24px;
    color: #ffffff;
}

.info-box__icon {
    font-size: 1.375rem;
    margin-bottom: 14px;
    opacity: 0.85;
}

.info-box__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 10px;
}

.info-box__text {
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
    opacity: 0.9;
}

/* --- Sidebar News (без картинок) --- */
.sidebar-news {
    background: var(--np-bg-light);
    border-radius: 10px;
    padding: 24px;
}

.sidebar-news__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--np-primary);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--np-primary);
}

.sidebar-news__list {
    display: flex;
    flex-direction: column;
}

.sidebar-news__item {
    padding: 12px 0;
    border-bottom: 1px solid var(--np-border);
}

.sidebar-news__item:first-child {
    padding-top: 0;
}

.sidebar-news__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-news__date {
    font-size: 0.75rem;
    color: var(--np-muted);
    margin: 0 0 4px;
}

.sidebar-news__headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.sidebar-news__headline a {
    color: var(--np-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-news__headline a:hover {
    color: var(--np-accent);
}

.empty-message {
    font-size: 0.875rem;
    color: var(--np-muted);
    font-style: italic;
}

/* ============================================
   ROW 2: About Block (Full Width)
   ============================================ */

.content-row-2 {
    margin-top: 50px;
}

.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-block__image {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: var(--np-bg-light);
}

.about-block__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-block__content {
    padding: 20px 0;
}

.about-block__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--np-primary);
    margin: 0 0 16px;
}

.about-block__text {
    font-size: 0.9375rem;
    color: var(--np-secondary);
    line-height: 1.75;
    margin: 0 0 20px;
}

/* ============================================
   Footer
   ============================================ */

.footer-newspaper {
    background: #1a1a1a;
    color: #ffffff;
    padding: 50px 0 0;
}

.footer-newspaper .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-newspaper__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newspaper__logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 14px;
}

.footer-newspaper__tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0 0 18px;
}

.footer-newspaper__social {
    display: flex;
    gap: 10px;
}

.footer-newspaper__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
}

.footer-newspaper__social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-newspaper__links h4,
.footer-newspaper__contact h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 16px;
    color: #ffffff;
}

.footer-newspaper__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-newspaper__links li {
    margin-bottom: 10px;
}

.footer-newspaper__links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.25s ease;
}

.footer-newspaper__links a:hover {
    color: #ffffff;
}

.footer-newspaper__contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.footer-newspaper__bottom {
    padding: 18px 0;
    text-align: center;
}

.footer-newspaper__bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
    margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .carousel-slide {
        height: 380px;
    }
    
    .content-row-1 {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .sidebar-column {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    
    .info-box,
    .sidebar-news {
        flex: 1;
    }
    
    .carousel-nav--prev {
        left: 10px;
    }
    
    .carousel-nav--next {
        right: 10px;
    }
    
    .footer-newspaper__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .carousel-section {
        padding: 20px 15px 35px;
    }
    
    .carousel-slide {
        height: 320px;
    }
    
    .carousel-slide__content {
        padding: 20px 25px;
    }
    
    .carousel-slide__title {
        font-size: 1.25rem;
    }
    
    .carousel-slide__excerpt {
        font-size: 0.8125rem;
        -webkit-line-clamp: 1;
    }
    
    .home-content {
        padding: 0 15px 40px;
    }
    
    .content-row-1 {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .category-cards {
        flex-direction: row;
        gap: 20px;
    }
    
    .article-card-portrait {
        flex: 1;
    }
    
    .article-card-portrait__image {
        aspect-ratio: 3 / 4;
    }
    
    .sidebar-column {
        flex-direction: column;
    }
    
    .about-block {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .about-block__image {
        aspect-ratio: 16 / 9;
    }
    
    .about-block__content {
        padding: 0;
    }
    
    .footer-newspaper__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .footer-newspaper__social {
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .carousel-slide {
        height: 280px;
    }
    
    .carousel-slide__content {
        padding: 16px 20px;
    }
    
    .carousel-slide__title {
        font-size: 1.125rem;
    }
    
    .carousel-slide__excerpt {
        display: none;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }
    
    .category-cards {
        flex-direction: column;
    }
    
    .article-card-portrait__image {
        aspect-ratio: 2 / 3;
    }
}
