/* ==========================================================================
   ANTIGRAVITY SUITE DESIGN SYSTEM - HOMEPAGE PREMIUM STYLING
   ========================================================================== */

/* Force parent elements to full width inside home page templates only */
.home #content, .home #content .ast-container, .home #content #primary, .home #content #main, 
.home #content .content-area, .home .entry-content, .home .ast-plain-container,
.page-template-template-home-2 #content, .page-template-template-home-2 #content .ast-container, 
.page-template-template-home-2 #content #primary, .page-template-template-home-2 #content #main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    float: none !important;
    flex: none !important;
    box-sizing: border-box !important;
}

.home #content #secondary, .home #content .sidebar, .home #content .widget-area,
.page-template-template-home-2 #content #secondary, .page-template-template-home-2 #content .sidebar {
    display: none !important;
}

/* ==========================================================================
   UNIFIED TYPOGRAPHY (Cormorant Garamond)
   ========================================================================== */
body.home,
body.home *,
body.home input,
body.home button,
body.home select,
body.home textarea,
.premium-home-body,
.premium-home-body *,
.premium-home-body button,
.premium-home-body input,
.premium-home-body select,
.premium-home-body textarea {
    font-family: 'Cormorant Garamond', serif !important;
}

.premium-home-body {
    /* Design Tokens */
    --ag-primary: #2B2D31; /* Graphite */
    --ag-primary-light: #404246;
    --ag-accent: #D76314; /* Vibrant Orange */
    --ag-accent-hover: #B84E0B; /* Accent hover */
    --ag-bg-body: #FAFAFA;
    --ag-bg-surface: #FFFFFF;
    --ag-text-main: #2B2D31;
    --ag-text-muted: #8C9BA5;
    
    /* Spacing & Borders */
    --ag-border: rgba(43, 45, 49, 0.08);
    --ag-shadow-sm: 0 4px 30px rgba(0, 0, 0, 0.02);
    --ag-shadow-md: 0 10px 40px rgba(0, 0, 0, 0.05);
    --ag-shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.08);
    --ag-radius-sm: 8px;
    --ag-radius-md: 100px;
    --ag-radius-lg: 24px;
    --ag-transition-fast: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);

    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent;
    color: var(--ag-text-main);
    /* overflow-x controlled at html/body level only — never on inner divs */
}

/* Breadcrumbs Styling */
.premium-breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 0.8s ease-out;
}

.premium-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.premium-breadcrumbs a:hover {
    opacity: 1;
}

.premium-breadcrumbs .sep {
    margin: 0 10px;
    opacity: 0.5;
}

/* ==========================================================================
   HERO VIDEO SECTION
   ========================================================================== */
.home-hero {
    position: relative;
    padding: 160px 20px;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    background-color: #111111;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.08);
    pointer-events: none;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.75) 0%, rgba(17, 17, 17, 0.45) 50%, rgba(17, 17, 17, 0.85) 100%);
    z-index: 1;
    display: none;
}

.home-hero .container-relative {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.home-hero h1 {
    font-size: 84px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 2px;
    color: #ffffff !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1.2s ease-out;
    line-height: 1.15;
}

.home-hero .hero-subtitle {
    font-size: 28px;
    max-width: 950px;
    margin: 0 auto 45px;
    line-height: 1.45;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

/* ==========================================================================
   SECTIONS GENERAL STYLING
   ========================================================================== */
.section-header-premium {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--ag-primary);
    text-align: center;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.section-header-premium::before,
.section-header-premium::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 1.5px;
    background-color: #111111;
}

.section-header-premium.no-dashes::before,
.section-header-premium.no-dashes::after {
    display: none !important;
}

/* ==========================================================================
   HOMEPAGE DESCRIPTION
   ========================================================================== */
.home-description {
    padding: 40px 20px;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.home-description .desc-lead {
    font-size: 28px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--ag-primary);
    margin-bottom: 30px;
}

.home-description .desc-sub,
.home-description .desc-text {
    font-size: 20px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 20px;
}

/* ==========================================================================
   PATTERNS CATEGORIES & CARDS
   ========================================================================== */
.patterns-section {
    padding: 40px 20px;
    background-color: transparent;
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 1280px;
    margin: 0 auto;
}

.pattern-card {
    background: var(--ag-bg-surface);
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-lg);
    padding: 35px;
    text-align: center;
    box-shadow: var(--ag-shadow-md);
    transition: var(--ag-transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    height: 100%;
}

.swiper-slide:hover .pattern-card,
.pattern-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--ag-shadow-lg);
    border-color: rgba(215, 99, 20, 0.25);
}

