:root {
  --site-font-family: "Montserrat", Arial, sans-serif;
  --site-accent-color: #ed6a59;
  --site-dark-accent-color: #152348;
  --site-light-blue-accent-color: #1e4296;
  --site-bg-color: #152348;
  --site-border-radius: 4px;
  --site-transition: all 0.2s ease;
  --site-white-color: #fff;
  --site-blue-color: #204494;
  --site-red-color: #dc143c;
  --site-yellow-color: #fdfe00;
  --site-orange-color: #f9a743;
  --site-light-blue-color: #637db5;
  --site-green-color: #0eaa6f;
  --site-modal-z-index: 1000;
  --site-modal-overlay-z-index: 200;
  --site-dropdown-z-index: 100;
  --site-overlay-z-index: 99;
}

@media (max-width: 560px) {
  :root {
    --site-border-radius: 2px;
  }
}

/* TEXT */

h1 {
  font-weight: 700;
  font-size: 42px;
  line-height: 50px;
}

h1.header-title {
  color: var(--site-white-color);
  display: inline-block;
  border-radius: var(--site-border-radius);
  background-color: var(--site-accent-color);
  padding: 18px 30px;
}

h2 {
  font-family: var(--site-font-family);
  font-weight: 700;
  font-size: 42px;
  line-height: 50px;
  margin-bottom: 25px;
  text-align: left;
}

h3 {
  font-family: var(--site-font-family);
  font-weight: 700;
  font-size: 32px;
  line-height: 42px;
  margin-bottom: 25px;
  text-align: left;
}

h4 {
  font-family: var(--site-font-family);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 25px;
}

em {
  font-style: italic;
}

strong {
  font-weight: 700;
}

p a {
  transition: var(--site-transition);
  font-weight: 700;
  cursor: pointer;
  color: var(--site-accent-color);
}

p a:hover {
  border-radius: var(--site-border-radius);
  background-color: var(--site-accent-color);
  color: var(--site-white-color);
}

/* selector adaptive */

@media (max-width: 767px) {
  h1 {
    font-size: 24px;
    line-height: 28px;
  }

  h1.header-title {
    padding: 15px 25px;
  }

  h2 {
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 20px;
  }

  h3 {
    font-size: 28px;
    line-height: 30px;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 18px;
    line-height: 22px;
  }

  h1.header-title {
    padding: 12px 20px;
  }

  h2 {
    font-size: 28px;
    line-height: 30px;
  }

  h3 {
    font-size: 22px;
    line-height: 24px;
  }
}

.g-link {
  transition: var(--site-transition);
}

.g-link:hover {
  color: var(--site-accent-color);
}
/* IMG */

.g-img {
  border-radius: var(--site-border-radius);
}

@media (max-width: 560px) {
  .g-img {
    width: 100%;
  }
}

/* BLOCK */

.g-section {
  padding: 35px 0;
  margin: 25px 0;
  position: relative;
}

.g-b-section {
  padding: 30px 0;
  margin: 30px 0;
  position: relative;
}

.g-m-r-section {
  padding-left: 195px;
}
.g-s-r-section {
  padding-left: 90px;
}
.float-image-text-block {
  overflow: hidden;
  margin: 25px 0;
}

.float-image-text-block img {
  float: left;
  margin-right: 30px;
  margin-bottom: 25px;
  height: auto;
}

@media (max-width: 767px) {
  .g-s-r-section {
    padding-left: 0;
  }
  .g-m-r-section {
    padding-left: 0;
  }

  .g-b-section {
    padding: 15px 0;
    margin: 15px 0;
  }

  .g-section.wave-s-top,
  .g-b-section.wave-s-top {
    padding-top: 55px;
  }

  .g-section.wave-top,
  .g-b-section.wave-top {
    padding-top: 75px;
  }

  .g-section.wave-b-top,
  .g-b-section.wave-b-top {
    padding-top: 85px;
  }
}

/* Базовые стили для обтекания */
.image-float-wrapper {
  overflow: hidden; /* Содержит float внутри */
  position: relative;
}

/* Вариант с изображением справа */
.image-float-right {
  float: right;
  margin-left: 30px;
  height: auto;
}

/* Вариант с изображением слева (для переиспользования) */
.image-float-left {
  float: left;
  margin-right: 30px;
  height: auto;
}

