html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

a:visited,
a:active,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background: #fff6f0;
  color: #1e1d1b;
}

.bg {
  position: relative;
  background-image: var(--visamart-img-bg, url('../img/bg.jpg'));
  background-size: cover;
  background-position: center;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1;
}

.bg--has-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background-image: none;
  overflow: hidden;
}

.bg--has-video::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  position: relative;
  align-self: stretch;
  width: 100%;
  min-height: 100%;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1;
}

.bg--has-video > .bg__media {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg--has-video > section {
  grid-column: 1;
  grid-row: 1;
}

.bg__media video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bg__media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  border: 0;
  transform: translate(-50%, -50%) scale(1.15);
  transform-origin: center center;
}

@supports (width: 100cqw) {
  .bg__media {
    container-type: size;
  }

  .bg__media iframe {
    width: max(100cqw, calc(100cqh * 16 / 9));
    height: max(100cqh, calc(100cqw * 9 / 16));
    transform: translate(-50%, -50%);
  }
}

.bg > section {
  position: relative;
  z-index: 2;
}

.container {
   max-width: 1376px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ********************блок страны **************** */

.countries {
  padding: 80px 0;
  background: #fff6f0;
}

.countries__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.countries__title {
  font-size: 48px;
  font-weight: 500;
  color: #034743;
}

.country-item {
  display: grid;
  grid-template-columns: 300px 1fr 160px;
  align-items: center;

  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  border-radius: 30px;

  transition: 0.3s;
}

.country-item:hover {
  background: #fff;
}

.country-item:hover .country-item__info {
  opacity: 1;
}

.country-item:hover .country-item__name {
  text-decoration: underline;
}

.country-item__left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.country-item__left img {
  width: 100px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.country-item__name {
  font-weight: 500;
  font-size: 24px;
  line-height: 133%;
  letter-spacing: -0.01em;
  color: #1e1d1b;
}

.country-item__info {
  display: flex;
  justify-content: space-between;
  max-width: 500px;
  opacity: 0.66;
}

.country-item__info div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.country-item__info span {
  font-size: 14px;
  opacity: 0.5;
}

.country-item__info strong {
  font-weight: 500;
  font-size: 24px;
  line-height: 133%;
  letter-spacing: -0.01em;
  color: #1e1d1b;
}

.country-item__action {
  text-align: right;
}

/* Кнопка «Подробнее»: по умолчанию — текст, при hover — primary */
.country-item__action .btn-primary {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #1e1d1b;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.country-item__action .btn-primary__arrow {
  display: inline-flex;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
  margin-left: 0;
  flex-shrink: 0;
}

.country-item__action .btn-primary:hover {
  width: 142px;
  height: 56px;
  padding: 8px 24px;
  gap: 6px;
  border-radius: 22px;
  background: #034743;
  color: #fff;
  font-weight: 600;
}

.country-item__action .btn-primary:hover .btn-primary__arrow {
  width: 8px;
  opacity: 1;
  margin-left: 2px;
  color: #fff;
}

.countries__bottom {
  display: flex;
  align-items: center;
  gap: 32px;

  margin-top: 60px;
}

.countries__bottom .line {
  flex: 1;
  height: 1px;
  background: #4A050A;
  opacity: 0.2;
}

.countries__top .btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 64px;
  padding: 0 32px;
  border: 2px solid #034743;
  border-radius: 22px;
}

.countries__bottom .btn-outline {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  height: 64px;
  padding: 0 32px;

  border: 2px solid #034743;
  border-radius: 22px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 20px;
  background: #034743;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
}

.btn-outline {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 28px;
  border: 2px solid #034743;
  border-radius: 20px;
  text-decoration: none;
  color: #034743;
}
.consult-link {
  display: inline-block;
  font-size: 18px;
  text-decoration: underline;
  color: #034743;
}

.countries__consult {
  margin-top: 20px;
}

body > section.countries > div > div.countries__consult > a {
  text-decoration: underline;
}

/* POPUP */

.popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.popup.active {
  display: grid;
  place-items: center;
}

.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* КАРТОЧКА */
.popup__content {
  position: relative;
  width: 680px;
  padding: 33px 28px 28px;
  border-radius: 28px;
  background: #fff6f0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

/* КРЕСТИК */
.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;

  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

/* TITLE */
.popup__title {
  font-size: 32px;
  line-height: 36px;
  font-weight: 500;
  color: #1e1d1b;
}

/* ОБЫЧНЫЙ ТЕКСТ */
.popup__text {
  font-size: 16px;
  line-height: 1.5;
  color: #1e1d1b;
  opacity: 0.7;
}

/* СПИСОК */
.popup__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.popup__list li {
  font-size: 16px;
  line-height: 1.5;
  color: #1e1d1b;
}

/* АКЦЕНТНЫЙ БЛОК (зеленый текст) */
.popup__accent {
  font-size: 16px;
  line-height: 1.5;
  color: #034743;
  margin-top: 8px;
}

/* КНОПКА */
.popup__button {
  margin-top: 12px;

  display: flex;
  justify-content: center;
  align-items: center;

  height: 48px;
  border-radius: 18px;

  border: 1px solid rgba(3, 71, 67, 0.1);
  color: #034743;
  text-decoration: none;

  font-size: 16px;
  opacity: 0.8;

  transition: 0.2s;
}

.popup__button:hover {
  background: #034743;
  color: #fff;
}

/* ПОП-АП КЕЙСОВ  */

.case-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
}

.case-popup.active {
  display: block;
}

/* затемнение */
.case-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(6px);
}

