/* А М Киндер — навигация, доступность и формы. Обновление 26.10.2026. */
.amk-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.amk-utility {
  position: relative;
  z-index: 850;
  border-bottom: 1px solid #eadfce;
  background: #fffaf1;
  color: #3e3226;
  font-family: Arial, sans-serif;
}
.amk-utility-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px 16px;
  padding-top: 7px;
  padding-bottom: 7px;
  box-sizing: border-box;
}
.amk-site-search {
  display: flex;
  flex: 1 1 300px;
  max-width: 450px;
  min-width: 180px;
  gap: 7px;
  margin: 0;
}
.amk-site-search input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid #d9cbb8;
  border-radius: 11px;
  background: #fff;
  color: #2f271f;
  padding: 8px 12px;
  font:
    14px/1.25 Arial,
    sans-serif;
}
.amk-site-search button,
.amk-utility-nav a,
.amk-utility-nav button {
  min-height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  padding: 8px 11px;
  font:
    700 13px/1.2 Arial,
    sans-serif;
  white-space: nowrap;
}
.amk-site-search button {
  border: 1px solid #b9832a;
  background: #b9832a;
  color: #fff;
  cursor: pointer;
}
.amk-utility-nav {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
}
.amk-utility-nav a {
  color: #594736;
  text-decoration: none;
}
.amk-utility-nav a:hover {
  background: #f4eadb;
  color: #2f271f;
}
.amk-utility-nav button {
  border: 1px solid #cbb99f;
  background: #fff;
  color: #4c3b2b;
  cursor: pointer;
}
.amk-utility-nav button[aria-pressed="true"] {
  border-color: #183b40;
  background: #183b40;
  color: #fff;
}
.amk-utility :is(a, button, input):focus-visible,
.amk-page :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #147d7a;
  outline-offset: 3px;
}
.amk-skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: #183b40;
  color: #fff;
}
.amk-skip-link:focus {
  top: 8px;
}

.amk-page {
  box-sizing: border-box;
  padding-top: 38px;
  padding-bottom: 64px;
  font-family: Arial, sans-serif;
}
.amk-page .page-head {
  max-width: 900px;
}
.amk-page .page-head h1 {
  margin-bottom: 12px;
}
.amk-page .page-head p {
  max-width: 820px;
  line-height: 1.6;
}
.amk-page .doc {
  max-width: 1000px;
}
.amk-panel {
  box-sizing: border-box;
  margin: 22px 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #e4d9ca;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px -42px rgba(62, 50, 38, 0.8);
}
.amk-panel > :first-child {
  margin-top: 0;
}
.amk-panel > :last-child {
  margin-bottom: 0;
}
.amk-grid-2,
.amk-grid-3 {
  display: grid;
  gap: 16px;
}
.amk-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.amk-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.amk-card {
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #e7ddd0;
  border-radius: 20px;
  background: #fff;
}
.amk-card h2,
.amk-card h3 {
  margin-top: 0;
}
.amk-card > :last-child {
  margin-bottom: 0;
}
.amk-notice {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid #d9a62e;
  border-radius: 0 15px 15px 0;
  background: #fff6df;
  color: #5c492b;
  line-height: 1.6;
}
.amk-notice--safe {
  border-left-color: #147d7a;
  background: #edf8f5;
  color: #244b49;
}
.amk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
}
.amk-actions .btn {
  box-sizing: border-box;
}
.amk-link-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.amk-link-list a {
  color: #8a5d16;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.amk-link-list small {
  display: block;
  margin-top: 2px;
  color: #6b5b4b;
  line-height: 1.45;
}
.amk-meta {
  color: #6b5b4b;
  font-size: 14px;
  line-height: 1.55;
}
.amk-page .legal-nav {
  flex-wrap: wrap;
  gap: 7px 14px;
}

