/* OFEEFAN - beach house: песок, лагуна, пальма. Marcellus + Jost. */
@font-face {
  font-family: 'Marcellus';
  src: url('fonts/marcellus.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --sand: #ede4d1;
  --shell: #f9f5ec;
  --lagoon: #1b7f7c;
  --lagoon-deep: #0e5a58;
  --palm: #35523e;
  --ink: #22322e;
  --drift: #8a7a63;
  --hairline: #ddd2bc;
  --sun: #e0a13c;
  --serif: 'Marcellus', 'Palatino Linotype', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 380;
  color: var(--ink);
  background: var(--shell);
  line-height: 1.6;
  font-size: 16.5px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.22; margin: 0 0 .55em; }
h1 { font-size: 2.3rem; letter-spacing: .01em; }
h2 { font-size: 1.72rem; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: var(--lagoon-deep); }
img { max-width: 100%; display: block; }
ul, ol, dl { margin: 0; padding: 0; }

.shore { max-width: 1180px; margin: 0 auto; padding: 0 26px; }
.shore-tight { max-width: 880px; margin: 0 auto; padding: 0 26px; }
/* ── шапка: дощатый настил ── */
.boardwalk {
  background: var(--shell);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 40;
}
.boardwalk::before {
  content: '';
  display: block;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--lagoon) 0 42px, var(--sand) 42px 50px, var(--palm) 50px 92px, var(--sand) 92px 100px);
}
.boardwalk-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}
.seamark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.seamark strong { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; letter-spacing: .12em; }
.seamark span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--drift); }
.plankrow { list-style: none; display: flex; gap: 6px; }
.plankrow a {
  display: block;
  padding: 8px 13px;
  text-decoration: none;
  color: var(--ink);
  font-size: .93rem;
  letter-spacing: .04em;
  border-bottom: 2px solid transparent;
}
.plankrow a:hover, .plankrow a.here { border-bottom-color: var(--lagoon); color: var(--lagoon-deep); }
.knotpin {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 8px 11px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.knotpin i { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
/* ── герой главной: баннер-открытка поверх песка ── */
.lagoonhero {
  background: linear-gradient(180deg, var(--sand) 0%, var(--shell) 88%);
  padding: 46px 0 40px;
}
.lagoonhero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}
.lagoonhero h1 { font-size: 2.6rem; margin-bottom: .4em; }
.lagoonhero .heroline { font-size: 1.08rem; color: var(--palm); max-width: 46ch; }
.heropic { position: relative; }
.heropic img {
  border-radius: 14px;
  border: 6px solid #fff;
  box-shadow: 0 14px 34px rgba(34, 50, 46, .18);
  transform: rotate(1.4deg);
}
.heropic::after {
  content: '';
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--sun), #c9852a);
  opacity: .85;
  z-index: -1;
}
.heronotes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.heronotes li { display: flex; align-items: center; gap: 8px; font-size: .93rem; color: var(--drift); }
.heronotes li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--lagoon); flex: none; }

/* волнистый разделитель секций */
.waveline { height: 26px; overflow: hidden; }
.waveline svg { display: block; width: 100%; height: 26px; }
/* ── карточка-кабана: арка фото + буёк цены ── */
.cabanarow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
  margin: 26px 0 10px;
}
.cabana {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 160px 160px 14px 14px;
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.cabana:hover { box-shadow: 0 12px 28px rgba(27, 127, 124, .16); transform: translateY(-3px); }
.cabana-pic {
  border-radius: 150px 150px 8px 8px;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4 / 5;
}
.cabana-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cabana h3, .cabana .cabana-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.3;
  margin: 12px 6px 6px;
}
.cabana-name a { color: var(--ink); text-decoration: none; }
.cabana-name a::after { content: ''; position: absolute; inset: 0; }
.cabana-name a:hover { color: var(--lagoon-deep); }
.cabana-meta { margin: 0 6px auto; font-size: .85rem; color: var(--drift); }
.cabana-meta .stars { color: var(--sun); letter-spacing: .06em; margin-right: 5px; }
.buoy {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--lagoon);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .02em;
  border: 3px solid var(--shell);
  box-shadow: 0 4px 10px rgba(14, 90, 88, .3);
  z-index: 2;
}
.cabana-foot { margin: 12px 6px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cabana-cat { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--palm); }
.cabana-go { font-size: .87rem; color: var(--lagoon-deep); position: relative; z-index: 2; }
/* ── страница категории: лагунная лента + пляжные секции ── */
.lagoonband {
  background: linear-gradient(115deg, var(--lagoon-deep) 0%, var(--lagoon) 62%, #2b9a90 100%);
  color: #fff;
  padding: 40px 0 34px;
  position: relative;
  overflow: hidden;
}
.lagoonband::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 30px solid rgba(249, 245, 236, .12);
}
.lagoonband h1 { color: #fff; margin-bottom: .3em; }
.lagoonband p { color: #d9ece8; max-width: 62ch; margin-bottom: 0; }
.tidemark {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border: 1px solid rgba(249, 245, 236, .45);
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #eef7f4;
}
.driftrow { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0 4px; }
.drift-chip {
  display: block;
  padding: 7px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--palm);
  text-decoration: none;
  font-size: .9rem;
}
.drift-chip:hover, .drift-chip.here { background: var(--palm); border-color: var(--palm); color: #fff; }

/* лидер категории: широкая карточка-шезлонг */
.sunlounger {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--sun);
  border-radius: 14px;
  padding: 22px;
  margin: 28px 0 8px;
  align-items: center;
}
.sunlounger-pic { border-radius: 10px; overflow: hidden; background: var(--sand); }
.sunlounger-pic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.sunlounger .flagline { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin-bottom: 8px; }
.sunlounger .price { font-size: 1.3rem; color: var(--lagoon-deep); font-weight: 500; margin-right: 14px; }

/* заголовок секции с ракушкой */
.coveheading { display: flex; align-items: center; gap: 14px; margin: 40px 0 6px; }
.coveheading::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }
.coveheading h2 { margin: 0; }
.coveheading .count { font-size: .85rem; color: var(--drift); white-space: nowrap; }
/* ── PDP: веранда ── */
.shellrow { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 4px; font-size: .84rem; color: var(--drift); }
.shellrow li { display: flex; align-items: center; gap: 6px; }
.shellrow li + li::before { content: '\203A'; color: var(--hairline); }
.shellrow a { color: var(--drift); text-decoration: none; }
.shellrow a:hover { color: var(--lagoon-deep); }

