/* hasanova.kz — визитка. Вёрстка по макетам заказчика (решение №5).
   Обе темы пришли одним набором макетов, поэтому цвет живёт только в токенах ниже:
   правила ниже цвет не хардкодят, иначе вторая тема означала бы вторую таблицу стилей. */

:root {
  --bg:        #efe8df;
  --surface:   #f7f2ec;
  --ink:       #2a1e17;
  --ink-soft:  #6e5e51;
  --accent:    #7e5634;
  --line:      rgba(42, 30, 23, .16);
  --line-soft: rgba(42, 30, 23, .09);

  --band-bg:   #2e221b;
  --band-ink:  #efe4d6;
  --band-soft: #b9a894;
  --band-line: rgba(239, 228, 214, .16);

  --solid-bg:  #2e221b;
  --solid-ink: #f7f2ec;

  --card-bg:     #f7f2ec;
  --card-ink:    #2a1e17;
  --card-line:   transparent;
  --input-bg:    #ffffff;
  --input-line:  rgba(42, 30, 23, .18);

  /* Монограмма — токеном: так грузится только та версия, которая нужна теме. */
  --monogram:      url(../img/monogram-light.png);
  --monogram-sm:   url(../img/monogram-light-sm.png);
  --monogram-pale: url(../img/monogram-dark.png);      /* для тёмных плашек в обеих темах */
  --monogram-pale-sm: url(../img/monogram-dark-sm.png);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* 1440 — ширина десктопного макета целиком; поля 80 входят внутрь (border-box),
     поэтому колонка контента получается ровно макетные 1280 px */
  --shell: 1440px;
  --gutter: 80px;
}

:root[data-theme="dark"] {
  --bg:        #1a1411;
  --surface:   #211a15;
  --ink:       #efe4d6;
  --ink-soft:  #a99885;
  --accent:    #c1a27e;
  --line:      rgba(239, 228, 214, .16);
  --line-soft: rgba(239, 228, 214, .08);

  --band-bg:   #241c17;
  --band-ink:  #efe4d6;
  --band-soft: #a99885;
  --band-line: rgba(239, 228, 214, .14);

  --solid-bg:  #c1a27e;
  --solid-ink: #241c17;

  --card-bg:     #241c17;
  --card-ink:    #efe4d6;
  --card-line:   rgba(239, 228, 214, .14);
  --input-bg:    #1a1411;
  --input-line:  rgba(239, 228, 214, .18);

  --monogram:    url(../img/monogram-dark.png);
  --monogram-sm: url(../img/monogram-dark-sm.png);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

/* Прячем обрезкой, а не уводом за экран: элемент на left:-9999px расширяет холст
   печати, и страница в PDF уезжает влево вместе с полями. */
.skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; left: 0; top: 0; z-index: 20;
  width: auto; height: auto; clip-path: none;
  background: var(--solid-bg); color: var(--solid-ink); padding: 12px 20px;
}

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ─── Типографика ─────────────────────────────────────────────────────────── */

.h2 {
  /* кегли сверены с макетом: замеры по текстовому слою PDF заказчика,
     десктоп 1440 px и мобильный 390 px — крайние точки clamp() */
  font: 300 clamp(40px, 4.7vw, 68px)/1.18 var(--serif);
  margin: 0 0 24px;
  letter-spacing: .005em;
}
.h2 em { font-style: normal; display: block; }

.lead { font-size: 18px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 28px; }
.muted { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 0; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 28px;
}
.eyebrow__dash { display: block; width: 34px; height: 1px; background: var(--accent); }

.accent-italic {
  font: 300 italic clamp(22px, 2.4vw, 34px)/1.4 var(--serif);
  color: var(--accent); margin: 18px 0 0;
}

