/* ==================================================================
   БАЗОВЫЕ СТИЛИ: шрифты, переменные, сброс
================================================================== */

@font-face {
  font-family: "Bezier Sans";
  src: url("../assets/fonts/BezierSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Добавлено после объединения: полужирный Inter.
   Сайт использует font-weight: 600 более чем в 30 местах
   (навигация, карточки, кнопки); без этого файла начертаний
   браузер рисовал его синтетически. По правилам подбора
   начертаний запросы 500–600 получат этот файл (700). */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --coral: #f2695a;
  --dark-green: #353b24;
  --line: #ded7ca;
  --muted: #aaa9a3;
  --footer-bg: #e6ddcf;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
}

body {
  color: #111;
  background: #fff;
  font-family: "Inter", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* Защита от горизонтального скролла только для страницы истории (story.html).
   Применяется через :has(), чтобы не обрезать выступающие за viewport
   элементы других страниц (стрелки галерей, части карт и т.п.). */
html:has(.story-page),
body:has(.story-page) {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  html:has(.story-page),
  body:has(.story-page) {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}
font.tablebodytext {display:none !important}
.front-page #bx-panel {
	z-index: 100000 !important;
}
body.front-menu-is-open #bx-panel {
	z-index: 10 !important;
}

/* ==================================================================
   ШАПКА САЙТА (общий блок всех страниц)
================================================================== */

.site-header {
  height: 57px;
  background: #fff;
}

.site-header__inner {
  width: calc(100% - 80px);
  max-width: 1286px;
  height: 57px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header-logo {
  width: 56px;
  height: 40px;
  flex: 0 0 56px;
}

.header-logo img {
  display: block;
  width: 56px;
  height: 40px;
}

.menu-button {
  width: 21px;
  height: 34px;
  margin-left: 49px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-button img {
  display: block;
  width: 21px;
  height: 34px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 31px;
  white-space: nowrap;
}

.header-nav a {
  font-size: 14px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.button--outline {
  color: var(--coral);
  border: 2px solid var(--coral);
  background: transparent;
}

.button--filled {
  color: #fff;
  background: var(--coral);
}

.header-social {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.header-social a,
.header-social img {
  display: block;
  width: 31px;
  height: 31px;
}

.mobile-back {
  display: none;
}

@media (max-width: 767px) {
  .site-header {
    height: 58px;
  }

  .site-header__inner {
    position: relative;
    width: 100%;
    height: 58px;
    justify-content: center;
  }

  /* Крупная стрелка «назад» с удобной зоной тапа 44×44:
     сам глиф 16×16 (как в макете) — внутри иконки 30×30
     стрелка занимает центральную область */
  .mobile-back {
    position: absolute;
    top: 7px;
    left: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .mobile-back img {
    display: block;
    width: 30px;
    height: 30px;
  }

  .header-logo,
  .header-logo img {
    width: 56px;
    height: 40px;
  }

  .menu-button,
  .header-nav,
  .header-actions,
  .header-social {
    display: none;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    position: relative;
    width: 100%;
    height: 58px;
    justify-content: center;
  }

  /* Дубль правила выше (объединённая мобильная шапка):
     зона тапа 44×44, глиф 16×16 по макету */
  .mobile-back {
    position: absolute;
    top: 7px;
    left: 13px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .mobile-back img {
    display: block;
    width: 30px;
    height: 30px;
  }

  .header-logo,
  .header-logo img {
    display: block;
    width: 56px;
    height: 40px;
  }

  .menu-button,
  .header-nav,
  .header-actions,
  .header-social {
    display: none;
  }
}


/* ==================================================================
   ПОДВАЛ САЙТА (общий блок всех страниц)
================================================================== */

.site-footer {
  height: 399px;
  min-height: 399px;
  background: #e6ddd0;
}

.site-footer__inner {
  position: relative;
  width: 1210px;
  max-width: calc(100% - 156px);
  height: 399px;
  min-height: 399px;
  margin: 0 auto;
  padding: 0;
  display: block;
}

.footer-brand {
  position: absolute;
  top: 59px;
  left: 0;
  width: 130px;
  height: 137px;
}

.footer-brand img {
  display: block;
  width: 130px;
  height: 137px;
  object-fit: contain;
}

.footer-main {
  position: absolute;
  top: 60px;
  left: 180px;
  width: 524px;
}

.subscribe-form {
  width: 524px;
  height: 52px;
  display: flex;
  background: #fff;
}

.subscribe-form input {
  width: 448px;
  height: 52px;
  padding: 0 20px;
  border: 0;
  outline: 0;
  color: #999;
  font-size: 14px;
}

.subscribe-form button {
  width: 76px;
  height: 52px;
  padding: 0;
  border: 2px solid #fff;
  background: var(--coral);
}

.subscribe-form button img {
  display: block;
  width: 25px;
  height: 25px;
  margin: 0 auto;
}

.subscribe-caption {
  margin: 12px 0 38px;
  font-size: 16px;
  line-height: 19px;
}

.footer-contacts p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 18px;
}

.footer-contacts p img {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 18px;
}

.footer-contacts a {
  display: block;
  margin-left: 23px;
  color: var(--coral);
  font-size: 14px;
  line-height: 18px;
}

.footer-nav {
  position: absolute;
  top: 62px;
  left: 833px;
  width: 367px;
  height: 124px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  padding: 0;
}

.footer-nav div {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
}

.footer-actions {
  position: absolute;
  top: 228px;
  left: 833px;
  width: 367px;
  padding: 0;
}

.footer-buttons {
  display: flex;
  gap: 19px;
}

.footer-buttons .button {
  height: 31px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}

.footer-social a,
.footer-social img {
  display: block;
  width: 40px;
  height: 40px;
}

.grant-logo {
  position: absolute;
  top: 283px;
  left: 180px;
  width: 410px;
  height: auto;
}

.grant-logo img {
  display: block;
  width: 410px;
  height: auto;
}

@media (max-width: 767px) {
  .site-footer {
    width: 100%;
    height: 750px;
    min-height: 750px;
    overflow: hidden;
    margin-top: 0; /* объединено из city.css, stories.css, story.css */
  }

  .site-footer__inner {
    position: relative;
    width: 100%;
    max-width: none;
    height: 750px;
    min-height: 750px;
    margin: 0;
    padding: 32px 20px 0;
    display: flex;
    flex-direction: column;
  }

  .footer-brand {
    position: static;
    flex: 0 0 137px;
    width: 123px;
    height: 137px;
    margin: 0 auto;
  }

  .footer-brand img {
    display: block;
    width: 123px;
    height: 137px;
    margin: 0;
  }

  .footer-main {
    position: static;
    width: 100%;
    margin: 58px 0 0;
  }

  .subscribe-form {
    width: 100%;
    height: 50px;
    display: flex;
  }

  .subscribe-form input {
    width: calc(100% - 72px);
    height: 50px;
    min-width: 0;
    padding: 0 19px;
    font-size: 12px;
  }

  .subscribe-form button {
    flex: 0 0 72px;
    width: 72px;
    height: 50px;
    padding: 0;
    border: 2px solid #fff;
  }

  .subscribe-caption {
    margin: 12px 0 24px;
    font-size: 14px;
    line-height: 17px;
  }

  .footer-contacts {
    width: 100%;
    margin: 0 0 27px;
  }

  .footer-contacts p {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 15px;
    white-space: nowrap;
  }

  .footer-contacts p img {
    display: block;
    flex: 0 0 14px;
    width: 14px;
    height: 18px;
  }

  .footer-contacts a {
    display: block;
    margin-left: 23px;
    font-size: 12px;
    line-height: 15px;
  }

  .footer-nav {
    position: static;
    width: 100%;
    height: auto;
    margin: 0 0 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }

  .footer-nav div {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .footer-nav a {
    font-size: 12px;
    line-height: 15px;
  }

  .footer-actions {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-height: 69px;
    margin: 0;
  }

  .footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Резерв под абсолютно спозиционированные социконки:
       2 иконки по 25px + gap 10px = 60px, плюс запас 10px,
       иначе на 415–431px кнопки наезжают на иконки */
    padding-right: 70px;
  }

  .footer-buttons .button {
    height: 30px;
    font-size: 11px;
  }

  .footer-social {
    position: absolute;
    top: 1px;
    right: 0;
    display: flex;
    gap: 10px;
    margin: 0;
  }

  .footer-social a,
  .footer-social img {
    display: block;
    width: 25px;
    height: 25px;
  }

  .grant-logo {
    position: absolute;
    right: 20px;
    left: 20px;
    width: auto;
    height: auto;
    margin: 0;
    top: 650px;
  }

  .grant-logo img {
    display: block;
    width: 100%;
    height: auto;
  }
}


/* ==================================================================
   ОБЩИЕ КОМПОНЕНТЫ: кнопки сортировки и мобильный фильтр
   (используются на city.html и objects.html)
================================================================== */

.mobile-filter {
  display: none;
}

.sort-button {
  height: 28px;
  padding: 0 9px;
  border: 0;
  color: #fff;
  background: #ded7cd;
  font-size: 14px;
}

.sort-button--active {
  background: var(--coral);
}

@media (max-width: 767px) {
  .mobile-filter {
    display: block;
    width: 28px;
    height: 30px;
  }

  .mobile-filter button {
    position: relative;
    display: block;
    width: 28px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
  }

  .mobile-filter button > img {
    display: block;
    width: 22px;
    height: 27px;
    object-fit: contain;
    visibility: visible;
    opacity: 1;
  }

  .mobile-filter b {
    position: absolute;
    top: -5px;
    right: -6px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    color: #fff;
    background: var(--coral);
    font-size: 10px;
    line-height: 15px;
    font-weight: 400;
  }

  .sort-button {
    height: 27px;
    padding: 0 9px;
    font-size: 12px;
    line-height: 27px;
  }
}


/* ==================================================================
   СТРАНИЦА ГОРОДА (city.html)
   Примечание: .sort-buttons и .map-button отсюда также используются на objects.html
================================================================== */

.hero {
  height: 380px;
  background: url("../assets/hero.jpg") center center / cover no-repeat;
}

.hero__inner {
  position: relative;
  width: calc(100% - 80px);
  max-width: 1286px;
  height: 100%;
  margin: 0 auto;
}

.hero-back {
  position: absolute;
  top: 40px;
  left: 0;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.hero-back img {
  display: block;
  width: 31px;
  height: 31px;
}

.hero-title {
  position: absolute;
  bottom: 26px;
  left: 109px;
  color: #fff;
}

.hero-title h1 {
  margin: 0;
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
}

.hero-title__bottom {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 600;
}

.hero-social {
  display: flex;
  gap: 9px;
}

.hero-social a,
.hero-social img {
  display: block;
  width: 31px;
  height: 31px;
}

.hero-description {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 524px;
  height: 237px;
  padding: 31px 30px;
  color: #fff;
  background: var(--coral);
  font-size: 14px;
  line-height: 17px;
}

.content {
  width: calc(100% - 80px);
  max-width: 1286px;
  margin: 0 auto;
  padding: 45px 0 120px;
  display: grid;
  grid-template-columns: 307px 1fr;
  column-gap: 20px;
  row-gap: 0;
}

.catalog {
  display: contents;
}

.catalog-top {
  grid-column: 1 / -1;
  grid-row: 1;
  order: -1;
  position: relative;
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: flex-start;
}

.sidebar {
  grid-column: 1;
  grid-row: 2;
  order: 0;
  padding-right: 20px;
}

.sidebar-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.sidebar-block h2 {
  margin: 0 0 19px;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-block--status {
  order: 1;
}

.coordinators {
  order: 2;
}

.news {
  order: 3;
}

.status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.status-filter {
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #aaa;
  font-size: 12px;
}

.status-filter--active {
  color: var(--coral);
  border-color: var(--coral);
}

.coordinator {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-bottom: 12px;
}

.coordinator img {
  display: block;
  width: 89px;
  height: 89px;
  border-radius: 50%;
  object-fit: cover;
}

.coordinator span {
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  line-height: 26px;
}

.news-item {
  margin-bottom: 17px;
}

.news-item time {
  display: block;
  margin-bottom: 8px;
  color: #aaa;
  font-size: 12px;
}

.news-item p {
  margin: 0;
  font-size: 14px;
  line-height: 17px;
}

.catalog-top strong {
  font-size: 16px;
  font-weight: 600;
}

.sort-buttons {
  display: flex;
  gap: 12px;
  margin-left: 122px;
}

.map-button {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.map-button img {
  display: block;
  width: 25px;
  height: 27px;
}

.desktop-cards {
  grid-column: 2;
  grid-row: 2;
  order: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mobile-cards {
  display: none;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.card-image {
  position: relative;
  height: 240px;
  background: #ddd;
}

.card-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-status {
  position: absolute;
  top: 9px;
  left: 8px;
  padding: 4px 9px;
  color: #fff;
  font-size: 12px;
  line-height: 12px;
}

.card-status--done {
  background: #27351b;
}

.card-status--planned {
  color: #111;
  background: #fff;
}

.card-status--stopped {
  color: #111;
  background: #e6dfd2;
}

.card-status--work {
  background: var(--coral);
}

.card-year {
  position: absolute;
  top: 8px;
  right: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.card-year img {
  display: block;
  width: 18px;
  height: 18px;
}

.card-content {
  min-height: 157px;
  padding: 19px 19px 16px;
}

.card-content h2 {
  min-height: 79px;
  margin: 0 0 12px;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
}

.card-address {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #aaa;
  font-size: 14px;
  line-height: 18px;
}

.card-address img {
  flex: 0 0 14px;
  width: 14px;
  height: 18px;
}

@media (max-width: 767px) {
  .hero {
    height: 470px;
    background-position: 54% center;
  }

  .hero__inner {
    width: 100%;
  }

  .hero-back {
    display: none;
  }

  .hero-title {
    bottom: 43px;
    left: 20px;
    right: 20px;
  }

  .hero-title h1 {
    font-size: 34px;
    line-height: 36px;
  }

  .hero-title__bottom {
    gap: 13px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 17px;
  }

  .hero-social {
    gap: 8px;
  }

  .hero-social a, .hero-social img {
    width: 25px;
    height: 25px;
  }

  .hero-description {
    right: 20px;
    bottom: -265px;
    left: 20px;
    width: auto;
    height: 285px;
    min-height: 285px;
    padding: 30px;
    font-size: 12px;
    line-height: 14px;
  }

  .content {
    width: 100%;
    margin: 0;
    padding: 294px 20px 100px;
    display: block;
  }

  .catalog {
    display: block;
    position: relative;
    width: 100%;
  }

  .catalog-top {
    width: 100%;
    min-height: 43px;
    display: flex;
    position: relative;
    align-items: flex-start;
  }

  .catalog-top strong {
    font-size: 14px;
    line-height: 17px;
  }

  .sidebar {
    width: 100%;
    padding: 0;
  }

  .sidebar-block--status {
    display: none;
  }

  .coordinators {
    width: 100%;
    margin: 0;
    padding: 0 0 20px;
  }

  .coordinators h2, .news h2 {
    margin-bottom: 20px;
  }

  .coordinator {
    gap: 20px;
    margin-bottom: 12px;
  }

  .coordinator img {
    width: 89px;
    height: 89px;
  }

  .coordinator span {
    font-size: 22px;
    line-height: 26px;
  }

  .news {
    width: 100%;
    margin: 0 0 40px;
    padding: 22px 0 17px;
  }

  .news-item {
    margin-bottom: 17px;
  }

  .news-item:last-child {
    margin-bottom: 0;
  }

  .news-item time {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 15px;
  }

  .news-item p {
    font-size: 12px;
    line-height: 14px;
  }

  .sort-buttons {
    position: absolute;
    top: 45px;
    left: 93px;
    gap: 12px;
    margin: 0;
    z-index: 2;
    display: flex;
  }

  .map-button {
    gap: 7px;
    font-size: 12px;
    line-height: 17px;
    margin-left: auto;
  }

  .map-button img {
    width: 20px;
    height: 22px;
  }

  .catalog > .mobile-filter {
    position: absolute;
    top: 45px;
    left: 0;
    z-index: 3;
    margin: 0;
  }

  .desktop-cards {
    display: none;
  }

  .mobile-cards {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    margin-top: 48px;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-cards .card {
    width: 100%;
  }

  .mobile-cards .card-image {
    width: 100%;
    height: 250px;
  }

  .mobile-cards .card-content {
    min-height: 0;
    padding: 19px 19px 17px;
  }

  .mobile-cards .card-content h2 {
    min-height: 0;
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 29px;
  }

  .mobile-cards .card-address {
    font-size: 12px;
    line-height: 18px;
  }
}


/* ==================================================================
   СТРАНИЦА НОВОСТЕЙ (news.html)
================================================================== */

/* Объединённое правило .news-page: общее для news.html и news-page.html
   (box-sizing и width пришли из news-page.css, overflow/background — из news.css) */
.news-page {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.news-intro {
  width: 1286px;
  min-height: 604px;
  margin: 0 auto;
  padding-top: 30px;
}

.news-heading {
  width: 1068px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 17px;
}

.news-heading__icon {
  display: block;
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.news-heading h1 {
  margin: 0;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 27px;
}

.news-feature-slider {
  position: relative;
  width: 1286px;
  height: 434px;
  margin-top: 0;
  overflow: hidden;
}

.news-feature-slider__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-feature {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 742px 544px;
  width: 100%;
  height: 434px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition:
    opacity .55s ease,
    transform .55s ease;
}

.news-feature.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.news-feature__image {
  width: 742px;
  height: 434px;
  overflow: hidden;
}

.news-feature__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-feature__content {
  position: relative;
  width: 544px;
  height: 434px;
  padding: 60px 60px 30px;
  color: #fff;
  background: var(--coral);
}

.news-feature__content time {
  display: block;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 17px;
}

.news-feature__content h2 {
  width: 405px;
  margin: 0;
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
}

.news-feature__content p {
  width: 405px;
  margin: 13px 0 20px;
  font-size: 16px;
  line-height: 18px;
}

.news-link {
  display: inline-block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
}

.news-feature__arrows {
  position: absolute;
  bottom: 29px;
  left: 60px;
  display: flex;
  gap: 41px;
}

.news-feature__arrows button {
  width: 23px;
  height: 31px;
  padding: 0;
  border: 0;
  background: transparent;
}

.news-feature__arrows img {
  display: block;
  width: 31px;
  height: 31px;
}

.news-list {
  width: 1068px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.news-card {
  width: 1068px;
  min-height: 231px;
  padding: 10px 0 9px;
  display: grid;
  grid-template-columns: 1fr 307px;
  column-gap: 20px;
  border-top: 1px solid var(--line);
}

.news-card:last-of-type {
  border-bottom: 1px solid var(--line);
}

.news-card__content {
  padding-top: 31px;
}

.news-card time {
  display: block;
  margin-bottom: 18px;
  color: #aaa;
  font-size: 12px;
  line-height: 15px;
}

.news-card h2 {
  width: 700px;
  margin: 0;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  text-transform: uppercase;
}

.news-card__image {
  display: block;
  width: 307px;
  height: 211px;
  object-fit: cover;
}

.news-more {
  display: block;
  width: 201px;
  height: 46px;
  margin: 40px auto 0;
  padding: 0;
  border: 1px solid #aaa;
  color: #aaa;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .news-intro {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .news-heading {
    width: 100%;
    height: 89px;
    padding: 0 20px;
    gap: 17px;
  }

  .news-heading__icon {
    width: 39px;
    height: 39px;
  }

  .news-heading h1 {
    font-size: 22px;
    line-height: 27px;
  }

  .news-feature-slider {
    width: calc(100% - 40px);
    height: 615px;
    margin: 0 20px;
  }

  .news-feature {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 615px;
    transform: translateX(20px);
  }

  .news-feature__image {
    width: 100%;
    height: 188px;
    flex: 0 0 188px;
  }

  .news-feature__content {
    width: 100%;
    height: 427px;
    padding: 30px 20px 20px;
  }

  .news-feature__content time {
    margin-bottom: 19px;
    font-size: 12px;
    line-height: 15px;
  }

  .news-feature__content h2 {
    width: 100%;
    font-size: 22px;
    line-height: 30px;
  }

  .news-feature__content p {
    width: 100%;
    margin: 13px 0 20px;
    font-size: 14px;
    line-height: 17px;
  }

  .news-link {
    font-size: 12px;
    line-height: 15px;
  }

  .news-feature__arrows {
    bottom: 28px;
    left: 20px;
    gap: 35px;
  }

  .news-feature__arrows button {
    width: 23px;
    height: 31px;
  }

  .news-list {
    width: calc(100% - 40px);
    margin: 59px 20px 0;
    padding-bottom: 80px;
  }

  .news-card {
    width: 100%;
    min-height: 0;
    padding: 20px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .news-card__content {
    padding-top: 0;
  }

  .news-card time {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 15px;
  }

  .news-card h2 {
    width: 100%;
    font-size: 22px;
    line-height: 30px;
  }

  .news-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  .news-more {
    width: 201px;
    height: 46px;
    margin-top: 40px;
  }
}


/* ==================================================================
   СТРАНИЦА ОТДЕЛЬНОЙ НОВОСТИ (news-page.html)
   Правила .news-page перенесены в секцию «Страница новостей» (объединение дублей)
================================================================== */

.news-article-hero {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.news-article-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.news-article-hero__back {
  position: absolute;
  top: 40px;
  left: max(40px, calc((100% - 1286px) / 2));
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff;
}

.news-article-hero__back img {
  display: block;
  width: 31px;
  height: 31px;
}

.news-article {
  width: 630px;
  max-width: calc(100% - 40px);
  margin: 0 auto;

}
.news-article:not(:first-child) {
	margin-bottom: 39px;
}

.news-article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 60px;
  color: #aaa;
  font-size: 14px;
  line-height: 17px;
}

.news-article__views {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.news-article__views img {
  display: block;
  width: 16px;
  height: 16px;
}

.news-article__author {
  margin-left: 18px;
}

.news-article h1 {
  width: 630px;
  margin: 20px 0 0;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  text-transform: uppercase;
	margin-bottom:43px;
}

.news-article p {
  width: 630px;
  margin: 0;
  font-size: 14px;
  line-height: 17px;
}

.news-article__lead {
  /*margin-top: 43px !important;*/
  font-size: 16px !important;
  line-height: 18px !important;
  font-weight: 600;
}

.news-article__lead + p {
  margin-top: 39px;
}

.news-article h2 {
  margin: 39px 0 42px;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 30px;
  text-transform: uppercase;
}

.news-photo-slider {
  position: relative;
  width: 100%;
  max-width: 1366px;
  margin: 128px auto 0;
  overflow: visible;
	padding-bottom: 79px;
}

.news-photo-slider__viewport {
  width: 100%;
  overflow: hidden;
}

.news-photo-slider__track {
  display: flex;
  width: 100%;
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.news-photo-slide {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  height: 361px;
}

.news-photo-slide img {
  display: block;
  width: 100%;
  height: 361px;
  object-fit: cover;
cursor:pointer;
}

.news-photo-slider__controls {
  position: absolute;
  top: -51px;
  right: 40px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.news-photo-slider__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background-color .2s ease,
    opacity .2s ease;
}

.news-photo-slider__button:hover {
  background: #f4f4f4;
}

.news-photo-slider__button:disabled {
  opacity: .35;
  cursor: default;
}

.news-photo-slider__button img {
  display: block;
  width: 30px;
  height: 30px;
}

.news-article--continuation {
  /*padding-top: 79px;*/
}

.news-article-photo {
  width: 850px;
  height: 480px;
  margin: 79px auto 79px;
  overflow: hidden;
}

.news-article-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article--final {
  padding-top: 79px;
}

.news-article--final h2 {
  margin: 0 0 41px;
}

.news-article-quote {
  width: 850px;
  min-height: 343px;
  margin: 79px auto 79px;
  padding: 79px 110px 40px;
  color: #fff;
  background: var(--coral);
}

.news-article-quote p {
  width: 630px;
  margin: 0;
  font-size: 16px;
  line-height: 18px;
}

.news-article-quote cite {
  display: block;
  margin-top: 29px;
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 17px;
  text-align: right;
}

.news-article--after-quote {
  padding-top: 79px;
  padding-bottom: 119px;
}

.news-related {
  width: 100%;
  min-height: 335px;
  color: #fff;
  background: #000;
margin-top: 119px;
}

.news-related__inner {
  width: calc(100% - 80px);
  max-width: 1286px;
  margin: 0 auto;
  padding-top: 40px;
}

.news-related__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 31px;
  margin-bottom: 22px;
}

.news-related__heading strong {
  font-size: 14px;
  line-height: 17px;
}

.news-related__arrows {
  display: flex;
  gap: 10px;
}

.news-related__arrows button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background-color .2s ease,
    opacity .2s ease;
}

.news-related__arrows button:hover {
  background: rgba(255, 255, 255, .12);
}

.news-related__arrows button:disabled {
  opacity: .35;
  cursor: default;
}

.news-related__arrows img {
  display: block;
  width: 30px;
  height: 30px;
}

.news-related__viewport {
  width: 100%;
  overflow: hidden;
}

.news-related__track {
  display: flex;
  width: 100%;
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.news-related__slide {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  padding-bottom: 40px;
}

.news-related-card {
  min-width: 0;
}

.news-related-card > img {
  display: block;
  width: 100%;
  height: 211px;
  object-fit: cover;
}

.news-related-card time {
  display: block;
  margin-top: 18px;
  color: #aaa;
  font-size: 12px;
  line-height: 15px;
}

.news-related-card h2 {
  margin: 18px 0 0;
  color: #fff;
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .news-article-hero {
    height: 471px;
  }

  .news-article-hero__back {
    display: none;
  }

  .news-article-hero__image {
    object-position: 58% center;
  }

  .news-article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px;
  }

  .news-article__meta {
    flex-wrap: wrap;
    gap: 0 10px;
    padding-top: 39px;
    font-size: 14px;
    line-height: 17px;
  }

  .news-article__author {
    width: 100%;
    margin: 22px 0 0;
  }

  .news-article h1 {
    width: 100%;
    margin-top: 22px;
    font-size: 22px;
    line-height: 30px;
  }

  .news-article p {
    width: 100%;
    font-size: 12px;
    line-height: 15px;
  }

  .news-article__lead {
    margin-top: 35px !important;
    font-size: 14px !important;
    line-height: 17px !important;
  }

  .news-article__lead + p {
    margin-top: 30px;
  }

  .news-article h2 {
    margin: 31px 0 36px;
    font-size: 22px;
    line-height: 30px;
  }

  /*
    Мобильный слайдер фотографий:
    все изображения становятся отдельными слайдами.
  */
  .news-photo-slider {
    width: 100%;
    margin-top: 59px;
  }

  .news-photo-slider__controls {
    display: none;
  }

  .news-photo-slider__viewport {
    width: 100%;
    overflow: hidden;
  }

  .news-photo-slider__track {
    width: max-content;
    gap: 10px;
    transition-duration: .5s;
  }

  .news-photo-slide {
    display: contents;
  }

  .news-photo-slide img {
    display: block;
    flex: 0 0 calc(100vw - 40px);
    width: calc(100vw - 40px);
    height: 270px;
    object-fit: cover;
  }

  .news-article--continuation {
    padding-top: 59px;
  }

  .news-article-photo {
    width: 100%;
    height: 203px;
    margin: 59px 0 0;
  }

  .news-article--final {
    padding-top: 59px;
  }

  .news-article--final h2 {
    margin: 0 0 37px;
  }

  .news-article-quote {
    width: 100%;
    min-height: 386px;
    margin: 59px 0 0;
    padding: 59px 20px 35px;
  }

  .news-article-quote p {
    width: 100%;
    font-size: 14px;
    line-height: 17px;
  }

  .news-article-quote cite {
    margin-top: 29px;
    font-size: 12px;
    line-height: 15px;
  }

  .news-article--after-quote {
    padding-top: 59px;
    padding-bottom: 80px;
  }

  .news-related {
    min-height: 475px;
  }

  .news-related__inner {
    width: 100%;
    padding: 31px 20px 40px;
  }

  .news-related__heading {
    margin-bottom: 22px;
  }

  .news-related__arrows {
    display: none;
  }

  /*
    Мобильный слайдер новостей:
    каждая новость становится отдельным слайдом.
    Видна часть следующей карточки.
  */
  .news-related__viewport {
    width: 100%;
    overflow: hidden;
  }

  .news-related__track {
    width: max-content;
    gap: 10px;
    transition-duration: .5s;
  }

  .news-related__slide {
    display: contents;
  }

  .news-related-card {
    display: block;
    flex: 0 0 calc(100vw - 60px);
    width: calc(100vw - 60px);
    padding-bottom: 40px;
  }

  .news-related-card > img {
    width: 100%;
    height: 211px;
  }

  .news-related-card time {
    margin-top: 18px;
    font-size: 12px;
    line-height: 15px;
  }

  .news-related-card h2 {
    margin-top: 18px;
    font-size: 22px;
    line-height: 30px;
  }
}


/* ==================================================================
   СТРАНИЦА ИСТОРИЙ (stories.html)
   Правило .site-footer перенесено в секцию «Подвал сайта»
================================================================== */

.stories-page {
  overflow: hidden;
  background: #fff;
}

.stories-intro {
  width: 1068px;
  min-height: 690px;
  margin: 0 auto;
  padding-top: 38px;
}

.stories-intro__heading {
  display: flex;
  align-items: center;
  gap: 17px;
  height: 42px;
}

.stories-intro__icon {
  display: block;
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.stories-intro__heading h1 {
  margin: 0;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 27px;
}

.stories-slider {
  position: relative;
  width: 100%;
  height: 570px;
  margin-top: 29px;
}

.stories-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.stories-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 524px 674px;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(25px);
  transition:
    opacity .55s ease,
    transform .55s ease;
}

.stories-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.stories-slide__text {
  width: 405px;
  padding-top: 57px;
}

.stories-slide__text h2 {
  margin: 0;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.28;
}

.stories-slide__text p {
  width: 405px;
  margin: 20px 0 19px;
  font-size: 16px;
  line-height: 18px;
}

.story-link {
  display: inline-block;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
}

.stories-slide__image {
  width: 674px;
  height: 570px;
  overflow: hidden;
}

.stories-slide__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stories-slider__arrow,
.stories-wide-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.stories-slider__arrow img,
.stories-wide-slider__arrow img {
  display: block;
  width: 31px;
  height: 31px;
}

.stories-slider__arrow--prev {
  left: -110px;
}

.stories-slider__arrow--next {
  right: -25px;
}

.stories-slider__dots {
  position: absolute;
  bottom: 18px;
  left: 850px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.stories-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.stories-slider__dot.is-active {
  border-color: var(--coral);
  background: var(--coral);
}

.stories-authors {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.stories-authors--first {
  min-height: 1630px;
  padding: 120px 0 150px;
}

.stories-authors--second {
  min-height: 760px;
  padding: 120px 0 150px;
}

.stories-authors__grid {
  position: relative;
  z-index: 1;
  width: 1068px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 317px);
  grid-auto-rows: 636px;
  column-gap: 59px;
  row-gap: 0;
  align-items: start;
}

.story-author {
  width: 317px;
  min-width: 0;
}

.story-author a > img {
  display: block;
  width: 317px;
  height: 317px;
  border-radius: 50%;
  object-fit: cover;
}

.story-author__content {
  margin-top: 28px;
}

.story-author__content h2 {
  margin: 0 0 14px;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 27px;
}

.story-author__content p {
  width: 317px;
  margin: 0 0 20px;
  color: #aaa;
  font-size: 16px;
  line-height: 18px;
}

.stories-authors__line {
  position: absolute;
  z-index: -1;
  left: 50%;
  width: 100vw;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  transform: translateX(-50%);
}

.stories-authors__line--first {
  top: 25px;
  height: 600px;
  background-image: url("../assets/stories-line.svg");
  background-size: 2000px;
  background-position-y: 0px;
}

.stories-authors__line--second {
  top: 0;
  height: 100%;
  background-image: url("../assets/stories-line-2.svg");
  background-size: 2000px;
  background-position-y: -140px;
}

.stories-authors--first .story-author:nth-child(1),
.stories-authors--first .story-author:nth-child(4),
.stories-authors--second .story-author:nth-child(1) {
  margin-top: 159px;
}

.stories-authors--first .story-author:nth-child(2),
.stories-authors--first .story-author:nth-child(5),
.stories-authors--second .story-author:nth-child(2) {
  margin-top: 0;
}

.stories-authors--first .story-author:nth-child(3),
.stories-authors--first .story-author:nth-child(6),
.stories-authors--second .story-author:nth-child(3) {
  margin-top: 99px;
}

.stories-wide-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #333;
}

.stories-wide-slider__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.stories-wide-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition:
    opacity .65s ease,
    transform .65s ease;
}

.stories-wide-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.stories-wide-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stories-wide-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .04) 0%,
    rgba(0, 0, 0, .08) 45%,
    rgba(0, 0, 0, .45) 100%
  );
  content: "";
}

.stories-wide-slide__content {
  position: absolute;
  top: 145px;
  left: calc(50% + 120px);
  z-index: 2;
  width: 405px;
  color: #fff;
}

.stories-wide-slide__content h2 {
  margin: 0;
  color: #fff;
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.28;
}

.stories-wide-slide__content p {
  margin: 21px 0 20px;
  color: #fff;
  font-size: 16px;
  line-height: 18px;
}

.stories-wide-slide__content .story-link {
  color: #fff;
}

.stories-wide-slider__arrow--prev {
  left: 40px;
}

.stories-wide-slider__arrow--next {
  right: 40px;
}

@media (max-width: 767px) {
  .stories-intro {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .stories-intro__heading {
    width: 100%;
    height: 89px;
    padding: 0 20px;
    gap: 17px;
  }

  .stories-intro__icon {
    width: 39px;
    height: 39px;
  }

  .stories-intro__heading h1 {
    font-size: 22px;
    line-height: 27px;
  }

  .stories-slider {
    width: 100%;
    height: 630px;
    margin: 0;
  }

  .stories-slides {
    width: 100%;
    height: 630px;
  }

  .stories-slide {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    height: 630px;
    transform: translateX(20px);
  }

  .stories-slide__image {
    width: 100%;
    height: 304px;
    flex: 0 0 304px;
  }

  .stories-slide__image img {
    display: block;
    width: 100%;
    height: 304px;
    object-fit: cover;
  }

  .stories-slide__text {
    width: 100%;
    height: 326px;
    padding: 18px 20px 0;
  }

  .stories-slide__text h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .stories-slide__text p {
    width: 100%;
    margin: 13px 0 19px;
    font-size: 14px;
    line-height: 17px;
  }

  .story-link {
    font-size: 12px;
    line-height: 15px;
  }

  .stories-slider__arrow {
    top: 152px;
    width: 27px;
    height: 27px;
  }

  .stories-slider__arrow img {
    width: 27px;
    height: 27px;
  }

  .stories-slider__arrow--prev {
    left: 7px;
  }

  .stories-slider__arrow--next {
    right: 7px;
  }

  .stories-slider__dots {
    display: none;
  }

  .stories-authors {
    position: relative;
    width: 100%;
    min-height: 0;
    padding-right: 20px;
    padding-left: 20px;
    overflow: hidden;
  }

  .stories-authors--first {
    padding-top: 78px;
    padding-bottom: 100px;
  }

  .stories-authors--second {
    padding-top: 78px;
    padding-bottom: 100px;
  }

  .stories-authors__grid {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    row-gap: 40px;
    align-items: start;
  }

  .story-author {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
  }

  .story-author > img {
    display: block;
    width: 238px;
    height: 238px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
  }

  .story-author__content {
    width: 238px;
    margin: 22px auto 0;
  }

  .story-author__content h2 {
    width: 238px;
    margin: 0 0 13px;
    color: var(--dark-green);
    font-family: "Bezier Sans", sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 26px;
  }

  .story-author__content p {
    width: 238px;
    margin: 0 0 19px;
    color: #aaa;
    font-size: 14px;
    line-height: 17px;
  }

  .stories-authors__line {
    position: absolute;
    left: 50%;
    width: 100vw;
    pointer-events: none;
    transform: translateX(-50%);
  }

  .stories-authors__line--first {
    top: 210px;
    height: 440px;
    background-size: 100% 100%;
  }

  .stories-authors__line--second {
    top: 0;
    height: 520px;
    background-size: 100% 100%;
  }

  .stories-wide-slider {
    width: 100%;
    height: 608px;
  }

  .stories-wide-slide > img {
    width: 100%;
    height: 608px;
    object-position: 58% center;
  }

  .stories-wide-slide::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, .02) 20%,
      rgba(0, 0, 0, .58) 100%
    );
  }

  .stories-wide-slide__content {
    top: auto;
    right: 20px;
    bottom: 21px;
    left: 20px;
    width: auto;
  }

  .stories-wide-slide__content h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .stories-wide-slide__content p {
    margin: 14px 0 19px;
    font-size: 14px;
    line-height: 17px;
  }

  .stories-wide-slider__arrow {
    top: 152px;
    width: 27px;
    height: 27px;
  }

  .stories-wide-slider__arrow img {
    width: 27px;
    height: 27px;
  }

  .stories-wide-slider__arrow--prev {
    left: 7px;
  }

  .stories-wide-slider__arrow--next {
    right: 7px;
  }


}


/* ==================================================================
   СТРАНИЦА ОТДЕЛЬНОЙ ИСТОРИИ (story.html)
   Правила html/body перенесены в «Базовые стили» (через :has),
   .site-footer — в секцию «Подвал сайта»
================================================================== */

.story-page,
.story-page *,
.story-page *::before,
.story-page *::after {
  box-sizing: border-box;
}

.story-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #fff;
}

.story-hero {
  width: 100%;
  max-width: 100%;
  height: 380px;
  background: url("../assets/stories-hero.jpg") center center / cover no-repeat;
}

.story-hero__inner {
  position: relative;
  width: calc(100% - 80px);
  max-width: 1286px;
  height: 100%;
  margin: 0 auto;
}

.story-hero__back {
  position: absolute;
  top: 40px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff;
}

.story-hero__back img {
  display: block;
  width: 31px;
  height: 31px;
}

.story-hero__content {
  position: absolute;
  bottom: 27px;
  left: 109px;
  max-width: calc(100% - 109px);
  color: #fff;
}

.story-hero__content h1 {
  margin: 0;
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.28;
}

.story-hero__content p {
  margin: 17px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 19px;
}

.story-article {
  width: 630px;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 79px;
}

.story-article p {
  max-width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 17px;
}

.story-article__lead {
  width: 630px;
  max-width: 100%;
  font-size: 16px !important;
  line-height: 18px !important;
}

.story-article blockquote {
  max-width: 100%;
  margin: 39px 0 42px;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 30px;
  text-transform: uppercase;
}

.story-article__text {
  width: 100%;
  max-width: 100%;
}

.story-article__text p + p {
  margin-top: 18px;
}

.story-photo {
  overflow: hidden;
}

.story-photo--mosaic {
  width: 850px;
  max-width: none;
  height: 480px;
  margin: 79px 0 0 -110px;
}

.story-photo--mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-photo--mosaic + blockquote {
  margin-top: 79px;
  margin-bottom: 41px;
}
.story-photo--mosaic + div, .story-photo--mosaic + p {
	  margin-top: 79px;
}

/*
  Важно:
  на десктопе overflow должен быть visible,
  потому что стрелки расположены выше галереи
  через top: -51px.
*/
.story-gallery {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin-top: 108px;
  overflow: visible;
  touch-action: pan-y;
	margin-bottom: 79px;
}

.story-gallery__track {
  display: flex;
  width: max-content;
  max-width: none;
  margin-left: max(40px, calc((100vw - 1286px) / 2));
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.story-gallery__track.is-dragging {
  transition: none;
}

.story-gallery__track {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.story-gallery__track.is-dragging {
  cursor: grabbing;
  transition: none;
}

.story-gallery__item,
.story-gallery__item img {
  -webkit-user-drag: none;
}

.story-gallery__item {
  display: block;
  flex: 0 0 427px;
  width: 427px;
  height: 427px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.story-gallery__item + .story-gallery__item {
  margin-left: 1px;
}

.story-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.story-gallery__item:hover img {
  transform: scale(1.025);
}

.story-gallery__controls {
  position: absolute;
  top: -51px;
  right: 40px;
  z-index: 3;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.story-gallery__controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background-color .2s ease,
    opacity .2s ease;
}

.story-gallery__controls button:hover {
  background: #f4f4f4;
}

.story-gallery__controls button:disabled {
  opacity: .35;
  cursor: default;
}

.story-gallery__controls img {
  display: block;
  width: 30px;
  height: 30px;
}

.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, .86);
  transition:
    opacity .4s ease,
    visibility 0s linear .4s;
}

.story-lightbox.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity .4s ease,
    visibility 0s linear 0s;
}

.story-lightbox__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(90vw, 1100px);
  max-width: calc(100vw - 40px);
  height: min(86vh, 800px);
  max-height: calc(100vh - 40px);
  margin: 0;
  transform: scale(.94);
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.story-lightbox.is-open .story-lightbox__figure {
  transform: scale(1);
}

.story-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity .28s ease,
    transform .35s ease;
}

.story-lightbox__figure img.is-changing {
  opacity: 0;
  transform: scale(.97);
}

.story-lightbox__close {
  position: absolute;
  top: 25px;
  right: 30px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 38px;
  font-weight: 300;
  line-height: 38px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.story-lightbox__close:hover {
  opacity: .7;
}

.story-lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    background-color .2s ease,
    transform .2s ease;
}

.story-lightbox__arrow:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-50%) scale(1.04);
}

.story-lightbox__arrow img {
  display: block;
  width: 27px;
  height: 27px;
  filter: brightness(0) invert(1);
}

.story-lightbox__arrow--prev {
  left: 30px;
}

.story-lightbox__arrow--next {
  right: 30px;
}

.story-meta {
  width: 630px;
  max-width: 100%;
  min-height: 338px;
  margin: 0 auto;
  padding-top: 79px;
}
.story-lightbox + .story-meta {
	min-height: 259px;
	padding-top: 0;
}

.story-meta p {
  max-width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 17px;
}

.story-meta p + p {
  margin-top: 24px;
}

.story-lightbox-is-open {
  overflow: hidden;
}

@media (max-width: 767px) {


  .story-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .story-hero {
    width: 100%;
    max-width: 100%;
    height: 470px;
    background-position: 59% center;
  }

  .story-hero__inner {
    width: 100%;
    max-width: 100%;
  }

  .story-hero__back {
    display: none;
  }

  .story-hero__content {
    right: 20px;
    bottom: 18px;
    left: 20px;
    max-width: calc(100% - 40px);
  }

  .story-hero__content h1 {
    font-size: 32px;
    line-height: 40px;
  }

  .story-hero__content p {
    width: 300px;
    max-width: 100%;
    margin-top: 11px;
    font-size: 14px;
    line-height: 17px;
  }

  .story-article {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 60px 20px 0;
    overflow: hidden;
  }

  .story-article p {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 17px;
  }

  .story-article__lead {
    width: 100%;
    max-width: 100%;
    font-size: 16px !important;
    line-height: 18px !important;
  }

  .story-article blockquote {
    width: 100%;
    max-width: 100%;
    margin: 29px 0 35px;
    font-size: 22px;
    line-height: 30px;
  }

  .story-article__text {
    width: 100%;
    max-width: 100%;
  }

  .story-article__text p + p {
    margin-top: 18px;
  }

  .story-photo--mosaic {
    width: 100vw;
    max-width: 100vw;
    height: 203px;
    margin-top: 59px;
    margin-right: 0;
    margin-left: calc(50% - 50vw);
  }

  .story-photo--mosaic img {
    width: 100%;
    max-width: 100%;
  }

  .story-photo--mosaic + blockquote {
    margin-top: 61px;
    margin-bottom: 35px;
  }

  .story-gallery {
    width: 100%;
    max-width: 100%;
    margin-top: 59px;
    overflow-x: hidden;
    overflow-y: visible;
    touch-action: pan-y;
  }

  .story-gallery__track {
    width: max-content;
    max-width: none;
    margin-left: 20px;
    transition-duration: .5s;
  }

  .story-gallery__item {
    flex: 0 0 calc(100vw - 80px);
    width: calc(100vw - 80px);
    max-width: calc(100vw - 80px);
    height: calc(100vw - 80px);
  }

  .story-gallery__item + .story-gallery__item {
    margin-left: 10px;
  }

  .story-gallery__item:hover img {
    transform: none;
  }

  .story-gallery__controls {
    display: none;
  }

  .story-lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
  }

  .story-lightbox__figure {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    height: calc(100dvh - 120px);
    max-height: calc(100dvh - 120px);
  }

  .story-lightbox__close {
    top: 15px;
    right: 18px;
  }

  .story-lightbox__arrow {
    width: 34px;
    height: 34px;
  }

  .story-lightbox__arrow img {
    width: 23px;
    height: 23px;
  }

  .story-lightbox__arrow--prev {
    left: 12px;
  }

  .story-lightbox__arrow--next {
    right: 12px;
  }

  .story-meta {
    width: 100%;
    max-width: 100%;
    min-height: 306px;
    margin: 0;
    padding: 59px 20px 0;
    overflow: hidden;
  }

  .story-meta p {
    width: 100%;
    max-width: 100%;
    font-size: 12px;
    line-height: 15px;
  }

  .story-meta p + p {
    margin-top: 25px;
  }


}


/* ==================================================================
   СТРАНИЦА ОБЪЕКТОВ (objects.html)
   Дубли .sort-button/.mobile-filter перенесены в «Общие компоненты»
================================================================== */

.objects-page {
  background: #fff;
}

.objects-heading {
  height: 90px;
  background: #fff;
}

.objects-heading__inner {
  width: calc(100% - 80px);
  max-width: 1286px;
  height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.objects-heading__icon {
  display: block;
  width: 40px;
  height: 36px;
  object-fit: contain;
}

.objects-heading h1 {
  margin: 0;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 29px;
}

.objects-map {
  position: relative;
  height: 380px;
  background: #e5dfd3 url("../assets/map-objects.jpg") center center / cover no-repeat;
}

.objects-map__counter {
  position: absolute;
  top: 244px;
  left: 25.4%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 14px;
  line-height: 28px;
  text-align: center;
}

.objects-content {
  width: calc(100% - 80px);
  max-width: 1286px;
  margin: 0 auto;
  padding: 45px 0 180px;
  display: grid;
  grid-template-columns: 307px 1fr;
  gap: 20px;
}

.objects-sidebar {
  grid-column: 1;
  grid-row: 1;
  /* Верх «СТАТУС» по верхней кромке фото первой карточки:
     справа над сеткой карточек стоит строка сортировки 54px */
  padding-top: 54px;
}

.objects-filter {
  border-bottom: 1px solid var(--line);
}

.objects-filter--status {
  padding-bottom: 20px;
}

.objects-filter--cities {
  padding: 39px 0 0;
}

.objects-filter h2 {
  margin: 0 0 19px;
  font-size: 14px;
  font-weight: 600;
}

.objects-search {
  width: 100%;
  height: 49px;
  margin-bottom: 20px;
  padding: 0 20px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}

.objects-search img {
  display: block;
  width: 20px;
  height: 20px;
}

.objects-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #111;
  font-size: 16px;
}

.objects-search input::placeholder {
  color: #aaa;
}

.objects-filter-heading {
  width: 100%;
  min-height: 59px;
  padding: 0;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.objects-filter-heading__sign {
  width: 13px;
  color: #aaa;
  font-size: 20px;
  font-weight: 400;
  line-height: 20px;
}

.objects-filter-content {
  display: none;
  padding-bottom: 13px;
}

.objects-filter-content.is-open {
  display: block;
}

.objects-filter-content--cities {
  display: none;
}

.objects-filter-content--cities.is-open {
  display: block;
}

.city-list,
.objects-checkbox-list {
  position: relative;
  max-height: 355px;
  overflow-y: auto;
  padding: 0 21px;
}

.city-list::-webkit-scrollbar,
.objects-checkbox-list::-webkit-scrollbar {
  width: 4px;
}

.city-list::-webkit-scrollbar-track,
.objects-checkbox-list::-webkit-scrollbar-track {
  background: transparent;
}

.city-list::-webkit-scrollbar-thumb,
.objects-checkbox-list::-webkit-scrollbar-thumb {
  background: #ded7ca;
}

.city-option {
  position: relative;
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.city-option input {
  position: absolute;
  opacity: 0;
}

.city-option i {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid #aaa;
  background: #fff;
}

.city-option--checked i {
  border-color: var(--coral);
  background: var(--coral);
}

.city-option--checked i::after {
  display: block;
  width: 8px;
  height: 4px;
  margin: 3px 0 0 2px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg);
}

.objects-filter--additional .objects-filter-heading {
  border-bottom: 1px solid var(--line);
}

.objects-list {
  grid-column: 2;
  grid-row: 1;
}

.objects-list__top {
  position: relative;
  height: 54px;
  display: flex;
  align-items: flex-start;
}

.objects-list__top .sort-buttons {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  display: flex;
  gap: 12px;
  margin: 0;
}

/* На objects.html у кнопок сортировки свой line-height (из исходного objects.css).
   Селектор сужен, чтобы не менять page.html. */
.objects-list__top .sort-button {
  line-height: 28px;
}

.objects-view {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.objects-view img {
  display: block;
  width: 21px;
  height: 21px;
}

.objects-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.objects-cards .card-image {
  height: 240px;
}

.objects-cards .card-content {
  min-height: 157px;
}

.objects-more {
  display: block;
  width: 201px;
  height: 47px;
  margin: 40px auto 0;
  border: 1px solid #aaa;
  color: #aaa;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .objects-heading {
    height: 89px;
  }

  .objects-heading__inner {
    width: 100%;
    height: 89px;
    padding: 0 20px;
    gap: 16px;
  }

  .objects-heading__icon {
    width: 38px;
    height: 27px;
  }

  .objects-heading h1 {
    font-size: 22px;
    line-height: 27px;
  }

  .objects-map {
    height: 470px;
    background-position: center center;
  }

  .objects-map__counter {
    top: 244px;
    left: 47%;
  }

  .objects-content {
    width: 100%;
    margin: 0;
    padding: 32px 20px 80px;
    display: block;
  }

  .objects-sidebar {
    display: none;
  }

  .objects-list {
    width: 100%;
  }

  .objects-list__top {
    position: relative;
    height: 48px;
    display: flex;
    align-items: flex-start;
  }

  .objects-list__top .sort-buttons {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    display: flex;
    gap: 12px;
    margin: 0 0 0 auto;
  }

  /* Позиционирование мобильного фильтра на objects.html */
  .objects-list__top .mobile-filter {
    position: relative;
    top: 0;
    z-index: 1;
  }









  .objects-view {
    display: none;
  }

  .objects-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .objects-cards .card {
    width: 100%;
  }

  .objects-cards .card-image {
    height: 250px;
  }

  .objects-cards .card-content {
    min-height: 0;
    padding: 19px 19px 17px;
  }

  .objects-cards .card-content h2 {
    min-height: 0;
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 29px;
  }

  .objects-cards .card-address {
    font-size: 12px;
    line-height: 18px;
  }

  .objects-more {
    width: 201px;
    height: 47px;
    margin-top: 20px;
  }
}

.mobile-filter-modal {
  display: none;
}

@media (max-width: 767px) {
  .mobile-filter-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-filter-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  /* objects.html: затонируем и шапку (её z-index 1000) —
     шторка тут занимает весь экран под шапкой, поэтому светлая
     полоса сверху выглядела незатонированной. На city.html шторка
     низкая и прижата к низу — там шапка остаётся светлой */
  .mobile-filter-modal:not(.mobile-filter-modal--city) {
    z-index: 1100;
  }

  .mobile-filter-modal__sheet {
    position: absolute;
    top: 58px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #fff;
    /* Шторка выезжает снизу при открытии, уезжает вниз при закрытии */
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .mobile-filter-modal.is-open .mobile-filter-modal__sheet {
    transform: translateY(0);
  }

  /* Во время перетаскивания за полоску — следует за пальцем без анимации */
  .mobile-filter-modal__sheet.is-dragging {
    transition: none;
  }

  .mobile-filter-modal__handle {
    position: relative;
    width: 42px;
    /* Вся зона касания 25px: тянуть можно не только за саму полоску */
    height: 25px;
    min-height: 25px;
    margin: 8px auto;
    touch-action: none;
    cursor: grab;
  }

  /* Визуальная полоска 42×5 по центру зоны касания */
  .mobile-filter-modal__handle::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 42px;
    height: 5px;
    border-radius: 3px;
    background: #ded7ca;
  }

  .mobile-filter-modal__body {
    height: calc(100% - 41px);
    overflow-y: auto;
    padding: 0 20px 50px;
  }

  .mobile-filter-modal__body .objects-sidebar {
    display: block;
    width: 100%;
    padding: 0;
  }

  .mobile-filter-modal__body .objects-filter {
    width: 100%;
  }

  .mobile-filter-modal__body .objects-filter--status {
    display: block;
    padding-bottom: 20px;
  }

  .mobile-filter-modal__body .objects-filter--cities {
    padding-top: 0;
  }

  .mobile-filter-modal__body .objects-filter h2 {
    margin-bottom: 19px;
  }

  .mobile-filter-modal__body .objects-search {
    margin-bottom: 13px;
  }

  .mobile-filter-modal__body .objects-filter-heading {
    min-height: 42px;
  }

  .mobile-filter-modal__body .objects-filter-content--cities {
    padding-bottom: 13px;
  }

  .mobile-filter-modal__body .city-list {
    max-height: 360px;
    padding-right: 0;
    padding-left: 21px;
  }

  .mobile-filter-modal__body .city-list::after {
    right: 0;
    height: 67px;
  }

  .mobile-filter-modal__body .objects-filter--additional
    .objects-filter-heading {
    min-height: 59px;
  }

  .mobile-filter-modal__body .status-filters {
    gap: 9px;
  }

  .mobile-filter-modal__body .status-filter {
    padding: 3px 8px;
  }

  body.mobile-filter-is-open {
    overflow: hidden;
  }

  /* Шторка фильтра на city.html: внутри только блок «СТАТУС»,
     поэтому шторка поджата под контент и прижата к низу экрана,
     а затонированная страница видна над ней */
  .mobile-filter-modal--city .mobile-filter-modal__sheet {
    top: auto;
    bottom: 0;
  }

  .mobile-filter-modal--city .mobile-filter-modal__body {
    height: auto;
    max-height: calc(100vh - 58px - 41px);
  }

  .mobile-filter-modal--city
    .mobile-filter-modal__body
    .city-status-filter {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
}


/* ==================================================================
   СТРАНИЦА ОТДЕЛЬНОГО ОБЪЕКТА (object-page.html)
================================================================== */

.object-page {
  background: #fff;
}

.object-intro {
  min-height: 798px;
  padding: 40px 0 0;
}

.object-intro__inner {
  width: calc(100% - 80px);
  max-width: 1070px;
  min-height: 758px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 524px 634px;
  column-gap: 20px;
}

.object-info {
  position: relative;
  padding-left: 0;
}

.object-back {
  position: absolute;
  top: 8px;
  left: -101px;
  display: block;
  width: 21px;
  height: 21px;
}

.object-back img {
  display: block;
  width: 21px;
  height: 21px;
}

.object-info h1 {
  width: 500px;
  margin: 0 0 13px;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 28px;
}

.object-address {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: #aaa;
  font-size: 14px;
  line-height: 18px;
}

.object-address img {
  display: block;
  width: 14px;
  height: 18px;
}

.object-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.object-status {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  color: #fff;
  background: #27351b;
  font-size: 12px;
  line-height: 20px;
}

.object-year {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aaa;
  font-size: 14px;
  font-weight: 600;
}

.object-year img {
  display: block;
  width: 18px;
  height: 18px;
  opacity: .65;
}

.object-social {
  display: flex;
  gap: 10px;
}

.object-social a,
.object-social img {
  display: block;
  width: 31px;
  height: 31px;
}

.object-history {
  width: 405px;
  margin-top: 37px;
}

.object-history h2,
.object-team h2 {
  margin: 0 0 19px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
}

.object-history p {
  margin: 0;
  font-size: 14px;
  line-height: 17px;
}

.object-team {
  margin-top: 39px;
}

.team-person {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.team-person img {
  display: block;
  width: 89px;
  height: 89px;
  border-radius: 50%;
  object-fit: cover;
}

.team-person div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.team-person strong {
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 26px;
}

.team-person span {
  color: #aaa;
  font-size: 14px;
  line-height: 17px;
}

.object-gallery {
  width: 634px;
  overflow: hidden;
}

.object-gallery__track {
  display: flex;
  /* Зазор между кадрами — «паддинг», за которым виден край
     следующего кадра */
  gap: 20px;
  width: 100%;
  transition: transform .45s ease;
  will-change: transform;
}

.object-gallery__track img {
  display: block;
  /* Кадр уже галереи на 44px: 20px уходит на зазор,
     оставшиеся 24px — видимый край следующего кадра,
     который подсказывает, что галерею можно листать */
  flex: 0 0 calc(100% - 44px);
  width: calc(100% - 44px);
  height: 540px;
  object-fit: cover;
}

.gallery-controls {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.gallery-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  /* Кольцо рисует сама иконка (icon-arrow-*-circle.svg);
     CSS-бордюр здесь давал вторую окружность */
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: opacity .2s ease;
}

.gallery-controls button:disabled {
  cursor: default;
  opacity: .35;
}

.gallery-controls img {
  display: block;
  width: 30px;
  height: 30px;
}

.object-map {
  position: relative;
  height: 381px;
  overflow: hidden;
  background: #ded4c4 url("../assets/map-objects.jpg") center center / cover no-repeat;
}

.object-map__pin {
  position: absolute;
  top: 163px;
  left: 46.2%;
  width: 29px;
  height: 37px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--coral);
  transform: rotate(-45deg);
}

.object-map__pin::after {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.object-map__zoom {
  position: absolute;
  top: 128px;
  right: 10px;
  display: flex;
  flex-direction: column;
}

.object-map__zoom button {
  width: 48px;
  height: 48px;
  border: 0;
  background: #fff;
  font-size: 31px;
  line-height: 48px;
}

.object-map__zoom button:first-child {
  border-radius: 12px 12px 0 0;
}

.object-map__zoom button:last-child {
  margin-top: 1px;
  border-radius: 0 0 12px 12px;
}

.support {
  min-height: 751px;
  background: #fff;
}

.support__inner {
  width: 1070px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
  padding-top: 79px;
  display: grid;
  grid-template-columns: 524px 505px;
  column-gap: 40px;
}

.support-description h2 {
  margin: 0;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.16;
}

.support-description p {
  width: 470px;
  margin: 45px 0 0;
  color: #aaa;
  font-size: 16px;
  line-height: 19px;
}

.support-form {
  width: 505px;
}

.support-frequency,
.support-sums,
.support-payments {
  display: grid;
  gap: 20px;
}

.support-frequency {
  grid-template-columns: 1fr 1fr;
}

.support-sums {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
}

.support-payments {
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
}

.support-choice {
  position: relative;
  display: block;
  height: 60px;
  cursor: pointer;
}

.support-choice input,
.payment-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.support-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid #ded7ca;
  color: #aaa;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition:
    color .15s ease,
    border-color .15s ease,
    background-color .15s ease;
}

.support-choice input:checked + span {
  border-color: var(--coral);
  color: var(--coral);
  background: #fff;
}

.support-frequency .support-choice input:checked + span {
  color: #fff;
  background: var(--coral);
}

.payment-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border: 1px solid #ded7ca;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease;
}

.payment-card:has(input:checked) {
  border-color: var(--coral);
}

.payment-card__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.payment-card__logos img {
  display: block;
  width: auto;
  max-width: 70px;
  height: 24px;
  object-fit: contain;
}

.payment-card__logos--sbp img {
  width: 78px;
  height: 31px;
}

.support-form > input {
  width: 100%;
  height: 60px;
  margin-top: 20px;
  padding: 0 20px;
  border: 1px solid #ded7ca;
  outline: 0;
  color: #111;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

.support-form > input:focus {
  border-color: var(--coral);
}

.support-form > input::placeholder {
  color: #aaa;
  opacity: 1;
}

.support-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 17px;
  cursor: pointer;
  font-size: 12px;
  line-height: 15px;
}

.support-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.support-checkbox i {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid #aaa;
  background: #fff;
}

.support-checkbox input:checked + i {
  border-color: var(--coral);
  background: var(--coral);
}

.support-checkbox input:checked + i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg);
}

.support-checkbox a {
  color: var(--coral);
}

.support-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  margin-top: 35px;
  padding: 0;
  border: 0;
  color: #fff !important;
  background: var(--coral) !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 767px) {
  .object-intro {
    min-height: 0;
    padding: 27px 0 43px;
  }

  .object-intro__inner {
    width: 100%;
    min-height: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  .object-info {
    display: contents;
  }

  .object-back {
    display: none;
  }

  .object-info h1 {
    order: 1;
    width: auto;
    margin: 0 20px 12px;
    color: var(--coral);
    font-size: 22px;
    line-height: 27px;
  }

  .object-address {
    order: 2;
    margin: 0 20px 15px;
    font-size: 14px;
    line-height: 18px;
  }

  .object-meta {
    order: 3;
    margin: 0 20px;
    gap: 20px;
  }

  .object-social {
    margin-left: auto;
  }

  .object-gallery {
    order: 4;
    width: calc(100% - 40px);
    margin: 22px 20px 0;
    overflow: hidden;
  }

  .object-gallery__track {
    width: 100%;
  }

  .object-gallery__track img {
    height: 272px;
  }

  .gallery-controls {
    display: none;
  }

  .object-history {
    order: 5;
    width: auto;
    margin: 42px 20px 0;
  }

  .object-history h2,
  .object-team h2 {
    margin-bottom: 19px;
    font-size: 14px;
    line-height: 17px;
  }

  .object-history p {
    margin: 0;
    font-size: 12px;
    line-height: 14px;
  }

  .object-history p + p {
    margin-top: 0;
  }

  .object-team {
    order: 6;
    margin: 38px 20px 0;
  }

  .team-person {
    gap: 20px;
    margin-bottom: 12px;
  }

  .team-person img {
    width: 89px;
    height: 89px;
  }

  .team-person strong {
    font-size: 22px;
    line-height: 26px;
  }

  .team-person span {
    font-size: 12px;
    line-height: 15px;
  }

  .object-map {
    height: 381px;
  }

  .object-map__pin {
    top: 164px;
    left: calc(50% - 14px);
  }

  .object-map__zoom {
    display: none;
  }

  .support {
    min-height: 0;
    height: auto;
    padding-bottom: 78px;
  }

  .support__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 79px 20px 0;
    display: block;
  }

  .support-description h2 {
    font-size: 32px;
    line-height: 38px;
  }

  .support-description p {
    width: 100%;
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 17px;
  }

  .support-form {
    width: 100%;
    margin-top: 29px;
  }

  .support-frequency,
  .support-sums,
  .support-payments {
    gap: 8px;
  }

  .support-sums,
  .support-payments {
    margin-top: 10px;
  }

  .support-choice {
    height: 50px;
  }

  .support-choice span,
  .payment-card {
    height: 50px;
    font-size: 12px;
  }

  .payment-card__logos {
    gap: 7px;
  }

  .payment-card__logos img {
    max-width: 50px;
    height: 19px;
  }

  .payment-card__logos--sbp img {
    width: 65px;
    height: 25px;
  }

  .support-form > input {
    height: 50px;
    margin-top: 10px;
  }

  .support-checkbox {
    margin-top: 13px;
    font-size: 12px;
    line-height: 15px;
  }

  .support-submit {
    height: 60px;
    margin-top: 22px;
  }
}


/* ==================================================================
   СТРАНИЦА ПАРТНЁРОВ (partners.html)
================================================================== */

.partners-page,
.partners-page *,
.partners-page *::before,
.partners-page *::after {
  box-sizing: border-box;
}

.partners-page {
  width: 100%;
  overflow: hidden;
  background: #fff;
padding-bottom:120px;
}

.partners-intro {
  width: calc(100% - 80px);
  max-width: 1286px;
  margin: 0 auto;
  padding-top: 30px;
}

.partners-heading {
  width: 1068px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 17px;
  padding-bottom: 20px;
}

.partners-heading__icon {
  display: block;
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.partners-heading h1 {
  margin: 0;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 27px;
}

.partners-feature-slider {
  position: relative;
  width: 100%;
  height: 434px;
  overflow: hidden;
}

.partners-feature-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.partners-feature {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition:
    opacity .65s ease,
    transform .65s ease;
}

.partners-feature.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.partners-feature__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partners-feature::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  content: "";
  background: rgba(0, 0, 0, .24);
  pointer-events: none;
}

.partners-feature__content {
  position: absolute;
  top: 176px;
  left: 110px;
  z-index: 2;
  width: 405px;
  color: #fff;
}

.partners-feature__content h2 {
  margin: 0 0 14px;
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  text-transform: uppercase;
}

.partners-feature__content p {
  width: 405px;
  margin: 0;
  font-size: 16px;
  line-height: 18px;
}

.partners-feature-slider__arrow {
  position: absolute;
  top: 197px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  background: transparent;
}

.partners-feature-slider__arrow--prev {
  left: 20px;
}

.partners-feature-slider__arrow--next {
  right: 20px;
}

.partners-feature-slider__arrow img {
  display: block;
  width: 31px;
  height: 31px;
}

.partners-become {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 80px;
  margin: 8px 0 0;
  padding: 0 110px;
  border: 0;
  color: #fff;
  background: var(--coral);
  cursor: pointer;
}

.partners-become strong {
  width: 253px;
  font-size: 14px;
  line-height: 17px;
  text-align: left;
}

.partners-become__logo {
  display: block;
  width: 120px;
  height: 70px;
  object-fit: contain;
}

.partners-become__plus {
  position: absolute;
  top: 24px;
  right: 105px;
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
  transition: transform .45s ease;
}

.partners-become.is-open .partners-become__plus {
  transform: rotate(45deg);
}

.partners-become-content {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  color: #fff;
  background: var(--coral);
  opacity: 0;
  transform: translateY(-12px);
  transition:
    max-height .55s ease,
    opacity .4s ease,
    transform .55s ease;
}

.partners-become-content.is-open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

.partners-become-content__inner {
  width: 630px;
  max-width: calc(100% - 220px);
  margin: 0 auto;
  padding: 40px 0 50px;
}

.partners-become-content__inner h2 {
  margin: 0 0 24px;
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  text-transform: uppercase;
}

.partners-become-content__inner p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 18px;
}

.partners-become-content__link {
  display: inline-block;
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  text-decoration: underline;
}

.partners-list {
  width: calc(100% - 80px);
  max-width: 1286px;
  margin: 0 auto;
  padding: 100px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 42px;
  row-gap: 121px;
}

.partner-card {
  min-width: 0;
}

.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 190px;
}

.partner-card__logo img {
  display: block;
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
}

.partner-card__content {
  margin-top: 25px;
  text-align: center;
}

.partner-card__content h2 {
  margin: 0 0 25px;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  text-transform: uppercase;
}

.partner-card__content p {
  margin: 0;
  color: #aaa9a3;
  font-size: 16px;
  line-height: 18px;
}

@media (max-width: 767px) {
  .partners-intro {
    width: 100%;
    margin: 0;
    padding-top: 0;
  }

  .partners-heading {
    width: 100%;
    height: 89px;
    padding: 0 20px;
    gap: 17px;
  }

  .partners-heading__icon {
    width: 39px;
    height: 39px;
  }

  .partners-heading h1 {
    font-size: 22px;
    line-height: 27px;
  }

  .partners-feature-slider {
    width: calc(100% - 40px);
    height: 480px;
    margin: 0 20px;
  }

  .partners-feature__image {
    object-position: center center;
  }

  .partners-feature__content {
    top: 299px;
    left: 20px;
    width: calc(100% - 40px);
  }

  .partners-feature__content h2 {
    margin-bottom: 15px;
    font-size: 22px;
    line-height: 30px;
  }

  .partners-feature__content p {
    width: 100%;
    font-size: 14px;
    line-height: 17px;
  }

  .partners-feature-slider__arrow {
    top: 225px;
  }

  .partners-feature-slider__arrow--prev {
    left: 8px;
  }

  .partners-feature-slider__arrow--next {
    right: 8px;
  }

  .partners-become {
    width: calc(100% - 40px);
    height: 81px;
    margin: 8px 20px 0;
    padding: 0 20px;
  }

  .partners-become strong {
    width: 112px;
    font-size: 14px;
    line-height: 16px;
  }

  .partners-become__logo {
    position: absolute;
    left: 128px;
    width: 111px;
    height: 76px;
  }

  .partners-become__plus {
    top: 25px;
    right: 27px;
    width: 28px;
    height: 28px;
  }

  .partners-become-content {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .partners-become-content.is-open {
    max-height: 650px;
  }

  .partners-become-content__inner {
    width: 100%;
    max-width: none;
    padding: 30px 20px 35px;
  }

  .partners-become-content__inner h2 {
    margin-bottom: 20px;
    font-size: 22px;
    line-height: 30px;
  }

  .partners-become-content__inner p {
    font-size: 14px;
    line-height: 17px;
  }

  .partners-become-content__link {
    margin-top: 8px;
    font-size: 12px;
    line-height: 15px;
  }

  .partners-list {
    width: 100%;
    margin: 0;
    padding: 42px 20px 80px;
    display: block;
  }

  .partner-card {
    display: block;
    width: 100%;
    margin: 0 0 17px;
  }

  .partner-card:last-child {
    margin-bottom: 0;
  }

  .partner-card__logo {
    width: 100%;
    height: 255px;
  }

  .partner-card__logo img {
    max-width: 280px;
    max-height: 255px;
  }

  .partner-card__content {
    margin-top: 0px;
  }

  .partner-card__content h2 {
    margin-bottom: 17px;
    font-size: 22px;
    line-height: 30px;
  }

  .partner-card__content p {
    font-size: 14px;
    line-height: 17px;
  }

  .partner-card--dodo,
  .partner-card--duplicate {
    display: block;
  }
}


/* ==================================================================
   СТРАНИЦА ГОРОДА (city.html)
   Правило .site-footer перенесено в секцию «Подвал сайта»
================================================================== */

.city-page {
  background: #fff;
}

.city-hero {
  height: 380px;
  background: url("../assets/hero.jpg") center center / cover no-repeat;
}

.city-hero__inner {
  position: relative;
  width: calc(100% - 80px);
  max-width: 1286px;
  height: 100%;
  margin: 0 auto;
}

.city-hero__back {
  position: absolute;
  top: 40px;
  left: 0;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.city-hero__back img {
  display: block;
  width: 31px;
  height: 31px;
}

.city-hero__title {
  position: absolute;
  bottom: 26px;
  left: 109px;
  color: #fff;
}

.city-hero__title h1 {
  margin: 0;
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
}

.city-hero__bottom {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 600;
}

.city-social {
  display: flex;
  gap: 9px;
}

.city-social a,
.city-social img {
  display: block;
  width: 31px;
  height: 31px;
}

.city-description {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 524px;
  min-height: 100px;
  padding: 31px 30px;
  color: #fff;
  background: var(--coral);
  font-size: 14px;
  line-height: 17px;
}

.city-content {
  width: calc(100% - 80px);
  max-width: 1286px;
  min-height: 944px;
  margin: 0 auto;
  padding: 45px 0 120px;
  display: grid;
  grid-template-columns: 307px 1fr;
  grid-template-rows: 55px 724px;
  column-gap: 20px;
}

.city-sidebar {
  grid-column: 1;
  grid-row: 2;
  padding-right: 20px;
}

.city-sidebar h2 {
  margin: 0 0 19px;
  font-size: 14px;
  font-weight: 600;
}

/* Фильтр «СТАТУС» в сайдбаре города (как на objects.html) */
.city-status-filter {
  margin-bottom: 20px;
}

.city-coordinators {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.city-coordinator {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-bottom: 12px;
}

.city-coordinator:last-child {
  margin-bottom: 0;
}

.city-coordinator img {
  display: block;
  width: 89px;
  height: 89px;
  border-radius: 50%;
  object-fit: cover;
}

.city-coordinator span {
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  line-height: 26px;
}

.city-news {
  padding-top: 21px;
  border-bottom: 1px solid var(--line);
}

.city-news__item {
  margin-bottom: 17px;
}

.city-news__item:last-child {
  margin-bottom: 17px;
}

.city-news__item time {
  display: block;
  margin-bottom: 8px;
  color: #aaa;
  font-size: 12px;
  line-height: 15px;
}

.city-news__item p {
  margin: 0;
  font-size: 14px;
  line-height: 17px;
}

.city-map-area {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
}

.city-map-top {
  height: 55px;
  display: flex;
  align-items: flex-start;
}

.city-map-top strong {
  position: absolute;
  top: 5px;
  left: -327px;
  font-size: 16px;
  font-weight: 600;
}

.city-map-view {
  display: flex;
  align-items: center;
  height: 28px;
  gap: 9px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.city-map-view img {
  display: block;
  width: 21px;
  height: 21px;
}

.city-map {
  position: relative;
  width: 100%;
  height: 724px;
  overflow: hidden;
  background: #e5dfd3 url("../assets/map-objects.jpg") center center / cover no-repeat;
}

.city-marker {
  position: absolute;
  width: 28px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--coral);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  transform: rotate(-45deg);
}

.city-marker::after {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.city-marker--one {
  top: 47px;
  left: 27%;
}

.city-marker--two {
  top: 56px;
  left: 65%;
}

.city-marker--three {
  top: 207px;
  left: 53%;
}

.city-marker--four {
  top: 284px;
  left: 39%;
}

.city-marker--five {
  top: 387px;
  left: 11%;
}

.city-marker--six {
  top: 493px;
  left: 22%;
}

.city-map-counter {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 14px;
  line-height: 28px;
}

.city-map-counter--objects {
  top: 177px;
  left: 30%;
}

.city-map-counter--district {
  top: 399px;
  left: 24%;
}

.city-map-filter {
  display: none;
}

/* --- Переключение «карта / список» на city.html ---
   По клику на .city-map-view JS ставит класс city-map-area--list:
   карта прячется, вместо неё показывается каталог карточек
   (разметка и стили кнопок сортировки и карточек — как на objects.html). */
.city-objects-list {
  display: none;
}

.city-map-area--list .city-objects-list {
  display: block;
}

.city-map-area--list .city-map {
  display: none;
}

/* Сетка .city-content держит фиксированные строки 55px/724px под карту;
   в режиме списка вторая строка должна расти по высоте карточек. */
.city-content--list {
  grid-template-rows: 55px auto;
}

/* В режиме списка строка кнопок сортировки поднимается наверх —
   на одну ось с «Количество объектов» и переключателем «НА КАРТЕ»
   (мобильное правило ниже с той же специфичностью перекрывает это) */
.city-map-area--list .objects-list__top {
  height: 55px;
	max-width: 500px;
  margin-top: -55px;
}

@media (max-width: 767px) {
  .city-hero {
    height: 470px;
    background-position: 54% center;
  }

  .city-hero__inner {
    width: 100%;
  }

  .city-hero__back {
    display: none;
  }

  .city-hero__title {
    right: 20px;
    bottom: 43px;
    left: 20px;
  }

  .city-hero__title h1 {
    font-size: 34px;
    line-height: 36px;
  }

  .city-hero__bottom {
    gap: 13px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 17px;
  }

  .city-social {
    gap: 8px;
  }

  .city-social a,
  .city-social img {
    width: 25px;
    height: 25px;
  }

  .city-description {
    right: 20px;
    bottom: -265px;
    left: 20px;
    width: auto;
    height: 285px;
    padding: 30px;
    font-size: 12px;
    line-height: 14px;
  }

  .city-content {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 294px 20px 0;
    display: flex;
    flex-direction: column;
  }

  .city-sidebar {
    width: 100%;
    padding: 0;
    order: 1;
  }

  /* Фильтр «СТАТУС» на мобильном убирается с полосы страницы —
     JS переносит его в шторку, открываемую по иконке фильтра
     (внутри шторки display: block задан правилом с бóльшей
     специфичностью) */
  .city-status-filter {
    display: none;
    margin-bottom: 0;
  }

  .city-coordinators {
    padding-bottom: 20px;
  }

  .city-sidebar h2 {
    margin-bottom: 20px;
  }

  .city-coordinator {
    gap: 20px;
    margin-bottom: 12px;
  }

  .city-coordinator img {
    width: 89px;
    height: 89px;
  }

  .city-coordinator span {
    font-size: 22px;
    line-height: 26px;
  }

  .city-news {
    margin-bottom: 40px;
    padding-top: 22px;
    padding-bottom: 17px;
  }

  .city-news__item {
    margin-bottom: 17px;
  }

  .city-news__item:last-child {
    margin-bottom: 0;
  }

  .city-news__item time {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 15px;
  }

  .city-news__item p {
    font-size: 12px;
    line-height: 14px;
  }

  .city-map-area {
    width: 100%;
    order: 2;
  }

  /*
   * Верхняя часть карты состоит из двух строк:
   * первая строка — количество объектов и переключатель;
   * вторая строка — фильтр.
   *
   * За счёт высоты 80px кнопка фильтров полностью
   * располагается над картой.
   */
  .city-map-top {
    position: relative;
    height: 80px;
    display: flex;
    align-items: flex-start;
  }

  /* Текст и кнопка-переключатель выравниваются по одной оси:
     у кнопки высоту задаёт иконка 22px, поэтому у текста такой же
     line-height, а содержимое кнопки центрируется по вертикали */
  .city-map-top strong {
    position: static;
    font-size: 14px;
    line-height: 22px;
  }

  .city-map-view {
    display: flex;
    align-items: center;
    height: 22px;
    gap: 9px;
    margin-left: auto;
    font-size: 12px;
    line-height: 17px;
  }

  .city-map-view img {
    width: 20px;
    height: 22px;
  }

  .city-map-filter {
    position: absolute;
    top: 43px;
    left: 0;
    z-index: 2;
    display: block;
    width: 28px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .city-map-filter img {
    display: block;
    width: 22px;
    height: 27px;
    object-fit: contain;
  }

  .city-map-filter b {
    position: absolute;
    top: -5px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    color: #fff;
    background: var(--coral);
    font-size: 10px;
    line-height: 15px;
    font-weight: 400;
  }

  .city-map {
    width: calc(100% + 40px);
    height: 470px;
    margin-left: -20px;
    background-position: center center;
  }

  .city-marker {
    width: 28px;
    height: 36px;
  }

  .city-marker--one {
    top: 45px;
    left: 52%;
  }

  .city-marker--two {
    top: 157px;
    left: 72%;
  }

  .city-marker--three {
    top: 270px;
    left: 72%;
  }

  .city-marker--four {
    top: 300px;
    left: 18%;
  }

  .city-marker--five {
    top: 348px;
    left: 72%;
  }

  .city-marker--six {
    top: 400px;
    left: 8%;
  }

  .city-map-counter--objects {
    top: 177px;
    left: 61%;
  }

  .city-map-counter--district {
    top: 399px;
    left: 46%;
  }

  /* Список объектов на мобильном: ряд сортировки поднимаем
     на строку иконки фильтра (вторая строка .city-map-top),
     карточки — в одну колонку на всю ширину, как на objects.html */
  .city-content--list {
    padding-bottom: 60px;
  }

  .city-objects-list .objects-list__top {
    height: 37px;
    margin-top: -37px;
  }

  .city-objects-list .objects-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .city-objects-list .card-image {
    height: 250px;
  }


}

/* ==============================================================
   ФИНАЛЬНЫЕ UI-УЛУЧШЕНИЯ
   Фиксированная шапка, ховеры, микровзаимодействия,
   адаптивное поведение и параллакс линий на stories.html
============================================================== */


/* ----------------------------------------------------------------
   Фиксированная шапка на десктопе и мобильных устройствах
---------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: 57px;
  background: #fff;
}

body {
  padding-top: 57px;
}

.site-header__inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .site-header {
    height: 58px;
  }

  body {
    padding-top: 58px;
  }
}


/* ----------------------------------------------------------------
   Ховеры элементов меню
---------------------------------------------------------------- */

.header-nav a,
.footer-nav a,
.header-social a,
.footer-social a {
  transition:
    color .2s ease,
    opacity .2s ease,
    transform .2s ease;
}

.header-nav a:hover,
.footer-nav a:hover {
  color: var(--coral);
}

.header-social a:hover,
.footer-social a:hover {
  opacity: .7;
  transform: translateY(-2px);
}

.header-logo {
  transition: transform .25s ease;
}

.header-logo:hover {
  transform: translateY(-1px);
}

.menu-button,
.mobile-back,
.hero-back,
.city-hero__back,
.news-article-hero__back,
.story-hero__back,
.object-back,
.map-button,
.objects-view,
.city-map-view,
.city-map-filter {
  transition:
    opacity .2s ease,
    transform .2s ease,
    background-color .2s ease;
}

.menu-button:hover,
.mobile-back:hover {
  opacity: .65;
}

.hero-back:hover,
.city-hero__back:hover,
.news-article-hero__back:hover,
.story-hero__back:hover {
  transform: scale(1.08);
}


/* ----------------------------------------------------------------
   Кнопки
---------------------------------------------------------------- */

.button,
.sort-button,
.status-filter,
.news-more,
.objects-more,
.support-submit,
.partners-become,
.subscribe-form button,
.gallery-controls button,
.news-feature__arrows button,
.stories-slider__arrow,
.stories-wide-slider__arrow,
.news-photo-slider__button,
.news-related__arrows button,
.object-map__zoom button {
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    opacity .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

/* Ховер-эффекты — только для мыши: на тач-экранах :hover «залипает»
   после касания и визуально перекрывает активное состояние кнопок */
@media (hover: hover) {
  .button:hover,
  .sort-button:hover,
  .status-filter:hover,
  .news-more:hover,
  .objects-more:hover,
  .support-submit:hover,
  .partners-become:hover,
  .subscribe-form button:hover {
    transform: translateY(-2px);
  }
}

.button--outline:hover {
  color: #fff;
  background: var(--coral);
}

.button--filled:hover,
.support-submit:hover,
.subscribe-form button:hover,
.partners-become:hover {
  background: #df5c4e;
  box-shadow: 0 5px 14px rgba(242, 105, 90, .18);
}

/* На тач-экранах это правило «залипало» после касания и перекрашивало
   активную кнопку сортировки в серый — из-за этого на мобильном
   переключение «Сначала новые/старые» выглядело нерабочим */
@media (hover: hover) {
  .sort-button:hover,
  .sort-button--active:hover {
    background: #cfc8bd;
  }
}

.status-filter:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.news-more:hover,
.objects-more:hover {
  color: var(--coral);
  border-color: var(--coral);
  background: #fff;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}


/* ----------------------------------------------------------------
   Социальные иконки
---------------------------------------------------------------- */

.hero-social a,
.city-social a,
.object-social a {
  display: block;
  transition:
    opacity .2s ease,
    transform .2s ease;
}

.hero-social a:hover,
.city-social a:hover,
.object-social a:hover {
  opacity: .72;
  transform: translateY(-2px) scale(1.04);
}


/* ----------------------------------------------------------------
   Карточки контента
---------------------------------------------------------------- */

.card {
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.card:hover {
  border-color: #c8beae;
  box-shadow: 0 8px 22px rgba(53, 59, 36, .1);
  transform: translateY(-4px);
}

.card-image {
  overflow: hidden;
}

.card-image > img {
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.card:hover .card-image > img {
  transform: scale(1.035);
}

.card-content h2,
.story-author__content h2,
.news-card h2,
.partner-card__content h2 {
  transition: color .2s ease;
}

.card:hover .card-content h2,
.story-author:hover .story-author__content h2,
.news-card:hover h2,
.partner-card:hover .partner-card__content h2 {
  color: var(--coral);
}


/* ----------------------------------------------------------------
   Изображения новостей и партнёров
---------------------------------------------------------------- */

.news-card {
  transition:
    background-color .25s ease,
    transform .25s ease;
}

.news-card:hover {
  transform: translateX(4px);
}

.news-card__image,
.news-related-card > img,
.news-article-photo img,
.partner-card__logo img,
.partners-feature__image {
  transition:
    transform .45s cubic-bezier(.22, .61, .36, 1),
    opacity .3s ease;
}

.news-card:hover .news-card__image,
.news-related-card:hover > img,
.news-article-photo:hover img,
.partner-card:hover .partner-card__logo img {
  transform: scale(1.025);
}

.news-related-card {
  transition: transform .25s ease;
}

.news-related-card:hover {
  transform: translateY(-4px);
}

.news-link,
.story-link,
.partners-become-content__link,
.footer-contacts a {
  transition:
    color .2s ease,
    opacity .2s ease;
}

.news-link:hover,
.story-link:hover,
.partners-become-content__link:hover,
.footer-contacts a:hover {
  color: var(--coral);
  opacity: .78;
}


/* ----------------------------------------------------------------
   Истории: авторы и микровзаимодействия
---------------------------------------------------------------- */

.story-author {
  transition: transform .3s ease;
}

.story-author:hover {
  transform: translateY(-5px);
}

.story-author a > img {
  transition:
    transform .45s cubic-bezier(.22, .61, .36, 1),
    box-shadow .3s ease;
}

.story-author:hover a > img {
  transform: scale(1.025);
  box-shadow: 0 8px 20px rgba(53, 59, 36, .14);
}

.stories-slide__image img,
.stories-wide-slide > img {
  transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

.stories-slide.is-active .stories-slide__image img {
  transform: scale(1.012);
}

.stories-wide-slide.is-active > img {
  transform: scale(1.015);
}


/* ----------------------------------------------------------------
   Карта и маркеры
---------------------------------------------------------------- */

.city-marker,
.city-map-counter,
.objects-map__counter,
.object-map__pin {
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.city-marker:hover,
.object-map__pin:hover {
  z-index: 2;
  box-shadow: 0 5px 14px rgba(242, 105, 90, .35);
  transform: rotate(-45deg) scale(1.12);
}

.city-map-counter:hover,
.objects-map__counter:hover {
  box-shadow: 0 5px 14px rgba(242, 105, 90, .3);
  transform: scale(1.1);
}

.city-map:hover,
.objects-map:hover,
.object-map:hover {
  cursor: grab;
}


/* ----------------------------------------------------------------
   Фильтры, поля и форма поддержки
---------------------------------------------------------------- */

.objects-search,
.support-choice span,
.payment-card,
.support-form > input,
.support-checkbox i {
  transition:
    border-color .2s ease,
    background-color .2s ease,
    box-shadow .2s ease;
}

.objects-search:focus-within,
.support-form > input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(242, 105, 90, .1);
}

.support-choice:hover span,
.payment-card:hover {
  border-color: var(--coral);
}

.support-checkbox:hover i {
  border-color: var(--coral);
}


/* ----------------------------------------------------------------
   Параллакс фоновых линий на stories.html
---------------------------------------------------------------- */

.stories-authors__line {
  --parallax-y: 0px;
  transform: translate3d(
    -50%,
    var(--parallax-y),
    0
  );
  will-change: transform;
  transition: transform .12s linear;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .stories-authors__line {
    --parallax-y: 0px !important;
    transform: translateX(-50%);
  }

  .card:hover,
  .story-author:hover,
  .news-card:hover,
  .news-related-card:hover {
    transform: none;
  }

  .card:hover .card-image > img,
  .story-author:hover > img,
  .news-card:hover .news-card__image,
  .partner-card:hover .partner-card__logo img {
    transform: none;
  }
}


/* На сенсорных устройствах не оставляем hover-состояния после касания */

@media (hover: none) {
  .card:hover,
  .story-author:hover,
  .news-card:hover,
  .news-related-card:hover {
    transform: none;
    box-shadow: none;
  }

  .card:hover .card-image > img,
  .story-author:hover > img,
  .news-card:hover .news-card__image,
  .partner-card:hover .partner-card__logo img {
    transform: none;
  }
}

/* ==============================================================
   FRONT PAGE
   Главная страница index.html
============================================================== */

.front-page {
  padding-top: 0;
  /*overflow-x: hidden;*/
}

.front-page .site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: transparent;
}

.front-page .site-header__inner {
  color: #fff;
}

.front-page .header-logo img,
.front-page .menu-button img,
.front-page .header-social img {
  filter: brightness(0) invert(1);
}

.front-page .header-nav a {
  color: #fff;
}

.front-page .header-actions .button--outline {
  color: #fff;
  border-color: #fff;
}

.front-page .header-actions .button--filled {
  color: var(--coral);
  background: #fff;
}

.front-page .hero {
  position: relative;
  height: 768px;
  background-image: url("../assets/hero.jpg");
  background-position: center center;
  background-size: cover;
}

.front-page .hero__inner {
  width: 100%;
  max-width: none;
}

.front-page .hero-title,
.front-page .hero-description,
.front-page .hero-back {
  display: none;
}

.front-hero__logo {
  position: absolute;
  top: 166px;
  left: 50%;
  width: 333px;
  height: 420px;
  padding: 68px 35px 0;
  border: 5px solid #fff;
  color: #fff;
  transform: translateX(-50%);
}

.front-hero__logo img {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.front-hero__logo span {
  display: block;
  margin-top: 17px;
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  text-align: center;
  text-transform: uppercase;
}

.front-hero__icons {
  position: absolute;
  top: 616px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
  transform: translateX(-50%);
}

.front-hero__icons img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Intro */

.front-about {
  position: relative;
  display: grid;
  grid-template-columns: 41.25% 58.75%;
  min-height: 768px;
}

.front-about__photo {
  width: 100%;
  height: 768px;
  overflow: hidden;
}

.front-about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front-about__content {
  width: 524px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
  padding-top: 88px;
}

.front-about__logo {
  display: block;
  width: 270px;
  height: 190px;
  margin: 0 auto 58px;
  object-fit: contain;
}

.front-about__text {
  margin: 0 0 76px;
  font-size: 16px;
  line-height: 19px;
}

.front-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.front-stat strong {
  display: block;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
}

.front-stat span {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  line-height: 17px;
}

/* Gallery */

.front-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  height: 461px;
  overflow: hidden;
}

.front-gallery img {
  display: block;
  width: 100%;
  height: 461px;
  object-fit: cover;
}

/* Common sections */

.front-section {
  width: 1068px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
  padding-top: 120px;
}

.front-section__title {
  margin: 0 0 24px;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
}

.front-section__title span {
  font-family: Arial, sans-serif;
  font-size: 64px;
  line-height: 0;
}

/* Map */

.front-map {
  position: relative;
  width: 100vw;
  height: 380px;
  margin-left: calc((1068px - 100vw) / 2);
  overflow: hidden;
  background: #e5dfd3 url("../assets/map-objects.jpg") center center / cover no-repeat;
}

.front-map__counter {
  position: absolute;
  top: 244px;
  left: 25.4%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 14px;
}

/* Objects */

.front-search {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 49px;
  margin-bottom: 20px;
  padding: 0 20px;
  border: 1px solid var(--line);
}

.front-search img {
  display: block;
  width: 20px;
  height: 20px;
}

.front-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.front-search input::placeholder {
  color: #aaa;
}

.front-object-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.front-object-cards .card-image {
  height: 211px;
}

.front-object-cards .card-content {
  min-height: 190px;
}

.front-more {
  display: block;
  width: 201px;
  height: 47px;
  margin: 40px auto 0;
  border: 1px solid #aaa;
  color: #aaa;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* Stories */

.front-stories {
  width: 100%;
  max-width: none;
  overflow: hidden;
  background: url("../assets/stories-line.svg") center / 2000px 600px no-repeat;
}

.front-stories .front-section__title {
  width: 1068px;
  max-width: calc(100% - 80px);
  margin-right: auto;
  margin-left: auto;
}

.front-horizontal-list {
  display: flex;
  gap: 59px;
  width: max-content;
  margin-left: max(20px, calc((100% - 1068px) / 2));
}

.front-story {
  flex: 0 0 317px;
  width: 317px;
}

.front-story img {
  display: block;
  width: 317px;
  height: 317px;
  border-radius: 50%;
  object-fit: cover;
}

.front-story h3 {
  margin: 28px 0 14px;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 27px;
}

.front-story p {
  margin: 0 0 20px;
  color: #aaa;
  font-size: 16px;
  line-height: 18px;
}

.front-story p.more {
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 600;
}

/* Promo blocks */

.front-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  width: 1286px;
  max-width: calc(100% - 80px);
  margin: 120px auto 0;
}

.front-promo {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 220px;
  padding: 54px 110px;
  color: var(--dark-green);
  background: var(--footer-bg);
}

.front-promo--partner {
  color: #fff;
  background: var(--coral);
}

.front-promo > img {
  flex: 0 0 55px;
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.front-promo h2 {
  margin: 0 0 14px;
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
}

.front-promo p {
  margin: 0;
  font-size: 14px;
  line-height: 17px;
}

/* News */

.front-news-list {
  border-top: 1px solid var(--line);
}

.front-news-item {
  display: grid;
  grid-template-columns: 1fr 307px;
  gap: 20px;
  min-height: 231px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.front-news-item__content {
  padding-top: 31px;
}

.front-news-item time {
  display: block;
  margin-bottom: 18px;
  color: #aaa;
  font-size: 12px;
  line-height: 15px;
}

.front-news-item h3 {
  max-width: 700px;
  margin: 0;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  text-transform: uppercase;
}

.front-news-item > img {
  display: block;
  width: 307px;
  height: 211px;
  object-fit: cover;
}

/* Partners */

.front-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px 42px;
  align-items: center;
}

.front-partners-grid img {
  display: block;
  width: 100%;
  height: 125px;
  object-fit: contain;
}

/* Media */

.front-media-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.front-media-list article {
  min-width: 0;
}

.front-media-list article > img {
  display: block;
  width: 100%;
  height: 70px;
  margin-bottom: 24px;
  object-fit: contain;
  object-position: left center;
}

.front-media-list time {
  display: block;
  margin-bottom: 18px;
  color: #aaa;
  font-size: 12px;
}

.front-media-list h3 {
  margin: 0 0 18px;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  text-transform: uppercase;
}

.front-media-list p {
  margin: 0;
  color: #aaa;
  font-size: 16px;
  line-height: 18px;
}

/* Support */

.front-support {
  display: grid;
  grid-template-columns: 524px 505px;
  gap: 40px;
  width: 1068px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
  padding: 120px 0;
}

.front-support__description h2 {
  margin: 0;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.16;
}

.front-support__description p {
  width: 470px;
  max-width: 100%;
  margin: 45px 0 0;
  color: #aaa;
  font-size: 16px;
  line-height: 19px;
}

.front-support__image {
  display: block;
  width: 100%;
  height: 380px;
  margin-top: 58px;
  object-fit: cover;
}

.front-support .support-form {
  width: 505px;
}

/* Mobile */

@media (max-width: 767px) {
  .front-page {
    padding-top: 0;
  }

  .front-page .site-header {
    height: 58px;
  }

  .front-page .site-header__inner {
    height: 58px;
  }

  .front-page .mobile-back {
    display: block;
  }

  .front-page .mobile-back img {
    content: url("../assets/Menu.svg");
    filter: brightness(0) invert(1);
  }

  .front-page .header-logo img {
    filter: brightness(0) invert(1);
  }

  .front-page .hero {
    height: 640px;
    background-position: 54% center;
  }

  .front-hero__logo {
    top: 184px;
    width: 184px;
    height: 230px;
    padding: 30px 19px 0;
    border-width: 4px;
  }

  .front-hero__logo img {
    height: 145px;
  }

  .front-hero__logo span {
    margin-top: 10px;
    font-size: 6px;
    line-height: 7px;
  }

  .front-hero__icons {
    top: 434px;
    gap: 8px;
  }

  .front-hero__icons img {
    width: 28px;
    height: 28px;
  }

  .front-about {
    display: block;
    min-height: 0;
  }

  .front-about__photo {
    width: 100%;
    height: 230px;
  }

  .front-about__content {
    width: 100%;
    max-width: none;
    padding: 53px 20px 80px;
  }

  .front-about__logo {
    width: 155px;
    height: 110px;
    margin-bottom: 58px;
  }

  .front-about__text {
    margin-bottom: 67px;
    font-size: 14px;
    line-height: 17px;
  }

  .front-stats {
    grid-template-columns: 1fr 1fr;
    gap: 57px 30px;
  }

  .front-stat strong {
    font-size: 62px;
  }

  .front-stat span {
    font-size: 14px;
    line-height: 17px;
  }

  .front-gallery {
    grid-template-columns: 320px 320px;
    width: 100%;
    height: 420px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .front-gallery img {
    width: 320px;
    height: 420px;
  }

  .front-section {
    width: 100%;
    max-width: none;
    padding: 80px 20px 0;
  }

  .front-section__title {
    margin-bottom: 18px;
    font-size: 32px;
    line-height: 38px;
  }

  .front-section__title span {
    font-size: 36px;
  }

  .front-map {
    width: calc(100% + 40px);
    height: 470px;
    margin-left: -20px;
  }

  .front-map__counter {
    top: 244px;
    left: 47%;
  }

  .front-search {
    height: 49px;
  }

  .front-object-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .front-object-cards .card-image {
    height: 250px;
  }

  .front-object-cards .card-content {
    min-height: 0;
  }

  .front-stories {
    padding-right: 0;
    padding-left: 0;
  }

  .front-stories .front-section__title {
    width: auto;
    max-width: none;
    margin-right: 20px;
    margin-left: 20px;
  }

  .front-horizontal-list {
    gap: 30px;
    margin-left: 20px;
  }

  .front-story {
    flex-basis: 238px;
    width: 238px;
  }

  .front-story img {
    width: 238px;
    height: 238px;
  }

  .front-story h3 {
    margin-top: 22px;
    font-size: 21px;
    line-height: 26px;
  }

  .front-story p {
    font-size: 14px;
    line-height: 17px;
  }

  .front-story a {
    font-size: 12px;
  }

  .front-promos {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 80px;
  }

  .front-promo {
    min-height: 220px;
    padding: 58px 20px;
  }

  .front-news-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 20px 0 10px;
  }

  .front-news-item__content {
    padding-top: 0;
  }

  .front-news-item h3 {
    font-size: 22px;
    line-height: 30px;
  }

  .front-news-item > img {
    width: 100%;
    height: 220px;
  }

  .front-partners-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .front-partners-grid img {
    height: 95px;
  }

  .front-media-list {
    display: flex;
    width: max-content;
    gap: 30px;
  }

  .front-media-list article {
    width: 238px;
    flex: 0 0 238px;
  }

  .front-media-list article > img {
    height: 58px;
  }

  .front-media-list h3 {
    font-size: 21px;
    line-height: 28px;
  }

  .front-media-list p {
    font-size: 14px;
    line-height: 17px;
  }

  .front-support {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    padding: 80px 20px;
  }

  .front-support__description h2 {
    font-size: 32px;
    line-height: 38px;
  }

  .front-support__description p {
    width: 100%;
    margin-top: 20px;
    font-size: 14px;
    line-height: 17px;
  }

  .front-support__image {
    height: 240px;
    margin-top: 30px;
  }

  .front-support .support-form {
    width: 100%;
    margin-top: 29px;
  }
}

/* ==============================================================
   FRONT PAGE HEADER STATES
============================================================== */

.front-page {
  padding-top: 0;
  /*overflow-x: hidden;*/
}

.front-page .site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: transparent;
  transition:
    background-color .25s ease,
    box-shadow .25s ease;
}

.front-page .site-header__inner {
  transition: color .25s ease;
}

.front-page .header-logo img,
.front-page .menu-button img,
.front-page .mobile-back img,
.front-page .header-social img {
  filter: brightness(0) invert(1);
  transition: filter .25s ease;
}

.front-page .header-nav a {
  color: #fff;
  transition: color .25s ease;
}

.front-page .header-actions .button--outline {
  color: #fff;
  border-color: #fff;
  transition:
    color .25s ease,
    border-color .25s ease,
    background-color .25s ease;
}

.front-page .header-actions .button--filled {
  color: var(--coral);
  background: #fff;
  transition:
    color .25s ease,
    background-color .25s ease;
}

/* Состояние меню после перехода к первой секции после hero */

.front-page .site-header.front-header--scrolled {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

.front-page .site-header.front-header--scrolled
  .header-logo img,
.front-page .site-header.front-header--scrolled
  .menu-button img,
.front-page .site-header.front-header--scrolled
  .mobile-back img,
.front-page .site-header.front-header--scrolled
  .header-social img {
  filter: none;
}

.front-page .site-header.front-header--scrolled .header-nav a {
  color: #111;
}

.front-page .site-header.front-header--scrolled
  .header-actions .button--outline {
  color: var(--coral);
  border-color: var(--coral);
  background: transparent;
}

.front-page .site-header.front-header--scrolled
  .header-actions .button--filled {
  color: #fff;
  background: var(--coral);
}

/* Десктопная шапка поверх hero */

@media (min-width: 768px) {
  .front-page .site-header {
    height: 57px;
  }

  .front-page .site-header__inner {
    height: 57px;
  }
}

/* Мобильная шапка */

@media (max-width: 767px) {
  .front-page .site-header {
    height: 58px;
  }

  .front-page .site-header__inner {
    position: relative;
    width: 100%;
    height: 58px;
    padding: 0 20px;
  }

  .front-page .mobile-back {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: block;
    width: 21px;
    height: 19px;
    margin: 0;
    padding: 0;
  }

  .front-page .mobile-back img {
    display: block;
    width: 21px;
    height: 19px;
  }

  .front-page .menu-button {
    display: none;
  }

  .front-page .header-logo,
  .front-page .header-logo img {
    display: block;
    width: 56px;
    height: 40px;
  }

  .front-page .header-social {
    position: absolute;
    top: 14px;
    right: 20px;
    display: flex;
    gap: 10px;
    margin: 0;
  }

  .front-page .header-social a,
  .front-page .header-social img {
    display: block;
    width: 31px;
    height: 31px;
  }

  .front-page .header-nav,
  .front-page .header-actions {
    display: none;
  }

  .front-page .site-header.front-header--scrolled
    .mobile-back img {
    filter: none;
  }

  .front-page .site-header.front-header--scrolled
    .header-social img {
    filter: none;
  }
}

/* ==============================================================
   FRONT HERO
============================================================== */

.front-page .front-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 0;
  background-position: center center;
  background-size: cover;
}

.front-page .front-hero .hero__inner {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
}

.front-page .front-hero__composition {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 333px;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}

/* На случай, если базовые стили .hero влияют на старую композицию */

.front-page .front-hero .hero-title,
.front-page .front-hero .hero-description,
.front-page .front-hero .hero-back,
.front-page .front-hero__logo,
.front-page .front-hero__icons {
  display: none;
}

@media (max-width: 767px) {
  .front-page .front-hero {
    height: 100vh;
    min-height: 0;
    background-position: 54% center;
  }

  .front-page .front-hero__composition {
    width: 184px;
  }
}

/* ==============================================================
   FRONT HERO MEDIA
============================================================== */

.front-page .front-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: none;
}

.front-page .front-hero .hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  height: 100%;
}

.front-page .front-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #111;
}

.front-page .front-hero__image,
.front-page .front-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.front-page .front-hero__image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.front-page .front-hero__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
}

.front-page .front-hero.front-hero--video
  .front-hero__image {
  display: none;
}

.front-page .front-hero.front-hero--video
  .front-hero__video {
  display: block;
}

.front-page .front-hero__composition {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 333px;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}

/* Отключение старого CSS-фона и старой композиции */

.front-page .front-hero {
  background-image: none;
}

.front-page .front-hero .hero-title,
.front-page .front-hero .hero-description,
.front-page .front-hero .hero-back,
.front-page .front-hero__logo,
.front-page .front-hero__icons {
  display: none;
}

@media (max-width: 767px) {
  .front-page .front-hero {
    height: 100vh;
    min-height: 0;
  }

  .front-page .front-hero__image,
  .front-page .front-hero__video {
    object-position: 54% center;
  }

  .front-page .front-hero__composition {
    width: 184px;
  }
}

/* ==============================================================
   FRONT PAGE FULLSCREEN MENU
============================================================== */

.front-menu-close {
  display: none;
  width: 31px;
  height: 31px;
  margin-left: 49px;
  padding: 0;
  border: 0;
  background: transparent;
}

.front-menu-close img {
  display: block;
  width: 31px;
  height: 31px;
}

.front-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  background: #fff;
  pointer-events: none;
  transition:
    opacity .3s ease,
    visibility 0s linear .3s;
}

.front-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity .3s ease,
    visibility 0s linear 0s;
}

.front-menu__content {
  display: grid;
  grid-template-columns: 524px 1fr;
  gap: 40px;
  width: 1068px;
  max-width: calc(100% - 80px);
  height: 100%;
  margin: 0 auto;
  padding-top: 80px;
}

.front-menu__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-top: 47px;
}

.front-menu__links a {
  display: inline-block;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  white-space: nowrap;
}

.front-menu__links a:first-child {
  border-bottom: 1px dotted var(--coral);
}

.front-menu__image {
  width: 100%;
  height: 609px;
  overflow: hidden;
}

.front-menu__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Состояние шапки при открытом меню */

body.front-menu-is-open .site-header {
  background: #fff;
  box-shadow: none;
}

body.front-menu-is-open .header-logo img,
body.front-menu-is-open .menu-button img,
body.front-menu-is-open .mobile-back img,
body.front-menu-is-open .header-social img {
  filter: none;
}

.front-page.front-menu-is-open .header-nav a {
  color: #111;
}

body.front-menu-is-open
  .header-actions .button--outline {
  color: var(--coral);
  border-color: var(--coral);
  background: transparent;
}

body.front-menu-is-open
  .header-actions .button--filled {
  color: #fff;
  background: var(--coral);
}

body.front-menu-is-open .menu-button,
body.front-menu-is-open .mobile-back {
  display: none;
}

body.front-menu-is-open .front-menu-close {
  display: block;
}

body.front-menu-is-open {
  overflow: hidden;
}

/* Desktop */

@media (min-width: 768px) {
  .front-menu-close {
    flex: 0 0 31px;
  }

  .front-menu__content {
    grid-template-columns: 395px 742px;
    gap: 40px;
    width: 1068px;
    max-width: calc(100% - 80px);
    padding-top: 80px;
  }

  .front-menu__links {
    padding-top: 47px;
  }

  .front-menu__image {
    height: 609px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .front-menu {
    top: 58px;
    bottom: 0;
  }

  .front-menu__content {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 59px 20px 40px;
  }

  .front-menu__links {
    gap: 32px;
    padding: 0;
  }

  .front-menu__links a {
    font-size: 22px;
    line-height: 29px;
  }

  .front-menu__image {
    display: none;
  }

  .front-menu-close {
    position: absolute;
    top: 19px;
    left: 149px;
    z-index: 2;
    display: none;
    width: 21px;
    height: 21px;
    margin: 0;
  }

  .front-menu-close img {
    display: block;
    width: 21px;
    height: 21px;
  }

  .front-page.front-menu-is-open .front-menu-close {
    display: block;
  }
}

/* ==============================================================
   FRONT PAGE FULLSCREEN MENU
============================================================== */

.front-menu-close {
  display: none;
  width: 31px;
  height: 31px;
  margin-left: 49px;
  padding: 0;
  border: 0;
  background: transparent;
}

.front-menu-close img {
  display: block;
  width: 31px;
  height: 31px;
}

.front-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  background: #fff;
  pointer-events: none;
  transition:
    opacity .3s ease,
    visibility 0s linear .3s;
}

.front-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity .3s ease,
    visibility 0s linear 0s;
}

.front-menu__content {
  display: grid;
  grid-template-columns: 524px 1fr;
  gap: 40px;
  width: 1068px;
  max-width: calc(100% - 80px);
  height: 100%;
  margin: 0 auto;
  padding-top: 80px;
}

.front-menu__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-top: 47px;
}

.front-menu__links a {
  display: inline-block;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  white-space: nowrap;
}

.front-menu__links a:first-child {
  border-bottom: 1px dotted var(--coral);
}

.front-menu__image {
  width: 100%;
  height: 609px;
  overflow: hidden;
}

.front-menu__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Состояние шапки при открытом меню */

.front-page.front-menu-is-open .site-header {
  background: #fff;
  box-shadow: none;
}

.front-page.front-menu-is-open .header-logo img,
.front-page.front-menu-is-open .menu-button img,
.front-page.front-menu-is-open .mobile-back img,
.front-page.front-menu-is-open .header-social img {
  filter: none;
}

.front-page.front-menu-is-open .header-nav a {
  color: #111;
}

.front-page.front-menu-is-open
  .header-actions .button--outline {
  color: var(--coral);
  border-color: var(--coral);
  background: transparent;
}

.front-page.front-menu-is-open
  .header-actions .button--filled {
  color: #fff;
  background: var(--coral);
}

.front-page.front-menu-is-open .menu-button,
.front-page.front-menu-is-open .mobile-back {
  display: none;
}

.front-page.front-menu-is-open .front-menu-close {
  display: block;
}

.front-page.front-menu-is-open {
  overflow: hidden;
}

/* Desktop */

@media (min-width: 768px) {
  .front-menu-close {
    flex: 0 0 31px;
  }

  .front-menu__content {
    grid-template-columns: 395px 742px;
    gap: 40px;
    width: 1068px;
    max-width: calc(100% - 80px);
    padding-top: 80px;
  }

  .front-menu__links {
    padding-top: 47px;
  }

  .front-menu__image {
    height: 609px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .front-menu {
    top: 58px;
    bottom: 0;
  }

  .front-menu__content {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 59px 20px 40px;
  }

  .front-menu__links {
    gap: 32px;
    padding: 0;
  }

  .front-menu__links a {
    font-size: 22px;
    line-height: 29px;
  }

  .front-menu__image {
    display: none;
  }

  .front-menu-close {
    position: absolute;
    top: 19px;
    left: 149px;
    z-index: 2;
    display: none;
    width: 21px;
    height: 21px;
    margin: 0;
  }

  .front-menu-close img {
    display: block;
    width: 21px;
    height: 21px;
  }

  .front-page.front-menu-is-open .front-menu-close {
    display: block;
  }
}


/* ==============================================================
   ГЛАВНАЯ СТРАНИЦА (index.html)
   Правила перенесены из fp-styles.css с сохранением исходного
   порядка: раньше этот файл подключался после styles.css,
   поэтому секция идёт последней — каскад не меняется.
   Удалены только те дубли, у которых селектор нигде более
   не встречается с другими значениями (27 правил); остальные
   повторы сохранены намеренно: их позиция в конце файла
   влияет на каскад (например, мобильные правила .front-map
   должны идти после одноимённых десктопных).
   Все селекторы секции ограничены областью .front-*, поэтому
   на остальные страницы они не влияют.
============================================================== */

/* ==============================================================
   FRONT PAGE
============================================================== */

.front-page {
  min-width: 320px;
  padding-top: 0;
  /*overflow-x: hidden;*/
}

.front-page .site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: 57px;
  background: transparent;
  transition:
  background-color .3s ease,
  box-shadow .3s ease;
}

.front-page .site-header__inner {
  position: relative;
  z-index: 1;
}

.front-page .header-logo img, .front-page .menu-button img, .front-page .mobile-back img, .front-page .header-social img {
  filter: brightness(0) invert(1);
  transition: filter .3s ease;
}

.front-page .header-nav a {
  color: #fff;
  transition: color .3s ease;
}

.front-page .header-actions .button--outline {
  color: #fff;
  border-color: #fff;
  transition:
  color .3s ease,
  border-color .3s ease,
  background-color .3s ease;
}

.front-page .header-actions .button--filled {
  color: var(--coral);
  background: #fff;
  transition:
  color .3s ease,
  background-color .3s ease;
}

.front-page .site-header.front-header--scrolled {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

/* Hero */

.front-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: #111;
}

.front-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.front-hero__image, .front-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.front-hero__image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.front-hero__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
}

