/* Страницы «Услуги и цены», «Оферта», «Политика» — поверх styles.css */
.doc-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.doc-header-inner {
  width: min(100% - var(--pad) * 2, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  flex-wrap: wrap;
}
.doc-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.doc-nav {
  display: flex;
  gap: 6px 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.doc-nav a:hover,
.doc-nav a[aria-current="page"] {
  color: var(--gold);
}
.doc {
  width: min(100% - var(--pad) * 2, 860px);
  margin-inline: auto;
  padding-block: clamp(48px, 8vw, 96px);
}
.doc h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 18px;
}
.doc .lead {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 60ch;
  margin: 0 0 clamp(36px, 6vw, 56px);
}
.doc h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  margin: clamp(40px, 6vw, 60px) 0 18px;
}
.doc h3 {
  font-family: var(--body, inherit);
  font-size: 17px;
  margin: 26px 0 8px;
}
.doc p,
.doc li {
  color: var(--text);
  line-height: 1.65;
}
.doc p {
  margin: 0 0 14px;
}
.doc ol,
.doc ul {
  padding-left: 22px;
  margin: 0 0 14px;
}
.doc li {
  margin-bottom: 6px;
}
.doc a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc .muted {
  color: var(--muted);
}

/* прайс */
.price-table {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.price-row:first-child {
  border-top: 0;
}
.price-row > * {
  min-width: 0;
}
.price-row b {
  font-size: 17px;
  display: block;
}
.price-row span {
  color: var(--muted);
  font-size: 14.5px;
}
.price-row .sum {
  font-family: var(--display);
  font-size: 19px;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}
.price-row .sum small {
  display: block;
  font-family: var(--body, inherit);
  font-size: 13px;
  color: var(--muted);
}
.note-card {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 20px 22px;
  margin-top: 18px;
  background: var(--surface-2);
}
.note-card p:last-child {
  margin-bottom: 0;
}
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 16px 20px 16px 62px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  margin: 0;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 20px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  background: var(--gold);
}
.requisites {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  background: var(--surface);
}
.requisites p {
  margin: 0 0 6px;
}

/* подвал с реквизитами — и на главной */
.footer-legal {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .price-row {
    grid-template-columns: 1fr;
  }
  .price-row .sum {
    text-align: left;
  }
}

/* ---------- форма заявки (главная, «Услуги и цены», квиз) ---------- */
.lead-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.lead-form > * {
  min-width: 0;
}
.lead-form h3 {
  font-size: 18px;
  margin: 0 0 4px;
}
.lead-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.lead-form input,
.lead-form select,
.lead-form textarea,
.result-send input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* меньше 16 px — iOS приближает страницу при фокусе */
}
.lead-form select option {
  background: var(--surface);
}
.lead-form textarea {
  min-height: 96px;
  resize: vertical;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.lead-form .lead-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
}
.lead-form .lead-consent input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--gold);
}
.lead-form .lead-consent a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lead-form .btn {
  justify-content: center;
}
.lead-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead-note {
  font-size: 13.5px;
  color: var(--muted);
  min-height: 1em;
  margin: 0;
}
.lead-note.is-ok {
  color: var(--gold);
}
.lead-note.is-err {
  color: var(--danger);
}
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lead-grid > * {
  min-width: 0;
}
@media (max-width: 560px) {
  .lead-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- плашка cookie ---------- */
.cookie-bar {
  position: fixed;
  z-index: 80;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  font-size: 13.5px;
  color: var(--muted);
}
.cookie-bar p {
  margin: 0;
  flex: 1;
}
.cookie-bar a {
  color: var(--gold);
  text-decoration: underline;
}
.cookie-bar button {
  flex: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  background: var(--gold);
  color: #1a1408;
  font: 700 14px var(--body);
  cursor: pointer;
}

/* квиз: согласие и ошибки */
.quiz-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
}
.quiz-consent input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--gold);
}
.quiz-consent a,
.result-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.result-note.is-err {
  color: var(--danger);
}
