/* RTS Online — восстановление по снимку rtsnmmconline.com (2016-11-27).
   Разметка и палитра оригинала сохранены; символика и название
   муниципальной корпорации намеренно не воспроизводятся. */

:root {
  --sand: #cf9b6d;
  --sand-soft: #e3c3a5;
  --paper: #fff;
  --ink: #23272e;
  --ink-soft: #5c6470;
  --line: #e3e6ea;
  --accent: #655fb5;
  --accent-soft: #f2dede;
  --accent-line: #84a7f5;
  --band: #c9dff1;
  --font: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --wrap: 1140px;
  --radius: 11px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  padding: 22px 16px;
  background: var(--sand);
  color: var(--ink);
  font: 400 16px/1.65 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- шапка ---------- */

.site-header {
  max-width: var(--wrap);
  margin: 0 auto 22px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 26px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 auto;
}
.brand__mark svg { width: 28px; height: 28px; fill: currentColor; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.brand__sub { font-size: .82rem; color: var(--ink-soft); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink);
  text-decoration: none;
}
.primary-nav a:hover { background: var(--accent-soft); color: #4b4691; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle__bar { display: block; height: 2px; background: var(--accent); margin: 5px 0; }

/* ---------- секции ---------- */

main { display: block; }

section {
  max-width: var(--wrap);
  margin: 0 auto 22px;
  padding: 34px 30px 38px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
}

.section-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 10px; }
.section-lead { margin: 0 0 26px; color: var(--ink-soft); max-width: 70ch; }

/* герой */

.hero__inner { max-width: 76ch; }
.hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin-bottom: 16px; }
.hero__lead { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 16px; }
.hero__note {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--accent-line);
  background: #f6f8fd;
  font-size: .92rem;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: #524cA0; }

/* услуги */

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.service-grid > * { min-width: 0; }

.service {
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  padding: 18px;
  background: #fdfdff;
}
.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.service__icon svg { width: 24px; height: 24px; fill: currentColor; }
.service__title { font-size: 1.03rem; margin-bottom: 6px; }
.service__desc { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* шаги */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.steps > * { min-width: 0; }
.step { padding-top: 4px; }
.step__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.step__title { font-size: 1.05rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* сроки */

.deadlines__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.deadlines__grid > * { min-width: 0; }
.note {
  background: var(--band);
  border-radius: 9px;
  padding: 20px;
}
.note h3 { font-size: 1.02rem; margin-bottom: 8px; }
.note p { margin: 0; font-size: .93rem; color: #2f4256; }

/* FAQ */

.faq__list { display: grid; gap: 10px; max-width: 90ch; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fdfdff;
}
.faq__item summary {
  cursor: pointer;
  padding: 14px 18px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "+";
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--accent);
}
.faq__item[open] summary::before { content: "–"; }
.faq__item summary h3 { font-size: 1rem; display: inline; }
.faq__item p { margin: 0; padding: 0 18px 16px 40px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- подвал ---------- */

.site-footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 30px 32px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
  text-align: center;
}
.site-footer__brand { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; }
.site-footer__note {
  max-width: 80ch;
  margin: 0 auto 16px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.site-footer__legal { margin: 0; font-size: .82rem; color: #6b7280; }

/* ---------- мобильные ---------- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav { display: none; flex: 1 1 100%; margin-left: 0; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a { padding: 12px; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { padding: 12px; }
  section, .site-header__inner, .site-footer { padding-left: 18px; padding-right: 18px; }
  section { margin-bottom: 14px; }
  .brand__name { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* инлайновые ссылки в тексте различимы не только цветом (WCAG 1.4.1) */
p a:not(.btn):not(.link-arrow) { text-decoration: underline; }
p a:not(.btn):not(.link-arrow):hover { text-decoration: none; }
