/* ===== АДАПТИВНЫЕ СТИЛИ ===== */

/* ===== ЭКСТРА БОЛЬШИЕ ЭКРАНЫ (1200px и выше) ===== */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
  
  .gallery-image {
    height: 300px;
  }
  
  .service-image {
    height: 220px;
  }
  
  .case-study-image {
    height: 200px;
  }
}

/* ===== БОЛЬШИЕ ЭКРАНЫ (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  .gallery-image {
    height: 280px;
  }
}

/* ===== СРЕДНИЕ ЭКРАНЫ (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .feature-item {
    margin-bottom: 1.5rem;
  }
  
  .gallery-image {
    height: 250px;
  }
  
  .service-image {
    height: 180px;
  }
  
  .case-study-image {
    height: 160px;
  }
  
  .pricing-card.featured {
    transform: scale(1.02);
  }
  
  .timeline-item {
    padding: 10px 30px;
  }
}

/* ===== МАЛЕНЬКИЕ ЭКРАНЫ (576px - 767px) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-padding {
    padding: 3.5rem 0;
  }
  
  .team-photo {
    width: 90px;
    height: 90px;
  }
  
  .gallery-image {
    height: 220px;
  }
  
  .service-image {
    height: 160px;
  }
  
  .case-study-image {
    height: 140px;
  }
  
  .feature-card, .service-card, .pricing-card, 
  .case-study-card, .career-card, .info-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 21px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0%;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .process-step {
    padding: 1.5rem 0.5rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .nav-link {
    padding: 0.5rem 0;
  }
}

/* ===== ЭКСТРА МАЛЕНЬКИЕ ЭКРАНЫ (до 575px) ===== */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .section-padding {
    padding: 2.5rem 0;
  }
  
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  .gallery-image {
    height: 180px;
  }
  
  .service-image {
    height: 140px;
  }
  
  .case-study-image {
    height: 120px;
  }
  
  .feature-card, .service-card, .pricing-card, 
  .case-study-card, .career-card, .info-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .faq-card {
    padding: 1.5rem;
  }
  
  .timeline-content {
    padding: 15px 20px;
  }
  
  .process-number {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .process-step h5 {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .social-icons-grid {
    gap: 0.25rem;
  }
  
  .social-link {
    width: 35px;
    height: 35px;
  }
  
  .shape-1, .shape-2 {
    display: none;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.25rem;
  }
  
  .feature-icon {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
  
  footer {
    text-align: center;
  }
  
  footer .row {
    text-align: center;
  }
  
  .pricing-card.featured {
    transform: none;
    margin-top: 0;
  }
  
  .pricing-badge {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    display: inline-block;
    margin-bottom: 1rem;
  }
}

/* ===== СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */
@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.6rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .gallery-image {
    height: 160px;
  }
  
  .service-image {
    height: 120px;
  }
  
  .case-study-image {
    height: 100px;
  }
  
  .team-photo {
    width: 70px;
    height: 70px;
    border-width: 2px;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .feature-card, .service-card, .pricing-card, 
  .case-study-card, .career-card, .info-card {
    padding: 1rem;
  }
  
  .contact-form, .contact-info, .review-card, .faq-card {
    padding: 1rem;
  }
  
  .timeline-content {
    padding: 10px 15px;
  }
  
  .social-link {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

/* ===== LANDSCAPE ОРИЕНТАЦИЯ НА МОБИЛЬНЫХ ===== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

/* ===== СТИЛИ ДЛЯ ПЕЧАТИ ===== */
@media print {
  .hero-shapes,
  .navbar,
  footer,
  .btn,
  .social-icons-grid {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: black !important;
    min-height: auto !important;
  }
  
  .section-padding {
    padding: 1rem 0 !important;
  }
  
  .feature-card, .service-card, .pricing-card, 
  .case-study-card, .career-card, .info-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

/* ===== СТИЛИ ДЛЯ ВЫСОКОЙ ПЛОТНОСТИ ПИКСЕЛЕЙ ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image,
  .service-image,
  .case-study-image,
  .gallery-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== ACCESSIBILITY СТИЛИ ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-shapes .shape {
    animation: none !important;
  }
  
  .feature-card:hover, .service-card:hover, .pricing-card:hover, 
  .case-study-card:hover, .career-card:hover, .info-card:hover {
    transform: none !important;
  }
  
  .service-image:hover,
  .gallery-image:hover,
  .btn-primary:hover,
  .social-link:hover {
    transform: none !important;
  }
}

/* ===== ТЕМНАЯ ТЕМА ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --dark-color: #f8f9fa;
    --light-color: #343a40;
  }
  
  body {
    background-color: #1a1a1a;
    color: #f8f9fa;
  }
  
  .feature-card, .service-card, .pricing-card, 
  .case-study-card, .career-card, .info-card,
  .review-card, .faq-card, .contact-form,
  .timeline-content {
    background: #2a2a2a !important;
    color: #f8f9fa !important;
    border-color: #444 !important;
  }
  
  .bg-light {
    background-color: #2a2a2a !important;
  }
}

/* ===== КОНТРАСТНОСТЬ ДЛЯ ACCESSIBILITY ===== */
@media (prefers-contrast: high) {
  .feature-card, .service-card, .pricing-card, 
  .case-study-card, .career-card, .info-card {
    border: 2px solid var(--primary-color) !important;
  }
  
  .btn-primary {
    border: 2px solid #000 !important;
  }
  
  .social-link {
    border: 2px solid #fff !important;
  }
}

/* ===== СТИЛИ ДЛЯ СТАРЫХ БРАУЗЕРОВ ===== */
@supports not (display: grid) {
  .social-icons-grid {
    display: block;
    text-align: center;
  }
  
  .social-link {
    display: inline-block;
    margin: 0.25rem;
  }
}

@supports not (object-fit: cover) {
  .hero-image,
  .service-image,
  .case-study-image,
  .gallery-image,
  .team-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
} 