:root {
  --ink: #202922;
  --ink-soft: #516058;
  --paper: #f8f5ed;
  --paper-deep: #eee7da;
  --forest: #263b2c;
  --forest-2: #38503d;
  --moss: #87966f;
  --clay: #a2664f;
  --sky: #cdd8d4;
  --line: rgba(32, 41, 34, 0.14);
  --white: #fffdf7;
  --shadow: 0 22px 70px rgba(38, 59, 44, 0.14);
  --radius: 8px;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(32, 41, 34, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 41, 34, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.1;
}

p {
  color: var(--ink-soft);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, padding 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--ink);
  background: rgba(248, 245, 237, 0.92);
  box-shadow: 0 12px 32px rgba(32, 41, 34, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  gap: 1px;
  text-transform: uppercase;
}

.brand span {
  font-size: 1.55rem;
  line-height: 1;
}

.brand small {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: lowercase;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 3.4vw, 48px);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.menu-button {
  display: none;
  justify-self: end;
  width: 46px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding-bottom: clamp(96px, 14vh, 150px);
  overflow: hidden;
  color: var(--white);
}

.hero__image,
.final-cta__image {
  position: absolute;
  inset: 0;
  background-image: image-set(
    url("assets/lavochne-panorama.avif") type("image/avif"),
    url("assets/lavochne-panorama.webp") type("image/webp"),
    url("assets/lavochne-panorama.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  animation: settle 1400ms ease forwards;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 26, 20, 0.78), rgba(16, 26, 20, 0.34) 46%, rgba(16, 26, 20, 0.08)),
    linear-gradient(0deg, rgba(16, 26, 20, 0.32), rgba(16, 26, 20, 0));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding-top: 90px;
}

.lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255, 253, 247, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 253, 247, 0.76);
}

.hero__actions,
.final-cta__content div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--forest);
  border-radius: 6px;
  padding: 0 28px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--solid {
  color: var(--white);
  background: var(--forest);
}

.button--ghost {
  color: currentColor;
  border-color: currentColor;
  background: rgba(255, 253, 247, 0.08);
}

.button--wide {
  width: min(420px, 100%);
  margin: 24px auto 0;
  color: var(--forest);
  background: transparent;
}

.hero__note {
  position: absolute;
  right: clamp(18px, 6vw, 90px);
  bottom: 34px;
  z-index: 2;
  width: 220px;
  border-left: 1px solid rgba(255, 253, 247, 0.48);
  padding-left: 18px;
}

.hero__note span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.hero__note p {
  margin: 0;
  color: rgba(255, 253, 247, 0.75);
  white-space: nowrap;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--warm {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(18px, 1fr) minmax(0, 520px) minmax(0, 600px) minmax(18px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: var(--paper-deep);
}

.section--warm > *:first-child {
  grid-column: 2;
}

.section--warm > *:last-child {
  grid-column: 3;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section__head p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
  max-width: 660px;
}

.reason-grid,
.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.reason {
  min-height: 190px;
  border-top: 1px solid var(--line);
  padding: 28px 18px 8px;
  text-align: center;
}

.line-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 14px;
  color: var(--forest-2);
}

.line-icon svg {
  width: 48px;
  height: 48px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-block p {
  font-size: 1.04rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--forest);
  font-weight: 900;
}

.photo-panel {
  margin: 0;
}

.photo-panel picture,
.place-card picture,
.villa-card picture,
.season-item picture {
  display: block;
}

.photo-panel img,
.place-card img,
.villa-card img,
.season-item img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.photo-panel img {
  height: min(52vw, 430px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-panel figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.place-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.place-card,
.villa-card,
.season-item,
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.74);
  box-shadow: 0 8px 28px rgba(32, 41, 34, 0.06);
  overflow: hidden;
}

.place-card picture,
.place-card img {
  height: 155px;
}

.place-card div {
  padding: 16px;
}

.place-card p {
  display: -webkit-box;
  min-height: 3.1em;
  margin-bottom: 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.place-card span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section--split {
  padding-top: 30px;
}

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

.villa-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 310px;
}

.villa-card picture,
.villa-card img {
  height: 100%;
}

.villa-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 3vw, 34px);
}

.villa-card__body ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 24px;
  padding-left: 18px;
  color: var(--ink-soft);
}

.route {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 6vw, 76px);
  align-items: center;
}

.route-list {
  display: grid;
  gap: 20px;
}

.route-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
}

.route-list span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest);
}

.route-list svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-card {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky);
  box-shadow: var(--shadow);
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.82) contrast(0.96);
}

.map-card__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 14px;
  border: 1px solid rgba(32, 41, 34, 0.12);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 12px 30px rgba(32, 41, 34, 0.12);
  backdrop-filter: blur(10px);
}

.map-card__caption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 500;
}

.map-card__caption span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.map-card__caption a {
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.season {
  grid-template-columns: minmax(18px, 1fr) minmax(0, var(--max)) minmax(18px, 1fr);
}

.season > * {
  grid-column: 2 !important;
}

.season-item {
  background: var(--white);
}

.season-item picture,
.season-item img {
  height: 190px;
}

.season-item div {
  padding: 22px 24px 26px;
}

.season-item h3 {
  color: var(--forest);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

details {
  padding: 22px 24px;
}

summary {
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
}

details p {
  margin: 14px 0 0;
}

.final-cta {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.final-cta__image {
  background-image: image-set(
    url("assets/lavochne-autumn-slope.avif") type("image/avif"),
    url("assets/lavochne-autumn-slope.webp") type("image/webp"),
    url("assets/lavochne-autumn-slope.jpg") type("image/jpeg")
  );
  filter: saturate(0.85);
}

.final-cta::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(24, 35, 28, 0.58);
}

.final-cta__content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
}

.final-cta p {
  color: rgba(255, 253, 247, 0.82);
}

.final-cta__content div {
  justify-content: center;
  margin-top: 24px;
}

.footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 28px;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.footer nav,
.footer address {
  display: grid;
  gap: 8px;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

@keyframes settle {
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav {
    display: grid;
    justify-content: stretch;
    gap: 6px;
  }

  .menu-button {
    grid-column: 2;
    display: block;
  }

  .reason-grid,
  .place-strip,
  .season-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section--warm,
  .route,
  .footer {
    grid-template-columns: 1fr;
  }

  .section--warm > *,
  .season > * {
    grid-column: auto !important;
    width: min(var(--max), calc(100% - 36px));
    margin-right: auto;
    margin-left: auto;
  }

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

@media (max-width: 680px) {
  .site-header {
    padding: 18px;
  }

  .brand span {
    font-size: 1.22rem;
  }

  .hero {
    min-height: 760px;
    padding-bottom: 150px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .hero__note {
    left: 18px;
    right: auto;
    width: calc(100% - 36px);
  }

  .reason-grid,
  .place-strip,
  .season-grid,
  .villa-card {
    grid-template-columns: 1fr;
  }

  .reason {
    min-height: auto;
  }

  .villa-card picture,
  .villa-card img {
    height: 240px;
  }

  .photo-panel img {
    height: 300px;
  }

  .map-card {
    min-height: 280px;
  }

  .map-card__caption {
    grid-template-columns: 1fr;
  }

  .footer {
    text-align: center;
  }

  .footer .brand {
    justify-content: center;
  }
}
