:root {
  --brand-pink: #FF6F6F;
  --brand-pink-dark: #A64747;
  --brand-beige: #F5F5DC;
  --brand-brown: #795548;
}

/* ====== Общие стили ====== */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #222;
  line-height: 1.7;
  background: linear-gradient(270deg, #fff4f4, #ffeaea, #fffdfd);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  margin: 0;
  overflow-x: hidden;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ====== Навбар ====== */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.navbar-brand img {
  height: 36px;
  width: auto;
  margin-right: .5rem;
}

.nav-link {
  color: #444;
  transition: color .25s ease;
}

.nav-link:hover {
  color: var(--brand-pink);
}

.nav-link.active {
  color: var(--brand-pink-dark) !important;
  font-weight: 600;
}

/* ====== Заголовки ====== */
.section-title {
  color: var(--brand-pink-dark);
  font-weight: 700;
  text-transform: capitalize;
}

/* ====== Основные элементы ====== */
.lead {
  color: #555;
  font-size: clamp(1rem, 0.95rem + .6vw, 1.2rem);
}

.img-fluid {
  border-radius: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

/* ====== Карточки и блоки ====== */
.border {
  border-color: rgba(0, 0, 0, .08) !important;
}

.rounded-3, .rounded-4 {
  border-radius: 1rem !important;
}

.p-4.border.rounded-3 {
  transition: transform .25s ease, box-shadow .25s ease;
}
.p-4.border.rounded-3:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
}

/* ====== Кнопки ====== */
.btn-brand {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  color: #fff;
  font-weight: 500;
  border-radius: .75rem;
  transition: all .25s ease;
}

.btn-brand:hover {
  background: var(--brand-pink-dark);
  border-color: var(--brand-pink-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,111,111,.3);
}

/* ====== Футер ====== */
footer {
  background: #f8f9fa;
  color: #555;
  border-top: 1px solid #eee;
  margin-top: 3rem;
}
.footer-small {
  font-size: .95rem;
}

/* ====== Анимация появления (Fade-Up) ====== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Адаптив ====== */
@media (max-width: 991.98px) {
  h1, .display-5 {
    font-size: 1.8rem;
  }
  .lead {
    font-size: 1rem;
  }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-text h1 {
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.hero-text p {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: .5rem;
  display: inline-block;
  font-weight: 500;
}

/* ====== Dark Theme ====== */
body.theme-night {
  background: linear-gradient(270deg, #1a1a1a, #2a2a2a, #1f1f1f);
  color: #f1f1f1;
  transition: background 0.5s ease, color 0.5s ease;
}

body.theme-night .navbar {
  background: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

body.theme-night .nav-link { color: #ddd; }
body.theme-night .nav-link.active { color: var(--brand-pink) !important; }

body.theme-night .section-title { color: var(--brand-pink); }
body.theme-night .lead { color: #ccc; }

body.theme-night footer {
  background: #1f1f1f;
  color: #aaa;
  border-top-color: #333;
}

body.theme-night .btn-brand {
  background: var(--brand-pink-dark);
  border-color: var(--brand-pink-dark);
}

body.theme-night .bg-light,
body.theme-night .accordion-item,
body.theme-night .p-4.border.rounded-4.h-100.shadow-sm {
  background: #fff !important;
  color: #222 !important;
  border-color: #eee !important;
}
.star {
  font-size: 2rem;
  cursor: pointer;
  transition: transform .2s, color .2s;
}
.star:hover { transform: scale(1.1); }
.star.active { color: var(--brand-pink); }

body.theme-night .bg-light,
body.theme-night .accordion-item,
body.theme-night .p-4.border.rounded-4.h-100.shadow-sm {
  background: #2a2a2a !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}

body.theme-night .accordion-button {
  background: #333 !important;
  color: #fff !important;
}

body.theme-night .accordion-button.collapsed {
  background: #2a2a2a !important;
  color: #f1f1f1 !important;
}

body.theme-night .accordion-button:not(.collapsed) {
  background: var(--brand-pink-dark) !important;
  color: #fff !important;
}

body.theme-night .text-brand {
  color: var(--brand-pink) !important;
}

/* 🔍 SEARCH ITEMS */
.search-item {
  transition: all 0.3s ease;
}
.search-item:hover {
  background-color: #fff2f2;
  transform: scale(1.02);
}

/* 💡 AUTOCOMPLETE */
#suggestionsList {
  position: absolute;
  width: 100%;
  z-index: 1000;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  max-height: 200px;
  overflow-y: auto;
}
.suggestion-item {
  cursor: pointer;
  transition: background 0.2s;
}
.suggestion-item:hover {
  background-color: #ffeaea;
}

/* 🖍️ HIGHLIGHT KEYWORD */
.highlight {
  background-color: #ffeb99;
  color: #000;
  padding: 0 2px;
  border-radius: 4px;
}

/* 📊 SCROLL PROGRESS BAR */
#scrollBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background-color: #ff6f6f;
  width: 0;
  z-index: 9999;
  transition: width 0.2s ease-out;
}

/* 🔢 COUNTER */
.counter {
  font-weight: bold;
  color: #a64747;
  font-size: 1.5rem;
}

/* 📝 FAKE FORM */
#fakeForm {
  position: relative;
}
#submitBtn {
  transition: all 0.3s ease;
}
#submitBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ✅ TOAST NOTIFICATION */
.toast-msg {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #4caf50;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  z-index: 9999;
}

/* 📋 COPY BUTTON */
.copyText {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  display: inline-block;
  margin-right: 8px;
  font-family: monospace;
}
.copyBtn {
  background-color: #ff6f6f;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.copyBtn:hover {
  background-color: #a64747;
  transform: scale(1.05);
}
.copyBtn.btn-success {
  background-color: #4caf50 !important;
}

/* 💤 LAZY IMAGE */
img.lazy {
  filter: blur(5px);
  transition: filter 0.5s ease;
}
img:not(.lazy) {
  filter: blur(0);
}

