/* OTER — minimalist design studio overrides */
:root {
  --rp-bg: #faf9f7;
  --rp-bg-2: #ffffff;
  --rp-elev: #ffffff;
  --rp-card: #ffffff;
  --rp-line: rgba(20, 20, 20, 0.08);
  --rp-text: #141414;
  --rp-muted: #5c5c5c;
  --rp-dim: #8a8a8a;
  --rp-accent: #1a1a1a;
  --rp-accent-2: #c4a574;
  --rp-grad: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%);
  --rp-radius: 4px;
  --rp-radius-sm: 2px;
  --rp-container: 1320px;
  --rp-narrow: 880px;
  --font-heading: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

body {
  font-size: 18px;
  line-height: 1.75;
  background: var(--rp-bg);
  letter-spacing: 0.01em;
}

h1, .page-header h1, .article-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
}

h2, .rp-section__head h2, .section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
}

h3, .term-card h3, .article-card h3 {
  font-size: 1.35rem !important;
  font-weight: 600 !important;
}

.section, .section-spacious {
  padding: clamp(80px, 12vw, 140px) 0;
}

.section-alt {
  background: #f3f1ed;
}

.section-eyebrow, .cta-band__eyebrow, .oter-hero__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rp-dim);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-desc, .page-lead, .article-lead {
  font-size: 1.2rem;
  color: var(--rp-muted);
  max-width: 640px;
  line-height: 1.7;
}

.rp-card, .term-card, .article-card, .contact-card, .category-card {
  border-radius: var(--rp-radius);
  border: 1px solid var(--rp-line);
  box-shadow: none;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
  background: var(--rp-card);
}

.rp-card:hover, .term-card:hover, .article-card:hover {
  border-color: rgba(20, 20, 20, 0.18);
  transform: translateY(-2px);
}

.term-grid, .article-grid, .category-grid, .contacts-grid {
  gap: 2rem;
}

.rp-btn--solid, .btn-primary {
  background: var(--rp-accent) !important;
  border-color: var(--rp-accent) !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.rp-btn--ghost, .btn-ghost, .btn-secondary {
  border-radius: 999px;
  border: 1px solid var(--rp-line);
  color: var(--rp-text) !important;
  background: transparent !important;
}

a { color: var(--rp-text); }
a:hover { color: var(--rp-accent-2); }

.rp-topbar {
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rp-line);
}

.rp-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rp-muted);
}

.rp-nav a.active, .rp-nav a:hover {
  color: var(--rp-text);
}

/* Hero */
.oter-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: stretch;
  background: #141414;
  color: #fff;
}

.oter-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.3) 0%, rgba(20,20,20,0.85) 100%),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80') center/cover no-repeat;
  opacity: 0.9;
}

.oter-hero__shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--rp-container);
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 4vw, 3rem) 4rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.oter-hero .ilook-hero__nav {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.oter-hero .ilook-hero__nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.oter-hero .ilook-hero__nav-links a:hover {
  color: #fff;
}

.oter-hero .rp-brand { color: #fff; }

.oter-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
  padding: clamp(3rem, 10vw, 8rem) 0;
}

.oter-hero__heading {
  font-size: clamp(3rem, 8vw, 6.5rem) !important;
  font-weight: 700 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.05em !important;
  color: #fff;
  margin-bottom: 1.5rem;
}

.oter-hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.oter-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.oter-hero .rp-btn--solid {
  background: #fff !important;
  color: #141414 !important;
  border-color: #fff !important;
}

.oter-hero .rp-btn--ghost {
  border-color: rgba(255,255,255,0.35) !important;
  color: #fff !important;
}

.ilook-hero__video { display: none; }

.container-narrow { max-width: var(--rp-narrow); }

.section-more {
  margin-top: 3rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-more a {
  color: var(--rp-muted);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.rp-footer {
  background: #141414;
  color: rgba(255,255,255,0.7);
  margin-top: 0;
}

.rp-footer a { color: rgba(255,255,255,0.85); }
.rp-footer h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }

.footer-request-wrap {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--rp-radius);
  padding: 2.5rem;
}

.cta-band {
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  padding: clamp(2rem, 5vw, 4rem);
  background: #fff;
}

.prose p { margin-bottom: 1.25rem; }
.prose h2 { margin: 2.5rem 0 1rem; }

.empty-state {
  color: var(--rp-dim);
  font-size: 1.1rem;
  padding: 3rem 0;
}

.form-success {
  color: #1a5c4b;
  padding: 1rem;
  background: rgba(26,92,75,0.08);
  border-radius: var(--rp-radius);
  margin-bottom: 1rem;
}

.sitemap-list { line-height: 2; }
.sitemap-list a { color: var(--rp-muted); }

.search-form {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.search-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--rp-line);
  border-radius: 999px;
  background: #fff;
}

.pagination { display: flex; gap: 0.5rem; margin-top: 3rem; }
.pagination a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--rp-line);
  border-radius: 999px;
}
.pagination a.active { background: var(--rp-accent); color: #fff; border-color: var(--rp-accent); }

/* Admin extras */
.admin-shell { display: flex; min-height: 100vh; font-family: Inter, sans-serif; }
.admin-sidebar { width: 220px; background: #141414; color: #fff; padding: 1.5rem; }
.admin-sidebar a { display: block; color: rgba(255,255,255,0.75); padding: 0.5rem 0; }
.admin-sidebar a:hover { color: #fff; }
.admin-logo { font-weight: 700; font-size: 1.2rem; display: block; margin-bottom: 2rem; color: #fff !important; }
.admin-main { flex: 1; padding: 2rem; background: #f6f6f6; }
.admin-header h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #eee; text-align: left; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.admin-stat-card { background: #fff; padding: 1.5rem; border-radius: 8px; }
.admin-stat-card strong { display: block; font-size: 2rem; }
.admin-form .form-group { margin-bottom: 1rem; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; padding: 0.6rem; border: 1px solid #ddd; border-radius: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-link { background: none; border: none; color: #c00; cursor: pointer; }
.form-error { color: #c00; margin-bottom: 1rem; }
