/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet: 768px - 1023px */
@media (max-width: 1023px) {
    :root {
        --spacing-md: 24px;
        --spacing-lg: 48px;
        --spacing-xl: 72px;
    }
    
    .section__title {
        font-size: 40px;
    }
    
    /* Hero for tablet */
    .hero {
        min-height: 90vh;
        padding: var(--spacing-lg) 0;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .hero__content {
        order: 2;
    }
    
    .hero__image {
        order: 1;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .hero__logo-main {
        flex-direction: column;
        gap: 0;
        align-items: center;
        padding-left: 0;
    }
    
    .hero__logo-image {
        height: 110px;
    }
    
    .hero__logo-surname {
        font-size: 50px;
    }
    
    .hero__logo-name {
        font-size: 42px;
        margin-top: 4px;
    }
    
    .hero__cta {
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .niches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-card__content {
        grid-template-columns: 1fr;
    }
    
    .about__container {
        grid-template-columns: 1fr;
    }
    
    .contact__container {
        grid-template-columns: 1fr;
    }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
    :root {
        --spacing-sm: 12px;
        --spacing-md: 16px;
        --spacing-lg: 32px;
        --spacing-xl: 48px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section__title {
        font-size: 32px;
    }
    
    .section__subtitle {
        font-size: 16px;
    }
    
    /* Disable cursor on mobile */
    body {
        cursor: auto;
    }
    
    .custom-cursor {
        display: none;
    }
    
    /* Disable heavy animations on mobile */
    .hero::before {
        animation: none;
        opacity: 0.5;
    }
    
    /* Header */
    .header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: rgba(245, 240, 233, 0.98);
    }
    
    .nav {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    /* Hero - Mobile Optimized */
    .hero {
        min-height: auto;
        padding: 50px 0 20px;
        display: flex;
        align-items: flex-start;
        overflow: hidden;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .hero__content {
        order: 2;
    }
    
    .hero__image {
        order: 1;
        margin-bottom: var(--spacing-md);
    }
    
    .hero__image-placeholder,
    .hero__image-photo {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero__logo-main {
        justify-content: center;
        margin-bottom: var(--spacing-sm);
        padding-left: 0;
    }
    
    .hero__logo-mobile {
        height: 70px;
        image-rendering: auto;
        -webkit-font-smoothing: antialiased;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    .hero__logo-image {
        height: 80px;
    }
    
    .hero__logo-surname {
        font-size: 40px;
    }
    
    .hero__logo-name {
        font-size: 32px;
    }
    
    .hero__description {
        font-size: 16px;
        margin-bottom: var(--spacing-sm);
        text-align: center;
    }
    
    .hero__cta {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
    }
    
    .hero__cta .btn {
        padding: 10px 24px;
        font-size: 14px;
        min-width: 200px;
    }
    
    .hero__copyright {
        font-size: 8px;
        margin-top: var(--spacing-sm);
    }
    
    .scroll-indicator {
        display: flex;
        margin-top: var(--spacing-sm);
    }
    
    /* About */
    .about__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .about__image {
        order: 1;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .about__content {
        order: 2;
    }
    
    .about__content .section__title {
        text-align: center;
        font-size: 28px;
    }
    
    .about__text {
        font-size: 15px;
        text-align: left;
    }
    
    /* Hide videos 4-6 on mobile (show only first 3) */
    .hidden-mobile {
        display: none !important;
    }
    
    /* Video & Photo grids */
    .video-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    /* Brands */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .niches-grid {
        grid-template-columns: 1fr;
    }
    
    .niches__title {
        font-size: 24px;
    }
    
    /* Cases */
    .case-card {
        padding: var(--spacing-sm);
    }
    
    .case-card__title {
        font-size: 20px;
    }
    
    .case-card__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .case-card__results {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .result-value {
        font-size: 24px;
    }
    
    /* Contact */
    .contact__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact__info h3 {
        font-size: 24px;
    }
    
    /* Load more button */
    .load-more-btn {
        min-width: 160px;
        font-size: 14px;
        padding: 12px 24px;
    }
    
    /* Scroll to top */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Desktop logo styles */
@media (min-width: 768px) {
    /* На десктопе показываем SVG, скрываем PNG */
    .hero__logo-desktop {
        display: block !important;
    }
    
    .hero__logo-mobile {
        display: none !important;
    }
    
    .hero__logo-image {
        height: 120px;
    }
    
    .hero__logo-surname {
        font-size: 60px;
    }
    
    .hero__logo-name {
        font-size: 48px;
    }
}

/* Large screens */
@media (min-width: 1440px) {
    :root {
        --container-width: 1400px;
        --spacing-xl: 120px;
    }
    
    .section__title {
        font-size: 56px;
    }
    
    .hero__description {
        font-size: 22px;
    }
    
    .hero__logo-image {
        height: 140px;
    }
    
    .hero__logo-surname {
        font-size: 70px;
    }
    
    .hero__logo-name {
        font-size: 56px;
    }
}
