/* ==========================================================================
   Аренда конференц-залов — общие стили (Bootstrap 5 + Flatpickr)
   ========================================================================== */

:root {
  --navy: #1b2b4a;
  --navy-dark: #141f36;
  --coral: #f2684f;
  --coral-dark: #e5573e;
  --ink: #26303f;
  --muted: #8a93a3;
  --line: #e4e8ee;
  --bg: #f6f8fb;
  --radius-pill: 32px;
  --radius-card: 20px;
  --shadow-sm: 0 6px 20px rgba(27, 43, 74, .08);
  --shadow-md: 0 18px 46px rgba(27, 43, 74, .14);
}

* { box-sizing: border-box; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--coral); }
a:hover { color: var(--coral-dark); }

.text-navy { color: var(--navy) !important; }
.text-coral { color: var(--coral) !important; }
.bg-navy { background: var(--navy) !important; }

.section-title {
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}

/* ---------- Navbar ---------- */
.navbar-brand {
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
}
.navbar-brand .brand-accent { color: var(--coral); }

/* Тёмная шапка с логотипом */
.site-navbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 6px 22px rgba(9, 15, 28, .28);
}
.site-navbar .navbar-brand { padding-top: .35rem; padding-bottom: .35rem; }
.site-logo { height: 38px; width: auto; display: block; }
.site-navbar .nav-link { color: rgba(255, 255, 255, .82); font-weight: 500; }
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active { color: #fff; }
@media (max-width: 575.98px) {
  .site-logo { height: 32px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(102deg, rgba(15, 23, 42, .95) 0%, rgba(18, 28, 48, .86) 42%, rgba(27, 43, 74, .58) 100%),
    url("../img/conference/2.jpeg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 104px 0 96px;
}
.hero h1 { font-weight: 800; letter-spacing: -.03em; }
.hero .lead { color: rgba(255, 255, 255, .82); }

/* ---------- Карточки залов ---------- */
.hall-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hall-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.hall-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.hall-card__price-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(242, 104, 79, .4);
}
.hall-card__body { padding: 22px 24px 26px; }
.hall-card__title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.hall-card__desc {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hall-card__more {
  color: var(--coral);
  font-weight: 700;
  font-size: .95rem;
}

/* Плейсхолдеры фото залов */
.media-hall-1 {
  background-image:
    linear-gradient(135deg, rgba(242,104,79,.15), rgba(27,43,74,.35)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23e9edf4'/%3E%3Cstop offset='1' stop-color='%23c9d3e2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='500' fill='url(%23a)'/%3E%3Cg fill='none' stroke='%236f7f9c' stroke-width='3' opacity='.55'%3E%3Crect x='250' y='150' width='300' height='170' rx='8'/%3E%3Cline x1='250' y1='210' x2='550' y2='210'/%3E%3Ccircle cx='400' cy='120' r='26'/%3E%3C/g%3E%3Ctext x='400' y='400' font-family='Arial' font-size='26' fill='%236f7f9c' text-anchor='middle'%3E%D0%9A%D0%BE%D0%BD%D1%84%D0%B5%D1%80%D0%B5%D0%BD%D1%86-%D0%B7%D0%B0%D0%BB%201%3C/text%3E%3C/svg%3E");
}
.media-hall-2 {
  background-image:
    linear-gradient(135deg, rgba(27,43,74,.30), rgba(242,104,79,.15)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23dfe6f0'/%3E%3Cstop offset='1' stop-color='%23b9c6db'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='500' fill='url(%23b)'/%3E%3Cg fill='none' stroke='%235c6c88' stroke-width='3' opacity='.55'%3E%3Crect x='210' y='160' width='380' height='150' rx='10'/%3E%3Cline x1='300' y1='160' x2='300' y2='310'/%3E%3Cline x1='400' y1='160' x2='400' y2='310'/%3E%3Cline x1='500' y1='160' x2='500' y2='310'/%3E%3C/g%3E%3Ctext x='400' y='400' font-family='Arial' font-size='26' fill='%235c6c88' text-anchor='middle'%3E%D0%9A%D0%BE%D0%BD%D1%84%D0%B5%D1%80%D0%B5%D0%BD%D1%86-%D0%B7%D0%B0%D0%BB%202%3C/text%3E%3C/svg%3E");
}

/* ---------- Страница зала ---------- */
.hall-hero {
  border-radius: var(--radius-card);
  min-height: 340px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
}

/* ---------- Слайдер (галерея) зала ---------- */
.hall-slider {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #eef1f6;
}
.hall-slider .hall-slide {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.hall-slider .carousel-caption {
  left: 22px;
  right: auto;
  bottom: 20px;
  padding: 0;
  text-align: left;
}
.hall-slider .carousel-caption .cap {
  display: inline-block;
  background: rgba(20, 31, 54, .72);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  backdrop-filter: blur(2px);
}
.hall-slider .carousel-control-prev,
.hall-slider .carousel-control-next { width: 12%; opacity: 1; }
.hall-slider .carousel-control-prev-icon,
.hall-slider .carousel-control-next-icon {
  width: 44px; height: 44px;
  background-color: rgba(20, 31, 54, .55);
  border-radius: 50%;
  background-size: 45% 45%;
  transition: background-color .2s ease;
}
.hall-slider .carousel-control-prev:hover .carousel-control-prev-icon,
.hall-slider .carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--coral);
}
.hall-slider .carousel-indicators { margin-bottom: 12px; }
.hall-slider .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(255, 255, 255, .7);
}
.hall-slider .carousel-indicators .active { background-color: var(--coral); }

/* Плейсхолдеры слайдов — Зал 1 «Панорама» */
.slide-1-1 { background-image: linear-gradient(135deg, rgba(242,104,79,.12), rgba(27,43,74,.28)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Cdefs%3E%3ClinearGradient id='s11' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23e9edf4'/%3E%3Cstop offset='1' stop-color='%23c9d3e2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='500' fill='url(%23s11)'/%3E%3Cg fill='none' stroke='%236f7f9c' stroke-width='3' opacity='.5'%3E%3Crect x='250' y='150' width='300' height='170' rx='8'/%3E%3Cline x1='250' y1='210' x2='550' y2='210'/%3E%3Ccircle cx='400' cy='120' r='26'/%3E%3C/g%3E%3C/svg%3E"); }
.slide-1-2 { background-image: linear-gradient(135deg, rgba(27,43,74,.24), rgba(242,104,79,.12)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Cdefs%3E%3ClinearGradient id='s12' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23eef1f6'/%3E%3Cstop offset='1' stop-color='%23d5deea'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='500' fill='url(%23s12)'/%3E%3Cg fill='none' stroke='%235c6c88' stroke-width='3' opacity='.5'%3E%3Crect x='300' y='140' width='200' height='120' rx='6'/%3E%3Cline x1='260' y1='330' x2='540' y2='330'/%3E%3Cline x1='300' y1='330' x2='300' y2='300'/%3E%3Cline x1='500' y1='330' x2='500' y2='300'/%3E%3C/g%3E%3C/svg%3E"); }
.slide-1-3 { background-image: linear-gradient(135deg, rgba(242,104,79,.10), rgba(27,43,74,.22)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Cdefs%3E%3ClinearGradient id='s13' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23e4ebf5'/%3E%3Cstop offset='1' stop-color='%23c2d0e4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='500' fill='url(%23s13)'/%3E%3Cg fill='none' stroke='%236f7f9c' stroke-width='3' opacity='.45'%3E%3Ccircle cx='300' cy='230' r='18'/%3E%3Ccircle cx='400' cy='230' r='18'/%3E%3Ccircle cx='500' cy='230' r='18'/%3E%3Ccircle cx='350' cy='300' r='18'/%3E%3Ccircle cx='450' cy='300' r='18'/%3E%3C/g%3E%3C/svg%3E"); }

/* Плейсхолдеры слайдов — Зал 2 «Форум» */
.slide-2-1 { background-image: linear-gradient(135deg, rgba(27,43,74,.30), rgba(242,104,79,.12)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Cdefs%3E%3ClinearGradient id='s21' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23dfe6f0'/%3E%3Cstop offset='1' stop-color='%23b9c6db'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='500' fill='url(%23s21)'/%3E%3Cg fill='none' stroke='%235c6c88' stroke-width='3' opacity='.5'%3E%3Crect x='210' y='160' width='380' height='150' rx='10'/%3E%3Cline x1='300' y1='160' x2='300' y2='310'/%3E%3Cline x1='400' y1='160' x2='400' y2='310'/%3E%3Cline x1='500' y1='160' x2='500' y2='310'/%3E%3C/g%3E%3C/svg%3E"); }
.slide-2-2 { background-image: linear-gradient(135deg, rgba(242,104,79,.12), rgba(27,43,74,.30)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Cdefs%3E%3ClinearGradient id='s22' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23d7e0ee'/%3E%3Cstop offset='1' stop-color='%23aebfd6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='500' fill='url(%23s22)'/%3E%3Cg fill='none' stroke='%234f5f7d' stroke-width='3' opacity='.5'%3E%3Cpath d='M230 320 L570 320 L520 200 L280 200 Z'/%3E%3Cline x1='280' y1='260' x2='520' y2='260'/%3E%3C/g%3E%3C/svg%3E"); }
.slide-2-3 { background-image: linear-gradient(135deg, rgba(27,43,74,.26), rgba(242,104,79,.10)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Cdefs%3E%3ClinearGradient id='s23' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23e0e7f2'/%3E%3Cstop offset='1' stop-color='%23c0cee0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='500' fill='url(%23s23)'/%3E%3Cg fill='none' stroke='%235c6c88' stroke-width='3' opacity='.45'%3E%3Cpath d='M250 320 Q400 250 550 320'/%3E%3Cpath d='M250 290 Q400 220 550 290'/%3E%3Cpath d='M250 260 Q400 190 550 260'/%3E%3C/g%3E%3C/svg%3E"); }
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
}
.price-tag .amount { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.price-tag .per { color: var(--muted); font-size: .95rem; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(242, 104, 79, .15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M4 9l3 3 7-7' fill='none' stroke='%23f2684f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Панель / карточки контента ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
}

/* ---------- Форма в стиле скрина ---------- */
.booking-form .form-control,
.booking-form .flatpickr-input {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 15px 24px;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}
.booking-form textarea.form-control { border-radius: 20px; }
.booking-form .form-control::placeholder { color: #aab2bf; }
.booking-form .form-control:focus,
.booking-form .flatpickr-input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 .18rem rgba(242, 104, 79, .18);
}
.booking-form .form-label {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: .92rem;
}

.form-check-input:checked {
  background-color: var(--coral);
  border-color: var(--coral);
}
.form-check-input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 .18rem rgba(242, 104, 79, .18);
}

.btn-submit {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 40px;
  transition: background .2s ease, transform .15s ease;
}
.btn-submit:hover { background: var(--navy-dark); color: #fff; transform: translateY(-1px); }

.btn-coral {
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 30px;
}
.btn-coral:hover { background: var(--coral-dark); color: #fff; }

.form-section-title {
  font-weight: 700;
  color: var(--navy);
  margin: 4px 0 16px;
}

/* ---------- Легенда календаря занятых дат ---------- */
.calendar-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.calendar-legend .item { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.calendar-legend .swatch { width: 16px; height: 16px; border-radius: 5px; }
.swatch--booked { background: var(--coral); }
.swatch--free { background: #fff; border: 1px solid var(--line); }
.swatch--selected { background: var(--navy); }

/* Flatpickr — занятые даты */
.flatpickr-day.booked-day {
  background: rgba(242, 104, 79, .16);
  border-color: transparent;
  color: var(--coral-dark);
  font-weight: 700;
  text-decoration: line-through;
  cursor: not-allowed;
}
.flatpickr-day.booked-day:hover { background: rgba(242, 104, 79, .16); }
.flatpickr-calendar.inline { box-shadow: none; margin: 0 auto; }
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.flatpickr-day.today { border-color: var(--coral); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  padding: 40px 0;
  margin-top: 72px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--coral); }
.footer-logo { height: 42px; width: auto; display: block; }

@media (max-width: 575.98px) {
  .hero { padding: 64px 0 56px; }
  .panel { padding: 22px 18px; }
}
