/*
Theme Name: Fishing Plan
Theme URI: https://planrybalki.localhost
Description: Public site skeleton — design tokens and widget slots. Pages come from the CMS; interactive UI loads via /static/widgets/loader.js.
Author: Fishing Plan
Version: 0.8.15
Text Domain: plan-rybalki
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-base); /* prototype body inherits ~16px; text-sm only where set */
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
}

.site-main {
  flex: 1;
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: var(--space-6);
}

/* Prototype pages own their horizontal rhythm (SiteShell main has no pad). */
.site-main:has(> .pr-reiting),
.site-main:has(> .pr-otzyv) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Reserved widget slots — prevent layout shift when loader mounts React. */
.pr-widget-slot {
  width: 100%;
  min-height: var(--pr-slot-min-height, 12rem);
  display: block;
}

.pr-widget-slot[data-pr-slot="hero"] {
  --pr-slot-min-height: 22rem;
}

.pr-widget-slot[data-pr-slot="map"] {
  --pr-slot-min-height: 28rem;
}

.pr-widget-slot[data-pr-slot="cabinet"] {
  --pr-slot-min-height: 20rem;
}

.pr-widget-slot[data-pr-slot="expiry"] {
  --pr-slot-min-height: 0;
  min-height: 0;
}

.pr-widget-slot[data-pr-slot="expiry"]:empty,
.pr-widget-slot[data-pr-slot="expiry"][aria-busy="true"] {
  background: none;
  animation: none;
}

.pr-expiry-banner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: var(--space-3) var(--space-6);
  background: var(--secondary);
  color: var(--foreground);
}

.pr-expiry-banner p {
  margin: 0;
}

.pr-widget-slot:empty,
.pr-widget-slot[aria-busy="true"] {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--muted) 0%, var(--secondary) 50%, var(--muted) 100%);
  background-size: 200% 100%;
  animation: pr-slot-pulse 1.4s ease-in-out infinite;
}

@keyframes pr-slot-pulse {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-widget-slot:empty,
  .pr-widget-slot[aria-busy="true"] {
    animation: none;
  }
}

.pr-widget-slot .pr-widget {
  padding: var(--space-4) 0;
}

.pr-reviews {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.pr-review {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.pr-review__title {
  margin: 0 0 var(--space-1);
  font-size: var(--text-lg);
}

.pr-review__meta {
  margin: 0 0 var(--space-2);
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.pr-widget-slot button {
  /* Do not use `font: inherit` — it overrides class font-size (e.g. submit text-sm → 16px). */
  cursor: pointer;
}

/* Front page layouts — shared sticky shell header (site-shell.css); no ink-only chrome */
body.home {
  overflow-x: clip;
}

body.home .site-main {
  width: 100%;
  max-width: none;
  padding: 0;
  overflow-x: clip;
}

.pr-home-hero {
  position: relative;
  isolation: isolate;
  height: 78vh;
  max-height: 680px;
  min-height: 18rem;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(120% 80% at 80% 0%, oklch(0.35 0.06 230 / 0.35), transparent 55%),
    var(--ink);
  color: var(--ink-foreground);
  animation: pr-home-hero-in 0.7s ease-out both;
}

.pr-home-hero--media {
  background: var(--ink);
}

.pr-home-hero__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 55%;
}

.pr-home-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--gradient-hero);
}

.pr-home-hero:not(.pr-home-hero--media) .pr-home-hero__scrim {
  background: linear-gradient(180deg, transparent 35%, oklch(0.16 0.03 250 / 0.55) 100%);
}

.pr-home-hero__copy {
  position: relative;
  z-index: 2;
  width: min(40rem, 100%);
  margin: 0;
  padding: 0 var(--page-px) var(--space-8); /* prototype: px-4 pb-8 */
}

.pr-home-hero .pr-h1 {
  max-width: 36rem;
  color: var(--ink-foreground);
  line-height: 1.15; /* leading-tight */
}

.pr-home-hero__text {
  margin: var(--space-3) 0 0;
  max-width: 28rem;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: color-mix(in oklch, var(--ink-foreground) 90%, transparent);
}

.pr-home-hero .pr-home-actions {
  margin-top: var(--space-5);
}

.pr-page > section {
  scroll-margin-top: 4rem;
}

.pr-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.pr-home-section-head > div {
  min-width: 0;
}

