/* Top City v17 — final responsive alignment and compact production sections. */

:root {
  --inner-hero-edge: 18px;
  --inner-section-x: clamp(26px, 4.8vw, 88px);
}

.inner-page .page-hero {
  box-sizing: border-box;
  width: calc(100% - 36px);
  margin-inline: var(--inner-hero-edge);
  border-radius: 0 0 20px 20px;
}

.error-page .error-main {
  box-sizing: border-box;
  width: calc(100% - 36px);
  border-radius: 0 0 20px 20px;
}

.inner-page .page-hero h1,
.inner-page .inner-heading h2,
.inner-page .form-intro h2,
.inner-page .page-cta h2 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.inner-page h1,
.inner-page h2,
.inner-page h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.inner-page .page-hero h1 {
  hyphens: none;
}

.inner-page .content-band {
  box-sizing: border-box;
  padding: clamp(64px, 5.4vw, 94px) var(--inner-section-x);
}

.inner-page .inner-heading {
  margin-bottom: clamp(32px, 3.4vw, 52px);
}

.inner-page .inner-heading h2 {
  font-size: clamp(42px, 4.25vw, 72px);
  line-height: .95;
}

.inner-page .inner-heading > p:last-child {
  font-size: clamp(13px, .82vw, 15px);
  line-height: 1.62;
}

@media (width >= 981px) {
  .products-page .products-hero,
  .production-page .production-hero,
  .about-page .story-hero,
  .cases-page .story-hero,
  .contacts-page .contact-hero,
  .rigid-box-page .rigid-hero {
    min-height: clamp(600px, calc(100svh - 126px), 690px);
    padding: clamp(46px, 3.4vw, 64px) clamp(40px, 4.5vw, 82px);
  }

  .products-page .products-hero .page-hero-copy,
  .production-page .production-hero .page-hero-copy,
  .about-page .story-hero .page-hero-copy,
  .cases-page .story-hero .page-hero-copy,
  .contacts-page .contact-hero .page-hero-copy,
  .rigid-box-page .rigid-hero .page-hero-copy {
    width: min(720px, 46%);
    max-width: 46%;
  }

  .inner-page .page-hero h1 {
    font-size: clamp(50px, 4.2vw, 78px);
    line-height: .93;
  }

  .rigid-box-page .rigid-hero h1 {
    font-size: clamp(48px, 3.6vw, 68px);
  }

  .contacts-page .contact-hero {
    grid-template-columns: minmax(0, 46%) minmax(285px, 360px);
    justify-content: space-between;
    align-items: center;
  }

  .contacts-page .contact-hero-visual {
    left: 50%;
  }

  .contacts-page .hero-contact-card {
    align-self: end;
    margin-bottom: 2px;
  }
}

/* Production block 02: one compact visual system instead of a very tall strip. */
.production-page #capabilities {
  padding-block: clamp(58px, 4.6vw, 82px);
}

.production-page #capabilities .inner-heading {
  margin-bottom: clamp(28px, 2.8vw, 42px);
}

.production-page .production-capabilities {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 12px;
}

.production-page .production-feature {
  min-height: 230px;
  border-radius: 16px;
}

.production-page .production-feature-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 472px;
}

.production-page .production-feature-copy {
  padding: clamp(20px, 2vw, 32px);
}

.production-page .production-feature-copy h3 {
  margin-block: 9px 7px;
  font-size: clamp(23px, 2vw, 34px);
  line-height: 1.02;
}

.production-page .production-feature-copy p {
  font-size: 12px;
  line-height: 1.48;
}

/* Production block 04: map and three locations now fit into one desktop screen. */
.production-page section[aria-labelledby="locations-title"] {
  padding-block: clamp(58px, 4.6vw, 82px);
}

.production-page section[aria-labelledby="locations-title"] .inner-heading {
  margin-bottom: clamp(28px, 2.8vw, 42px);
}

.production-page .locations-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, .58fr);
  gap: 12px;
}

.production-page .locations-map {
  min-height: 420px;
  border-radius: 16px;
}

