/* R10 Round 05: narrow-screen fixes for the reproduced 320px overflow routes. */
@media (max-width: 760px) {
  .partner-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (min-width: 761px) and (max-width: 800px) {
  .corporate-photo-page .site-header {
    grid-template-columns: minmax(200px, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    padding-inline: 16px;
  }
  .corporate-photo-page .header-actions { min-width: 0; gap: 8px; }
}

/* The shared desktop header cannot fit the Studio menu between 761–900px. */
@media (min-width: 761px) and (max-width: 900px) {
  .studio-page .site-header {
    height: 66px;
    display: flex;
    padding-inline: 16px;
    gap: 12px;
    background: rgba(0, 0, 0, .85);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }
  .studio-page .site-header .brand { flex: 1; min-width: 0; }
  .studio-page .site-header .brand-logo { width: 185px; }
  .studio-page .site-header .phone-link { display: none; }
  .studio-page .site-header .phone-icon-link { display: flex; }
  .studio-page .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 72px;
    display: grid;
    gap: 0;
    background: rgba(9, 9, 9, .96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: .2s;
  }
  .studio-page .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .studio-page .main-nav a { padding: 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .studio-page .main-nav a:last-child { border-bottom: 0; }
  .studio-page .menu-toggle { display: block; }
  .studio-page .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .studio-page .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .studio-page .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 761px) and (max-width: 800px) {
  .studio-page .studio-contact-actions .btn {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

@media (max-width: 360px) {
  .romania-b2b-page .contact-actions .btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-inline: 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .corporate-photo-page .corporate-photo-hero .btn {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-inline: 12px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}
