:root {
  --page-ink: #12231a;
  --page-text: #455449;
  --page-muted: #69786c;
  --page-paper: #fffdf8;
  --page-soft: #f3f8f0;
  --page-green: #245b39;
  --page-green-2: #6ca56b;
  --page-gold: #d99a3d;
  --page-blue: #e7f2f3;
  --page-line: rgba(18, 35, 26, 0.1);
  --page-shadow: 0 22px 70px rgba(32, 63, 43, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page-paper);
  color: var(--page-ink);
  padding-top: 0;
}

.fishing-page {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0) 0, #fffdf8 620px),
    var(--page-paper);
}

.fishing-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.fishing-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #dfeadd;
}

.banner-image-container,
.banner-image,
.banner-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner-image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.banner-overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(10, 34, 18, 0.72),
      rgba(10, 34, 18, 0.3) 56%,
      rgba(10, 34, 18, 0.05)
    ),
    linear-gradient(0deg, rgba(10, 34, 18, 0.5), rgba(10, 34, 18, 0.02) 55%);
}

.banner-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 76px;
}

.fishing-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffe1aa;
  font:
    700 13px/1 "Montserrat",
    sans-serif;
  backdrop-filter: blur(12px);
  animation: fishingUp 0.7s ease both;
}

.banner-title {
  max-width: 760px;
  margin: 18px 0 0;
  color: #fff;
  font:
    800 58px/1.04 "Montserrat",
    sans-serif;
  letter-spacing: 0;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  animation: fishingUp 0.78s 0.08s ease both;
}

.highlight {
  color: #ffd38d;
}

.banner-description {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.6;
  animation: fishingUp 0.78s 0.16s ease both;
}

.fishing-main {
  padding: 84px 0 96px;
}

.fishing-section {
  margin-bottom: 84px;
}

.fishing-section:last-child {
  margin-bottom: 0;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title {
  margin: 0;
  color: var(--page-ink);
  text-align: center;
  font:
    800 44px/1.12 "Montserrat",
    sans-serif;
  letter-spacing: 0;
}

.section-title::after {
  display: block;
  content: "";
  width: 58px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--page-green);
}

.section-subtitle {
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--page-text);
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
}

.fish-list-container {
  padding: 28px;
  border: 1px solid var(--page-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(32, 63, 43, 0.08);
}

.fish-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fish-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--page-line);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #f7fbf5);
  color: var(--page-text);
  font-weight: 800;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.fish-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(36, 91, 57, 0.12);
  border-color: rgba(36, 91, 57, 0.2);
}

.fish-icon {
  color: #2a7781;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.condition-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--page-line);
  border-radius: 18px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 18px 55px rgba(32, 63, 43, 0.08);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.condition-card::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(42, 119, 129, 0.12);
}

.condition-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(32, 63, 43, 0.13);
  border-color: rgba(36, 91, 57, 0.18);
}

.condition-icon {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--page-blue);
  color: #2a7781;
  font-size: 26px;
}

.condition-title {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  color: var(--page-ink);
  font:
    800 22px/1.2 "Montserrat",
    sans-serif;
}

.condition-text {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--page-text);
  line-height: 1.65;
}

.booking-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 42px;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(28, 91, 56, 0.95), rgba(42, 119, 129, 0.9)),
    url("/assets/images/rybolov.webp") center / cover;
  box-shadow: 0 30px 90px rgba(36, 91, 57, 0.22);
}

.booking-card h3 {
  margin: 0 0 12px;
  font:
    800 36px/1.12 "Montserrat",
    sans-serif;
}

.booking-card p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.65;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffe1aa;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: #f1b75b;
  color: #172316;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-book:hover {
  transform: translateY(-3px);
  color: #172316;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.gallery-container {
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--page-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(32, 63, 43, 0.08);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(32, 63, 43, 0.13);
  border-color: rgba(36, 91, 57, 0.18);
}

.image-container {
  position: relative;
  overflow: hidden;
  background: var(--page-soft);
}

