/* 2026-08-23: UX polish after desktop/mobile review */

.ev-hero--brief {
  padding-top: 22px;
  padding-bottom: 24px;
}

.ev-hero--brief .ev-container.ev-hero-card {
  min-height: 600px;
  padding: 46px 48px;
  border-radius: 14px;
}

.ev-hero--brief .ev-hero-photo {
  background: #1b2025 url("/assets/site/evakuator161/images/evakuator161-04.jpg") center center / cover no-repeat;
}

.ev-hero--brief h1 {
  font-family: "Evac Manrope", Inter, Arial, sans-serif;
  font-size: clamp(54px, 4.15vw, 64px);
  font-weight: 850;
  line-height: 1.02;
  text-transform: none;
}

.ev-hero--brief + .ev-section,
.ev-hero--brief + .ev-quick-benefits {
  padding-top: 34px;
}

.ev-section {
  scroll-margin-top: 86px;
}

.ev-situations-section {
  padding-top: 42px;
  background: #fff;
}

.ev-section--dark {
  background:
    linear-gradient(90deg, rgba(255,184,0,.08), rgba(255,184,0,0) 34%),
    #15191d;
}

#prices,
.ev-district-map,
.ev-section--soft {
  background: #f3f5f7;
}

#prices {
  border-top: 1px solid #e1e5ea;
  border-bottom: 1px solid #e1e5ea;
}

.ev-section:has(.ev-case-grid) {
  background: #fff;
}

.ev-case-grid .ev-case-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
}

.ev-case-grid .ev-case-card:first-child img {
  height: 100%;
  min-height: 300px;
}

.ev-case-grid .ev-case-card:first-child .ev-case-card__body {
  display: grid;
  align-content: center;
  padding: 26px;
}

.ev-price-card small,
.ev-case-card p,
.ev-review-grid p,
.ev-faq p,
.ev-note,
.ev-help-card p,
.ev-situation-card p,
.ev-route-card__text,
.ev-delivery-card__text {
  color: #4f5863;
  font-size: 14px;
  line-height: 1.48;
}

