/* ============================================================
   AMAN — bootstrap-overrides.css
   Bootstrap 5 mobile-first overrides
   Подключать ПОСЛЕ bootstrap.min.css и style.css
   ============================================================ */

/* ── RESET Bootstrap conflicts ───────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

/* Убираем любые отступы сверху которые Bootstrap добавляет для fixed navbar */
html, body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Bootstrap иногда добавляет padding-top на body через JS — блокируем */
body[style*="padding-top"] {
  padding-top: 0 !important;
}

/* Bootstrap перебивает цвет фона — принудительно возвращаем тёмную тему */
:root {
  --bs-body-bg:         #07090D;
  --bs-body-color:      #F0EDE6;
  --bs-link-color:      #D8C28A;
  --bs-link-hover-color:#e8d4a0;
  --bg-deep:            #07090D;
  --bg-mid:             #0B0E15;
  --bg-card:            rgba(255,255,255,.035);
  --bg-card-h:          rgba(255,255,255,.065);
  --gold:               #D8C28A;
  --gold-dim:           rgba(216,194,138,.55);
  --gold-glow:          rgba(216,194,138,.18);
  --gold-line:          rgba(216,194,138,.22);
  --border:             rgba(255,255,255,.07);
  --border-gold:        rgba(216,194,138,.32);
  --text:               #F0EDE6;
  --text-dim:           rgba(240,237,230,.62);
  --text-muted:         rgba(240,237,230,.38);
  --radius-sm:          12px;
  --radius-md:          20px;
  --radius-lg:          32px;
  --font-display:      'Cormorant Garamond', Georgia, serif;
  --font-body:         'Inter', Arial, sans-serif;
  --transition:         .35s cubic-bezier(.4,0,.2,1);
}

body {
  background-color: #07090D !important;
  background:       #07090D !important;
  color:            #F0EDE6 !important;
}

/* ── CONTAINER ───────────────────────────────────────────── */

.container,
.container-fluid,
.container-lg,
.container-xl,
.container-xxl {
  max-width: 1200px;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 768px) {
  .container,
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ══════════════════════════════════════════════════════════
   NAVBAR (Bootstrap .navbar overrides)
══════════════════════════════════════════════════════════ */

.navbar {
  padding: 18px 40px;
  background: rgba(7,9,13,.72) !important;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid rgba(216,194,138,.22);
}

.navbar-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #D8C28A !important;
  line-height: 1;
}

.navbar-nav .nav-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(240,237,230,.62) !important;
  padding: 4px 0;
  margin: 0 14px;
  position: relative;
  transition: color .3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: #D8C28A;
  transition: width .3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #D8C28A !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Mobile navbar collapse */
.navbar-collapse {
  background: rgba(7,9,13,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(216,194,138,.12);
  margin: 0 -40px;
  padding: 20px 40px 28px;
}

@media (max-width: 768px) {
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 5000!important;
  }

  /* Убираем любой отступ сверху */
  html, body {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  .navbar { padding: 14px 20px; }
  .navbar-collapse { margin: 0 -20px; padding: 18px 20px 24px; }
  .navbar-nav .nav-link { margin: 6px 0; font-size: 14px; }
}

/* Toggler */
.navbar-toggler {
  border: 1px solid rgba(216,194,138,.35) !important;
  border-radius: 8px;
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28216%2C194%2C138%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ══════════════════════════════════════════════════════════
   GRID — Bootstrap row/col resets
══════════════════════════════════════════════════════════ */

/* Cards в Bootstrap grid */
.col-sm-6.col-lg-3 .modern-service-card,
[class*='col'] .modern-service-card {
  height: 100%;
}

/* Gap overrides */
.g-3 { --bs-gutter-x: 14px; --bs-gutter-y: 14px; }
.g-4 { --bs-gutter-x: 18px; --bs-gutter-y: 18px; }

/* ══════════════════════════════════════════════════════════
   BUTTONS — Bootstrap .btn overrides
══════════════════════════════════════════════════════════ */

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: #D8C28A;
  color: #0d0f14;
  border: none;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .35s ease;
  box-shadow: 0 8px 30px rgba(216,194,138,.25);
}

.btn-gold:hover {
  background: #e8d4a0;
  color: #0d0f14;
  box-shadow: 0 12px 40px rgba(216,194,138,.4);
  transform: translateY(-2px);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: #D8C28A;
  border: 1px solid rgba(216,194,138,.45);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .35s ease;
}

.btn-outline-gold:hover {
  background: rgba(216,194,138,.1);
  border-color: #D8C28A;
  color: #D8C28A;
}

/* ══════════════════════════════════════════════════════════
   CARDS — Bootstrap .card overrides
══════════════════════════════════════════════════════════ */

.card {
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 20px !important;
  color: #F0EDE6;
  transition: all .35s ease;
}

.card:hover {
  border-color: rgba(216,194,138,.32) !important;
  background: rgba(255,255,255,.065) !important;
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}

.card-body { padding: 28px; }

.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  color: #D8C28A;
  margin-bottom: 12px;
}