.production-page .locations-map-copy {
  max-width: 590px;
  padding: clamp(24px, 2.5vw, 34px);
}

.production-page .locations-map-copy h3 {
  font-size: clamp(28px, 2.5vw, 42px);
}

.production-page .location-list {
  gap: 9px;
}

.production-page .location-card {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.production-page .location-number {
  width: 44px;
  height: 44px;
}

.production-page .location-card strong {
  font-size: 15px;
}

.production-page .location-card > span:last-child > span {
  font-size: 10px;
  line-height: 1.45;
}

@media (981px <= width <= 1100px) {
  .production-page .production-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-page .production-feature {
    min-height: 255px;
  }

  .production-page .production-feature-large {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 360px;
  }

  .production-page .locations-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr);
  }
}

@media (width <= 980px) {
  :root {
    --inner-hero-edge: 10px;
    --inner-section-x: 28px;
  }

  .inner-page .page-hero {
    display: flex !important;
    width: calc(100% - 20px);
    min-height: 0 !important;
    padding: 52px 34px 26px !important;
    flex-direction: column;
    align-items: stretch;
  }

  .error-page .error-main {
    width: calc(100% - 20px);
    margin-inline: 10px;
  }

  .inner-page .page-hero-copy {
    z-index: 5;
    order: 1;
    width: 100% !important;
    max-width: none !important;
  }

  .inner-page .page-hero h1 {
    max-width: 780px;
    font-size: clamp(43px, 7.6vw, 64px);
    line-height: .94;
  }

  .inner-page .page-hero-lead {
    max-width: 680px;
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.58;
  }

  .products-page .products-hero-art,
  .about-page .story-hero-art,
  .cases-page .story-hero-art,
  .production-page .page-hero-visual,
  .contacts-page .contact-hero-visual,
  .rigid-box-page .rigid-hero-visual {
    position: relative !important;
    inset: auto !important;
    order: 2;
    width: 100%;
    height: 380px;
    margin-top: 32px;
    flex: none;
  }

  .production-page .page-hero-visual,
  .contacts-page .contact-hero-visual,
  .rigid-box-page .rigid-hero-visual {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    overflow: hidden;
  }

  .contacts-page .hero-contact-card {
    order: 3;
    width: 100%;
    margin-top: 12px;
  }

  .products-page .products-hero-stats,
  .production-page .production-hero-stats,
  .about-page .story-hero-facts,
  .cases-page .story-hero-facts,
  .rigid-box-page .rigid-hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 720px;
    margin-top: 26px;
    padding-top: 15px;
  }

  .production-page .locations-layout {
    grid-template-columns: 1fr;
  }

  .production-page .production-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-page .production-feature {
    min-height: 255px;
  }

  .production-page .production-feature-large {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 360px;
  }

  .production-page .location-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .production-page .locations-map {
    min-height: 380px;
  }

  .company-feature-visual,
  .cases-showcase figure,
  .office-map {
    min-height: 460px;
  }
}

