/* Desktop safety for mobile-only drawer content */
.mobile-menu__footer {
  display: none;
}

@media (max-width: 767.98px) {
  .header {
    padding: .3rem 0;
    background: rgba(255, 255, 255, .34);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
  }

  .header__container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo city burger"
      "socials socials phone";
    align-items: start;
    gap: .42rem .65rem;
    padding: 0 .6rem;
  }

  .header__left,
  .header__right {
    display: contents;
  }

  .header__logo {
    grid-area: logo;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    gap: .42rem;
    text-decoration: none;
  }

  .header__logo-text {
    display: block;
    margin-top: 5px;
    font-size: .9rem;
    font-weight: 800;
    color: #1e293b;
    overflow: visible;
    text-overflow: ellipsis;
    max-width: 6.2rem;
  }

  .header__logo-img {
    width: 2.45rem;
    height: 2.45rem;
    margin-right: 0;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(29, 112, 247, .14);
    flex-shrink: 0;
  }

  .header__geo {
    margin-left: 10px;
    margin-top: 2px;
    grid-area: city;
    white-space: nowrap;
    justify-self: stretch;
    width: 95%;
    min-width: 0;
    max-width: none;
  }

  .header__geo .geo-trigger {
    width: 95%;
    min-width: 0;
    max-width: none;
    min-height: 2.45rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .42rem;
    padding: .52rem .58rem;
    border-radius: .95rem;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(37, 99, 235, .08);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
    color: #334155;
  }

  .header__geo .geo-trigger__text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .78rem;
    line-height: 1.1;
  }

  .header__geo .geo-trigger__icon,
  .header__geo .geo-trigger__chevron {
    flex-shrink: 0;
  }

  .header__geo .geo-dropdown {
    position: fixed;
    top: 4.35rem;
    left: 47%;
    right: auto;
    transform: translateX(-50%);
    width: min(92vw, 22rem);
    max-width: calc(100vw - 1rem);
    max-height: min(66vh, 520px);
    margin: 0;
    overflow: hidden;
    z-index: 1400;
  }

  .header__geo .geo-dropdown__content {
    max-height: min(58vh, 420px);
    overflow-y: auto;
  }

  .burger {
    display: inline-flex;
    grid-area: burger;
    justify-self: end;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 3rem;
    height: 3rem;
    padding: .78rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #2556c7, rgba(24, 36, 58, .96));
    box-shadow: 0 10px 24px rgba(24, 36, 58, .16);
    z-index: 1200;
  }

  .burger span {
    height: 3px;
    background: #fff;
    border-radius: 999px;
  }

  .social-links {
    grid-area: socials;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    gap: .45rem;
    padding-left: 0;
    margin-left: -.15rem;
    width: max-content;
  }

  .social-links__link {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 45%;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(37, 99, 235, .09);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
  }

  .social-links__icon {
    width: 1.15rem;
    height: 1.15rem;
  }

  .header__phone {
    grid-area: phone;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    min-height: 2.5rem;
    padding: .56rem .78rem;
    width: auto;
    max-width: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    color: #2556c7;
    box-shadow: 0 8px 18px rgba(37, 86, 199, .10);
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    text-decoration: none;
  }

  .header__phone svg {
    width: .92rem;
    height: .92rem;
    flex-shrink: 0;
  }

  .schedule-list {
    display: none !important;
  }

  .nav {
    top: 0;
    right: -100%;
    width: min(88vw, 360px);
    height: 100dvh;
    padding: 5.6rem 1rem 8rem;
    background: rgba(255, 255, 255, .98);
    border-radius: 1.5rem 0 0 1.5rem;
    box-shadow: -10px 0 30px rgba(15, 23, 42, .14);
    z-index: 1100;
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    background: transparent;
    border: none;
    padding: 0;
    gap: .6rem;
  }

  .nav__link {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    background: #f4f7fb;
    font-weight: 700;
    justify-content: space-between;
  }

  .nav__item--has-dropdown .dropdown__content {
    background: #f8fbff;
    border-color: rgba(37, 99, 235, .08);
    border-radius: 1rem;
  }

  .nav__item--has-dropdown .dropdown__link {
    padding: .85rem 1rem .85rem 1.25rem;
  }

  .mobile-menu__footer {
    display: block;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #eff5ff, #f8fbff);
    border: 1px solid rgba(37, 99, 235, .08);
  }

  .mobile-menu__title {
    margin: 0 0 .5rem;
    font-size: .85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  .mobile-menu__phone {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: .9rem 1rem;
    margin-bottom: .75rem;
    border-radius: 1rem;
    background: #2556c7;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-menu__socials {
    display: flex;
    gap: .65rem;
  }

  .mobile-menu__social {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: .9rem;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, .08);
  }

  .mobile-menu__social img {
    width: 1.35rem;
    height: 1.35rem;
  }

  .hero,
  .service-hero,
  .service-page .service-hero {
    padding-top: 6.65rem !important;
  }
}

