@import url("./styles-base.css");

/*
 * Icon system normalization.
 * Keep icon geometry predictable: section CSS owns the visual box,
 * while SVG viewBox data only describes the drawing itself.
 */

:where(
  .site-header__phone,
  .hero__address,
  .trust-item,
  .symptom-card,
  .selected-symptom,
  .service-card
) svg {
  display: block;
  flex: 0 0 auto;
  transform: none;
  transform-origin: center;
  shape-rendering: geometricPrecision;
}

:where(
  .site-header__phone,
  .hero__address,
  .trust-item,
  .symptom-card,
  .selected-symptom,
  .service-card
) svg * {
  vector-effect: non-scaling-stroke;
}

.site-header__phone svg {
  width: 22px;
  height: 22px;
}

.hero__address svg {
  width: 20px;
  height: 20px;
}

.trust-item svg {
  width: 36px;
  height: 36px;
}

.trust-item:nth-child(2) svg {
  width: 40px;
  height: 36px;
}

/* Symptoms: one stable icon lane and one stable text lane. */
.symptom-card {
  --symptom-icon-size: 38px;

  grid-template-rows: 48px minmax(2.44em, auto);
  align-content: center;
}

.symptom-card > svg {
  width: var(--symptom-icon-size);
  height: var(--symptom-icon-size);
  margin: 0;
  align-self: center;
  justify-self: center;
  stroke-width: 1.9;
}

.symptom-card > span:not(.symptom-card__selected) {
  display: grid;
  min-height: 2.44em;
  place-items: center;
}

/* Optical correction: equal viewBox does not mean equal visible mass. */
.symptom-card:nth-child(1) { --symptom-icon-size: 37px; }
.symptom-card:nth-child(2) { --symptom-icon-size: 36px; }
.symptom-card:nth-child(3) { --symptom-icon-size: 38px; }
.symptom-card:nth-child(4) { --symptom-icon-size: 35px; }
.symptom-card:nth-child(5) { --symptom-icon-size: 39px; }
.symptom-card:nth-child(6) { --symptom-icon-size: 40px; }
.symptom-card:nth-child(7) { --symptom-icon-size: 36px; }
.symptom-card:nth-child(8) { --symptom-icon-size: 36px; }

.selected-symptom__icon {
  width: 32px;
  height: 32px;
  align-self: center;
  justify-self: center;
}

/* Services: fixed icon/title lanes keep all card content on one baseline. */
.service-card {
  --service-icon-size: 38px;

  display: grid;
  grid-template-rows: 48px minmax(2.35em, auto) 1fr;
  align-content: start;
}

.service-card > svg {
  width: var(--service-icon-size);
  height: var(--service-icon-size);
  min-width: 0;
  min-height: 0;
  margin: 0;
  align-self: center;
  justify-self: start;
  stroke-width: 1.9;
}

.service-card h3 {
  align-self: start;
  margin-top: 0;
}

.service-card p {
  align-self: start;
}

.service-card:nth-child(1) { --service-icon-size: 36px; }
.service-card:nth-child(2) { --service-icon-size: 38px; }
.service-card:nth-child(3) { --service-icon-size: 40px; }
.service-card:nth-child(4) { --service-icon-size: 38px; }
.service-card:nth-child(5) { --service-icon-size: 35px; }
.service-card:nth-child(6) { --service-icon-size: 35px; }
.service-card:nth-child(7) { --service-icon-size: 34px; }
.service-card:nth-child(8) { --service-icon-size: 35px; }

.process__item {
  grid-template-rows: auto auto minmax(96px, 1fr) 56px;
}

.process__icon {
  display: block;
  width: 52px;
  height: 52px;
  max-width: 52px;
  align-self: end;
  justify-self: start;
  object-fit: contain;
  object-position: center;
}

.process__connector {
  height: 0;
  background: none;
  border-top: 1px dashed #bdbdb6;
  color: var(--color-yellow);
}

.process__connector::before {
  display: none;
}

.process__connector::after {
  top: -5px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-top-width: 2px;
  border-right-width: 2px;
}

/*
 * Responsive behaviour for icon-heavy sections.
 * Cards change column count instead of continuously shrinking their contents.
 */
