@font-face {
  font-family: Golos;
  src: url('/assets/fonts/golos-cyrillic.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Golos;
  src: url('/assets/fonts/golos-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2191,U+2193,U+2212,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Literata;
  src: url('/assets/fonts/literata-cyrillic.woff2') format('woff2');
  font-weight: 400 650;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Literata;
  src: url('/assets/fonts/literata-latin.woff2') format('woff2');
  font-weight: 400 650;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2191,U+2193,U+2212,U+FEFF,U+FFFD;
}

:root {
  --ink: #1d2f3a;
  --paper: #f7f9fa;
  --accent: #edd2aa;
  --button: #8d3926;
  --on-button: white;
  --muted: #415460;
  --line: #c9d4db;
  --ice: #e8eff3;
  --night: #233740;
  --on-night: #f7f4ed;
  --focus: #267293;
  --display: Literata, Georgia, serif;
  --body: Golos, Arial, sans-serif;
  --gutter: clamp(20px,5vw,76px);
  --max-width: 1540px;
  --header-height: 82px;
  --section: clamp(72px,9vw,136px);
  --ease-out: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: #8398a4 var(--paper); }
html[data-site-font="modern"] { --display: Arial, sans-serif; --body: Arial, sans-serif; }
html[data-site-font="serif"] { --display: Georgia, serif; --body: Georgia, serif; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); }
::selection { background: #d3e6ee; color: #172a35; }
a { color: inherit; text-decoration: none; text-underline-offset: .25em; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; width: 100%; object-fit: cover; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -.033em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h2 { font-size: clamp(2rem,4.1vw,4.15rem); }
h3 { font-size: clamp(1.7rem,2.4vw,2.4rem); }
p + p { margin-top: 16px; }
.wrap { width: 100%; max-width: var(--max-width); padding-inline: var(--gutter); margin-inline: auto; }
.arrow { width: 20px; height: 20px; flex: none; vertical-align: middle; }
[data-site-text], [data-site-lines], .custom-section, .mobile-nav a { overflow-wrap: anywhere; }

.skip { position: absolute; z-index: 40; inset: 12px auto auto 12px; padding: 12px 20px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid var(--button);
  border-radius: 4px;
  background: var(--button);
  color: var(--on-button);
  font: 600 .9375rem/1.35 var(--body);
  text-align: center;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.button.cream { border-color: var(--accent); background: var(--accent); color: #252623; }
.button.outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button:active { transform: translateY(1px); }
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #8599a5;
  transition: text-decoration-color 180ms var(--ease-out);
}

.header {
  position: relative;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: clamp(12px,2.2vw,34px);
  min-height: var(--header-height);
  max-width: var(--max-width);
  padding: 10px var(--gutter);
  margin-inline: auto;
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font: 550 clamp(1.36rem,2.1vw,1.9rem)/1.07 var(--display);
  white-space: nowrap;
}
.brand svg { width: 37px; height: 37px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.brand [data-brand-logo] { width: 40px; height: 40px; object-fit: contain; }
.brand-italic { color: #8d3926; }
.brand small { display: block; margin-top: 4px; font: 600 .6875rem/1.3 var(--body); letter-spacing: .07em; }
.header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(12px,2.3vw,34px); font-size: .9375rem; }
.header nav a { display: grid; align-items: center; min-height: 44px; }
.header .small { min-height: 44px; padding: 9px 16px; }
.menu, .snow-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.menu svg, .snow-toggle svg { width: 22px; height: 22px; }
.menu:active, .snow-toggle:active { transform: translateY(1px); }
.snow-toggle[aria-pressed="true"] { background: var(--ice); }
.menu, .mobile-nav { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  min-height: clamp(560px,calc(100svh - var(--header-height)),1000px);
  overflow: clip;
  background: var(--ice);
}
.hero-content {
  align-self: center;
  padding: clamp(52px,6vw,96px) clamp(24px,3vw,54px) clamp(52px,6vw,96px) max(var(--gutter),calc((100vw - var(--max-width))/2 + var(--gutter)));
}
.hero h1 { font-size: clamp(2.55rem,4.7vw,5.25rem); overflow-wrap: break-word; }
.hero-copy { max-width: 34ch; margin-top: 23px; font-size: clamp(1.01rem,1.45vw,1.2rem); color: var(--muted); }
.hero-cta { margin-top: 31px; }
.hero-address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: .875rem;
  color: var(--muted);
}
.hero-address::before { content: ''; width: 22px; height: 1px; background: #8d3926; flex: none; }
.hero-media { display: block; position: relative; min-width: 0; min-height: 360px; background: #d4dfe4; }
.hero-photo { position: absolute; inset: 0; height: 100%; object-position: 54% 50%; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(28px,8vw,140px);
  align-items: center;
  padding-block: var(--section) calc(var(--section)*.82);
}
.intro p { max-width: 48ch; color: var(--muted); }
.houses { padding-bottom: var(--section); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-top: clamp(32px,5vw,68px);
  margin-bottom: clamp(28px,4vw,60px);
  border-top: 1px solid var(--line);
}
.section-heading > p { font-size: .9375rem; color: var(--muted); }
.house-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(17px,2.8vw,42px); }
.house { min-width: 0; display: flex; flex-direction: column; }
.house-image { aspect-ratio: 1.23; }
.house-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 20px 0 10px; }
.house-title > span { color: var(--muted); font-size: .875rem; }
.house > p { margin-bottom: auto; color: var(--muted); }
.house-rates {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  padding-top: 13px;
  margin: 18px 0 8px;
  border-top: 1px solid var(--line);
}
.house-rates dt { color: var(--muted); font-size: .8125rem; }
.house-rates dd { margin: 3px 0 0; font-size: clamp(1rem,1.8vw,1.3rem); font-variant-numeric: tabular-nums; }
.house .text-button { align-self: flex-start; }
.house-without-photo { align-self: start; border-top: 1px solid var(--line); padding-block: 6px 20px; }
.house-grid [data-empty-houses] { grid-column: 1/-1; color: var(--muted); }

.gallery { position: relative; overflow: hidden; min-width: 0; background: #d8e2e8; color: var(--ink); }
.gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  touch-action: pan-y;
}
.gallery-photo img { width: 100%; height: 100%; transition: transform 280ms var(--ease-out); }
.gallery-photo:focus-visible { outline-offset: -5px; }
.gallery-controls, .photo-dialog-bar { display: flex; align-items: center; justify-content: center; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.gallery-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
}
.gallery-controls button, .photo-dialog-bar button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 4px;
}
.gallery-count { text-align: center; min-width: 39px; }
.gallery.empty::after { content: 'Фотографии обновляются'; position: absolute; inset: 44% 0 auto; padding: 8px; text-align: center; color: var(--ink); pointer-events: none; }

.romantic {
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr);
  background: var(--night);
  color: var(--on-night);
}
.romantic-image { min-height: 540px; }
.romantic-image .gallery-photo { position: absolute; inset: 0; }
.romantic-copy {
  align-self: center;
  max-width: 720px;
  padding: clamp(50px,7vw,105px) max(var(--gutter),calc((100vw - var(--max-width))/2 + var(--gutter))) clamp(50px,7vw,105px) clamp(32px,6.1vw,106px);
}
.romantic-copy h2 { font-size: clamp(2rem,4.1vw,4.15rem); }
.romantic-copy > p:not(.romance-price) { color: #e4e9e9; }
.romantic-copy h2 + p { margin-top: 21px; }
.romance-list { color: #e4e9e9; margin: 16px 0 22px; padding-left: 20px; }
.romance-list li + li { margin-top: 7px; }
.romance-list li::marker { color: var(--accent); }
.romance-price { padding-top: 17px; border-top: 1px solid #6c7d80; font-size: .9375rem; }
.romance-price strong { display: block; margin-bottom: 4px; color: var(--accent); font: 520 clamp(1.65rem,2.4vw,2.35rem)/1.25 var(--display); }
.romantic-copy .subtle { margin-top: 8px; font-size: .875rem; }
.romantic-copy .button { margin-top: 25px; }
.romantic-copy :focus-visible, .contact-card :focus-visible, .photo-dialog :focus-visible { outline-color: #ddedf2; }

.sauna {
  display: grid;
  grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
  align-items: center;
  gap: clamp(28px,8vw,136px);
  padding-block: var(--section);
}
.sauna h2 { margin-bottom: 23px; }
.sauna p { max-width: 37ch; color: var(--muted); }
.sauna-image { aspect-ratio: 1.44; }
.forest-strip { background: var(--night); }
.forest-strip img { height: clamp(270px,40vw,590px); object-position: center 47%; }

.booking-section { padding-top: clamp(72px,8vw,112px); }
.booking-heading { margin-bottom: 8px; }
.booking-heading p { max-width: 58ch; margin-top: 15px; color: var(--muted); }
.booking-frame:not(:empty) { margin-top: 12px; }
.booking-frame iframe { display: block; width: 100%; height: 850px; border: 0; background: var(--paper); }
.location {
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr);
  align-items: center;
  gap: clamp(32px,8vw,130px);
  padding-block: var(--section);
}
.location h2 { margin-bottom: 25px; }
.location .address { font-size: 1.2rem; }
.location p { max-width: 46ch; color: var(--muted); }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact-card { padding: clamp(24px,4.6vw,62px); background: var(--ice); min-width: 0; }
.contact-card :focus-visible { outline-color: var(--focus); }
.contact-card h3 { margin-bottom: 14px; }
.phone { display: flex; align-items: center; min-height: 48px; margin-top: 16px; font: 560 clamp(1.4rem,2.4vw,2rem)/1.2 var(--display); }
.contact-link { display: flex; align-items: center; min-height: 44px; border-top: 1px solid var(--line); }
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: var(--max-width);
  padding: 24px var(--gutter);
  margin-inline: auto;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}
.footer-brand { display: flex; align-items: center; min-height: 44px; font: 550 1.65rem/1.2 var(--display); color: var(--ink); }
.footer-brand span + span { color: #8d3926; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-links a { display: grid; align-items: center; min-height: 44px; }
.mobile-book { display: none; }

.photo-dialog { width: min(94vw,1050px); max-width: none; max-height: 94dvh; padding: 10px 12px 0; overflow: auto; border: 0; background: var(--night); color: var(--on-night); }
.photo-dialog::backdrop { background: #10191ee8; }
.photo-dialog[open] { display: flex; flex-direction: column; align-items: center; }
.photo-dialog > img { width: 100%; height: min(75dvh,775px); object-fit: contain; touch-action: pan-y; }
.photo-dialog .close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}
.photo-dialog-bar { padding: 4px; }
.photo-dialog-bar button:disabled { visibility: hidden; }
.custom-section { padding-block: var(--section); }
.custom-section h2 { margin-bottom: 20px; }
.custom-section p { white-space: pre-line; max-width: 68ch; }
.custom-section .button { margin-top: 20px; }

.snowfall { position: fixed; z-index: 18; inset: 0; overflow: hidden; contain: paint; pointer-events: none; }
.snowflake {
  position: absolute;
  top: -18px;
  left: var(--flake-x);
  width: var(--flake-size);
  height: var(--flake-size);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #253d5266;
  opacity: .73;
  animation: snowfall var(--flake-time) var(--flake-delay) linear infinite;
}
.snowflake.crystal {
  border-radius: 0;
  background: url('/assets/snowflake.svg') center/contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 1px 1px #253d5275);
  opacity: .8;
}
.snowfall.paused .snowflake { animation-play-state: paused; }
@keyframes snowfall {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to { transform: translate3d(var(--flake-drift),calc(100dvh + 36px),0) rotate(100deg); }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: color-mix(in srgb,var(--button) 88%,#171c20); transform: translateY(-1px); }
  .button.cream:hover { background: color-mix(in srgb,var(--accent) 90%,white); }
  .button.outline:hover, .snow-toggle:hover, .menu:hover, .gallery-controls button:hover { background: var(--ice); }
  .header nav a:hover, .mobile-nav a:hover, .contact-link:hover, .footer-links a:hover, .phone:hover { text-decoration: underline; }
  .text-button:hover { text-decoration-color: currentColor; }
  .gallery-photo:hover img { transform: scale(1.027); }
  .photo-dialog-bar button:hover { background: #4b606a; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: hero-arrival 480ms var(--ease-out) both; }
  @keyframes hero-arrival {
    from { opacity: .45; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1000px) {
  .header { gap: 12px; }
  .header nav { gap: 0 14px; }
  .header .small { padding-inline: 12px; font-size: .875rem; }
  .house-grid { gap: 16px; }
  footer { flex-wrap: wrap; }
}
@media (max-width: 860px) {
  :root { --header-height: 68px; }
  html { scroll-padding-bottom: 80px; }
  .header { gap: 8px; }
  .brand { white-space: normal; }
  .brand svg { width: 35px; height: 35px; flex: none; }
  .brand small { letter-spacing: .04em; }
  .header nav, .header > .button { display: none; }
  .menu { display: grid; }
  .mobile-nav {
    display: grid;
    position: absolute;
    z-index: 21;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 18px;
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    border-block: 1px solid var(--line);
  }
  .mobile-nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
  footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .mobile-book {
    display: block;
    position: fixed;
    z-index: 20;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .mobile-book .button { width: 100%; }
}
@media (max-width: 760px) {
  :root { --section: 64px; }
  .hero { display: flex; flex-direction: column; min-height: max(580px,calc(100svh - var(--header-height))); }
  .hero-content { align-self: stretch; padding: 32px var(--gutter) 26px; }
  .hero h1 { font-size: clamp(2.25rem,8.4vw,4.3rem); }
  .hero-copy { margin-top: 14px; }
  .hero-cta { margin-top: 20px; }
  .hero-address { margin-top: 16px; }
  .hero-media { flex: 1; min-height: clamp(280px,80vw,460px); }
  .hero-photo { object-position: 50% 53%; }
  .intro, .sauna, .location { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .intro h2, .section-heading h2, .sauna h2, .location h2 { text-wrap: wrap; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .house-grid { grid-template-columns: minmax(0,1fr); gap: 35px; }
  .house-image, .sauna-image { aspect-ratio: 1.28; }
  .romantic { display: flex; flex-direction: column-reverse; }
  .romantic-copy { padding: 48px var(--gutter) 32px; width: 100%; }
  .romantic-image { min-height: 0; aspect-ratio: 1.1; }
  .forest-strip img { height: clamp(270px,72vw,420px); }
  .location .map-links .button { flex: 1 1 180px; }
  .photo-dialog { width: 100vw; max-height: 96dvh; padding: 8px 0 0; }
  .snowflake:nth-child(n+14) { display: none; }
}
@media (max-width: 375px) {
  .booking-frame { margin-inline: calc(-1 * var(--gutter)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .snowfall, .snow-toggle { display: none !important; }
}
