/* ==========================================================================
   VARSHA AUDIO — Mobile & tablet UX (load after style.css)
   Breakpoints: 991px tablet, 767px phone, 479px small phone
   ========================================================================== */

/* --- Base fluid type (hero) --- */
.hero-slide__line {
  font-size: clamp(1.1rem, 4.2vw, 2.5rem);
  letter-spacing: 0.08em;
}

.hero-slide__pill {
  font-size: clamp(1.15rem, 4.5vw, 2.5rem);
  letter-spacing: 0.06em;
}

main {
  overflow-x: clip;
}

/* ==========================================================================
   DRAWER NAV — full-screen overlay menu
   ========================================================================== */
.header__nav--drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  background: #fafafa;
  border: none;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.5s;
  overflow: hidden;
}

.header__nav--drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header__drawer-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 0, 0, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(0, 0, 0, 0.025) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

.header__drawer-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: max(1.1rem, env(safe-area-inset-top)) clamp(1.25rem, 4vw, 3rem) 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__drawer-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: 110px;
  object-fit: contain;
}

.header__drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: #ffffff;
  color: #0a0a0a;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s ease, color 0.3s ease;
}

.header__drawer-close svg {
  width: 18px;
  height: 18px;
}

.header__drawer-close:hover {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #ffffff;
  transform: rotate(90deg);
}

.header__drawer-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.25rem, 4vw, 3rem) max(1.5rem, env(safe-area-inset-bottom));
}

.header__drawer-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vh, 3rem);
  align-items: start;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.header__drawer-section {
  margin: 0;
}

.header__drawer-section--nav {
  min-width: 0;
}

.header__drawer-section--contact {
  min-width: 0;
}

.header__drawer-label {
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #999999;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__menu--drawer,
.header__nav--drawer .header__menu {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.header__nav--drawer .header__item {
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__nav--drawer .header__item:last-child {
  border-bottom: none;
}

.header__nav--drawer.is-open .header__item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.header__nav--drawer.is-open .header__item:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.09s; }
.header__nav--drawer.is-open .header__item:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.13s; }
.header__nav--drawer.is-open .header__item:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.17s; }
.header__nav--drawer.is-open .header__item:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.21s; }
.header__nav--drawer.is-open .header__item:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.25s; }

.header__drawer-link,
.header__nav--drawer a.header__drawer-link,
.header__nav--drawer button.header__drawer-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: clamp(54px, 7.5vh, 72px);
  margin: 0;
  padding: 0.85rem 0;
  font-family: "Jost", sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: #1a1a1a !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.25s ease, padding-left 0.3s ease;
}

.header__nav--drawer .header__drawer-link::after {
  display: none !important;
}

.header__drawer-link:hover {
  color: #0a0a0a !important;
  background: transparent !important;
  padding-left: 0.35rem;
}

.header__nav--drawer .header__link.header__drawer-link.active,
.header__nav--drawer .header__drawer-link.active {
  background: transparent !important;
  border: none !important;
  color: #0a0a0a !important;
  font-weight: 600;
  padding-left: 0.35rem;
}

.header__drawer-text {
  position: relative;
  flex: 1;
  display: inline-block;
}

.header__nav--drawer .header__drawer-link.active .header__drawer-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #0a0a0a;
  transform-origin: left center;
  animation: drawerActiveLine 0.35s ease forwards;
}

@keyframes drawerActiveLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.header__drawer-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #bbbbbb;
  min-width: 1.5rem;
  transition: color 0.25s ease;
}

.header__drawer-link:hover .header__drawer-num,
.header__nav--drawer .header__drawer-link.active .header__drawer-num {
  color: #0a0a0a;
}

.header__nav--drawer .header__item--has-dropdown {
  border-bottom: none;
}

.header__nav--drawer .header__item--has-dropdown .header__link--dropdown {
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__nav--drawer .header__item--has-dropdown .header__link-chevron {
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.35;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.header__nav--drawer .header__item--has-dropdown.is-open .header__link-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

.header__nav--drawer .header__item--has-dropdown .header__dropdown {
  position: static;
  left: auto;
  top: auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  opacity: 1;
  visibility: visible;
  transform: none !important;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header__nav--drawer .header__item--has-dropdown:hover .header__dropdown,
.header__nav--drawer .header__item--has-dropdown:focus-within .header__dropdown {
  max-height: 0;
  pointer-events: none;
}

.header__nav--drawer .header__item--has-dropdown.is-open .header__dropdown {
  max-height: 80px;
  pointer-events: auto;
}

.header__nav--drawer .header__dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.5rem 2.5rem;
  padding: 0.75rem 1rem;
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666666 !important;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.header__nav--drawer .header__dropdown-link:hover {
  color: #0a0a0a !important;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateX(4px);
}

.header__nav--drawer .header__dropdown-icon {
  width: 14px;
  height: 14px;
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.header__nav--drawer .header__dropdown-link:hover .header__dropdown-icon {
  opacity: 0.9;
}

.header__drawer-contact-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.header__nav--drawer.is-open .header__drawer-contact-card {
  opacity: 1;
  transform: none;
}

.header__drawer-contact-card .header__drawer-label {
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
}

.header__drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0 0 1.35rem;
  font-style: normal;
}

.header__drawer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.header__drawer-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fafafa;
  color: #0a0a0a;
}

.header__drawer-contact-icon svg {
  width: 17px;
  height: 17px;
}

.header__drawer-contact strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #999999;
}

.header__drawer-contact p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #333333;
}

