:root {
  --blue-dark: #11263C;
  --blue-main: #1D3557;
  --blue-accent: #2E5C8A;
  --gray-light: #F5F7FA;
  --gray-border: #E2E8F0;
  --white: #FFFFFF;
  --text-main: #1A1A1A;
  --text-muted: #6B7280;
  --accent: #2563EB;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--gray-light);
  color: var(--text-main);
  display: flex;
  min-height: 100vh;
}

/* ————— Мобильный хедер (гамбургер) ————— */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: var(--blue-main);
  color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.mobile-header .mobile-logo {
  font-weight: 600;
  font-size: 1rem;
}

.hamburger {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

/* ————— Боковая панель ————— */
.sidebar {
  width: 180px;
  background: var(--blue-main);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 25px 15px;
  box-shadow: 2px 0 6px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar .logo {
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 30px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 6px;
  transition: background 0.2s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: var(--blue-accent);
}

.sidebar nav a.logout {
  margin-top: auto;
  background: rgba(255, 0, 0, 0.15);
}

.sidebar nav a.logout:hover {
  background: rgba(255, 0, 0, 0.25);
}

/* ————— Основной контент ————— */
.main-content {
  flex: 1;
  margin-left: 180px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.topbar h1 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--blue-main);
}

.topbar p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ————— Карточки ————— */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 14px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.card h3 {
  color: var(--blue-dark);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.card .btn {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.card .btn:hover {
  background: #1E3A8A;
}

/* ————— Блоки объявлений и реквизитов ————— */
.info-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.info-block {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.info-block h2 {
  color: var(--blue-main);
  margin-bottom: 15px;
  border-bottom: 2px solid #E0E5EC;
  padding-bottom: 8px;
}

.notice {
  background: #F8FAFC;
  border-left: 4px solid #457B9D;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.notice p {
  margin: 0;
  color: #333;
  line-height: 1.4;
}

.requisites-text {
  white-space: pre-wrap;
  line-height: 1.5;
  color: #333;
}

/* ————— Подвал ————— */
.footer {
  margin-top: 50px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ————— Мобильная адаптация ————— */
@media (max-width: 768px) {
  .mobile-header { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    width: 250px;
    height: 100vh;
    padding: 20px;
  }
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .info-sections {
    grid-template-columns: 1fr;
  }
}
