/* ==========================================================================
   sections.css — шапка, обложка, секции страницы, подвал, адаптивность
   ========================================================================== */

/* --- Шапка ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(23, 20, 15, 0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

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

.nav__list {
  display: flex;
  gap: 28px;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__footer {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

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

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.burger__line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.burger__line:nth-child(1) {
  top: 15px;
}

.burger__line:nth-child(2) {
  top: 21px;
}

.burger__line:nth-child(3) {
  top: 27px;
}

.site-header.is-nav-open .burger__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-nav-open .burger__line:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .burger__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Обложка и автор --------------------------------------------------- */

.hero {
  padding-bottom: clamp(40px, 6vw, 76px);
  scroll-margin-top: var(--header-h);
}

.hero__media {
  aspect-ratio: 1680 / 582;
  max-height: 560px;
  overflow: hidden;
  background: var(--paper-3);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__author {
  max-width: 820px;
  margin: -64px auto 0;
  padding-inline: 8px;
  text-align: center;
  position: relative;
}

.hero__avatar {
  width: 132px;
  height: 132px;
  margin-inline: auto;
  border: 6px solid #fff;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

.hero__role {
  display: block;
  margin-top: 12px;
  font-size: clamp(0.78rem, 1.3vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__lead {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 1.0625rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* --- Город ------------------------------------------------------------- */

.city {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 60vw, 680px);
  overflow: hidden;
  color: #fff;
}

.city__media,
.city__shade {
  position: absolute;
  inset: 0;
}

.city__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city__shade {
  background: linear-gradient(
    90deg,
    rgba(10, 8, 6, 0.9) 0%,
    rgba(10, 8, 6, 0.72) 45%,
    rgba(10, 8, 6, 0.32) 100%
  );
}

.city__inner {
  position: relative;
  z-index: 1;
}

.city__content {
  max-width: 620px;
  padding-block: clamp(56px, 8vw, 96px);
}

.city__title {
  margin-top: 10px;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}

.city__text {
  margin-top: 20px;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: rgba(255, 255, 255, 0.86);
}

.quote {
  margin-top: 30px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}

.quote__text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.quote__author {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* --- Призыв ------------------------------------------------------------ */

.cta-band {
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band__text {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* --- Виды экскурсий ---------------------------------------------------- */

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

/* --- Экскурсии --------------------------------------------------------- */

.tours {
  display: grid;
  gap: clamp(56px, 7vw, 104px);
}

.tour {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.tour:nth-child(even) .tour__media {
  order: 2;
}

.tour:nth-child(even) .tour__body {
  order: 1;
}

.tour__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.tour__title {
  margin-top: 12px;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}

.tour__text {
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--muted);
}

.tour__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3.5vw, 56px);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.tour__meta-item dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tour__meta-item dd {
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 600;
}

.tour__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* --- Отзывы ------------------------------------------------------------ */

.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* --- Видеоотзывы ------------------------------------------------------- */

.video-reviews {
  padding-top: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.video-card__caption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

/* --- Заявка ------------------------------------------------------------ */

.order {
  position: relative;
  padding-block: clamp(72px, 9vw, 120px);
  overflow: hidden;
  color: #fff;
  scroll-margin-top: var(--header-h);
}

.order__bg {
  position: absolute;
  inset: 0;
}

.order__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 8, 0.74), rgba(13, 11, 8, 0.9));
}

.order__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.order__title {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.order__text {
  max-width: 440px;
  margin-top: 18px;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
}

.order__points {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.86);
}

.order__points li {
  position: relative;
  padding-left: 26px;
}

.order__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--gold-light);
}

.order__phone {
  display: grid;
  gap: 4px;
  margin-top: 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.order__phone a {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.order-form {
  padding: clamp(22px, 3vw, 38px);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.3s var(--ease);
}

.order-form.is-highlighted {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45), 0 0 0 8px rgba(184, 35, 31, 0.45),
    var(--shadow-lg);
}

.order-form__fields[hidden] {
  display: none;
}

.order-form__submit {
  width: 100%;
  margin-top: 10px;
}

.order-form__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.order-form__status {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--red);
}

.order-form__status:empty {
  display: none;
}

.order-form__success {
  text-align: center;
  padding-block: 12px;
}

.order-form__success[hidden] {
  display: none;
}

.order-form__success-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 26px;
  font-weight: 700;
}

.order-form__success-title {
  font-size: 1.45rem;
}

.order-form__success-text {
  margin-top: 10px;
  color: var(--muted);
}

.order-form__success .btn {
  margin-top: 22px;
}

/* --- Контакты ---------------------------------------------------------- */

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.contacts__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.contacts__phone {
  display: inline-block;
  margin-top: 14px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--red);
}

