/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --font-size-4xl: 2.25rem;
        --font-size-3xl: 1.75rem;
        --spacing-3xl: 4rem;
    }

    /* Services Grid — 2 колонки */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    /* About Section */
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .about-text h2::after {
        margin-left: auto;
    }

    .about-photo {
        max-width: 280px;
        margin: 0 auto;
    }

    /* Pricing — 2 колонки */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Appreciation — одна колонка */
    .appreciation-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .appreciation-image {
        max-width: 280px;
    }

    /* Карусель — меньшие элементы */
    .gallery-item {
        width: 240px;
    }

    .gallery-carousel-wrapper {
        padding: 0 40px;
    }

    /* Hero logo */
    .hero-brand-mark {
        width: 95px;
        height: 95px;
    }

    /* CTA */
    .cta-card {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    /* Contact */
    .contact-info-centered {
        max-width: 100%;
    }
}

/* ============================================
   MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 1.875rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --spacing-3xl: 3rem;
        --spacing-2xl: 2.5rem;
        --header-height: 70px;
    }

    /* Header & Navigation */
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-white);
        padding: var(--spacing-xl);
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-item {
        border-bottom: 1px solid var(--color-gray-100);
    }

    .nav-link {
        display: block;
        padding: var(--spacing-md) 0;
        font-size: var(--font-size-md);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-top: var(--spacing-md);
        border-bottom: none;
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: var(--font-size-md);
    }

    /* Hero */
    .hero {
        min-height: 90vh;
    }

    .hero-content {
        padding: var(--spacing-2xl) var(--spacing-sm);
    }

    .hero-brand-mark {
        width: 80px;
        height: 80px;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-md);
    }

    .hero-text {
        font-size: var(--font-size-sm);
    }

    .btn-hero {
        padding: 0.875rem 1.75rem;
        font-size: var(--font-size-md);
    }

    .hero-brand-divider span:first-child,
    .hero-brand-divider span:last-child {
        width: 40px;
    }

    /* Services Grid — 1 колонка */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-lg);
    }

    /* Who We Serve */
    .who-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Pricing — 1 колонка */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .pricing-amount {
        font-size: 2.5rem;
    }

    /* Карусель */
    .gallery-carousel-wrapper {
        padding: 0 35px;
    }

    .gallery-item {
        width: 220px;
    }

    .gallery-btn {
        width: 38px;
        height: 38px;
    }

    .gallery-btn-prev {
        left: -5px;
    }

    .gallery-btn-next {
        right: -5px;
    }

    /* CTA */
    .cta-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }

    .cta-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    /* Booking Form */
    .booking-form {
        padding: var(--spacing-lg);
    }

    /* Logo в header */
    .logo-mark {
        width: 44px;
        height: 44px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-tagline {
        font-size: 0.65rem;
    }

    /* Footer logo */
    .footer-brand-mark {
        width: 38px;
        height: 38px;
    }

    /* Typography */
    h1, .hero-title {
        font-size: 2.25rem;
    }

    h2, .section-title {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    :root {
        --font-size-4xl: 1.625rem;
        --font-size-3xl: 1.375rem;
        --spacing-3xl: 2.5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .logo-tagline {
        display: none;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-sm);
    }

    .hero-brand-mark {
        width: 70px;
        height: 70px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    /* Pricing */
    .pricing-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .pricing-amount {
        font-size: 2.25rem;
    }

    /* Карусель */
    .gallery-item {
        width: 200px;
    }

    .gallery-btn {
        display: none;
    }

    .gallery-carousel-wrapper {
        padding: 0 10px;
    }

    /* Contact */
    .contact-info-centered .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Typography */
    h1, .hero-title {
        font-size: 1.875rem;
    }

    h2, .section-title {
        font-size: 1.5rem;
    }

    h3, .service-title, .appreciation-title, .cta-title, .qualities-title {
        font-size: 1.2rem;
    }
}

/* ============================================
   ACCESSIBILITY & PRINT
   ============================================ */
@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;
    }
}

@media print {
    .header,
    .burger,
    .gallery-btn,
    .gallery-dots,
    .footer-credits,
    .cta-section,
    .booking {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: white;
    }

    .hero-title,
    .hero-subtitle {
        color: black;
    }

    .hero-text {
        color: black;
    }

    body {
        font-size: 12pt;
        color: black;
    }

    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip to main content (screen reader) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    z-index: 10000;
    font-size: var(--font-size-sm);
}

.skip-link:focus {
    top: 0;
}