/* HERO */

.hero {
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 50%;
  gap: 60px;
  align-items: center;
  width: 100%;
  height: 90vh;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.hero__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-regular);
  line-height: 1.15;
  color: #1a1a1a;
  margin: 16px 0 16px;
}

.hero__sub {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
  max-width: 42ch;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* КНОПКИ */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  border: 2px solid transparent;
}

.btn--red {
  background: #bb1f11;
  color: #fff;
  border-color: #bb1f11;
}

.btn--red:hover {
  background: #9e1a0e;
  border-color: #9e1a0e;
}

.btn--outline {
  background: transparent;
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.2);
}

.btn--outline:hover {
  border-color: #bb1f11;
  color: #bb1f11;
}

/* BADGE СПРАВА */

.hero__badge {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/pattern.png") center / auto repeat;
  opacity: 0.08;
  display: block;
  max-width: 100%;
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.hero__badge-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
}

.hero__badge-logo {
  margin-inline: auto;
  margin-bottom: 20px;
}

/* ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ */

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 32px;
}

/* НАПРАВЛЕНИЯ */

.directions__inner {
  max-width: 1280px;
  margin-inline: auto;
}

.directions__layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #fff;
}

/* ТАБЫ */

.directions__tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.directions__tab {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  line-height: 1.4;
}

.directions__tab:last-child {
  border-bottom: none;
}

.directions__tab:hover {
  background: rgba(187, 31, 17, 0.04);
  color: #bb1f11;
}

.directions__tab.active {
  background: #bb1f11;
  color: #fff;
  font-weight: 500;
}

/* ПАНЕЛИ */

.directions__panel {
  display: none;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
}

.directions__panel.active {
  display: flex;
}

.directions__panel-img img {
  width: 100%;
  object-fit: cover;
  background: #f0f0f0;
}

.directions__panel-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.directions__panel-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: none;
}

/* ПОЧЕМУ СТОИТ ПОСЕТИТЬ */

.why {
  padding-block: 80px;
}

.why__inner {
  max-width: 1280px;
  margin-inline: auto;
}

.why__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}

.why__head .section-title {
  margin-bottom: 0;
}

.subtitle {
  font-size: 16px;
  color: #888;
  white-space: nowrap;
}

.subtitle span {
  color: #bb1f11;
  font-weight: 600;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.why__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease;
}

.why__card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.why__card--red {
  background: #bb1f11;
  border-color: #bb1f11;
}

.why__card--red .why__card-title,
.why__card--red .why__card-text {
  color: #fff;
}

.why__card--red .why__card-link {
  color: rgba(255, 255, 255, 0.7);
}

.why__card--red .why__card-link:hover {
  color: #fff;
}

.why__card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.why__card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 4px;
}

.why__card-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  flex: 1;
  max-width: none;
}

.why__card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #888;
  margin-top: 8px;
  border-radius: 50%;
  align-self: flex-start;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.why__card-link {
  align-self: flex-end;
}

.why__card-link:hover {
  background: #bb1f11;
  border-color: #bb1f11;
  color: #fff;
}

/* ЗАБРОНИРОВАТЬ */

.booking {
  padding: 80px 0 0;
}

.booking__inner {
  max-width: 1280px;
  margin-inline: auto;
}

.booking__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking__card {
  display: grid;
  grid-template-columns: 320px 1fr auto;
  align-items: center;
  gap: 32px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.booking__card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.booking__card-img {
  flex-shrink: 0;
  height: 100%;
}

.booking__card-img img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}

.booking__card-body {
  padding-block: 28px;
}

.booking__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.booking__card-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  max-width: none;
}

.booking__card-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 32px 28px 0;
  flex-shrink: 0;
}

.booking__card-price {
  font-size: 14px;
  color: #888;
  white-space: nowrap;
}

.booking__card-price strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* ЧАСТЫЕ ВОПРОСЫ */

.faq {
  padding-block: 80px;
}

.faq__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.faq__left .section-title {
  margin-bottom: 20px;
}

.faq__desc {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  max-width: none;
}

.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #fbfbfb;
  padding: 5px 20px;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: #bb1f11;
}