.gallery-image {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.gallery-info {
  padding: 22px;
}

.gallery-info h3 {
  margin: 0 0 10px;
  color: var(--page-ink);
  font:
    800 21px/1.2 "Montserrat",
    sans-serif;
}

.gallery-info p {
  margin: 0 0 14px;
  color: var(--page-text);
  line-height: 1.65;
}

.gallery-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--page-muted);
  font-size: 14px;
}

.gallery-item.error {
  border-color: rgba(214, 91, 91, 0.3);
  background: rgba(214, 91, 91, 0.06);
}

.image-error {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #9d2f2f;
  text-align: center;
  font-weight: 800;
}

.empty-gallery {
  padding: 56px 34px;
  text-align: center;
  color: var(--page-text);
  border: 1px solid var(--page-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(32, 63, 43, 0.08);
}

.empty-gallery i {
  display: block;
  margin-bottom: 16px;
  color: #2a7781;
  font-size: 54px;
}

.empty-gallery h3 {
  margin: 0 0 10px;
  color: var(--page-green);
  font:
    800 28px/1.15 "Montserrat",
    sans-serif;
}

.empty-gallery p {
  margin: 0;
  color: var(--page-text);
  font-size: 17px;
  line-height: 1.6;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 35, 26, 0.58);
  backdrop-filter: blur(8px);
}

.modal.show {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(1000px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
}

.modal-img-container {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(68vh, 720px);
  background: #0f1a13;
}

.modal-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.modal-img.loaded {
  opacity: 1;
  transform: scale(1);
}

.loader {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.24);
  border-top-color: #ffd38d;
  border-radius: 50%;
  animation: fishingSpin 0.8s linear infinite;
}

.photo-counter {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  color: var(--page-ink);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.close,
.nav-arrow {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--page-ink);
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  transition:
    transform 0.22s ease,
    background 0.22s ease;
  user-select: none;
}

.close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.nav-arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  font-size: 28px;
  text-decoration: none;
}

.nav-arrow.prev {
  left: 18px;
}

.nav-arrow.next {
  right: 18px;
}

.close:hover {
  transform: translateY(-2px) scale(1.03);
  background: #fff;
}

.nav-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  background: #fff;
}

.fishing-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.72s ease,
    transform 0.72s ease;
}

.fishing-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fishingUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fishingSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .conditions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-card {
    grid-template-columns: 1fr;
  }

  .btn-book {
    width: max-content;
  }
}

