/* ==========================================================
   Рыба моя — Рыбацкий хутор на Дону
   Брейкпоинты (mobile-first):
   mobile:  < 768px
   tablet:  768px+
   desktop: 1024px+
   ========================================================== */

:root {
  --bg:           #ffffff;
  --bg-light:     #f0f6fa;
  --panel:        #ffffff;
  --border:       #cce0ed;
  --green:        #2d8a5e;
  --green-dark:   #1e6644;
  --blue-light:   #a8d4e8;
  --text-main:    #1a1a1a;
  --text-muted:   #4a6070;
  --text-dim:     #7a9aaa;
  --cta:          #2d8a5e;
  --cta-hover:    #1e6644;

  --amber:        #e8a020;
  --amber-light:  #fdf3e0;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.14);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul { margin: 0 0 16px; padding-left: 20px; }

.rm-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.rm-section { padding: 48px 0; }
.rm-section--light { background: var(--bg-light); }

.rm-section__title {
  color: var(--green);
  font-size: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--green);
  display: inline-block;
  margin-bottom: 28px;
}

/* ==========================================================
   Buttons
   ========================================================== */
.rm-btn {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.rm-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(45,138,94,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(45,138,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,138,94,0); }
}

.rm-btn--call {
  background: var(--green);
  animation: pulse-green 2.5s infinite;
}
.rm-btn--call:hover {
  background: var(--green-dark);
  animation: none;
}

.rm-btn--lg { font-size: 18px; padding: 18px 36px; }

.rm-btn--outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.rm-btn--outline:hover { background: var(--green); color: #fff; }

.rm-cta-row {
  text-align: center;
  margin-top: 32px;
}

/* ==========================================================
   Header
   ========================================================== */
.rm-header {
  background: #fff;
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 500;
}

.rm-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: -14px;
}

.rm-logo__img {
  width: auto;
  height: 104px;
  object-fit: contain;
}

.rm-logo__text {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--green-dark);
  white-space: nowrap;
}

.rm-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}

.rm-nav__link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}

.rm-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}

.rm-nav__link:hover,
.rm-nav__link.is-active {
  color: var(--green);
}

.rm-nav__link:hover::after,
.rm-nav__link.is-active::after {
  width: 100%;
}

.rm-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.rm-btn--call {
  padding: 10px 18px;
  font-size: 15px;
  white-space: nowrap;
}

.rm-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.rm-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rm-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rm-burger.is-open span:nth-child(2) { opacity: 0; }
.rm-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   Hero
   ========================================================== */
.rm-hero {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rm-hero__overlay {
  width: 100%;
  min-height: 520px;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rm-hero__content {
  padding: 20px;
  max-width: 720px;
}

.rm-hero__title {
  color: #fff;
  font-size: 42px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.rm-hero__subtitle {
  color: #eef7fb;
  font-size: 19px;
  margin-bottom: 28px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.rm-hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.rm-hero__wave svg {
  width: 100%;
  height: 60px;
}

/* ==========================================================
   Prose (описательный текст на всех страницах)
   ========================================================== */
.rm-prose {
  max-width: 820px;
  margin: 0 auto;
}

/* ==========================================================
   Page hero (уменьшенный баннер для внутренних страниц)
   ========================================================== */
.rm-page-hero {
  position: relative;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.rm-page-hero__overlay {
  width: 100%;
  min-height: 260px;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.55));
  display: flex;
  align-items: center;
}

.rm-page-hero__title {
  color: #fff;
  font-size: 36px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin: 0;
}

/* ==========================================================
   Photo cards (кликабельные карточки-тизеры на странице «О нас»)
   ========================================================== */
.rm-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.rm-photo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rm-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.rm-photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rm-photo-card:hover img {
  transform: scale(1.07);
}

.rm-photo-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  padding: 28px 14px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
}

/* ==========================================================
   Price
   ========================================================== */
.rm-price-category {
  margin-bottom: 36px;
}

.rm-price-category__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rm-price-category__icon {
  width: 28px;
  height: 28px;
  color: var(--green);
  flex-shrink: 0;
}

.rm-price-category__title {
  color: var(--green-dark);
  font-size: 20px;
  margin-bottom: 10px;
}

.rm-price-category__header .rm-price-category__title {
  margin-bottom: 0;
}

.rm-price-category__desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.rm-price-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.rm-price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s ease;
}

.rm-price-card:hover {
  box-shadow: var(--shadow-lg);
}

.rm-price-card__name {
  color: var(--text-muted);
  font-size: 15px;
}

.rm-price-card__price {
  color: var(--green);
  font-weight: 700;
  font-size: 24px;
}

.rm-price-card__price small {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 400;
}

.rm-price-card--featured {
  border: 2px solid var(--amber);
  background: var(--amber-light);
}

.rm-price-card--featured::before {
  content: 'Популярный выбор';
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--amber);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.rm-price-card--featured .rm-price-card__price {
  color: var(--amber);
}

/* ==========================================================
   Gallery page
   ========================================================== */
.rm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rm-gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
}