@media (max-width: 479.98px) {
  .header__container {
    grid-template-columns: auto minmax(0, 1fr) 2.85rem;
    gap: .38rem .5rem;
    padding: 0 .65rem;
  }

  .header__logo {
    gap: .38rem;
  }

  .header__logo-img {
    width: 2.3rem;
    height: 2.3rem;
  }

  .header__logo-text {
    max-width: 4.7rem;
    font-size: .78rem;
  }

  .header__geo {
    max-width: none;
  }

  .header__geo .geo-trigger {
    min-height: 2.4rem;
    padding: .5rem .72rem;
    border-radius: .9rem;
  }

  .header__geo .geo-trigger__text {
    font-size: .65rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header__geo .geo-dropdown {
    top: 4.15rem;
    width: calc(100vw - .9rem);
    max-width: calc(100vw - .9rem);
  }

  .burger {
    width: 2.85rem;
    height: 2.85rem;
    padding: .72rem;
  }

  .header__phone {
    min-height: 2.34rem;
    padding: .54rem .72rem;
    font-size: .76rem;
  }

  .social-links__link {
    width: 2.1rem;
    height: 2.1rem;
  }

  .social-links__icon {
    width: 1rem;
    height: 1rem;
  }

  .hero,
  .service-hero,
  .service-page .service-hero {
    padding-top: 6.35rem !important;
  }
}

.form-feedback-live{max-width:1200px;margin:0 auto;padding:0 1rem}.form-feedback-banner{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin:1rem 0 0;padding:1rem 1.25rem;border-radius:1rem;border:1px solid rgba(15,23,42,.08);box-shadow:0 8px 24px rgba(15,23,42,.08);background:#fff}.form-feedback-banner--success{border-color:rgba(34,197,94,.28);background:rgba(240,253,244,.96)}.form-feedback-banner--error{border-color:rgba(239,68,68,.24);background:rgba(254,242,242,.96)}.form-feedback-banner__content{flex:1}.form-feedback-banner__title{display:block;margin-bottom:.35rem;font-size:1rem;font-weight:700;color:#0f172a}.form-feedback-banner__text{margin:0;color:#334155;line-height:1.55}.form-feedback-banner__actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.85rem}.form-feedback-banner__link{display:inline-flex;align-items:center;justify-content:center;padding:.7rem 1rem;border-radius:.75rem;border:1px solid rgba(15,23,42,.1);text-decoration:none;color:#0f172a;background:#fff;font-weight:600}.form-feedback-banner__link--primary{background:#2563eb;color:#fff;border-color:#2563eb}.form-feedback-banner__close{border:0;background:transparent;font-size:1.5rem;line-height:1;cursor:pointer;color:#475569;padding:.1rem .2rem}@media (max-width:767px){.form-feedback-banner{padding:.9rem;gap:.75rem}.form-feedback-banner__actions{flex-direction:column}.form-feedback-banner__link{width:100%}}

/* Mobile fix: tech cards should fit fully on small screens */
@media (max-width: 767.98px) {
  .tech,
  .tech .container,
  .tech__container {
    overflow-x: clip;
  }

  .tech__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .tech__item {
    width: 100%;
    min-width: 0;
    padding: 18px 12px;
    border-radius: 18px;
  }

  .tech__item img {
    width: 100%;
    max-width: 88px;
    height: 72px;
    max-height: none;
    margin: 0 auto 12px;
    object-fit: contain;
  }

  .tech__item span {
    display: block;
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .tech__title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .tech__subtitle {
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  .tech__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tech__item {
    padding: 16px 10px;
  }

  .tech__item img {
    max-width: 74px;
    height: 64px;
  }

  .tech__item span {
    font-size: 0.95rem;
  }

  .tech__title {
    font-size: 1.85rem;
  }
}
