@media (max-width: 767px) {
    .main-content {
        margin-top: 0;
    }

    .logo-container {
        gap: 8px;
    }
    
    .logo-image-wrapper {
        width: 38px;
        height: 38px;
    }
    
    .logo-title {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .header-actions {
        display: none !important;
    }
    
    .contact-link.phone {
        display: none !important;
    }
    
    .contact-link.email {
        display: none !important;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .logo-subtitle {
        display: block;
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .header-actions {
        display: none !important;
    }
    
    .contact-link.phone {
        display: none !important;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .container {
        padding: 0 30px;
    }
    
    .header {
        padding: 0 30px;
    }
    
    .logo-container {
        gap: 14px;
    }
    
    .logo-image-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .logo-title {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-ribbon {
        padding: 15px 40px;
        font-size: 1.25rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .cta-section {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .gallery-item img {
        height: 300px;
    }
    
    .gallery-subtitle {
        font-size: 1.5rem;
    }
    
    .gallery-description {
        font-size: 1rem;
    }
    
    .price-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .footer-bottom {
        margin-top: 30px;
    }
}

@media (min-width: 1024px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: inline-flex !important;
    }
    
    .header-actions {
        display: flex !important;
    }
    
    .header {
        height: 70px;
        padding: 0 40px;
    }
    
    .logo-container {
        gap: 16px;
        padding: 8px;
    }
    
    .logo-image-wrapper {
        width: 52px;
        height: 52px;
        border-width: 3px;
    }
    
    .logo-title {
        font-size: 1.75rem;
        font-weight: 800;
    }
    
    .logo-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .header-actions {
        gap: 25px;
    }
    
    .contact-link {
        padding: 8px 15px;
        border-radius: 25px;
        background: var(--bg-color);
    }
    
    .contact-link:hover {
        background: var(--primary-color);
        color: var(--white);
    }
    
    .contact-link span {
        font-size: 0.95rem;
    }
    
    .desktop-nav {
        display: block;
        background: var(--primary-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 900;
    }
    
    .nav-tabs {
        display: flex;
        list-style: none;
        margin: 0 auto;
        padding: 0;
        max-width: 1200px;
    }
    
    .nav-tabs li {
        flex: 1;
    }
    
    .nav-link {
        display: block;
        padding: 18px 20px;
        color: var(--white);
        text-align: center;
        font-weight: 500;
        font-size: 1.1rem;
        transition: var(--transition);
        position: relative;
        background: transparent;
        outline: none;
    }
    
    .nav-link::before {
        display: none !important;
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.1);
        color: var(--white);
    }
    
    .nav-link:focus {
        outline: none;
        background: rgba(255,255,255,0.05);
    }
    
    .nav-link.active {
        background: rgba(255,255,255,0.15);
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: var(--white);
        border-radius: 3px 3px 0 0;
        transition: width 0.3s ease;
    }
    
    .nav-link:hover::after {
        width: 60%;
    }
    
    .nav-link.active::after {
        width: 60%;
    }
    
    .mobile-nav {
        display: none !important;
    }
    
    .overlay {
        display: none !important;
    }
    
    .main-content {
        margin-top: calc(70px + 54px);
    }
    
    .hero {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-ribbon {
        padding: 20px 60px;
        font-size: 1.5rem;
    }
    
    .welcome-section {
        padding: 60px 0;
    }
    
    .welcome-section h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .welcome-section p {
        font-size: 1.125rem;
        line-height: 1.8;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        margin: 60px 0;
    }
    
    .feature-card {
        padding: 40px 20px;
    }
    
    .feature-card i {
        font-size: 3rem;
    }
    
    #contact {
        padding: 60px 0;
    }
    
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin: 40px 0;
    }
    
    .contact-card {
        padding: 35px;
    }
    
    .contact-card i {
        font-size: 2.5rem;
    }
    
    .opening-hours {
        padding: 40px;
    }
    
    .hours-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .day-row {
        padding: 15px;
    }
    
    .map-wrapper iframe {
        height: 500px;
    }
    
    #gallery {
        padding: 60px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .gallery-item img {
        height: 350px;
    }
    
    .gallery-subtitle {
        font-size: 2rem;
    }
    
    .gallery-description {
        font-size: 1.125rem;
    }
    
    .gallery-section {
        margin-bottom: 80px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 3rem;
        padding: 20px;
    }
    
    #prices {
        padding: 60px 0;
    }
    
    .price-cards {
        grid-template-columns: repeat(3, 1fr);
        margin: 30px 0;
    }
    
    .price-card {
        padding: 40px 30px;
    }
    
    .price-header i {
        font-size: 2.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .additional-services {
        padding: 40px;
    }
    
    .service-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-item {
        padding: 20px;
        background: var(--bg-color);
        border-radius: 8px;
        border: none;
    }
    
    .service-item:hover {
        background: #e8f5e9;
        transform: translateX(5px);
        transition: var(--transition);
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
    }
    
    .footer-section h4 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .footer-social {
        margin: 20px 0;
    }
    
    .social-link {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
        margin-top: 30px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .hero {
        height: 90vh;
        max-height: 800px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        gap: 40px;
    }
}

@media print {
    .header,
    .desktop-nav,
    .mobile-nav,
    .footer,
    .btn,
    .lightbox,
    .overlay {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .page-section {
        display: block !important;
        page-break-after: always;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary-color: #1a3d1f;
        --secondary-color: #4a6b17;
        --text-color: #000;
        --bg-color: #fff;
        --border-color: #000;
    }
    
    .btn,
    .nav-link,
    .mobile-nav-link {
        border: 2px solid currentColor;
    }
}

@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 (prefers-color-scheme: dark) {

}

@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 300px;
    }
    
    .header {
        height: 50px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-subtitle {
        font-size: 1.3rem;
    }
    
    .gallery-description {
        font-size: 0.95rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .contact-card:hover,
    .gallery-item:hover,
    .price-card:hover {
        transform: none;
    }
    
    .btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .nav-link,
    .mobile-nav-link {
        padding: 20px;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: rgba(0,0,0,0.4);
    }
    
    .gallery-overlay i {
        font-size: 1.5rem;
    }
}
