/**
 * FUTURE DESIGN BUREAU - RESPONSIVE STYLESHEET
 * Breakpoints: 1440px, 1200px, 992px, 768px, 576px, 375px
 */

@media (max-width: 1440px) {
  :root {
    --container-max: 1320px;
  }
}

@media (max-width: 1200px) {
  :root {
    --container-max: 1080px;
  }

  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-item.span-7 { grid-column: span 12; }
  .project-item.span-5 { grid-column: span 6; }
  .project-item.span-4 { grid-column: span 6; }
  .project-item.span-8 { grid-column: span 12; }
}

@media (max-width: 992px) {
  .site-header {
    padding: 1.25rem 0;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #111111;
    color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5rem 3rem;
    gap: 1.75rem;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    color: #FFFFFF;
    font-size: 1.35rem;
    font-weight: 600;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 2.25rem 1.75rem;
  }

  .stat-item {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    padding-right: 2rem;
    padding-bottom: 0;
  }

  .stat-item:last-child {
    border-right: none;
    padding-right: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .project-modal-window {
    grid-template-columns: 1fr;
    height: 94vh;
    overflow-y: auto;
  }

  .modal-media-column {
    min-height: 400px;
    height: 50vh;
  }

  .modal-info-column {
    padding: 2rem 1.5rem;
  }

  .modal-close-btn {
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.8);
  }
}

@media (max-width: 768px) {
  .hero-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-actions {
    width: 100%;
    justify-content: space-between;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.75rem;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-right: 0;
    padding-bottom: 1.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .project-item.span-5,
  .project-item.span-6,
  .project-item.span-4,
  .project-item.span-8,
  .project-item.span-7 {
    grid-column: span 12;
  }

  .project-image-wrap,
  .project-item.span-7 .project-image-wrap,
  .project-item.span-5 .project-image-wrap,
  .project-item.span-12 .project-image-wrap {
    aspect-ratio: 16 / 11;
  }

  .projects-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 0.75rem;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 576px) {
  .brand-logo {
    height: 38px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    display: none;
  }

  .lang-dropdown-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .hero-section {
    padding-top: 6.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .btn-primary {
    justify-content: center;
    width: 100%;
  }

  .modal-media-column {
    height: 38vh;
    min-height: 260px;
  }

  .modal-thumbs-strip {
    height: 65px;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-form-panel {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 375px) {
  :root {
    --container-pad: 1rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .brand-logo {
    height: 34px;
  }

  .brand-title {
    font-size: 0.88rem;
  }

  .lang-dropdown-btn .lang-label {
    display: none;
  }
}
