/* Цветовая схема - теплые тона для сайта о животных */
:root {
  --bg: #fefefe;
  --text: #2d3748;
  --muted: #718096;
  --brand: #e53e3e;
  --brand-light: #fed7d7;
  --card: #f7fafc;
  --accent: #fef5e7;
  --success: #38a169;
  --warning: #d69e2e;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Ubuntu', 'Cantarell', 'Noto Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: #c53030;
}

header, footer {
  background: #fff;
  box-shadow: var(--shadow);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--brand);
  font-size: 1.2em;
}

.nav ul {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav ul a {
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav ul a:hover {
  background: var(--brand-light);
  text-decoration: none;
}

.nav ul a[aria-current="page"] {
  background: var(--accent);
  color: var(--brand);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  padding: 40px 0;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 0.2em 0;
  color: var(--text);
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  font-size: 1.1em;
}

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

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: #f8f9fa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-top: 8px;
}

small, .muted {
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.btn:hover {
  transform: translateY(-1px);
  background: #c53030;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: var(--brand-light);
  color: var(--brand);
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--brand);
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  background: #2d3748;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  z-index: 9999;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-banner button {
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cookie-yes {
  background: var(--success);
  color: #fff;
}

.cookie-yes:hover {
  background: #2f855a;
}

.cookie-partial {
  background: var(--warning);
  color: #111;
}

.cookie-partial:hover {
  background: #b7791f;
}

.cookie-no {
  background: #e53e3e;
  color: #fff;
}

.cookie-no:hover {
  background: #c53030;
}

.breadcrumbs {
  font-size: 14px;
  margin: 8px 0;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--brand);
}

main {
  display: block;
  min-height: 60vh;
}

.table-scroll {
  overflow-x: auto;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* Стили для форм */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Стили для деталей */
details {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

summary {
  padding: 12px 16px;
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

summary:hover {
  background: var(--accent);
}

details[open] summary {
  background: var(--brand-light);
  color: var(--brand);
}

details p {
  padding: 16px;
  margin: 0;
  background: #fff;
}

/* Стили для изображений */
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.section-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Плейсхолдеры для изображений (если нужны) */
.media-ph {
  display: block;
  width: 100%;
  min-height: 180px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-light), var(--accent));
  border: 2px dashed var(--brand);
  padding: 20px;
  color: var(--brand);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.media-ph strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1em;
}

/* Адаптивность */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .nav {
    flex-direction: column;
    gap: 12px;
  }
  
  .nav ul {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 12px;
  }
  
  .card {
    padding: 16px;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}