.front-hero.front-hero--video .front-hero__image {
  display: none;
}

.front-hero.front-hero--video .front-hero__video {
  display: block;
}

.front-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.front-hero__composition {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 333px;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}

/* Полноэкранное меню */

.front-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  background: #fff;
  pointer-events: none;
  transition:
  opacity .35s ease,
  visibility 0s linear .35s;
}

.front-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
  opacity .35s ease,
  visibility 0s linear 0s;
}

.front-menu__content {
  display: grid;
  grid-template-columns: 395px 742px;
  gap: 40px;
  width: 1177px;
  max-width: calc(100% - 80px);
  height: 100%;
  margin: 0 auto;
  padding-top: 80px;
}

.front-menu__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-top: 47px;
}

.front-menu__links a {
  display: inline-block;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
  white-space: nowrap;
}

.front-menu__image {
  width: 742px;
  height: 609px;
  overflow: hidden;
}

.front-menu-close {
  display: none;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  margin-left: 49px;
  padding: 0;
  border: 0;
  background: transparent;
}

.front-menu-close img {
  display: block;
  width: 31px;
  height: 31px;
}

body.front-menu-scroll-locked {
  overflow: hidden;
}

/* About */

.front-about {
  display: grid;
  grid-template-columns: 41.25% 58.75%;
  min-height: 768px;
}

