/* Mobile Styles (< 768px) */
@media (max-width: 767px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-brand {
        max-width: calc(100% - 60px);
    }

    .logo-main {
        font-size: 14px;
        line-height: 1.3;
    }

    .logo-verse {
        font-size: 10px;
        line-height: 1.4;
        max-width: 100%;
        opacity: 0.9;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background-color: rgba(74, 57, 51, 0.98);
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 60px);
        padding: var(--spacing-xl) var(--spacing-lg);
        gap: var(--spacing-md);
        align-items: flex-start;
        transition: right var(--transition-medium);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .btn-cta {
        width: 100%;
        text-align: center;
    }

    /* Hero */
    .hero {
        background-attachment: scroll;
        background-position: center center;
        min-height: 100vh;
        padding: 80px 0 var(--spacing-xl);
        display: flex;
        align-items: center;
    }

    .hero-content {
        padding: var(--spacing-md);
        max-width: 100%;
        margin: 0 var(--spacing-xs);
    }

    .hero-logo {
        width: 120px;
        margin-bottom: var(--spacing-md);
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 36px);
        letter-spacing: 1px;
        margin-bottom: var(--spacing-sm);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(16px, 4vw, 18px);
        margin-bottom: var(--spacing-md);
    }

    .hero-details {
        flex-direction: column;
        gap: var(--spacing-xs);
        font-size: 14px;
        margin-bottom: var(--spacing-md);
    }

    .hero-date,
    .hero-location {
        justify-content: center;
        text-align: center;
    }

    .hero-location svg,
    .hero-date svg {
        width: 16px;
        height: 16px;
    }

    .btn-primary {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
        width: 100%;
        max-width: 280px;
    }

    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-lg);
        padding-top: var(--spacing-xs);
    }

    /* Registration section - уменьшенные отступы */
    .registration {
        padding: var(--spacing-lg) 0;
    }

    .registration .section-title {
        margin-bottom: var(--spacing-md);
        padding-top: 0;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        font-size: var(--font-size-sm);
    }

    .about-text .lead {
        font-size: var(--font-size-md);
    }

    /* Speakers */
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .speaker-placeholder {
        width: 150px;
        height: 150px;
    }

    .speaker-initials {
        font-size: var(--font-size-3xl);
    }

    /* Schedule */
    .schedule-table td {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }

    .schedule-table td.time {
        font-size: 12px;
        width: 100px;
    }

    /* Registration */
    .registration-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .registration-form {
        padding: var(--spacing-lg);
    }

    .registration-info {
        margin-bottom: var(--spacing-lg);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact-person {
        margin-bottom: var(--spacing-md);
    }

    .contact-person:last-child {
        margin-bottom: 0;
    }

    .contact-role {
        font-size: 11px;
    }

    .contact-name {
        font-size: var(--font-size-sm);
    }

    .contact-phone,
    .contact-telegram {
        font-size: 14px;
    }

    .telegram-channel {
        width: 100%;
        justify-content: center;
    }

    /* Pricing */
    .pricing-info {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .price-card {
        width: 100%;
    }

    /* Payment info */
    .payment-info ol {
        padding-left: var(--spacing-md);
    }

    .payment-info li {
        margin-bottom: var(--spacing-xs);
        font-size: var(--font-size-sm);
    }

    /* Container */
    .container {
        --container-padding: 16px;
    }
}

/* Extra Small Mobile (< 375px) */
@media (max-width: 374px) {
    .logo-main {
        font-size: 12px;
    }

    .logo-verse {
        font-size: 9px;
    }

    .hero-title {
        font-size: 24px;
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-details {
        font-size: 12px;
    }

    .hero-content {
        padding: var(--spacing-sm);
    }

    .section-title {
        font-size: var(--font-size-xl);
    }

    .schedule-table td.time {
        font-size: 11px;
        width: 80px;
    }

    .schedule-table td {
        font-size: 12px;
    }
}

/* Tablet Styles (768px - 899px) */
@media (min-width: 768px) and (max-width: 899px) {
    .logo-verse {
        max-width: 350px;
    }

    /* Hero */
    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

    /* Speakers */
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    /* Registration */
    .registration-content {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles (>= 900px) */
@media (min-width: 900px) {
    /* Navigation */
    .navbar .container {
        padding: 0 var(--spacing-xl);
    }

    /* Hero */
    .hero-title {
        font-size: var(--font-size-hero);
    }

    .hero-subtitle {
        font-size: var(--font-size-2xl);
    }

    /* About */
    .about-content {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--spacing-3xl);
    }

    /* Speakers */
    .speakers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-2xl);
    }

    /* Registration */
    .registration-content {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--spacing-3xl);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop (>= 1400px) */
@media (min-width: 1400px) {
    :root {
        --container-max-width: 1320px;
    }

    .hero-title {
        font-size: 80px;
    }

    .section-title {
        font-size: var(--font-size-4xl);
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero {
        background-attachment: scroll;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .btn,
    .footer,
    .modal {
        display: none !important;
    }

    .hero {
        background-image: none !important;
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        color: var(--color-dark);
    }

    .section {
        page-break-inside: avoid;
    }
}
