/* Тема RouteOrion Editorial (сланець і теракота) */
:root {
  --ro-canvas: #faf7f2;
  --ro-panel: #f0e8dc;
  --ro-surface: #ffffff;
  --ro-ink: #1d2b35;
  --ro-muted: #51606b;
  --ro-primary: #1f4e5f;
  --ro-primary-dark: #163a47;
  --ro-accent: #b95c3a;
  --ro-border: #dfd4c3;
  --ro-radius: 12px;
  --ro-shadow: 0 10px 28px rgba(29, 43, 53, 0.08);
  --ro-max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ro-canvas);
  color: var(--ro-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--ro-ink);
}
p { margin: 0 0 1rem; color: var(--ro-muted); }
a { color: var(--ro-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; border-radius: var(--ro-radius); }

.ro-wrap { width: min(100% - 2rem, var(--ro-max)); margin: 0 auto; }

/* Верхній інформаційний рядок */
.ro-topbar {
  background: var(--ro-primary);
  color: #f4f1ea;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.ro-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ro-topbar a { color: #f4f1ea; }

/* Навігація */
.ro-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.96);
  border-bottom: 1px solid var(--ro-border);
  backdrop-filter: blur(8px);
}
.ro-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}
.ro-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ro-primary);
  text-decoration: none;
}
.ro-brand:hover { text-decoration: none; }
.ro-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.4rem;
  align-items: center;
}
.ro-nav-list a {
  color: var(--ro-ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.ro-nav-list a[aria-current="page"] {
  color: var(--ro-accent);
  font-weight: 700;
}
.ro-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--ro-border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  color: var(--ro-ink);
  font-size: 1rem;
  cursor: pointer;
}

/* Кнопки */
.ro-btn {
  display: inline-block;
  padding: 0.78rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.ro-btn:hover { text-decoration: none; }
.ro-btn-primary { background: var(--ro-primary); color: #ffffff; }
.ro-btn-primary:hover { background: var(--ro-primary-dark); }
.ro-btn-outline { background: transparent; border-color: var(--ro-primary); color: var(--ro-primary); }
.ro-btn-outline:hover { background: var(--ro-panel); }
.ro-btn-accent { background: var(--ro-accent); color: #ffffff; }

/* Hero */
.ro-hero { padding: 3.5rem 0 4rem; }
.ro-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
}
.ro-kicker {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--ro-panel);
  color: var(--ro-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.ro-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.ro-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.ro-hero-frame {
  background: var(--ro-surface);
  padding: 0.65rem;
  border: 1px solid var(--ro-border);
  border-radius: calc(var(--ro-radius) + 4px);
  box-shadow: var(--ro-shadow);
}

/* Секції та картки */
.ro-section { padding: 3.8rem 0; }
.ro-section-alt { background: var(--ro-panel); border-top: 1px solid var(--ro-border); border-bottom: 1px solid var(--ro-border); }
.ro-section-head { max-width: 720px; margin-bottom: 2.2rem; }
.ro-section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

.ro-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ro-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }

.ro-card {
  background: var(--ro-surface);
  border: 1px solid var(--ro-border);
  border-radius: var(--ro-radius);
  padding: 1.4rem;
  box-shadow: 0 4px 14px rgba(29, 43, 53, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ro-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.ro-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ro-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ro-meta { font-size: 0.85rem; color: var(--ro-muted); }

/* FAQ акордеон */
.ro-faq-list { display: grid; gap: 0.85rem; }
.ro-faq-item {
  background: var(--ro-surface);
  border: 1px solid var(--ro-border);
  border-radius: var(--ro-radius);
  overflow: hidden;
}
.ro-faq-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.05rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ro-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.ro-faq-panel { padding: 0 1.25rem 1.1rem; color: var(--ro-muted); }
.ro-faq-panel[hidden] { display: none; }

/* Контакти і форми */
.ro-form {
  background: var(--ro-surface);
  border: 1px solid var(--ro-border);
  border-radius: var(--ro-radius);
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}
.ro-field { display: grid; gap: 0.35rem; }
.ro-field label { font-weight: 600; font-size: 0.92rem; color: var(--ro-ink); }
.ro-field input, .ro-field select, .ro-field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--ro-border);
  border-radius: 8px;
  font: inherit;
  color: var(--ro-ink);
  background: #ffffff;
}
.ro-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--ro-muted); }
.ro-check input { width: auto; margin-top: 0.25rem; }

/* Юридичний контент і таблиці */
.ro-prose {
  background: var(--ro-surface);
  border: 1px solid var(--ro-border);
  border-radius: var(--ro-radius);
  padding: 2rem;
}
.ro-prose h2 { margin-top: 1.6rem; font-size: 1.35rem; }
.ro-prose ul { padding-left: 1.25rem; color: var(--ro-muted); }
.ro-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.93rem; }
.ro-table th, .ro-table td {
  border: 1px solid var(--ro-border);
  padding: 0.65rem 0.8rem;
  text-align: left;
}
.ro-table th { background: var(--ro-panel); color: var(--ro-ink); }
.ro-map-box {
  border: 1px solid var(--ro-border);
  border-radius: var(--ro-radius);
  overflow: hidden;
  background: var(--ro-surface);
}

/* Футер */
.ro-footer {
  background: #172731;
  color: #e6dfd4;
  padding: 3rem 0 1.8rem;
  margin-top: 2rem;
}
.ro-footer h3, .ro-footer h4 { color: #ffffff; font-size: 1.05rem; margin-bottom: 0.75rem; }
.ro-footer p, .ro-footer li { color: #c7d1d8; font-size: 0.92rem; }
.ro-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.ro-footer a { color: #e8ded0; }
.ro-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 1.8rem; }
.ro-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 2rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #b4c0c9;
}

/* Cookie банер */
.ro-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #1d2b35;
  color: #f4f1ea;
  border-top: 2px solid var(--ro-accent);
  padding: 1rem 0;
}
.ro-cookie[hidden] { display: none; }
.ro-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ro-cookie p { margin: 0; color: #e2dcd2; font-size: 0.9rem; max-width: 720px; }
.ro-cookie a { color: #f6c2a8; text-decoration: underline; }
.ro-cookie-btns { display: flex; gap: 0.6rem; }

@media (max-width: 900px) {
  .ro-hero-grid, .ro-grid-3, .ro-grid-2, .ro-footer-grid { grid-template-columns: 1fr; }
  .ro-burger { display: inline-block; }
  .ro-nav-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    background: var(--ro-canvas);
    border-bottom: 1px solid var(--ro-border);
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .ro-nav-list.is-open { display: flex; }
}