.faq__question[aria-expanded="true"] {
  color: #bb1f11;
}

.faq__icon {
  flex-shrink: 0;
  color: #bb1f11;
  transition: transform 0.3s ease;
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq__answer.open {
  grid-template-rows: 1fr;
}

.faq__answer > div {
  overflow: hidden;
}

.faq__answer > div > p {
  padding: 0 0 20px;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  max-width: none;
}

/* ПАРТНЁР */

.partner {
  margin-top: 60px;
}

.partner .subtitle {
  display: flex;
  justify-content: end;
  margin-bottom: 40px;
  gap: 5px;
}

.partner__title {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: #1a1a1a;
  text-align: right;
  margin-bottom: 24px;
}

.partner__title span {
  color: #bb1f11;
  font-weight: 700;
}

.partner__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.partner__card {
  background: #f5f5f5;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner__card-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.partner__card-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #bb1f11;
  line-height: 1;
}

.partner__card-label {
  font-size: 15px;
  color: #666;
}

.partner__photo {
  grid-column: 1 / 3;
  overflow: hidden;
}

.partner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #e0e0e0;
  min-height: 260px;
}

.directions__panel-text ul {
  padding-left: 20px;
}

/* АДАПТИВ */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__badge {
    max-width: 400px;
  }

  .directions__layout {
    grid-template-columns: 280px 1fr;
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking__card {
    grid-template-columns: 240px 1fr auto;
    gap: 24px;
  }

  .faq__inner {
    gap: 48px;
  }

  .partner__card-num {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero__inner {
    padding: 32px 16px;
    height: auto;
    min-height: 60svh;
  }

  .hero {
    padding-top: 15px;
  }

  .hero__title {
    max-width: none;
  }

  .hero__badge {
    max-width: none;
  }

  .btn {
    padding: 11px 22px;
    font-size: 14px;
  }

  .directions {
    padding-block: 48px;
  }

  .directions__layout {
    grid-template-columns: 1fr;
  }

  .directions__tabs {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-direction: column;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .directions__tabs::-webkit-scrollbar {
    display: none;
  }

  .directions__tab {
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.07);
    padding: 12px 16px;
  }

  .directions__tab:last-child {
    border-right: none;
  }

  .directions__panel {
    padding: 24px 20px;
  }

  .directions__panel-img img {
    height: 200px;
  }

  .why {
    padding-block: 48px;
  }

  .why__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .why__subtitle {
    white-space: normal;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .booking {
    padding-block: 48px;
  }

  .booking__card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking__card-img img {
    min-height: 200px;
    max-height: 220px;
  }

  .booking__card-body {
    padding: 20px 20px 0;
  }

  .booking__card-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
  }

  .booking__card-price strong {
    display: inline;
    font-size: 1rem;
  }

  .partner .subtitle {
    display: flex;
    justify-content: start;
    margin-bottom: 40px;
    gap: 5px;
  }

  .faq {
    padding-block: 48px;
  }

  .faq__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .partner__title {
    text-align: left;
  }

  .partner__grid {
    grid-template-columns: 1fr 1fr;
  }

  .partner__photo {
    grid-column: 1 / 3;
  }

  .partner__card:last-child {
    grid-column: 1 / 3;
  }
}

@media (max-width: 380px) {
  .hero__inner {
    padding: 32px 16px;
    height: auto;
    min-height: 70svh;
  }

  .hero__label {
    font-size: 12px;
  }

  .hero__badge-inner {
    padding: 24px 16px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }

  .hero__btns {
    flex-direction: column;
  }

  .directions__tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .directions__panel {
    padding: 20px 16px;
  }

  .why__grid {
    gap: 10px;
  }

  .why__card {
    padding: 24px 20px;
  }

  .booking__card-body {
    padding: 16px 16px 0;
  }

  .booking__card-footer {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .faq__item {
    padding: 4px 12px;
  }

  .faq__question {
    font-size: 14px;
  }

  .partner__grid {
    grid-template-columns: 1fr;
  }

  .partner__photo {
    grid-column: 1;
  }

  .partner__card:last-child {
    grid-column: 1;
  }

  .partner__card-num {
    font-size: 2rem;
  }
}