.header__drawer-contact a {
  color: #0a0a0a;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header__drawer-contact a:hover {
  opacity: 0.65;
}

.header__drawer-cta {
  width: 100%;
  margin-bottom: 0.9rem;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.header__drawer-note {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.55;
  letter-spacing: 0.05em;
  color: #aaaaaa;
  text-align: center;
}

.header__drawer-contact p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.nav-open {
  overflow: hidden;
}

html.scroll-locked,
body.scroll-locked {
  overflow: hidden;
}

@media (min-width: 768px) {
  .header__drawer-body {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
  }

  .header__drawer-section--contact {
    align-self: stretch;
    display: flex;
    align-items: center;
  }

  .header__drawer-aside {
    width: 100%;
  }

  .header__drawer-contact-card {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .header__drawer-head {
    padding: max(1.25rem, env(safe-area-inset-top)) clamp(2rem, 5vw, 4rem) 1.25rem;
  }

  .header__drawer-logo {
    height: 52px;
  }

  .header__drawer-scroll {
    padding: clamp(2rem, 6vh, 3.5rem) clamp(2rem, 5vw, 4rem) 2.5rem;
  }

  .header__drawer-body {
    max-width: 1040px;
  }

  .header__drawer-link {
    min-height: 64px;
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  }

  .header__drawer-contact-icon {
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   TABLET & MOBILE (≤991px) — drawer nav, stacked layouts
   ========================================================================== */
@media (max-width: 991.98px) {
  :root {
    --header-height: 72px;
    --space-3xl: 5rem;
    --space-2xl: 4rem;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 8px);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .container {
    padding-left: max(1.125rem, env(safe-area-inset-left));
    padding-right: max(1.125rem, env(safe-area-inset-right));
  }

  .section__header {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
  }

  .section__title {
    font-size: clamp(1.65rem, 5.5vw, 2.35rem);
  }

  .section__desc,
  .section__desc--center {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  /* ----- Header ----- */
  .header__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--header-height);
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 2;
    justify-self: end;
  }

  .header__nav--inline {
    display: none;
  }

  .header__brand {
    z-index: 1002;
  }

  .header__brand-icon {
    width: 82px;
    height: 54px;
    max-height: calc(var(--header-height) - 8px);
    transform: scale(1.02);
  }

  .header__burger {
    display: flex;
    z-index: 1003;
  }

  .header__cta {
    display: none;
  }

  /* ----- Hero slider ----- */
  .hero:not(.hero--static) {
    min-height: 100svh;
    max-height: 100dvh;
  }

  .hero-slide__content {
    top: 58%;
    left: 0;
    right: 0;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: calc(max(0.5rem, env(safe-area-inset-left)) + 48px);
    padding-right: calc(max(0.5rem, env(safe-area-inset-right)) + 48px);
    box-sizing: border-box;
  }

  .hero-slide__copy {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
    padding-bottom: 2rem;
  }

  .hero-slide__rule {
    width: min(72px, 24%);
    margin-top: 0.6rem;
  }

  .hero-slide__sub {
    font-size: 0.86rem;
    max-width: 100%;
  }

  .hero-slider__arrow {
    top: 50%;
    bottom: auto;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    transform: none;
  }

  .hero-slider__arrow--prev {
    left: max(0.5rem, env(safe-area-inset-left));
  }

  .hero-slider__arrow--next {
    right: max(0.5rem, env(safe-area-inset-right));
  }

  .hero-slider__arrow:hover,
  .hero-slider__arrow:active {
    transform: scale(1.05);
  }

  .hero-slider__footer {
    width: min(260px, calc(100% - 3rem));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  /* ----- About / stats / competence ----- */
  .about__grid {
    gap: 1.5rem;
  }

  .about__image--main {
    max-height: 320px;
    aspect-ratio: 16 / 10;
  }

  .competence-card,
  .stat-box {
    padding: 1.25rem;
  }

  .stats__row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .stats__row > [class*="col-"] {
    display: flex;
  }

  .stat-box {
    padding: 1rem 0.65rem;
  }

  .stat-num {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .stat-label {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  /* ----- Highlight stat cards (services / projects) ----- */
  .services__highlights,
  .projects__highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .services__highlight,
  .projects__highlight {
    border-right: none !important;
    border-bottom: none;
    padding: 0.5rem 0.35rem;
  }

  .services__highlight:nth-child(odd),
  .projects__highlight:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .services__highlight:nth-child(-n+2),
  .projects__highlight:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.65rem;
  }

  .services__highlight-num,
  .projects__highlight-num {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  }

  .services__highlight-label,
  .projects__highlight-label {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .services__toolbar {
    justify-content: center;
    margin-bottom: 1.25rem;
  }

  .services__tabs {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .services__tab {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
    justify-content: center;
    padding: 0.75rem 0.85rem;
  }

  .services__panel-card {
    grid-template-columns: 1fr;
  }

  .services__panel-visual {
    min-height: 220px;
    max-height: 280px;
  }

  .services__panel-visual::after {
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.85) 0%, transparent 55%);
  }

  .services__panel-body {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem;
  }

  .services__panel-cta {
    width: 100%;
    justify-content: center;
  }

  .services__flow-track {
    flex-wrap: wrap;
    gap: 0.75rem 0;
    justify-content: center;
  }

  .services__flow-line {
    display: none;
  }

  .services__flow-step {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: 0;
  }

  /* ----- Projects slider ----- */
  .projects__toolbar {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 1.25rem;
    padding-bottom: 0.25rem;
  }

  .projects__toolbar::-webkit-scrollbar {
    display: none;
  }

  .projects__filters {
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
  }

  .projects__filter {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.6rem 1rem;
    font-size: 0.65rem;
  }

  .projects__slider {
    border-radius: 12px;
    --projects-panel-min-h: 5rem;
  }

  .projects__viewport {
    position: relative;
    height: clamp(520px, 100vh, 820px);
    min-height: clamp(520px, 100vh, 820px);
  }

  .projects__track {
    position: relative;
    min-height: inherit;
    height: 100%;
  }

  .projects__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s;
    z-index: 0;
  }

  .projects__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
  }

  .projects__slide.is-filtered {
    display: none;
  }

  .projects__slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .projects__slide-media::after {
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.78) 0%, transparent 55%);
  }

  .projects__slide-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    max-width: none;
    object-fit: contain;
    object-position: center center;
    transform: none !important;
  }

  .projects__slide.is-active .projects__slide-media img {
    transform: none !important;
  }

  .projects__slide-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    border: none;
    background: transparent;
    padding: 1.125rem 1.25rem;
    min-height: var(--projects-panel-min-h);
    align-items: center;
    box-sizing: border-box;
  }

  .projects__slide-name {
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
    padding-left: 0.875rem;
    min-height: 0;
    line-height: 1.25;
    color: #ffffff;
  }

  .projects__slide-index {
    font-size: 2rem;
  }

  .projects__arrow {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
  }

  .projects__arrow--prev {
    left: 0.65rem;
  }

  .projects__arrow--next {
    right: 0.65rem;
  }

  .projects__arrow:hover {
    transform: translateY(-50%);
  }

  .projects__showcase {
    overflow-x: clip;
  }

  .projects__gallery-nav {
    margin-top: 0.85rem;
    width: 100%;
    min-width: 0;
  }

  .projects__slider-footer {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 0.85rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  .projects__counter {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .projects__dots {
    display: none;
  }

  .projects__thumbs-head {
    margin-top: 0;
    margin-bottom: 0.65rem;
    padding: 0;
  }

  .projects__thumbs-label {
    font-size: 0.65rem;
  }

  .projects__thumbs {
    display: flex;
    gap: 0.875rem;
    margin: 0;
    padding: 0.35rem 0 0.5rem;
    width: 100%;
    min-width: 0;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
  }

  .projects__thumb {
    flex: 0 0 38%;
    width: 38%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    scroll-snap-align: center;
    opacity: 0.65;
  }

  .projects__thumb.is-active {
    opacity: 1;
    transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .projects__thumb.is-active img,
  .projects__thumb:hover img {
    transform: none;
  }

  /* ----- Contact ----- */
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact__aside,
  .contact__form {
    height: auto;
  }

  .contact__map-wrap {
    height: clamp(220px, 55vw, 280px);
  }

  .contact__map-head {
    flex-wrap: wrap;
    padding: 0.95rem 1rem;
  }

  .contact__intro {
    max-width: none;
    margin-bottom: 1.5rem;
  }

  .contact__submit {
    width: 100%;
    justify-content: center;
  }

  /* ----- Footer ----- */
  .footer {
    padding-top: var(--space-xl);
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .footer__main {
    text-align: center;
  }

  .footer__brand {
    align-items: center;
    text-align: center;
  }

  .footer__tagline {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__cta {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .footer__col {
    text-align: left;
  }

  .footer__location-info {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 0.5rem;
  }

  .footer__location-info .footer__directions-btn {
    align-self: stretch;
    justify-content: center;
  }

  .footer__map-wrap {
    min-height: 200px;
  }

  .footer__map {
    min-height: 200px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    text-align: center;
  }

  .footer__legal {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer__copyright {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer__site-link,
  .footer__back-top {
    width: 100%;
    justify-content: center;
  }

  .logo-badge--footer .logo {
    height: auto;
    max-height: 72px;
    width: auto;
    max-width: 220px;
    margin: 0 auto;
  }

  .logo-badge--footer {
    padding: 0.85rem 1rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   PHONE (≤767px)
   ========================================================================== */
@media (max-width: 767.98px) {
  :root {
    --header-height: 64px;
    --space-2xl: 3.25rem;
    --space-3xl: 4rem;
  }

  .header__brand-icon {
    width: 72px;
    height: 48px;
  }

  .header__partner-logo {
    height: 26px;
    max-width: 76px;
  }

  .stat-num {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .stat-label {
    font-size: 0.62rem;
  }

  .stats__row > [class*="col-"]:last-child:nth-child(odd):not(:only-child) {
    margin-left: 25%;
  }

  .services__tabs {
    flex-direction: column;
    width: 100%;
    border-radius: 12px;
  }

  .services__tab {
    flex: 1 1 auto;
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .services__flow-step {
    flex: 0 0 calc(50% - 0.35rem);
  }

  .footer__nav,
  .footer__partners {
    text-align: left;
  }

  .competence__title {
    font-size: clamp(1.3rem, 5.5vw, 1.65rem);
  }

  .cta-banner .btn--primary {
    width: 100%;
  }
}

/* ==========================================================================
   SMALL PHONE (≤479px)
   ========================================================================== */
@media (max-width: 479.98px) {
  :root {
    --space-md: 1.1rem;
    --space-lg: 1.65rem;
    --space-xl: 2.25rem;
  }

  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .section__title {
    font-size: clamp(1.5rem, 7.5vw, 1.9rem);
  }

  .hero-slide__content {
    top: 56%;
    padding-left: calc(max(0.5rem, env(safe-area-inset-left)) + 44px);
    padding-right: calc(max(0.5rem, env(safe-area-inset-right)) + 44px);
  }

  .hero-slide__copy {
    padding-bottom: 2.75rem;
  }

  .hero-slide__line {
    font-size: clamp(1rem, 5.5vw, 1.25rem);
    letter-spacing: 0.05em;
  }

  .hero-slide__pill {
    font-size: clamp(1.05rem, 5.8vw, 1.3rem);
    padding: 0.25rem 0.65rem;
  }

  .hero-slider__arrow {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .hero-slider__footer {
    width: min(240px, calc(100% - 2.5rem));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
  }

  .projects__slider {
    --projects-panel-min-h: 4.75rem;
  }

  .projects__thumbs {
    gap: 0.75rem;
  }

  .projects__thumb {
    flex: 0 0 40%;
    width: 40%;
  }

  .contact__form {
    padding: 1rem;
  }

  .contact__field input,
  .contact__field textarea {
    font-size: 16px;
  }

  .contact__visual img {
    height: 180px;
  }

  .footer__partner-btn,
  .footer__directions-btn {
    width: 100%;
    justify-content: center;
  }

  .stat-num {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }
}

/* ==========================================================================
   TOUCH DEVICES
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  .header__link,
  .nav__link,
  .header__dropdown-link {
    min-height: 48px;
  }

  .header__burger,
  .header__nav-close,
  .hero-slider__arrow,
  .projects__arrow,
  .projects__filter,
  .services__tab,
  .projects__thumb,
  .btn,
  .contact__submit,
  .footer__back-top {
    min-height: 44px;
    min-width: 44px;
  }

  .projects__dot {
    width: 7px;
    height: 7px;
    min-width: 7px !important;
    min-height: 7px !important;
    padding: 8px;
    box-sizing: content-box;
    background-clip: content-box;
  }

  .competence-card:hover,
  .stat-box:hover,
  .product-card:hover,
  .services__feature:hover {
    transform: none;
  }
}