.front-about__photo {
  height: 768px;
  overflow: hidden;
}

.front-about__content {
  width: 524px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
  padding-top: 88px;
}

.front-about__logo {
  display: block;
  width: 270px;
  height: 190px;
  margin: 0 auto 58px;
  object-fit: contain;
}

.front-about__text {
  margin: 0 0 76px;
  font-size: 16px;
  line-height: 19px;
}

.front-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.front-stat strong {
  display: block;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
}

.front-stat span {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  line-height: 17px;
}

/* Gallery */

.front-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  height: 461px;
  overflow: hidden;
}

.front-gallery img {
  display: block;
  width: 100%;
  height: 461px;
  object-fit: cover;
}

/* Sections */

.front-section {
  width: 1068px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
  padding-top: 120px;
}

.front-section__title {
  margin: 0 0 24px;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
}

.front-section__title span {
  font-family: Arial, sans-serif;
  font-size: 64px;
  line-height: 0;
}

/* Map */

.front-map {
  position: relative;
  width: 100vw;
  height: 600px;
  margin-left: calc((1068px - 100vw) / 2);
  overflow: hidden;
  background:#e5dfd3;
}

.front-map__counter {
  position: absolute;
  top: 244px;
  left: 25.4%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 14px;
}

/* Objects */

.front-search {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 49px;
  margin-bottom: 20px;
  padding: 0 20px;
  border: 1px solid var(--line);
}

