/* AK BETON — Mini App / сайт.
   Аудитория — в т.ч. пожилые люди: базовый шрифт 19–20px, кнопки от 60px, высокий контраст,
   один вопрос на экран. Стиль: светлый «бетонный» фон, тёмный графит, оранжевый акцент техники. */

:root {
  --bg: #f3f1ed;
  --card: #ffffff;
  --text: #16191d;
  --muted: #5d6570;
  --line: #e2ddd5;
  --accent: #f07d12;
  --accent-dark: #c9620a;
  --accent-text: #ffffff;
  --accent-soft: #fff0e1;
  --ok: #1d7a3a;
  --danger: #b3261e;
  --head: #1b232c;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(22, 25, 29, .06), 0 6px 20px rgba(22, 25, 29, .07);
}
:root[data-theme="dark"] {
  --bg: #111417;
  --card: #1c2126;
  --text: #f1f3f5;
  --muted: #a3acb6;
  --line: #2e353d;
  --accent: #ff8f2a;
  --accent-dark: #ffa24f;
  --accent-text: #111417;
  --accent-soft: #33261a;
  --ok: #5fcf86;
  --danger: #ff7a70;
  --head: #0b0e11;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 19px/1.45 "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--head); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 1; font-weight: 800; font-size: 21px; letter-spacing: .3px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand span { color: var(--accent); }
.top button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 48px; height: 46px; padding: 0 12px; border-radius: 14px; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 17px; font-weight: 800;
}
.top .top-call { background: var(--accent); color: #fff; }
.top .top-call .ico { font-size: 20px; }

.progress { height: 6px; background: var(--line); }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .25s; border-radius: 0 3px 3px 0; }

main { max-width: 560px; margin: 0 auto; padding: 18px 16px 110px; }
.loading { text-align: center; color: var(--muted); margin-top: 40px; }

h1 { font-size: 30px; line-height: 1.15; margin: 0 0 8px; font-weight: 800; letter-spacing: -.3px; }
h2 { font-size: 25px; line-height: 1.2; margin: 6px 0 14px; font-weight: 800; letter-spacing: -.2px; }
h3.section { font-size: 21px; margin: 30px 0 12px; font-weight: 800; }
.step-label { color: var(--muted); font-size: 16px; font-weight: 700; margin: 0 0 2px; text-transform: uppercase; letter-spacing: .5px; }
.lead { color: var(--muted); margin: 0 0 18px; }
.note { color: var(--muted); font-size: 16px; margin: 10px 0; }

/* ---------- главная ---------- */
.hero {
  position: relative; overflow: hidden;
  margin: -18px -16px 0; padding: 150px 20px 22px;
  background: var(--head) center 30% / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 17, .05) 0%, rgba(11, 14, 17, .55) 45%, rgba(11, 14, 17, .92) 100%);
}
.hero > * { position: relative; }
.hero-tag {
  display: inline-block; padding: 5px 12px; margin-bottom: 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 800;
}
.hero h1 { color: #fff; }
.hero p { margin: 0 0 16px; color: #dfe4ea; font-size: 17px; }
.hero .btn { margin-top: 0; box-shadow: 0 8px 24px rgba(240, 125, 18, .35); }

.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 14px 0 6px;
}
.trust div {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 12px 6px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; line-height: 1.2;
}
.trust .ico { font-size: 26px; color: var(--accent); }

/* Карточки разделов с фото */
.cats { display: grid; gap: 12px; }
.cat {
  display: flex; align-items: stretch; width: 100%; padding: 0; overflow: hidden;
  background: var(--card); color: var(--text); border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: left; font: inherit;
}
.cat img { width: 118px; min-height: 104px; object-fit: cover; flex: none; background: var(--line); }
.cat .body { flex: 1; padding: 14px 14px; display: flex; flex-direction: column; justify-content: center; }
.cat .title { font-size: 21px; font-weight: 800; }
.cat .sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.cat .go { align-self: center; margin-right: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); flex: none; }
.cat:active, .choice:active, .promo:active { transform: scale(.985); }

.promo {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 14px 0 0; padding: 18px 16px;
  border: 0; border-radius: var(--radius); background: var(--head); color: #fff; text-align: left; font: inherit;
}
.promo .ico { font-size: 38px; color: var(--accent); }
.promo b { display: block; font-size: 20px; }
.promo small { display: block; color: #c3cad3; font-size: 15px; margin-top: 2px; }
.promo .go { margin-left: auto; font-size: 24px; color: var(--accent); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--card);
  border-radius: 16px; box-shadow: var(--shadow); font-size: 17px; }
.steps .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 19px; }

.delivery { position: relative; margin-top: 12px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.delivery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.delivery p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(11, 14, 17, .85)); color: #fff; font-weight: 700; font-size: 17px; }

.managers { display: grid; gap: 10px; }
.manager {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 76px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none;
}
.manager .ava { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: 20px; }
.manager .who { flex: 1; min-width: 0; }
.manager b { display: block; font-size: 19px; }
.manager small { display: block; color: var(--muted); font-size: 15px; }
.manager .num { display: block; font-weight: 800; font-size: 18px; white-space: nowrap; }
.manager .call { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--ok); color: #fff; font-size: 22px; }

.cert {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none;
}
.cert .ico { font-size: 34px; color: var(--accent); }
.cert b { display: block; }
.cert small { color: var(--muted); font-size: 15px; }

