/* =====================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ===================================================== */

/* Mobile First Base Styles are in main.css */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .review-card,
  .faq-card,
  .price-card,
  .blog-card {
    margin-bottom: 1.83rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  /* Typography adjustments */
  h1 {
    font-size: 2.30rem;
  }
  
  h2 {
    font-size: 1.90rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    margin-bottom: 3.81rem;
  }
  
  /* Gallery grid improvements */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }
  
  .gallery-item img {
    height: 300px;
  }
  
  /* Team photos larger on tablets */
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  /* Process timeline adjustments */
  .process-item {
    padding: 2rem;
  }
  
  .process-number {
    width: 35px;
    height: 35px;
    font-size: 0.97rem;
  }
  
  /* Contact form layout */
  .contact-form {
    padding: 2.5rem;
  }
  
  .contact-info {
    padding: 2.5rem;
  }
  
  /* Footer improvements */
  .footer {
    padding: 4rem 0 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Typography improvements */
  h1 {
    font-size: 2.61rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-title {
    margin-bottom: 4rem;
  }
  
  /* Cards hover effects enhanced */
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 17px 40px rgba(0, 0, 0, 0.15);
  }
  
  /* Gallery improvements */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
  }
  
  .gallery-item img {
    height: 350px;
  }
  
  /* Team section enhancements */
  .team-photo {
    width: 160px;
    height: 160px;
  }
  
  /* Process timeline desktop layout */
  .process-timeline {
    padding: 3rem 0;
  }
  
  .process-item {
    padding: 2.5rem;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Price cards enhanced */
  .price-card {
    padding: 2.5rem;
  }
  
  .price-value {
    font-size: 2.31rem;
  }
  
  /* Contact section improvements */
  .contact-form {
    padding: 3rem;
  }
  
  .contact-info {
    padding: 3rem;
  }
  
  /* Footer desktop layout */
  .footer {
    padding: 5rem 0 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Typography final adjustments */
  h1 {
    font-size: 2.80rem;
  }
  
  h2 {
    font-size: 2.39rem;
  }
  
  .hero-section {
    padding: 5rem 0;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .section-title {
    margin-bottom: 4.68rem;
  }
  
  /* Gallery final layout */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
  }
  
  .gallery-item img {
    height: 400px;
  }
  
  /* Team section final adjustments */
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  /* Process timeline final layout */
  .process-item {
    padding: 3rem;
  }
  
  .process-number {
    width: 45px;
    height: 45px;
    font-size: 1.22rem;
  }
  
  /* Price cards final sizing */
  .price-card {
    padding: 3rem;
  }
  
  .price-value {
    font-size: 2.62rem;
  }
  
  /* Contact section final layout */
  .contact-form {
    padding: 3.5rem;
  }
  
  .contact-info {
    padding: 3.5rem;
  }
  
  /* Footer final layout */
  .footer {
    padding: 6rem 0 2rem;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .hero-section {
    padding: 6rem 0;
  }
  
  .section {
    padding: 7rem 0;
  }
  
  .section-title {
    margin-bottom: 5rem;
  }
  
  /* Gallery maximum layout */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
  }
  
  .gallery-item img {
    height: 450px;
  }
  
  /* Team section maximum layout */
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  /* Process timeline maximum layout */
  .process-item {
    padding: 3.5rem;
  }
  
  /* Contact section maximum layout */
  .contact-form {
    padding: 4rem;
  }
  
  .contact-info {
    padding: 4rem;
  }
  
  /* Footer maximum layout */
  .footer {
    padding: 7rem 0 2rem;
  }
}

/* Mobile specific adjustments */
@media (max-width: 575px) {
  /* ОТКЛЮЧЕНИЕ ВСЕХ АНИМАЦИЙ И TRANSITIONS В МОБИЛЬНОМ РАЗРЕШЕНИИ */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Отключение hover-эффектов */
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .gallery-item:hover img,
  .price-card:hover,
  .process-item:hover,
  .process-item:hover .process-number {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--border-color) !important;
  }
  
  /* Отключение Sal.js анимаций */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Mobile typography */
  h1 {
    font-size: 1.85rem;
  }
  
  h2 {
    font-size: 1.52rem;
  }
  
  h3 {
    font-size: 1.28rem;
  }
  
  /* Mobile navbar */
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* ИСПРАВЛЕНИЕ МОБИЛЬНОГО МЕНЮ */
  .navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 1.1rem !important;
  }
  
  .navbar-toggler:focus {
    box-shadow: none !important;
  }
  
  .navbar-collapse {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    display: block !important;
    width: 100% !important;
  }
  
  /* Mobile hero section */
  .hero-section {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    animation: none !important;
  }
  
  /* Mobile sections */
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Mobile cards */
  .service-card,
  .feature-card,
  .team-card,
  .review-card,
  .faq-card,
  .price-card,
  .blog-card,
  .case-study-card,
  .timeline-card,
  .career-card,
  .core-info-card {
    padding: 1.5rem;
    margin-bottom: 1.74rem;
  }
  
  /* Mobile gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Mobile team photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Mobile process timeline */
  .process-item {
    padding: 1.5rem;
  }
  
  .process-number {
    width: 25px;
    height: 25px;
    font-size: 0.81rem;
  }
  
  /* Mobile price cards */
  .price-value {
    font-size: 1.81rem;
  }
  
  /* Mobile contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  /* Mobile footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  /* Mobile feature icons */
  .feature-icon {
    font-size: 2rem;
  }
  
  .core-info-icon {
    font-size: 2rem;
  }
  
  /* Mobile button adjustments */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.98rem;
  }
  
  /* Mobile form adjustments */
  .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  /* Mobile text adjustments */
  .text-center {
    text-align: center;
  }
}

/* Дополнительное отключение анимаций на всех мобильных устройствах */
@media (max-width: 768px) {
  /* Отключение всех переходов и анимаций */
  .hero-section::before {
    animation: none !important;
  }
  
  /* Отключение scroll-based анимаций */
  .timeline-card {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Отключение lightbox анимаций */
  .lightbox {
    animation: none !important;
  }
  
  /* Фиксация navbar */
  .navbar {
    transform: none !important;
    transition: none !important;
  }
}

/* Print styles */
@media print {
  .hero-section::before {
    display: none;
  }
  
  .btn {
    display: none;
  }
  
  .navbar {
    display: none;
  }
  
  .footer {
    page-break-inside: avoid;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-secondary: #000000;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .review-card,
  .faq-card,
  .price-card,
  .blog-card,
  .case-study-card,
  .timeline-card,
  .career-card,
  .core-info-card {
    border-width: 2px;
  }
}

/* Reduced motion already handled in main.css */

/* Focus improvements for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Dark mode support (if needed) */

.hero-content {
    padding-top: 200px;
}