:root{
  /* Brandbook */
  --pine:#055732;   /* RGB 5 87 50 */
  --olive:#697636;  /* RGB 105 118 54 */

  /* UI */
  --bg:#F4F7F6;
  --text:#1F2937;
  --muted:#6B7280;

  --card: #ffffff;
  --stroke: rgba(0,0,0,.08);

  --radius-card: 18px;
  --radius-btn: 14px;
  --shadow: 0 14px 40px rgba(0,0,0,.08);

  --container: 1280px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.5;
}

img{max-width:100%; display:block; height:auto}
a{color:inherit; text-decoration:none}
a:hover{color:var(--olive)}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

.muted{color:var(--muted)}
.fine{font-size:12px}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(10px) saturate(180%);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}
.header-phone{
  display:none;
  align-items:center;
  gap:6px;
  font-weight:800;
  font-size:14px;
  color:var(--pine);
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(5,87,50,.25);
  background:rgba(5,87,50,.06);
  white-space:nowrap;
}

.header-phone__icon{
  width:16px;
  height:16px;
  fill:currentColor;
  flex-shrink:0;
}

.header-phone:hover{
  color:var(--olive);
  border-color:rgba(105,118,54,.45);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand__logo{
  height:46px;
  width:auto;
}
.brand__text small{
  display:block;
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav a{
  font-weight:700;
  color:rgba(31,41,55,.92);
}

.header__actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.icon{
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  display:grid;
  place-items:center;
}
.icon svg{width:20px;height:20px; fill:rgba(31,41,55,.85)}
.icon:hover{border-color:rgba(105,118,54,.35)}
.icon:hover svg{fill:var(--olive)}

/* Burger + mobile menu */
.burger{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  display:none;
  padding:10px;
  cursor:pointer;
}
.burger span{
  display:block;
  height:2px;
  background:rgba(31,41,55,.85);
  border-radius:2px;
  margin:6px 0;
}
.mobile{
  display:none;
  border-top:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.92);
}
.mobile.is-open{display:block}
.mobile__inner{
  padding:14px 0 18px;
  display:grid;
  gap:10px;
}
.mobile__inner a{
  padding:10px 12px;
  border-radius:12px;
  background: rgba(5,87,50,.06);
  border: 1px solid rgba(5,87,50,.10);
  font-weight:700;
}
.mobile__cta{display:grid; gap:10px; margin-top:8px}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:var(--radius-btn);
  border:1px solid transparent;
  font-weight:800;
  cursor:pointer;
  transition: transform .08s ease, filter .15s ease, box-shadow .15s ease, border-color .15s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:active{transform: translateY(1px)}
.btn--lg{padding:14px 18px}
.btn--small{padding:10px 12px; font-weight:800; border-radius:12px}

.btn--primary{
  background: var(--pine);
  color:#fff;
  box-shadow: 0 14px 30px rgba(5,87,50,.22);
}
.btn--primary:hover{filter: brightness(1.06)}
.btn--outline{
  background: transparent;
  color: var(--pine);
  border-color: rgba(5,87,50,.35);
}
.btn--outline:hover{border-color: rgba(105,118,54,.55); color: var(--olive)}
.btn--ghost{
  background: transparent;
  border-color: transparent;
  color: rgba(31,41,55,.92);
}
.btn--ghost:hover{color: var(--olive)}
.w-full{width:100%}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  padding: 52px 0 34px;
}
.hero__bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(105,118,54,.30), transparent 60%),
    linear-gradient(180deg, rgba(5,87,50,.10) 0%, rgba(5,87,50,.55) 58%, rgba(5,87,50,.88) 100%),
    image-set(
      url("/assets/img/hero.webp") type("image/webp"),
      url("/assets/img/hero.jpg") type("image/jpeg")
    )
    center/cover no-repeat;
  filter:saturate(1.08) contrast(1.02);
  transform:scale(1.02);
}
.hero__grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:start;
}