/* ---------- выбор (карточки-кнопки) ---------- */
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 72px; padding: 14px 16px;
  background: var(--card); color: var(--text);
  border: 2px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow);
  font: inherit; text-align: left;
}
.choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.choice .icon { font-size: 30px; width: 44px; display: grid; place-items: center; flex: none; color: var(--accent); }
.choice .body { flex: 1; min-width: 0; }
.choice .title { font-weight: 800; display: block; }
.choice .sub { color: var(--muted); font-size: 16px; display: block; margin-top: 2px; }
.choice .price { font-weight: 800; color: var(--accent-dark); font-size: 17px; display: block; margin-top: 4px; }
.choice.soft { border: 2px dashed var(--line); box-shadow: none; background: transparent; }

/* Товар: плашка марки / фото слева */
.grade {
  width: 70px; height: 70px; border-radius: 14px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--head); color: #fff; line-height: 1;
}
.grade b { font-size: 21px; font-weight: 800; }
.grade small { font-size: 12px; color: #aab3bd; margin-top: 4px; }
.thumb { width: 70px; height: 70px; border-radius: 14px; object-fit: cover; flex: none; }
.badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; vertical-align: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.chip {
  min-width: 70px; min-height: 54px; padding: 0 16px;
  border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-weight: 800;
}
.chip.selected { border-color: var(--accent); background: var(--accent); color: #fff; }

/* Счётчик объёма: − 5 + */
.stepper { display: flex; align-items: center; gap: 12px; margin: 8px 0; padding: 14px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.stepper button {
  width: 68px; height: 68px; border-radius: 50%; border: 0; flex: none;
  background: var(--accent); color: var(--accent-text); font-size: 34px; font-weight: 800;
}
.stepper .value { flex: 1; text-align: center; }
.stepper .value strong { font-size: 46px; display: block; line-height: 1; font-weight: 800; }
.stepper .value span { color: var(--muted); font-size: 16px; }

/* ---------- поля ---------- */
label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-weight: 800; margin-bottom: 6px; font-size: 17px; }
label.field small { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
input, textarea {
  width: 100%; min-height: 58px; padding: 12px 14px;
  font: inherit; color: var(--text); background: var(--card);
  border: 2px solid var(--line); border-radius: 14px;
}
textarea { min-height: 110px; resize: vertical; }
textarea.short { min-height: 72px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- кнопки ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 62px; margin: 12px 0 0;
  border: 0; border-radius: 16px;
  background: var(--accent); color: var(--accent-text);
  font: inherit; font-size: 20px; font-weight: 800; text-align: center; text-decoration: none;
  line-height: 1.25; padding: 12px 18px;
}
.btn:active { background: var(--accent-dark); }
.btn:disabled { opacity: .45; }
.btn.secondary { background: var(--card); color: var(--text); border: 2px solid var(--line); }
.btn.small { font-size: 18px; min-height: 54px; }

.back {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 8px 0;
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 17px; font-weight: 700;
}

.result { background: var(--accent-soft); border-radius: var(--radius); padding: 16px; margin: 14px 0; font-size: 19px; }
.result strong { font-size: 30px; }
.banner { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; font-size: 17px; }

.summary { background: var(--card); border-radius: var(--radius); padding: 4px 16px; box-shadow: var(--shadow); margin: 0; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 800; text-align: right; overflow-wrap: anywhere; }

.error { color: var(--danger); font-weight: 800; margin: 10px 0 0; }
.done { text-align: center; padding-top: 30px; }
.done .big { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok); color: #fff; font-size: 52px; }

.foot { margin-top: 28px; color: var(--muted); font-size: 14px; text-align: center; line-height: 1.5; }
.foot a { color: var(--muted); }

/* ---------- калькулятор бетона ---------- */
.worktypes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.worktypes .choice { flex-direction: column; text-align: center; gap: 6px; min-height: 104px; padding: 12px 8px; }
.worktypes .choice .icon { width: auto; font-size: 38px; }
.worktypes .choice .title { font-size: 17px; line-height: 1.2; }

.dia { background: var(--card); border-radius: var(--radius); padding: 8px; margin: 4px 0 16px; box-shadow: var(--shadow); }
.dia svg { display: block; width: 100%; height: auto; max-height: 210px; }
.dia .f1 { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.dia .f2 { fill: var(--accent); fill-opacity: .55; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.dia .f3 { fill: var(--accent); fill-opacity: .8; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.dia .dim { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; }
.dia text { fill: var(--text); font-size: 17px; font-weight: 800; font-family: inherit; }

.calc-items { background: var(--card); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; box-shadow: var(--shadow); }
.calc-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.calc-item:first-of-type { margin-top: 8px; }
.calc-item span { flex: 1; min-width: 0; }
.calc-item small { display: block; color: var(--muted); font-size: 15px; }
.calc-item .x { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--danger); font-size: 18px; }

.calc-total { background: var(--head); color: #fff; border-radius: var(--radius); padding: 18px 16px; margin: 16px 0; text-align: center; }
.calc-total .note { color: #c3cad3; margin: 0; }
.calc-big { font-size: 54px; font-weight: 800; line-height: 1.1; color: var(--accent); letter-spacing: -1px; }
.calc-trucks { margin-top: 10px; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.calc-trucks .ico { font-size: 30px; color: var(--accent); }
.field-title { font-weight: 800; margin: 8px 0 0; }
.calc-price { font-size: 19px; margin: 4px 0 8px; }
.selfmix { background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.selfmix summary { font-weight: 800; }
.selfmix p { margin: 10px 0 0; }