.img-flex-float {
  display: flex;
  gap: 30px;
}

@media (max-width: 560px) {
  .g-section {
    padding: 15px 0;
    margin: 15px 0;
  }

  .image-float-wrapper img {
    margin-bottom: 20px;
  }
}

/* img */

.content-full-width {
  border-radius: var(--site-border-radius);
  margin: 25px 0;
}

/* button */

.g-button {
  font-family: var(--site-font-family);
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;

  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--site-accent-color);
  color: var(--site-white-color);
  border-radius: var(--site-border-radius);
  transition: var(--site-transition);
  padding: 17px 5px;
  width: 100%;
  max-width: 360px;

  cursor: pointer;
}

.g-button:hover {
  color: var(--site-accent-color);
  background-color: var(--site-white-color);
}

.g-button-small {
  font-size: 17px;
  max-width: 270px;
}

.g-button-green {
  background-color: var(--site-green-color);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 12px 5px;
  line-height: 26px;
  min-height: 76px;
}

.g-button-orange {
  background-color: var(--site-orange-color);
}

@media (max-width: 560px) {
  .g-button {
    font-size: 16px;
    line-height: 22px;
    width: calc(100% - 50px);
    padding-top: 14px;
    max-width: 270px;
    padding-bottom: 14px;
  }

  .g-button-green {
    min-height: 72px;
  }
}

/* lists */

.g-list {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 25px;
}

.g-space-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: left;
  margin-bottom: 25px;
}

.g-listy-left-gap li {
  padding-left: 15px;
}

/*временное решение*/

ol {
  padding-left: 1.5rem; /* отступ слева для маркировки */
  counter-reset: item;
  list-style: none; /* убираем стандартную нумерацию */
  margin: 0;
}

ol li {
  position: relative;
  counter-increment: item;
  margin-bottom: 26px; /* расстояние между элементами */
  padding-left: 20px; /* отступ для цифры */
}

ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
}

@media (max-width: 767px) {
  .g-list li,
  ol li {
    padding-left: 0 !important;
  }
}

/* modal */

/* СТАРАЯ МОДАЛКА С ПРОКРУТКОЙ СОДЕРЖИТМОГО ВНУТРИ МОДАЛКИ */

/*
.modal {
	position: fixed;
	inset: 0;
	display: none;
	justify-content: center;
	align-items: center;
	z-index: var(--site-modal-z-index);
	padding: 100px 0;

	color: var(--site-dark-accent-color);
}

.modal[aria-hidden="false"] {
	display: flex;
}

.modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(14, 33, 71, 0.8);
	z-index: var(--site-modal-overlay-z-index);
}

.modal__content {
	position: relative;
	background: var(--site-white-color);
	border-radius: var(--site-border-radius);
	max-width: 90%;
	max-height: 90%;
	max-width: 1140px;
	width: 100%;
	z-index: var(--site-modal-z-index);

	display: flex;
	flex-direction: column;
}

.modal__body {
	overflow-y: auto;
	border-radius: var(--site-border-radius);
}

.modal__close {
	position: absolute;
	top: -47px;
	right: 0px;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	cursor: pointer;
	transition: var(--site-transition);
}

.modal__close:hover {
	transform: scale(1.15);
}

body.modal-open {
	overflow: hidden;
}

*/

/* НОВАЯ МОДАЛКА С ПРОКРУТКОЙ СОДЕРЖИМОГО В ОКНЕ БРАУЗЕРА
	ЕСЛИ body НЕ ИМЕЕТ ДОСТАТОЧНОЙ ВЫСОТУ, РАБОТАТЬ НЕ БУДЕТ, ИСПОЛЬЗОВАТЬ МОДАЛКУ ВЫШЕ
*/

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  display: none;
  justify-content: center;
  padding: 100px 0 0;
  overflow-y: auto;
  z-index: var(--site-modal-z-index);
  color: var(--site-dark-accent-color);
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 33, 71, 0.8);
  z-index: var(--site-modal-overlay-z-index);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 1140px;
  z-index: var(--site-modal-z-index);
  display: flex;
  flex-direction: column;

  margin: auto 0;
}

.modal-wrapper {
  position: relative;
}

