/* Responsive Design - Mobile First Approach */

/* Base Mobile Styles (320px and up) */
@media (max-width: 767px) {
  
  /* Typography Adjustments */
  h1 {
    font-size: 2.14rem;
  }
  
  h2 {
    font-size: 1.77rem;
  }
  
  h3 {
    font-size: 1.58rem;
  }
  
  .hero h1 {
    font-size: 2.61rem;
  }
  
  .section-title {
    font-size: 2.14rem;
  }
  
  /* Container and Spacing */
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  section {
    padding: var(--spacing-md) 0;
  }
  
  /* Header/Navigation - удалены конфликтующие стили, теперь используется navigation-fix.css */
  
  /* Hero Section */
  .hero {
    min-height: 70vh;
    text-align: center;
    padding: var(--spacing-lg) 0;
  }
  
  .hero p {
    font-size: 1.21rem;
  }
  
  /* Grid Systems */
  .row {
    flex-direction: column;
  }
  
  .col, .col-6, .col-4, .col-3 {
    flex: none;
    max-width: 100%;
    margin-bottom: var(--spacing-md);
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .service-item {
    padding: var(--spacing-sm);
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-price {
    font-size: 1.58rem;
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Blog Grid */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .blog-image {
    height: 180px;
  }
  
  /* Gallery */
  .gallery {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact Form */
  .contact-form {
    margin: var(--spacing-md) 0 0;
    padding: var(--spacing-md);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  /* Cards */
  .card {
    padding: var(--spacing-sm);
  }
  
  /* FAQ */
  .faq-question {
    padding: var(--spacing-sm);
    font-size: 0.96rem;
  }
  
  .faq-answer {
    padding: var(--spacing-sm);
  }
  
  /* Utility spacing adjustments */
  .section-header {
    margin-bottom: var(--spacing-md);
  }
  
  /* Swiper/Slider adjustments for mobile */
  .reviews-slider .review-item {
    margin: 0;
  }
  
  /* Disable hover effects on mobile */
  .card:hover,
  .service-item:hover,
  .team-member:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
    box-shadow: var(--shadow-light);
  }
  
  /* Mobile-specific navigation */
  .breadcrumb {
    justify-content: center;
  }
}

/* Tablet Styles (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  
  /* Typography */
  .hero h1 {
    font-size: 3.10rem;
  }
  
  .section-title {
    font-size: 2.33rem;
  }
  
  /* Layout adjustments */
  .container {
    padding: 0 var(--spacing-md);
  }
  
  /* Navigation - Restore horizontal layout */
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .navbar-nav {
    flex-direction: row;
    gap: var(--spacing-sm);
    width: auto;
    text-align: left;
  }
  
  .nav-link {
  font-size: 10px !important;
    padding: var(--spacing-xs) var(--spacing-sm);
    display: inline-block;
  }
  
  /* Grid Systems */
  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Blog Grid */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Gallery */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
  
  /* Full desktop experience */
  .hero h1 {
    font-size: 3.61rem;
  }
  
  .section-title {
    font-size: 2.61rem;
  }
  
  /* Navigation - стили перенесены в navigation-fix.css */
  
  /* Grid Systems */
  .col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
  
  .col-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Blog Grid */
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Gallery */
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Gallery */
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large Desktop Styles (1400px and up) */
@media (min-width: 1400px) {
  
  .container {
    max-width: 1320px;
  }
  
  /* Gallery */
  .gallery {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Landscape Phone Styles */
@media (max-width: 767px) and (orientation: landscape) {
  
  .hero {
    min-height: 50vh;
  }
  
  .hero h1 {
    font-size: 2.14rem;
  }
  
  .hero p {
    font-size: 1.09rem;
  }
}

/* Print Styles */
@media print {
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .btn,
  .contact-form,
  footer {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: var(--spacing-md) 0;
  }
  
  .section-title {
    page-break-after: avoid;
  }
  
  .card {
    page-break-inside: avoid;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  a[href^="#"]:after {
    content: "";
  }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  
  .service-icon,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark Mode Support (respecting system preferences) */
@media (prefers-color-scheme: dark) {
  
  /* Note: As per requirements, we're not implementing dark mode styles */
  /* This media query is included for future compatibility */
  
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  
  .hero::before {
    animation: none;
  }
  
  .card,
  .service-item,
  .team-member,
  .blog-item,
  .gallery-item,
  .btn {
    transition: none;
  }
  
  .card:hover,
  .service-item:hover,
  .team-member:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
  }
}

/* Contrast Enhancement */
@media (prefers-contrast: high) {
  
  .card,
  .service-item,
  .team-member,
  .blog-item {
    border: 2px solid var(--color-primary);
  }
  
  .btn {
    border: 2px solid var(--color-deep);
  }
} 