.front-object-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.front-object-cards .card-image {
  height: 211px;
}

.front-object-cards .card-content {
  min-height: 190px;
}

/* Stories */

.front-stories {
  width: 100%;
  max-width: none;
  overflow: hidden;
  background:
  url("../assets/stories-line.svg")
  center / 2000px 600px
  no-repeat;
}

.front-stories .front-section__title {
  width: 1068px;
  max-width: calc(100% - 80px);
  margin-right: auto;
  margin-left: auto;
}

.front-horizontal-list {
  display: flex;
  gap: 59px;
  width: max-content;
  margin-left: max(
  20px,
  calc((100% - 1068px) / 2)
  );
}

.front-story {
  flex: 0 0 317px;
  width: 317px;
}

.front-story img {
  display: block;
  width: 317px;
  height: 317px;
  border-radius: 50%;
  object-fit: cover;
}

.front-story h3 {
  margin: 28px 0 14px;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 27px;
}

.front-story p {
  margin: 0 0 20px;
  color: #aaa;
  font-size: 16px;
  line-height: 18px;
}

/* Promos */

.front-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  width: 1286px;
  max-width: calc(100% - 80px);
  margin: 120px auto 0;
}

.front-promo {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 220px;
  padding: 54px 110px;
  color: var(--dark-green);
  background: var(--footer-bg);
}

