:root {
  --bg: #1e2124;
  --surface: #2f3136;
  --surface-hover: #36393f;
  --surface-active: #40444b;
  --text-primary: #dcddde;
  --text-secondary: #b9bbbe;
  --text-muted: #72767d;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --accent-active: #3f48b0;
  --border: #202225;
  --shadow: rgba(0,0,0,0.4);
  --danger: #ed4245;
}

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

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

header {
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0.92)),
              url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&q=80&w=2400') center/cover;
  color: white;
}

nav {
  background: #202225;
  border-bottom: 1px solid var(--border);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 0.9rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #7289da;
  letter-spacing: 0.5px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 1.4rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #dcddde;
  transition: all 0.3s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #202225;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  transform: translateX(100%);
  transition: transform 0.4s;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
}

.hero {
  padding: 14rem 5% 8rem;
  text-align: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.8rem, 10vw, 6.5rem);
  margin-bottom: 1.4rem;
}

.hero p {
  font-size: 1.3rem;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  color: #dcddde;
}

.btn {
  background: var(--accent);
  color: white;
  padding: 0.95rem 2.4rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

main {
  padding: 4rem 5% 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

h2 {
  font-family: 'Playfair Display', serif;
  color: white;
  text-align: center;
  margin: 2rem 0 3rem;
  font-size: 2.8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px var(--shadow);
}

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 1.4rem;
}

.card h3 {
  color: white;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-secondary);
}

footer {
  background: #202225;
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 5% 2rem;
  border-top: 1px solid var(--border);
}

/* Карусель */
.carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 4rem;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-item {
  min-width: 100%;
  background: var(--surface);
}

.carousel-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.carousel-caption {
  padding: 1.8rem;
  text-align: center;
}

.carousel-caption h2 { color: white; }
.carousel-caption p  { color: var(--text-secondary); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}

#prev { left: 15px; }
#next { right: 15px; }

/* Фильтры */
.filters {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filters select, .filters input {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
}

/* Таблица */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: #36393f;
  color: white;
}

/* Медиа */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding-top: 10rem; }
}