.hero__content{color:#fff; padding: 18px 0}
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-weight:700;
  font-size:14px;
}
.pill__dot{
  width:10px;height:10px;border-radius:99px;
  background: var(--olive);
  box-shadow: 0 0 0 6px rgba(105,118,54,.18);
}
/* Кнопка на фото: контраст + лёгкая подложка */
.btn--on-photo{
  color:#fff !important;
  border-color: rgba(255,255,255,.70) !important;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.btn--on-photo:hover{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.85) !important;
  color:#fff !important;
}

h1,h2,h3{font-family: Manrope, Inter, system-ui, sans-serif; letter-spacing:-.02em}
h1{margin:14px 0 10px; font-size:56px; line-height:1.05}
.hero__content p{
  margin:0 0 16px;
  max-width:60ch;
  font-size:18px;
  color: rgba(255,255,255,.90);
}
.hero__actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:10px}

.stats{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.stat{
  padding:12px 14px;
  border-radius:16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
}
.stat strong{display:block; font-size:15px}
.stat span{display:block; font-size:13px; margin-top:2px; color: rgba(255,255,255,.86)}

/* Lead */
.lead{
  background: rgba(244,247,246,.96);
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.lead h2{margin:6px 6px 4px; font-size:22px; color: var(--pine)}
.lead__sub{margin:0 6px 12px; color: rgba(31,41,55,.70)}

.form{display:grid; gap:12px}
.form__row{display:grid; grid-template-columns: 1fr 1fr; gap:12px}

.field__label{
  display:block;
  font-size:12px;
  font-weight:900;
  color: rgba(31,41,55,.72);
  margin:0 0 6px;
}
.field__input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  font:inherit;
  outline:none;
}
.field__input:focus{
  border-color: rgba(105,118,54,.55);
  box-shadow: 0 0 0 6px rgba(105,118,54,.14);
}

.lead__quick{display:grid; gap:10px; margin-top:8px}

.notice{
  display:none;
  margin-top:8px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
}
.notice.is-show{display:block}
.notice.is-ok{border-color: rgba(5,87,50,.35); background: rgba(5,87,50,.06)}
.notice.is-err{border-color: rgba(220,38,38,.35); background: rgba(220,38,38,.06)}

/* Sections */
.section{padding:76px 0; background:#fff}
.section--soft{background: var(--bg)}
.section--dark{
  background: linear-gradient(180deg, rgba(5,87,50,1) 0%, rgba(4,58,35,1) 100%);
  color:#fff;
}
.head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}
.head h2{margin:0; font-size:40px; line-height:1.12; color: var(--pine)}
.head p{margin:8px 0 0; color: var(--muted); max-width:70ch}
.head--dark h2{color:#fff}
.head--dark p{color: rgba(255,255,255,.78)}

/* Grid + cards */
.grid{display:grid; gap:16px}
.grid--tours{grid-template-columns: repeat(3, minmax(0, 1fr))}
.grid--4{grid-template-columns: repeat(4, minmax(0, 1fr))}
.grid--3{grid-template-columns: repeat(3, minmax(0, 1fr))}

.card{
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
  overflow:hidden;
}
.section--dark .card{background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12)}

/* Tour card */
.tour__media{
  height:190px;
  background:center/cover no-repeat;
  position:relative;
}
.badges{
  position:absolute;
  top:12px; left:12px;
  display:flex; gap:8px; flex-wrap:wrap;
}
.badge{
  padding:7px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(0,0,0,.06);
  font-weight:900;
  font-size:12px;
}
.tour__body{padding:14px 14px 16px}
.tour__title{margin:0 0 10px; font-size:18px; line-height:1.25}
.chips{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px}
.chip{
  padding:7px 10px;
  border-radius:999px;
  background: rgba(5,87,50,.06);
  color: rgba(5,87,50,.92);
  border: 1px solid rgba(5,87,50,.10);
  font-weight:900;
  font-size:12px;
}
.chip--soft{
  background: rgba(105,118,54,.10);
  color: rgba(105,118,54,.98);
  border-color: rgba(105,118,54,.16);
}
.tour__route{
  color: rgba(31,41,55,.75);
  font-weight:700;
  font-size:13px;
}
.tour__bottom{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.price__label{font-size:12px; color: rgba(31,41,55,.65); font-weight:800}
.price__value{font-size:18px; color: var(--pine)}

/* Feature */
.feature{padding:16px}
.feature__icon{font-size:28px}
.feature h3{margin:8px 0 6px}
.feature p{margin:0; color: rgba(31,41,55,.80)}

/* Dark "glass" cards */
.glass{
  padding:16px;
  border-radius:16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.glass h3{margin:0 0 6px}
.glass p{margin:0; color: rgba(255,255,255,.80)}

/* Reviews */
.review{padding:16px}
.review__top{display:flex; align-items:center; gap:12px; margin-bottom:10px}
.avatar{
  width:44px;height:44px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, var(--pine), var(--olive));
  color:#fff;
  font-weight:900;
  font-family: Manrope, Inter, system-ui, sans-serif;
}
.review p{margin:0; color: rgba(31,41,55,.92)}

/* Contacts */
.contacts{display:grid; grid-template-columns: 1fr 1fr; gap:16px}
.contacts__card{padding:16px}
.list{margin:10px 0 0; padding:0; list-style:none; display:grid; gap:10px}
.row{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.map{
  margin-top:12px;
  height:220px;
  border-radius:16px;
  background: linear-gradient(135deg, rgba(5,87,50,.10), rgba(105,118,54,.12));
  border: 1px dashed rgba(0,0,0,.14);
  display:grid;
  place-items:center;
  text-align:center;
}

/* Footer */
.footer{
  background: #043a23;
  color:#fff;
  padding:26px 0;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.footer__links{display:flex; gap:14px; flex-wrap:wrap}
.footer__links a{color: rgba(255,255,255,.86)}
.footer__links a:hover{color:#fff}

/* Responsive */
@media (max-width: 1100px){
  h1{font-size:46px}
  .hero__grid{grid-template-columns: 1fr; gap:18px}
  .stats{grid-template-columns: 1fr}
  .grid--tours{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .grid--4{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .grid--3{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .contacts{grid-template-columns: 1fr}
  .header__actions .btn--primary{ display:none; }
  .header__inner{ gap:10px; }
  .brand{ min-width: 0; gap:10px; }
  .header{
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 760px){
  .nav{display:none}
  .burger{display:inline-block}
  h1{font-size:38px}
  .section{padding:56px 0}
  .head{flex-direction:column; align-items:flex-start}
  .form__row{grid-template-columns: 1fr}
  .grid--tours{grid-template-columns: 1fr}
  .brand{ min-width: 0; gap:10px; }
.brand__logo{ height:38px; }
.brand__text{ display:none; }
.header__actions .btn--primary{ display:none; }
.header__actions{ gap: 8px;}
.icon{ width:40px; height:40px; border-radius:13px; }
.header__inner{ gap:10px; }
  .header{
    padding-left: 10px;
    padding-right: 10px;
  }
  .header-phone{
    display:inline-flex;
  }
    .back-to-top{
    right:14px;
    bottom:70px;
  }
}
.back-to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  width:48px;
  height:48px;
  border-radius:14px;
  border:1px solid rgba(5,87,50,.25);
  background:rgba(5,87,50,.85);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:
    opacity .25s ease,
    transform .25s ease,
    background .15s ease,
    box-shadow .15s ease;
  box-shadow:0 10px 24px rgba(5,87,50,.25);
  z-index:40;
}

.back-to-top svg{
  width:20px;
  height:20px;
  fill:currentColor;
}

.back-to-top.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.back-to-top:hover{
  background:var(--olive);
  box-shadow:0 14px 30px rgba(105,118,54,.35);
}