/* News */

.front-news-item {
  display: grid;
  grid-template-columns: 1fr 307px;
  gap: 20px;
  min-height: 231px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.front-news-item__content {
  padding-top: 31px;
}

.front-news-item h3 {
  max-width: 700px;
  margin: 0;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
}

.front-news-item > img {
  display: block;
  width: 307px;
  height: 211px;
  object-fit: cover;
}

/* Partners and media */

.front-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px 42px;
  align-items: center;
}

.front-partners-grid img {
  display: block;
  width: 100%;
  height: 125px;
  object-fit: contain;
}

.front-media-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.front-media-list article {
  min-width: 0;
}

.front-media-list article > img {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 24px;
  margin-top: 24px;
  object-fit: contain;
  object-position: left center;
}

.front-media-list h3 {
  margin: 0 0 18px;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
}

.front-media-list p {
  margin: 0;
  color: #aaa;
  font-size: 16px;
  line-height: 18px;
}

/* Support */

.front-support {
  display: grid;
  grid-template-columns: 524px 505px;
  gap: 40px;
  width: 1068px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
  padding: 120px 0;
}

.front-support__description h2 {
  margin: 0;
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.16;
}

.front-support__description p {
  width: 470px;
  max-width: 100%;
  margin: 45px 0 0;
  color: #aaa;
  font-size: 16px;
  line-height: 19px;
}