/* ─── Кнопки и ссылки ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 34px; border-radius: 999px;
  font: 400 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: opacity .2s ease, background-color .2s ease;
}
.btn--solid { background: var(--solid-bg); color: var(--solid-ink); }
.btn--solid:hover { opacity: .88; }
.btn--outline { background: transparent; color: inherit; border-color: var(--line); min-height: 48px; padding: 0 26px; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--wide { width: 100%; }

.link {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 3px; font-size: 16px;
}
.link:hover { color: var(--accent); }

/* ─── Шапка ───────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner { display: flex; align-items: center; gap: 32px; height: 104px; }

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand__mark {
  width: 46px; aspect-ratio: 120 / 111;
  background: var(--monogram-sm) center / contain no-repeat;
}
.brand__mark--pale { background-image: var(--monogram-pale-sm); }
.brand__name {
  font: 400 19px/1 var(--serif);
  text-transform: uppercase; letter-spacing: .3em;
}

.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }

.topbar__actions { display: flex; align-items: center; gap: 16px; }

.theme {
  width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: inherit;
  display: grid; place-items: center; padding: 0;
}
.theme:hover { border-color: var(--accent); color: var(--accent); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
:root[data-theme="light"] .theme__moon { display: none; }
:root[data-theme="dark"]  .theme__sun  { display: none; }

.burger { display: none; }

/* ─── Первый экран ────────────────────────────────────────────────────────── */

.hero__inner {
  display: grid; grid-template-columns: 1fr minmax(320px, 520px);
  /* .hero__inner — тот же элемент, что и .shell, поэтому боковые поля задаёт только
     .shell: короткий padding здесь стёр бы их и прижал текст к краю экрана */
  gap: 110px; align-items: center; padding-top: 90px; padding-bottom: 70px;
}
.hero__title {
  font: 300 clamp(46px, 6.4vw, 92px)/1.1 var(--serif);
  margin: 0 0 34px; letter-spacing: -.005em;
}
.hero__lead { max-width: 560px; font-size: 18px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 44px; }
.hero__actions { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }

.hero__arch {
  margin: 0; padding: 60px 40px 48px; text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px 999px 0 0;
}
.hero__mark {
  width: min(340px, 100%); margin: 0 auto; aspect-ratio: 400 / 369;
  background: var(--monogram) center / contain no-repeat;
}
.hero__arch figcaption { display: grid; gap: 14px; margin-top: 28px; }
.hero__wordmark {
  font: 400 clamp(22px, 2.3vw, 30px)/1 var(--serif);
  text-transform: uppercase; letter-spacing: .32em;
}
.hero__tagline {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
}

.roles {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 26px; padding-bottom: 26px;
  border-top: 1px solid var(--line-soft);
  font: 300 clamp(19px, 1.8vw, 26px)/1.3 var(--serif);
}

/* ─── Секции ──────────────────────────────────────────────────────────────── */

.section { padding: 120px 0; }
.section--surface { background: var(--surface); }

/* Пять уровней: лесенка вокруг осевой линии */
.system .h2 { margin-bottom: 18px; }
.system .lead { margin-bottom: 90px; }

.ladder { list-style: none; margin: 0 auto; padding: 0; max-width: 940px; position: relative; }
.ladder::before {
  content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px;
  border-left: 2px dotted var(--accent); opacity: .5;
}
.ladder__item { position: relative; width: 50%; padding: 0 44px 64px; }
.ladder__item:last-child { padding-bottom: 0; }
.ladder__item--left { text-align: right; }
.ladder__item--right { margin-left: 50%; text-align: left; }
.ladder__item::before {
  content: ""; position: absolute; top: 12px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--accent);
}
.ladder__item--left::before  { right: -8px; }
.ladder__item--right::before { left: -7px; }
.ladder__item h3 { font: 300 clamp(26px, 2.9vw, 42px)/1.25 var(--serif); margin: 0 0 8px; }
.ladder__item p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* Тёмная плашка */
.band { background: var(--band-bg); color: var(--band-ink); padding: 110px 0; }
.band .h2 { color: var(--band-ink); }
.band .lead, .band .muted { color: var(--band-soft); }

