/* =========================================================
   База отдыха «Сурские зори» — основная таблица стилей
   Чистый CSS3, без препроцессоров и JS
   ========================================================= */

/* ---------- 1. Переменные ---------- */
:root {
  --navy: #0d1f3c;
  --navy-2: #13294d;
  --blue: #1a8fd6;
  --blue-dark: #1b4f8f;
  --sky: #5fb2ea;
  --yellow: #ffd500;
  --orange: #f08a2c;
  --gray: #5d6064;
  --gray-light: #ececec;
  --text: #333;
  --muted: #6b6b6b;
  --white: #fff;
  --radius: 6px;
  --container: 1140px;
  --font: "Comfortaa", "Trebuchet MS", Arial, sans-serif;
  --font-text: "Open Sans", Arial, sans-serif;
  --shadow: 0 6px 20px rgba(13, 31, 60, .15);
  --wave-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6 Q10 0 20 6 T40 6 V12 H0Z' fill='%23ffffff'/%3E%3C/svg%3E");
  --wave-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6 Q10 0 20 6 T40 6 V12 H0Z' fill='%230d1f3c'/%3E%3C/svg%3E");
  --wave-line-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8'%3E%3Cpath d='M0 4 Q5 0 10 4 T20 4' stroke='%23333' stroke-width='1.3' fill='none'/%3E%3C/svg%3E");
  --wave-line-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8'%3E%3Cpath d='M0 4 Q5 0 10 4 T20 4' stroke='%23ffffff' stroke-width='1.3' fill='none'/%3E%3C/svg%3E");
}

/* ---------- 2. Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.6 var(--font-text);
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { font-family: var(--font); margin: 0 0 .6em; line-height: 1.25; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ---------- 3. Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  font: 700 13px/1 var(--font);
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s, background .2s, color .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: #ffe44d; color: var(--navy); }
.btn--outline { border-color: var(--yellow); color: var(--yellow); background: rgba(13,31,60,.6); }
.btn--outline:hover { background: var(--yellow); color: var(--navy); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }

/* ---------- 4. Заголовки секций с волнами ---------- */
.section { padding: 50px 0; }
.section-title {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 30px;
  color: var(--navy);
}
.section-title::before, .section-title::after {
  content: ""; flex: 0 1 200px; height: 8px;
  background: var(--wave-line-dark) repeat-x center / 20px 8px;
}
.section--dark .section-title, .section--sunset .section-title { color: #fff; }
.section--dark .section-title::before, .section--dark .section-title::after,
.section--sunset .section-title::before, .section--sunset .section-title::after {
  background-image: var(--wave-line-light);
}

/* ---------- 5. Шапка ---------- */
.header {
  position: relative;
  background: url("../img/hero-bg.svg") center / cover no-repeat, var(--sky);
  color: #fff;
  padding-bottom: 28px;
}
.header::after { /* волна снизу */
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 18px;
  background: var(--wave-navy) repeat-x bottom / 40px 18px;
}
.topbar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  padding: 8px 16px; font: 700 13px var(--font); color: var(--yellow);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  background: #0d1f3c;
}
.topbar a { color: var(--yellow); }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__icon { width: 14px; height: 14px; fill: currentColor; }

/* навигация */
.nav { position: relative; }
.nav__toggle { display: none; }
.nav__burger { display: none; }
.nav__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding-top: 10px;
}
.nav__link {
  display: block; padding: 6px 10px; color: #fff;
  font: 700 13px var(--font); border-radius: 3px;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.nav__link:hover, .nav__link.is-active { background: rgba(13,31,60,.45); color: var(--yellow); }

.hero {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 26px 0 30px;
}
.hero__logo { grid-column: 2; width: 300px; }

@media (min-width: 800px) {
  .hero__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: end;
    padding-left: 90px;
    padding-right: 10px;
    align-items: normal !important;
}
.socials { padding-left: 10px; }
}