.front-support__image {
  display: block;
  width: 100%;
  height: 380px;
  margin-top: 58px;
  object-fit: cover;
}

.front-support .support-form {
  width: 505px;
}

/* Mobile */

@media (max-width: 767px) {
  body.front-menu-scroll-locked {
    position: fixed;
    width: 100%;
  }

  .front-page .site-header {
    height: 58px;
  }

  .front-page .site-header__inner {
    height: 58px;
    padding: 0 20px;
  }

  .front-page .mobile-back {
    position: absolute;
    top: 19px;
    left: 20px;
    z-index: 2;
    display: block;
    width: 21px;
    height: 19px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .front-page .mobile-back img {
    display: block;
    width: 21px;
    height: 19px;
  }

  .front-page .header-logo, .front-page .header-logo img {
    display: block;
    width: 56px;
    height: 40px;
  }

  .front-page .header-social {
    position: absolute;
    top: 14px;
    right: 20px;
    display: flex;
    gap: 10px;
    margin: 0;
  }

  .front-page .header-social a, .front-page .header-social img {
    display: block;
    width: 31px;
    height: 31px;
  }

  .front-menu {
    top: 0;
    bottom: 0;
  }

  .front-menu__content {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 117px 20px 40px;
  }

  .front-menu__links {
    gap: 32px;
    padding: 0;
  }

  .front-menu__links a {
    font-size: 22px;
    line-height: 29px;
  }

  .front-menu__image {
    display: none;
  }

  .front-menu-close {
    position: absolute;
    top: 19px;
    left: 149px;
    z-index: 1001;
    display: none;
    width: 21px;
    height: 21px;
    margin: 0;
  }

  .front-menu-close img {
    width: 21px;
    height: 21px;
  }

  .front-page.front-menu-is-open .header-logo img, .front-page.front-menu-is-open .header-social img {
    filter: none;
  }

  .front-hero {
    height: 100vh;
  }

  .front-hero__image, .front-hero__video {
    object-position: 54% center;
  }

  .front-hero__composition {
    width: 184px;
  }

  .front-about {
    display: block;
    min-height: 0;
  }

  .front-about__photo {
    width: 100%;
    height: 230px;
  }

  .front-about__content {
    width: 100%;
    max-width: none;
    padding: 53px 20px 80px;
  }

  .front-about__logo {
    width: 155px;
    height: 110px;
    margin-bottom: 58px;
  }

  .front-about__text {
    margin-bottom: 67px;
    font-size: 14px;
    line-height: 17px;
  }

  .front-stats {
    grid-template-columns: 1fr 1fr;
    gap: 57px 30px;
  }

  .front-stat strong {
    font-size: 62px;
  }

  .front-gallery {
    display: flex;
    width: 100%;
    height: 420px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .front-gallery img {
    flex: 0 0 320px;
    width: 320px;
    height: 420px;
  }

  .front-section {
    width: 100%;
    max-width: none;
    padding: 80px 20px 0;
  }

  .front-section__title {
    margin-bottom: 18px;
    font-size: 32px;
    line-height: 38px;
  }

  .front-section__title span {
    font-size: 36px;
  }

  .front-map {
    width: calc(100% + 40px);
    height: 470px;
    margin-left: -20px;
  }

  .front-map__counter {
    top: 244px;
    left: 47%;
  }

  .front-object-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .front-object-cards .card-image {
    height: 250px;
  }

  .front-object-cards .card-content {
    min-height: 0;
  }

  .front-stories {
    padding-right: 0;
    padding-left: 0;
  }

  .front-stories .front-section__title {
    width: auto;
    max-width: none;
    margin-right: 20px;
    margin-left: 20px;
  }

  .front-horizontal-list {
    gap: 30px;
    margin-left: 20px;
  }

  .front-story {
    flex: 0 0 238px;
    width: 238px;
  }

  .front-story img {
    width: 238px;
    height: 238px;
  }

  .front-story h3 {
    margin-top: 22px;
    font-size: 21px;
    line-height: 26px;
  }

  .front-story p {
    font-size: 14px;
    line-height: 17px;
  }

  .front-story a {
    font-size: 12px;
  }

  .front-promos {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 80px;
  }

  .front-promo {
    min-height: 220px;
    padding: 58px 20px;
  }

  .front-news-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 20px 0 10px;
  }

  .front-news-item__content {
    padding-top: 0;
  }

  .front-news-item h3 {
    font-size: 22px;
    line-height: 30px;
  }

  .front-news-item > img {
    width: 100%;
    height: 220px;
  }

  .front-partners-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .front-partners-grid img {
    height: 95px;
  }

  .front-media-list {
    display: flex;
    width: max-content;
    gap: 30px;
  }

  .front-media-list article {
    flex: 0 0 238px;
    width: 238px;
  }

  .front-media-list article > img {
    height: 58px;
  }

  .front-media-list h3 {
    font-size: 21px;
    line-height: 28px;
  }

  .front-media-list p {
    font-size: 14px;
    line-height: 17px;
  }

  .front-support {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    padding: 80px 20px;
  }

  .front-support__description h2 {
    font-size: 32px;
    line-height: 38px;
  }

  .front-support__description p {
    width: 100%;
    margin-top: 20px;
    font-size: 14px;
    line-height: 17px;
  }

  .front-support__image {
    height: 240px;
    margin-top: 30px;
  }

  .front-support .support-form {
    width: 100%;
    margin-top: 29px;
  }
}

/* ==============================================================
   FRONT ABOUT — UPDATED
============================================================== */

.front-page .front-about__content {
  text-align: left;
}

.front-page .front-about__logo {
  display: block;
  width: 270px;
  height: 190px;
  margin: 0 0 58px;
  object-fit: contain;
  object-position: left center;
}

.front-page .front-about__text {
  text-align: left;
}

.front-page .front-stats {
  text-align: left; display:flex;
}
.front-page .front-stats .front-stat:not(:last-child) {
	margin-right:20px;
}

@media (max-width: 767px) {
  .front-page .front-about__content {
    text-align: left;
  }

  .front-page .front-about__logo {
    width: 155px;
    height: 110px;
    margin: 0 0 58px;
    object-position: left center;
  }

  .front-page .front-about__text, .front-page .front-stats {
    text-align: left;
  }
	.front-page .front-stats {
flex-wrap: wrap;
	}
}

/* ==============================================================
   FRONT GALLERY SLIDER
============================================================== */

.front-page .front-gallery {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin-top: 120px;
  overflow: visible;
  background: #fff;
}

.front-page .front-gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1068px;
  max-width: calc(100% - 80px);
  min-height: 31px;
  margin: 0 auto 22px;
}

.front-page .front-gallery__label {
  color: var(--coral);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  line-height: 29px;
}

.front-page .front-gallery__controls {
  display: flex;
  gap: 10px;
}

.front-page .front-gallery__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid #aaa;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition:
  background-color .2s ease,
  border-color .2s ease,
  opacity .2s ease;
}

.front-page .front-gallery__arrow:hover {
  border-color: var(--coral);
  background: #fff7f5;
}

.front-page .front-gallery__arrow:disabled {
  opacity: .35;
  cursor: default;
}

.front-page .front-gallery__arrow img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.front-page .front-gallery__viewport {
  width: 100%;
  overflow: hidden;
}

.front-page .front-gallery__track {
  display: flex;
  gap: 1px;
  width: 100%;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.front-page .front-gallery__slide {
  position: relative;
  flex: 0 0 calc((100% - 2px) / 3);
  width: calc((100% - 2px) / 3);
  height: 461px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #ddd;
  cursor: pointer;
}

.front-page .front-gallery__image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.front-page .front-gallery__image-before, .front-page .front-gallery__image-after {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .55s ease;
}

.front-page .front-gallery__image-before {
  z-index: 1;
  opacity: 0;
}

.front-page .front-gallery__image-after {
  z-index: 2;
  opacity: 1;
}

/*
  При наведении показываем фотографию «до».
  На сенсорных устройствах hover не используется,
  поэтому там остаётся фотография «после».
*/

@media (hover: hover) and (pointer: fine) {
  .front-page .front-gallery__slide:hover .front-gallery__image-before {
    opacity: 1;
  }

  .front-page .front-gallery__slide:hover .front-gallery__image-after {
    opacity: 0;
  }
}

/* Индикатор возможности открыть сравнение */

.front-page .front-gallery__slide::after {
  position: absolute;
  right: 15px;
  bottom: 15px;
  z-index: 3;
  padding: 7px 10px;
  color: #fff;
  background: rgba(0, 0, 0, .48);
  content: "СРАВНИТЬ";
  font-size: 10px;
  line-height: 12px;
  opacity: 0;
  transition: opacity .25s ease;
}

.front-page .front-gallery__slide:hover::after, .front-page .front-gallery__slide:focus-visible::after {
  opacity: 1;
}

/* ==============================================================
   BEFORE / AFTER MODAL
============================================================== */

.front-comparison {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  padding: 40px;
  background: rgba(0, 0, 0, .82);
  opacity: 0;
  pointer-events: none;
  transition:
  opacity .3s ease,
  visibility 0s linear .3s;
}

.front-comparison.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
  opacity .3s ease,
  visibility 0s linear 0s;
}

