:root {
  --black: #191a1e;
  --primary: #398a96;
  --blue: #1c8adb;
  --secondary: #145e68;
  --dark-blue: #006ebe;
  --white: #ffffff;
  --light-gray: #f7f6f4;
  --border-color: #b0e0e6;
  --whatsapp: #25d366;
  --whatsapp-hover: #1abe57;
  --telegram: #1c8adb;
  --telegram-hover: #006ebe;
  --error: #ff4a4a;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --overlay-light: rgba(0, 0, 0, 0.5);
  --gray-text: #383838;

  --font1: "Jeko", sans-serif;
  --font2: "Vasek", sans-serif;

  --transition: all 0.2s;
}

/*****************************************************/
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font1);
  color: var(--black);
  font-size: clamp(0.875rem, 0.8171rem + 0.2439vw, 1rem);
  line-height: 1.2;
  background-color: var(--light-gray);
}

body.lock {
  overflow: hidden;
  height: 100%;
}

[class*="__container"] {
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.hide {
  display: none;
}
@media (max-width: 430px) {
  .cc-window.cc-floating {
    font-size: 13px !important;
    padding: 10px !important;
  }
}
input,
textarea {
  outline: none;
  font-family: var(--font1);
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
}

.overlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--overlay-light);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

p {
  margin: 0;
}

/*****************************************************/

/* Header styles */
.header {
  padding: 32px 0;
}

.achievements-item {
  max-width: 330px;
  display: flex;
  align-items: flex-start;
  gap: 3px;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.header__logo {
  display: flex;
  align-items: center;
}

.logo__image {
  max-height: 45px;
  width: auto;
  height: auto;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__phone {
  color: var(--black);
  font-weight: 600;
  font-size: 18px;
}

.header__phone:hover {
  color: var(--primary);
}

.social {
  display: flex;
  gap: 15px;
}

.header__social {
  margin-left: 10px;
}

.header__social-link {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  transition: var(--transition);
}

.contacts-phones {
  display: flex;
}

.contacts-phones__list {
  display: flex;
  flex-direction: column;
}

.header__social-link:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.achievements-item__icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.contacts-phones__phone {
  color: var(--black);
  font-weight: 700;
}

.contacts-phones__phone:hover {
  color: var(--primary);
}

.social__icon {
  transition: var(--transition);
  width: 44px;
  height: 44px;
}

.social__link:hover .social__icon {
  transform: translateY(-2px);
}

/* Mobile menu */
.burger {
  position: relative;
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 8;
}

@media (min-width: 768px) {
  .burger {
    display: none;
  }
}

.burger input {
  display: none;
}

.burger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 24px;
  background: var(--white);
  border-radius: 9px;
  opacity: 1;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  transition: 0.25s ease-in-out;
}

.burger span:nth-of-type(1) {
  top: 30%;
  transform-origin: center;
  transform: translateX(-50%);
}

.burger span:nth-of-type(2) {
  top: 50%;
  transform-origin: center;
}

.cc-message a {
  color: lightblue;
  text-decoration: underline;
}

.burger span:nth-of-type(3) {
  top: 70%;
  transform-origin: center;
  transform: translateX(-50%);
}

.burger input:checked ~ span:nth-of-type(1) {
  transform: translateX(-50%) rotate(45deg);
  top: 50%;
}

.burger input:checked ~ span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
  transform: translateX(-50%) rotate(-45deg);
  top: 50%;
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--light-gray);
  z-index: 5;
  padding-top: 60px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu__container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

.mobile-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mobile-menu__icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.mobile-menu__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: var(--black);
}