.pr-home-section-head .pr-textlink {
  margin-top: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.pr-home-section-head .pr-h2 {
  margin-bottom: 0;
}

.pr-home-arrow {
  flex-shrink: 0;
}

.pr-home-stores {
  border-radius: var(--radius-2xl);
  background: var(--ink);
  color: var(--ink-foreground);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4); /* mt-4 before CTAs on phone */
}

.pr-home-stores__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: inherit;
}

.pr-home-stores .pr-muted {
  margin-top: var(--space-1);
  color: color-mix(in oklch, var(--ink-foreground) 80%, transparent);
}

.pr-home-stores .pr-btn--store svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.pr-home-ecosystem__grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.pr-home-ecosystem__col {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.pr-home-ecosystem__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid #eaedf0;
}

.pr-home-ecosystem__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: var(--primary);
  flex-shrink: 0;
}

.pr-home-ecosystem__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}

.pr-home-ecosystem__context {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.pr-home-ecosystem__col ul {
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.pr-home-ecosystem__col li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  line-height: 1.35;
}

.pr-home-eco-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary);
}

.pr-home-ecosystem__cta {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-3);
  align-items: center;
  justify-items: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: var(--space-4);
}

.pr-home-price {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pr-home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.pr-home-demo {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.pr-home-demo__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ink);
}

.pr-home-demo__badge {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  z-index: 1;
  padding: 0.2rem var(--space-2);
  border-radius: 0.25rem;
  background: color-mix(in oklch, var(--ink) 80%, transparent);
  color: var(--ink-foreground);
  font-family: ui-monospace, monospace;
  font-size: var(--text-xs);
}

.pr-home-demo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.pr-home-demo__copy {
  padding: var(--space-5);
}

.pr-home-demo__copy .pr-h2 {
  margin-top: var(--space-1);
}

.pr-home-demo__copy .pr-muted {
  margin-top: var(--space-2);
}

.pr-home-search__form {
  margin-top: var(--space-4);
}

.pr-home-search__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: var(--space-3);
}

.pr-home-search__chips-label {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.pr-home-search__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}

.pr-home-search__links .pr-textlink {
  margin-top: 0;
}

.pr-home-search__links p {
  margin: 0;
  color: var(--muted-foreground);
}

.pr-home-search__links p a {
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
}

.pr-home-payments {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.pr-home-payments__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.pr-home-payments__list {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.pr-home-payments__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.pr-home-pay {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 28px;
  object-fit: contain;
}

.pr-home-pay--mastercard {
  height: 44px;
}

.pr-home-plan {
  position: relative;
}

.pr-home-plan--popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}

.pr-home-plan__badge {
  position: absolute;
  top: -0.75rem;
  left: var(--space-5);
}

.pr-home-plan__title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted-foreground);
}

.pr-home-plan__note {
  margin: var(--space-1) 0 0;
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.pr-home-plan .pr-home-price {
  margin: var(--space-1) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
}

.pr-home-price__currency {
  font-family: inherit; /* Sora via .pr-home-price font-display, like Plans.tsx */
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--muted-foreground);
}

.pr-home-plan__features {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.pr-home-plan__features li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--text-sm);
}

.pr-home-check {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--reed);
}

.pr-home-plan .pr-btn {
  margin-top: var(--space-5);
}

.pr-home-payments__text {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.pr-home-howto .pr-h2 {
  margin-bottom: var(--space-2);
}

.pr-home-howto__steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.pr-home-howto__steps::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--primary) 20%, transparent);
  /* Mobile: vertical connector through icon centers (left-5 = 1.25rem, half of 2.5rem icon). */
  top: 0.75rem;
  bottom: 0.75rem;
  left: 1.25rem;
  width: 0.125rem;
  transform: translateX(-50%);
}

.pr-home-howto__steps li {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
}

.pr-home-howto__steps li:last-child {
  padding-bottom: 0;
}

.pr-home-howto__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 2px solid color-mix(in oklch, var(--primary) 25%, transparent);
  border-radius: var(--radius-full);
  background: var(--card);
  color: var(--primary);
}

.pr-home-howto__copy {
  min-width: 0;
  padding-top: var(--space-2);
}