@media (max-width: 1120px) {
  .services__layout {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .services__media {
    min-height: 300px;
    max-height: 380px;
  }
}

@media (max-width: 900px) {
  .symptoms__grid,
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .symptom-card {
    min-height: 138px;
  }

  .service-card {
    min-height: 176px;
  }

  .selected-symptom {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .selected-symptom__button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .process__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .process__item {
    grid-template-rows: auto auto minmax(72px, auto) 56px;
  }

  .process__connector {
    display: none;
  }
}

@media (max-width: 700px) {
  .trust-strip__grid {
    grid-template-columns: 1fr;
    padding-block: 10px;
  }

  .trust-item {
    min-height: 76px;
    justify-content: flex-start;
    padding-inline: 20px;
  }

  .trust-item + .trust-item {
    border-left: 0;
    border-top: 1px solid #cfcfca;
  }

  .selected-symptom {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .selected-symptom__icon {
    display: none;
  }
}

@media (max-width: 560px) {
  .symptoms__grid,
  .services__grid,
  .process__list {
    grid-template-columns: 1fr;
  }

  .symptom-card {
    min-height: 124px;
    padding: 15px 16px;
  }

  .symptom-card > span:not(.symptom-card__selected) {
    min-height: 0;
  }

  .service-card {
    min-height: 0;
    grid-template-rows: 46px auto auto;
    padding: 18px;
  }

  .service-card h3 {
    min-height: 0;
  }

  .services__media {
    min-height: 240px;
  }

  .process__item {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 18px;
  }

  .process__marker-row {
    grid-row: 1 / 4;
    align-items: start;
  }

  .process__item h3,
  .process__item p,
  .process__icon {
    grid-column: 2;
  }

  .process__item h3 {
    margin-top: 8px;
  }

  .process__item p {
    max-width: none;
    margin-bottom: 16px;
  }

  .process__icon {
    align-self: start;
  }
}

/* The large graphic logo already contains the service name. */
.hero__brand {
  display: none;
}

/*
 * Header + hero geometry.
 * The logo, header and hero share the same responsive variables so the hero
 * never depends on a one-off pixel offset for a particular desktop width.
 */
:root {
  --brand-logo-width: clamp(230px, 15vw, 280px);
  --hero-height: clamp(620px, 44vw, 700px);
  --hero-logo-reserve: clamp(174px, 12vw, 230px);
}

.site-header {
  height: 96px;
}

.site-header__inner {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container-max-width));
  grid-template-columns: var(--brand-logo-width) minmax(360px, 1fr) auto;
  gap: clamp(18px, 2vw, 30px);
}

.site-header__brand {
  width: var(--brand-logo-width);
  height: 96px;
}

.site-header__logo {
  width: var(--brand-logo-width);
}

.site-nav {
  transform: none;
}

.hero__grid {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container-max-width));
  min-height: var(--hero-height);
  margin-inline: auto;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
}

.hero__content {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  justify-items: start;
  padding: var(--hero-logo-reserve) clamp(28px, 3vw, 54px) 54px 0;
  overflow: visible;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 3.25vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero__lead {
  max-width: 560px;
  margin-bottom: 22px;
}

.hero__address {
  margin-bottom: 30px;
}

.hero__actions {
  gap: clamp(28px, 3vw, 46px);
}

.hero__actions .button {
  min-width: clamp(238px, 18vw, 278px);
}

.hero__media {
  min-height: var(--hero-height);
}

.hero__media img {
  object-position: 48% 50%;
}

@media (max-width: 1380px) {
  :root {
    --brand-logo-width: clamp(220px, 17vw, 245px);
    --hero-logo-reserve: clamp(160px, 12vw, 185px);
  }

  .site-header__brand,
  .site-header__logo {
    width: var(--brand-logo-width);
  }

  .site-header__inner {
    grid-template-columns: var(--brand-logo-width) minmax(330px, 1fr) auto;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 3.55vw, 3rem);
  }
}

@media (max-width: 1180px) {
  .site-header__inner {
    grid-template-columns: var(--brand-logo-width) 1fr auto;
  }

  .site-nav__list {
    gap: 16px;
  }

  .site-header__phone span {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 49fr) minmax(0, 51fr);
  }

  .hero__content {
    padding-right: 28px;
  }
}

@media (max-width: 980px) {
  :root {
    --hero-height: auto;
    --hero-logo-reserve: 150px;
  }

  .site-header {
    height: 84px;
  }

  .site-header__inner {
    height: 84px;
    grid-template-columns: var(--brand-logo-width) 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    min-height: 520px;
    padding: var(--hero-logo-reserve) 0 52px;
  }

  .hero__media {
    min-height: 460px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(2.5rem, 6vw, 3.25rem);
  }
}