.card-text {
  font-size: 14px;
  color: rgba(240,237,230,.62);
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════
   FORMS — Bootstrap form overrides
══════════════════════════════════════════════════════════ */

.form-control,
.form-select {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #F0EDE6 !important;
  border-radius: 12px !important;
  padding: 14px 18px;
  font-size: 15px;
  transition: all .3s ease;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(216,194,138,.5) !important;
  box-shadow: 0 0 0 3px rgba(216,194,138,.12) !important;
  color: #F0EDE6 !important;
}

.form-control::placeholder { color: rgba(240,237,230,.3); }

.form-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(216,194,138,.7);
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════════
   TYPOGRAPHY — Bootstrap headings
══════════════════════════════════════════════════════════ */

h1, h2, h3, .h1, .h2, .h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.display-1,
.display-2,
.display-3,
.display-4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  color: #D8C28A;
}

/* ══════════════════════════════════════════════════════════
   UTILITIES — кастомные helper классы
══════════════════════════════════════════════════════════ */

.text-gold { color: #D8C28A !important; }
.text-dim  { color: rgba(240,237,230,.62) !important; }
.text-muted-aman { color: rgba(240,237,230,.38) !important; }
.bg-aman   { background: #07090D !important; }
.bg-card   { background: rgba(255,255,255,.035) !important; }

.border-gold { border-color: rgba(216,194,138,.32) !important; }

.rounded-aman-sm { border-radius: 12px !important; }
.rounded-aman-md { border-radius: 20px !important; }
.rounded-aman-lg { border-radius: 32px !important; }

/* section spacing */
.section-gap    { padding: 100px 0; }
.section-gap-sm { padding: 60px 0; }

@media (max-width: 768px) {
  .section-gap    { padding: 60px 0; }
  .section-gap-sm { padding: 40px 0; }
}

/* gold divider */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(216,194,138,.3),
    transparent);
  border: none;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   MODAL overrides
══════════════════════════════════════════════════════════ */

.modal-content {
  background: #0d0f14 !important;
  border: 1px solid rgba(216,194,138,.2) !important;
  border-radius: 24px !important;
  color: #F0EDE6;
}

.modal-header {
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
}

.modal-footer {
  border-top: 1px solid rgba(255,255,255,.07) !important;
}

.btn-close {
  filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg);
  opacity: .6;
}

/* ══════════════════════════════════════════════════════════
   OFFCANVAS (mobile menu)
══════════════════════════════════════════════════════════ */

.offcanvas {
  background: rgba(7,9,13,.98) !important;
  backdrop-filter: blur(30px);
  border-right: 1px solid rgba(216,194,138,.15) !important;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 24px;
}

.offcanvas-body { padding: 24px; }

.offcanvas-body .nav-link {
  font-size: 20px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: rgba(240,237,230,.7) !important;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  letter-spacing: 1px;
}

.offcanvas-body .nav-link:hover {
  color: #D8C28A !important;
}

/* ══════════════════════════════════════════════════════════
   ACCORDION overrides
══════════════════════════════════════════════════════════ */

.accordion-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 14px !important;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-button {
  background: transparent !important;
  color: #F0EDE6 !important;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: #D8C28A !important;
}

.accordion-button::after {
  filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg);
}

.accordion-body {
  background: transparent;
  color: rgba(240,237,230,.7);
  font-size: 15px;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════
   MOBILE BREAKPOINTS — Bootstrap grid helpers
══════════════════════════════════════════════════════════ */

/* xs < 576 */
@media (max-width: 575.98px) {
  .navbar-brand { font-size: 26px; letter-spacing: 3px; }
  .btn-gold, .btn-outline-gold { padding: 12px 22px; font-size: 11px; }
  .card-body { padding: 20px; }
}

/* sm 576–767 */
@media (min-width: 576px) and (max-width: 767.98px) {
  .navbar { padding: 16px 24px; }
}

/* md 768–991 */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar { padding: 16px 30px; }
}