* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
}

body,
button,
input,
textarea {
  font-family: "FiraSans", Arial, sans-serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button {
  border: 0;
}

.container {
  width: calc(100% - 40px);
}

.header__logoText,
.map__infoLogoText {
  color: #fff;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
}

.header__logoText {
  font-size: 34px;
}

.map__infoLogoText {
  display: block;
  font-size: 36px;
  text-align: center;
}

.header__logo:hover .header__logoText {
  color: #fff;
  opacity: .86;
}

.promo {
  background-image: url(../img/promo-bg.jpg);
}

.history {
  background-image: url(../img/history-bg.jpg);
}

.map__info,
.service-panel {
  background-image: url(../img/background.png);
}

.header--inner {
  position: relative;
  top: 0;
  padding: 18px 0;
  background: #242424 url(../img/promo-bg.jpg) center/cover no-repeat;
}

.header--inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
}

.header--inner .header__container {
  position: relative;
  z-index: 1;
}

.about-home {
  padding: 100px 0;
  background: #fff;
}

.about-home .title {
  margin: 0 0 28px;
}

.about-home__text {
  max-width: 960px;
  margin: 0 auto 34px;
  text-align: center;
  line-height: 1.65;
}

.about-home__text p:last-child {
  margin-bottom: 0;
}

.about-home__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.about-home__services div {
  display: flex;
  min-height: 88px;
  padding: 20px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #e25c32 url(../img/background.png);
  border-radius: 3px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.services {
  padding: 100px 0;
}

.services .title {
  margin: 0 0 28px;
}

.services__intro {
  max-width: 920px;
  margin: 0 auto 36px;
  text-align: center;
  line-height: 1.65;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 30px;
}

.service-card {
  border-top: 1px solid #dedede;
  padding: 18px 0 0;
}

.service-card h3 {
  margin: 0 0 8px;
  color: #333;
  font-size: 18px;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: #777;
  font-style: italic;
  line-height: 1.55;
}

.history__text--columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 40px;
}

.history__item strong {
  color: #e25c32;
}

.partners__text strong {
  display: block;
  margin-bottom: 10px;
  color: #e25c32;
}

.map {
  position: relative;
}

.map__info {
  max-width: 540px;
}

.map__infoItem--full {
  grid-column: 1 / -1;
}

.map__infoItem:nth-child(5) {
  margin-top: 0;
}

.map__infoItemContent {
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 22px 20px;
  color: #fff;
  background: #222;
  text-align: center;
  font-size: 14px;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.page {
  min-height: 62vh;
  padding: 70px 0 100px;
}

.page .title {
  margin: 0 0 32px;
}

.page-copy {
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.72;
}

.page-copy h2 {
  margin-top: 40px;
  font-family: "FiraSans", Arial, sans-serif;
  font-size: 24px;
}

.page-copy ul {
  padding-left: 22px;
}

.about-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 28px 0;
}

.about-services div {
  padding: 16px;
  color: #fff;
  background: #e25c32;
  border-radius: 3px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 24px;
  border: 1px solid #ddd;
  border-radius: 7px;
}

.contact-card h2 {
  margin: 0 0 16px;
  color: #e25c32;
  font-size: 22px;
}

.contact-card p {
  margin: 0 0 10px;
}

.contact-card a,
.article a {
  color: #ce542d;
  text-decoration: underline;
}

.news-list {
  display: grid;
  gap: 34px;
}

.news-item {
  display: flex;
  height: 270px;
  margin: 0;
}

.news-image {
  width: 35%;
  flex: none;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 0 0 8px;
}

.news-item.reverse .news-image img {
  border-radius: 0 8px 8px 0;
}

.news-item .news-content {
  display: flex;
  flex: 1;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 0 8px 8px 0;
}

.news-item.reverse .news-content {
  border-radius: 8px 0 0 8px;
}