/* Поиск без передачи запроса внешним поисковым системам. */
.amk-search-main {
  max-width: 950px;
  margin: 0 auto;
}
.amk-search-box {
  display: flex;
  gap: 10px;
  margin: 24px 0 16px;
}
.amk-search-box input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  box-sizing: border-box;
  border: 1px solid #cdbba4;
  border-radius: 15px;
  padding: 12px 16px;
  background: #fff;
  color: #2f271f;
  font:
    17px/1.3 Arial,
    sans-serif;
}
.amk-search-box button {
  min-height: 52px;
}
.amk-search-count {
  margin: 18px 0 10px;
  color: #5f5143;
  font-weight: 700;
}
.amk-search-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.amk-search-result {
  box-sizing: border-box;
  padding: 19px 20px;
  border: 1px solid #e5dbce;
  border-radius: 18px;
  background: #fff;
}
.amk-search-result h2 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.25;
}
.amk-search-result h2 a {
  color: #765015;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.amk-search-result p {
  margin: 7px 0 0;
  line-height: 1.55;
}
.amk-search-url {
  color: #52706c;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.amk-empty {
  padding: 20px;
  border-radius: 16px;
  background: #fff6df;
}

/* Реальная версия для слабовидящих: настройки сохраняются в этом браузере. */
.amk-a11y-controls {
  display: grid;
  gap: 18px;
}
.amk-a11y-group {
  margin: 0;
  padding: 18px;
  border: 1px solid #e1d5c5;
  border-radius: 18px;
}
.amk-a11y-group legend {
  padding: 0 7px;
  font-weight: 800;
}
.amk-a11y-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.amk-a11y-buttons button,
.amk-button {
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid #bda98f;
  border-radius: 13px;
  background: #fff;
  color: #3e3226;
  padding: 11px 15px;
  font:
    700 15px/1.25 Arial,
    sans-serif;
  cursor: pointer;
}
.amk-a11y-buttons button[aria-pressed="true"] {
  border-color: #147d7a;
  background: #147d7a;
  color: #fff;
}
.amk-button--primary {
  border-color: #b9832a;
  background: #b9832a;
  color: #fff;
}
.amk-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Анкета оценивает условия, а не лечение и не ребёнка. */
.amk-quality-form {
  margin-top: 20px;
}
.amk-rating {
  margin: 0 0 15px;
  padding: 18px;
  border: 1px solid #e4d9ca;
  border-radius: 18px;
  background: #fff;
}
.amk-rating legend {
  max-width: 100%;
  padding: 0 6px;
  font-weight: 800;
  line-height: 1.4;
}
.amk-rating-scale {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}
.amk-rating-scale > small {
  color: #6b5b4b;
}
.amk-rating-option {
  position: relative;
  display: inline-flex;
}
.amk-rating-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.amk-rating-option span {
  width: 43px;
  height: 43px;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid #bda98f;
  border-radius: 50%;
  background: #fff;
  color: #3e3226;
  font-weight: 800;
  cursor: pointer;
}
.amk-rating-option input:checked + span {
  border-color: #147d7a;
  background: #147d7a;
  color: #fff;
}
.amk-rating-option input:focus-visible + span {
  outline: 3px solid #b9832a;
  outline-offset: 3px;
}
.amk-quality-form .field {
  margin-top: 16px;
}
.amk-quality-form textarea {
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  border: 1px solid #cdbba4;
  border-radius: 14px;
  padding: 12px 14px;
  font:
    16px/1.5 Arial,
    sans-serif;
}
.amk-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 17px 0;
  line-height: 1.55;
  cursor: pointer;
}
.amk-choice input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: #147d7a;
}
.amk-choice a {
  color: #8a5d16;
  text-decoration: underline;
}
.amk-status {
  margin-top: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.amk-status[hidden] {
  display: none;
}
.amk-status--error {
  color: #9b3128;
}
.amk-status--ok {
  color: #17615b;
}

/* Страница перед внешним чатом. */
.amk-chat-consent {
  max-width: 780px;
}
.amk-chat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 15px 0;
}
.amk-chat-links a {
  color: #8a5d16;
  font-weight: 800;
  text-decoration: underline;
}