.modal__close {
  position: absolute;
  top: -47px;
  right: 0px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--site-transition);
}

.modal__close:hover {
  transform: scale(1.15);
}

.modal__body {
  overflow: visible;
  border-radius: var(--site-border-radius);
  background: var(--site-white-color);
  margin-bottom: 100px;
}

body.modal-open {
  overflow: hidden;
}

.directory-modal h3 {
  text-align: center;
}

.modal-title {
  height: 26px;
  line-height: 1;
  text-align: center;
  margin: 0 0 10px;
}

.modal-description {
  font-weight: 700;
  padding: 30px 50px;
}

.photo-modal .modal__content {
  width: auto;
}

.photo-modal h4 {
  color: var(--site-white-color);
  text-align: center;
  line-height: 32px;
  text-transform: uppercase;
}

.photo-modal .modal__body {
  background: transparent;
  max-width: 1000px;
}

.photo-content {
  display: flex;
  flex-direction: column;
  gap: 35px;
}
.photo-content img {
  box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 80%);
}
@media (max-width: 767px) {
  .modal-title.red,
  .modal-title.brand {
    height: auto;
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 20px;
  }
  .red.large {
    font-size: 16px;
    line-height: 20px;
  }
}
@media (max-width: 1140px) {
  .modal {
    margin-right: 20px;
    margin-left: 20px;
    scrollbar-width: none;
  }
  .modal__body {
    background-color: transparent;
    margin-bottom: 0;
  }
  .modal-description {
    background-color: #ffffff;
    padding: 15px 10px;
  }
  .directory-modal {
    background: var(--site-white-color);
  }
}

@media (max-width: 767px) {
  .modal {
    padding-top: 70px;
    padding-bottom: 100px;
  }
  .modal__close {
    width: 24px;
    height: 24px;
    top: -35px;
  }
  .modal__close svg {
    width: 24px;
    height: 24px;
  }
  .photo-modal h4 {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 20px;
  }

  .photo-content {
    padding: 5px;
  }
}
/* table */

.table {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-collapse: collapse;
  border-radius: var(--site-border-radius);
  overflow: hidden;
}
.table-button {
  margin-top: 20px;
}
.table-button .table-button-block {
  background-color: rgba(32, 68, 148, 0.1);
  color: rgb(14, 33, 71);
  line-height: 18px;
}
.table-button .table-button-block:last-child .table__cell {
  padding-top: 5px;
}
.table-block .table:not(:first-child) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.table-block .table:not(:last-child):not(.table-with-border) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.table-block > .table:first-child:not(.table-with-border) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.table__row {
  display: flex;
  flex-direction: row;
}

.table__row--header {
  font-weight: 800;
  font-size: 26px;
  min-height: 84px;
  background-color: var(--site-light-blue-color);
  color: var(--site-white-color);
  line-height: 30px;
}

.table__row--header.light-header {
  background: #2044941a;
  color: var(--site-dark-accent-color);
}

.table__cell {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 700;
  min-height: 84px;
}
.table__cell-text {
  font-weight: 600;
}
.table__cell--bold {
  font-weight: 700;
}
.table__row--header .table__cell {
  font-weight: 800;
  font-size: 26px;
  line-height: 30px;
  text-wrap-style: balance;
  word-break: break-word;
}

.table__row--total .table__cell,
.total-cell {
  font-weight: 800;
  font-size: 26px;
  line-height: 30px;
}

.table__cell.bold {
  font-weight: 800;
}

.table__row:nth-child(2n) {
  background-color: rgba(32, 68, 148, 0.1);
}

.table__cell--right {
  width: 30%;
  flex: 0 1 30%;
}
.table__cell--right br {
  display: none;
}

.table__note {
  font-size: 18px;
  margin-top: 5px;
  line-height: 22px;
  font-style: italic;
  font-weight: 400;
  text-wrap-style: balance;
}

