:root {
  --bg: #ffffff;
  --text: #0b2340;
  --accent: #d62828;
  --muted: #55677a;
  --card: #f4f7fb;
}

/* === RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* === PAGE GRID === */
.page-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header header"
    "sidebar main"
    "footer footer";
  min-height: 100vh;
  gap: 0;
}

/* === HERO === */
.hero {
  position: relative;
  width: 100%;
  height: 400px;
  background: url("https://images.unsplash.com/photo-1567660444666-aed93ec8aa57?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1933")
    no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px 40px;
  border-radius: 10px;
}
.hero-overlay h1 {
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  text-align: center;
}

/* === FAQ === */
.question {
  cursor: pointer;
  font-weight: 600;
  color: #0b2340;
}
.answer {
  display: none;
  color: #333;
  padding: 5px 0;
}
.answer.show {
  display: block;
}

/* === POPUP === */
.popup {
  display: none;
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.popup-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* === SCROLL PROGRESS BAR === */
#scrollBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 6px;
  z-index: 9999;
  background: linear-gradient(90deg, #ff4d4d, #d62828);
}

/* === AUTOCOMPLETE === */
#suggestions {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 480px;
  margin-top: 4px;
  z-index: 1000;
}
#suggestions li {
  list-style: none;
  padding: 6px 10px;
  cursor: pointer;
}
#suggestions li:hover {
  background: #f8d7da;
}

/* === SEARCH HIGHLIGHT === */
mark {
  background: yellow;
  padding: 0 2px;
  border-radius: 2px;
}

/* === TOAST (уведомления) === */
.toast-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
}

/* === COPY BUTTON EFFECT === */
#copyBtn {
  transition: all 0.3s ease;
}
#copyBtn:active {
  transform: scale(0.95);
}

/* === MULTISTEP FORM === */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === FOOTER === */
footer {
  background: #f8f9fa;
  color: #6c757d;
  padding: 15px 0;
  border-top: 1px solid #dee2e6;
  text-align: center;
}
/* ===== AUTOCOMPLETE ===== */
#suggestions {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 480px;
  margin-top: 4px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
#suggestions li {
  list-style: none;
  padding: 8px 12px;
  cursor: pointer;
  color: #0b2340;
}
#suggestions li:hover {
  background: #f8d7da;
}

/* ===== SEARCH HIGHLIGHT ===== */
mark {
  background: #ffed66;
  padding: 0 3px;
  border-radius: 2px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  font-weight: 500;
}

/* ===== SPINNER BUTTON ===== */
button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* ===== FAQ QUESTIONS (for highlighting) ===== */
.faq-item .question mark {
  background: #ffd6d6;
}

/* Rating Stars */
.star {
  font-size: 2rem;
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  margin: 0 5px;
}

.star:hover {
  transform: scale(1.2);
}