.news-item .news-content h2 {
  margin: 0 0 10px;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.news-date {
  margin-bottom: 28px;
  color: #999;
  font-size: 14px;
}

.read-more {
  display: inline-flex;
  min-height: 40px;
  margin-top: auto;
  padding: 0 25px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #e25c32;
  border-radius: 3px;
}

.read-more:hover {
  color: #fff;
  background: #ce542d;
}

.article {
  max-width: 920px;
  margin: 0 auto;
}

.article__image {
  width: 100%;
  max-height: 480px;
  margin-bottom: 28px;
  object-fit: cover;
  border-radius: 7px;
}

.article h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.article .news-date {
  margin-bottom: 24px;
}

.article p {
  line-height: 1.72;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
}

.not-found__code {
  color: #e25c32;
  font-size: clamp(76px, 14vw, 150px);
  font-weight: 700;
  line-height: 1;
}

.button {
  display: inline-flex;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #e25c32;
  border-radius: 3px;
}

.button:hover {
  color: #fff;
  background: #ce542d;
}

@media (max-width: 991px) {
  .services,
  .about-home,
  .page {
    padding: 76px 0;
  }

  .map__info {
    max-width: none;
  }

  .news-item {
    height: auto;
  }

  .news-image {
    width: 100%;
  }

  .news-image img,
  .news-item.reverse .news-image img {
    height: 220px;
    border-radius: 8px 8px 0 0;
  }

  .news-item .news-content,
  .news-item.reverse .news-content {
    border-radius: 0 0 8px 8px;
  }
}

@media (max-width: 767px) {
  .services__grid,
  .about-home__services,
  .history__text--columns,
  .about-services,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .header__logoText {
    font-size: 28px;
  }

  .promo {
    padding-top: 100px;
  }

  .news-item,
  .news-item.reverse {
    flex-direction: column;
  }

  .news-item .news-image,
  .news-item.reverse .news-image {
    order: -1;
  }
}

@media (max-width: 575px) {
  .container {
    width: calc(100% - 30px);
  }

  .services,
  .about-home,
  .page {
    padding: 50px 0;
  }

  .title,
  .price .title {
    font-size: 30px;
  }

  .map__infoLogoText {
    font-size: 30px;
  }

  .article h1 {
    font-size: 30px;
  }

  .news-item .news-content h2 {
    font-size: 20px;
  }
}

/* Вариант 2: фирменная палитра старого сайта МОСТ-Л */
:root {
  --accent: #08adbd;
  --hover: #0797a5;
}

.header--inner {
  background-color: #303135;
}

.promo__advantagesItem,
.about-home__services div,
.map__info,
.read-more,
.button,
.btntop {
  background-color: #08adbd;
}

.promo__advantagesItem,
.map__info,
.price__contact {
  background-image: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(1, 55, 60, .18)), url(../img/background.png);
}

.history .title,
.partners__text strong,
.contact-card h2,
.not-found__code,
.article a,
.contact-card a,
.price-item__top strong {
  color: #08adbd;
}

.read-more:hover,
.button:hover,
.btntop:hover {
  background-color: #0797a5;
}

.site-footer {
  background: #27282d;
}

.price__contact {
  display: flex;
  padding: 30px;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background-color: #08adbd;
  border-radius: 7px;
  box-shadow: 0 1px 19px 2px rgba(0, 0, 0, .28);
}

.price__contact h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 26px;
}

.price__contact p {
  margin-bottom: 22px;
  line-height: 1.5;
}

.price__contact a {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.price-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  margin-top: 55px;
}

.price-item {
  padding: 18px 0;
  border-top: 1px solid #ddd;
}

.price-item__top {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
}

.price-item h3 {
  margin: 0;
  color: #333;
  font-size: 17px;
  text-transform: uppercase;
}

.price-item__top strong {
  flex: none;
  text-align: right;
  font-size: 17px;
}

.price-item p {
  margin: 9px 0 0;
  color: #777;
  font-style: italic;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .price-list {
    grid-template-columns: 1fr;
    margin-top: 35px;
  }

  .price-item__top {
    flex-direction: column;
    gap: 5px;
  }

  .price-item__top strong {
    text-align: left;
  }
}

/* Блок благодарности является коротким заголовочным переходом к контактам. */
.partners {
  padding-bottom: 45px;
}

@media (max-width: 991px) {
  .partners {
    padding-bottom: 38px;
  }
}

@media (max-width: 575px) {
  .partners {
    padding-bottom: 30px;
  }
}
