/* Minimal functional/accessibility additions; original visual design is in main.css. */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.btn-reset:focus-visible, .input-reset:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
::selection { background: var(--orange); color: #fff; }
body { min-width: 0; }
input { caret-color: var(--orange); }
.logo.suhodoma-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  height: 46px;
  flex-shrink: 0;
  text-decoration: none;
}
.suhodoma-brand__mark {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: var(--orange);
  -webkit-mask: url("../images/brand/suhodoma-mark.png") center / contain no-repeat;
  mask: url("../images/brand/suhodoma-mark.png") center / contain no-repeat;
}
.suhodoma-brand__name {
  display: block;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.suhodoma-brand__name > span { font-weight: 500; }
.header__logo.suhodoma-brand { color: var(--white); }
.header__inner { column-gap: 24px; }
.header__phone { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; flex-shrink: 0; color: #fff; font-size: 18px; line-height: 1.15; font-weight: 700; white-space: nowrap; }
.header__phone:hover { color: #ffb777; }
@media (min-width: 1024px) {
  .header .nav { padding-inline: 0; }
}
.footer__logo.suhodoma-brand { color: var(--base); }
.suhodoma-brand:hover .suhodoma-brand__name { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (max-width: 1023px) {
  .header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 8px; }
  .header__phone { font-size: 14px; }
  .header .burger { width: 44px; height: 44px; }
  .logo.suhodoma-brand { gap: 6px; height: 36px; }
  .suhodoma-brand__mark { width: 36px; height: 36px; flex-basis: 36px; }
  .suhodoma-brand__name { font-size: 15px; }
}
@media (max-width: 374px) {
  .header__inner { gap: 8px; }
  .header__logo.suhodoma-brand { gap: 4px; }
  .header__logo .suhodoma-brand__mark { width: 26px; height: 26px; flex-basis: 26px; }
  .header__logo .suhodoma-brand__name { font-size: 10.5px; }
  .header__phone { font-size: 12.5px; }
}
.form-status { margin: 12px 0 0; font-size: 14px; line-height: 1.5; text-align: left; }
.form-status[hidden] { display: none; }
.spoller__content[aria-hidden="true"] { display: none; }
.form-status[data-kind="error"] { color: inherit; font-weight: 600; }
.form-status[data-kind="success"] { color: inherit; font-weight: 600; }
.form__input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #b81111; }
.btn:disabled { opacity: .65; cursor: wait; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Full-bleed photographic hero; copy and benefits sit directly over the image. */
.hero--photo { position: relative; isolation: isolate; overflow: hidden; background: #173951; color: #fff; }
.hero__backdrop { position: absolute; inset: 0; z-index: -2; display: block; }
.hero__backdrop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 80% center; }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(9, 25, 37, .88) 0%, rgba(9, 25, 37, .68) 38%, rgba(9, 25, 37, .13) 72%), linear-gradient(0deg, rgba(9, 25, 37, .9), transparent 30%, transparent 85%, rgba(9, 25, 37, .3)); }
.hero--photo .hero__wrapper { padding: 146px 0 36px; background: none; }
.hero--photo .hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy ." "action ." "benefits benefits";
  min-height: 550px;
  gap: 28px 48px;
}
.hero__copy { grid-area: copy; align-self: end; text-shadow: 0 2px 14px rgba(0,0,0,.2); }
.hero__copy .h1 { margin: 0; font-size: clamp(36px, 3.65vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; text-transform: none; }
.hero__copy .h1 span { color: #ffb777; }
.hero__lead { margin: 20px 0 0; max-width: 510px; color: #e3edf4; font-size: 17px; line-height: 1.5; }
.hero--photo .hero__block { grid-area: action; align-self: start; padding: 0; border-radius: 0; background: none; backdrop-filter: none; }
.hero--photo .hero__title { margin: 0 0 15px; font-size: 18px; line-height: 1.35; font-weight: 500; }
.hero--photo .hero__title span { display: inline; color: #ffb777; font-size: inherit; font-weight: 700; }
.hero--photo .hero__form .form__row { grid-template-columns: minmax(0, 1fr) 155px; gap: 12px; max-width: none; }
.hero--photo .hero__form .form__input, .hero--photo .hero__form .btn { height: 50px; }
.hero--photo .hero__form .checkbox { margin-top: 12px; }
.hero--photo .hero__form .checkbox__text { max-width: none; font-size: 10px; line-height: 1.35; color: #d0e0eb; }
.hero--photo .hero__form .checkbox__text a { display: inline; color: inherit; }
.hero--photo .hero__list { grid-area: benefits; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-self: end; gap: 12px; margin: 4px 0 0; padding: 0; border: 0; }
.hero--photo .hero__item { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px 10px; padding: 18px 14px; border-radius: 12px; color: #173951; background: #fff; }
.hero--photo .hero__item::before { content: none; }
.hero__benefit-icon { grid-column: 1; grid-row: 1 / -1; width: 26px; height: 26px; color: #eb6d08; }
.hero--photo .hero__h3 { grid-column: 2; margin: 0; align-self: center; font-size: 15px; line-height: 1.25; font-weight: 700; }
.hero--photo .hero__text { grid-column: 2; margin: 0; color: #38556a; font-size: 12px; line-height: 1.4; }
.hero--photo + .problem { margin: 0; padding-top: 64px; }
.hero--photo + .problem .problem__inner { box-shadow: none; padding: 0; border-radius: 0; align-items: center; }
.hero--photo + .problem .problem__h2 { margin-bottom: 24px; }
@media (max-width: 1023px) {
  .hero--photo .hero__wrapper { padding: 94px 0 28px; }
  .hero--photo .hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "." "action" "benefits"; grid-template-rows: auto minmax(90px, 1fr) auto auto; min-height: calc(min(820px, 100svh) - 122px); gap: 20px; }
  .hero__copy .h1 { max-width: 650px; font-size: 38px; }
  .hero__lead { max-width: 580px; margin-top: 14px; font-size: 16px; line-height: 1.4; }
  .hero__backdrop img { object-position: 80% center; }
  .hero--photo::before { background: linear-gradient(180deg, rgba(9, 25, 37, .86) 0%, rgba(9, 25, 37, .73) 29%, rgba(9, 25, 37, .12) 48%, rgba(9, 25, 37, .79) 69%, rgba(9, 25, 37, .96) 100%); }
  .hero--photo .hero__title { margin-bottom: 12px; font-size: 17px; }
  .hero--photo .hero__btn { display: flex; width: 100%; min-height: 50px; }
  .hero--photo .hero__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
  .hero--photo .hero__item { grid-template-columns: 24px minmax(0, 1fr); padding: 13px 12px; gap: 5px 9px; }
  .hero__benefit-icon { width: 24px; height: 24px; }
  .hero--photo .hero__text { display: block; font-size: 12px; }
  .hero--photo .hero__h3 { font-size: 14px; }
  .hero--photo .hero__item:last-child { grid-column: 1 / -1; grid-template-columns: 24px auto minmax(0, 1fr); align-items: center; }
  .hero--photo .hero__item:last-child .hero__text { grid-column: 3; grid-row: 1; }
  .hero--photo + .problem { padding-top: 40px; }
}
@media (max-width: 600px) {
  .hero__copy .h1 { font-size: 31px; }
  .hero__lead { font-size: 15px; }
  .hero--photo .hero__inner { gap: 18px; }
  .hero--photo .hero__list { gap: 10px; }
}
@media (max-width: 374px) {
  .hero--photo .hero__item:not(:last-child) { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px; }
  .hero--photo .hero__item:not(:last-child) > * { grid-column: 1; grid-row: auto; }
  .hero--photo .hero__h3 { font-size: 13px; }
  .hero--photo .hero__text { font-size: 11.5px; }
}
.gallery__link--real { aspect-ratio: 4 / 3; background: #294966; }
.gallery__link--real .image { object-fit: contain; }

/* Center fixed-size equipment photos on the same axis as their captions. */
.equipment__card { text-align: center; }
.equipment__img { margin-inline: auto; }
.services__img--equipment { background: #fff; }
.services__img--equipment .image { object-fit: contain; padding: 18px; }

/* Final offer: one full-width composition using the site's blue and orange. */
.footer__top { display: block; padding-bottom: 40px; }
.footer__left {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 20px;
  background: var(--white);
  overflow: hidden;
}
.footer__offer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 44px;
  background: var(--dark-blue);
  color: var(--white);
}
.footer__offer .footer__h3 {
  margin: 0;
  padding: 0;
  max-width: 340px;
  color: inherit;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}
.footer__h3 .footer__discount {
  display: block;
  width: fit-content;
  margin-top: 10px;
  color: inherit;
  font-size: 96px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.footer__discount span { font-size: .66em; margin-left: 4px; }
.footer__offer-text { margin: 22px 0 0; max-width: 285px; font-size: 16px; line-height: 1.5; }
.footer__action { align-self: center; padding: 40px 44px; min-width: 0; }
.footer__action-title { margin: 0 0 24px; font-size: 24px; line-height: 1.3; font-weight: 600; }
.footer__form { padding: 0; }
.footer__field-label { display: block; margin: 0 0 9px; font-size: 14px; font-weight: 600; }
.footer__form .form__row { max-width: none; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.footer__form .form__input { height: 52px; background: var(--light-gray); border-color: var(--border); font-size: 16px; }
.footer__form .form__input::placeholder { color: var(--dark-grey); opacity: 1; }
.footer__form .btn { height: 52px; color: var(--base); font-weight: 700; }
.footer__form .checkbox { display: flex; margin-top: 18px; }
.footer__form .checkbox__text { max-width: none; font-size: 12px; line-height: 1.5; color: var(--dark-grey); }
.footer__form .checkbox__text a { display: inline; color: var(--dark-blue); text-underline-offset: 2px; }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); }
.footer__call-label { font-size: 13px; line-height: 1.3; color: var(--dark-grey); }
.footer__contacts .contacts__tel { font-size: 24px; line-height: 1.25; white-space: nowrap; }
@media (min-width: 1200px) {
  .footer__form .form__row { grid-template-columns: minmax(0, 1fr) 175px; }
}
@media (max-width: 767px) {
  .footer__top { padding-bottom: 25px; }
  .footer__left { grid-template-columns: minmax(0, 1fr); }
  .footer__offer { padding: 28px 24px; }
  .footer__offer .footer__h3 { max-width: none; font-size: 26px; }
  .footer__h3 .footer__discount { margin-top: 4px; font-size: 80px; }
  .footer__offer-text { margin-top: 14px; max-width: 270px; font-size: 15px; }
  .footer__action { padding: 28px 24px; }
  .footer__action-title { margin-bottom: 20px; font-size: 22px; }
  .footer__contacts { margin-top: 20px; }
  .footer__contacts .contacts__tel { font-size: 22px; }
}

/* Compact object list. Append after main.css and the existing frontend rules. */
.object .object__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: auto;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.object .object__cards::before {
  content: none;
}

/* Higher specificity resets every legacy nth-child mosaic placement. */
.object .object__cards > .object__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-column: auto;
  grid-row: auto;
  align-items: stretch;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  border-radius: 14px;
}

.object .object__cards > .object__card > .object__img {
  position: relative;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  aspect-ratio: 3 / 2;
  border-radius: 0;
}

.object .object__img > picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.object .object__img img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.object .object__cards > .object__card > .object__content {
  min-width: 0;
  padding: 12px;
}

.object .object__h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 600;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.object .object__text {
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 359px) {
  .object .object__cards {
    gap: 10px;
  }

  .object .object__cards > .object__card > .object__content {
    padding: 10px;
  }

  .object .object__h3 {
    font-size: 14px;
  }

  .object .object__text {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .object .object__cards {
    gap: 16px;
  }

  .object .object__cards > .object__card {
    grid-template-columns: minmax(0, 0.37fr) minmax(0, 0.63fr);
    grid-template-rows: auto;
  }

  .object .object__cards > .object__card > .object__img {
    min-height: 152px;
    aspect-ratio: auto;
  }

  .object .object__cards > .object__card > .object__content {
    align-self: center;
    padding: 16px;
  }

  .object .object__h3 {
    font-size: 17px;
  }

  .object .object__text {
    font-size: 14px;
  }
}

@media (min-width: 1100px) {
  .object .object__cards {
    gap: 20px;
  }

  .object .object__cards > .object__card > .object__content {
    padding: 20px;
  }

  .object .object__h3 {
    font-size: 20px;
  }

  .object .object__text {
    font-size: 15px;
  }
}