.verandah {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 46px;
  padding: 18px 0 40px;
  align-items: start;
}
.sundeck { position: sticky; top: 90px; }
.sundeck-pic {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 180px 180px 14px 14px;
  padding: 12px;
}
.sundeck-pic img { border-radius: 170px 170px 8px 8px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; background: var(--sand); }
.sundeck-note { text-align: center; font-size: .8rem; color: var(--drift); margin-top: 10px; }

.verandah-info h1 { font-size: 1.85rem; }
.ratingline { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-size: .95rem; color: var(--drift); }
.ratingline .stars { color: var(--sun); letter-spacing: .1em; }

.tideledger {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 22px;
  background: var(--sand);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 22px;
  font-size: .95rem;
}
.tideledger dt { color: var(--palm); letter-spacing: .06em; text-transform: uppercase; font-size: .76rem; align-self: center; }
.tideledger dd { margin: 0; }
.tideledger .bigprice { font-family: var(--serif); font-size: 1.5rem; color: var(--lagoon-deep); }

.wavego {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lagoon);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px 34px;
  font-family: var(--sans);
  font-size: 1.03rem;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(14, 90, 88, .28);
  transition: background .15s, transform .15s;
}
.wavego:hover { background: var(--lagoon-deep); transform: translateY(-2px); }
.wavego::after { content: '\2192'; }
.gonote { font-size: .8rem; color: var(--drift); margin-top: 10px; }