.band__word {
  /* Размер считан не с макета напрямую: там слово было «ОСМОКАРМИОЛОГИЯ», 15 букв.
     В «ОСТЕОКАРМИОЛОГИИ» их 16, и макетные 109 px срывают слово на вторую строку.
     Здесь кегль подобран так, чтобы 16 букв влезали в колонку на всех ширинах. */
  font: 300 clamp(24px, 7.2vw, 100px)/1.05 var(--serif);
  text-transform: uppercase; letter-spacing: .06em;
  text-align: center; color: var(--band-ink); margin: 0 0 90px;
}
.band__intro { display: grid; grid-template-columns: 240px 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
/* В макете этот заголовок меньше остальных: 54 px против 68 — замерено по текстовому слою. */
.band__intro .h2 { font-size: clamp(30px, 3.75vw, 54px); }
.band__mark {
  width: 200px; aspect-ratio: 400 / 365; justify-self: center;
  background: var(--monogram-pale) center / contain no-repeat;
}

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.disc { border-top: 1px solid var(--band-line); padding-top: 22px; }
.disc h3 { font: 300 clamp(24px, 2.5vw, 36px)/1.3 var(--serif); margin: 0 0 12px; }
.disc p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--band-soft); }

/* Вопросы */
.questions { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.questions__side .h2 em { color: var(--ink); }
.questions__list { list-style: none; margin: 0; padding: 0; }
.questions__list li {
  position: relative; padding: 24px 0 24px 34px;
  border-top: 1px solid var(--line-soft);
  font: 300 italic clamp(22px, 2.35vw, 34px)/1.45 var(--serif);
}
.questions__list li:last-child { border-bottom: 1px solid var(--line-soft); }
.questions__list li::before {
  content: ""; position: absolute; left: 4px; top: 36px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* Шкала диалога */
.dialogue .muted { margin-bottom: 64px; }
.scale {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0; padding: 0; position: relative; text-align: center;
}
.scale::before {
  content: ""; position: absolute; top: 9px; left: 12.5%; right: 12.5%;
  border-top: 1px dashed var(--line);
}
.scale li {
  font: 300 clamp(22px, 2.65vw, 38px)/1.3 var(--serif);
  display: grid; justify-items: center; gap: 34px;
}
.scale__dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--bg); position: relative; z-index: 1;
}
.section--surface .scale__dot { background: var(--surface); }
.scale__dot--full { background: var(--accent); border-color: var(--accent); }

/* Направления */
.services__head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-bottom: 48px; }
.services__head .h2 { margin: 0; }
.services__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; align-items: center; gap: 24px;
  grid-template-columns: 1.1fr 1.6fr .7fr .9fr auto;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.service__name { font: 300 clamp(26px, 2.8vw, 40px)/1.2 var(--serif); margin: 0; }
.service__about { margin: 0; font-size: 15px; color: var(--ink-soft); }
.service__time { margin: 0; font-size: 15px; color: var(--ink-soft); }
.service__price { margin: 0; font-size: 15px; }

/* Сертификаты */