.ev-review-grid article,
.ev-faq details,
.ev-panel,
.ev-help-card,
.ev-area-list,
.ev-case-card {
  box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

@media (max-width: 1180px) {
  .ev-hero--brief .ev-container.ev-hero-card {
    width: min(100% - 40px, 980px);
    padding: 38px 34px 286px;
  }

  .ev-hero--brief .ev-hero-photo {
    height: 300px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 62px;
  }

  .ev-hero--brief {
    padding: 10px 0 16px;
  }

  .ev-hero--brief .ev-container.ev-hero-card {
    width: min(100% - 20px, 430px);
    padding: 18px 16px 202px;
    border-radius: 14px;
  }

  .ev-hero--brief .ev-hero-photo {
    height: 205px;
  }

  .ev-hero--brief .ev-hero-photo img {
    object-position: 58% center;
  }

  .ev-hero-card__shade {
    background:
      linear-gradient(180deg, #15191d 0%, rgba(21,25,29,.98) 52%, rgba(21,25,29,.58) 72%, rgba(21,25,29,.05) 100%),
      linear-gradient(90deg, rgba(21,25,29,.36), rgba(21,25,29,.04));
  }

  .ev-hero-status {
    min-height: 30px;
    margin-bottom: 12px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .ev-hero--brief h1,
  .ev-hero--brief h1 span {
    white-space: normal;
  }

  .ev-hero--brief h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 8.8vw, 36px);
    line-height: 1.03;
  }

  .ev-hero-offer {
    margin-bottom: 9px;
    font-size: 17px;
    line-height: 1.28;
  }

  .ev-hero--brief .ev-lead {
    max-width: 310px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.42;
  }

  .ev-hero--brief .ev-hero__actions {
    margin-bottom: 14px;
  }

  .ev-hero--brief .ev-hero__actions .ev-btn {
    min-height: 46px;
    height: 46px;
    padding-inline: 16px;
    font-size: 14px;
  }

  .ev-hero--brief .ev-hero__actions .ev-btn--line,
  .ev-hero-time-badge,
  .ev-hero--brief .ev-hero-benefits {
    display: none;
  }

  .ev-hero-phone {
    grid-template-columns: 34px 1fr;
    gap: 9px;
    margin-bottom: 0;
  }

  .ev-hero-phone__icon {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .ev-hero-phone__icon svg {
    width: 18px;
    height: 18px;
  }

  .ev-hero-phone a {
    font-size: 20px;
  }

  .ev-hero-phone__text > span {
    font-size: 12px;
  }

  .ev-hero--brief + .ev-section,
  .ev-hero--brief + .ev-quick-benefits,
  .ev-section,
  .ev-situations-section,
  .ev-section--dark,
  .ev-calc {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .ev-case-grid .ev-case-card:first-child {
    grid-column: auto;
    display: block;
  }

  .ev-case-grid .ev-case-card:first-child img {
    min-height: 0;
    height: 210px;
  }

  .ev-mobile-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 8px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px rgba(16, 24, 40, .12);
  }

  .ev-mobile-cta a,
  .ev-mobile-cta a:first-child,
  .ev-mobile-cta a:last-child {
    min-height: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
  }

  .ev-mobile-cta a:first-child {
    background: #ffb800;
    color: #111315;
  }

  .ev-mobile-cta a:first-child::before {
    content: none !important;
    display: none !important;
  }

  .ev-mobile-cta a:last-child {
    border: 1px solid #171c22;
    background: #171c22;
    color: #fff;
  }
}

@media (max-width: 380px) {
  .ev-hero--brief .ev-container.ev-hero-card {
    width: min(100% - 16px, 360px);
    padding-inline: 14px;
    padding-bottom: 190px;
  }

  .ev-hero--brief .ev-hero-photo {
    height: 192px;
  }

  .ev-hero--brief h1 {
    font-size: clamp(29px, 9vw, 34px);
  }

  .ev-hero-phone a {
    font-size: 19px;
  }

  .ev-mobile-cta {
    grid-template-columns: minmax(0, 1fr) 92px;
  }
}

/* 2026-08-23: keep vehicle category arrows inside cards */
@media (min-width: 1280px) {
  .ev-vehicle-offer__categories {
    overflow: visible;
    padding-bottom: 18px;
  }

  .ev-vehicle-offer-card {
    height: auto !important;
    min-height: 282px;
    grid-template-rows: 154px minmax(52px, auto) 48px;
    row-gap: 12px;
    padding: 0 14px 14px;
    overflow: visible;
  }

  .ev-vehicle-offer-card h3 {
    margin: 0;
    -webkit-line-clamp: 2;
  }

  .ev-vehicle-offer-card__bottom {
    min-height: 48px;
    align-self: stretch;
    margin-top: 0;
  }

  .ev-vehicle-offer-card__accent {
    width: 36px;
  }

  .ev-vehicle-offer-card__arrow {
    width: 48px !important;
    height: 48px !important;
    inline-size: 48px !important;
    block-size: 48px !important;
    flex-basis: 48px !important;
  }

  .ev-vehicle-offer-card__arrow svg {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 1280px) and (max-width: 1480px) {
  .ev-vehicle-offer-card {
    min-height: 276px;
    grid-template-rows: 148px minmax(52px, auto) 48px;
  }
}

/* 2026-08-26 services page ux start */
.ev-services-case-grid .ev-case-card:first-child {
  grid-column: auto;
  display: block;
  grid-template-columns: none;
}
.ev-services-case-grid .ev-case-card:first-child img,
.ev-services-case-grid .ev-case-card img {
  width: 100%;
  height: 220px;
  min-height: 0;
  object-fit: cover;
}
.ev-services-case-grid .ev-case-card:first-child .ev-case-card__body {
  display: block;
  padding: 18px;
}
@media (max-width: 760px) {
  .ev-services-case-grid .ev-case-card:first-child img,
  .ev-services-case-grid .ev-case-card img {
    height: 210px;
  }
}
/* 2026-08-26 services page ux end */

/* 2026-08-26: mobile header, hero, forms and district accordion fixes start */
@media (max-width: 760px) {
  .ev-header {
    z-index: 42;
  }

  .ev-header__bar {
    width: min(100% - 24px, 430px);
    min-height: 0;
    gap: 9px;
    align-items: stretch;
    padding: 10px 0 9px;
  }

  .ev-logo {
    align-self: flex-start;
  }

  .ev-nav {
    width: 100%;
    display: flex !important;
    gap: 0;
    margin: 0;
    padding: 8px 0 2px;
    overflow-x: auto;
    border-top: 1px solid #eceef1;
    color: #15181c;
    font-size: 12px;
    line-height: 1;
    text-transform: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ev-nav::-webkit-scrollbar {
    display: none;
  }

  .ev-nav a {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid #e1e4e8;
    border-left: 0;
    background: #fff;
    color: #15181c;
    text-decoration: none;
    white-space: nowrap;
  }

  .ev-nav a:first-child {
    border-left: 1px solid #e1e4e8;
    border-radius: 6px 0 0 6px;
  }

  .ev-nav a:last-child {
    border-radius: 0 6px 6px 0;
  }

  .ev-header__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .ev-header__actions .ev-phone {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    color: #15181c;
    font-size: 15px;
    line-height: 1;
  }

  .ev-header__actions .ev-btn {
    display: none;
  }

  .ev-hero--brief {
    padding-top: 12px;
  }

  .ev-hero--brief .ev-container.ev-hero-card {
    width: min(100% - 24px, 430px);
    padding: 22px 16px 232px;
  }

  .ev-hero--brief h1 {
    font-size: clamp(29px, 8.2vw, 32px);
  }

  .ev-hero--brief .ev-lead {
    margin-bottom: 18px;
  }

  .ev-hero--brief .ev-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .ev-hero--brief .ev-hero__actions .ev-btn,
  .ev-hero--brief .ev-hero__actions .ev-btn--line {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: auto;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.15;
    white-space: normal;
  }

  .ev-hero--brief .ev-hero__actions .ev-btn--primary span {
    display: none;
  }

  .ev-hero--brief .ev-hero__actions .ev-btn--line {
    display: inline-flex !important;
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .08);
  }

  .ev-hero-phone {
    margin-bottom: 0;
  }

  .ev-form,
  .ev-form--calc {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ev-field {
    gap: 6px;
  }

  .ev-field label {
    font-size: 11px;
    line-height: 1.25;
  }

  .ev-field input,
  .ev-field select {
    min-height: 48px;
    height: 48px;
    font-size: 15px;
  }

  .ev-form .ev-btn,
  .ev-form button.ev-btn {
    width: 100%;
    min-height: 50px;
    height: auto;
    margin-top: 2px;
    padding: 12px 16px;
    line-height: 1.15;
    white-space: normal;
  }

  .ev-consent {
    margin-top: 0;
    line-height: 1.35;
  }

  .ev-inline-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ev-inline-form input,
  .ev-inline-form .ev-btn {
    min-height: 48px;
    height: 48px;
    border-radius: 6px;
  }

  .ev-district-map__map-card,
  .ev-district-map__canvas {
    min-height: 420px;
    height: 420px;
  }

  .ev-district-item__panel {
    padding: 12px 14px 16px 41px;
  }

  .ev-district-item__panel:not([hidden]) {
    display: block;
  }

  .ev-district-item__phone {
    font-size: 21px;
  }

  .ev-district-map__sheet:not([hidden]) {
    max-height: calc(100% - 96px);
    overflow-y: auto;
  }
}

@media (max-width: 380px) {
  .ev-header__bar {
    width: min(100% - 20px, 360px);
  }

  .ev-nav a {
    padding-inline: 10px;
  }

  .ev-hero--brief .ev-container.ev-hero-card {
    width: min(100% - 20px, 360px);
    padding-inline: 14px;
    padding-bottom: 222px;
  }

  .ev-hero-phone a {
    font-size: 21px;
  }

  .ev-district-map__map-card,
  .ev-district-map__canvas {
    min-height: 400px;
    height: 400px;
  }
}
/* 2026-08-26: mobile header, hero, forms and district accordion fixes end */