/* Карта сайта. */
.amk-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.amk-sitemap-grid .amk-card {
  min-width: 0;
}
.amk-sitemap-grid a {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .amk-utility-inner {
    flex-wrap: wrap;
  }
  .amk-site-search {
    max-width: none;
    flex-basis: 100%;
  }
  .amk-utility-nav {
    margin-left: 0;
  }
  .amk-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  /* На телефоне строка должна занимать две строки, а не четыре: сверху поиск,
     снизу три ссылки в один ряд. Иначе она съедает пол-экрана до акции. */
  .amk-utility-inner {
    gap: 6px;
    min-height: 0;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .amk-site-search {
    flex-basis: 100%;
  }
  .amk-site-search input {
    min-height: 34px;
    font-size: 13px;
  }
  .amk-site-search button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .amk-utility-nav {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }
  .amk-utility-nav a,
  .amk-utility-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 30px;
    padding: 6px 7px;
    font-size: 11.5px;
  }
  .amk-grid-2,
  .amk-grid-3,
  .amk-sitemap-grid {
    grid-template-columns: 1fr;
  }
  .amk-page {
    padding-top: 26px;
  }
  .amk-panel {
    border-radius: 18px;
  }
  .amk-search-box {
    flex-direction: column;
  }
  .amk-search-box .btn {
    width: 100%;
  }
  .amk-rating {
    padding: 15px 12px;
  }
  .amk-rating-scale {
    gap: 7px;
  }
  .amk-rating-option span {
    width: 40px;
    height: 40px;
  }
}
/* Договор онлайн: документы, оглавление и читаемая юридическая редакция. */
.amk-contract-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: contract-step;
}
.amk-contract-steps li {
  position: relative;
  padding: 18px 16px 16px 54px;
  border: 1px solid #eadbc4;
  border-radius: 16px;
  background: #fffaf1;
  counter-increment: contract-step;
}
.amk-contract-steps li::before {
  content: counter(contract-step);
  position: absolute;
  left: 16px;
  top: 17px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b9832a;
  color: #fff;
  font-weight: 700;
}
.amk-contract-version {
  overflow-wrap: anywhere;
  font:
    13px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #655c51;
}
.amk-contract-toc {
  columns: 2;
  column-gap: 30px;
  padding-left: 22px;
}
.amk-contract-toc li {
  break-inside: avoid;
  margin-bottom: 8px;
}
.amk-contract-text {
  margin-top: 22px;
  padding: clamp(20px, 4vw, 46px);
  border: 1px solid #e4d8c6;
  border-radius: 20px;
  background: #fff;
  line-height: 1.68;
}
.amk-contract-text h2 {
  margin: 38px 0 16px;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.25;
}
.amk-contract-text h3 {
  margin: 28px 0 12px;
  font-size: 20px;
}
.amk-contract-text p {
  margin: 0 0 12px;
}
.amk-contract-text p,
.amk-contract-text em,
.amk-contract-text strong,
.amk-contract-text span,
.amk-contract-text td,
.amk-contract-text th {
  overflow-wrap: anywhere;
}
.amk-contract-text .amk-contract-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}
.amk-contract-text table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  margin: 18px 0;
}
.amk-contract-text td,
.amk-contract-text th {
  padding: 10px;
  border: 1px solid #cfc3b1;
  vertical-align: top;
}
.amk-contract-text ul,
.amk-contract-text ol {
  padding-left: 26px;
}
.amk-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 760px) {
  .amk-contract-steps {
    grid-template-columns: 1fr;
  }
  .amk-contract-toc {
    columns: 1;
  }
  .amk-contract-text {
    padding: 18px;
    border-radius: 16px;
  }
}
@media print {
  .amk-contract-steps,
  .amk-contract-toc,
  .amk-contract-actions {
    display: none !important;
  }
  .amk-contract-text {
    border: 0;
    padding: 0;
  }
  .amk-contract-text h2 {
    break-after: avoid;
  }
  .amk-contract-text table,
  .amk-contract-text p {
    break-inside: avoid;
  }
}
@media print {
  .amk-utility,
  .amk-a11y-controls,
  .amk-search-box,
  .amk-actions,
  .amk-chat-consent {
    display: none !important;
  }
  .amk-page {
    padding: 0;
  }
  .amk-panel,
  .amk-card {
    box-shadow: none;
  }
}