.rm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.rm-gallery-item:hover img {
  transform: scale(1.06);
}

.rm-gallery-video {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  background: #000;
}

.rm-gallery-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rm-gallery-empty {
  color: var(--text-muted);
}

/* Lightbox */
.rm-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.rm-lightbox.is-open {
  display: flex;
}

.rm-lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
}

.rm-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.rm-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}

.rm-lightbox__nav--prev { left: 16px; }
.rm-lightbox__nav--next { right: 16px; }

/* ==========================================================
   Footer
   ========================================================== */
.rm-footer {
  background: var(--bg-light);
  border-top: 2px solid var(--green);
  padding: 40px 0 0;
}

.rm-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.rm-footer__title {
  color: var(--green);
  font-size: 16px;
  margin-bottom: 10px;
}

.rm-footer__text { color: var(--text-muted); font-size: 15px; }

.rm-footer__contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.rm-footer__icon {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 3px;
}

.rm-footer__slogan {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 8px;
}

.rm-footer__phone {
  color: var(--text-main);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 4px;
}

.rm-footer__phone:hover { color: var(--green); }

.rm-footer__bottom {
  margin-top: 32px;
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.rm-logo--footer .rm-logo__text { color: var(--green-dark); }

/* ==========================================================
   Mobile floating call button
   ========================================================== */
.mobile-cta-fixed {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(45,138,94,0.4);
    z-index: 999;
    display: none;
    align-items: center;
    gap: 8px;
}

/* ==========================================================
   Tablet: 768px+
   ========================================================== */
@media (min-width: 768px) {
  .rm-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rm-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rm-price-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .rm-footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .rm-hero__title { font-size: 52px; }
  .rm-page-hero__title { font-size: 44px; }
}

/* ==========================================================
   Desktop: 1024px+
   ========================================================== */
@media (min-width: 1024px) {
  .rm-photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .rm-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .rm-price-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================
   Mobile only: < 768px
   ========================================================== */
@media (max-width: 767px) {
  .rm-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid var(--green);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    display: none;
  }

  .rm-nav.is-open { display: flex; }

  .rm-nav__link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .rm-nav__link:last-child { border-bottom: none; }

  .rm-header { position: sticky; }
  .rm-header__inner { position: relative; }

  .rm-burger { display: flex; }

  .rm-logo__text { display: none; }

  .rm-logo__img { height: 96px; }

  .rm-hero__title { font-size: 32px; }
  .rm-hero__subtitle { font-size: 16px; }

  .rm-page-hero { min-height: 180px; }
  .rm-page-hero__overlay { min-height: 180px; }
  .rm-page-hero__title { font-size: 26px; }

  .rm-hero .rm-btn { width: 100%; }
  .rm-cta-row .rm-btn { width: 100%; }

  .mobile-cta-fixed {
    display: flex;
    font-size: 14px;
    padding: 12px 18px;
    white-space: nowrap;
    max-width: calc(100vw - 24px);
  }
}

@media (min-width: 769px) {
  .mobile-cta-fixed { display: none; }
}
