/* Парк-отель «Лумиваара» — лендинг. Фирменные цвета и шрифты — из прежнего сайта. */

@font-face {
  font-family: "Actay Wide";
  src: url("fonts/ActayWide-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hauora";
  src: url("fonts/Hauora-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hauora";
  src: url("fonts/Hauora-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #1f1813;
  --ink-soft: #5b534c;
  --line: #e7e1d6;
  --paper: #ffffff;
  --sand: #f7f3ea;
  --red: #b80000;
  --red-dark: #8f0000;
  --yellow: #f9c801;
  --title: "Actay Wide", "Arial Black", Arial, sans-serif;
  --text: "Hauora", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

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

.container { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #fff; }

.eyebrow { display: block; margin-bottom: 10px; color: var(--red); font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.section--dark .eyebrow { color: var(--yellow); }
.title { font: 700 clamp(26px, 4vw, 48px)/1.16 var(--title); text-transform: uppercase; }
.title::after {
  content: ""; display: block; width: 170px; max-width: 60%; height: 12px; margin-top: 16px;
  background: url("wave.svg") left center / auto 100% repeat-x;
}
.lead { max-width: 74ch; margin-top: 20px; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 19px); }
.section--dark .lead { color: #d8d2c9; }
.section__head { margin-bottom: clamp(32px, 4vw, 56px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: #ffd92e; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.section:not(.section--dark) .btn--ghost:hover { background: var(--sand); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { flex: none; display: block; width: 118px; }
.logo img { width: 100%; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(14px, 1.7vw, 26px); }
.nav a { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--red); }
.header__phone { flex: none; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--red); }
.header .btn { flex: none; min-height: 44px; padding: 8px 20px; font-size: 15px; }
.burger { display: none; flex: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Первый экран */
.hero { position: relative; display: flex; align-items: center; min-height: min(calc(100svh - var(--header-h)), 860px); overflow: hidden; background: var(--ink); color: #fff; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 15, 10, .72) 0%, rgba(20, 15, 10, .38) 55%, rgba(20, 15, 10, .12) 100%); }
.hero__content { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 96px; }
.hero__kicker { font-weight: 600; font-size: clamp(16px, 1.5vw, 19px); }
.hero__title { margin-top: 14px; font: 700 clamp(40px, 8.4vw, 118px)/1.02 var(--title); text-transform: uppercase; letter-spacing: .02em; }
.hero__title span { display: block; }
.hero__title em { font-style: normal; color: var(--yellow); }
.hero__sub { margin-top: 20px; font-size: clamp(19px, 2.2vw, 28px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px; }
.hero__dots .container { display: flex; gap: 10px; }
.hero__dot { width: 44px; height: 44px; padding: 20px 0; border: 0; background: none; }
.hero__dot::before { content: ""; display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .5); }
.hero__dot.is-active::before { background: var(--yellow); }

/* Поиск по датам */
.booking { position: relative; z-index: 4; background: var(--yellow); padding: 28px 0; }
.booking__row { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.booking__title { font: 700 clamp(19px, 2.2vw, 26px)/1.2 var(--title); text-transform: uppercase; }
.booking__note { margin-top: 4px; font-size: 16px; }
.booking__widget { margin-top: 18px; min-height: 64px; }
.booking .btn--red { flex: none; }

/* Преимущества */
.advantages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 20px; }
.advantage { text-align: center; font-size: 15px; line-height: 1.35; }
.advantage img { width: 64px; height: 64px; margin: 0 auto 12px; object-fit: contain; }

/* О базе */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__photo { position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; margin-top: 28px; }
.fact b { display: block; font: 700 clamp(22px, 2.6vw, 32px)/1.15 var(--title); color: var(--red); }
.fact span { font-size: 15px; color: var(--ink-soft); }
.notice { margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--red); background: var(--sand); border-radius: 0 var(--radius) var(--radius) 0; font-size: 16px; }
.notice b { color: var(--red); }

/* Коттеджи */
.stay { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.stay + .stay { margin-top: clamp(48px, 7vw, 88px); }
.stay:nth-of-type(even) .gallery { order: 2; }
.stay__name { font: 700 clamp(22px, 2.8vw, 34px)/1.18 var(--title); text-transform: uppercase; }
.stay__guests { display: inline-block; margin-top: 12px; padding: 4px 14px; border-radius: 999px; background: var(--yellow); font-weight: 600; font-size: 15px; }
.stay__text { margin-top: 14px; color: var(--ink-soft); }
.checks { margin-top: 16px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.stay__price { margin-top: 20px; font-size: 16px; color: var(--ink-soft); }
.stay__price b { font: 700 22px/1.2 var(--title); color: var(--ink); }
.stay__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Галерея в карточке */
.gallery { position: relative; min-width: 0; }
.gallery__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: 0 0 100%; scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery__nav {
  position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); font-size: 22px; line-height: 1;
}
.gallery__nav:hover { background: var(--yellow); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; }

/* Схема базы */
.plan { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.plan img { width: 100%; }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service__photo { padding: 0; border: 0; background: none; cursor: zoom-in; }
.service__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.service h3 { font: 700 19px/1.25 var(--title); text-transform: uppercase; }
.service p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
.service__price { margin-top: auto; padding-top: 14px; font-weight: 600; }

/* Ресторан */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tags li { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; font-size: 15px; }
.split .btn { margin-top: 26px; }

/* Цены */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; }
caption { padding: 14px 18px 0; text-align: left; font-weight: 600; }
th, td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 16px; }
thead th { background: var(--ink); color: #fff; font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 600; min-width: 210px; }
tbody th small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
td { white-space: nowrap; }
td small { display: block; font-size: 14px; color: var(--ink-soft); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.note { margin-top: 16px; font-size: 15px; color: var(--ink-soft); max-width: 90ch; }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.price-card { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.price-card h3 { font: 700 18px/1.25 var(--title); text-transform: uppercase; margin-bottom: 12px; }
.price-list li { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.price-list li:last-child { border-bottom: 0; }
.price-list b { flex: none; font-weight: 600; }
.steps { margin-top: 32px; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: step; position: relative; padding-top: 46px; font-size: 16px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); font: 700 16px/36px var(--title); text-align: center; }

/* Акции */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.offer { padding: 26px 28px; border-radius: var(--radius); background: var(--sand); }
.offer h3 { font: 700 18px/1.25 var(--title); text-transform: uppercase; color: var(--red); }
.offer p { margin-top: 10px; font-size: 16px; }
.newyear { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-top: 24px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--red); color: #fff; }
.newyear h3 { font: 700 clamp(20px, 2.4vw, 28px)/1.2 var(--title); text-transform: uppercase; }
.newyear p { margin-top: 8px; max-width: 70ch; }

/* Как добраться */
.route { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.route h3 { margin: 22px 0 6px; font-weight: 600; font-size: 18px; }
.route h3:first-child { margin-top: 0; }
.route p, .route li { font-size: 16px; color: var(--ink-soft); }
.route ol { list-style: decimal; padding-left: 20px; }
.route li + li { margin-top: 4px; }
.map { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); cursor: zoom-in; }
.map img { width: 100%; }
.coords { margin-top: 12px; font-size: 16px; }
.route .btn { margin-top: 14px; }

/* Контакты и форма */
.contacts__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 32px; margin-top: 28px; }
.contacts__list dt { font-size: 15px; color: #cfc8bd; }
.contacts__list dd a { font-weight: 600; font-size: clamp(18px, 2vw, 22px); text-decoration: none; }
.contacts__list dd a:hover { color: var(--yellow); }

/* Подвал */
.footer { padding: 44px 0 28px; background: #14100c; color: #cfc8bd; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 28px 40px; }
.footer h2 { margin-bottom: 10px; color: #fff; font-weight: 600; font-size: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer li + li { margin-top: 5px; }
.footer__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid #332c25; font-size: 14px; }

/* Окна */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(15, 10, 6, .72); }
.modal__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; color: var(--red); font-size: 30px; line-height: 1; }
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; background: transparent; }
.lightbox__inner { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lightbox .modal__close { position: fixed; top: 12px; right: 12px; color: #fff; }
.lightbox__nav { position: fixed; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 24px; color: var(--ink); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* Вторичные страницы */
.page { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 90px); }
.prose { max-width: 820px; }
.prose h1 { font: 700 clamp(25px, 3.6vw, 40px)/1.18 var(--title); text-transform: uppercase; margin-bottom: 24px; }
.prose h2 { margin: 30px 0 10px; font: 700 20px/1.25 var(--title); }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose a { color: var(--red); }

/* Страница «Новый год» */
.section--sand .offer { background: var(--paper); }
.ny-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.ny-actions .btn { margin-top: 0; }
.ny-list { margin-top: 16px; padding-left: 22px; list-style: disc; }
.ny-list li + li { margin-top: 6px; }
.offer .ny-list { font-size: 16px; }
.split__photo--low img { object-position: 50% 65%; }
.newyear--flat h2 { font: 700 clamp(20px, 2.4vw, 28px)/1.2 var(--title); text-transform: uppercase; }
.newyear--flat .ny-actions { margin-top: 0; }

/* Адаптив */
@media (max-width: 1240px) {
  .header__phone { display: none; }
}
@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; display: none; margin: 0; max-height: calc(100vh - var(--header-h));
    overflow-y: auto; padding: 8px var(--gutter) 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
  }
  .nav.is-open { display: block; }
  .nav__list { display: grid; gap: 0; }
  .nav a { display: block; padding: 12px 0; font-size: 17px; }
  .burger { display: block; margin-left: 0; }
  .header .btn { margin-left: auto; }
  .advantages { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .about, .stay, .split, .route { grid-template-columns: minmax(0, 1fr); }
  .stay:nth-of-type(even) .gallery { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .steps li { padding: 4px 0 4px 50px; }
  .price-grid, .offers { grid-template-columns: minmax(0, 1fr); }
  .booking__row .btn { width: 100%; }
}
@media (max-width: 620px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .logo { width: 96px; }
  .header__inner { gap: 10px; }
  .header .btn { min-height: 42px; padding: 6px 14px; font-size: 14px; }
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .hero::after { background: linear-gradient(180deg, rgba(20, 15, 10, .55), rgba(20, 15, 10, .5)); }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  th, td { padding: 11px 12px; font-size: 15px; }
  tbody th { min-width: 170px; }
  .price-list li { font-size: 15px; }
}