/* Базовый режим доступности: крупнее, спокойнее, без обязательной анимации. */
html.amk-a11y {
  font-size: 18px;
  scroll-behavior: auto !important;
}
html.amk-a11y-font-125 {
  font-size: 20px;
}
html.amk-a11y-font-150 {
  font-size: 22px;
}
html.amk-a11y body {
  background: #fff !important;
  color: #111 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}
html.amk-a11y
  body
  :where(p, li, label, input, select, textarea, button, a, summary, td, th) {
  font-size: 1rem !important;
  line-height: 1.55 !important;
}
html.amk-a11y body :where(h1) {
  font-size: 2.15rem !important;
  line-height: 1.2 !important;
}
html.amk-a11y body :where(h2) {
  font-size: 1.65rem !important;
  line-height: 1.25 !important;
}
html.amk-a11y body :where(h3) {
  font-size: 1.35rem !important;
  line-height: 1.3 !important;
}
html.amk-a11y body :where(h4) {
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
}
html.amk-a11y body :where(input, select, textarea, button) {
  min-height: 48px;
}
.amk-no-peeks [data-ft-site-peeks] {
  display: none !important;
}
.amk-no-peeks .alisa-chat-teaser {
  display: none !important;
}
.amk-no-peeks .alisa-chat-fab {
  position: static !important;
  display: block !important;
  margin: 14px !important;
}
html.amk-a11y .site-header {
  position: static !important;
}
html.amk-a11y .alisa-chat-teaser {
  display: none !important;
}
html.amk-a11y .alisa-chat-fab {
  position: static !important;
  display: block !important;
  margin: 14px !important;
}
html.amk-a11y .amk-a11y-buttons {
  display: grid;
  grid-template-columns: 1fr;
}
html.amk-a11y .amk-a11y-buttons button {
  width: 100%;
  min-height: 58px;
  margin: 3px 0;
}
html.amk-a11y .header-inner {
  height: auto !important;
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
html.amk-a11y .nav,
html.amk-a11y .header-actions {
  flex-wrap: wrap;
  height: auto !important;
}
html.amk-a11y .price-row {
  grid-template-columns: 1fr !important;
  gap: 7px !important;
}
html.amk-a11y table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
html.amk-a11y .reveal {
  opacity: 1 !important;
  transform: none !important;
}
html.amk-a11y *,
html.amk-a11y *::before,
html.amk-a11y *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
html.amk-a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
html.amk-a11y-spacing body :where(p, li) {
  margin-top: 0.55em !important;
  margin-bottom: 0.55em !important;
}
html.amk-a11y-spacing body :where(section, article, .field, .amk-panel) {
  padding-top: 1em;
  padding-bottom: 1em;
}
html.amk-a11y-contrast body {
  --ink: #000;
  --ink-2: #111;
  --muted: #222;
  --line: #333;
  --line-2: #333;
  --cream: #fff;
  --white: #fff;
}
html.amk-a11y-contrast
  body
  :where(header, footer, nav, section, article, div, form, fieldset, aside) {
  background-color: #fff !important;
  background-image: none !important;
  border-color: #222 !important;
  box-shadow: none !important;
}
html.amk-a11y-contrast
  body
  :where(
    h1,
    h2,
    h3,
    h4,
    p,
    li,
    label,
    input,
    select,
    textarea,
    summary,
    td,
    th,
    span
  ) {
  color: #000 !important;
  text-shadow: none !important;
}
html.amk-a11y-contrast body :where(a, button) {
  color: #000 !important;
  background-color: #fff !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.amk-a11y-contrast body :where(input, select, textarea) {
  border: 2px solid #000 !important;
}