.hero__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(13,31,60,.45); color: #fff;
  font: 700 11px var(--font);
}
.socials a:hover { background: var(--yellow); color: var(--navy); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.hero__socials { justify-self: start; align-self: end; }

/* компактная шапка внутренних страниц */
.header--inner .hero { padding: 14px 0 18px; }
.header--inner .hero__logo { width: 190px; }
.page-head { background: var(--navy); color: #fff; padding: 26px 0 30px; text-align: center; }
.page-head h1 { font-size: 30px; margin-bottom: 6px; }
.breadcrumbs { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #aab8cc; }
.breadcrumbs a { color: var(--yellow); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }

/* ---------- 6. Новости (главная) ---------- */
.news-list { max-width: 800px; margin: 0 auto; }
.news-list li { border-bottom: 1px solid var(--gray-light); }
.news-list a { display: block; padding: 9px 0; }
.news-list time { font-weight: 700; margin-right: 6px; }
.more-link { display: block; text-align: right; max-width: 800px; margin: 12px auto 0; font-weight: 600; }

/* ---------- 7. О базе ---------- */
.about__card {
  max-width: 1000px; margin: 0 auto; background: #fff;
  box-shadow: var(--shadow); overflow: hidden;
}
.about__text { padding: 30px 50px 10px; text-align: justify; font-size: 14px; }
.about__img { width: 100%; aspect-ratio: 1100 / 340; object-fit: cover; }

/* ---------- 8. Почему мы ---------- */
.features {
  background: linear-gradient(180deg, #f7c59a 0%, #f1f4f7 60%, #ffffff 100%);
}
.features__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 900px; margin: 0 auto;
}
.feature { text-align: center; }
.feature__icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--blue); display: grid; place-items: center; color: #fff;
  box-shadow: 0 0 0 5px rgba(26,143,214,.15);
}
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.feature h3 { font-size: 14px; text-transform: uppercase; color: var(--navy); }
.feature p { font-size: 13px; color: var(--muted); }
.feature--wide { grid-column: 1 / -1; max-width: 900px; margin: 10px auto 0; }

/* ---------- 9. Аренда домов ---------- */
.section--dark { background: var(--navy); color: #d8e2ef; }
.houses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.house {
  background: var(--navy-2); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.house:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.house img { aspect-ratio: 400 / 260; object-fit: cover; width: 100%; }
.house__body { padding: 16px 18px 20px; }
.house h3 { color: #fff; font-size: 17px; }
.house__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.house__price { color: var(--yellow); font: 700 16px var(--font); }

/* ---------- 10. Развлечения ---------- */
.section--sunset {
  background: url("../img/sunset-bg.svg") center / cover no-repeat, var(--orange);
}
.fun-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 60px; max-width: 900px; margin: 0 auto;
}
.fun {
  display: flex; align-items: center; gap: 14px; min-height: 92px;
  background: linear-gradient(90deg, rgba(26,99,180,.92), rgba(26,99,180,.75));
  border-radius: 8px; padding: 10px 14px; color: #fff;
}
.fun:nth-child(even) { flex-direction: row-reverse; text-align: right; }
.fun img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 3px solid var(--yellow); flex-shrink: 0; }
.fun h3 { color: var(--yellow); font-size: 16px; margin-bottom: 4px; }
.fun p { font-size: 12px; margin: 0; line-height: 1.4; }

.party {
  display: grid; grid-template-columns: 1fr 1.3fr; max-width: 900px; margin: 36px auto 0;
  background: rgba(13,31,60,.92); border: 2px solid var(--blue); border-radius: 6px; overflow: hidden;
}
.party img { width: 100%; height: 100%; object-fit: cover; }
.party__body { padding: 22px 26px; color: #fff; }
.party h3 { color: var(--yellow); text-transform: uppercase; font-size: 16px; margin-bottom: 2px; }
.party__sub { color: var(--yellow); font-size: 12px; text-transform: uppercase; margin-bottom: 14px; }
.checklist li { position: relative; padding-left: 26px; font-size: 13px; margin-bottom: 6px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px;
  border-radius: 50%; background: #3cb34a; color: #fff; font-size: 11px;
  display: grid; place-items: center;
}
.party .btn { margin-top: 12px; width: 100%; }

/* ---------- 11. Награды / клиенты ---------- */
.logos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; align-items: center;
}
.logo-item {
  height: 100px; display: grid; place-items: center; border-radius: var(--radius);
  font: 700 13px var(--font); text-align: center; padding: 10px;
}
.section--dark .logo-item { background: var(--navy-2); color: var(--yellow); border: 1px dashed #2c4a78; }
.section--light { background: var(--gray-light); }
.section--light .logo-item { background: #fff; color: var(--gray); }

/* ---------- 12. Цитата ---------- */
.quote {
  background: url("../img/river.svg") center / cover no-repeat, #2f5d2c;
  padding: 60px 0;
}
.quote blockquote {
  margin: 0 auto; max-width: 700px; padding: 22px 28px;
  background: rgba(26,99,180,.85); color: #fff;
  font: italic 700 clamp(17px, 2.2vw, 23px)/1.55 var(--font);
}
.quote blockquote p { margin: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- 13. Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; position: relative;
}
.review::before {
  content: "“"; position: absolute; top: -10px; left: 16px;
  font: 700 60px/1 Georgia, serif; color: var(--blue);
}
.review p { font-size: 14px; font-style: italic; }
.review footer { font: 700 13px var(--font); color: var(--navy); }

/* ---------- 14. Партнёры ---------- */
.section--gray { background: var(--gray); color: #fff; }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 800px; margin: 0 auto; }
.partner { text-align: center; }
.partner__name { font: 700 22px var(--font); color: #fff; margin-bottom: 10px; }
.partner__text { font-size: 12px; color: var(--yellow); }
.contacts-list li { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0; }
.contacts-list svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.contacts-list a { color: inherit; }
.contacts-list a:hover { color: var(--yellow); }

/* ---------- 15. Карта ---------- */
.map { line-height: 0; background: #ddd; }
.map iframe { width: 100%; height: 380px; border: 0; }

/* ---------- 16. Подвал ---------- */
.footer {
  position: relative; background: var(--navy); color: #c7d3e3; padding: 46px 0 0; font-size: 13px;
}
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 16px;
  background: var(--wave-white) repeat-x top / 40px 16px; transform: rotate(180deg);
}
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 800px; margin: 0 auto; }
.footer__title { color: var(--yellow); font: 700 14px var(--font); margin-bottom: 6px; }
.footer .contacts-list li { justify-content: flex-start; }
.footer a { color: #c7d3e3; }
.footer a:hover { color: var(--yellow); }
.footer__policy { color: var(--yellow) !important; text-decoration: underline; }
.footer__bottom {
  margin-top: 30px; padding: 30px 0 22px; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  background: #0a1830;
  background-blend-mode: soft-light;
}
.footer__copy { color: var(--yellow); font-size: 12px; }
.to-top {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #6d84a4; color: #fff !important; font-size: 16px;
}
.to-top:hover { border-color: var(--yellow); }

/* ---------- 17. Страница «Новости» ---------- */
.layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.news-cards { display: grid; gap: 26px; }
.news-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 22px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.news-card img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.news-card__body { padding: 18px 22px 18px 0; display: flex; flex-direction: column; }
.news-card__date {
  display: inline-block; align-self: flex-start; background: var(--yellow); color: var(--navy);
  font: 700 12px var(--font); padding: 3px 10px; border-radius: 3px; margin-bottom: 8px;
}
.news-card h2 { font-size: 18px; }
.news-card h2 a { color: var(--navy); }
.news-card h2 a:hover { color: var(--blue); }
.news-card p { font-size: 14px; color: var(--muted); flex: 1; }
.news-card__more { font-weight: 700; font-size: 13px; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px;
  border-radius: 3px; border: 1px solid #d5dbe3; font-weight: 700; color: var(--navy);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .is-current { background: var(--navy); border-color: var(--navy); color: var(--yellow); }

.sidebar { display: grid; gap: 24px; }
.widget { background: #f4f6f9; border-radius: var(--radius); padding: 20px; }
.widget h3 { font-size: 16px; color: var(--navy); border-bottom: 2px solid var(--yellow); padding-bottom: 8px; }
.widget li { padding: 6px 0; border-bottom: 1px dashed #d5dbe3; font-size: 14px; }
.widget li:last-child { border-bottom: 0; }
.widget li span { float: right; color: var(--muted); }
.widget--cta { background: var(--navy); color: #fff; text-align: center; }
.widget--cta h3 { color: var(--yellow); border-color: var(--blue); }

/* ---------- 18. Страница «Контакты» ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 18px; text-align: center; border-top: 4px solid var(--yellow);
}
.contact-box .feature__icon { margin-bottom: 14px; }
.contact-box h3 { font-size: 15px; color: var(--navy); }
.contact-box p { font-size: 14px; margin: 0 0 4px; }

.contact-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 4px; font: 700 13px var(--font); color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 12px; font: 14px var(--font-text);
  border: 1px solid #cfd6df; border-radius: 4px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,143,214,.18);
}
.form input:user-invalid { border-color: #d9443a; }
.form__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px; font: 13px var(--font-text) !important; color: var(--muted) !important; }
.form__check input { width: auto; margin-top: 3px; }
.directions h3 { color: var(--navy); font-size: 17px; margin-top: 18px; }
.directions h3:first-child { margin-top: 0; }
.directions p { font-size: 14px; }
.requisites { margin-top: 18px; font-size: 13px; background: #f4f6f9; padding: 16px 18px; border-radius: var(--radius); }
.requisites dt { font-weight: 700; color: var(--navy); }
.requisites dd { margin: 0 0 8px; }

/* ---------- 19. Адаптив ---------- */
@media (max-width: 992px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .houses, .reviews { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-main { grid-template-columns: 1fr; }
  .fun-grid { gap: 16px 24px; }
}

@media (max-width: 768px) {
  /* бургер-меню на CSS (checkbox hack) */
  .nav__burger {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    padding: 8px; font: 700 14px var(--font); cursor: pointer; color: #fff;
  }
  .nav__burger span, .nav__burger span::before, .nav__burger span::after {
    display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: .25s;
  }
  .nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; }
  .nav__burger span::before { top: -7px; }
  .nav__burger span::after { top: 7px; }
  .nav__list {
    display: none; flex-direction: column; background: rgba(13,31,60,.95);
    margin: 0 16px; border-radius: 6px; padding: 8px;
  }
  .nav__toggle:checked ~ .nav__list { display: flex; }
  .nav__toggle:checked + .nav__burger span { background: transparent; }
  .nav__toggle:checked + .nav__burger span::before { top: 0; transform: rotate(45deg); }
  .nav__toggle:checked + .nav__burger span::after { top: 0; transform: rotate(-45deg); }
  .nav__link { text-align: center; padding: 10px; }

  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero__logo { grid-column: auto; width: 230px; }
  .hero__actions { align-items: center; }
  .hero__socials { justify-self: center; order: 3; }

  .section { padding: 38px 0; }
  .section-title { font-size: 19px; gap: 10px; }
  .section-title::before, .section-title::after { flex-basis: 50px; }
  .about__text { padding: 22px 18px 6px; text-align: left; }
  .fun-grid, .partners, .footer__grid { grid-template-columns: 1fr; }
  .party { grid-template-columns: 1fr; }
  .party img { max-height: 220px; }
  .news-card { grid-template-columns: 1fr; }
  .news-card img { min-height: 0; aspect-ratio: 400 / 220; }
  .news-card__body { padding: 0 18px 18px; }
  .footer__grid { text-align: center; }
  .footer .contacts-list li { justify-content: center; }
}

@media (max-width: 560px) {
  .features__grid, .houses, .reviews, .contact-grid, .form__row { grid-template-columns: 1fr; }
  .fun:nth-child(even) { flex-direction: row; text-align: left; }
  .topbar { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* заголовки в колонках контактов — компактнее */
.contact-main .section-title { font-size: 19px; justify-content: flex-start; white-space: nowrap; }
.contact-main .section-title::before { display: none; }
.contact-main .section-title::after { flex: 1 1 auto; }

/* =========================================================
   20. Общие элементы внутренних страниц
   ========================================================= */
.lead { max-width: 820px; margin: 0 auto 36px; text-align: center; font-size: 16px; color: var(--muted); }
.note {
  margin-top: 36px; padding: 16px 20px; border-left: 4px solid var(--yellow);
  background: #f4f6f9; border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px;
}
.center { text-align: center; margin: 30px 0 0; }

/* =========================================================
   21. Страница «Проживание»
   ========================================================= */
.rooms { display: grid; gap: 40px; }
.room {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden;
  scroll-margin-top: 20px;
}
.room:nth-child(even) .room__gallery { order: 2; }
.room__gallery {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.6fr 1fr; gap: 4px;
  min-height: 380px; background: #fff;
}
.room__photo { position: relative; overflow: hidden; display: block; }
.room__photo--main { grid-column: 1 / -1; }
.room__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.room__photo:hover img { transform: scale(1.06); }
.zoom {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(13,31,60,.75); color: var(--yellow);
  font: 700 22px/1 var(--font); opacity: 0; transform: scale(.7); transition: .25s;
}
.room__photo:hover .zoom, .room__photo:focus-visible .zoom { opacity: 1; transform: none; }
.room__body { padding: 28px 30px; display: flex; flex-direction: column; }
.room__title { font-size: 24px; color: var(--navy); }
.room__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.room__specs li {
  background: var(--navy); color: var(--yellow); font: 700 12px var(--font);
  padding: 5px 12px; border-radius: 20px;
}
.room__body > p { font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tags li {
  font-size: 12px; padding: 3px 10px; border-radius: 3px;
  background: rgba(26,143,214,.1); color: var(--blue-dark);
}
.room__footer {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--gray-light); padding-top: 16px;
}
.room__price { margin: 0; font: 700 24px var(--font); color: var(--orange); }
.room__price small { font-size: 13px; color: var(--muted); }

/* =========================================================
   22. Лайтбокс на CSS (:target), без JavaScript
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 50px 70px;
}
.lightbox:target { display: flex; animation: lb-fade .25s ease; }
body:has(.lightbox:target) { overflow: hidden; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(5,12,25,.93); cursor: zoom-out; }
.lightbox__figure { position: relative; margin: 0; max-width: 1100px; width: 100%; animation: lb-zoom .3s ease; }
.lightbox__figure img {
  width: 100%; max-height: calc(100vh - 140px); object-fit: contain;
  border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.6); background: #000;
}
.lightbox__figure figcaption {
  display: flex; justify-content: space-between; gap: 12px; color: #fff;
  font: 700 14px var(--font); padding-top: 12px;
}
.lightbox__figure figcaption span { color: var(--yellow); }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.12); border-radius: 50%;
  transition: background .2s, color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--yellow); color: var(--navy); }
.lightbox__close { top: 14px; right: 14px; width: 44px; height: 44px; font: 32px/1 Arial, sans-serif; }
.lightbox__nav { top: 50%; width: 50px; height: 50px; margin-top: -25px; font: 40px/1 Arial, sans-serif; padding-bottom: 4px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-zoom { from { transform: scale(.92); opacity: 0; } }

/* =========================================================
   23. Страница «Услуги»
   ========================================================= */
.price-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.price-nav a {
  padding: 8px 18px; border-radius: 20px; border: 2px solid var(--blue);
  font: 700 13px var(--font); color: var(--blue);
}
.price-nav a:hover { background: var(--blue); color: #fff; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.price-block {
  background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 24px; scroll-margin-top: 20px;
}
.price-block__title { display: flex; align-items: center; gap: 14px; font-size: 20px; color: var(--navy); margin-bottom: 16px; }
.price-block__title .feature__icon { width: 44px; height: 44px; margin: 0; flex-shrink: 0; }
.price-block__title .feature__icon svg { width: 22px; height: 22px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th {
  text-align: left; font: 700 12px var(--font); text-transform: uppercase; color: var(--muted);
  padding: 8px 10px; border-bottom: 2px solid var(--yellow);
}
.price-table td { padding: 10px; border-bottom: 1px solid var(--gray-light); vertical-align: top; }
.price-table tbody tr:hover { background: #f7f9fc; }
.price-table th:last-child, .price-table td:last-child { text-align: right; white-space: nowrap; }
.price-table td:last-child { font-weight: 700; color: var(--navy); }
.price-table td:nth-child(2) { color: var(--muted); white-space: nowrap; }

/* =========================================================
   24. Страница «Галерея» (фильтр на radio + :checked)
   ========================================================= */
.gallery-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gallery-filter input { position: absolute; opacity: 0; pointer-events: none; }
.gallery-filter label {
  padding: 8px 18px; border-radius: 20px; cursor: pointer; background: #f0f3f7;
  font: 700 13px var(--font); color: var(--navy); transition: .2s;
}
.gallery-filter label:hover { background: #e2e8f0; }
.gallery-filter input:checked + label { background: var(--navy); color: var(--yellow); }
.gallery-filter input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.gallery-grid {
  flex: 1 0 100%; margin-top: 26px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
#gf-nature:checked ~ .gallery-grid .g-item:not(.g-item--nature),
#gf-houses:checked ~ .gallery-grid .g-item:not(.g-item--houses),
#gf-events:checked ~ .gallery-grid .g-item:not(.g-item--events) { display: none; }
.g-item a { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item a::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 40px var(--font); color: var(--yellow); background: rgba(13,31,60,.55);
  opacity: 0; transition: opacity .25s;
}
.g-item a:hover::after, .g-item a:focus-visible::after { opacity: 1; }
.g-item a:hover img { transform: scale(1.08); }
.g-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 12px 8px;
  color: #fff; font: 700 13px var(--font);
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}

/* адаптив новых страниц */
@media (max-width: 992px) {
  .room { grid-template-columns: 1fr; }
  .room:nth-child(even) .room__gallery { order: 0; }
  .room__gallery { min-height: 0; aspect-ratio: 4 / 3.4; }
  .prices { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .room__body { padding: 20px 18px; }
  .lightbox { padding: 60px 10px 70px; }
  .lightbox__nav { top: auto; bottom: 12px; margin-top: 0; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--gray-light); }
  .price-table td { border: 0; padding: 2px 4px; }
  .price-table td:first-child { grid-column: 1 / -1; }
  .price-table td:nth-child(2) { font-size: 13px; }
}
.room__photo img { position: absolute; inset: 0; }

/* сообщения формы (PHP-обработчик) */
.form-msg { padding: 12px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 14px; }
.form-msg--ok { background: #e6f6e8; color: #1f6b2a; border-left: 4px solid #3cb34a; }
.form-msg--error { background: #fdecea; color: #a12a20; border-left: 4px solid #d9443a; }
.form [aria-invalid="true"] { border-color: #d9443a; }
.form__trap { position: absolute !important; left: -9999px; }

/* =========================================================
   Страница «Информация для гостей» (info.php)
   Подключается после css/style.css и использует его переменные
   ========================================================= */

/* ---------- Главное коротко ---------- */
.info-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 36px;
}
.info-fact {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 20px 12px; text-align: center;
  background: var(--navy); border-radius: 10px;
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  box-shadow: var(--shadow);
}
.info-fact__value { font: 700 22px/1.2 var(--font); color: var(--yellow); }
.info-fact__label { font-size: 13px; color: #c7d3e3; }

/* ---------- Группа документов ---------- */
.docs-group { margin-bottom: 40px; scroll-margin-top: 20px; }
.docs-group__title {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; color: var(--navy);
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 2px solid var(--yellow);
}
.docs-group__icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff;
  box-shadow: 0 0 0 4px rgba(26, 143, 214, .15);
}
.docs-group__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Карточка документа ---------- */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.doc {
  --doc-color: var(--blue);
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto;
  gap: 4px 16px; padding: 18px 18px 16px;
  background: #fff; border: 1px solid #e3e8ef; border-radius: 10px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.doc--pdf  { --doc-color: #d9443a; }
.doc--doc, .doc--docx { --doc-color: #2b6cd4; }
.doc--xls, .doc--xlsx { --doc-color: #2e8b4a; }

/* значок-«файл» с загнутым уголком */
.doc__type {
  grid-row: 1 / -1; position: relative;
  width: 50px; height: 62px; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 9px; border-radius: 4px 14px 4px 4px;
  background: var(--doc-color); color: #fff; font: 700 11px/1 var(--font); letter-spacing: .5px;
}
.doc__type::before {
  content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px;
  background: linear-gradient(225deg, #fff 50%, rgba(0, 0, 0, .25) 50%);
  border-radius: 0 0 0 4px;
}
.doc__type::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 18px; height: 14px;
  background: repeating-linear-gradient(#fff 0 2px, transparent 2px 6px); opacity: .55;
}
.doc__body { min-width: 0; }
.doc__title { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.doc__desc { font-size: 13px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 12px; color: #8a93a0; }
.doc__meta span + span::before { content: "•"; margin-right: 14px; color: #c4cbd5; }

.doc__actions { grid-column: 2; display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.doc__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  background: var(--doc-color); color: #fff;
  font: 700 12px/1 var(--font); text-transform: uppercase;
  transition: filter .2s, transform .2s;
}
.doc__btn:hover { color: #fff; filter: brightness(1.12); transform: translateY(-1px); }
.doc__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.doc__btn--disabled, .doc__btn--disabled:hover { background: #e3e8ef; color: #8a93a0; filter: none; transform: none; cursor: default; }
.doc__link { font: 700 12px var(--font); color: var(--doc-color); text-decoration: underline; text-underline-offset: 3px; }
.doc__link:hover { color: var(--navy); }

/* документ ещё не загружен */
.doc--soon .doc__type { filter: grayscale(1); opacity: .45; }

/* ---------- Частые вопросы ---------- */
.faq { max-width: 860px; margin: 56px auto 0; }
.faq__item {
  background: #f4f6f9; border-radius: 8px; margin-bottom: 10px;
  border-left: 4px solid transparent; transition: border-color .2s, background .2s;
}
.faq__item[open] { background: #fff; border-left-color: var(--yellow); box-shadow: var(--shadow); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 16px 52px 16px 20px; font: 700 15px var(--font); color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: var(--yellow); font: 700 18px/1 var(--font);
  transition: transform .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 8px; }
.faq__item p { margin: 0; padding: 0 20px 18px; font-size: 14px; }

/* ---------- Призыв к действию ---------- */
.info-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 50px; padding: 28px 32px; border-radius: 12px; color: #fff;
  background: linear-gradient(110deg, var(--navy) 0%, var(--blue-dark) 55%, var(--orange) 130%);
  box-shadow: var(--shadow);
}
.info-cta h2 { font-size: 22px; color: var(--yellow); margin-bottom: 4px; }
.info-cta p { margin: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.info-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Адаптив ---------- */
@media (max-width: 992px) {
  .info-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .docs { grid-template-columns: 1fr; }
  .doc { padding: 16px 14px; gap: 4px 12px; }
  .doc__type { width: 42px; height: 52px; }
  .doc__actions { grid-column: 1 / -1; }
  .info-fact__value { font-size: 18px; }
  .info-cta { padding: 22px 18px; }
  .info-cta__actions, .info-cta__actions .btn { width: 100%; }
}

/* ---------- Печать: только список документов ---------- */
@media print {
  .header, .footer, .price-nav, .info-cta, .doc__actions { display: none !important; }
  .doc { break-inside: avoid; border-color: #999; }
  .faq__item { background: none; box-shadow: none; }
}

/* ---------- Плашка «черновик» ---------- */
.lodges-draft {
  margin: 0 0 24px; padding: 12px 16px; border-radius: 6px;
  background: #fff6cc; border: 1px dashed #e0b800; color: #6b5500; font-size: 14px;
}

/* ---------- Общие условия ---------- */
.lodges-terms {
  max-width: 900px; margin: 0 auto 34px; padding: 22px 28px;
  border-top: 4px solid var(--navy); border-bottom: 4px solid var(--navy);
  text-align: center;
}
.lodges-terms__title { font-size: 18px; color: var(--navy); margin-bottom: 12px; }
.lodges-terms ul { display: grid; gap: 8px; }
.lodges-terms li { font-size: 14px; }
.lodges-terms li::before { content: "•"; color: var(--orange); font-weight: 700; margin-right: 8px; }

/* ---------- Быстрая навигация ---------- */
.lodges-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px;
}
.lodges-nav a {
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2;
  padding: 7px 14px; border-radius: 8px; border: 2px solid var(--navy);
  font: 700 13px var(--font); color: var(--navy); transition: .2s;
}
.lodges-nav small { font: 400 11px var(--font-text); color: var(--muted); transition: color .2s; }
.lodges-nav a:hover { background: var(--navy); color: var(--yellow); }
.lodges-nav a:hover small { color: #c7d3e3; }

/* ---------- Карточка домика ---------- */
.lodge {
  margin-bottom: 40px; background: #ececec; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow); scroll-margin-top: 16px;
}
.lodge__title {
  margin: 0; padding: 12px 20px; text-align: center;
  background: var(--navy); color: var(--yellow); font-size: 24px;
  border-bottom: 3px solid var(--yellow);
}
.lodge__body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; padding: 24px; }
.lodge__info h3 {
  font-size: 14px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--navy); margin: 0 0 8px;
}
.lodge__info h3 + .lodge__list { margin-bottom: 18px; }
.lodge__list li { position: relative; padding-left: 18px; font-size: 14px; margin-bottom: 4px; }
.lodge__list li::before {
  content: ""; position: absolute; left: 2px; top: .6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.lodge__btn { margin-top: 4px; border: 2px solid var(--navy); }

/* галерея: 2–3 колонки миниатюр */
.lodge__photos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start;
}
.lodge__photos li:first-child { grid-column: span 2; grid-row: span 2; }
.lodge__photos:has(li:nth-child(4):last-child) li:first-child { grid-column: 1 / -1; grid-row: auto; }
.lodge__photos a {
  position: relative; display: block; height: 100%; min-height: 90px;
  border-radius: 6px; overflow: hidden; background: #d5dbe3;
}
.lodge__photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.lodge__photos li:first-child a { min-height: 200px; }
.lodge__photos a:hover img { transform: scale(1.07); }
.lodge__photos a:hover .zoom, .lodge__photos a:focus-visible .zoom { opacity: 1; transform: none; }

/* ---------- Таблица цен ---------- */
.lodge__table-wrap { overflow-x: auto; }
.lodge-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.lodge-table thead th {
  padding: 12px 10px; background: var(--navy); color: var(--yellow);
  font: 700 12px/1.3 var(--font); text-align: center; vertical-align: middle;
}
.lodge-table thead th:first-child { text-align: left; padding-left: 20px; }
.lodge-table tbody th {
  padding: 12px 10px 12px 20px; text-align: left; font-weight: 700; color: var(--navy);
}
.lodge-table td { padding: 12px 10px; text-align: center; white-space: nowrap; }
.lodge-table td:nth-child(2), .lodge-table td:nth-child(3) { font-weight: 700; color: var(--orange); }
.lodge-table tbody tr { border-bottom: 1px solid var(--gray-light); }
.lodge-table tbody tr:last-child { border-bottom: 0; }
.lodge-table tbody tr:nth-child(even) { background: #f7f9fc; }
.lodge-table tbody tr:hover { background: #eef5fc; }

.lodges-note {
  margin: 10px 0 0; padding: 16px 20px; border-left: 4px solid var(--yellow);
  background: #f4f6f9; border-radius: 0 6px 6px 0; font-size: 14px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 992px) {
  .lodge__body { grid-template-columns: 1fr; }
  .lodge__photos { order: -1; }
}

/* на телефоне таблица превращается в карточки */
@media (max-width: 680px) {
  .lodge__title { font-size: 20px; }
  .lodge__body { padding: 16px; gap: 18px; }
  .lodge__btn { width: 100%; }
  .lodge-table thead { display: none; }
  .lodge-table, .lodge-table tbody, .lodge-table tr, .lodge-table th, .lodge-table td { display: block; }
  .lodge-table tbody tr { padding: 12px 16px; background: #fff !important; border-bottom: 6px solid #ececec; }
  .lodge-table tbody th { padding: 0 0 8px; font-size: 15px; }
  .lodge-table td {
    display: flex; justify-content: space-between; gap: 12px; padding: 5px 0;
    text-align: right; white-space: normal; border-top: 1px dashed var(--gray-light);
  }
  .lodge-table td::before {
    content: attr(data-label); text-align: left; font-weight: 400; color: var(--muted); font-size: 13px;
  }
  .lodges-terms { padding: 18px 8px; text-align: left; }
}

.svc-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.svc-nav a {
  padding: 7px 14px; border-radius: 20px; border: 2px solid var(--navy);
  font: 700 13px var(--font); color: var(--navy); transition: .2s;
}
.svc-nav a:hover { background: var(--navy); color: var(--yellow); }

/* ---------- Блок услуги ---------- */
.svc {
  margin-bottom: 40px; background: #ececec; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow); scroll-margin-top: 16px;
}
.svc__title {
  margin: 0; padding: 12px 20px; text-align: center;
  background: var(--navy); color: var(--yellow); font-size: 26px;
  border-bottom: 3px solid var(--yellow);
}
.svc__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 24px; align-items: start; }
.svc__body--single { grid-template-columns: 1fr; }
.svc__text p { font-size: 14px; margin-bottom: .8em; }
.svc__text p:last-child { margin-bottom: 0; }
.svc__note { font-style: italic; color: var(--muted); padding-left: 12px; border-left: 3px solid var(--yellow); }
.svc__badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: #3cb34a; color: #fff; font: 700 12px var(--font);
}
.svc__phone { font-weight: 700; }
.svc__phone a { white-space: nowrap; }

/* ---------- Фото ---------- */
.svc__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.svc__photos a {
  position: relative; display: block; aspect-ratio: 4 / 3; height: 100%;
  border-radius: 6px; overflow: hidden; background: #d5dbe3;
}
.svc__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc__photos a:hover img { transform: scale(1.07); }
.svc__photos a:hover .zoom, .svc__photos a:focus-visible .zoom { opacity: 1; transform: none; }

/* ---------- Экскурсии ---------- */
.svc__tours { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px; }
.tour {
  display: flex; flex-direction: column; padding: 20px 22px;
  background: #fff; border-radius: 8px; border-top: 4px solid var(--yellow);
  transition: transform .2s, box-shadow .2s;
}
.tour:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tour__title { font-size: 15px; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.tour__duration {
  align-self: flex-start; margin-bottom: 10px; padding: 2px 10px; border-radius: 3px;
  background: var(--navy); color: var(--yellow); font: 700 11px var(--font); text-transform: uppercase;
}
.tour__text { flex: 1; font-size: 14px; font-style: italic; color: #444; }
.svc__btn {
  align-self: flex-start; padding: 9px 18px; border-radius: 4px;
  background: var(--navy); color: var(--yellow); border: 2px solid var(--yellow);
  font: 700 12px/1 var(--font); text-transform: uppercase; transition: .2s;
}
.svc__btn:hover { background: var(--yellow); color: var(--navy); }

/* ---------- Таблица цен ---------- */
.svc__table-wrap { padding: 0 24px 24px; }
.svc__body + .svc__table-wrap { padding-top: 0; }
.svc__title + .svc__table-wrap { padding-top: 24px; }
.svc-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.svc-table thead th {
  padding: 11px 16px; background: var(--navy); color: var(--yellow);
  font: 700 13px var(--font); text-align: center;
}
.svc-table thead th:last-child { width: 32%; }
.svc-table tbody th, .svc-table tbody td { padding: 11px 16px; text-align: center; font-weight: 700; }
.svc-table tbody th { color: var(--navy); }
.svc-table tbody td { color: var(--orange); }
.svc-table tbody tr { border-bottom: 1px solid var(--gray-light); }
.svc-table tbody tr:last-child { border-bottom: 0; }
.svc-table tbody tr:nth-child(even) { background: #f7f9fc; }
.svc-table__note td { color: var(--muted) !important; font-weight: 400 !important; font-style: italic; }

.svc-footnote {
  margin: 0; padding: 16px 20px; border-left: 4px solid var(--yellow);
  background: #f4f6f9; border-radius: 0 6px 6px 0; font-size: 14px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 992px) {
  .svc__body { grid-template-columns: 1fr; }
  .svc__tours { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc__title { font-size: 20px; }
  .svc__body, .svc__tours { padding: 16px; gap: 16px; }
  .svc__table-wrap { padding: 0 16px 16px; }
  .svc__title + .svc__table-wrap { padding-top: 16px; }
  .svc__photos { grid-template-columns: repeat(3, 1fr); }
  .svc__btn { align-self: stretch; text-align: center; }
  /* таблица → строки «название / цена» */
  .svc-table thead { display: none; }
  .svc-table, .svc-table tbody, .svc-table tr, .svc-table th, .svc-table td { display: block; width: 100%; }
  .svc-table tbody tr { padding: 10px 14px; background: #fff !important; }
  .svc-table tbody th { padding: 0 0 4px; text-align: left; }
  .svc-table tbody td { padding: 0; text-align: left; }
}

.wedding-intro {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0;
  margin-bottom: 40px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow);
}
.wedding-intro__questions {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 34px 36px; color: #fff;
  background: url("../img/sunset-bg.svg") center / cover no-repeat, var(--navy);
}
.wedding-intro__questions::after { /* затемнение для читаемости */
  content: ""; position: absolute; inset: 0; background: rgba(13, 31, 60, .55);
}
.wedding-intro__questions p {
  position: relative; z-index: 1; margin: 0;
  font: italic 700 17px/1.45 var(--font); text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.wedding-intro__questions p::before {
  content: "?"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px;
  border-radius: 50%; background: var(--yellow); color: var(--navy);
  font: 700 14px/1 var(--font); font-style: normal; vertical-align: 2px; text-shadow: none;
}
.wedding-intro__answer { padding: 34px 36px; background: #fff; }
.wedding-intro__answer p { font-size: 15px; }
.wedding-intro__lead { font: 700 20px/1.35 var(--font); color: var(--navy); }
.wedding-intro__accent {
  padding: 10px 14px; border-left: 4px solid var(--yellow); background: #fff9db;
  font-weight: 700; color: var(--navy);
}
.wedding-intro__contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gray-light);
}
.wedding-intro__contact span { color: var(--muted); font-size: 14px; }
.wedding-intro__phone { font: 700 22px var(--font); color: var(--navy); white-space: nowrap; }
.wedding-intro__phone:hover { color: var(--orange); }

/* ---------- Фотогалерея ---------- */
.wedding-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 24px;
}
.wedding-gallery a {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #d5dbe3;
}
.wedding-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.wedding-gallery a::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(13, 31, 60, .5); color: var(--yellow); font: 700 34px var(--font);
  opacity: 0; transition: opacity .25s;
}
.wedding-gallery a:hover img { transform: scale(1.08); }
.wedding-gallery a:hover::after, .wedding-gallery a:focus-visible::after { opacity: 1; }
.wedding-gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 10px 6px;
  font: 700 12px var(--font); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}

/* ---------- Призыв к действию ---------- */
.wedding-cta {
  padding: 34px 24px; border-radius: 12px; text-align: center; color: #fff;
  background: linear-gradient(110deg, var(--navy) 0%, var(--blue-dark) 55%, var(--orange) 130%);
  box-shadow: var(--shadow);
}
.wedding-cta h2 { font-size: 24px; color: var(--yellow); margin-bottom: 6px; }
.wedding-cta p { margin-bottom: 18px; }
.wedding-cta__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
  .wedding-intro { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wedding-intro__questions, .wedding-intro__answer { padding: 24px 18px; }
  .wedding-intro__questions p { font-size: 15px; }
  .wedding-intro__lead { font-size: 18px; }
  .wedding-intro__contact .btn { width: 100%; }
  .wedding-gallery { grid-template-columns: repeat(2, 1fr); padding: 16px; gap: 8px; }
  .wedding-cta__actions .btn { width: 100%; }
}

.gal-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
.gal-tabs a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 20px; background: #f0f3f7;
  font: 700 13px var(--font); color: var(--navy); transition: .2s;
}
.gal-tabs a:hover { background: #e2e8f0; }
.gal-tabs a.is-active { background: var(--navy); color: var(--yellow); }
.gal-tabs small {
  min-width: 22px; padding: 1px 6px; border-radius: 10px; text-align: center;
  background: rgba(13, 31, 60, .1); font-size: 11px;
}
.gal-tabs a.is-active small { background: rgba(255, 213, 0, .2); }

/* ---------- Счётчик и пустое состояние ---------- */
.gal-count { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.gal-empty {
  max-width: 520px; margin: 0 auto; padding: 40px 20px; text-align: center;
  border: 2px dashed #d5dbe3; border-radius: 10px; color: var(--muted); font-size: 16px;
}

/* сетка в этой галерее стоит вне flex-контейнера фильтра */
#gallery .gallery-grid { margin-top: 20px; }

/* подпись в лайтбоксе может быть пустой — номер прижимаем вправо */
.lightbox__figure figcaption span { margin-left: auto; }

/* =========================================================
   Страница «События» (news.php)
   Подключается после css/style.css. Карточки (.news-card), сайдбар
   (.sidebar, .widget) и постраничная навигация — из style.css
   ========================================================= */

/* ---------- Карточка новости ---------- */
.news-card__img { display: block; height: 100%; overflow: hidden; }
.news-card__img img { transition: transform .4s; }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__btn { align-self: flex-start; padding: 9px 20px; margin-top: 4px; }

.news-empty {
  padding: 40px 20px; text-align: center; color: var(--muted);
  border: 2px dashed #d5dbe3; border-radius: 10px;
}
.widget a.is-active { font-weight: 700; color: var(--navy); }

/* ---------- Всплывающее окно (CSS :target) ---------- */
.news-modal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.news-modal:target { display: flex; animation: news-fade .25s ease; }
body:has(.news-modal:target) { overflow: hidden; }
.news-modal__backdrop { position: fixed; inset: 0; background: rgba(5, 12, 25, .88); cursor: zoom-out; }
.news-modal__box {
  position: relative; width: 100%; max-width: 820px; margin: auto;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5); animation: news-up .3s ease;
}
.news-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(13, 31, 60, .75); color: #fff; font: 30px/1 Arial, sans-serif;
  transition: background .2s, color .2s;
}
.news-modal__close:hover { background: var(--yellow); color: var(--navy); }
.news-modal__img { width: 100%; max-height: 420px; object-fit: cover; background: #e3e8ef; }
.news-modal__body { padding: 26px 34px 32px; }
.news-modal__title { font-size: 26px; color: var(--navy); margin: 4px 0 16px; }
.news-modal__back { margin-top: 10px; }

/* оформление HTML-текста новости */
.news-content { font-size: 15px; line-height: 1.7; }
.news-content h3 { font-size: 18px; color: var(--navy); margin: 22px 0 8px; }
.news-content ul, .news-content ol { margin: 0 0 1em; padding-left: 22px; }
.news-content ul { list-style: none; padding-left: 0; }
.news-content ul li { position: relative; padding-left: 20px; margin-bottom: 4px; }
.news-content ul li::before {
  content: ""; position: absolute; left: 4px; top: .65em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}
.news-content ol { list-style: decimal; }
.news-content img { margin: 14px 0; border-radius: 8px; }
.news-content blockquote {
  margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--yellow);
  background: #fff9db; font-style: italic;
}
.news-content a { text-decoration: underline; text-underline-offset: 3px; }

@keyframes news-fade { from { opacity: 0; } }
@keyframes news-up { from { transform: translateY(24px); opacity: 0; } }

/* ---------- Адаптив ---------- */
@media (max-width: 560px) {
  .news-modal { padding: 0; }
  .news-modal__box { border-radius: 0; min-height: 100%; }
  .news-modal__body { padding: 20px 18px 26px; }
  .news-modal__title { font-size: 21px; }
  .news-card__btn, .news-modal__back { width: 100%; }
}