/* общий контейнер */
.case-popup__wrapper {
  position: relative;
  width: 100%;
  height: 100%;

  overflow-y: auto;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 80px 20px;
}

/* карточка */
.case-popup__content {
  width: 680px;
  max-width: 100%;
  background: #f4eee8;
  border-radius: 28px;
  padding: 40px;
}

/* закрытие */
.case-popup__close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
}

/* стрелки */
.case-popup__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  cursor: pointer;
}

.case-popup__nav--prev {
  left: 40px;
}

.case-popup__nav--next {
  right: 40px;
}

/* нижняя кнопка */
.case-popup__bottom {
  margin-top: 40px;
}

.case-popup__all {
  background: rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 20px;
  color: #fff !important;
  text-decoration: none;
}

/* 
открытый кейс  */

/* META */
.case-popup-meta span {
  font-size: 12px;
  color: #8c8c8c;
}

.case-popup-meta p {
  font-size: 14px;
}

/* TITLE */
.case-popup-title {
  font-size: 28px;
  font-weight: 600;
}

/* BLOCK */
.case-popup-block span {
  font-size: 12px;
  color: #8c8c8c;
}

.case-popup-block p {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 6px;
}

/* LIST */
.case-popup-list {
  padding-left: 18px;
}

.case-popup-list li {
  margin-bottom: 6px;
}

/* TAG */
.case-popup-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 16px;
  padding: 6px 10px;
  margin: 20px 0;
}

.case-popup-tag img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

/* DIVIDER */
.case-popup-divider {
  height: 1px;
  background: rgba(0,0,0,0.1);
}

/* FOOTER */
.case-popup-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.case-popup__all a {
    background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.case-popup-desc {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.review-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.review-popup.active {
  display: block;
}

.review-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(8px);
}

.review-popup__wrapper {
  position: relative;
  z-index: 2;

  height: 100%;
  padding: 20px;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding-top: 40px;
  overflow-y: auto;
}

.review-popup__content {
  width: 804px;
  max-width: calc(100% - 40px);

  background: #FFF6F0;
  border-radius: 28px;

  padding: 40px;

  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-popup-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d9d9d9;
}

.review-popup-user {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.review-popup-user span {
  font-size: 12px;
  color: #9a9a9a;
}

.review-popup-user strong {
  font-size: 14px;
  color: #1a1a1a;
}

.review-popup-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.review-popup-media {
  display: flex;
  gap: 12px;
    height: 350px;
}

.review-popup-media div {
  flex: 1;
  height: 100%;
  background: #d9d9d9;
  border-radius: 16px;
}

.review-popup-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-popup-block span {
  font-size: 12px;
  color: #9a9a9a;
  margin-bottom: 4px;
  display: block;
}

.review-popup-block p,
.review-popup-block li {
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a1a;
}

.review-popup__close {
  position: absolute;
  top: 20px;
  right: 20px;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: none;

  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
}

.review-popup__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
}

.review-popup__nav--prev {
  left: 40px;
}

.review-popup__nav--next {
  right: 40px;
}

.review-popup__bottom {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.review-popup__all {
  padding: 10px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
}
