@media (max-width: 860px) {
  :root {
    --section-space: 68px;
  }

  html {
    font-size: 15px;
  }

  body {
    background:
      radial-gradient(circle at 18% 8%, rgba(67, 132, 255, 0.22), transparent 28%),
      radial-gradient(circle at 84% 14%, rgba(255, 184, 0, 0.16), transparent 24%),
      linear-gradient(180deg, #06101d 0%, #091728 50%, #0f223c 100%);
  }

  .page-grid {
    opacity: 0.12;
    background-size: calc(100vw / 6) 72px;
  }

  .page-aurora {
    filter: blur(78px);
  }

  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .site-header {
    position: sticky;
    top: 0;
    padding-top: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: padding-top 0.28s ease, transform 0.28s ease;
  }

  .nav-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
      linear-gradient(120deg, rgba(78, 137, 255, 0.08), transparent 52%, rgba(255, 184, 0, 0.08));
    transition:
      grid-template-columns 0.28s ease,
      gap 0.28s ease,
      padding 0.28s ease,
      border-radius 0.28s ease,
      box-shadow 0.28s ease,
      background 0.28s ease;
  }

  .brand {
    align-items: center;
    gap: 12px;
    transition: gap 0.28s ease;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    flex: 0 0 48px;
    transition: transform 0.28s ease, border-radius 0.28s ease;
  }

  .brand-copy {
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.25;
    transition: opacity 0.2s ease, max-width 0.28s ease, transform 0.28s ease;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 7px;
    padding: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    transition:
      opacity 0.2s ease,
      transform 0.28s ease,
      max-height 0.28s ease,
      margin 0.28s ease,
      padding 0.28s ease,
      border-width 0.28s ease;
  }

  .main-nav a,
  .nav-links-trigger {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.86rem;
    scroll-snap-align: start;
    flex: 0 0 auto;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
    transition: grid-template-columns 0.28s ease, gap 0.28s ease;
  }

  .header-phone,
  .header-actions .btn {
    min-height: 52px;
    border-radius: 18px;
    transition:
      opacity 0.2s ease,
      transform 0.28s ease,
      max-height 0.28s ease,
      min-height 0.28s ease,
      padding 0.28s ease,
      margin 0.28s ease,
      border-radius 0.28s ease;
  }

  .header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
  }

  .header-actions .btn {
    padding: 0 18px;
  }

  .site-header.is-compact {
    padding-top: 6px;
  }

  .site-header.is-compact .nav-shell {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .site-header.is-compact .brand {
    gap: 0;
  }

  .site-header.is-compact .brand-copy {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transform: translateY(-6px);
  }

  .site-header.is-compact .main-nav {
    display: none;
  }

  .site-header.is-compact .header-actions {
    grid-template-columns: 1fr;
    justify-self: end;
    width: auto;
  }

  .site-header.is-compact .header-phone {
    opacity: 1;
    max-height: none;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    overflow: visible;
    border-width: 0.5px;
    transform: none;
    pointer-events: auto;
    white-space: nowrap;
  }

  .site-header.is-compact .header-actions .btn {
    display: none;
  }

  .hero {
    padding: 24px 0 0;
  }

  .hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
  }

  .hero-copy,
  .hero-visual {
    grid-column: auto;
  }

  .hero-visual {
    order: 1;
    min-height: auto;
    padding: 14px;
    border-radius: 28px;
    gap: 12px;
  }

  .hero-copy {
    order: 2;
  }

  .hero-banner-top {
    display: none;
  }

  .hero-banner-bottom {
    order: 3;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .hero-banner span {
    margin-bottom: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .hero-banner strong {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .hero-media-frame {
    width: 100%;
    padding: 8px;
    border-radius: 24px;
  }

  .hero-visual img {
    width: 100%;
    height: clamp(250px, 52vw, 360px);
    min-height: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
  }

  .section-kicker {
    margin-bottom: 12px;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(2.5rem, 12vw, 3.55rem);
    line-height: 0.96;
  }

  .hero-copy h2 {
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }

  .metric {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    min-height: auto;
    padding: 16px;
    border-radius: 20px;
    gap: 10px 14px;
  }

  .metric strong,
  .metric span {
    margin: 0;
  }

  .metric strong {
    font-size: 1.02rem;
  }

  .metric span {
    line-height: 1.45;
    font-size: 0.92rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-actions .btn {
    min-height: 54px;
    padding: 0 12px;
    text-align: center;
  }

  .section {
    padding-top: var(--section-space);
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-head.split,
  .process-head {
    display: grid;
    gap: 14px;
    align-items: start;
  }

  .section-head h2 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 8vw, 2.45rem);
    line-height: 1.04;
  }

  .section-head p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .slider-controls {
    display: grid;
    grid-template-columns: repeat(2, 54px);
    justify-content: flex-start;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-tile {
    grid-column: auto;
    min-height: 0;
    border-radius: 24px;
  }

  .service-tile img {
    height: 290px;
  }

  .service-overlay {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(12, 22, 38, 0.9), rgba(12, 22, 38, 0.8));
  }

  .service-overlay span {
    margin-bottom: 10px;
    font-size: 0.78rem;
  }

  .service-overlay h3 {
    margin-bottom: 8px;
    font-size: 1.18rem;
  }

  .service-overlay p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .portfolio-ribbon {
    overflow: visible;
  }

  .portfolio-track {
    min-height: 560px;
  }

  .portfolio-slide {
    grid-template-columns: 1fr;
    gap: 14px;
    align-content: start;
    padding: 16px;
    border-radius: 26px;
    transform: translateY(18px) scale(0.985);
  }

  .portfolio-slide.is-active {
    transform: translateY(0) scale(1);
  }

  .portfolio-slide img,
  .portfolio-labels,
  .portfolio-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .portfolio-slide img {
    width: 100%;
    max-width: none;
    height: 250px;
    min-height: 0;
    padding: 8px;
    border-radius: 22px;
  }

  .portfolio-labels {
    margin-bottom: 0;
    gap: 8px;
  }

  .state-chip {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .portfolio-copy {
    padding: 16px;
    border-radius: 20px;
  }

  .portfolio-copy h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
  }

  .portfolio-copy p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .slider-dots {
    padding-top: 18px;
  }

  .equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .equipment-card {
    min-height: 0;
    padding: 16px 12px;
    border-radius: 22px;
  }

  .equipment-card img {
    height: 84px;
    object-fit: contain;
    margin-bottom: 12px;
  }

  .equipment-card strong {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .process-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-step {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 0.5px solid rgba(255, 255, 255, 0.1);
  }

  .process-step::after,
  .process-step:not(:last-child)::after {
    display: none;
  }

  .process-icon {
    grid-row: 1 / span 2;
    width: 58px;
    height: 58px;
    margin-bottom: 0;
    border-radius: 18px;
  }

  .process-step h3 {
    align-self: end;
    margin: 0;
    font-size: 1.08rem;
  }

  .process-step p {
    grid-column: 2;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-wrap,
  .contact-side {
    grid-column: auto;
  }

  .contact-side {
    order: 1;
    gap: 16px;
  }

  .contact-form-wrap {
    order: 2;
    padding: 20px;
    border-radius: 28px;
  }

  .contact-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .messenger-tile,
  .contact-card,
  .map-card {
    border-radius: 24px;
  }

  .messenger-tile {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px 14px;
    min-height: 0;
    padding: 18px;
  }

  .messenger-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .messenger-icon svg {
    width: 24px;
    height: 24px;
  }

  .messenger-name {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .messenger-tile strong {
    margin-top: 2px;
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .messenger-tile small {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card h3 {
    margin-bottom: 12px;
    font-size: 1.28rem;
  }

  .contact-card p {
    margin-bottom: 10px;
    line-height: 1.55;
  }

  .map-card {
    min-height: auto;
    padding: 18px;
    display: grid;
    gap: 14px;
  }

  .map-grid,
  .map-card::before {
    display: none;
  }

  .map-pin {
    position: relative;
    inset: auto;
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .map-pin strong {
    font-size: 0.88rem;
  }

  .map-caption {
    position: static;
  }

  .map-caption strong {
    margin-bottom: 8px;
  }

  .map-caption p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-form label {
    gap: 8px;
  }

  .contact-form span {
    font-size: 0.88rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 15px 16px;
    border-radius: 16px;
    font-size: 16px;
  }

  .contact-form textarea {
    min-height: 132px;
  }

  .contact-form .btn {
    width: 100%;
  }

  .links-overlay {
    padding: 10px;
  }

  .links-overlay-panel {
    max-height: calc(100vh - 20px);
    padding: 18px 14px 16px;
    border-radius: 24px;
  }

  .links-overlay-close {
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .links-hub-head {
    margin-bottom: 18px;
    padding-right: 56px;
  }

  .links-hub-head h2 {
    font-size: 1.45rem;
    line-height: 1.08;
  }

  .links-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .links-card {
    padding: 16px;
    border-radius: 22px;
  }

  .links-card h3 {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .links-list {
    gap: 8px;
  }

  .links-list a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .site-footer {
    padding: 72px 0 24px;
  }

  .footer-shell {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: 24px;
  }

  .footer-links {
    gap: 14px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-figure {
    width: min(100vw - 24px, 1200px);
    padding: 10px;
    border-radius: 22px;
  }

  .lightbox-figure img {
    max-height: calc(100vh - 120px);
    border-radius: 18px;
  }

  .lightbox-figure figcaption {
    padding: 12px 4px 2px;
    font-size: 0.88rem;
  }

  .lightbox-close,
  .lightbox-nav {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 1.8rem;
  }

  .lightbox-nav {
    margin-top: -23px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

@media (max-width: 640px) {
  .hero-actions,
  .header-actions {
    grid-template-columns: 1fr;
  }

  .site-header.is-compact .nav-shell {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .site-header.is-compact .header-actions {
    width: auto;
    justify-self: end;
  }

  .metric {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .portfolio-track {
    min-height: 600px;
  }

  .portfolio-slide img {
    height: 220px;
  }

  .equipment-grid {
    grid-template-columns: 1fr 1fr;
  }

  .slider-controls {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider-arrow {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(var(--container), calc(100% - 16px));
  }

  .nav-shell,
  .hero-visual,
  .contact-form-wrap,
  .footer-shell {
    border-radius: 22px;
  }

  .brand-copy {
    font-size: 0.74rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-copy h2,
  .section-head p,
  .service-overlay p,
  .portfolio-copy p,
  .process-step p,
  .messenger-tile small,
  .map-caption p {
    font-size: 0.88rem;
  }

  .hero-visual img {
    height: 220px;
  }

  .service-tile img {
    height: 250px;
  }

  .portfolio-track {
    min-height: 620px;
  }

  .portfolio-slide img {
    height: 200px;
  }

  .equipment-card {
    padding: 14px 10px;
  }

  .equipment-card img {
    height: 72px;
  }

  .messenger-tile,
  .contact-card,
  .map-card,
  .links-card {
    padding: 16px;
  }
}