.pr-home-howto__n {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.pr-home-howto__title {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.pr-home-howto__note {
  margin: 0.375rem 0 0;
  font-size: var(--text-sm);
  line-height: 1.35;
  color: var(--muted-foreground);
}

.pr-home-howto__steps .pr-textlink {
  margin-top: var(--space-3);
}

.pr-home-teaser {
  display: flex;
  gap: var(--space-3);
  margin-top: 0;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
}

.pr-home-teaser__img {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.pr-home-teaser__body {
  display: grid;
  align-content: center;
  align-self: center;
  gap: 0;
  min-width: 0;
}

.pr-home-teaser__meta {
  font-size: 0.6875rem; /* 11px — prototype text-[11px] */
  font-weight: 700;
  letter-spacing: 0.05em; /* tracking-wider */
  text-transform: uppercase;
  color: var(--primary);
}

.pr-home-teaser__title {
  margin-top: var(--space-1);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.375; /* leading-snug */
}

.pr-home-reports__grid {
  display: grid;
  gap: var(--space-3);
  margin-top: 0;
}

.pr-home-report-card-wrap {
  display: grid;
}

.pr-home-report-card {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.pr-home-report-card--static {
  cursor: default;
}

a.pr-home-report-card,
a.pr-home-report-card__media {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.pr-home-report-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.pr-home-report-card__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.pr-home-report-card__body {
  display: grid;
  gap: 0;
  padding: var(--space-4);
}

.pr-home-report-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-base); /* prototype: font-bold only → inherits body 16px, not text-sm */
  font-weight: 700;
  line-height: 1.375;
}

.pr-home-report-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.pr-home-report-card__photos {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.pr-home-report-card__camera {
  flex-shrink: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pr-home-tariffs__grid {
  display: grid;
  gap: var(--space-3);
}

.pr-home-reviews {
  margin: 0;
}

.pr-home-reviews .pr-h2 {
  margin-bottom: var(--space-4);
}

.pr-home-reviews__row {
  display: flex;
  gap: var(--space-3);
  min-width: 0;
  margin: 0 calc(-1 * var(--page-px));
  padding: 0 var(--page-px) var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.pr-home-review {
  flex: 0 0 18rem; /* w-72 */
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  scroll-snap-align: start;
  animation: pr-home-card-in 0.55s ease-out both;
}

.pr-home-review:nth-child(2) {
  animation-delay: 0.06s;
}

.pr-home-review:nth-child(3) {
  animation-delay: 0.12s;
}

.pr-home-review__stars {
  display: flex;
  gap: 0.125rem; /* gap-0.5 */
  color: var(--sun);
}

.pr-home-review__star {
  display: block;
  width: 1rem; /* Tailwind h-4 / w-4 */
  height: 1rem;
  flex-shrink: 0;
}

.pr-home-review__quote {
  margin: var(--space-2) 0 0;
  padding: 0;
  border: 0;
  font-size: var(--text-sm);
  font-style: normal;
  line-height: 1.45;
  color: var(--foreground);
}

.pr-home-review__author {
  margin: var(--space-3) 0 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted-foreground);
}

@keyframes pr-home-hero-in {
  from {
    opacity: 0.55;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pr-home-card-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 40rem) {
  /* Tailwind `sm` — type, tariffs 2-col, stores row, hero CTAs */
  .pr-home-hero__text {
    font-size: var(--text-base);
  }

  .pr-home-hero .pr-home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .pr-home-hero .pr-home-actions .pr-btn {
    width: auto;
  }

  .pr-home-stores {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0;
  }

  .pr-home-ecosystem__cta {
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    text-align: left;
  }

  .pr-home-tariffs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pr-home-reports__grid {
    grid-template-columns: 1fr 1fr;
  }

  .pr-home-teaser {
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .pr-home-teaser__img {
    width: 10rem;
    height: 7rem;
  }

  .pr-home-teaser__title {
    font-size: var(--text-lg);
  }
}

@media (min-width: 48rem) {
  /* Tailwind `md` — demo halves, ecosystem 2-col, howto horizontal, reviews 3-col */
  .pr-home-hero__img {
    object-position: 55% 48%;
  }

  .pr-home-hero__copy {
    width: min(var(--container), 100%);
    margin: 0 auto;
    padding: var(--space-8) var(--space-6) 2.5rem;
  }

  .pr-home-hero .pr-h1 {
    max-width: 18ch;
  }

  .pr-home-ecosystem__grid {
    grid-template-columns: 1fr 1fr;
  }

  .pr-home-demo--media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .pr-home-demo__media {
    aspect-ratio: auto;
    min-height: 18.75rem;
    height: 100%;
  }

  .pr-home-demo__copy {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .pr-home-howto__steps {
    display: flex;
    margin-top: var(--space-6);
    gap: 0;
  }

  .pr-home-howto__steps::before {
    top: 1.25rem; /* center of 2.5rem icon */
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 0.125rem;
    transform: none;
  }

  .pr-home-howto__steps li {
    flex: 1 1 0;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: var(--space-3);
    padding: 0 var(--space-3);
    padding-bottom: 0;
  }

  .pr-home-howto__icon {
    /* ring-[6px] ring-card — masks horizontal connector under the circle */
    box-shadow: 0 0 0 6px var(--card);
    margin-inline: auto;
  }

  .pr-home-howto__copy {
    padding-top: 0;
  }

  .pr-home-reviews__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .pr-home-review {
    flex: none;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-home-hero,
  .pr-home-review {
    animation: none;
  }
}

/* /reiting — one pad layer per section, like prototype max-w-6xl px-4 */
.pr-reiting {
  margin: 0;
  padding: 0;
}

.pr-reiting .pr-page-header,
.pr-reiting .pr-rank,
.pr-reiting .pr-reiting-feed {
  width: min(var(--container), 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-px);
  padding-right: var(--page-px);
  box-sizing: border-box;
}

.pr-reiting .pr-page-header {
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
}

.pr-page-header__title {
  margin: var(--space-1) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.pr-page-header__text {
  margin: var(--space-2) 0 0;
  max-width: 36rem; /* max-w-xl */
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--muted-foreground);
}

.pr-reiting .pr-rank {
  display: grid;
  gap: var(--space-3);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  list-style: none;
}

.pr-reiting .pr-reiting__empty {
  margin: 0;
}

.pr-rank--empty {
  display: block;
}

.pr-rank__item {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.pr-rank__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.pr-rank__lake {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-3);
}

.pr-rank__num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-family: var(--font-display);
  font-weight: 700;
}

.pr-rank__name {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.pr-rank__score {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}

.pr-rank__star {
  color: var(--sun);
}

.pr-rank__bars {
  display: grid;
  gap: 0.375rem;
}

.pr-rank__bar {
  display: grid;
  grid-template-columns: 6rem 1fr 1.75rem;
  gap: var(--space-2);
  align-items: center;
  margin: 0;
  font-size: var(--text-xs);
}

.pr-rank__bar-label {
  color: var(--muted-foreground);
}

.pr-rank__bar-value {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.pr-rank__track {
  display: block;
  height: 0.375rem;
  border-radius: var(--radius-full);
  background: var(--muted);
  overflow: hidden;
}

.pr-rank__track > span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.pr-reiting .pr-reiting-feed {
  margin-top: var(--space-10);
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.pr-reiting-feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.pr-reiting-feed__title {
  margin: 0;
  font-family: var(--font-display); /* prototype h2 */
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pr-reiting-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
}

.pr-reiting-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--foreground);
  text-decoration: none;
}

.pr-reiting-pager .page-numbers.current {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground, #fff);
}

.pr-reiting-pager .page-numbers.dots {
  border: 0;
  min-width: 0;
  padding-inline: var(--space-1);
}

.pr-review-detail {
  max-width: 40rem;
  margin-inline: auto;
  padding: var(--space-6) var(--space-4) var(--space-10);
}

.pr-review-detail__back {
  margin: 0 0 var(--space-4);
}

.pr-review-detail__lake-link {
  color: inherit;
  text-decoration: none;
}

.pr-review-detail__lake-link:hover,
.pr-review-detail__lake-link:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.pr-review-detail__ratings {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.pr-review-detail__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.pr-review-detail__rating-label {
  min-width: 8.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.pr-review-detail__stars {
  display: inline-flex;
  gap: 0.125rem;
  color: color-mix(in oklab, var(--muted-foreground) 40%, transparent);
}

.pr-review-detail__star-wrap {
  display: inline-flex;
  line-height: 0;
}

.pr-review-detail__star-wrap--on {
  color: var(--sun);
}

.pr-review-detail__star {
  display: block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.pr-review-detail__body {
  margin-top: var(--space-6);
  font-size: var(--text-base);
  line-height: 1.6;
}

.pr-review-gallery {
  margin-top: var(--space-6);
}

.pr-review-gallery__label {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--muted-foreground);
}

.pr-review-gallery__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
}

.pr-review-gallery__track {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.pr-review-gallery__thumb {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  appearance: none;
  scroll-snap-align: start;
}

.pr-review-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pr-review-gallery__nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--foreground);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.pr-review-gallery__nav[hidden] {
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 640px) {
  .pr-review-gallery__thumb {
    flex-basis: 6.5rem;
    width: 6.5rem;
    height: 6.5rem;
  }
}

.pr-reiting-feed__cta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem; /* gap-1.5 */
  padding: var(--space-2) var(--space-3); /* py-2 px-3 */
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-sans);
  /* Tailwind text-xs: 0.75rem / 1rem — tighter than line-height 1.25 */
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1rem;
  text-decoration: none;
}

@media (min-width: 640px) {
  .pr-page-header__title {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 768px) {
  .pr-reiting .pr-rank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* md:grid md:gap-3 md:space-y-0 — gap already space-3 */
  }
}

.pr-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pr-gallery__item {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.pr-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pr-lightbox[hidden] {
  display: none;
}

.pr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  padding-top: 3.5rem;
  overflow: auto;
  background: rgba(0, 0, 0, 0.9);
  box-sizing: border-box;
}

.pr-lightbox__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.pr-lightbox__image {
  display: block;
  grid-column: 2;
  justify-self: center;
  max-width: 100%;
  max-height: min(72vh, 40rem);
  margin: 0 auto;
  object-fit: contain;
}

.pr-lightbox__film {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 0.25rem 0.35rem;
  max-width: min(100%, 36rem);
  margin: 0 auto;
  scrollbar-width: thin;
}

.pr-lightbox__film[hidden] {
  display: none;
}

.pr-lightbox__thumb {
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  appearance: none;
  scroll-snap-align: center;
  opacity: 0.72;
}

.pr-lightbox__thumb.is-active {
  border-color: #fff;
  opacity: 1;
}

.pr-lightbox__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pr-lightbox__close,
.pr-lightbox__nav {
  min-width: 3rem;
  min-height: 3rem;
  padding: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.5rem;
  cursor: pointer;
}

/* Keep nav slots in the grid when alone so the photo stays in the center column. */
.pr-lightbox__nav[hidden] {
  visibility: hidden;
  display: block;
  pointer-events: none;
}

.pr-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
}

.pr-lightbox__count {
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 0.875rem;
}

/* /otzyv — match prototype/src/routes/otzyv.tsx (max-w-3xl, PageHeader, space-y-4 cards) */
.pr-otzyv {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

.pr-widget-slot[data-pr-slot="review-form"] {
  --pr-slot-min-height: 8rem;
}

.pr-widget-slot[data-pr-slot="review-form"]:not([aria-busy="true"]):not(:empty) {
  min-height: 0;
  --pr-slot-min-height: 0;
}

.pr-otzyv__back,
.pr-otzyv .pr-page-header,
.pr-otzyv__form {
  width: min(48rem, 100%); /* max-w-3xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-px); /* px-4 */
  padding-right: var(--page-px);
  box-sizing: border-box;
}

.pr-otzyv__back {
  padding-top: var(--space-4); /* pt-4 */
}

.pr-otzyv__back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1); /* gap-1 */
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.pr-otzyv__back-link svg {
  width: 1rem; /* h-4 w-4 */
  height: 1rem;
  flex-shrink: 0;
}

.pr-otzyv .pr-page-header {
  /* PageHeader: pt-6 pb-4 (outer max-w-3xl has no extra top pad) */
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
}

.pr-otzyv .pr-eyebrow {
  margin: 0;
}

.pr-otzyv .pr-page-header__title {
  margin-top: var(--space-1); /* mt-1 */
}

.pr-otzyv .pr-page-header__text {
  max-width: 36rem; /* max-w-xl */
}

.pr-otzyv__form {
  padding-bottom: var(--space-10); /* pb-10 */
}

.pr-review-form {
  display: grid;
  gap: var(--space-4); /* space-y-4 */
  font-family: var(--font-sans);
  color: var(--foreground);
}

.pr-review-form__card {
  margin: 0;
  padding: var(--space-4); /* p-4 */
  border: 1px solid var(--border);
  border-radius: var(--radius-xl); /* rounded-xl */
  background: var(--card);
  color: var(--card-foreground);
}

.pr-review-form__label {
  display: block;
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm); /* text-sm font-bold on lake */
  font-weight: 700;
  line-height: 1.25;
}

.pr-review-form__label--block,
.pr-review-form__heading {
  display: block;
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base); /* font-bold without text-sm */
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: normal;
}

.pr-review-form h2.pr-review-form__heading {
  font-family: var(--font-sans);
}

.pr-review-form__hint {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.pr-review-form__heading + .pr-review-form__hint,
.pr-review-form__label + .pr-review-form__hint {
  margin-top: 0;
}

.pr-review-form__cat-title + .pr-review-form__hint {
  margin-top: 0;
}

.pr-review-form__field {
  display: block;
  width: 100%;
  margin-top: var(--space-2); /* mt-2 */
  padding: 0.625rem 0.75rem; /* py-2.5 px-3 */
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.4;
}

.pr-review-form__field::placeholder {
  color: var(--muted-foreground);
}

.pr-review-form__cats {
  margin-top: var(--space-3); /* mt-3 divide-y */
}

.pr-review-form__cat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2); /* gap-2 */
  padding: var(--space-3) 0; /* py-3 */
  border-top: 1px solid var(--border);
}

.pr-review-form__cat:first-child {
  border-top: 0;
}

.pr-review-form__cat-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
}

.pr-review-form__stars {
  display: flex;
  gap: 0.25rem; /* gap-1 */
}

.pr-review-form__star {
  padding: 0.125rem; /* p-0.5 */
  border: 0;
  background: none;
  color: color-mix(in oklab, var(--muted-foreground) 40%, transparent);
  cursor: pointer;
  line-height: 0;
}

.pr-review-form__star--on {
  color: var(--sun);
}

.pr-review-form__star svg {
  display: block;
  width: 1.75rem; /* h-7 w-7 */
  height: 1.75rem;
  fill: currentColor;
  stroke: currentColor;
}

.pr-review-form__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* grid-cols-3 */
  gap: var(--space-2); /* gap-2 */
  margin-top: var(--space-3); /* mt-3 */
}

.pr-review-form__thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  background: var(--muted);
}

.pr-review-form__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pr-review-form__thumb-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.pr-review-form__thumb-remove {
  position: absolute;
  top: 0.25rem; /* right-1 top-1 */
  right: 0.25rem;
  display: grid;
  place-items: center;
  width: 1.5rem; /* h-6 w-6 */
  height: 1.5rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in oklab, var(--background) 90%, transparent);
  color: var(--foreground);
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
}