.front-comparison__window {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 80px);
}

.front-comparison__title {
  margin: 0 0 15px;
  color: #fff;
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
}

.front-comparison__viewport {
  position: relative;
  width: 100%;
  height: min(680px, calc(100vh - 180px));
  overflow: hidden;
  background: #222;
}

.front-comparison__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.front-comparison__after {
  z-index: 1;
}

.front-comparison__before {
  z-index: 2;
  width: 50%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  clip-path: inset(0 0 0 0);
}

.front-comparison__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 2px;
  background: #fff;
  pointer-events: none;
  transform: translateX(-1px);
}

.front-comparison__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.front-comparison__labels {
  position: absolute;
  right: 15px;
  bottom: 15px;
  left: 15px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.front-comparison__range {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.front-comparison__close {
  position: absolute;
  top: -45px;
  right: 0;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 25px;
  font-weight: 300;
  line-height: 25px;
  cursor: pointer;
}

/* В момент открытия модального окна блокируем прокрутку */

body.front-comparison-scroll-locked {
  overflow: hidden;
}

@media (max-width: 767px) {
  .front-page .front-gallery {
    margin-top: 80px;
  }

  .front-page .front-gallery__header {
    width: 100%;
    max-width: none;
    margin-bottom: 18px;
    padding: 0 20px;
  }

  .front-page .front-gallery__label {
    font-size: 18px;
    line-height: 24px;
  }

  .front-page .front-gallery__viewport {
    width: 100%;
  }

  .front-page .front-gallery__track {
    gap: 10px;
    padding-left: 20px;
  }

  .front-page .front-gallery__slide {
    flex: 0 0 calc(100vw - 60px);
    width: calc(100vw - 60px);
    height: 420px;
  }

  .front-page .front-gallery__slide::after {
    opacity: 1;
  }

  .front-comparison {
    padding: 20px;
  }

  .front-comparison__window {
    width: 100%;
    max-height: calc(100vh - 40px);
  }

  .front-comparison__title {
    padding-right: 45px;
    font-size: 18px;
    line-height: 24px;
  }

  .front-comparison__viewport {
    height: min(70vh, 520px);
  }

  .front-comparison__close {
    top: -2px;
    right: 0;
  }
}

/* ==============================================================
   FRONT GALLERY — UPDATED
============================================================== */

.front-page .front-gallery {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin-top: 120px;
  overflow: visible;
  background: #fff;
}

.front-page .front-gallery__header {
  position: absolute;
  top: -53px;
  right: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 31px;
  margin: 0;
  pointer-events: none;
}

.front-page .front-gallery__controls {
  position: absolute;
  right: 40px;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.front-page .front-gallery__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity .2s ease;
}

.front-page .front-gallery__arrow:hover {
  background: transparent;
  opacity: .65;
}

.front-page .front-gallery__arrow:disabled {
  opacity: .3;
  cursor: default;
}

.front-page .front-gallery__arrow img {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.front-page .front-gallery__viewport {
  width: 100%;
  overflow: hidden;
}

.front-page .front-gallery__track {
  display: flex;
  gap: 1px;
  width: 100%;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.front-page .front-gallery__slide {
  position: relative;
  flex: 0 0 calc((100% - 2px) / 3);
  width: calc((100% - 2px) / 3);
  height: 461px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #ddd;
  cursor: pointer;
}

.front-page .front-gallery__image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.front-page .front-gallery__image-before, .front-page .front-gallery__image-after {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .55s ease;
}

.front-page .front-gallery__image-before {
  z-index: 1;
  opacity: 0;
}

.front-page .front-gallery__image-after {
  z-index: 2;
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .front-page .front-gallery__slide:hover .front-gallery__image-before {
    opacity: 1;
  }

  .front-page .front-gallery__slide:hover .front-gallery__image-after {
    opacity: 0;
  }
}

/* ==============================================================
   BEFORE / AFTER MODAL — UPDATED
============================================================== */

.front-comparison__title, .front-comparison__labels {
  display: none;
}

.front-comparison__close {
  position: absolute;
  top: -45px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity .2s ease;
}

.front-comparison__close:hover {
  opacity: .65;
}

.front-comparison__close img {
  display: block;
  width: 31px;
  height: 31px;
}

@media (max-width: 767px) {
  .front-page .front-gallery {
    margin-top: 80px;
  }

  .front-page .front-gallery__header {
    top: -49px;
    height: 31px;
  }

  .front-page .front-gallery__controls {
    right: 20px;
  }

  .front-page .front-gallery__track {
    gap: 10px;
    padding-left: 20px;
  }

  .front-page .front-gallery__slide {
    flex: 0 0 calc(100vw - 60px);
    width: calc(100vw - 60px);
    height: 420px;
  }

  .front-comparison__close {
    top: -2px;
    right: 0;
  }

  .front-comparison__close img {
    width: 21px;
    height: 21px;
  }
}

/* ==============================================================
   FRONT COMPARISON — FIXED IMAGE ALIGNMENT
============================================================== */

.front-comparison {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  overflow: auto;
  padding: 40px;
  background: rgba(0, 0, 0, .86);
  opacity: 0;
  pointer-events: none;
  transition:
  opacity .3s ease,
  visibility 0s linear .3s;
}

.front-comparison.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
  opacity .3s ease,
  visibility 0s linear 0s;
}

.front-comparison__window {
  position: relative;
  display: block;
  width: min(1100px, calc(100vw - 80px));
  max-width: 1100px;
  max-height: calc(100vh - 80px);
}

.front-comparison__viewport {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #222;
  aspect-ratio: var(--comparison-ratio, 16 / 9);
}

/*
  Оба изображения занимают один и тот же контейнер.
  Они не масштабируются в разные области.
*/

.front-comparison__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}

/*
  Изображение «стало» находится снизу.
*/

.front-comparison__after {
  z-index: 1;
}

/*
  Изображение «было» занимает весь контейнер.
  Отображаемая область регулируется через clip-path,
  а не через width.
*/

.front-comparison__before {
  z-index: 2;
  width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  clip-path: inset(0 50% 0 0);
  transition: none;
}

.front-comparison__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 2px;
  background: #fff;
  pointer-events: none;
  transform: translateX(-1px);
}

.front-comparison__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.front-comparison__range {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.front-comparison__close {
  position: absolute;
  top: -45px;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity .2s ease;
}

.front-comparison__close:hover {
  opacity: .65;
}

.front-comparison__close img {
  display: block;
  width: 31px;
  height: 31px;
  margin-top: 20px;
}

/* Надписи и заголовок больше не используются */

.front-comparison__title, .front-comparison__labels {
  display: none;
}

body.front-comparison-scroll-locked {
  overflow: hidden;
}

@media (max-width: 767px) {
  .front-comparison {
    padding: 20px;
  }

  .front-comparison__window {
    width: calc(100vw - 40px);
    max-width: none;
    max-height: calc(100vh - 40px);
  }

  .front-comparison__close {
    top: -2px;
    right: 0;
  }

  .front-comparison__close img {
    width: 21px;
    height: 21px;
  }
}

.front-page .front-gallery {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  margin-top: 120px;
  overflow: visible;
  background: #fff;
}

.front-page .front-gallery__header {
  position: absolute;
  top: -53px;
  right: 0;
  left: 0;
  width: 100%;
  height: 31px;
  margin: 0;
  pointer-events: none;
}

.front-page .front-gallery__controls {
  position: absolute;
  right: 40px;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.front-page .front-gallery__viewport {
  width: 100%;
  overflow: hidden;
}

.front-page .front-gallery__track {
  display: flex;
  gap: 1px;
  width: max-content;
  max-width: none;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.front-page .front-gallery__slide {
  position: relative;
  flex: 0 0 clamp(280px, 32vw, 460px);
  width: clamp(280px, 32vw, 460px);
  height: 461px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #ddd;
  cursor: pointer;
}

@media (max-width: 767px) {
  .front-page .front-gallery {
    margin-top: 80px;
  }

  .front-page .front-gallery__controls {
    right: 20px;
  }

  .front-page .front-gallery__track {
    gap: 10px;
  }

  .front-page .front-gallery__slide {
    flex-basis: calc(100vw - 60px);
    width: calc(100vw - 60px);
    height: 420px;
  }
}

/* ==============================================================
   FRONT STORIES SLIDER
============================================================== */

.front-page .front-stories {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 120px 0 0;
  overflow: hidden;
  background:
  url("../assets/stories-line.svg")
  center / 2000px 600px
  no-repeat;
}

.front-page .front-stories__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1068px;
  max-width: calc(100% - 80px);
  min-height: 64px;
  margin: 0 auto 24px;
}

.front-page .front-stories__header .front-section__title {
  width: auto;
  max-width: none;
  margin: 0;
}

.front-page .front-stories__controls {
  display: flex;
  gap: 10px;
}

.front-page .front-stories__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity .2s ease;
}

.front-page .front-stories__arrow:hover {
  background: transparent;
  opacity: .65;
}

.front-page .front-stories__arrow:disabled {
  opacity: 1;
  cursor: pointer;
}

.front-page .front-stories__arrow img {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.front-page .front-stories__viewport {
  width: 100%;
  overflow: hidden;
}

.front-page .front-stories .front-horizontal-list {
  display: flex;
  gap: 59px;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0;
  transition:
  transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.front-page .front-story {
  flex: 0 0 317px;
  width: 317px;
  min-width: 317px;
}

.front-page .front-story img {
  display: block;
  width: 317px;
  height: 317px;
  border-radius: 50%;
  object-fit: cover;
}

.front-page .front-story h3 {
  margin: 28px 0 14px;
  color: var(--dark-green);
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 27px;
}

.front-page .front-story p {
  margin: 0 0 20px;
  color: #aaa;
  font-size: 16px;
  line-height: 18px;
}

/* ==============================================================
   MOBILE STORIES SLIDER
============================================================== */

@media (max-width: 767px) {
  .front-page .front-stories {
    padding: 80px 0 0;
  }

  .front-page .front-stories__header {
    width: auto;
    max-width: none;
    min-height: 38px;
    margin: 0 20px 22px;
  }

  .front-page .front-stories__header .front-section__title {
    font-size: 32px;
    line-height: 38px;
  }

  .front-page .front-stories__controls {
    gap: 8px;
  }

  .front-page .front-stories__arrow, .front-page .front-stories__arrow img {
    width: 31px;
    height: 31px;
  }

  .front-page .front-stories .front-horizontal-list {
    gap: 30px;
    padding-left: 20px;
  }

  .front-page .front-story {
    flex: 0 0 238px;
    width: 238px;
    min-width: 238px;
  }

  .front-page .front-story img {
    width: 238px;
    height: 238px;
  }

  .front-page .front-story h3 {
    margin-top: 22px;
    font-size: 21px;
    line-height: 26px;
  }

  .front-page .front-story p {
    font-size: 14px;
    line-height: 17px;
  }

  .front-page .front-story a {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .front-page .front-stories .front-horizontal-list {
    gap: 30px;
    padding-left: 20px;
  }
}

@media (min-width: 768px) {
  .front-page .front-stories .front-horizontal-list {
    padding-left: 0;
  }
}

/* ==============================================================
   FRONT PROMOS — IMAGE GRAPHICS
============================================================== */

.front-page .front-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  width: 1286px;
  max-width: calc(100% - 80px);
  margin: 120px auto 0;
}

.front-page .front-promo {
  position: relative;
  display: block;
  min-height: 285px;
  padding: 0;
  overflow: hidden;
  color: var(--dark-green);
  text-decoration: none;
  background: transparent;
}

.front-page .front-promo--partner {
  color: #fff;
  background: transparent;
}

.front-page .front-promo__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front-page .front-promo__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 285px;
  padding: 54px 110px;
}

.front-page .front-promo__icon {
  flex: 0 0 55px;
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-top: -50px;
}

.front-page .front-promo__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.front-page .front-promo__text strong {
  display: block;
  margin: 0 0 14px;
  font-family: "Bezier Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 29px;
}

.front-page .front-promo__text span {
  display: block;
  max-width: 390px;
  font-size: 14px;
  line-height: 17px;
}

.front-page .front-promo:hover .front-promo__background {
  transform: scale(1.015);
  transition: transform .35s ease;
}

.front-page .front-promo__background {
  transition: transform .35s ease;
}

@media (max-width: 767px) {
  .front-page .front-promos {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 80px;
  }

  .front-page .front-promo {
    min-height: 220px;
  }

  .front-page .front-promo__content {
    min-height: 220px;
    gap: 18px;
    padding: 42px 20px;
  }

  .front-page .front-promo__icon {
    flex-basis: 45px;
    width: 45px;
    height: 45px;
  }

  .front-page .front-promo__text strong {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 23px;
  }

  .front-page .front-promo__text span {
    max-width: 260px;
    font-size: 13px;
    line-height: 16px;
  }
}

/* ==============================================================
   FRONT CONTENT SECTIONS — WIDE LAYOUT
============================================================== */

@media (min-width: 768px) {
  /*
    Ширина совпадает с блоком .front-promos:
    1286px при ширине экрана 1366px.
  */

  .front-page .front-objects, .front-page .front-partners, .front-page .front-media {
    width: 1286px;
    max-width: calc(100% - 80px);
  }

  /*
    Сейчас в работе —
    четыре карточки в одном ряду.
  */

  .front-page .front-object-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  /*
    Партнёры —
    пять логотипов в одном ряду.
  */

  .front-page .front-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 209px);
    justify-content: space-between;
    column-gap: 0;
    row-gap: 55px;
    align-items: center;
  }

  .front-page .front-partners-grid img {
    display: block;
    width: 209px;
    height: 209px;
    object-fit: contain;
  }

  /*
    СМИ о нас —
    четыре публикации в одном ряду.
  */

  .front-page .front-media-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px;
  }

  .front-page .front-media-list article {
    min-width: 0;
  }

  .front-page .front-media-list article > img {
    display: block;
    width: auto;
    height: auto;
    margin: 24px 0;
    object-fit: contain;
    object-position: left center;
  }
}

/* ==============================================================
   FRONT CONTENT SECTIONS — MOBILE
============================================================== */

@media (max-width: 767px) {
  .front-page .front-objects, .front-page .front-partners, .front-page .front-media {
    width: 100%;
    max-width: none;
  }

  .front-page .front-object-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .front-page .front-partners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    align-items: center;
  }

  .front-page .front-partners-grid img {
    display: block;
    width: 100%;
    height: 95px;
    object-fit: contain;
  }

  .front-page .front-media-list {
    display: flex;
    width: max-content;
    gap: 30px;
  }

  .front-page .front-media-list article {
    flex: 0 0 238px;
    width: 238px;
  }

  .front-page .front-media-list article > img {
    width: auto;
    height: auto;
    margin: 24px 0;
    object-fit: contain;
    object-position: left center;
  }
}

/* ==============================================================
   FRONT SECTION TITLES — COMMON ALIGNMENT
============================================================== */

@media (min-width: 768px) {
  /*
    Заголовки широких секций выравниваются
    по тому же контейнеру, что и заголовок «ГОРОДА».

    При ширине экрана 1366px левый край будет
    находиться на отметке 149px.
  */

  .front-page .front-objects > .front-section__title, .front-page .front-partners > .front-section__title, .front-page .front-media > .front-section__title {
    width: 1068px;
    max-width: calc(100vw - 80px);
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  /*
    На мобильных заголовки сохраняют стандартные
    боковые отступы страницы.
  */

  .front-page .front-objects > .front-section__title, .front-page .front-partners > .front-section__title, .front-page .front-media > .front-section__title {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }
}

/* ==============================================================
   MOBILE FRONT PAGE — DESIGN AND TOUCH SLIDERS
============================================================== */

@media (max-width: 767px) {
  /*
    На мобильных горизонтальные слайдеры
    не должны вызывать горизонтальный скролл всей страницы.
  */

  .front-page .front-gallery, .front-page .front-stories {
    overflow: hidden;
  }

  .front-page .front-gallery__viewport, .front-page .front-stories__viewport {
    overflow: hidden;
    touch-action: pan-y;
  }

  .front-page .front-gallery__track, .front-page .front-stories .front-horizontal-list {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
  }

  .front-page .front-gallery__track.is-dragging, .front-page .front-stories .front-horizontal-list.is-dragging {
    cursor: grabbing;
    transition: none !important;
  }

  /*
    Мобильная галерея домов.
    На экране видна одна карточка с небольшим
    фрагментом следующей карточки справа.
  */

  .front-page .front-gallery {
    margin-top: 80px;
  }

  .front-page .front-gallery__viewport {
    width: 100%;
  }

  .front-page .front-gallery__track {
    display: flex;
    gap: 10px;
    width: max-content;
    padding-left: 20px;
    transition:
    transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
  }

  .front-page .front-gallery__slide {
    flex: 0 0 calc(100vw - 60px);
    width: calc(100vw - 60px);
    height: 420px;
  }

  /*
    Слайдер историй.
    Карточки остаются горизонтальными и
    перелистываются свайпом.
  */

  .front-page .front-stories {
    padding: 80px 0 0;
  }

  .front-page .front-stories__header {
    width: auto;
    max-width: none;
    min-height: 38px;
    margin: 0 20px 22px;
  }

  .front-page .front-stories__header .front-section__title {
    margin: 0;
    font-size: 32px;
    line-height: 38px;
  }

  .front-page .front-stories__controls {
    gap: 8px;
  }

  .front-page .front-stories__arrow, .front-page .front-stories__arrow img {
    width: 31px;
    height: 31px;
  }

  .front-page .front-stories .front-horizontal-list {
    display: flex;
    gap: 30px;
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 0 0 0 20px;
    transition:
    transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
  }

  .front-page .front-story {
    flex: 0 0 238px;
    width: 238px;
    min-width: 238px;
  }

  .front-page .front-story img {
    width: 238px;
    height: 238px;
  }

  .front-page .front-story h3 {
    margin: 22px 0 14px;
    font-size: 21px;
    line-height: 26px;
  }

  .front-page .front-story p {
    font-size: 14px;
    line-height: 17px;
  }

  .front-page .front-story a {
    font-size: 12px;
  }

  /*
    Промоблоки.
  */

  .front-page .front-promos {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 80px;
  }

  .front-page .front-promo {
    min-height: 220px;
  }

  .front-page .front-promo__content {
    display: flex;
    align-items: center;
    min-height: 220px;
    gap: 18px;
    padding: 42px 20px;
  }

  .front-page .front-promo__icon {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    margin-top: -40px;
  }

  .front-page .front-promo__text strong {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 23px;
  }

  .front-page .front-promo__text span {
    max-width: 280px;
    font-size: 13px;
    line-height: 16px;
  }

  /*
    Новости.
  */

  .front-page .front-news {
    width: 100%;
    max-width: none;
    padding-right: 20px;
    padding-left: 20px;
  }

  .front-page .front-news .front-section__title {
    width: 100%;
    margin: 0 0 18px;
  }

  .front-page .front-news-list {
    width: 100%;
  }

  .front-page .front-news-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 20px 0 10px;
  }

  .front-page .front-news-item__content {
    padding-top: 0;
  }

  .front-page .front-news-item time {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 15px;
  }

  .front-page .front-news-item h3 {
    max-width: none;
    font-size: 21px;
    line-height: 29px;
  }

  .front-page .front-news-item > img {
    width: 100%;
    height: 220px;
  }

  /*
    Партнёры.
  */

  .front-page .front-partners {
    width: 100%;
    max-width: none;
    padding-right: 20px;
    padding-left: 20px;
  }

  .front-page .front-partners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    align-items: center;
  }

  .front-page .front-partners-grid img {
    display: block;
    width: 100%;
    height: 95px;
    object-fit: contain;
  }

  /*
    СМИ о нас.
    На мобильном это горизонтальный слайдер,
    который перелистывается свайпом.
  */

  .front-page .front-media {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 20px;
    overflow: hidden;
  }

  .front-page .front-media .front-section__title {
    width: calc(100% - 20px);
    margin: 0 0 24px;
  }

  .front-page .front-media-list {
    display: flex;
    gap: 30px;
    width: max-content;
    margin: 0;
    padding: 0 0 0 0;
    overflow: visible;
    transition:
    transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }

  .front-page .front-media-list.is-dragging {
    cursor: grabbing;
    transition: none !important;
  }

  .front-page .front-media-list article {
    flex: 0 0 238px;
    width: 238px;
    min-width: 238px;
  }

  .front-page .front-media-list article > img {
    display: block;
    width: auto;
    height: auto;
    margin: 24px 0;
    object-fit: contain;
    object-position: left center;
  }

  .front-page .front-media-list h3 {
    font-size: 21px;
    line-height: 28px;
  }

  .front-page .front-media-list p {
    font-size: 14px;
    line-height: 17px;
  }

  /*
    Поддержка.
  */

  .front-page .front-support {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    padding: 80px 20px;
  }

  .front-page .front-support__description h2 {
    font-size: 32px;
    line-height: 38px;
  }

  .front-page .front-support__description p {
    width: 100%;
    margin-top: 20px;
    font-size: 14px;
    line-height: 17px;
  }

  .front-page .front-support__image {
    width: 100%;
    height: 240px;
    margin-top: 30px;
    object-fit: cover;
  }

  .front-page .front-support .support-form {
    width: 100%;
    margin-top: 29px;
  }
}