.pattern-card h3 {
    font-size: 34px;
    margin: 0;
    font-weight: 600;
    color: var(--ag-primary);
    line-height: 1.2;
}

.pattern-image-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.pattern-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.swiper-slide:hover .pattern-card img,
.pattern-card:hover img {
    transform: scale(1.08);
}

.patterns-section .brand-btn {
    margin-top: auto;
    align-self: center;
}

/* ==========================================================================
   POPULAR PATTERNS (Swiper & Cards) — стиль как у Викрійки
   ========================================================================== */
.popular-patterns {
    padding: 30px 20px 20px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    background-color: transparent;
}

.popular-patterns .swiper-container {
    max-width: 1200px !important;
}

/* Карточка — нет общего паддинга, изображение на всю ширину */
.popular-patterns .pattern-item-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.swiper-slide:hover .popular-patterns .pattern-item-card,
.popular-patterns .pattern-item-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08) !important;
    border-color: rgba(215, 99, 20, 0.2) !important;
}

/* Обертка изображения */
.popular-patterns .pattern-item-image-wrap {
    width: 100% !important;
    aspect-ratio: 3/4 !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.popular-patterns .pattern-item-image-wrap img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    background-color: #ffffff !important;
    transition: transform 0.6s ease !important;
}

.popular-patterns .pattern-item-card:hover .pattern-item-image-wrap img {
    transform: scale(1.05) !important;
}

/* Заголовок */
.popular-patterns .pattern-item-card h4 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 20px !important;
    margin: 15px 10px 0 !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.popular-patterns .pattern-item-card h4 a {
    text-decoration: none !important;
    color: #1a1a1a !important;
    transition: color 0.3s ease !important;
}

.popular-patterns .pattern-item-card h4 a:hover {
    color: #D76314 !important;
}

/* Цена */
.popular-patterns .pattern-item-price {
    color: #D76314 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    margin-top: auto !important; /* Прижимает цену к низу карточки */
    padding-top: 10px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    font-family: 'Cormorant Garamond', serif !important;
}

/* CTA кнопка */
.popular-patterns .patterns-cta-wrap {
    text-align: center;
    margin-top: 40px;
    background: transparent;
}

.popular-patterns .brand-btn {
    margin-top: 0;
    align-self: center;
}


/* ==========================================================================
   PREMIUM ACCENT BUTTONS
   ========================================================================== */
.brand-btn {
    align-self: center; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #D76314 !important;
    border: none !important;
    color: #fff !important;
    padding: 14px 38px;
    border-radius: var(--ag-radius-md);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(215, 99, 20, 0.2);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.brand-block.reversed .brand-btn {
    align-self: flex-start;
}

.brand-btn::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -150% !important;
    width: 80% !important;
    height: 100% !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%) !important;
    transform: skewX(-25deg) !important;
    transition: all 0.75s ease !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.brand-btn:hover {
    background: #D76314 !important;
    border-color: #D76314 !important;
    box-shadow: 0 8px 25px rgba(215, 99, 20, 0.35);
    transform: translateY(-4px) scale(1.02);
    color: #fff !important;
}

.brand-btn:hover::after {
    left: 150% !important;
}

/* ==========================================================================
   SITE SECTIONS (Premium Brand Blocks as Cards)
   ========================================================================== */
.site-sections-premium {
    padding: 20px 0;
    background-color: transparent;
}