@media (max-width: 620px) {
  :root {
    --brand-logo-width: 180px;
    --hero-logo-reserve: 120px;
  }

  .site-header__inner {
    grid-template-columns: var(--brand-logo-width) 1fr;
  }

  .site-header__actions .button {
    display: none;
  }

  .hero__content {
    min-height: 480px;
    padding-bottom: 40px;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hero__actions .button,
  .hero__actions .text-link {
    width: 100%;
    min-width: 0;
  }
}

/* M15: tablet and phone layouts. Desktop rules above remain the source of truth. */
.site-header__menu-toggle,
.mobile-nav,
.repair-cta__call {
  display: none;
}

.mobile-nav[hidden] {
  display: none;
}

@media (max-width: 1024px) {
  :root {
    --page-gutter: 28px;
    --header-height: 84px;
  }

  .site-header,
  .site-header__inner {
    height: var(--header-height);
  }

  .site-header__inner {
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .site-header__brand {
    width: 110px;
    height: var(--header-height);
    align-items: center;
  }

  .site-header__logo {
    position: static;
    width: 110px;
    height: calc(var(--header-height) - 8px);
    max-width: 100%;
    object-fit: contain;
  }

  .site-nav,
  .site-header__actions .button {
    display: none;
  }

  .site-header__actions {
    gap: 8px;
  }

  .site-header__phone {
    min-height: 44px;
    font-size: 0.9375rem;
  }

  .site-header__menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
    place-content: center;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--color-black);
    cursor: pointer;
  }

  .site-header__menu-toggle > span:not(.visually-hidden) {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .mobile-nav:not([hidden]) {
    position: fixed;
    z-index: 150;
    inset: 0;
    display: block;
  }

  .mobile-nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgb(21 21 21 / 54%);
    opacity: 0;
    transition: opacity 250ms ease;
  }

  .mobile-nav__panel {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: min(86vw, 360px);
    height: 100dvh;
    flex-direction: column;
    padding: 20px 20px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-white);
    box-shadow: 16px 0 48px rgb(0 0 0 / 16%);
    transform: translateX(-100%);
    transition: transform 250ms ease;
  }

  .mobile-nav.is-open .mobile-nav__backdrop {
    opacity: 1;
  }

  .mobile-nav.is-open .mobile-nav__panel {
    transform: translateX(0);
  }

  .mobile-nav__heading {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-nav__brand {
    display: inline-flex;
    width: 102px;
    height: 56px;
    align-items: center;
  }

  .mobile-nav__brand img {
    width: 102px;
    height: 56px;
    object-fit: contain;
    object-position: left center;
  }

  .mobile-nav__close {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-white);
    color: var(--color-black);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-nav__list {
    display: grid;
    margin: 18px 0 20px;
    padding: 0;
    border-top: 1px solid var(--color-border);
    list-style: none;
  }

  .mobile-nav__list a {
    display: flex;
    min-height: 56px;
    align-items: center;
    padding-inline: 2px;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-nav__content {
    display: grid;
  }

  .mobile-nav__booking {
    width: 100%;
  }

  .mobile-nav__contacts {
    display: grid;
    gap: 6px;
    margin-top: auto;
    padding-top: 28px;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .mobile-nav__contacts a {
    color: var(--color-black);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-nav__contacts address {
    font-style: normal;
  }

  html:has(body.mobile-menu-open),
  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open {
    overscroll-behavior: none;
  }

  .hero__grid {
    width: min(calc(100% - (var(--page-gutter) * 2)), var(--container-max-width));
    margin-inline: auto;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero__grid {
    min-height: 540px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .hero__content {
    min-height: 0;
    padding: 68px 24px 42px 0;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 4.6vw, 2.75rem);
  }

  .hero__lead {
    margin-bottom: 18px;
    font-size: 1rem;
  }

  .hero__address {
    margin-bottom: 22px;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero__actions .button,
  .hero__actions .text-link {
    width: 100%;
    min-width: 0;
  }

  .hero__media {
    min-height: 540px;
  }

  .trust-item {
    padding-inline: 16px;
    font-size: 0.9375rem;
  }

  .section {
    padding-block: 56px;
  }

  .reviews__layout,
  .waiting__layout,
  .price-works__layout {
    gap: 32px;
  }

  .price-works__layout {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  }

  .contacts__card {
    padding: 32px 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --page-gutter: 16px;
    --header-height: 72px;
    --text-h1: clamp(2rem, 9vw, 2.5rem);
    --text-h2: clamp(1.625rem, 7vw, 2rem);
  }

  .site-header__inner {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .site-header__brand,
  .site-header__logo {
    width: 88px;
  }

  .site-header__logo {
    height: 64px;
  }

  .site-header__phone {
    width: 44px;
    justify-content: center;
    gap: 0;
  }

  .site-header__phone span {
    display: none;
  }

  .section,
  .symptoms,
  .services,
  .benefits,
  .reviews,
  .process,
  .gallery,
  .waiting,
  .price-works {
    padding-block: 48px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading p {
    font-size: 0.9375rem;
  }

  .section-heading--split {
    align-items: flex-end;
    gap: 14px;
  }

  .section-heading--split .text-link {
    min-height: 32px;
    flex: 0 0 auto;
    font-size: 0.875rem;
  }

  .hero__grid {
    width: 100%;
    min-height: 0;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .hero__content {
    min-height: 0;
    padding: 28px var(--page-gutter) 30px;
    overflow: visible;
  }

  .hero__brand {
    display: block;
    margin: 0 0 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .hero h1 {
    max-width: 590px;
    margin-bottom: 16px;
    font-size: var(--text-h1);
    letter-spacing: -0.045em;
    line-height: 1.08;
  }

  .hero__lead {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.42;
  }

  .hero__address {
    gap: 8px;
    margin-bottom: 22px;
    font-size: 0.9375rem;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero__actions .button,
  .hero__actions .text-link {
    width: 100%;
    min-width: 0;
  }

  .hero__actions .button {
    min-height: 52px;
  }

  .hero__actions .text-link {
    min-height: 40px;
    justify-content: center;
    font-size: 0.9375rem;
  }

  .hero__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero__media img {
    object-position: 51% 57%;
  }

  .trust-strip__grid {
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-block: 8px;
  }

  .trust-item {
    min-height: 104px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    font-size: 0.75rem;
    line-height: 1.22;
    text-align: center;
  }

  .trust-item + .trust-item {
    border-top: 0;
    border-left: 1px solid #cfcfca;
  }

  .trust-item svg,
  .trust-item:nth-child(2) svg {
    width: 28px;
    height: 28px;
  }

  .symptoms__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .symptom-card {
    min-height: 116px;
    grid-template-rows: 34px minmax(3.1em, auto);
    gap: 7px;
    padding: 12px 7px;
    font-size: 0.71875rem;
    line-height: 1.17;
  }

  .symptom-card > svg {
    width: 30px;
    height: 30px;
  }

  .symptom-card > span:not(.symptom-card__selected) {
    min-height: 3.1em;
  }

  .symptom-card__selected {
    top: 6px;
    right: 6px;
    padding: 2px 4px;
    font-size: 0.5rem;
  }

  .selected-symptom {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
  }

  .selected-symptom__icon {
    display: none;
  }

  .selected-symptom__title {
    font-size: 0.9375rem;
  }

  .selected-symptom__button {
    width: 100%;
    min-width: 0;
  }

  .services__layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-card {
    position: relative;
    display: grid;
    min-height: 0;
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 3px;
    align-items: center;
    padding: 14px 12px;
  }

  .service-card > svg {
    width: 34px;
    height: 34px;
    grid-row: 1 / -1;
    grid-column: 1;
    margin: 0;
    justify-self: center;
  }

  .service-card h3 {
    min-height: 0;
    grid-column: 2;
    margin: 0;
    font-size: 0.875rem;
  }

  .service-card p {
    grid-column: 2;
    font-size: 0.75rem;
  }

  .service-card::after {
    grid-row: 1 / -1;
    grid-column: 3;
    align-self: center;
    color: var(--color-black);
    content: "›";
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
  }

  .services__media {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .services__media img {
    object-position: 49% 55%;
  }

  .benefits h2 {
    margin-bottom: 24px;
  }

  .benefits__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit,
  .benefit:first-child {
    min-height: 0;
    padding: 0 10px;
  }

  .benefit:first-child {
    padding-left: 0;
  }

  .benefit:last-child {
    padding-right: 0;
  }

  .benefit__number {
    margin-bottom: 7px;
    font-size: 1.625rem;
  }

  .benefit h3 {
    margin-bottom: 8px;
    font-size: 0.8125rem;
    line-height: 1.2;
  }

  .benefit p {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .reviews__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .reviews__summary {
    gap: 5px;
  }

  .reviews__summary .reviews__rating {
    font-size: 3rem;
  }

  .reviews__widget,
  .yandex-reviews,
  .yandex-reviews iframe {
    height: 560px;
  }

  .process {
    padding-block: 48px 44px;
  }

  .process__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process__item {
    position: relative;
    display: grid;
    min-height: 0;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    padding-bottom: 24px;
  }

  .process__item:not(:last-child)::after {
    position: absolute;
    top: 52px;
    bottom: 4px;
    left: 28px;
    border-left: 1px dashed #bdbdb6;
    content: "";
  }

  .process__marker-row {
    min-height: 52px;
    grid-row: 1 / -1;
    grid-column: 1;
    align-items: start;
  }

  .process__number {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .process__connector {
    display: none;
  }

  .process__item h3,
  .process__item p,
  .process__icon {
    grid-column: 2;
  }

  .process__item h3 {
    margin: 4px 0 7px;
    font-size: 1rem;
  }

  .process__item p {
    max-width: none;
    margin: 0 0 12px;
    font-size: 0.875rem;
  }

  .process__icon {
    width: 46px;
    height: 46px;
    margin: 0;
    align-self: start;
  }

  .gallery__grid {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(200px, 1.45fr) minmax(130px, 0.9fr);
    gap: 8px;
  }

  .gallery__item--workshop {
    grid-column: 1 / -1;
  }

  .waiting__layout,
  .price-works__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .waiting__main-media,
  .waiting__content {
    min-height: 0;
    height: auto;
  }

  .waiting__main-media {
    aspect-ratio: 4 / 3;
  }

  .waiting__main-media img {
    transform: none;
    object-position: 50% 50%;
  }

  .waiting__content h2 {
    margin-bottom: 14px;
  }

  .waiting__content > p {
    font-size: 1rem;
  }

  .prices h2,
  .works h2 {
    margin-bottom: 20px;
  }

  .price-row {
    min-height: 52px;
    gap: 16px;
    font-size: 0.9375rem;
  }

  .price-row span {
    min-width: 0;
  }

  .price-row strong {
    flex-shrink: 0;
    font-size: 0.875rem;
  }

  .prices__button {
    width: 100%;
  }

  .works__heading {
    margin-bottom: 20px;
  }

  .works__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .work-card img {
    height: auto;
    aspect-ratio: 4 / 3;
    margin-bottom: 14px;
  }

  .repair-cta {
    padding-block: 44px;
  }

  .repair-cta__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .repair-cta h2 {
    margin-bottom: 12px;
  }

  .repair-cta p {
    font-size: 1rem;
  }

  .repair-cta__actions {
    width: 100%;
    justify-items: stretch;
    gap: 12px;
  }

  .repair-cta__button,
  .repair-cta__call {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  .repair-cta__phone {
    justify-content: center;
    margin-top: 4px;
  }

  .contacts__layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .contacts__card {
    padding: 38px var(--page-gutter);
  }

  .contacts__map {
    height: 330px;
  }

  .contacts__map iframe {
    height: 330px;
  }

  .contacts__facade {
    height: 260px;
  }

  .contacts__facade img {
    object-position: 50% 42%;
  }

  .site-footer {
    padding-block: 20px;
  }

  .site-footer__inner {
    display: grid;
    gap: 8px;
  }

  .booking-modal__backdrop {
    padding: 12px;
    place-items: start center;
  }

  .booking-modal__dialog {
    width: 100%;
    margin-block: 12px;
    padding: 28px 20px 22px;
  }

  .booking-modal__description {
    margin-bottom: 18px;
  }

  .booking-modal__form {
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .symptoms__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .symptom-card {
    min-height: 112px;
    font-size: 0.75rem;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .benefit,
  .benefit:first-child,
  .benefit:last-child {
    padding: 0;
  }

  .benefit + .benefit {
    padding-top: 18px;
    border-top: 1px solid #555555;
    border-left: 0;
  }

  .benefit h3 {
    font-size: 0.9375rem;
  }

  .benefit p {
    font-size: 0.875rem;
  }

  .trust-item {
    min-height: 108px;
    font-size: 0.6875rem;
  }
}