/* ==============================================================
   MOBILE MENU — FINAL DESIGN
============================================================== */

.front-menu__actions {
  display: none;
}

@media (max-width: 767px) {
  /*
    Увеличенный гамбургер в закрытом меню.
  */

  .front-page .mobile-back {
    top: 18px;
    left: 20px;
    width: 25px;
    height: 24px;
  }

  .front-page .mobile-back img {
    width: 25px;
    height: 24px;
  }

  /*
    Кнопка закрытия должна находиться
    на месте гамбургера — слева, с тем же отступом.
  */

  .front-page .front-menu-close {
    top: 18px;
    left: 20px;
    width: 25px;
    height: 24px;
    margin: 0;
    padding: 0;
  }

  .front-page .front-menu-close img {
    display: block;
    width: 25px;
    height: 24px;
  }

  /*
    Логотип остаётся по центру,
    социальные иконки — справа.
  */

  .front-page .header-logo, .front-page .header-logo img {
    width: 56px;
    height: 40px;
  }

  .front-page .header-social {
    top: 14px;
    right: 20px;
  }

  .front-page .header-social a, .front-page .header-social img {
    width: 31px;
    height: 31px;
  }

  /*
    Позиционирование ссылок меню.
  */

  .front-page .front-menu__content {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 117px 20px 40px;
  }

  .front-page .front-menu__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 0;
  }

  .front-page .front-menu__links a {
    color: var(--coral);
    font-family: "Bezier Sans", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 29px;
    white-space: nowrap;
  }

  /*
    Кнопки в нижней части меню.
  */

  .front-page .front-menu__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 64px;
  }

  .front-page .front-menu__actions .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 0;
    height: 31px;
    min-height: 31px;
    margin: 0;
    padding: 0 10px;
    font-size: 11px;
    line-height: 13px;
    white-space: nowrap;
  }

  .front-page .front-menu__actions .button--outline {
    color: var(--coral);
    border: 1px solid var(--coral);
    background: transparent;
  }

  .front-page .front-menu__actions .button--filled {
    color: #fff;
    border: 1px solid var(--coral);
    background: var(--coral);
  }

  /*
    Изображение в мобильном меню не используется.
  */

  .front-page .front-menu__image {
    display: none;
  }
}

/* ==============================================================
   DESKTOP GALLERY CONTROLS — ALIGNMENT WITH STORIES
============================================================== */

@media (min-width: 768px) {
  /*
    Галерея использует тот же контейнер,
    что и заголовок и стрелки секции «ИСТОРИИ».
  */

  .front-page .front-gallery__header {
    position: absolute;
    top: -53px;
    right: auto;
    left: 50%;
    width: 1068px;
    max-width: calc(100% - 80px);
    height: 31px;
    margin: 0;
    transform: translateX(-50%);
  }

  .front-page .front-gallery__controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
  }
}

/* ==============================================================
   ЗАЩИТА ОТ ГОРИЗОНТАЛЬНОГО ПЕРЕПОЛНЕНИЯ (добавлено после
   объединения). Решает две проблемы исходной вёрстки:
   1) десктоп: width: 100vw включает ширину полосы прокрутки,
      поэтому страница шире вьюпорта на ~8–15px (микроскролл);
   2) диапазон 768–1292px: вёрстка рассчитана на контейнер
      1068px, а футер (.footer-nav, .footer-actions)
      позиционируется за его правым краем (до 1278px) —
      страница ловила горизонтальную прокрутку.
   Минимальный фикс — обрезаем переполнение, раскладку
   не меняем. position: sticky на сайте не используется,
   поэтому overflow на html/body безопасен. Внутренние
   слайдеры с overflow-x: auto (галереи, истории) продолжают
   прокручиваться — правило действует только на уровне страницы.
============================================================== */
html,
body {
  overflow-x: hidden; /* fallback для старых браузеров */
  overflow-x: clip;   /* не создаёт скролл-контейнер */
}

/* ==============================================================
   СОЦИКОНКИ В ШАПКЕ ГЛАВНОЙ (добавлено после объединения).
   Пока шапка прозрачная (поверх hero), иконки выводятся
   красными файлами telegram1.svg / vk1.svg; после
   появления белой заливки (.front-header--scrolled) — серыми
   telegram.svg / vk.svg, как и было.
   Реализация без изменения HTML: красная иконка подкладывается
   фоном под ссылку, серая картинка скрывается через visibility
   (размеры ссылки сохраняются). При открытом мобильном меню
   (.front-menu-is-open) поведение не меняется.
============================================================== */
.front-page:not(.front-menu-is-open)
  .site-header:not(.front-header--scrolled)
  .header-social
  a[aria-label="Telegram"] {
  background: url("../assets/telegram1.svg") center / contain no-repeat;
  /* Иконка в пределах content-box, как серая <img> (на планшете
     у ссылки padding 7px, иначе красная иконка рисуется 45px) */
  background-origin: content-box;
}

.front-page:not(.front-menu-is-open)
  .site-header:not(.front-header--scrolled)
  .header-social
  a[aria-label="VK"] {
  background: url("../assets/vk1.svg") center / contain no-repeat;
  background-origin: content-box;
}

.front-page:not(.front-menu-is-open)
  .site-header:not(.front-header--scrolled)
  .header-social
  img {
  visibility: hidden;
}

/* ==============================================================
   ПЛАНШЕТНАЯ АДАПТАЦИЯ — 768–1292px (добавлено после объединения)
   Ниже — отдельный слой переопределений только для этого
   диапазона. Десктоп (1293px+) и смартфоны (767px-) правила
   не затрагиваются: медиа-запросы не пересекаются с ними.
   JS-слайдеры измеряют ширины динамически (getBoundingClientRect),
   поэтому изменение размеров через CSS безопасно.
============================================================== */
@media (min-width: 768px) and (max-width: 1292px) {

  /* --- Контейнеры: фиксированная ширина 1068px -> резиновая --- */
  .news-heading,
  .news-list,
  .stories-intro,
  .stories-authors__grid,
  .partners-heading {
    width: calc(100% - 40px);
    max-width: 1068px;
  }

  /* --- Шапка: компактные отступы, всё вмещается --- */
  .site-header__inner {
    width: calc(100% - 40px);
  }

  .header-nav {
    gap: 16px;
    /* отступ от бургера (он стал ближе к логотипу) */
    margin-left: 36px;
  }

  .header-nav a {
    font-size: 13px;
  }

  .header-actions {
    gap: 12px;
  }

  .header-actions .button {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 12px;
  }

  /* --- Подвал: абсолютное позиционирование -> сетка 3 колонки ---
     Верх: логотип | форма подписки + контакты | меню.
     Низ: грант (под логотипом и формой) | кнопки и соцсети справа.
     Поле ввода уже, чем на десктопе; ничего не уезжает за край. */
  .site-footer {
    height: auto;
    min-height: 0;
  }

  .site-footer__inner {
    position: static;
    width: calc(100% - 40px);
    max-width: none;
    height: auto;
    min-height: 0;
    padding: 40px 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand main nav"
      "grant grant actions";
    column-gap: 32px;
    row-gap: 32px;
    align-items: start;
  }

  .footer-brand {
    position: static;
    grid-area: brand;
  }

  .footer-main {
    position: static;
    grid-area: main;
    width: auto;
    max-width: 420px;
  }

  .subscribe-form {
    width: 100%;
    max-width: 420px;
  }

  .subscribe-form input {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .footer-nav {
    position: static;
    grid-area: nav;
    width: auto;
    height: auto;
    column-gap: 32px;
  }

  .footer-actions {
    position: static;
    grid-area: actions;
    width: auto;
    justify-self: end;
  }

  .footer-buttons {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .footer-social {
    margin-top: 16px;
  }

  .grant-logo {
    position: static;
    grid-area: grant;
    width: min(410px, 100%);
    align-self: center;
  }

  .grant-logo img {
    width: 100%;
    height: auto;
  }

  /* --- Новости: слайдер-фича и карточки --- */
  .news-feature-slider {
    width: 100%;
    max-width: 1286px;
    margin-right: auto;
    margin-left: auto;
  }

  .news-feature {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .news-feature__image,
  .news-feature__content {
    width: auto;
  }

  .news-feature__content {
    padding: 40px 32px 30px;
  }

  .news-feature__content h2,
  .news-feature__content p {
    width: auto;
  }

  .news-feature__arrows {
    left: 32px;
  }

  .news-card,
  .front-news-item {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .news-card h2,
  .front-news-item h3 {
    width: auto;
    max-width: 100%;
  }

  .news-card__image,
  .front-news-item > img {
    width: 240px;
    height: 180px;
  }

  /* --- Объекты: сайдбар уже, карточки — 2 колонки ---
     (.content/.desktop-cards — страница города page.html,
      .objects-content/.objects-cards — objects.html,
      .city-content — city.html) */
  .content,
  .objects-content,
  .city-content {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .desktop-cards,
  .objects-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* «Количество объектов» на city.html выносится влево на ширину
     сайдбара: -327px = 307px + gap 20px. Сайдбар стал 240px —
     корректируем вынос, иначе текст обрезается слева. */
  .city-map-top strong {
    left: -260px;
  }

  /* --- Страница объекта --- */
  /* Стрелка «назад» — как на десктопе: слева от заголовка.
     Под неё у сетки появляется левый жёлоб, поэтому заголовок,
     описание, «Команда» и галерея сдвигаются вправо и чуть сужаются */
  .object-intro__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-left: 61px;
  }

  .object-back {
    left: -53px;
  }

  .object-info h1 {
    width: auto;
  }

  /* Иначе текст истории (на десктопе фикс. 405px) налезает
     на галерею в соседней колонке */
  .object-history {
    width: auto;
  }

  .object-gallery {
    width: 100%;
  }

  .object-gallery__track img {
    height: min(540px, 58vw);
  }

  /* --- Блок поддержки (главная, объект, страница) --- */
  .support__inner,
  .front-support {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .support-form,
  .front-support .support-form {
    width: 100%;
  }

  .support-description p,
  .front-support__description p {
    width: auto;
  }

  .support-description h2,
  .front-support__description h2 {
    font-size: 48px;
  }

  /* --- Главная: статистика, карточки, сетки --- */
  .front-stats {
    gap: 14px;
  }

  .front-stat strong {
    font-size: 46px;
  }

  /* .front-page в селекторе обязателен: в fp-секции эти сетки
     заданы правилами .front-page … (специфичность 0,2,0) */
  .front-page .front-object-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* «СМИ о нас» — двухколоночная сетка */
  .front-page .front-media-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  /* Партнёры: пять фиксированных колонок 209px не вмещаются —
     три резиновые */
  .front-page .front-partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: normal;
    gap: 32px 24px;
  }

  .front-page .front-partners-grid img {
    width: 100%;
    height: 125px;
  }

  .front-promo {
    padding: 40px 36px;
    gap: 18px;
  }

  /* Карта «Города»: точный full-bleed от резинового контейнера */
  .front-map {
    margin-left: calc((100% - 100vw) / 2);
  }

  /* Истории на главной: карточки чуть уже, слайдер измеряет сам */
  .front-page .front-story {
    flex-basis: 280px;
    width: 280px;
    min-width: 280px;
  }

  .front-page .front-story img {
    width: 280px;
    height: 280px;
  }

  /* --- Страница историй --- */
  .stories-slide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .stories-slide__text,
  .stories-slide__text p {
    width: auto;
  }

  .stories-slide__text h2 {
    font-size: 44px;
  }

  .stories-slide__image {
    width: 100%;
  }

  .stories-slider__arrow--prev {
    left: 0;
  }

  .stories-slider__arrow--next {
    right: 0;
  }

  .stories-slider__dots {
    left: auto;
    right: 24px;
  }

  /* Авторы — двухколоночная сетка вместо трёх */
  .stories-authors__grid {
    grid-template-columns: repeat(2, minmax(0, 317px));
    justify-content: center;
    column-gap: 40px;
    grid-auto-rows: auto;
    row-gap: 60px;
  }

  /* «Лесенка» в двух колонках: левая колонка без смещения,
     правая опущена (как боковые колонки на десктопе) */
  .stories-authors--first .story-author:nth-child(odd),
  .stories-authors--second .story-author:nth-child(odd) {
    margin-top: 0;
  }

  .stories-authors--first .story-author:nth-child(even),
  .stories-authors--second .story-author:nth-child(even) {
    margin-top: 159px;
  }

  .stories-authors--first,
  .stories-authors--second {
    min-height: 0;
  }

  .story-author {
    width: 100%;
  }

  .story-author > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .story-author__content p {
    width: auto;
  }

  /* Широкий слайдер: текст не уезжает за правый край */
  .stories-wide-slide__content {
    left: auto;
    right: 40px;
    width: min(405px, 55%);
  }

  .stories-wide-slide__content h2 {
    font-size: 44px;
  }

  /* --- Партнёры --- */
  .partners-list {
    column-gap: 30px;
    row-gap: 80px;
  }

  .partner-card__logo img {
    max-width: 100%;
  }
}

/* Дополнительное уплотнение для портретных планшетов 768–1023px */
@media (min-width: 768px) and (max-width: 1023px) {

  /* Партнёры и «читайте также» — двухколоночная сетка */
  .partners-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-related__slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Статистика 2×2 */
  .front-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .front-stat strong {
    font-size: 44px;
  }

  /* Фича-новость: колонки поровну */
  .news-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  /* Шапка главной: меню и кнопки не вмещаются — навигация
     переезжает в бургер-меню (оно доступно на главной всегда),
     остаются логотип, бургер и социконки — как на смартфонах */
  .front-page .header-nav,
  .front-page .header-actions {
    display: none;
  }

  /* Шапка внутренних страниц (бургера там нет): ещё компактнее,
     чтобы ссылки и кнопки поместились. Социконки прячем —
     они дублируются в подвале. */
  body:not(.front-page) .header-social {
    display: none;
  }

  body:not(.front-page) .header-nav {
    gap: 10px;
    margin-left: 28px;
  }

  body:not(.front-page) .header-nav a {
    font-size: 12px;
  }

  body:not(.front-page) .header-actions {
    gap: 8px;
  }

  body:not(.front-page) .header-actions .button {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  /* Партнёры на главной — две колонки */
  .front-page .front-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Самый узкий планшетный диапазон 768–859px: шапка внутренних
   страниц почти не вмещает две кнопки — уменьшаем ещё на шаг */
@media (min-width: 768px) and (max-width: 859px) {
  body:not(.front-page) .header-nav a {
    font-size: 11px;
  }

  body:not(.front-page) .header-actions .button {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 10px;
  }
}

/* Узкий планшет 768–899px: в подвале трём колонкам тесно —
   меню уходит вправо, форма подписки под логотип */
@media (min-width: 768px) and (max-width: 899px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand nav"
      "main  nav"
      "grant actions";
    column-gap: 40px;
  }
}

/* --- Тап-зоны шапки на планшетах (768–1292px) ---
   Рекомендованный минимум для касания — 44×44px (Apple HIG).
   Ссылки и кнопки становятся выше визуально (текст по-прежнему
   по центру), а для иконок и бургера увеличивается только
   кликабельная область: padding компенсируется отрицательным
   margin, поэтому размеры картинок не меняются. */
@media (min-width: 768px) and (max-width: 1292px) {
  .header-nav a {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .header-actions .button {
    height: 44px;
  }

  .header-social a {
    width: 45px;
    height: 45px;
    padding: 7px;
    margin: -7px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 58px;
    margin-top: -12px;
    margin-bottom: -12px;
    margin-right: -24px;
    /* Бургер ближе к логотипу (базовый отступ 49px прижимал его к меню) */
    margin-left: 16px;
  }

  /* Без padding-компенсации: при фиксированной высоте ссылки 40px
     padding сдвигал логотип на 4px ниже оси шапки */
  .header-logo {
    padding: 0;
    margin: 0;
  }
}

/* ==============================================================
   OBJECT PAGE GALLERY — виден следующий кадр справа
============================================================== */

.object-gallery {
  position: relative;
  width: 634px;
  overflow: hidden;
}

.object-gallery__track {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: none;
  transition:
    transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.object-gallery__track img {
  display: block;
  flex: 0 0 calc(100% - 100px);
  width: calc(100% - 100px);
  height: 540px;
  object-fit: cover;
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1292px) {
  .object-gallery {
    width: 100%;
  }

  .object-gallery__track img {
    flex-basis: calc(100% - 80px);
    width: calc(100% - 80px);
    height: min(540px, 58vw);
  }
}

/* Мобильная версия */
@media (max-width: 767px) {
  .object-gallery {
    width: calc(100% - 40px);
    margin: 22px 20px 0;
    overflow: hidden;
  }

  .object-gallery__track {
    gap: 10px;
    width: 100%;
  }

  .object-gallery__track img {
    flex: 0 0 calc(100% - 44px);
    width: calc(100% - 44px);
    height: 272px;
  }
}

.story-gallery__track {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.story-gallery__track.is-dragging {
  cursor: grabbing;
  transition: none !important;
}

.story-gallery__item,
.story-gallery__item img {
  -webkit-user-drag: none;
}

.story-lightbox {
  z-index: 2000;
}


.story-gallery__track {
  position: relative;
  cursor: grab;
}

.story-gallery__track.is-dragging {
  cursor: grabbing;
}

.story-gallery__item {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.story-lightbox.is-open {
  pointer-events: auto;
}

.story-lightbox__figure,
.story-lightbox__figure img,
.story-lightbox__close,
.story-lightbox__arrow {
  pointer-events: auto;
}


/* ==============================================================
   OBJECT GALLERY — до правого края экрана
============================================================== */

.object-intro__inner {
  /*width: calc(100% - 80px);
  max-width: 1178px;
  grid-template-columns: 524px minmax(0, 1fr);
  column-gap: 20px;*/
}

.object-gallery {
  position: relative;
  width: calc(
    100vw -
    max(40px, calc((100vw - 1178px) / 2)) -
    544px
  );
  max-width: none;
  overflow: hidden;
}

.object-gallery__track {
  display: flex;
  gap: 20px;
  width: max-content;
  max-width: none;
  transition:
    transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.object-gallery__track img {
  display: block;
  flex: 0 0 calc(100% - 100px);
  width: calc(100% - 100px);
  height: 540px;
  object-fit: cover;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.object-gallery__track.is-dragging {
  cursor: grabbing;
  transition: none !important;
}

.gallery-controls {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.gallery-controls button {
  position: relative;
  z-index: 2;
}

/* Lightbox объекта */

.object-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  width: 100vw;
  height: 100vh;
  padding: 40px;
  background: rgba(0, 0, 0, .86);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity .3s ease,
    visibility 0s linear .3s;
}

.object-lightbox.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity .3s ease,
    visibility 0s linear 0s;
}

.object-lightbox__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(90vw, 1100px);
  height: min(86vh, 800px);
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  margin: 0;
}

.object-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.object-lightbox__close {
  position: absolute;
  top: 25px;
  right: 30px;
  z-index: 3;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 38px;
  font-weight: 300;
  line-height: 38px;
  cursor: pointer;
}

.object-lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transform: translateY(-50%);
  cursor: pointer;
}

.object-lightbox__arrow img {
  display: block;
  width: 27px;
  height: 27px;
  filter: brightness(0) invert(1);
}

.object-lightbox__arrow--prev {
  left: 30px;
}

.object-lightbox__arrow--next {
  right: 30px;
}

.object-lightbox-is-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .object-intro__inner {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
  }

  .object-gallery {
    width: calc(100% - 40px);
    margin: 22px 20px 0;
    overflow: hidden;
  }

  .object-gallery__track {
    gap: 10px;
    width: max-content;
  }

  .object-gallery__track img {
    flex: 0 0 calc(100vw - 84px);
    width: calc(100vw - 84px);
    height: 272px;
  }

  .object-lightbox {
    width: 100vw;
    height: 100dvh;
    padding: 20px;
  }

  .object-lightbox__figure {
    width: calc(100vw - 40px);
    height: calc(100dvh - 120px);
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 120px);
  }

  .object-lightbox__close {
    top: 15px;
    right: 18px;
  }

  .object-lightbox__arrow {
    width: 34px;
    height: 34px;
  }

  .object-lightbox__arrow img {
    width: 23px;
    height: 23px;
  }

  .object-lightbox__arrow--prev {
    left: 12px;
  }

  .object-lightbox__arrow--next {
    right: 12px;
  }
}




.object-gallery__track .object-gallery__slide {
  border: none;
  background: none;
  margin-right: -120px;
}


@media (max-width: 767px) {
  .object-gallery__track .object-gallery__slide {
  margin-right: 0px;
}

}