.certs__group + .certs__group { margin-top: 56px; }
.certs__title {
  font: 300 clamp(22px, 2.1vw, 30px)/1.3 var(--serif);
  margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  color: var(--accent);
}
.certs__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px;
}
.cert {
  display: grid; gap: 18px; width: 100%; padding: 0; text-align: left; cursor: pointer;
  background: transparent; border: 0; color: inherit; font: inherit;
}
.cert__img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 6px;
  padding: 10px; transition: border-color .2s ease;
}
.section--surface .cert__img { background: var(--bg); }
.cert:hover .cert__img, .cert:focus-visible .cert__img { border-color: var(--accent); }
.cert__meta { display: grid; gap: 6px; }
.cert__name { font: 300 clamp(19px, 1.7vw, 24px)/1.35 var(--serif); }
.cert__org  { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.cert__date { font-size: 15px; color: var(--accent); }

/* Просмотр целиком */
.lightbox {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center; gap: 0;
  padding: 48px 24px;
  background: color-mix(in srgb, #12100e 88%, transparent);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; gap: 18px; justify-items: center; max-height: 100%; }
.lightbox__img {
  max-width: min(100%, 1100px); max-height: 74vh; object-fit: contain;
  background: #f7f2ec; border-radius: 6px; padding: 10px;
}
.lightbox__cap {
  max-width: 760px; text-align: center; color: #d9cfc2; font-size: 13px; line-height: 1.7;
}
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 46px; height: 46px; border-radius: 999px; cursor: pointer; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(239, 228, 214, .3); color: #efe4d6;
}
.lightbox__close:hover { border-color: #c1a27e; color: #c1a27e; }
.lightbox__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* Цитата */
.band--quote { padding: 120px 0; }
.quote__mark {
  display: block; width: 120px; aspect-ratio: 400 / 365; margin: 0 auto 40px;
  background: var(--monogram-pale) center / contain no-repeat;
}
.quote { margin: 0; font: 300 clamp(34px, 5.8vw, 84px)/1.26 var(--serif); }
.quote p { margin: 0; }
.quote em { color: var(--band-soft); }

/* О специалисте */
.about__inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 90px; align-items: center; }
.about__photo {
  margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
  background: color-mix(in srgb, var(--ink) 8%, var(--bg));
  /* Заведомо больший радиус браузер сам ужимает до половины ширины — получается
     ровный полукруг на любой ширине колонки. Фиксированные 200 px давали срезанную
     дугу: на колонке 530 px полукруг требует 265. */
  border-radius: 999px 999px 0 0;
}
.about__photo img {
  display: block; width: 100%; height: 100%;
  /* кадр у портрета выше, чем арка: режем снизу, лицо оставляем в верхней трети */
  object-fit: cover; object-position: center 22%;
}
.about__claim { font: 300 clamp(20px, 2.1vw, 30px)/1.55 var(--serif); margin: 28px 0 0; }

.facts { margin: 0; }
.facts > div {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 16px 0; border-top: 1px solid var(--line-soft);
}
.facts > div:last-child { border-bottom: 1px solid var(--line-soft); }
.facts dt { font-size: 16px; color: var(--ink-soft); }
.facts dd { margin: 0; font-size: 16px; text-align: right; }

/* Контакты */
.contacts__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.contacts__claim { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.28; margin-bottom: 56px; }
.facts--contacts > div { border-color: var(--band-line); }
.facts--contacts dt { color: var(--band-soft); }
.contacts__pills { display: none; gap: 16px; margin-top: 28px; }

.card {
  background: var(--card-bg); color: var(--card-ink);
  border: 1px solid var(--card-line); border-radius: 18px; padding: 44px;
}
.card__title { font: 300 clamp(26px, 2.6vw, 38px)/1.2 var(--serif); margin: 0 0 10px; }
.card__note { margin: 0 0 28px; font-size: 15px; color: var(--ink-soft); }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 15px; color: var(--ink-soft); }
.field input, .field textarea {
  font: 400 16px/1.5 var(--sans); color: inherit;
  background: var(--input-bg); border: 1px solid var(--input-line);
  border-radius: 10px; padding: 15px 18px; width: 100%; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: .8; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field--invalid input, .field--invalid textarea { border-color: #b4462f; }
.form__status { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); min-height: 1em; }
.form__status--error { color: #b4462f; }

/* Подвал */
.footer { background: var(--band-bg); color: var(--band-ink); border-top: 1px solid var(--band-line); }
.footer__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-top: 34px; padding-bottom: 34px;  /* боковые поля — от .shell, см. .hero__inner */
}
.footer__copy { margin: 0; font-size: 15px; color: var(--band-soft); text-align: center; }
.footer__up { justify-self: end; }

/* ─── Планшет ─────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; padding-top: 64px; padding-bottom: 56px; }
  .hero__arch { order: -1; }
  .band__intro { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .questions, .about__inner, .contacts__inner { grid-template-columns: 1fr; gap: 48px; }
  .service { grid-template-columns: 1fr 1fr; }
}

/* ─── Мобильная версия (макет 390 px) ─────────────────────────────────────── */

@media (max-width: 760px) {
  :root { --gutter: 24px; }   /* в мобильном макете поле 24 px, не 20 */
  body { font-size: 16px; }

  .topbar__inner { height: 76px; gap: 12px; }
  .brand__mark { width: 34px; }
  .brand__name { font-size: 16px; letter-spacing: .26em; }
  .topbar__cta { display: none; }

  .nav {
    position: fixed; inset: 76px 0 auto; z-index: 9;
    display: none; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }

  .burger {
    display: grid; gap: 4px; width: 42px; height: 42px; padding: 0 11px;
    align-content: center; border-radius: 999px;
    background: transparent; border: 1px solid var(--line); color: inherit; cursor: pointer;
  }
  .burger span { display: block; height: 1px; background: currentColor; }

  .section, .band, .band--quote { padding: 68px 0; }
  .hero__inner { padding-top: 28px; padding-bottom: 40px; }
  .hero__arch { padding: 34px 20px 28px; border-radius: 999px 999px 0 0; }
  /* кегли мобильного макета: нижняя граница clamp() рассчитана на планшет и
     на 390 px даёт заголовок шире колонки */
  .hero__title { font-size: 46px; line-height: 1.06; margin-bottom: 24px; }
  .h2 { font-size: 40px; }
  .hero__lead, .lead { font-size: 17px; }
  .hero__wordmark { font-size: 22px; }
  .hero__lead { margin-bottom: 32px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 22px; text-align: center; }
  .hero__actions .link { align-self: center; }

  .roles { flex-direction: column; gap: 0; padding-bottom: 0; }
  .roles span { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }

  .system .lead { margin-bottom: 44px; }
  .ladder::before { left: 7px; }
  .ladder__item, .ladder__item--right {
    width: 100%; margin-left: 0; text-align: left; padding: 0 0 36px 36px;
  }
  .ladder__item::before, .ladder__item--left::before, .ladder__item--right::before {
    left: 0; right: auto; width: 14px; height: 14px; top: 8px;
  }

  .band__word { margin-bottom: 48px; letter-spacing: .04em; }
  .band__mark { width: 120px; }
  .quote__mark { width: 92px; }
  .grid3 { grid-template-columns: 1fr; gap: 32px; }

  .questions__list li { padding-left: 26px; }
  .questions__list li::before { top: 32px; left: 0; }

  .scale { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .scale::before { display: none; }
  .scale li { gap: 18px; }

  .services__head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .service {
    grid-template-columns: 1fr auto; gap: 8px 16px; padding: 22px 0;
  }
  .service__name { grid-column: 1; }
  .service__price { grid-column: 2; text-align: right; color: var(--ink-soft); }
  .service__about { grid-column: 1 / -1; }
  .service__time { grid-column: 1 / -1; font-size: 13px; }
  .service .link { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

  .certs__grid { grid-template-columns: 1fr; gap: 32px; }
  .certs__group + .certs__group { margin-top: 40px; }
  .lightbox { padding: 64px 16px 24px; }
  .lightbox__img { max-height: 64vh; }

  .about__photo { border-radius: 999px 999px 0 0; }
  .contacts__claim { margin-bottom: 36px; }
  .contacts__pills { display: grid; grid-template-columns: 1fr 1fr; }
  .facts--contacts div:nth-child(3), .facts--contacts div:nth-child(4) { display: none; }
  .card { padding: 26px 20px; border-radius: 14px; }

  .footer__inner { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding-top: 40px; padding-bottom: 40px; }
  .footer__up { justify-self: center; }
  .brand--footer { flex-direction: column; gap: 12px; }
}