.premium-brands-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-block {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: center;
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 45px rgba(26, 26, 26, 0.04), 0 4px 12px rgba(26, 26, 26, 0.02);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    color: #1a1a1a;
}

.brand-block:hover {
    border-color: rgba(215, 99, 20, 0.25);
    box-shadow: 0 30px 60px rgba(215, 99, 20, 0.08), 0 12px 24px rgba(215, 99, 20, 0.04);
    transform: translateY(-8px);
}

.brand-block.reversed {
    grid-template-columns: 1fr 1.1fr;
}

.brand-block.reversed .brand-image {
    grid-column: 2;
}

.brand-block.reversed .brand-content {
    grid-column: 1;
    grid-row: 1;
}

.brand-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 640 / 357;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    background-color: #ffffff;
    min-height: auto;
    position: relative;
    z-index: 1;
}

.brand-block:hover .brand-image {
    z-index: 2;
}

.brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.brand-block:hover .brand-image img {
    transform: scale(1.05);
}

.brand-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    box-sizing: border-box;
}

.brand-content h2 {
    font-size: 38px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-family: 'Cormorant Garamond', serif !important;
}

.brand-content p {
    font-size: 18px;
    line-height: 1.65;
    color: #333333;
    margin: 0;
    font-weight: 400;
    font-family: 'Cormorant Garamond', serif !important;
}

/* Scroll Reveal classes - Progressive Enhancement */
.reveal-left {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-home-body .ag-reveal-hidden {
    opacity: 0 !important;
}

.premium-home-body .reveal-left.ag-reveal-hidden {
    transform: translateX(-15px) !important;
}

.premium-home-body .reveal-right.ag-reveal-hidden {
    transform: translateX(15px) !important;
}

.premium-home-body .reveal.ag-reveal-hidden {
    transform: translateY(15px) !important;
}

/* Fail-safe Grid/Flex fallback for Swiper sliders if JS does not initialize */
.premium-home-body .swiper:not(.swiper-initialized) .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    transform: none !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
}

.premium-home-body .swiper:not(.swiper-initialized) .swiper-slide {
    width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    display: block !important;
}

.premium-home-body .swiper:not(.swiper-initialized) .swiper-button-next,
.premium-home-body .swiper:not(.swiper-initialized) .swiper-button-prev,
.premium-home-body .swiper:not(.swiper-initialized) .swiper-pagination {
    display: none !important;
}

@media (max-width: 991px) {
    .premium-home-body .swiper:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .premium-home-body .swiper:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ==========================================================================
   FASHION NEWS & MASTERCLASSES CAROUSELS
   ========================================================================== */
.premium-section-bg {
    padding: 25px 20px;
    background-color: transparent;
    border-top: none;
}

.premium-section-bg.alt-bg {
    background-color: transparent;
}

.blog-card-home {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--ag-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--ag-shadow-sm);
    transition: var(--ag-transition-fast);
}

.swiper-slide:hover .blog-card-home,
.blog-card-home:hover {
    transform: translateY(-12px);
    box-shadow: var(--ag-shadow-lg);
    border-color: rgba(215, 99, 20, 0.2);
}

.blog-card-home-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.blog-card-home-image-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-card-home-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card-home:hover .blog-card-home-image {
    transform: scale(1.05);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(215, 99, 20, 0.1) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card-home:hover .blog-card-overlay {
    opacity: 1;
}

.blog-card-home-content {
    padding: 35px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-home-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ag-accent);
    margin-bottom: 15px;
    font-weight: 700;
    background: rgba(215, 99, 20, 0.08);
    padding: 4px 16px;
    border-radius: var(--ag-radius-md);
    display: inline-block;
    align-self: flex-start;
}

.blog-card-home-title {
    font-size: 30px;
    margin-bottom: 15px;
    line-height: 1.25;
    font-weight: 700;
}

