/* Основные цвета и общие настройки */
:root {
  --paper: #f7f4e8;
  --ink: #343a32;
  --green: #737d55;
  --olive: #a1a477;
  --sand: #d6c5a5;
  --line: #dedbcf;
  --white: #fffdf6;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial,Helvetica,sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.site-header {
  height: 82px;
  padding: 0 6.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  position: relative;
  z-index: 5;
}
.logo {
  font-family: Georgia,serif;
  font-size: 38px;
  line-height: 1;
  color: var(--green);
  letter-spacing: -4px;
}
.site-header nav {
  display: flex;
  gap: clamp(18px,4vw,54px);
  align-items: center;
}
.site-header nav a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #5e6258;
  transition: color .2s;
}
.site-header nav a:hover,.site-header nav .active {
  color: var(--green);
}
h1,h2 {
  font-family: Georgia,'Times New Roman',serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.5px;
}
h1 {
  font-size: clamp(42px,7vw,88px);
}
h2 {
  font-size: clamp(32px,4vw,54px);
}
h1 em,h2 em {
  font-weight: 400;
  color: var(--green);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}
/* Главная страница и верхний экран */
.hero {
  height: min(690px,76vw);
  min-height: 500px;
  position: relative;
  overflow: hidden;
  background: #aaa;
}
.hero>img,.feature>img,.about-hero>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero>img {
  position: absolute;
  inset: 0;
  filter: saturate(.7);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(25,30,24,.42),rgba(25,30,24,.08)),linear-gradient(0deg,rgba(25,30,24,.35),transparent 70%);
}
.hero-content {
  position: absolute;
  left: 12%;
  top: 19%;
  max-width: 700px;
  color: #fffdf6;
}
.hero-content .eyebrow {
  color: #f0e7d2;
}
.hero-content h1 {
  margin: 16px 0 18px;
}
.hero-content h1 em {
  color: #e9dfca;
}
.hero-content>p:not(.eyebrow) {
  font-size: 17px;
  max-width: 440px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: var(--green);
  color: white;
  padding: 15px 22px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background .2s;
}
.button:hover {
  background: #555f40;
}
.button-light {
  background: var(--paper);
  color: var(--ink);
  margin-top: 18px;
}
.button-light:hover {
  background: var(--sand);
}
.hero-note {
  position: absolute;
  right: 7%;
  bottom: 36px;
  color: #fffdf6;
  text-align: right;
  font-family: Georgia,serif;
  font-size: 14px;
  font-style: italic;
}
.section-wrap {
  padding: 95px 10%;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
}
.intro h2 {
  margin: 15px 0;
}
.intro-copy p {
  font-size: 16px;
  color: #5e6258;
  line-height: 1.9;
}
.text-link {
  display: inline-block;
  margin-top: 10px;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 5px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.feature {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  min-height: 420px;
  background: #e9e6d9;
}
.feature>img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.feature-copy {
  padding: 9% 12%;
  align-self: center;
}
.feature-copy h2 {
  margin: 16px 0;
}
.feature-copy>p:not(.eyebrow) {
  color: #666b5d;
  line-height: 1.8;
}
.feature-copy .button {
  margin-top: 16px;
}
.quote {
  text-align: center;
  background: #e9e8dc;
  padding: 75px 12%;
}
.quote p {
  font: italic clamp(24px,3.5vw,42px)/1.3 Georgia,serif;
  max-width: 850px;
  margin: 0 auto 18px;
}
.quote span {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
}
.small-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.small-cta h2 {
  margin: 10px 0 0;
}
footer {
  padding: 28px 6.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #73766a;
}
footer .logo {
  font-size: 30px;
}
footer>a:last-child {
  letter-spacing: 1px;
  text-transform: uppercase;
}
.page-main {
  min-height: 65vh;
}
.page-heading {
  padding: 75px 8% 50px;
  max-width: 1000px;
}
.page-heading h1 {
  margin: 10px 0 20px;
}
.page-heading>p:last-child {
  max-width: 590px;
  color: #6a6d62;
}
/* Список маршрутов и карточки */
.routes-list {
  padding: 0 6.5% 60px;
}
.level-section {
  margin: 10px 0 52px;
}
.level-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.level-title h2 {
  font-size: 26px;
  letter-spacing: 0;
  margin: 0;
}
.level-title span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  border: 1px solid var(--sand);
  padding: 5px 10px;
}
.level-title:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 18px;
}
.route-card {
  background: var(--white);
  transition: transform .25s,box-shadow .25s;
  cursor: pointer;
  min-width: 0;
}
.route-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px #343a3210;
}
.route-card img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}
.route-card-body {
  padding: 15px 14px 18px;
}
.route-card .region {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin: 0 0 8px;
}
.route-card h3 {
  font: normal 21px/1.15 Georgia,serif;
  margin: 0 0 15px;
}
.route-card .date {
  font-size: 11px;
  color: #77786c;
  margin: 0 0 12px;
}
.route-card .card-link {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 3px;
}
.notice {
  max-width: 900px;
  margin: 0 auto 55px;
  padding: 0 24px;
  color: #77786c;
  font-size: 12px;
}
/* Подробная страница маршрута и форма заявки */
.detail-main {
  padding-bottom: 70px;
}
.detail-hero {
  height: 440px;
  position: relative;
  overflow: hidden;
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#20251dbb,transparent 80%);
}
.detail-hero-text {
  position: absolute;
  z-index: 1;
  left: 9%;
  bottom: 35px;
  color: #fffdf6;
  max-width: 850px;
}
.detail-hero-text .eyebrow {
  color: #e4d8bd;
}
.detail-hero-text h1 {
  font-size: clamp(36px,6vw,68px);
  margin: 8px 0;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(270px,.8fr);
  gap: 8%;
  padding: 55px 10%;
}
.detail-copy h2 {
  font-size: 30px;
  letter-spacing: 0;
  margin: 0 0 14px;
}
.detail-copy p {
  color: #65695e;
  line-height: 1.9;
}
.detail-copy .detail-section {
  margin-bottom: 35px;
}
.detail-aside {
  background: #ece9dd;
  padding: 28px;
  height: max-content;
}
.detail-aside h2 {
  font-size: 25px;
  margin: 0 0 20px;
}
.info-row {
  border-bottom: 1px solid #d6d3c7;
  padding: 12px 0;
}
.info-row:last-of-type {
  border-bottom: 0;
}
.info-row span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 3px;
}
.info-row strong {
  font-size: 13px;
  font-weight: 500;
}
.apply-form {
  padding: 25px 10%;
  background: #eeecdf;
}
.apply-form h2 {
  font-size: 34px;
  margin: 0 0 8px;
}
.apply-form>p {
  color: #6c7065;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 25px 0;
}
.form-field label {
  display: block;
  font-size: 11px;
  color: #5e6258;
  margin-bottom: 6px;
}
.form-field input {
  width: 100%;
  padding: 13px;
  border: 1px solid #d5d2c5;
  background: #fffdf6;
  font: inherit;
  color: var(--ink);
}
.form-field input:focus {
  outline: 1px solid var(--green);
}
.form-field.full {
  grid-column: 1/-1;
}
.form-note {
  font-size: 11px!important;
  max-width: 800px;
}
.form-message {
  margin-top: 14px;
  color: var(--green);
  font-size: 13px;
}
/* Галерея и просмотр фотографий */
.gallery-grid {
  padding: 0 6.5% 70px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.gallery-item {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
  width: 100%;
  display: block;
}
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item span {
  display: block;
  background: #fffdf6;
  padding: 11px 13px;
  font: 16px Georgia,serif;
}
.lightbox {
  display: none;
  position: fixed;
  z-index: 20;
  inset: 0;
  background: #1f241eeF;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 5vw;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-height: 78vh;
  max-width: 90vw;
  object-fit: contain;
}
.lightbox p {
  color: #fffdf6;
  font: 18px Georgia,serif;
  margin: 15px;
}
.lightbox-close {
  position: absolute;
  right: 28px;
  top: 16px;
  background: none;
  border: 0;
  color: white;
  font-size: 42px;
  cursor: pointer;
}
/* Страница о клубе и контакты */
.about-hero {
  height: 450px;
  position: relative;
}
.about-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#20251d88,transparent);
}
.about-hero>div {
  position: absolute;
  z-index: 1;
  left: 10%;
  top: 22%;
  color: #fffdf6;
}
.about-hero .eyebrow {
  color: #eee2c8;
}
.about-hero h1 {
  margin: 14px 0;
}
.about-hero h1 em {
  color: #eee2c8;
}
.about-text {
  padding: 80px 10%;
}
.lead {
  font: italic clamp(24px,3vw,36px)/1.4 Georgia,serif;
  max-width: 800px;
  margin: 0 0 65px;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 9%;
}
.story-grid article h2 {
  font-size: 30px;
  letter-spacing: 0;
  margin: 10px 0;
}
.story-grid article p {
  color: #666b5d;
  line-height: 1.9;
}
.number {
  color: var(--green);
  font: italic 22px Georgia,serif;
}
.contacts-page {
  padding: 85px 10% 110px;
  min-height: 75vh;
}
.contacts-page h1 {
  margin: 12px 0 45px;
}
.contact-card {
  border-top: 1px solid var(--line);
  max-width: 700px;
  padding-top: 25px;
}
.contact-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin: 25px 0 5px;
}
.contact-name,.contact-value {
  font: clamp(22px,3vw,32px) Georgia,serif;
  margin: 0;
}
.contact-value {
  display: inline-block;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 5px;
}
/* Адаптация для планшетов */
@media(max-width:1050px) {
  .route-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(3,1fr);
  }
  .route-card h3 {
    font-size: 19px;
  }
  .detail-layout {
    padding: 45px 7%;
    gap: 5%;
  }
}
/* Адаптация для телефонов */
@media(max-width:700px) {
  .site-header {
    height: auto;
    min-height: 74px;
    padding: 16px 5%;
    align-items: flex-start;
  }
  .logo {
    font-size: 34px;
  }
  .site-header nav {
    gap: 10px 16px;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 78%;
  }
  .site-header nav a {
    font-size: 9px;
    letter-spacing: .8px;
  }
  .hero {
    min-height: 530px;
    height: 72vh;
  }
  .hero-content {
    left: 7%;
    right: 7%;
    top: 18%;
  }
  .hero-content h1 {
    font-size: 48px;
  }
  .hero-note {
    font-size: 12px;
    right: 7%;
    bottom: 22px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 60px 8%;
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .feature>img {
    min-height: 260px;
    height: 260px;
  }
  .feature-copy {
    padding: 45px 8%;
  }
  .quote {
    padding: 55px 8%;
  }
  .small-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 60px 8%;
  }
  footer {
    padding: 24px 5%;
    gap: 15px;
    flex-wrap: wrap;
  }
  footer span {
    max-width: 50%;
  }
  .page-heading {
    padding: 50px 7% 30px;
  }
  .page-heading h1 {
    font-size: 49px;
  }
  .routes-list {
    padding: 0 5% 40px;
  }
  .route-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
  .route-card-body {
    padding: 12px;
  }
  .route-card h3 {
    font-size: 18px;
  }
  .level-title h2 {
    font-size: 22px;
  }
  .detail-hero {
    height: 380px;
  }
  .detail-hero-text {
    left: 7%;
    right: 7%;
    bottom: 25px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    padding: 35px 7%;
    gap: 20px;
  }
  .apply-form {
    padding: 35px 7%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: auto;
  }
  .gallery-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    padding: 0 5% 45px;
  }
  .gallery-item span {
    font-size: 14px;
    padding: 9px;
  }
  .about-hero {
    height: 390px;
  }
  .about-hero>div {
    left: 7%;
    right: 5%;
    top: 20%;
  }
  .about-text {
    padding: 55px 7%;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contacts-page {
    padding: 60px 7% 90px;
  }
}


/* Выравнивание карточек галереи */
.gallery-grid {
  align-items: start;
  grid-auto-flow: row;
}
.gallery-item {
  align-self: start;
  height: auto;
  margin: 0;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-item span {
  min-height: 58px;
  display: flex;
  align-items: center;
}


/* Навигация в подвале и возврат к списку маршрутов */
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a {
  letter-spacing: 1px;
  text-transform: uppercase;
}
.detail-back-wrap {
  padding: 24px 6.5% 0;
}
.detail-back-link {
  display: inline-block;
  color: var(--green);
  font-size: 12px;
  letter-spacing: .7px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 5px;
  transition: color .2s, border-color .2s;
}
.detail-back-link:hover {
  color: var(--ink);
  border-color: var(--green);
}
@media (max-width: 600px) {
  .footer-links { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .footer-links a { font-size: 10px; }
}