@media (max-width: 768px) {
  .fishing-shell,
  .banner-content {
    width: min(100% - 28px, 1180px);
  }

  .fishing-banner {
    min-height: 430px;
  }

  .banner-content {
    padding: 122px 0 52px;
  }

  .banner-title {
    font-size: 38px;
  }

  .banner-description {
    font-size: 16px;
  }

  .fishing-main {
    padding: 56px 0 72px;
  }

  .fishing-section {
    margin-bottom: 62px;
  }

  .section-title {
    font-size: 32px;
  }

  .conditions-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .booking-card {
    padding: 30px;
  }

  .booking-card h3 {
    font-size: 30px;
  }

  .btn-book {
    width: 100%;
  }

  .gallery-image {
    height: 235px;
  }

  .modal {
    padding: 14px;
  }

  .modal-content {
    border-radius: 16px;
  }

  .modal-img-container {
    min-height: 64vh;
  }

  .modal-img {
    max-height: calc(100vh - 130px);
  }

  .nav-arrow {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .nav-arrow.prev {
    left: 10px;
  }

  .nav-arrow.next {
    right: 10px;
  }

  .close {
    top: 10px;
    right: 10px;
  }

  .photo-counter {
    left: 12px;
    bottom: 12px;
  }
}

@media (max-width: 480px) {
  .fish-list-container {
    padding: 20px;
  }

  .fish-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fish-item {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-book {
  border: 0;
  cursor: pointer;
}

.btn-book--online {
  background: var(--front-gold-2, #f1b75b);
  color: #172316;
}

.btn-book--phone {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.btn-book--ghost {
  background: rgba(18, 35, 26, 0.06);
  color: var(--front-green, #245b39);
  box-shadow: none;
}

.fishing-booking-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
}

.fishing-booking-alert--success {
  color: #245b39;
  background: rgba(108, 165, 107, 0.16);
  border: 1px solid rgba(108, 165, 107, 0.28);
}

.fishing-booking-alert--error {
  color: #a3312d;
  background: rgba(217, 83, 79, 0.12);
  border: 1px solid rgba(217, 83, 79, 0.22);
}

.fishing-modal-open {
  overflow: hidden;
}

.fishing-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.fishing-booking-modal.is-open {
  display: flex;
}

.fishing-booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 35, 26, 0.58);
  backdrop-filter: blur(10px);
}

.fishing-booking-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  max-height: min(88vh, 920px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(241, 183, 91, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(248, 246, 238, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 34px 110px rgba(18, 35, 26, 0.28);
}

.fishing-booking-modal__close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(18, 35, 26, 0.1);
  border-radius: 16px;
  color: #455449;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.fishing-booking-modal__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}

.fishing-booking-modal__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #f1b75b;
  color: #172316;
  font-size: 24px;
  box-shadow: 0 18px 44px rgba(241, 183, 91, 0.28);
}

.fishing-booking-modal__kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: #245b39;
  background: rgba(108, 165, 107, 0.16);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.fishing-booking-modal h2 {
  margin: 0;
  color: #12231a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.fishing-booking-modal p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #455449;
  line-height: 1.65;
}

.fishing-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fishing-form-field {
  display: grid;
  gap: 8px;
}

.fishing-form-field--full {
  margin-top: 18px;
}

.fishing-form-field label,
.fishing-form-block__title {
  color: #12231a;
  font-weight: 900;
}

.fishing-form-field input,
.fishing-form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(18, 35, 26, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #12231a;
  outline: none;
}

.fishing-form-field textarea {
  resize: vertical;
}

.fishing-form-field input:focus,
.fishing-form-field textarea:focus {
  border-color: rgba(241, 183, 91, 0.8);
  box-shadow: 0 0 0 5px rgba(241, 183, 91, 0.16);
  background: #fff;
}

.fishing-form-block {
  margin-top: 22px;
}

.fishing-form-block__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.fishing-booking-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fishing-booking-type-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(18, 35, 26, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.fishing-booking-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fishing-booking-type-card span {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  cursor: pointer;
}

.fishing-booking-type-card i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #172316;
  background: #f1b75b;
}

.fishing-booking-type-card strong {
  display: block;
  color: #12231a;
}

.fishing-booking-type-card em {
  display: block;
  margin-top: 4px;
  color: #455449;
  font-style: normal;
  font-size: 13px;
}

.fishing-booking-type-card input:checked + span {
  background: rgba(241, 183, 91, 0.16);
  box-shadow: inset 0 0 0 2px rgba(241, 183, 91, 0.42);
}

.fishing-places-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.fishing-place-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(18, 35, 26, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

.fishing-place-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fishing-place-card__body {
  display: block;
  cursor: pointer;
}

.fishing-place-card__image {
  position: relative;
  display: block;
  height: 126px;
  overflow: hidden;
}

.fishing-place-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fishing-place-card__badge {
  position: absolute;
  left: 11px;
  top: 11px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #172316;
  background: #f1b75b;
  font-weight: 900;
  font-size: 12px;
}

.fishing-place-card__content {
  display: block;
  padding: 13px;
}

.fishing-place-card__content strong {
  display: block;
  color: #12231a;
}

.fishing-place-card__content small {
  display: block;
  margin-top: 4px;
  color: #455449;
  font-weight: 700;
}

.fishing-place-card input:checked + .fishing-place-card__body {
  background: rgba(241, 183, 91, 0.16);
  box-shadow: inset 0 0 0 3px rgba(241, 183, 91, 0.44);
}

.fishing-booking-modal__foot {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 980px) {
  .fishing-places-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .booking-actions,
  .btn-book {
    width: 100%;
  }

  .fishing-booking-modal {
    padding: 12px;
  }

  .fishing-booking-modal__dialog {
    padding: 22px;
    border-radius: 22px;
  }

  .fishing-booking-modal__head,
  .fishing-form-grid,
  .fishing-booking-type-grid {
    grid-template-columns: 1fr;
  }

  .fishing-places-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fishing-booking-modal__foot,
  .fishing-booking-modal__foot .btn-book {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .fishing-places-grid {
    grid-template-columns: 1fr;
  }
}