.mobile-menu__social {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

@media (max-width: 1100px) {
  .achievements-item {
    max-width: 240px;
  }

  .social__icon {
    width: 36px;
    height: 36px;
  }

  .header__social {
    gap: 10px;
  }
}

@media (max-width: 1000px) {
  .header {
    font-size: 14px;
  }

  .logo__image {
    max-width: 150px;
    width: 100%;
  }

  .header__achievements {
    display: none;
  }
}

@media (max-width: 768px) {
  .header__burger {
    display: flex;
    background-color: var(--secondary);
    padding: 8px;
  }

  .header {
    padding: 20px 0;
  }

  .contacts-address {
    display: none;
  }

  .contacts-phones {
    margin-left: auto;
    z-index: 11;
  }

  .header__menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    padding: 30px 15px;
    transition: var(--transition);
  }

  .header__menu.active {
    left: 0;
  }

  .header__nav {
    flex-direction: column;
    align-items: center;
  }

  /* Дополнительные стили для мобильного меню */
  .header__social {
    display: none;
  }

  .mobile-menu {
    background-color: var(--light-gray);
  }

  .mobile-menu__container {
    padding-top: 30px;
  }

  .mobile-menu__social {
    justify-content: flex-start;
  }

  .social__icon {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 400px) {
  .contacts-phones__list {
    opacity: 0;
    transition: var(--transition);
    position: absolute;
    pointer-events: none;
    min-width: 165px;
    background: var(--white);
    z-index: 5;
    top: calc(100% + 20px);
    right: -50px;
    border-radius: 10px;
    padding: 14px 12px;
  }

  .contacts-phones.active .contacts-phones__list {
    opacity: 1;
    pointer-events: auto;
  }

  .contacts-phones__list::before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 10px 6px;
    border-color: transparent transparent var(--white) transparent;
    content: "";
    position: absolute;
    top: -10px;
    right: 56px;
  }

  .contacts-phones__phone {
    font-size: 16px;
  }

  .contacts-phones {
    position: relative;
  }

  .contacts-phones__icon {
    width: 28px;
    height: 28px;
  }
}

/*****************************************************/
.section {
  margin: clamp(3.75rem, 2.7083rem + 3.3333vw, 5.625rem) 0;
  overflow: hidden;
}

/*****************************************************/

.buttons {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px 15px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--primary);
  border: none;
}

.btn:hover {
  background-color: var(--secondary);
}

.btn:active {
  transform: scale(0.98);
}

.btn--whatsapp {
  background-color: var(--whatsapp);
  width: 260px;
  height: 55px;
}

.btn--whatsapp:hover {
  background-color: var(--whatsapp-hover);
}

.btn--telegram {
  background-color: var(--telegram);
  width: 220px;
  height: 55px;
}

.btn--telegram:hover {
  background-color: var(--telegram-hover);
}

.btn__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.btn--customized {
  background-color: var(--btn-custom-bg, var(--primary));
}

.btn--customized:hover {
  background-color: var(--btn-custom-bg, var(--secondary));
  filter: brightness(0.92);
}

.buttons__detail {
  display: flex;
  align-items: flex-start;

  flex-direction: row-reverse;
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
}

.buttons__detail-text {
  font-family: var(--font2);
  font-size: 34px;
  line-height: 0.8;
  text-align: center;
  max-width: 192px;
}

.buttons__arrow {
  width: 78px;
}

/*****************************************************/
.title {
  font-size: clamp(1.25rem, 0.5549rem + 2.9268vw, 2.75rem);
  font-weight: 700;
  margin-bottom: clamp(1.25rem, 0.8155rem + 1.8293vw, 2.1875rem);
}

.title span {
  color: var(--primary);
}

.title--center {
  text-align: center;
}

/*****************************************************/
.tour-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tour-list--3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr;
}

.tour-list--2 {
  grid-template-columns: repeat(3, 1fr);
}

.tour-list--2 .information {
  grid-column: 1;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}

.tour-item {
  border: 1px solid var(--border-color);
  border-radius: 20px 20px 10px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--white);
}

.tour-item__figure {
  aspect-ratio: 16/9;
}

.tour-item__figure picture {
  display: block;
  width: 100%;
  height: 100%;
}

.tour-item__figure img,
.tour-item__figure picture img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.tour-item__content {
  display: flex;
  padding: 20px;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.tour-item__title {
  font-size: clamp(1.125rem, 0.9512rem + 0.7317vw, 1.5rem);
  font-weight: 700;
}

.tour-item__price-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
  margin-bottom: 50px;
}

.tour-item__price span {
  font-weight: 700;
}

.tour-item__button {
  margin-top: auto;
  width: 100%;
}

.tour-item__price-list--text {
  margin-bottom: 25px;
}

.tour-item__text {
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  line-height: 1.5;
  flex-direction: column;
}

.tour-item__text strong,
.tour-item__text b {
  font-weight: 700;
}

@media (max-width: 980px) {
  .tour-list,
  .tour-list--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .tour-item__content {
    padding: 20px 15px 10px;
  }
}

@media (max-width: 480px) {
  .tour-list,
  .tour-list--3 {
    grid-template-columns: 1fr;
  }
}

/* Кнопка открытия квиза */
.quiz-trigger,
[data-quiz-open] {
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Стили для кнопки primary в подвале, если они ещё не определены */
.btn--primary {
  background-color: var(--whatsapp);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px var(--shadow-color);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px var(--shadow-color);
}
