/* AYDA, сайт ayda-drive.kg — общее для всех страниц: палитра, шапка, кнопки,
   подвал, страницы документов. Главная — дополнительно home.css.
   Светлый сайт: сайт услуги держится на фотографиях (скиллы taste-skill, ui-ux-pro-max).
   Фирменные цвета AYDA (lib/core/theme/app_theme.dart): лайм #D4F377 — действие,
   графит #172326 — чернила на лайме и плашка знака. */

/* Шрифты на своём сервере (Google Fonts, лицензия SIL OFL 1.1): Unbounded и Golos Text,
   кириллица и латиница, переменная толщина. Браузер не обращается к Google. */
/* Golos Text 400 cyrillic */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/golos-text-cyrillic-465785.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text 400 latin */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/golos-text-latin-83cb19.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Golos Text 500 cyrillic */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/golos-text-cyrillic-465785.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text 500 latin */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/golos-text-latin-83cb19.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Golos Text 600 cyrillic */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/golos-text-cyrillic-465785.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text 600 latin */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/golos-text-latin-83cb19.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Golos Text 700 cyrillic */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/golos-text-cyrillic-465785.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text 700 latin */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/golos-text-latin-83cb19.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded 500 cyrillic */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/unbounded-cyrillic-92a538.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded 500 latin */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/unbounded-latin-f2b2b2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded 600 cyrillic */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/unbounded-cyrillic-92a538.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded 600 latin */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/unbounded-latin-f2b2b2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded 700 cyrillic */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/unbounded-cyrillic-92a538.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded 700 latin */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/unbounded-latin-f2b2b2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded 800 cyrillic */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/unbounded-cyrillic-92a538.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded 800 latin */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/unbounded-latin-f2b2b2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: only light;

  --canvas: #f4f6f5;       /* бумага: холодный светлый, не кремовый */
  --surface: #ffffff;      /* карточки, оглавление */
  --line: #dce3e1;         /* разделители */
  --ink: #13201f;          /* основной текст */
  --muted: #56676a;        /* вторичный текст, контраст ≥ 4.5 */
  --graphite: #172326;     /* плашка знака, тёмные полосы */
  --lime: #d4f377;         /* действие и выбранное */
  --lime-dark: #4f6b0b;    /* ссылки и маркеры на светлом */
  --on-lime: #172326;      /* текст на лайме */
  --warm: #e8743b;
  --success: #2f9e6c;      /* зелёная зона */
  --danger: #e04f4f;       /* красная зона */
  --blue: #4f6fe0;         /* особые зоны */
  --shadow: 0 18px 40px rgba(19, 32, 31, 0.12);

  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 12px;          /* AppRadii: карточка, кнопка, поле */
  --radius-sheet: 20px;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }

/* Поверхности браузера тоже в палитре (impeccable: craft-floor, browser surfaces). */
::selection { background: var(--lime); color: var(--on-lime); }
html { scrollbar-color: #b9c4c1 var(--canvas); accent-color: var(--lime-dark); }
input, textarea { caret-color: var(--lime-dark); }

:focus-visible { outline: 3px solid var(--lime-dark); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
p { margin: 0; }

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Шапка ---------- */

.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.logo svg { width: 32px; height: 32px; padding: 5px; border-radius: 9px; background: var(--graphite); }
.logo svg path:first-child { fill: var(--lime); }
.logo svg path:last-child { fill: #f3f6f5; }

.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 6px 0;
}
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 120ms; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: #eef2f0; }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover { background: #ddf78e; }

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

.foot {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
  color: var(--muted);
  font-size: 15px;
}
.foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.foot .logo { color: var(--ink); }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ---------- Узкие экраны ---------- */

@media (max-width: 900px) {
  .nav { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .top { padding: 16px var(--gutter); }
  .top .btn { min-height: 44px; padding: 8px 14px; font-size: 15px; }
}

/* ---------- Подвал: документы, оплата, контакты ---------- */

.foot .wrap { display: block; }
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.foot-docs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot-docs a { text-decoration: none; }
.foot-docs a:hover { color: var(--ink); text-decoration: underline; }
.foot-h { margin: 0 0 10px; color: var(--ink); font-weight: 600; font-size: 15px; }
.foot-contact { display: flex; flex-direction: column; gap: 6px; }
.foot-pay { margin-top: 28px; }
.pay-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pay-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 48px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.pay-logos img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.pay-logos-lg li { width: 112px; height: 64px; padding: 10px 14px; }
.foot-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

/* ---------- Страницы документов ---------- */

.fill {
  background: #ffe9dd;
  color: #8a3a12;
  border-radius: 4px;
  padding: 0 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  overflow-wrap: anywhere;
}

.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.doc-top .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.doc-top .doc-back { color: var(--muted); text-decoration: none; font-weight: 500; }
.doc-top .doc-back:hover { color: var(--ink); }
.doc-top-actions { display: flex; align-items: center; gap: 20px; }

.draft-banner {
  background: #fff1e8;
  border-bottom: 2px solid var(--warm);
  color: #7a2e0b;
  padding: 14px var(--gutter);
  text-align: center;
  font-weight: 600;
  line-height: 1.35;
}

.doc {
  width: min(70ch, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: 40px 72px;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.doc h1 {
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.doc-meta { margin-top: 14px; color: var(--muted); font-size: 15px; }
.doc h2 {
  margin-top: 2.4em;
  font-size: clamp(19px, 4.6vw, 24px);
  line-height: 1.2;
  font-weight: 700;
  scroll-margin-top: 16px;
}
.doc h3 { margin-top: 1.6em; font-size: 17px; font-family: var(--body); font-weight: 700; }
.doc p { margin-top: 0.9em; }
.doc ul, .doc ol { margin: 0.8em 0 0; padding-left: 1.4em; }
.doc li { margin-top: 0.4em; }
.doc li::marker { color: var(--lime-dark); }
.doc a { color: var(--ink); text-decoration-color: var(--lime-dark); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.doc a:hover { color: var(--lime-dark); }
.doc .lead { color: var(--muted); font-size: 18px; }
.doc .callout {
  margin-top: 1.2em;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius);
}
.doc .callout > :first-child { margin-top: 0; }

.toc {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--radius);
}
.toc-title { margin: 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.toc ol { margin: 10px 0 0; padding-left: 1.6em; columns: 1; }
.toc li { margin-top: 6px; font-size: 15px; line-height: 1.4; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--lime-dark); text-decoration: underline; }

.doc .table-wrap { margin-top: 1em; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.doc th, .doc td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; font-size: 14px; }
.doc table.req th { width: 38%; color: var(--ink); font-size: 16px; font-weight: 600; }

@media (max-width: 520px) {
  .doc { font-size: 16px; padding-block: 28px 56px; }
  .doc-top { padding: 12px var(--gutter); }
  .doc-top-actions { gap: 12px; }
  .doc-top .doc-back { display: none; }
  .doc table, .doc table tbody, .doc table tr, .doc table th, .doc table td { display: block; width: 100%; }
  .doc table.req th { width: 100%; padding-bottom: 0; border-bottom: 0; }
  .doc table.req td { padding-top: 2px; }
  .doc thead { display: none; }
  .foot-top { gap: 24px; }
}

.doc .lead { animation: none; opacity: 1; font-family: var(--body); font-weight: 400; font-size: 18px; line-height: 1.55; letter-spacing: 0; color: var(--muted); max-width: none; margin-top: 18px; }
.toc ol { list-style: none; padding-left: 0; }
.doc .pay-logos { padding-left: 0; margin-top: 1em; }
.doc .pay-logos li { margin-top: 0; }