.contacts__phone:hover {
  color: var(--red-dark);
}

.contacts__text {
  margin-top: 20px;
  color: var(--muted);
}

.contacts__city {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.contacts .socials {
  margin-top: 26px;
}

/* --- Подвал ------------------------------------------------------------ */

.footer {
  padding-block: 44px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.footer__brand {
  display: grid;
  gap: 2px;
}

.footer__name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.footer__role {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

.footer__nav a:hover,
.footer__meta a:hover {
  color: #fff;
}

.footer__meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.footer__meta a {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.footer__meta .footer__policy {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.footer__meta .footer__policy:hover {
  color: #fff;
}

/* --- Мобильная панель -------------------------------------------------- */

.mobile-bar {
  display: none;
}

/* --- Адаптивность ------------------------------------------------------ */

@media (max-width: 1180px) {
  .site-header__phone {
    display: none;
  }
}

@media (max-width: 1024px) {
  .types {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .burger {
    display: block;
  }

  .nav {
    display: none;
  }

  .site-header__cta {
    display: none;
  }

  .site-header.is-nav-open .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 10px var(--gutter) 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(23, 20, 15, 0.12);
  }

  .site-header.is-nav-open .nav::before {
    content: none;
  }

  .nav-scrim {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 56;
    background: rgba(23, 20, 15, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  }

  .nav-scrim.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .site-header.is-nav-open .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-header.is-nav-open .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--paper-3);
  }

  .site-header.is-nav-open .nav__link::after {
    display: none;
  }

  .site-header.is-nav-open .nav__footer {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    justify-items: start;
  }

  .nav__footer .nav__phone {
    font-size: 17px;
    font-weight: 600;
  }

  .tour {
    grid-template-columns: 1fr;
  }

  .tour:nth-child(even) .tour__media,
  .tour:nth-child(even) .tour__body {
    order: 0;
  }

  .order__inner,
  .contacts {
    grid-template-columns: 1fr;
  }

  .contacts__media {
    max-width: 520px;
  }

  .order__intro {
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: flex;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }

  .mobile-bar .btn {
    flex: 1;
    padding-block: 12px;
  }

  body {
    padding-bottom: 74px;
  }

  .to-top {
    display: none;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 22px;
  }

  .footer__meta {
    justify-items: start;
    text-align: left;
  }

  .footer__nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .hero__media {
    aspect-ratio: 1680 / 582;
  }

  .hero__author {
    margin-top: 0;
    padding-top: 26px;
  }

  .hero__avatar {
    width: 108px;
    height: 108px;
    border-width: 5px;
  }

  .city__shade {
    background: linear-gradient(
      180deg,
      rgba(13, 11, 8, 0.5) 0%,
      rgba(13, 11, 8, 0.85) 70%
    );
  }

  .reviews,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .types {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .type-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
    align-items: center;
  }

  .type-card__icon {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .nav__list {
    gap: 18px;
  }

  .tour__actions .btn {
    flex: 1;
  }

  .video__play {
    width: 68px;
    height: 68px;
  }
}