@media (width <= 680px) {
  :root {
    --inner-hero-edge: 6px;
    --inner-section-x: 16px;
  }

  .section-heading h2,
  .inner-page .inner-heading h2,
  .inner-page .form-intro h2,
  .inner-page .page-cta h2 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    font-size: clamp(31px, 9.1vw, 42px);
    line-height: .98;
  }

  .inner-page .page-hero {
    width: calc(100% - 12px);
    padding: 38px 16px 16px !important;
    border-radius: 0 0 16px 16px;
  }

  .error-page .error-main {
    width: calc(100% - 12px);
    margin-inline: 6px;
    padding: 48px 16px;
    border-radius: 0 0 16px 16px;
  }

  .error-page .error-content h1 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    font-size: clamp(35px, 10.7vw, 46px);
    line-height: .95;
  }

  .error-page .error-content > p {
    font-size: 14px;
    line-height: 1.58;
  }

  .inner-page .page-kicker {
    gap: 10px;
    margin-bottom: 21px;
    font-size: 9px;
    line-height: 1.35;
  }

  .inner-page .page-kicker::after {
    width: 34px;
    flex: 0 0 34px;
  }

  .inner-page .page-hero h1 {
    max-width: 100%;
    font-size: clamp(31px, 9.8vw, 42px);
    letter-spacing: -.052em;
    line-height: .96;
  }

  .inner-page .page-hero-lead {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.58;
  }

  .inner-page .page-hero-actions {
    gap: 9px;
    margin-top: 24px;
  }

  .inner-page .page-hero-actions .button {
    width: 100%;
    min-height: 52px;
    padding-inline: 18px;
  }

  .products-page .products-hero-art,
  .about-page .story-hero-art,
  .cases-page .story-hero-art,
  .production-page .page-hero-visual,
  .contacts-page .contact-hero-visual,
  .rigid-box-page .rigid-hero-visual {
    height: 295px;
    margin-top: 26px;
  }

  .products-page .products-hero-main,
  .about-page .story-hero-main,
  .cases-page .story-hero-main {
    inset: 5% 1% 3% !important;
  }

  .products-page .products-hero-stats,
  .production-page .production-hero-stats,
  .about-page .story-hero-facts,
  .cases-page .story-hero-facts,
  .rigid-box-page .rigid-hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 23px;
  }

  .products-page .products-hero-stats div,
  .production-page .production-hero-stats div,
  .about-page .story-hero-facts div,
  .cases-page .story-hero-facts div,
  .rigid-box-page .rigid-hero-facts div {
    min-height: 0;
    padding: 5px 7px 5px 0;
  }

  .products-page .products-hero-stats div + div,
  .production-page .production-hero-stats div + div,
  .about-page .story-hero-facts div + div,
  .cases-page .story-hero-facts div + div,
  .rigid-box-page .rigid-hero-facts div + div {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .13);
    padding-left: 8px;
  }

  .products-page .products-hero-stats strong,
  .production-page .production-hero-stats strong,
  .about-page .story-hero-facts strong,
  .cases-page .story-hero-facts strong,
  .rigid-box-page .rigid-hero-facts strong {
    font-size: clamp(17px, 5vw, 23px);
  }

  .products-page .products-hero-stats span,
  .production-page .production-hero-stats span,
  .about-page .story-hero-facts span,
  .cases-page .story-hero-facts span,
  .rigid-box-page .rigid-hero-facts span {
    font-size: 9px;
    line-height: 1.32;
  }

  .inner-page .content-band {
    padding-block: 55px;
  }

  .inner-page .inner-heading {
    gap: 22px;
    margin-bottom: 28px;
  }

  .inner-page .inner-heading > p:last-child {
    font-size: 14px;
    line-height: 1.6;
  }

  .production-page .production-capabilities {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .production-page .production-feature,
  .production-page .production-feature-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 290px;
  }

  .production-page .production-feature-large {
    min-height: 330px;
  }

  .production-page .production-feature-copy {
    padding: 21px;
  }

  .production-page .production-feature-copy h3 {
    font-size: clamp(22px, 7vw, 29px);
  }

  .production-page .process-grid {
    gap: 10px;
  }

  .production-page .process-card {
    min-height: 220px;
  }

  .production-page .locations-map {
    min-height: 300px;
  }

  .production-page .locations-map-copy {
    padding: 20px;
  }

  .production-page .locations-map-copy p {
    font-size: 12px;
  }

  .production-page .location-list {
    grid-template-columns: 1fr;
  }

  .production-page .location-card {
    min-height: 104px;
  }

  .company-feature-visual,
  .cases-showcase figure,
  .office-map {
    min-height: 330px;
  }

  .inner-page .page-cta {
    padding: 36px 20px;
  }

  .inner-page .page-cta-actions {
    min-width: 0;
  }
}

@media (width <= 370px) {
  .inner-page .page-hero h1 {
    font-size: 30px;
  }

  .inner-page .page-hero {
    padding-inline: 14px !important;
  }

  .inner-page .page-hero-actions .button {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-page *,
  .inner-page *::before,
  .inner-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