.pr-review-form__add {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}

.pr-review-form__add-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.pr-review-form__add-inner svg {
  display: block;
  width: 1.5rem; /* h-6 w-6 */
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-review-form__add:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pr-review-form__add input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Prototype: text-sm font-bold — must beat any slot button rules */
.pr-widget-slot .pr-review-form__submit,
.pr-review-form__submit {
  width: 100%;
  padding: 0.75rem 1rem; /* py-3 px-4 */
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem; /* Tailwind text-sm */
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25rem; /* Tailwind text-sm line-height */
  cursor: pointer;
}

.pr-widget-slot .pr-review-form__submit:disabled,
.pr-review-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pr-review-form__note {
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--muted-foreground);
}

.pr-review-form__error {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--destructive);
  font-size: var(--text-sm);
}

.pr-review-form__thanks {
  max-width: 28rem; /* max-w-md */
  margin: 0 auto;
  padding: var(--space-16) var(--page-px); /* py-16 px-4 */
  text-align: center;
  font-family: var(--font-sans);
}

.pr-review-form__thanks-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem; /* h-12 w-12 */
  height: 3rem;
  color: var(--reed);
}

.pr-review-form__thanks-icon svg {
  width: 3rem;
  height: 3rem;
}

.pr-review-form__thanks h2 {
  margin: var(--space-3) 0 0; /* mt-3 */
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pr-review-form__thanks p {
  margin: var(--space-2) 0 0; /* mt-2 */
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--muted-foreground);
}

.pr-review-form__thanks a {
  display: inline-flex;
  margin-top: var(--space-6); /* mt-6 */
  padding: 0.625rem 1rem; /* py-2.5 px-4 */
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.pr-review-form--guest {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  font-family: var(--font-sans);
}

.pr-review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--foreground) 95%, transparent);
}

.pr-review-lightbox img {
  max-height: 90vh;
  max-width: 94vw;
  object-fit: contain;
}

.pr-review-lightbox__close,
.pr-review-lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.5rem; /* h-10 w-10 */
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in oklab, var(--background) 90%, transparent);
  color: var(--foreground);
  cursor: pointer;
}

.pr-review-lightbox__close {
  top: 0.75rem; /* top-3 right-3 */
  right: 0.75rem;
}

.pr-review-lightbox__nav--prev {
  left: 0.75rem;
}

.pr-review-lightbox__nav--next {
  right: 0.75rem;
}

.pr-review-lightbox__count {
  position: absolute;
  bottom: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--background) 90%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--text-xs);
}

@media (min-width: 640px) {
  .pr-review-form__photos {
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* sm:grid-cols-4 */
  }

  .pr-review-form__cat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