.table-scroll {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.table-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.table__cell.accent {
  color: var(--site-accent-color);
}

.table__cell.red {
  color: var(--site-red-color);
}

.red {
  color: var(--site-red-color);
}

.brand {
  color: var(--site-accent-color);
}

.large {
  font-size: 23px;
}

.big-cell,
.table__row--total .table__cell .big-cell,
.table__row--total {
  font-size: 26px;
  line-height: 28px;
  font-weight: 800;
}
.table-block .table-flags {
  display: none;
}

.table__cell--heading span {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}

/* Адаптив для таблицы */
@media (max-width: 1140px) {
  .table {
    background-color: #ffffff;
  }
  .table-block .table-flags {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
  }
  .table-block .table-flags img {
    width: 240px;
    border-radius: var(--site-border-radius);
    position: relative;
    z-index: 1;
  }
  .table-block .table-flags img:nth-child(2) {
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 25%);
    margin-top: -96px;
    margin-left: 63px;
  }
  .table-flags-text-inner {
    display: flex;
    gap: 10px;
    z-index: 2;
    margin-top: -11px;
  }
  .table-flags-text {
    background-color: #ffffff;
    padding: 10px 13px;
    border-radius: 2px;
    text-align: center;
    color: #0e2147;
    font-size: 14px;
    font-weight: bolder;
    width: max-content;
    line-height: 16px;
    box-shadow: 0px -2px 4px 0px #00000040;
  }
}

@media (max-width: 767px) {
  .table__cell-text {
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
  }
  .table__cell--heading {
    font-size: 16px;
    line-height: 20px;
  }
  .table__cell--heading span {
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
  }
  .table__cell {
    font-size: 14px;
    line-height: 20px;
    font-weight: bolder;
    min-height: auto;
  }
  .table__row .table__cell {
    padding: 15px 10px;
    font-weight: 700;
  }
  .table__row--header .table__cell {
    padding: 15px 10px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 800;
  }
  .table__row .table__cell--right {
    flex: 0 1 24%;
    font-weight: 800;
  }
  .table__cell--right br {
    display: block;
  }
  .table__row--total .table__cell {
    font-size: 16px;
    line-height: 20px;
    font-weight: 800;
  }
  .table__note {
    font-size: 12px;
    line-height: 16px;
  }
  .table-flags-text {
    font-size: 14px;
    font-weight: bold;
  }
  .table__row--header {
    min-height: auto;
    gap: 12px;
  }
  .table__row .common-cell {
    font-size: 16px;
    font-weight: 800;
  }
  .table-block .table:last-child {
    border-top-left-radius: var(--site-border-radius);
    border-top-right-radius: var(--site-border-radius);
  }
}

@media (max-width: 359px) {
  .table-block .table-flags img {
    width: 200px;
  }
  .table-flags-text {
    padding: 7px;
    font-size: 12px;
  }
  .table-flags-text-inner {
    top: -10px;
  }
}

.common-cell {
  background: #2044940d;
  font-size: 26px;
}

/* скролл */

.scroll-container {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* waves */

.wave_small {
  position: absolute;
  width: 350px;
  height: 42px;
  background: url(../img/wave_small.svg) top left no-repeat transparent;
}

.wave_big {
  position: absolute;
  width: 733px;
  height: 106px;
  background: url(../img/wave_big.svg) top left no-repeat transparent;
}
@media (max-width: 767px) {
  .wave_big {
    background: url(../img/wave_big_mobile.png) top left no-repeat transparent;
    width: 362px;
    height: 54px;
  }

  .wave_small {
    background: url(../img/wave_small_mobile.png) top left no-repeat transparent;
    width: 265px;
    height: 32px;
  }

  /* Добавлена специфичность для частных случаев */
  .wave_small.mobile_wave.left {
    top: 6px;
    left: -27px;
    right: auto;
  }
  .wave_small.mobile_wave.right {
    top: 6px;
    right: -27px;
    left: auto;
  }
  .wave_big.mobile_wave.left {
    top: 6px;
    left: -112px;
    right: auto;
  }
  .wave_big.mobile_wave.right {
    top: 6px;
    right: -112px;
    left: auto;
  }
}

/* Универсальный parallax */

.parallax-img {
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
}

@media (max-width: 767px) {
  .parallax-img {
    position: relative;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.1s linear;
    z-index: 0;
  }
}

/* Скрытие декстоп и мобайл */

.only-desktop {
  display: block;
}

.only-mobile {
  display: none;
}

@media (max-width: 767px) {
  .only-desktop {
    display: none;
  }

  .only-mobile {
    display: block;
  }
}
