@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Marck+Script&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');


:root {
  --bg-main: #F5F1E8;
  --bg-section: #E8DCC4;
  --text-main: #2C2824;
  --gold: #C9A227;
  --terracotta: #8B2E2E;
  --emerald: #1F4E3D;
  --ural-river: #3A5F7A;
  --feather-grass: #D4A574;
  --card-bg: #fff;
  --shadow-soft: 0 10px 30px rgba(44, 40, 36, 0.10);
  --shadow-hover: 0 14px 36px rgba(201, 162, 39, 0.22);
  --radius: 6px;
  --transition: 320ms cubic-bezier(0.4, 0, 0.2, 1);
  --container: min(1120px, 92vw);
  --photo-ratio: 4 / 3; /* 2560x1920 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
}
img { max-width: 100%; display: block; height: auto }
a { color: var(--emerald); text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: var(--container); margin-inline: auto; }
.section { padding: 36px 0; }
.section-alt { background: var(--bg-section); }

h1, h2, h3 {
  font-family: "Playfair", serif;
  line-height: 1.2;
  margin: 0 0 14px;
  font-weight: 900;
}
h1 { font-size: 64px; color: var(--gold); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.35rem); }

.subtitle-script {
  font-family: "Marck Script", cursive;
  color: var(--terracotta);
  font-size: 1.2rem;
}

.scroll-thread {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 99;
  background: linear-gradient(90deg, #f4deb0, var(--gold), #f4deb0);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.7);
  transition: width 100ms linear;
}

.hero {
  min-height: 75svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245,241,232,.25), rgba(245,241,232,.75)),
    url("assets/hero/hero.webp") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(245,241,232,0), var(--bg-main));
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 48px 0;
    max-width: 640px;
    animation: rise 800ms var(--transition);
    justify-items: center;
    background: white;
    border-radius: 36px;
    box-shadow: 0px 4px 20px 0px #0000003b;
    transform: translateY(-20px);
    text-align: -webkit-center;
    place-items: center;
    display: grid;
    justify-content: center;
}
.hero p {
  margin: 0 0 24px;
  max-width: 56ch;
  color: rgba(44,40,36,.82);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
font-family: "Marck Script", cursive;
}

.block-header {
    font-size: 24px;
    margin: 0;
    font-family: "Inter", sans-serif;
}


.btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}
.btn {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-position .6s ease;
  background-size: 200% 100%;
  background-position: left center;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  color: var(--text-main);
  background-image: linear-gradient(115deg, #d7b546, var(--gold), #e2c66a);
  box-shadow: 0 6px 16px rgba(201,162,39,.3);
}
.btn-secondary {
  color: var(--text-main);
  background: transparent;
  border-color: var(--gold);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201,162,39,.35);
  background-position: right center;
}

.section-head {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .9;
  z-index: 2;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-body { 
    padding: 14px 14px 16px;
    text-align: center; 
}
.card-title {
    margin: 0 0 8px;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
    padding-bottom: 2px;
}
.card-body > h4 {
    margin-top: 8px;
    margin-bottom: 12px;
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-size: 18px;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
}
.card-text { margin: 0; color: rgba(44,40,36,.86); }

/* Attractions */
.attractions-wrap { position: relative; }
.attractions-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 36px;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE / старый Edge */
}
.attractions-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.attraction-card { scroll-snap-align: start; }
.attraction-card img {
  aspect-ratio: var(--photo-ratio);
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.slider-controls {
  display: none;
  gap: 8px;
  position: absolute;
  right: 0; top: -50px;
}
.icon-btn {
  border: 1px solid rgba(44,40,36,.2);
  background: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
}
.icon-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,.18);
}

.subsection > h3 {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    margin: 22px 0;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.before-after {
  position: relative;
  aspect-ratio: var(--photo-ratio);
  overflow: hidden;
  border-radius: 6px;
  cursor: ew-resize;
  background: #ddd;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;  
  -webkit-tap-highlight-color: transparent;
}
.before-after img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}
.before-layer { clip-path: inset(0 50% 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: #fff;
  box-shadow: 0 0 0 1px rgba(44,40,36,.24);
  transform: translateX(-1px);
}
.ba-knob {
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(44,40,36,.22);
  display: grid; place-items: center;
  color: var(--gold);
  box-shadow: 0 4px 16px rgba(44,40,36,.2);
  font-size: 18px;
}
.ba-labels {
  position: absolute; inset: auto 8px 8px 8px;
  display: flex; justify-content: space-between;
  font-size: .82rem; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  pointer-events: none;
}

.ba-labels > span {
    background: rgba(44, 40, 36, .58);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: .8rem;
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: var(--photo-ratio);
  background: #ddd;
  cursor: zoom-in;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 400ms var(--transition);
  will-change: transform;
}
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;  
}
.slide-caption {
  position: absolute;
  left: 8px; bottom: 8px;
  background: rgba(44,40,36,.58);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: .8rem;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 2px;
}
.dot {
    width: 14px;
    height: 10px;
    border-radius: 12px;
    border: 0;
    background: rgba(44, 40, 36, .35);
    cursor: pointer;
}
.dot.active { background: var(--gold); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, .97);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overscroll-behavior: contain;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.lightbox-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-out;
}
.lightbox img.grabbing { cursor: grabbing; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  cursor: grab;
  background: transparent;
}
.lb-close, .lb-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}
.lb-close:hover, .lb-nav:hover { background: #fff; }
.lb-close {
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}
.lb-close:hover { transform: scale(1.08); }
.lb-nav.prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 8px; top: 50%; transform: translateY(-50%); }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--transition), transform .7s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 768+ */
@media (min-width: 768px) {
  h1 { font-size: 96px; color: var(--gold); }
  .block-header { font-size: 36px; }
  .section { padding: 48px 0; }
  .btns { flex-direction: row; max-width: none; }
  .grid.two-cols { grid-template-columns: repeat(2, 1fr); }
  .attractions-track { grid-auto-columns: 48%; }
}

/* 1024+ */
@media (min-width: 1024px) {
  .slider-controls { display: flex; }
  .attractions-track { grid-auto-columns: 32%; }
  .grid.three-cols { grid-template-columns: repeat(3, 1fr); }
}

/* 1440+ */
@media (min-width: 1440px) {
  .section { padding: 56px 0; }
  .attractions-track { grid-auto-columns: 26%; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}