/* =====================================================================
   Вариант 4 «Журнал» (ветка design-4) — по мотивам редакционной подачи McKinsey, см. DESIGN.md
   Тёплый белый + петроль + жёлтый франчайзера. Spectral (заголовки) + Commissioner (текст).
   Мозаика из настоящих материалов компании и собственных арт-картинок, карта Казахстана из точек.
   ===================================================================== */
:root {
  --paper: #FAF9F6; --mist: #E6ECEA; --petrol: #0E3A40; --petrol-2: #1F5F63; --ink: #13201F; --muted: #5E6A69; --hair: #DFE3E0; --yellow: #FADC48;
  --navy: #13201F; --text: #26302F; --text-2: #4D5857; --line: #DFE3E0; --bg: #FAF9F6; --bg-alt: #EEF2F0;
  --indigo-900: #0B2E33; --indigo-800: #0E3A40; --indigo-700: #1F5F63; --indigo-600: #2C7276; --indigo-500: #5E8C8E;
  --indigo-200: #C9DAD8; --indigo-100: #DDE8E6; --indigo-50: #EEF4F3;
  --amber-500: #FADC48; --amber-600: #F0CC2C; --amber-50: #FDF7DA;
  --font-head: 'Spectral', Georgia, serif; --font: 'Commissioner', 'Segoe UI', Arial, sans-serif;
  --r-sm: 2px; --r: 4px; --r-lg: 4px;
}
body { background: var(--paper); color: var(--text); font-size: 16.5px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 400; letter-spacing: -.01em; }
h3, h4 { font-family: var(--font); font-weight: 600; letter-spacing: -.005em; }
.section__title { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; font-weight: 400; }
.section__lead { color: var(--muted); }
.eyebrow { display: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }

.btn { border-radius: 2px; font-weight: 600; }
.btn--accent { background: var(--yellow); color: var(--ink); box-shadow: none; }
.btn--accent:hover { background: var(--petrol); color: #fff; }
.btn--primary { background: var(--petrol); color: #fff; }
.btn--line, .btn--outline { background: transparent; border: 1px solid var(--petrol); color: var(--petrol); }
.btn--line:hover, .btn--outline:hover { background: var(--petrol); color: #fff; }
.btn--ghost { background: transparent; color: var(--petrol); border-bottom: 1px solid currentColor; border-radius: 0; padding-left: 0; padding-right: 0; }

/* шапка */
.topbar { background: var(--petrol); }
.lang-switch a.is-active { background: var(--yellow); color: var(--ink); }
.topbar__pay .ic { color: var(--yellow); }
.header { background: var(--paper); border-bottom: 1px solid var(--hair); }
.brand { border-radius: 2px; }
.nav__link { color: var(--ink); font-weight: 500; }
.nav__link:hover { background: transparent; color: var(--petrol-2); }
.nav__link.is-active::after { background: var(--petrol); height: 2px; }
.header__phone-num { color: var(--ink); }
.header__phone-cb { color: var(--petrol-2); }

/* ---------- первый экран: заголовок со сдвигом и мозаика ---------- */
.mg-hero { padding: 64px 0 88px; background: var(--paper); }
.mg-hero__head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 56px; }
.mg-hero__title { font-size: clamp(38px, 5vw, 74px); line-height: 1.04; margin: 0; letter-spacing: -.02em; }
.mg-hero__intro { display: flex; gap: 22px; align-items: flex-end; padding-bottom: 10px; }
.mg-hero__intro p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.mg-round { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--petrol); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform .25s ease, background .25s ease; }
.mg-round .ic { width: 26px; height: 26px; }
.mg-round:hover { background: var(--yellow); color: var(--ink); transform: translateX(4px); }

.mosaic4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.mosaic4__col { display: grid; gap: 18px; }
.mosaic4__col--shift { margin-top: 72px; }
.mcard { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; background: #fff; color: var(--ink); isolation: isolate;
  opacity: 0; transform: translateY(18px); animation: mcIn .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.mosaic4__col:nth-child(2) .mcard { animation-delay: .12s; }
.mosaic4__col:nth-child(3) .mcard { animation-delay: .24s; }
@keyframes mcIn { to { opacity: 1; transform: none; } }
.mcard__img { display: block; overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--mist); }
.mcard__img img, .mcard__img picture { width: 100%; height: 100%; display: block; }
.mcard__img img { object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.mcard:hover .mcard__img img { transform: scale(1.05); }
.mcard__body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.mcard__body small { font-size: 12.5px; font-weight: 600; color: var(--petrol-2); letter-spacing: .02em; }
.mcard__body strong { font-family: var(--font-head); font-weight: 400; font-size: 21px; line-height: 1.25; }
.mcard__body strong::after { content: ' ›'; color: var(--petrol-2); transition: margin .25s ease; }
.mcard:hover .mcard__body strong::after { margin-left: 4px; }
.mcard--tall .mcard__img { aspect-ratio: 4 / 4.6; }
.mcard--dark { background: var(--petrol); color: #fff; }
.mcard--dark .mcard__body small { color: var(--yellow); }
.mcard--dark .mcard__body strong::after { color: var(--yellow); }
.mcard--mist { background: var(--mist); }
.mcard--warm { background: #F1EEE6; }
.mcard--object .mcard__img { display: flex; align-items: center; justify-content: center; padding: 22px; background: linear-gradient(160deg, #EEF2F0, #DCE6E3); aspect-ratio: 4 / 3.4; }
.mcard--object .mcard__img img { width: auto; height: 100%; object-fit: contain; box-shadow: 0 18px 30px rgba(14, 58, 64, .22); transform: rotate(-3deg); }
.mcard--object:hover .mcard__img img { transform: rotate(0deg) scale(1.03); }
.mcard--photo .mcard__img img, .mcard__img--photo img { object-position: center 25%; }
.mcard--portrait { background: var(--ink); color: #fff; }
.mcard--portrait .mcard__img { aspect-ratio: 4 / 4.8; }
.mcard--portrait .mcard__img img { object-position: center 15%; }
.mcard--portrait .mcard__body small { color: var(--yellow); }
.mcard__btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-style: normal; font-size: 14px; font-weight: 600; background: #fff; color: var(--ink); padding: 10px 14px; justify-self: start; border-radius: 2px; }
.mcard__btn .ic { width: 16px; height: 16px; }
.mcard--portrait .mcard__body strong::after { content: ''; }

/* ---------- баннер «География» ---------- */
.geo { background: var(--petrol); color: #DCE8E6; padding: 88px 0; overflow: hidden; }
.geo__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.geo__kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--yellow); }
.geo__title { color: #fff; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.12; margin: 0 0 18px; }
.geo__lead { color: #BFD3D0; font-size: 17px; margin: 0 0 28px; }
.geo__offices { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; border-top: 1px solid rgba(255, 255, 255, .18); }
.geo__offices li { display: grid; gap: 2px; padding-top: 14px; }
.geo__offices strong { color: #fff; font-family: var(--font-head); font-weight: 400; font-size: 20px; }
.geo__offices span { color: #BFD3D0; font-size: 15px; }
.geo__map { color: #7FB3B0; }
.geo__map svg { width: 100%; height: auto; display: block; }

/* остальные блоки — спокойные, с тонкими линиями */
.trust { background: #fff; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.trust__icon { background: var(--indigo-50); color: var(--petrol); }
.trust__item strong { font-family: var(--font-head); font-weight: 400; font-size: 18px; }
.intro { background: var(--paper); }
.intro__text { border-left-color: var(--yellow); }
.features { border-radius: 4px; }
.feature__icon { background: var(--indigo-50); color: var(--petrol); border-radius: 50%; }
.cat-card { border-radius: 4px; border-top: 3px solid var(--petrol); }
.cat-card:hover { border-top-color: var(--yellow); box-shadow: 0 18px 40px rgba(14, 58, 64, .1); transform: none; }
.cat-card__icon { background: var(--indigo-50); color: var(--petrol); border-radius: 50%; }
.cat-card__title { font-family: var(--font-head); font-weight: 400; font-size: 23px; }
.section--alt { background: #EEF2F0; }
.section--dark { background: var(--petrol); }
.section--dark .step { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.section--dark .step__num { border-color: var(--yellow); color: var(--yellow); background: transparent; box-shadow: none; }
.section--dark .section__lead, .section--dark .step__text { color: #BFD3D0; }
.calc { border-radius: 4px; box-shadow: 0 30px 60px rgba(14, 58, 64, .12); }
.calc__result { background: var(--petrol); }
.calc__price [data-price] { color: var(--yellow); }
.verify { border-radius: 4px; }
.verify__side { background: #EEF2F0; }
.verify__badge { background: var(--petrol); }
.cert { border-radius: 4px; }
.faq__item[open] { box-shadow: 0 10px 30px rgba(14, 58, 64, .08); }
.faq__item[open] .faq__chev { background: var(--petrol); }
.chip.is-active, .tab.is-active, .pager a.is-active { background: var(--petrol); border-color: var(--petrol); }
.tab.is-active .ic { color: var(--yellow); }
.mv__card--accent { background: var(--petrol); }
.mv__card--accent .mv__icon { color: var(--yellow); }
.value { border-top-color: var(--petrol); }
.page-head { background: var(--paper); color: var(--ink); padding: 56px 0 48px; border-bottom: 1px solid var(--hair); }
.page-head::after { display: none; }
.page-head__title { color: var(--ink); font-size: clamp(36px, 4.4vw, 60px); }
.page-head__lead { color: var(--muted); }
.crumbs { color: var(--muted); }
.crumbs a { color: var(--petrol-2); }
.cta { background: #EEF2F0; color: var(--ink); }
.cta::before { display: none; }
.cta__title { color: var(--ink); font-size: clamp(28px, 3vw, 42px); }
.cta__text { color: var(--text-2); }
.cta .btn--white { border: 1px solid var(--petrol); color: var(--petrol); background: transparent; }
.footer { background: #0B2E33; }
.footer__contacts .ic { color: var(--yellow); }

@media (max-width: 1024px) {
  .mg-hero__head { grid-template-columns: 1fr; gap: 24px; }
  .mosaic4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic4__col:nth-child(3) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .geo__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mg-hero { padding: 36px 0 56px; }
  .mg-hero__title { font-size: 36px; }
  .mg-hero__intro p { font-size: 16.5px; }
  .mg-round { width: 54px; height: 54px; }
  .mosaic4, .mosaic4__col:nth-child(3) { grid-template-columns: 1fr; }
  .mosaic4__col--shift { margin-top: 0; }
  .mcard__img, .mcard--tall .mcard__img { aspect-ratio: 16 / 11; }
  .mcard--portrait .mcard__img { aspect-ratio: 4 / 4; }
  .geo { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { .mcard { opacity: 1; transform: none; animation: none; } .mcard__img img, .mg-round { transition: none; } }
.header__phone-num { font-family: var(--font); font-weight: 600; }
html { scroll-padding-top: 100px; }
/* телефон: мозаика — сетка в две колонки, ничего не срезано краем экрана.
   Первая и последняя карточки во всю ширину, четыре между ними — по две в ряд. */
@media (max-width: 720px) {
  .mg-hero { padding-bottom: 40px; }
  .mosaic4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mosaic4__col, .mosaic4__col:nth-child(3) { display: contents; }
  .mosaic4__col--shift { margin-top: 0; }
  .mcard { min-width: 0; }
  .mcard__img, .mcard--tall .mcard__img, .mcard--portrait .mcard__img, .mcard--object .mcard__img { aspect-ratio: 1 / 1; }
  .mcard--object .mcard__img { padding: 12px; }
  .mcard__body { padding: 12px 12px 14px; gap: 5px; }
  .mcard__body small { font-size: 11.5px; }
  .mcard__body strong { font-size: 16px; line-height: 1.25; overflow-wrap: break-word; }
  .mcard--object .mcard__body strong { hyphens: auto; -webkit-hyphens: auto; }
  .mcard__btn { font-size: 13px; padding: 8px 10px; gap: 6px; }
  .mcard__btn .ic { width: 14px; height: 14px; }
  /* широкие: «Видео-советы» сверху и «Калькулятор» снизу */
  .mcard--tall, .mcard--warm { grid-column: 1 / -1; }
  .mcard--tall .mcard__img, .mcard--warm .mcard__img { aspect-ratio: 16 / 9; }
  .mcard--tall .mcard__body strong, .mcard--warm .mcard__body strong { font-size: 20px; }
}

/* карта: подписи городов; на планшете и телефоне карта над текстом, крупнее */
.map-label { fill: #fff; font-family: 'Commissioner', Arial, sans-serif; font-size: 30px; font-weight: 600; }
@media (max-width: 1024px) {
  .geo__map { order: -1; margin: 0 -8px 8px; }
}
@media (max-width: 720px) {
  .geo__map svg > g:first-of-type circle { r: 4.2px; }
  .map-city circle:last-child { r: 13px; }
  .map-label { font-size: 46px; }
  .geo__title { font-size: 28px; }
}
/* все заголовки разделов — по левому краю, как в журнале */
.section__head--center { align-items: flex-start; text-align: left; }
.section__title--center { text-align: left; }
