/* ═══════════════════════════════
   RESPONSIVE
   Breakpoints:
   – tablet-lg : 1024px
   – tablet    : 768px
   – mobile-lg : 600px
   – mobile    : 480px
   – mobile-sm : 360px
═══════════════════════════════ */

@media (min-width: 1025px) {
  .services-grid .service-card:last-child {
    grid-column: 2 / 3;
  }
}

/* ── 1024px – Large tablet ── */
@media (max-width: 1024px) {

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid-last {
    justify-content: stretch;
  }
  .service-card--wide {
    width: 100%;
    height: 300px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid .pricing-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / 3;
    max-width: calc(50% - var(--sp-md) / 2);
    margin: 0 auto;
    width: 100%;
  }
  .pricing-grid .pricing-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .two-col-block {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }
}

/* ── 768px – Tablet ── */
@media (max-width: 768px) {
  .services-grid .service-card:last-child {
    grid-column: 1.5 / 3;
  }

  /* About */
  .about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
    align-items: stretch;
  }
  .about-photo-wrap {
    max-width: 100%;
    margin: 0;
  }
  .about-photo-wrap img {
    width: 100%;
    object-fit: cover;
  }

  /* Services: 2 колонки */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card {
    height: 280px;
  }

  /* Pricing: 2 колонки */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-sm);
  }

  /* Two col list → 1 колонка */
  .two-col-list {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero-tagline br { display: none; }
  .cta-content p br { display: none; }
}

.about-photo-wrap img {
  height: 640px;
  object-fit: cover;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}
.footer-grid ul,
.footer-grid .footer-contacts {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ── 600px – Large mobile ── */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }
  .service-card {
    height: 260px;
  }
  .services-grid-last {
    justify-content: stretch;
  }
  .service-card--wide {
    width: 100%;
    height: 240px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }
  .pricing-grid .pricing-card:last-child:nth-child(n) {
    grid-column: auto;
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .about-tabs {
    flex-direction: column;
  }
  .about-tab {
    text-align: center;
  }
  .about-inner {
    display: grid;
    grid-template-columns: 1fr;
  }
  .about-photo-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
  }

  .price-row {
    flex-direction: column;
    gap: 8px;
  }

  .detail-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .consult-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: var(--fs-sm);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .footer-col,
  .footer-contacts {
    margin: 0;
    padding: 0;
  }
  .footer-col nav a,
  .footer-contacts a {
    display: block;
    margin-bottom: 6px;
    line-height: 1.3;
    text-decoration: underline;
    color: inherit;
  }
  .footer-col nav a:last-child,
  .footer-contacts a:last-child {
    margin-bottom: 0;
  }
  .footer-col nav a {
  display: block;
  margin-bottom: 10px;
}
.footer-col nav a:last-child {
  margin-bottom: 0;
}
.service-card img[alt="Устный перевод онлайн"] {
  object-position: center 30%;
}
}

/* ── 480px – Mobile ── */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 0.01em;
    max-width: 18ch;
    margin-inline: auto;
    text-align: center;
  }
  .service-card {
    height: 220px;
  }
  .service-card--wide {
    height: 200px;
  }
  .photo-badges {
    top: 12px;
    left: 12px;
  }
  .about-photo-wrap img {
    height: 420px;
    object-fit: cover;
  }
  .badge {
    font-size: 0.68rem;
    padding: 4px 10px;
  }
  .detail-card {
    padding: 20px;
  }
  .pricing-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }
  #translate .price-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #translate .price-tag {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.9rem;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
  }
  .footer-grid ul,
  .footer-grid .footer-contacts {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .two-col-list {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .two-col-list li:last-child {
    margin-bottom: 0;
  }
}

/* ── 360px – Small mobile ── */
@media (max-width: 360px) {
  :root {
    --container-pad: 16px;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-subtitle {
    font-size: 1.45rem;
  }
  .hero-tagline {
    font-size: 0.82rem;
  }
  .benefits-card {
    padding: 18px;
  }
  .service-card {
    height: 200px;
  }
}

/* ── Landscape mobile ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-block: 100px 60px;
  }
  .hero-scroll-hint {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
    align-items: stretch;
  }
  .about-photo-wrap img {
    width: 100%;
    object-fit: cover;
  }
}