/* Centrum — общий стиль публичных сайтов. Сначала телефон, затем экраны шире. */

@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../../fonts/inter/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../../fonts/inter/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../../fonts/inter/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('../../fonts/inter/Inter-Bold.woff2') format('woff2'); }

:root {
  --blue: #0F2A44;
  --blue-soft: #1d3f63;
  --orange: #E0891A;
  --orange-dark: #c4740f;
  --bg: #FFFFFF;
  --bg-alt: #F4F4F2;
  --text: #111111;
  --muted: #5b6470;
  --line: #e2e2dd;
  --error: #b3261e;
  --ok: #1e7a46;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss01';
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--blue); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 8vw, 60px); font-weight: 700; }
h2 { font-size: clamp(26px, 5vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 3.4vw, 22px); color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 36px; }
@media (min-width: 900px) { .section { padding: 88px 0; } :root { --gutter: 32px; } }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 17px; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--dark { background: var(--blue); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
/* Подсветка при наведении — только там, где есть мышь (на телефоне после нажатия не «залипает») */
@media (hover: hover) {
  .btn--primary:hover { background: var(--orange-dark); }
  .btn--dark:hover { background: var(--blue-soft); }
  .btn--ghost:hover { background: var(--blue); color: #fff; }
}
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}

/* --- Шапка и подвал --- */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.header__logo { display: block; width: 150px; line-height: 0; }
.header__nav { display: none; gap: 28px; }
.header__nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.header__nav a:hover { color: var(--orange-dark); }
.header__cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (min-width: 900px) { .header__nav { display: flex; } .header__logo { width: 170px; } }
.logo-svg { width: 100%; height: auto; display: block; }

.footer { background: var(--blue); color: #cfd7e1; padding: 56px 0 32px; font-size: 15px; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 32px; }
.footer__logo { width: 170px; margin-bottom: 16px; }
.footer__title { color: #fff; font-weight: 600; margin-bottom: 8px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: 13px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* --- Карточки и сетки --- */
.grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section--alt .card { border-color: transparent; }
.card__icon { width: 76px; height: 76px; color: var(--blue); margin: -6px 0 12px -6px; }
.card__icon svg { width: 100%; height: 100%; }
.card p:last-child { margin-bottom: 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.badge--orange { background: #fbeedd; color: var(--orange-dark); }

/* --- Формы --- */
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--blue); }
.input, .field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=number], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 17px; color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.field .error, .errorlist { color: var(--error); font-size: 14px; margin-top: 6px; list-style: none; padding: 0; }
.field.is-invalid input { border-color: var(--error); }
.field.is-valid input { border-color: var(--ok); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--orange); }
.choices { display: grid; gap: 10px; }
@media (min-width: 600px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px; text-align: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; }
.choice input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Ползунок --- */
input[type=range] { width: 100%; accent-color: var(--orange); height: 32px; }

/* --- Текстовые страницы --- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.draft-note { border-left: 4px solid var(--orange); background: #fbeedd; padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 28px; font-weight: 500; }

/* --- Первый экран и калькулятор --- */
.hero { padding: 40px 0 64px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero__grid { display: grid; gap: 40px; align-items: start; }
.hero__text h1 { margin-bottom: 16px; }
.hero__cta { margin: 8px 0 32px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.facts li { display: flex; flex-direction: column; border-left: 3px solid var(--orange); padding-left: 14px; }
.facts strong { font-size: 26px; color: var(--blue); line-height: 1.2; }
.facts span { color: var(--muted); font-size: 15px; }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .hero { padding: 64px 0 88px; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .hero__text { padding-top: 24px; }
}

.calc { padding: 24px; box-shadow: 0 10px 40px rgba(15, 42, 68, .08); border: 0; }
.calc__title { font-size: 22px; margin-bottom: 20px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__row label { margin: 0; }
.calc__value { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; color: var(--blue); }
.calc__num { width: 64px; min-height: 36px !important; padding: 4px 8px !important; text-align: right; font-weight: 600; }
.calc__result { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 20px; margin: 8px 0 16px; }
.calc__payment-label { color: var(--muted); font-size: 15px; }
.calc__payment { font-size: clamp(34px, 9vw, 44px); font-weight: 700; color: var(--blue); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.calc__details { margin: 0; display: grid; gap: 6px; }
.calc__details div { display: flex; justify-content: space-between; gap: 12px; }
.calc__details dt { color: var(--muted); }
.calc__details dd { margin: 0; font-weight: 600; white-space: nowrap; }
.calc__error { color: var(--error); margin: 10px 0 0; font-size: 15px; }
.calc__schedule { max-height: 360px; overflow: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.calc__schedule table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.calc__schedule th, .calc__schedule td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.calc__schedule th:first-child, .calc__schedule td:first-child { text-align: left; }
.calc__schedule th { position: sticky; top: 0; background: #fff; color: var(--muted); font-weight: 600; }
.calc__apply { margin-top: 12px; }
.calc__note { margin: 14px 0 0; }

/* --- Шаги, условия, о компании --- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.step { position: relative; }
.step__num { position: absolute; top: 24px; right: 24px; font-size: 44px; font-weight: 700; color: var(--line); line-height: 1; }
.step h3 { margin-bottom: 8px; }
.conditions { list-style: none; padding: 0; margin: 0 0 36px; }
.conditions li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 22px; }
.conditions__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; padding: 6px; }
.conditions__icon svg { width: 100%; height: 100%; display: block; }
.conditions strong { display: block; color: var(--blue); font-size: 18px; }
.conditions span { color: var(--muted); font-size: 15px; }
.about { display: grid; gap: 32px; }
.about__facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.about__facts div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about__facts dt { color: var(--muted); font-size: 14px; }
.about__facts dd { margin: 0; font-weight: 500; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .about__facts div { grid-template-columns: 160px 1fr; gap: 16px; }
}

/* --- Форма заявки --- */
.section--form { background: var(--bg-alt); padding-top: 40px; }
.form-layout { display: grid; gap: 24px; max-width: 760px; }
.apply-form { padding: 24px; }
.form-row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.optional { font-weight: 400; color: var(--muted); }
.form-alert { background: #fdecea; color: var(--error); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-weight: 500; }
.field.is-valid .hint { color: var(--ok); }
.field.is-invalid .hint { color: var(--error); }
@media (min-width: 700px) { .apply-form { padding: 36px; } }
.accepted { max-width: 640px; text-align: center; }
.accepted__icon { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--orange); color: #fff; padding: 16px; }
.accepted__icon svg { width: 100%; height: 100%; display: block; }

/* --- centrum.kz --- */
.group-hero { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.group-hero .lead { margin-bottom: 0; }
.hero--group { background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 45%); }
@media (min-width: 1000px) { .hero--group { padding: 72px 0 88px; } .group-hero { margin-bottom: 56px; } }
.company { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.company__logo { width: 190px; margin: -8px 0 12px -12px; }
.company__name { font-size: 22px; margin: 0; }
.company p { color: var(--muted); margin-bottom: 20px; }
.company .btn, .company .badge { margin-top: auto; }

/* --- centrumcapital.kz --- */
.soon { max-width: 560px; text-align: center; }
.soon__logo { width: 180px; margin: 0 auto 28px; }
.soon__form { text-align: left; margin-top: 32px; }
.soon__done { text-align: center; }