/* фичи: dl со створками */
.featledger { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin: 20px 0 8px; }
.featledger > div { background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 20px; border-top: 4px solid var(--lagoon); }
.featledger > div:nth-child(2n) { border-top-color: var(--sun); }
.featledger dt { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 6px; }
.featledger dd { margin: 0; font-size: .93rem; color: #47554f; }

/* лента ухода/примечаний */
.breezeband { background: var(--sand); border-radius: 14px; padding: 24px 28px; margin: 30px 0; }
.breezeband h2 { font-size: 1.3rem; }
.breezeband ul { list-style: none; }
.breezeband li { padding: 6px 0 6px 26px; position: relative; font-size: .95rem; }
.breezeband li::before { content: ''; position: absolute; left: 0; top: 13px; width: 14px; height: 7px; border-bottom: 2px solid var(--lagoon); border-radius: 0 0 50% 50%; }

/* финальный CTA-блок */
.sunsetcase {
  background: linear-gradient(120deg, var(--palm), #4a6d54);
  border-radius: 16px;
  color: #fff;
  padding: 34px 38px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.sunsetcase h2 { color: #fff; margin: 0 0 .3em; }
.sunsetcase p { color: #dbe6dc; margin: 0; max-width: 56ch; }
.sunsetcase .wavego { background: var(--sun); color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.sunsetcase .wavego:hover { background: #efb35a; }

/* отзывы-открытки */
.postbox { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 24px 0 10px; }
.postnote {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 4px 18px 4px 18px;
  padding: 20px 22px;
  position: relative;
  font-size: .95rem;
}
.postnote::before { content: '\201C'; font-family: var(--serif); font-size: 3rem; color: var(--sand); position: absolute; top: 2px; right: 14px; line-height: 1; }
.postnote figcaption { margin-top: 12px; font-size: .84rem; color: var(--drift); letter-spacing: .05em; }
.postnote figcaption::before { content: '\2014 '; }

/* SEO-проза на песке */
.duneprose { border-top: 1px solid var(--hairline); padding: 34px 0 10px; margin-top: 30px; }
.duneprose h2 { font-size: 1.35rem; }
.duneprose p { color: #47554f; max-width: 76ch; }
/* ── футер: авиапочтовая открытка ── */
.postcard {
  margin: 50px 0 0;
  background: #fdfbf5;
  border-top: 12px solid transparent;
  border-image: repeating-linear-gradient(45deg, var(--lagoon) 0 14px, #fdfbf5 14px 24px, #c96a4a 24px 38px, #fdfbf5 38px 48px) 12;
  padding: 40px 0 26px;
  color: var(--ink);
}
.postcard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1px 1fr;
  gap: 36px;
  align-items: start;
}
.postcard-rule { background: var(--hairline); width: 1px; height: 100%; min-height: 180px; }
.postcard-msg h2 { font-size: 1.35rem; margin-bottom: .5em; }
.postcard-msg p { font-size: .93rem; color: #55604f; max-width: 52ch; }
.postcard-msg .scriptline { font-family: var(--serif); font-style: italic; color: var(--drift); }

.postcard-right { position: relative; padding-top: 6px; }
.stampbox {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 88px;
  background: var(--lagoon);
  border: 6px solid #fff;
  outline: 2px dashed var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.6rem;
  transform: rotate(3deg);
}
.postmark {
  position: absolute;
  top: 18px;
  right: 66px;
  width: 84px;
  height: 84px;
  border: 2px solid rgba(138, 122, 99, .5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--drift);
  transform: rotate(-9deg);
  pointer-events: none;
}
.addresslines { list-style: none; margin-top: 116px; }
.addresslines li { border-bottom: 1px dotted var(--drift); padding: 9px 2px; }
.addresslines a { text-decoration: none; color: var(--ink); font-size: .93rem; letter-spacing: .04em; }
.addresslines a:hover { color: var(--lagoon-deep); }
.postcard-foot {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--drift);
}
.postcard-foot p { margin: 0; max-width: 88ch; }
/* ── сервисные страницы: доска с записками ── */
.noteboard { padding: 34px 0 20px; }
.noteboard-head { border-bottom: 3px double var(--hairline); padding-bottom: 14px; margin-bottom: 26px; }
.noteboard-head .dateline { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--drift); }
.pinnote {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 22px;
  position: relative;
}
.pinnote::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8b467, var(--sun) 55%, #a06a1d);
  box-shadow: 0 2px 4px rgba(34, 50, 46, .3);
}
.pinnote:nth-child(odd) { transform: rotate(-.4deg); }
.pinnote:nth-child(even) { transform: rotate(.35deg); }
.pinnote h2 { font-size: 1.25rem; }
.pinnote p, .pinnote li { font-size: .96rem; color: #3c4a44; }
.pinnote ul { list-style: none; }
.pinnote li { padding: 5px 0 5px 22px; position: relative; }
.pinnote li::before { content: '\2022'; position: absolute; left: 6px; color: var(--lagoon); }
.pinnote a { color: var(--lagoon-deep); }

/* контакты */
.tinline { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dotted var(--hairline); font-size: .97rem; }
.tinline b { font-family: var(--serif); font-weight: 400; min-width: 110px; }

/* 404 */
.lostshore { text-align: center; padding: 70px 0 60px; }
.lostshore .bignum { font-family: var(--serif); font-size: 6rem; color: var(--lagoon); line-height: 1; }
.lostshore p { color: var(--drift); }

/* ── адаптив ── */
@media (max-width: 1020px) {
  .cabanarow { grid-template-columns: repeat(3, 1fr); }
  .verandah { grid-template-columns: 1fr; gap: 28px; }
  .sundeck { position: static; max-width: 440px; }
  .postbox { grid-template-columns: 1fr 1fr; }
  .sunlounger { grid-template-columns: 240px 1fr; }
}
@media (max-width: 760px) {
  h1 { font-size: 1.8rem; }
  .lagoonhero h1 { font-size: 1.95rem; }
  .lagoonhero-grid { grid-template-columns: 1fr; gap: 28px; }
  .heropic { max-width: 440px; }
  .cabanarow { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .cabana { border-radius: 110px 110px 12px 12px; }
  .cabana-pic { border-radius: 100px 100px 6px 6px; }
  .buoy { width: 54px; height: 54px; font-size: .82rem; }
  .featledger { grid-template-columns: 1fr; }
  .postbox { grid-template-columns: 1fr; }
  .sunlounger { grid-template-columns: 1fr; }
  .sunlounger-pic { max-width: 300px; }
  .postcard-grid { grid-template-columns: 1fr; }
  .postcard-rule { display: none; }
  .knotpin { display: block; }
  .plankrow {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--shell);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 14px;
    box-shadow: 0 14px 22px rgba(34, 50, 46, .12);
  }
  body.walk-open .plankrow { display: flex; }
  .plankrow a { padding: 11px 6px; border-bottom: 1px solid var(--hairline); }
  .boardwalk-in { position: relative; }
}
@media (max-width: 520px) {
  .shore, .shore-tight { padding: 0 16px; }
  .tideledger { grid-template-columns: 1fr; gap: 2px 0; }
  .tideledger dt { margin-top: 10px; }
}