.blog-card-home-title a {
    color: var(--ag-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-home-title a:hover {
    color: var(--ag-accent);
}

.blog-card-home-content p {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.blog-card-home-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.blog-card-home-footer span {
    color: #888888;
}

.blog-card-home-footer a {
    color: var(--ag-accent);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.blog-card-home-footer a:hover {
    color: var(--ag-accent-hover);
    transform: translateX(4px);
}

.blog-home-btn-wrap {
    text-align: center;
    margin-top: 60px;
}

/* ==========================================================================
   VIDEO CAROUSEL SECTION
   ========================================================================== */
.video-carousel-section {
    padding: 20px 0;
    background-color: transparent;
}

.video-carousel-section h2 {
    font-size: 56px;
    font-weight: 700;
    color: var(--ag-primary);
    margin-bottom: 40px;
    letter-spacing: -1px;
}

/* ==========================================================================
   STATS BANNER
   ========================================================================== */
.stats-banner {
    background-color: #111111;
    color: #ffffff;
    padding: 50px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    position: relative;
    border-top: 1.5px solid var(--ag-accent);
    border-bottom: 1.5px solid var(--ag-accent);
}

.stats-banner .stat-box {
    position: relative;
    z-index: 2;
}

.stats-banner .stat-box .count {
    font-size: 84px;
    font-weight: 300;
    display: block;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, var(--ag-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 40px rgba(215, 99, 20, 0.2);
}

.stats-banner .stat-box .label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* ==========================================================================
   SWIPER / CONTROLS STYLING
   ========================================================================== */
.swiper-button-next, .swiper-button-prev {
    color: var(--ag-accent) !important;
    background: transparent !important;
    transition: transform 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 22px !important;
}

.swiper-button-next:hover {
    transform: scale(1.1) translateX(3px);
}

.swiper-button-prev:hover {
    transform: scale(1.1) translateX(-3px);
}

/* Align all homepage carousels to 1200px maximum width to match design system */
.ag-home-patterns-swiper,
.ag-home-news-swiper,
.ag-home-mc-swiper,
.ag-home-catalog-swiper,
.ag-home-blog-swiper,
.ag-home-jobs-swiper,
.fashion-news-section .premium-section-inner,
.video-masterclasses .premium-section-inner {
    max-width: 1200px !important;
}

.swiper-pagination {
    display: none !important;
}

.swiper-pagination-bullet-active {
    background: var(--ag-accent) !important;
}

/* ==========================================================================
   RESPONSIVENESS AND RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (min-width: 992px) {
    .premium-blog-grid-home {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .premium-blog-grid-home {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .premium-blog-grid-home {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .brand-block, .brand-block.reversed {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 25px;
    }
    .brand-block.reversed .brand-image {
        grid-column: 1;
    }
    .brand-block.reversed .brand-content {
        grid-column: 1;
        grid-row: auto;
    }
    .brand-image {
        aspect-ratio: 640 / 357;
        min-height: auto;
    }
    .brand-content {
        padding: 0;
    }
    .patterns-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .home-hero h1 {
        font-size: 48px;
    }
    .home-hero .hero-subtitle {
        font-size: 20px;
    }
    .section-header-premium {
        font-size: 38px;
    }
    .stats-banner {
        flex-direction: column;
        gap: 50px;
        padding: 80px 20px;
    }
    .stats-banner .stat-box .count {
        font-size: 64px;
    }
}

/* =============================================================
   Antigravity Design System — Рекламные блоки (Ad Placeholders)
   ============================================================= */

.ag-article-ad-container {
    margin: 40px auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ag-article-ad-container .ag-ad-placeholder {
    font-family: 'Cormorant Garamond', serif !important;
    background: #faf8f5;
    border: 1px dashed rgba(215, 99, 20, 0.25);
    border-radius: 12px;
    padding: 35px 20px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

.ag-article-ad-container .ag-ad-placeholder:hover {
    border-color: rgba(215, 99, 20, 0.5);
    background: #fdfbf7;
}

.ag-ad-homepage-leaderboard .ag-ad-placeholder {
    min-height: 90px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .ag-article-ad-container {
        margin: 24px auto;
    }
    .ag-article-ad-container .ag-ad-placeholder {
        min-height: 120px;
        padding: 20px;
    }
}

