@font-face {
  font-family: "Kysh Serif";
  src: url("../fonts/noto-serif-cyr-400.woff2") format("woff2"),
       url("../fonts/noto-serif-lat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kysh Serif";
  src: url("../fonts/noto-serif-cyr-600.woff2") format("woff2"),
       url("../fonts/noto-serif-lat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kysh Sans";
  src: url("../fonts/noto-sans-cyr-400.woff2") format("woff2"),
       url("../fonts/noto-sans-lat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kysh Sans";
  src: url("../fonts/noto-sans-cyr-600.woff2") format("woff2"),
       url("../fonts/noto-sans-lat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --sand: #f3eee6;
  --sand-deep: #e7dfd2;
  --paper: #fffdf9;
  --ink: #1b2428;
  --muted: #5d686c;
  --ocean: #0e6f78;
  --ocean-deep: #0a4c53;
  --foam: #e7f4f3;
  --sun: #c48a3a;
  --line: #e3dbd0;
  --shadow: 0 10px 30px rgba(28, 36, 40, 0.06);
  --radius: 18px;
  --header: 72px;
  --sticky: 0px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 420px at 100% -10%, rgba(14, 111, 120, 0.08), transparent 60%),
    linear-gradient(180deg, #f7f3ec 0%, var(--sand) 220px);
  color: var(--ink);
  font-family: "Kysh Sans", "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
body.has-sticky { --sticky: 76px; }
img { max-width: 100%; display: block; }
a { color: var(--ocean-deep); }
a:hover { color: var(--ocean); }
:focus-visible {
  outline: 3px solid #f0c27a;
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.wrap-wide { width: min(1440px, calc(100% - 28px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand img.logo { width: 44px; height: 44px; object-fit: contain; }
.wordmark {
  font-family: "Kysh Serif", "Noto Serif", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.agency {
  display: block;
  color: var(--ocean);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav a.nav-cta {
  background: var(--ocean);
  color: white;
  border-radius: 999px;
  padding: 8px 14px;
}

.hero {
  padding: 22px 0 8px;
}
.hero h1 {
  font-family: "Kysh Serif", "Noto Serif", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.hero p { margin: 0; color: var(--muted); max-width: 62ch; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 16px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field span { font-size: 0.75rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.field input, .field select {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
}
.field.search { flex: 1 1 220px; }
.field select { min-width: 150px; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding-bottom: 28px;
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1440px) {
  .wrap { width: min(1500px, calc(100% - 32px)); }
  .grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-media {
  aspect-ratio: 3 / 2;
  background: linear-gradient(160deg, #d7ebe9, #f3e6cf);
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: var(--ocean-deep);
  font-family: "Kysh Serif", Georgia, serif;
  font-size: 1.15rem;
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.eyebrow { color: var(--ocean); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.card h2, .card h3 {
  font-family: "Kysh Serif", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.02em;
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--sun);
  font-weight: 600;
}
.meta { color: var(--muted); font-size: 0.86rem; display: grid; gap: 2px; }
.price { margin-top: auto; padding-top: 8px; }
.price strong { display: block; font-size: 1.15rem; color: var(--ocean-deep); letter-spacing: -0.02em; }
.price small { color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 0;
  background: var(--ocean);
  color: white;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}
.btn:hover { background: var(--ocean-deep); color: white; }
.btn.secondary { background: var(--foam); color: var(--ocean-deep); }
.btn.ghost { background: transparent; color: var(--ocean-deep); border: 1px solid var(--line); }
.btn.wa { background: #1f8a4c; }
.btn.tg { background: #1d7eb5; }
.card .btn { margin-top: 8px; }

.empty {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
}

.section { padding: 8px 0 36px; }
.section h2 {
  font-family: "Kysh Serif", Georgia, serif;
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.note { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer strong { color: var(--ink); }

.sticky-contact {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: rgba(255, 253, 249, 0.96);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  justify-content: center;
}
.sticky-contact .btn { min-width: min(100%, 280px); }
body.has-sticky { padding-bottom: var(--sticky); }

.crumbs { color: var(--muted); font-size: 0.85rem; margin: 16px 0; }
.crumbs a { color: inherit; }

.detail {
  display: grid;
  gap: 22px;
  padding-bottom: 40px;
}
@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); align-items: start; }
}
.gallery-main {
  aspect-ratio: 3 / 2;
  background: #dfe8e6;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs button {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}
.thumbs button[aria-current="true"] { border-color: var(--ocean); }
.thumbs img { width: 84px; height: 56px; object-fit: cover; border-radius: 8px; }

.facts { display: grid; gap: 8px; margin: 12px 0; }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.fact span { color: var(--muted); }
.banner {
  background: #fff6e8;
  border: 1px solid #efd7b0;
  color: #6a4a16;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.banner.expired { background: #f8ecec; border-color: #e4c8c8; color: #6d3030; }
.actions { display: grid; gap: 8px; }
.side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
}
.side .price strong { font-size: 1.6rem; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 22, 24, 0.92);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 72px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 78vh; object-fit: contain; }
.lightbox .close, .lightbox .prev, .lightbox .next {
  position: absolute;
  background: white;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 12px; top: 50%; }
.lightbox .next { right: 12px; top: 50%; }
.lightbox .count {
  position: absolute;
  bottom: 22px;
  color: white;
  font-size: 0.9rem;
}

.alts { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .alts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .alts { grid-template-columns: repeat(4, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
