/* помниобомне.рф — страницы памяти. Фирменные цвета с Тильды: бронза #bb9174, крем #f5efe6, графит #2c2c2c */
:root {
  --bronze: #a87b5c;        /* чуть темнее фирменного — контраст AA для текста/кнопок */
  --bronze-brand: #bb9174;
  --bronze-soft: #e9dccd;
  --cream: #f5efe6;
  --paper: #fbf8f3;
  --ink: #2c2c2c;
  --ink-soft: #5b5550;
  --line: #e4d9cb;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --text: 680px;
  --display: 'Bebas Neue', 'Oswald', 'Arial Narrow', Impact, sans-serif;   /* фирменный шрифт заголовков с Тильды */
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- Кнопки (единый компонент) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--bronze); background: transparent; color: var(--ink);
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--bronze-soft); }
.btn--solid { background: var(--bronze); color: var(--white); }
.btn--solid:hover { background: #946a4d; border-color: #946a4d; }
.btn[aria-pressed="true"] { background: var(--bronze); color: var(--white); }
.btn--bird { position: relative; }
.btn--bird::after { content: ''; position: absolute; width: 34px; height: 33px; right: 14px; top: -27px; background: url(/assets/img/bird.webp) center / contain no-repeat; pointer-events: none; }

/* ---------- Шапка (компактная, едет за прокруткой; иконки — чёрные круги как на Тильде) ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 243, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.top__logo img { height: 20px; width: auto; }
@media (min-width: 768px) { .top__logo img { height: 26px; } }
.top__nav { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
.top__link { text-decoration: none; color: var(--ink-soft); display: none; }
.top__link:hover { color: var(--ink); }
.top__create { display: none; height: 36px; padding: 0 16px; align-items: center; border-radius: 999px; background: #2c2c2c; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.top__create:hover { background: var(--bronze-brand); }
.top__icons { display: flex; gap: 6px; }
.top .tl-ico { width: 34px; height: 34px; }
.top .tl-ico img { width: 34px; height: 34px; }
.top .tl-ico svg { width: 17px; height: 17px; }
.top .tl-ico--max { font-size: 10px; }
.top .tl-ico--wa, .top .tl-ico--tg, .top .tl-ico--max { display: none; }
@media (min-width: 480px) { .top .tl-ico--wa, .top .tl-ico--tg, .top .tl-ico--max { display: inline-grid; } }
@media (min-width: 760px) { .top__link { display: inline; } .top__create { display: inline-flex; } }

/* ---------- Шапка страницы памяти ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); padding: 32px 0 40px; }
.hero::before { content: ''; position: absolute; z-index: 0; width: 420px; height: 486px; right: -120px; top: 40px; background: url(/assets/img/fingerprint.webp) center / contain no-repeat; opacity: .55; pointer-events: none; }
.hero::after { content: ''; position: absolute; z-index: 0; width: 220px; height: 104px; right: -30px; top: -8px; background: url(/assets/img/branch.webp) right top / contain no-repeat; pointer-events: none; }
@media (min-width: 860px) { .hero::before { width: 560px; height: 648px; right: 4%; top: -60px; } .hero::after { width: 460px; height: 218px; right: -20px; } }
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: 24px; justify-items: center; text-align: center; }
.hero__photo { width: min(260px, 70vw); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bronze-soft); box-shadow: var(--shadow); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.hero__name { margin: 0; font: 700 clamp(46px, 10vw, 78px)/.95 var(--display); letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.hero__name span { display: block; }
.hero__name .hero__maiden { font: 500 15px/1.4 var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink-soft); margin-top: 10px; }
.hero__dates { margin: 14px 0 0; font-size: 16px; color: var(--ink-soft); }
.hero__dates b { font-weight: 500; color: var(--ink); }
.hero__age { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.hero__epitaph { margin: 20px auto 0; max-width: 38ch; font: 500 17px/1.55 var(--sans); color: var(--ink-soft); }
.hero__epitaph::before { content: '«'; } .hero__epitaph::after { content: '»'; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 30px 10px; justify-content: center; margin-top: 30px; }
.hero__actions .btn { padding: 0 16px; }
@media (min-width: 860px) {
  .hero { padding: 56px 0 56px; }
  .hero__grid { grid-template-columns: 300px 1fr; gap: 56px; align-items: stretch; justify-items: start; text-align: left; }
  /* фото ровно по высоте текста справа: от верха ФИО до низа кнопок */
  .hero__photo { width: 300px; aspect-ratio: auto; position: relative; min-height: 280px; }
  .hero__photo img, .hero__photo button, .hero__photo .person__img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero__grid > div:last-child { align-self: center; grid-column: 2; grid-row: 1; }
  .hero__photo { grid-column: 1; grid-row: 1; }
  .hero__credit { grid-row: 2; }
  .hero__epitaph { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
}

/* ---------- Вкладки разделов ---------- */
.tabs { position: sticky; top: 60px; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.tabs__in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.tabs__in::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 7px 18px 5px; font: 700 21px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.tabs a:hover { border-color: var(--bronze); color: var(--bronze); }
.tabs a.is-active { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.tabs small { font: 500 12px var(--sans); margin-left: 6px; opacity: .75; vertical-align: 3px; }

/* ---------- Секции ---------- */
.section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section__title { margin: 0 0 24px; font: 700 clamp(34px, 5vw, 48px)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.section__lead { margin: -12px 0 24px; color: var(--ink-soft); font-size: 15px; }

/* Ключевые факты */
.facts { display: grid; grid-template-columns: 1fr; margin: 0 0 32px; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.facts li { padding: 12px 16px; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); background: none; border: 0; gap: 12px; } .facts li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; } .facts li:first-child { border-top: 1px solid var(--line); } }
.facts dt, .facts .k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.facts .v { margin-top: 2px; font-weight: 500; line-height: 1.4; font-size: 16px; overflow-wrap: anywhere; hyphens: auto; }

/* Биография */
.bio { max-width: var(--text); }
.bio h3 { margin: 40px 0 14px; font: 700 28px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--bronze); }
.bio h3:first-child { margin-top: 0; }
.bio p { margin: 0 0 1.15em; font-size: 17px; line-height: 1.8; }
@media (min-width: 768px) { .bio p { font-size: 18px; } }
.bio .bio__lead { font-size: 19px; line-height: 1.7; color: var(--ink); }
@media (min-width: 768px) { .bio .bio__lead { font-size: 21px; } }
/* Фото внутри биографии — разбивают длинный текст */
.bio-fig { margin: 8px 0 28px; }
.bio-fig button { all: unset; display: block; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; background: var(--bronze-soft); }
.bio-fig img { width: 100%; height: auto; }
.bio-fig figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
/* на широком экране фото выносится на поле справа от колонки текста (680 + 56 + 320 = ширина .wrap) */
@media (min-width: 1100px) { .bio-fig { float: right; clear: right; width: 320px; margin: 6px -376px 24px 0; } }
.bio__body::after { content: ''; display: block; clear: both; }
.bio__more { margin-top: 8px; }
.bio.is-collapsed .bio__body { max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* Фото */
.gallery { columns: 2; column-gap: 10px; }
@media (min-width: 768px) { .gallery { columns: 3 220px; column-gap: 14px; } }
.gallery__item { break-inside: avoid; margin: 0 0 10px; }
@media (min-width: 768px) { .gallery__item { margin-bottom: 14px; } }
.gallery__item button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; background: var(--bronze-soft); }
.gallery__item img { width: 100%; height: auto; transition: transform .4s; }
.gallery__item button:hover img { transform: scale(1.03); }
.gallery__item button:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.gallery__more { margin-top: 16px; }

/* Видео */
.videos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #1e1b18; }
.video button { all: unset; position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; background: center / cover no-repeat; }
.video button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .45)); }
.video__play { position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: var(--shadow); }
.video__play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--ink); }
.video__label { position: absolute; z-index: 1; left: 16px; bottom: 12px; color: #fff; font-size: 14px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Семья */
.people { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.person { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.person:hover { border-color: var(--bronze); box-shadow: var(--shadow); }
.person__img { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; background: var(--bronze-soft); display: grid; place-items: center; color: var(--bronze); font: 700 30px var(--display); }
.person__img img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-weight: 500; line-height: 1.3; }
.person__meta { font-size: 14px; color: var(--ink-soft); }

/* Карточки крупно (семейное древо) */
.people--lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.people--lg .person { flex-direction: column; align-items: stretch; text-align: center; padding: 12px 12px 18px; }
.people--lg .person__img { width: 100%; height: auto; aspect-ratio: 4 / 5; font-size: 64px; }

/* ---------- Семейное древо ---------- */
.tree { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), auto); row-gap: 56px; column-gap: 8px; max-width: 900px; margin: 8px auto 0; }
@media (min-width: 640px) { .tree { row-gap: 72px; column-gap: 24px; } }
.tree__node { position: relative; z-index: 1; justify-self: center; width: 100%; max-width: 170px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 6px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.tree__node:hover { border-color: var(--bronze); box-shadow: var(--shadow); }
.tree__node--root { border-color: var(--bronze); box-shadow: 0 0 0 3px var(--bronze-soft); }
.tree__node--empty { background: transparent; border-style: dashed; }
.tree__img { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--bronze-soft); display: grid; place-items: center; color: var(--bronze); font: 700 30px var(--display); margin-bottom: 4px; }
@media (min-width: 640px) { .tree__img { width: 112px; height: 112px; } }
.tree__img img { width: 100%; height: 100%; object-fit: cover; }
.tree__img svg { width: 60%; height: 60%; fill: var(--bronze-brand); opacity: .8; }
.tree__rel { font: 700 17px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--bronze); }
.tree__name { font-size: 13px; font-weight: 500; line-height: 1.3; overflow-wrap: break-word; }
@media (min-width: 640px) { .tree__node { max-width: 200px; } .tree__name { font-size: 15px; } .tree__rel { font-size: 19px; } }
.tree__node--root .tree__rel { display: none; }
.tree__years { font-size: 12px; color: var(--ink-soft); }
.tree__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.tree__lines path { fill: none; stroke: var(--bronze-brand); stroke-width: 1.5; stroke-dasharray: 5 4; }

/* Место захоронения */
.place { display: grid; gap: 20px; }
@media (min-width: 860px) { .place { grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; } }
.place__addr { margin: 0 0 16px; font-size: 18px; line-height: 1.5; }
.place__coords { font-size: 14px; color: var(--ink-soft); margin: -8px 0 16px; }
.place__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.place__map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--cream); border: 1px solid var(--line); position: relative; }
.place__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.place__map button { all: unset; position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink-soft); font-size: 15px; text-align: center; padding: 16px; }

/* Каталог / поиск */
.catalog-hero { background: var(--cream); padding: 40px 0 32px; }
.catalog-hero { position: relative; overflow: hidden; }
.catalog-hero .wrap { position: relative; z-index: 1; }
.catalog-hero h1 { margin: 0 0 10px; font: 700 clamp(42px, 8vw, 68px)/.95 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.catalog-hero p { margin: 0 0 20px; color: var(--ink-soft); max-width: 60ch; }
.search { position: relative; max-width: 560px; }
.search input { width: 100%; height: 54px; padding: 0 18px 0 48px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font: 400 17px var(--sans); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--bronze); }
.search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); stroke: var(--ink-soft); }
.catalog { padding: 32px 0 56px; }
.catalog__count { margin: 0 0 16px; font-size: 14px; color: var(--ink-soft); }
.catalog__empty { padding: 32px 0; color: var(--ink-soft); }

/* CTA */
.cta { background: var(--cream); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 16px; align-items: center; }
@media (min-width: 768px) { .cta { grid-template-columns: 1fr auto; padding: 32px 40px; } }
.cta h2 { margin: 0 0 6px; font: 700 32px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.cta p { margin: 0; color: var(--ink-soft); font-size: 15px; }


/* Вопросы — мессенджеры */
.h-faq { text-align: center; }
.h-faq .h-order__lead { margin: -8px auto 24px; }
.h-msgs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.h-msg { min-width: 160px; }
.h-mail { margin: 20px 0 0; font-size: 15px; color: var(--ink-soft); }
.h-mail a { color: var(--bronze); }


/* =========================== Конструктор (/sozdat/) =========================== */
.cr { padding-top: 28px; padding-bottom: 56px; }
.cr-back { display: inline-block; margin-bottom: 14px; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.cr-back:hover { color: var(--ink); }
.cr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.cr-title { margin: 0; font: 700 clamp(36px, 6vw, 56px)/.95 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.cr-sub { margin: 10px 0 16px; color: var(--ink-soft); }
.cr-bar { height: 4px; background: var(--line); border-radius: 4px; margin-bottom: 24px; overflow: hidden; }
.cr-bar span { display: block; height: 100%; background: var(--bronze); }
.cr-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 18px; max-width: 760px; }
@media (min-width: 768px) { .cr-box { padding: 32px; } }
.cr-s1 { display: grid; gap: 18px; }
@media (min-width: 640px) { .cr-s1 { grid-template-columns: 170px 1fr; align-items: start; } }
.cr-s1__fields { display: grid; gap: 14px; }
.cr-upload { position: relative; display: grid; place-items: center; width: 170px; aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1.5px dashed var(--bronze-brand); background: var(--cream) center / cover no-repeat; cursor: pointer; color: var(--bronze); text-align: center; font-size: 14px; font-weight: 500; overflow: hidden; }
.cr-upload:focus-within { outline: 2px solid var(--bronze); outline-offset: 3px; }
.cr-upload__in { display: grid; justify-items: center; gap: 8px; }
.cr-upload__in svg { width: 36px; height: 36px; }
.cr-upload small { font-weight: 400; color: var(--ink-soft); }
.cr-upload.has { border-style: solid; border-color: var(--line); }
.cr-upload.has .cr-upload__in { position: absolute; left: 8px; right: 8px; bottom: 8px; grid-auto-flow: column; justify-content: center; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 13px; }
.cr-upload.has .cr-upload__in svg { width: 18px; height: 18px; }
.cr-grid2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .cr-grid2 { grid-template-columns: 1fr 1fr; } }
.field__hint { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.field label span { color: var(--ink-soft); font-weight: 400; }
.cr textarea, .cr .cr-row input, .cr .cr-chap input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); resize: vertical; }
.cr textarea:focus, .cr .cr-row input:focus, .cr .cr-chap input:focus { outline: none; border-color: var(--bronze); }
.cr-next { justify-self: start; }
.cr-demo { margin: 24px 0 0; max-width: 760px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--cream); font-size: 14px; color: var(--ink-soft); }
.cr-demo b { color: var(--ink); }

.cr-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--cream); margin-bottom: 24px; font-size: 14px; }
.cr-plan .btn { margin-left: auto; }
.cr-tag { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.cr-tag--ext { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.cr-saved { font-size: 13px; color: var(--ink-soft); }

.cr-split { display: grid; gap: 32px; }
@media (min-width: 1040px) { .cr-split { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; } }
.cr-form { display: grid; gap: 16px; min-width: 0; }
.cr-sec { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; scroll-margin-top: 80px; }
@media (min-width: 768px) { .cr-sec { padding: 24px 28px; } }
.cr-sec__t { margin: 0; display: flex; align-items: center; gap: 10px; font: 700 26px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.cr-count { margin: -6px 0 0; font-size: 13px; color: var(--ink-soft); text-align: right; }
.cr-hint-up { font-size: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--cream); }
.linkbtn { all: unset; cursor: pointer; color: var(--bronze); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.cr-help summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--bronze); }
.cr-help ul { margin: 10px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.cr-chap { display: grid; gap: 8px; }
.cr-chap__head { display: flex; gap: 8px; }
.cr-chap__head input { font-weight: 600; }
.cr-row { display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) { .cr-row--2 { flex-wrap: wrap; } .cr-row--2 input { flex: 1 1 calc(100% - 48px) !important; } .cr-row--2 input:nth-child(2) { order: 3; flex-basis: 100% !important; } }
.cr-row--2 input:first-child { flex: 1.2; }
.cr-row--2 input:nth-child(2) { flex: 1; }
.cr-del { all: unset; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--ink-soft); }
.cr-del:hover { background: var(--cream); color: var(--ink); }
.cr-del:focus-visible { outline: 2px solid var(--bronze); }
.cr-del svg { width: 18px; height: 18px; }
.cr-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--cream); font-size: 14px; }
.cr-lock > svg { width: 24px; height: 24px; color: var(--bronze); flex: none; }
.cr-lock > div { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.cr-lock span { color: var(--ink-soft); }
.cr-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cr-ph { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--cream) center / cover no-repeat; }
.cr-ph .cr-del { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; background: rgba(255,255,255,.92); }
.cr-ph--add { display: grid; place-items: center; align-content: center; gap: 4px; border: 1.5px dashed var(--bronze-brand); color: var(--bronze); font-size: 13px; cursor: pointer; }
.cr-ph--add svg { width: 24px; height: 24px; }
.cr-ph--add:focus-within { outline: 2px solid var(--bronze); outline-offset: 2px; }
.cr-done { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cr-done > div:last-child { flex: 1; min-width: 220px; }
.cr-done p { margin: 0 0 14px; font-size: 15px; }
.cr-qr { width: 148px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; }
.cr-qr img { width: 100%; height: auto; image-rendering: pixelated; }
.cr-done__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cr-delpage { margin-top: 18px; font-size: 13px; color: #9a3a2f; font-weight: 500; }

/* превью-телефон */
.cr-prev { position: sticky; top: 80px; }
@media (max-width: 1039px) { .cr-prev { position: static; order: 2; } }
.cr-phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 40px; padding: 12px; background: #1d1b19; box-shadow: var(--shadow); }
.cr-phone__scr { height: 580px; overflow-y: auto; overflow-x: hidden; border-radius: 30px; background: var(--paper); scrollbar-width: none; }
.cr-phone__scr::-webkit-scrollbar { display: none; }
.cr-pv { width: 360px; zoom: .7333; pointer-events: none; }   /* zoom (а не transform) — высота превью = высоте контента */
.cr-pv .hero__grid > div:last-child, .cr-pv .hero__photo, .cr-pv .hero__credit { grid-column: auto; grid-row: auto; align-self: auto; }
.cr-pv .hero__photo { aspect-ratio: 4 / 5; position: relative; min-height: 0; }
.cr-pv .hero__actions { justify-content: center; }
.cr-pv .qr-sec { grid-template-columns: 1fr; justify-items: start; }
.cr-prev__cap { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--ink-soft); }
/* в превью — мобильная раскладка независимо от ширины окна */
.cr-pv .hero { padding: 28px 0 32px; }
.cr-pv .hero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
.cr-pv .hero__photo { width: 220px; }
.cr-pv .hero__name { font-size: 44px; }
.cr-pv .hero::before { width: 300px; right: -120px; top: 30px; }
.cr-pv .hero::after { width: 220px; }
.cr-pv .wrap { padding: 0 16px; }
.cr-pv .section { padding: 32px 0; }
.cr-pv .bio p, .cr-pv .bio .bio__lead { font-size: 16px; }
.cr-pv .gallery { columns: 2; }
.cr-pv .place { grid-template-columns: 1fr; }

.cr-mine { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); margin-top: 8px; }
.cr-card { display: flex; gap: 16px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.cr-card__img { width: 92px; height: 115px; flex: none; border-radius: 12px; overflow: hidden; background: var(--bronze-soft); display: grid; place-items: center; color: var(--bronze); font: 700 40px var(--display); }
.cr-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cr-card__body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.cr-card__body .cr-tag { justify-self: start; }
.cr-card__body span:not(.cr-tag) { font-size: 14px; color: var(--ink-soft); }
.cr-card__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cr-card__btns .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* модальное окно */
.cr-modal { position: fixed; inset: 0; z-index: 110; background: rgba(30, 25, 20, .55); display: grid; place-items: center; padding: 16px; }
.cr-modal__box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow); }
.cr-modal__x { all: unset; position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.cr-modal__x:hover { background: var(--cream); }
.cr-modal__x:focus-visible { outline: 2px solid var(--bronze); }
.cr-modal__x svg { width: 20px; height: 20px; }
.cr-modal__t { margin: 0 32px 16px 0; font: 700 30px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.cr-modal p { font-size: 15px; line-height: 1.6; }
.cr-modal .h-list { margin-bottom: 16px; }
.cr-modal__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cr-demo-on { display: block; margin-top: 18px; font-size: 14px; }

/* плашка на странице, созданной в конструкторе */
.demo-bar { background: var(--ink); color: #f1e7da; font-size: 14px; padding: 10px 0; }
.demo-bar a { color: #f1d6bd; }

/* правовые документы */
.legal__nav { font-size: 14px; color: var(--ink-soft); margin: -8px 0 28px; }
.legal__nav a { color: var(--bronze); }
.legal ul { margin: 0 0 1.15em; padding-left: 22px; }
.legal li { margin-bottom: 8px; line-height: 1.7; }
.foot__max { all: unset; cursor: pointer; color: #f1e7da; }
.foot__max:hover { text-decoration: underline; }
.foot__max:focus-visible { outline: 2px solid #f1e7da; }

/* QR-код страницы и кнопка древа */
.qr-sec { display: grid; gap: 24px; align-items: center; }
@media (min-width: 640px) { .qr-sec { grid-template-columns: 240px 1fr; gap: 40px; } }
.qr-sec__img { width: 180px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.qr-sec__img img { width: 100%; height: auto; image-rendering: pixelated; }
.qr-sec p { margin: -8px 0 18px; color: var(--ink-soft); max-width: 46ch; }
.family-btn { margin-top: 20px; white-space: normal; text-align: center; }


/* =========================== Главная — копия Тильды (.tl-*) ===========================
   ≥1200px: элементы стоят по координатам zero-блоков Тильды (сетка 1200, см. _tilda-export/raw/home.md).
   <1200px: те же блоки в потоке. */
.tl { overflow: hidden; overflow-x: clip; overflow-y: visible; }   /* clip, а не hidden — иначе не работает «липкая» колонка */
@supports (overflow: clip) { .tl { overflow: clip; } }
.tl-ab { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.tl-h { position: relative; z-index: 2; margin: 0; font: 700 56px/.9 var(--display); text-transform: uppercase; color: #2c2c2c; letter-spacing: 0; }
.tl-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 28px; border-radius: 40px; font: 700 14px/1.1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.tl-btn--dark { background: #2c2c2c; color: #fff; border-color: #2c2c2c; }
.tl-btn--dark:hover { background: #bb9174; border-color: #bb9174; }
.tl-btn--line { background: transparent; color: #2c2c2c; border-color: #2c2c2c; }
.tl-btn--line:hover { background: #2c2c2c; color: #fff; }
.tl-btn--bronze { background: #bb9174; color: #fff; border-color: #bb9174; }
.tl-btn--bronze:hover { background: #2c2c2c; border-color: #2c2c2c; }
.tl-btn--xl { height: 62px; padding: 0 34px; border-radius: 67px; font-size: 18px; }
.tl-ico { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #2c2c2c; color: #fff; flex: none; }
.tl-ico img { width: 50px; height: 50px; }
.tl-ico svg { width: 22px; height: 22px; }
.tl-ico--max { font: 700 13px/1 var(--sans); letter-spacing: .02em; }

/* 1. первый экран */
.tl-hero { position: relative; background: #f5efe6; border-radius: 0 0 30px 30px; padding: 28px 0 40px; }
.tl-hero__fp { position: absolute; width: 420px; left: 30%; top: -160px; pointer-events: none; }
.tl-hero__logo img { width: 240px; height: auto; }
.tl-hero__nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.tl-hero__search, .tl-hero__order { display: none; }
.tl-hero__title { position: relative; margin: 0; font: 700 clamp(40px, 11vw, 77px)/1.03 var(--display); text-transform: uppercase; color: #2c2c2c; }
.tl-hero__text { position: relative; margin: 18px 0 0; font: 500 14px/1.9 var(--sans); color: #333; max-width: 472px; }
.tl-hero__btns { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
/* телефон: сетка — плитка и табличка столбиком слева, телефон справа */
@media (max-width: 1199px) {
  .tl-hero .tl-ab { display: grid; grid-template-columns: 1fr 1.7fr; column-gap: 12px; align-items: center; }
  .tl-hero .tl-ab > :not(.tl-hero__phone):not(.tl-hero__tile):not(.tl-hero__plaque):not(.tl-hero__fp) { grid-column: 1 / -1; position: relative; z-index: 1; }
}
.tl-hero__fp { z-index: 0; }
.tl-hero__phone { position: relative; z-index: 1; grid-column: 2; grid-row: 4 / span 2; display: block; width: 100%; height: auto; margin-top: 28px; }
.tl-hero__tile, .tl-hero__plaque { position: relative; z-index: 1; grid-column: 1; width: 100%; height: auto; border-radius: 18px; }
.tl-hero__tile { grid-row: 4; align-self: end; margin-top: 28px; }
.tl-hero__plaque { grid-row: 5; align-self: start; margin-top: 12px; }
@media (max-width: 1199px) { .tl-btn--xl { height: 54px; padding: 0 24px; font-size: 16px; } .tl-about__wa img, .tl-about__tg img { width: 54px; height: 54px; } }

/* 2. фото */
.tl-photos .tl-ab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 24px; padding-bottom: 24px; }
.tl-photos img { width: 100%; height: auto; aspect-ratio: 372 / 496; object-fit: cover; }

/* 3. о чём проект */
.tl-about .tl-ab { padding-top: 48px; padding-bottom: 32px; }
.tl-about__fp { position: absolute; right: -120px; top: -40px; width: 300px; pointer-events: none; }
.tl-about__t { position: relative; margin-bottom: 24px; }
.tl-about__c1, .tl-about__c2 { position: relative; background: #f5efe6; border-radius: 8px; padding: 28px 24px; margin-bottom: 12px; }
.tl-about__c1 p, .tl-about__c2 p { margin: 0; font: 500 16px/1.78 var(--sans); color: #545454; }
.tl-about__c1 b, .tl-about__c2 b { font-weight: 700; }
.tl-about__btn { position: relative; margin: 12px 12px 0 0; vertical-align: middle; }
.tl-about__wa, .tl-about__tg { position: relative; display: inline-block; vertical-align: middle; margin-top: 12px; }
.tl-about__wa img, .tl-about__tg img { width: 62px; height: 62px; }

/* 4. как это работает */
.tl-how { position: relative; padding: 40px 0 48px; }
.tl-how__bg { position: absolute; left: 0; right: 0; top: 84px; bottom: 0; background: #f5efe6; border-radius: 29px; }
.tl-how__t { position: relative; margin-bottom: 32px; }
.tl-how__line { display: none; }
.tl-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tl-step { position: relative; display: block; border-radius: 8px; padding: 28px 24px 28px 76px; background: #fff; min-height: 110px; }
.tl-step p { position: relative; margin: 0; font: 500 13px/1.55 var(--sans); color: #545454; }
.tl-step--2, .tl-step--4 { background: #2d2d2d; }
.tl-step--2 p, .tl-step--4 p { color: #fff; }
.tl-step__p2 { margin-top: 14px !important; }
.tl-step__bg { display: none; }
.tl-step__card { display: none; }
.tl-step__n { position: absolute; left: 12px; top: 22px; width: 50px; height: 50px; }
.tl-step__n img { width: 100%; height: 100%; }
.tl-how__live { position: relative; display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 24px 0 12px; }
.tl-how__quote { position: relative; margin: 0 0 24px; font: italic 300 14px/1.5 var(--sans); color: #545454; max-width: 300px; }
.tl-how__photo { position: relative; display: block; width: 100%; height: auto; border-radius: 13px; }
.tl-how__ask { position: relative; margin-top: 16px; }
.tl-how__asktext { position: relative; margin: 12px 0 0; font: 500 13px/1.57 var(--sans); color: #2c2c2c; max-width: 313px; }

.tl-video .tl-ab { aspect-ratio: 16 / 9; max-width: 960px; }
.tl-video iframe { width: 100%; height: 100%; border: 0; background: #000; }

/* 6. профиль и стоимость */
.tl-profile .tl-ab { padding-top: 56px; padding-bottom: 24px; }
.tl-profile__fp { position: absolute; left: -60px; top: 120px; width: 360px; pointer-events: none; }
.tl-profile__t { position: relative; line-height: 1; }
.tl-profile__text { position: relative; margin: 18px 0; font: 500 14px/1.47 var(--sans); color: #545454; max-width: 408px; }
.tl-profile__btn { position: relative; height: 53px; border-radius: 58px; font-size: 15px; }
.tl-profile__phones { position: relative; display: block; width: 100%; height: auto; margin-top: 16px; }
.tl-price { background: #f5efe6; border-radius: 30px; }
.tl-price .tl-ab { padding-top: 40px; padding-bottom: 40px; display: grid; gap: 24px; }
.tl-pack h3 { margin: 0 0 8px; font: 700 28px/1.2 var(--display); text-transform: uppercase; color: #2c2c2c; }
.tl-pack ul { list-style: none; margin: 0 0 10px; padding: 0; }
.tl-pack li { display: flex; align-items: center; gap: 10px; font: 500 14px/1.47 var(--sans); color: #545454; }
.tl-dot { width: 5px; height: 5px; border-radius: 50%; background: #545454; flex: none; }
.tl-pack__sum { margin: 0; font: 700 40px/1.2 var(--display); color: #bb9174; text-transform: uppercase; }
.tl-price__btn { justify-self: start; }

/* 7. поиск */
.tl-search .tl-ab { padding-top: 48px; padding-bottom: 24px; }
.tl-search__t { margin: 0; font: 700 32px/1.3 var(--display); text-transform: uppercase; color: #2d2d2d; max-width: 402px; }
.tl-search__sub { margin: 6px 0 20px; font: 400 18px/1.55 var(--sans); color: #000; }
.tl-search__arrow { display: none; }
.tl-search__form { display: flex; gap: 10px; }
.tl-search__field { position: relative; flex: 1; }
.tl-search__field svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #777; }
.tl-search__field input { width: 100%; height: 60px; padding: 0 16px 0 44px; border: 1px solid #000; border-radius: 0; background: #fff; font: 400 16px var(--sans); color: #000; }
.tl-search__field input:focus { outline: none; border-color: #bb9174; }
.tl-search__btn { height: 60px; border-radius: 30px; }

/* 7б. примеры */
.tl-exs .tl-ab { padding-top: 32px; padding-bottom: 48px; text-align: center; }
.tl-exs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; text-align: left; margin-bottom: 24px; }
.tl-ex { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 18px; background: #f5efe6; border-radius: 16px; text-decoration: none; }
.tl-ex__img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e9dccd; margin-bottom: 8px; }
.tl-ex__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tl-ex:hover .tl-ex__img img { transform: scale(1.04); }
.tl-ex__name { font: 500 17px/1.3 var(--sans); color: #2c2c2c; }
.tl-ex__years { font: 700 34px/1 var(--display); color: #bb9174; }
.tl-ex__more { margin-top: 8px; padding-top: 10px; border-top: 1px solid #e4d9cb; font: 600 14px var(--sans); color: #bb9174; }

/* 8. партнёры */
.tl-partners { position: relative; background: #f5efe6; padding: 24px 0 32px; }
.tl-partners__words { display: flex; gap: 60px; white-space: nowrap; font: 700 80px/1 var(--display); color: #fff; text-transform: uppercase; margin-left: 16px; }
.tl-partners__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; }
.tl-partners__list li { display: flex; justify-content: center; }
.tl-partners__list img { max-width: 100%; max-height: 80px; width: auto; height: auto; }

/* 9–10. география, оплата */
.tl-geo .tl-ab { padding-top: 56px; padding-bottom: 24px; }
.tl-geo__map { display: block; width: 100%; height: auto; margin-top: 24px; }
.tl-pay .tl-ab { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 48px; }
.tl-pay__c { background: #f5efe6; border-radius: 15px; padding: 32px 28px; }
.tl-pay__c img { height: 40px; width: auto; }
.tl-pay__c p { margin: 16px 0 0; font: 400 18px/1.55 var(--sans); color: #000; }


/* примеры (2-й блок), тарифы, видео распаковки */
@media (max-width: 699px) {   /* телефон: лента карточек, следующая выглядывает справа */
  .tl-exs__grid { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px 24px; padding: 0 16px 6px; scrollbar-width: none; }
  .tl-exs__grid::-webkit-scrollbar { display: none; }
  .tl-ex { scroll-snap-align: start; }
}
.tl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1200px) { .tl-wrap { padding: 0 20px 0 17px; } }
.tl-exs .tl-wrap { padding-top: 56px; padding-bottom: 48px; text-align: center; }
.tl-exs__t { text-align: left; margin-bottom: 28px; }
@media (min-width: 1200px) { .tl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1200px) { .tl-wrap { padding: 0 20px 0 17px; } }
.tl-exs .tl-wrap { padding-top: 96px; } .tl-exs__t { margin-bottom: 48px; } }
.tl-tariffs .tl-wrap { padding-top: 56px; padding-bottom: 56px; }
.tl-tariffs .tl-h { margin-bottom: 32px; }
@media (min-width: 1200px) { .tl-tariffs .tl-h { margin-bottom: 56px; } }
.h-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.h-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 16px; line-height: 1.5; }
.h-list svg { width: 22px; height: 22px; color: var(--bronze); margin-top: 1px; }
.h-prices { display: grid; gap: 16px; }
@media (min-width: 860px) { .h-prices { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1000px) { .h-prices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) and (max-width: 999px) { .h-prices--3 .h-price:last-child { grid-column: 1 / -1; } }
.h-price { border: 1.5px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.h-price.h-price--main { background: var(--cream); border-color: var(--bronze); }
.h-price .h-list { flex: 1; }
.h-price .tl-btn { align-self: flex-start; }
.h-price__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.h-price h3 { margin: 0; font: 700 34px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.h-price__sum { margin: 0; font: 700 40px/1 var(--display); color: var(--bronze); }
.h-price__note { margin: 10px 0 20px; color: var(--ink-soft); font-size: 15px; }
.tl-video .tl-wrap { padding-top: 24px; padding-bottom: 56px; }
.tl-video .tl-h { margin-bottom: 32px; }
.tl-video__box { aspect-ratio: 16 / 9; max-width: 960px; border-radius: var(--radius); overflow: hidden; background: #000; }
.tl-video__box iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 1200px) { .tl-exs .tl-h, .tl-tariffs .tl-h, .tl-video .tl-h { position: relative; } }

/* ---------- ≥1200px: позиции как на Тильде ---------- */
@media (min-width: 1200px) {
  .tl-ab { padding: 0; }
  .tl-ab > *, .tl-steps > * { position: absolute; margin: 0; }
  .tl-h { font-size: 95px; line-height: .61; }

  .tl-hero { padding: 0; }
  .tl-hero .tl-ab { display: block; height: 671px; }
  .tl-hero__fp { top: -347px; left: 346px; width: 692px; }
  .tl-hero__logo { top: 36px; left: 20px; }
  .tl-hero__logo img { width: 331px; }
  .tl-hero__nav { top: 36px; right: 18px; margin: 0; flex-wrap: nowrap; }
  .tl-hero__search, .tl-hero__order { display: inline-flex; }
  .tl-hero__search { height: 55px; width: 200px; padding: 0; border-radius: 30px; font-weight: 600; margin-right: 10px; }
  .tl-hero__title { top: 91px; left: 17px; width: 642px; font-size: 77px; }
  .tl-hero__text { top: 345px; left: 19px; width: 472px; margin: 0; }
  .tl-hero__btns { top: 491px; left: 20px; margin: 0; gap: 22px; }
  .tl-hero__btns .tl-btn--xl { min-width: 170px; }
  .tl-hero__ex { width: 257px; }
  .tl-hero__phone { top: 94px; left: 644px; width: 429px; margin: 0; position: absolute; }
  .tl-hero__tile { top: 92px; left: 960px; width: 218px; bottom: auto; position: absolute; margin: 0; }
  .tl-hero__plaque { top: 346px; left: 961px; width: 218px; bottom: auto; position: absolute; margin: 0; }

  .tl-photos .tl-ab { display: block; height: 530px; padding: 0; }   /* на Тильде фактически 530 (замерено по скриншоту) */
  .tl-photos img { top: 32px; width: 372px; }
  .tl-photos img:nth-child(1) { left: 20px; } .tl-photos img:nth-child(2) { left: 413px; } .tl-photos img:nth-child(3) { left: 808px; }

  .tl-about .tl-ab { height: 487px; padding: 0; }
  .tl-about__fp { top: -98px; left: 888px; width: 529px; right: auto; }
  .tl-about__t { top: 96px; left: 17px; }
  .tl-about__c1 { top: 137px; left: 0; width: 606px; height: 254px; padding: 40px 0 0 88px; }
  .tl-about__c1, .tl-about__c2 { height: auto !important; min-height: 254px; padding-bottom: 36px !important; }
  .tl-about__c1 p { width: 469px; }
  .tl-about__c2 { top: 137px; left: 637px; width: 334px; height: 254px; padding: 42px 0 0 55px; }
  .tl-about__c2 p { width: 236px; }
  .tl-about__btn { top: 137px; left: 1009px; min-width: 170px; height: 64px; padding: 0 22px; }
  .tl-about__wa { top: 307px; left: 1009px; } .tl-about__tg { top: 307px; left: 1100px; }
  .tl-about__wa img, .tl-about__tg img { width: 78px; height: 78px; }

  .tl-how { padding: 0; }
  .tl-how .tl-ab { height: 1373px; }
  .tl-how__bg { top: 100px; height: 1267px; bottom: auto; }
  .tl-how__t { top: 71px; left: 18px; }
  .tl-how__line { display: block; top: 148px; left: 288px; width: 140px; height: 2px; background: #fff; }
  .tl-steps { inset: 0; display: block; position: absolute !important; }
  .tl-step { padding: 0; background: none; min-height: 0; border-radius: 0; }
  .tl-step__bg { display: block; position: absolute; max-width: none; }
  .tl-step__card { display: block; position: absolute; background: #fff; border-radius: 8px; }
  .tl-step p { position: absolute; font-size: 13px; }
  .tl-step__n { position: absolute; }
  .tl-step--1 .tl-step__card { top: 188px; left: 54px; width: 318px; height: 132px; }
  .tl-step--1 p { top: 222px; left: 110px; width: 214px; line-height: 1.5; }
  .tl-step--1 .tl-step__n { top: 207px; left: 342px; width: 60px; height: 60px; }
  .tl-step--2 .tl-step__bg { top: 341px; left: 282px; width: 318px; height: 191px; border-radius: 8px; }
  .tl-step--2 p { top: 372px; left: 349px; width: 203px; line-height: 1.57; }
  .tl-step--2 .tl-step__n { top: 404px; left: 252px; width: 60px; height: 60px; }
  .tl-step--3 .tl-step__bg { top: 756px; left: 52px; width: 318px; height: 162px; border-radius: 8px; }
  .tl-step--3 p { top: 786px; left: 122px; width: 221px; line-height: 1.5; }
  .tl-step--3 .tl-step__n { top: 799px; left: 340px; width: 60px; height: 60px; }
  .tl-step--4 .tl-step__bg { top: 952px; left: 282px; width: 300px; height: 320px; border-radius: 10px; }
  .tl-step--4 p { top: 991px; left: 349px; width: 214px; line-height: 1.57; }
  .tl-step--4 .tl-step__p2 { top: 1125px; width: 194px; }
  .tl-step--4 .tl-step__n { top: 1021px; left: 259px; width: 47px; height: 47px; }
  .tl-how__live { top: 553px; left: 74px; width: 150px; height: 150px; }
  .tl-how__quote { top: 597px; left: 274px; width: 300px; }
  /* правая колонка едет за прокруткой до конца 4-го шага (низ карточки 4 — 1272px) */
  .tl-how__side { top: 164px; left: 674px; width: 469px; height: 1108px; }
  .tl-how__stick { position: sticky; top: 84px; }
  .tl-how__photo { width: 469px; height: 310px; object-fit: cover; }
  .tl-how__askrow { display: flex; gap: 14px; align-items: flex-start; margin-top: 54px; }
  .tl-how__ask { width: 128px; padding: 0; flex: none; margin: 0; }
  .tl-how__asktext { margin: 3px 0 0; width: 313px; }

  .tl-video .tl-ab { position: relative; }

  .tl-profile .tl-ab { height: 667px; padding: 0; }
  .tl-profile__fp { top: 302px; left: 78px; width: 639px; }
  .tl-profile__t { top: 93px; left: 21px; width: 621px; line-height: 1.11; }
  .tl-profile__text { top: 329px; left: 21px; width: 408px; }
  .tl-profile__btn { top: 499px; left: 21px; width: 223px; padding: 0; }
  .tl-profile__phones { top: 12px; left: 524px; width: 846px; }

  .tl-price .tl-ab { display: block; height: 300px; padding: 0; }
  .tl-price__t { top: 87px; left: 18px; }
  .tl-pack { top: 50px; width: 260px; }
  .tl-pack:nth-of-type(1) { left: 360px; } .tl-pack:nth-of-type(2) { left: 640px; } .tl-pack:nth-of-type(3) { left: 920px; }
  .tl-pack__sum { position: absolute; top: 170px; }
  .tl-price__btn { top: 160px; left: 18px; width: 220px; padding: 0; }

  .tl-search .tl-ab { height: 230px; padding: 0; }
  .tl-search__t { top: 35px; left: 20px; width: 402px; font-size: 40px; }
  .tl-search__sub { top: 139px; left: 20px; font-size: 20px; }
  .tl-search__arrow { display: block; top: 46px; left: 422px; width: 67px; }
  .tl-search__form { top: 60px; left: 620px; width: 560px; gap: 12px; }
  .tl-search__btn { width: 174px; padding: 0; }

  .tl-exs .tl-ab > * { position: static; }
  .tl-exs__grid { grid-template-columns: repeat(3, 1fr); }

  .tl-partners { height: 359px; padding: 0; }
  .tl-partners__words { position: absolute; top: -42px; left: calc(50% - 580px); margin: 0; gap: 0; font-size: 130px; line-height: 1.55; }
  .tl-partners__words span { width: 550px; }
  .tl-partners .tl-ab { height: 359px; }
  .tl-partners__list { display: block; position: absolute; inset: 0; margin: 0; }
  .tl-partners__list li { position: absolute; top: var(--t); left: var(--l); width: var(--w); }
  .tl-partners__list img { max-height: none; width: 100%; }

  .tl-geo .tl-ab { height: 676px; padding: 0; }
  .tl-geo__t { top: 96px; left: 17px; }
  .tl-geo__map { top: 144px; left: 120px; width: 957px; margin: 0; }

  .tl-pay .tl-ab { display: block; height: 320px; padding: 0; }
  .tl-pay__c { top: 36px; width: 460px; height: 229px; padding: 54px 0 0 59px; }
  .tl-pay__c:nth-child(1) { left: 20px; } .tl-pay__c:nth-child(2) { left: 520px; top: 38px; }
  .tl-pay__c img { height: auto; width: 242px; }
  .tl-pay__c:nth-child(2) img { width: 235px; }
  .tl-pay__c p { position: absolute; top: 123px; left: 59px; width: 340px; margin: 0; font-size: 20px; }
}

/* конструктор: пометки платного, превью «бесплатная/расширенная», заказ */
.cr-paid { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: #8a5a3a; background: #f6e7d8; border: 1px solid #e7cfb6; padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.cr-paid::before { content: '★'; font-size: 10px; }
.cr-free { font: 600 11px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: #3d6b35; background: #e9f3e4; padding: 6px 9px; border-radius: 999px; }
.cr-sec__t { flex-wrap: wrap; }
.cr-paidnote { margin: -4px 0 0; font-size: 14px; color: var(--ink-soft); }
.cr-count { margin: 0; font-size: 13px; color: var(--ink-soft); text-align: right; }
.cr-count.is-over { color: #8a5a3a; }
.cr-count .cr-paid { margin-right: 6px; vertical-align: middle; }
.cr-pvswitch { display: flex; gap: 4px; padding: 4px; margin: 0 auto 12px; width: max-content; max-width: 100%; background: var(--cream); border-radius: 999px; }
.cr-pvswitch button { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.cr-pvswitch button[aria-pressed="true"] { background: #2c2c2c; color: #fff; }
.cr-pvswitch button:focus-visible { outline: 2px solid var(--bronze); }
.cr-order { display: grid; gap: 12px; margin-top: 20px; }
.cr-opt { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--white); }
.cr-opt.is-on { border-color: var(--bronze); background: var(--cream); }
.cr-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bronze); }
.cr-opt b { display: block; font-size: 16px; }
.cr-opt small a { color: var(--bronze); }
.cr-opt small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
div.cr-opt { display: block; cursor: default; }
.cr-deliv { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.cr-deliv h3 { margin: 0; font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.cr-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.cr-total span { font-size: 15px; color: var(--ink-soft); }
.cr-total b { font: 700 34px/1 var(--display); color: var(--bronze); }
.cr-pay { justify-self: start; height: 52px; padding: 0 28px; font-size: 16px; }
.cr-qr { width: 170px; flex: none; }
.cr-qr svg, .qr-sec__img svg { display: block; width: 100%; height: auto; }
.qr-sec__img { background: none; border: 0; padding: 0; width: 240px; max-width: 100%; }
.cr-plq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.cr-plq img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); }
.cr-plq__video { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; background: #000; }
.cr-plq__video iframe { width: 100%; height: 100%; border: 0; }
.cr-plq__text { margin: 0 0 10px; }

/* родственники: поиск и привязка к страницам */
.cr-rel { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.cr-rel__acts { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; color: var(--ink-soft); }
.cr-rel__linked { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 10px; background: var(--cream); border-radius: var(--radius-sm); }
.cr-rel__linked img, .cr-rel__linked > span { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--bronze-soft); color: var(--bronze); font-weight: 700; }
.cr-rel__linked > div { flex: 1; min-width: 0; }
.cr-rel__linked a { color: var(--bronze); }
.cr-rs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.cr-rs__item { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cr-rs__item:hover, .cr-rs__item:focus-visible { border-color: var(--bronze); background: var(--cream); }
.cr-rs__item img, .cr-rs__item > span { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--bronze-soft); color: var(--bronze); font-weight: 700; }
.cr-rs__item small { color: var(--ink-soft); }
.cr-rs__empty { font-size: 14px; color: var(--ink-soft); padding: 8px 2px; }
.cr-relfrom { margin: -6px 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--cream); font-size: 14px; }

/* поля форм (вход, конструктор) */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input { height: 50px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: 400 17px var(--sans); color: var(--ink); background: var(--paper); width: 100%; }
.field input:focus { outline: none; border-color: var(--bronze); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field__err { margin: 0; font-size: 13px; color: #b3261e; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bronze); }
.check a { color: var(--bronze); }

/* подписи к фото и источники */
.hero__credit { grid-column: 1; margin: -12px 0 0; max-width: 300px; font-size: 11px; line-height: 1.4; color: var(--ink-soft); }
.gallery__item figcaption { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--ink-soft); overflow-wrap: anywhere; hyphens: auto; }
.sources { margin: 0 0 12px; padding-left: 20px; line-height: 1.8; }
.sources a { color: var(--bronze); overflow-wrap: anywhere; }
.sources__note { font-size: 14px; color: var(--ink-soft); }
.catalog__group { margin: 48px 0 20px; }

/* вход и кабинет */
.cr-login { max-width: 520px; }
.cr-login .cr-box { max-width: none; }
.cr-democode { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fff4d6; border: 1px solid #ecd9a3; font-size: 15px; }
.cr-democode b { font-size: 20px; letter-spacing: .12em; }
.cr-me { margin: -4px 0 20px; font-size: 15px; color: var(--ink-soft); }
.cr-empty { margin: 8px 0 20px; font-size: 16px; color: var(--ink-soft); }

/* ---------- Подвал ---------- */
.foot { background: #2c2a28; color: #d9d1c7; padding: 40px 0 32px; font-size: 14px; line-height: 1.6; margin-top: 56px; }
.foot__grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot img { height: 24px; width: auto; margin-bottom: 12px; }
.foot a { color: #f1e7da; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.foot__legal { color: #a69c90; font-size: 13px; }

/* ---------- Просмотрщик фото ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20, 17, 14, .96); display: none; touch-action: pan-y; }
.lb.is-open { display: block; }
.lb__img { position: absolute; inset: 56px 0 56px; display: grid; place-items: center; padding: 0 8px; }
.lb__img img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb__bar { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; color: #e8e0d6; font-size: 14px; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 0; min-height: 56px; display: grid; place-items: center; padding: 8px 16px; color: #d9d1c7; font-size: 14px; text-align: center; }
.lb button { all: unset; cursor: pointer; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.lb button:hover { background: rgba(255, 255, 255, .1); }
.lb button:focus-visible { outline: 2px solid #fff; }
.lb button svg { width: 24px; height: 24px; }
.lb .lb__prev, .lb .lb__next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .35); }
.lb .lb__prev { left: 8px; } .lb .lb__next { right: 8px; }
.lb .lb__prev:hover, .lb .lb__next:hover { background: rgba(0, 0, 0, .6); }
@media (max-width: 640px) { .lb .lb__prev, .lb .lb__next { display: none; } }

/* Тост */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; transition: .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .tabs, .hero__actions, .foot, .place__map, .cta { display: none !important; } .section { break-inside: avoid; } }

/* ---------- Промокод партнёра (заказ в конструкторе) ---------- */
.cr-promo { display: grid; gap: 8px; }
.cr-promo label { font-size: 15px; font-weight: 600; }
.cr-promo label small { font-weight: 400; color: var(--ink-soft); }
.cr-promo__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.cr-promo__row input { min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font: 500 16px var(--sans); color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.cr-promo__row input:focus { outline: none; border-color: var(--bronze); }
.cr-promo.is-ok { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--line); }
.cr-promo.is-ok p { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.cr-disc { display: flex; justify-content: space-between; font-size: 15px; color: var(--bronze); }

/* ---------- 404: пустая страница = незаписанная история ---------- */
.nf { position: relative; overflow: clip; background: var(--cream); padding: 48px 0 64px; }
.nf::after { content: ''; position: absolute; right: -40px; top: 8px; width: 260px; height: 124px; background: url(/assets/img/branch.webp) right top / contain no-repeat; pointer-events: none; }
.nf__in { position: relative; z-index: 1; max-width: 760px; text-align: center; }
.nf__digits { display: flex; justify-content: center; align-items: center; gap: clamp(4px, 2vw, 16px); margin: 0 0 8px; font: 700 clamp(120px, 26vw, 220px)/.85 var(--display); color: var(--bronze-brand); }
.nf__fp { display: block; width: .62em; height: .72em; background: var(--bronze); -webkit-mask: url(/assets/img/fingerprint.webp) center / contain no-repeat; mask: url(/assets/img/fingerprint.webp) center / contain no-repeat; }
.nf__kicker { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.nf__title { margin: 0 0 12px; font: 700 clamp(40px, 7vw, 64px)/.95 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.nf__lead { margin: 0 auto 20px; max-width: 52ch; color: var(--ink-soft); }
.nf__text { margin: 0 auto 16px; max-width: 58ch; font-size: 17px; }
.nf__quote { margin: 0 auto 28px; font: 700 clamp(24px, 4vw, 32px)/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--bronze); }
.nf__search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 560px; margin: 0 auto 28px; text-align: left; }
.nf__search .search input { height: 46px; }
.nf__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 18px; }
@media (max-width: 480px) { .nf__btns .btn { flex: 1 1 100%; } .nf::after { width: 170px; height: 80px; right: -30px; } }

/* ---------- Главная на телефоне — как на Тильде (сверка скриншотов 375px, 31.10.2026) ---------- */
@media (min-width: 1200px) { .tl-partners__t { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 1199px) {
  /* первый экран: заголовок и текст по центру, телефон слева, табличка справа, кнопки в ряд под картинками */
  .tl-hero .tl-ab { grid-template-columns: 2fr 1fr; column-gap: 12px; }
  .tl-hero__title { grid-row: 1; text-align: center; font-size: clamp(38px, 11.5vw, 64px); line-height: 1.05; }
  .tl-hero__text { grid-row: 2; text-align: center; margin: 16px auto 0; max-width: 34ch; line-height: 1.6; }
  .tl-hero__phone { grid-column: 1; grid-row: 3 / span 2; margin-top: 24px; width: 118%; max-width: none; z-index: 0; }
  .tl-hero__tile, .tl-hero__plaque { grid-column: 2; }
  .tl-hero__tile { grid-row: 3; margin-top: 24px; }
  .tl-hero__plaque { grid-row: 4; }
  .tl-hero__btns { grid-row: 5; flex-direction: column; gap: 10px; margin-top: 24px; }
  .tl-hero__btns .tl-btn--xl { width: 100%; height: 54px; font-size: 16px; }

  /* о проекте: компактные карточки, кнопка и мессенджеры в одну строку */
  .tl-about__c1, .tl-about__c2 { padding: 26px 26px; }
  .tl-about__c1 p, .tl-about__c2 p { font-size: 14px; line-height: 1.55; }
  .tl-about__btn.tl-btn--xl { height: 50px; padding: 0 24px; font-size: 14px; margin-right: 8px; }
  .tl-about__wa img, .tl-about__tg img { width: 50px; height: 50px; }
  .tl-about__wa { margin-right: 6px; }

  /* как это работает: карточки «лесенкой» от края, номер на краю карточки, фото с цитатой между 2 и 3 шагом */
  .tl-how .tl-ab { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; }
  .tl-how .tl-ab > *, .tl-how .tl-step { grid-column: 1 / -1; }
  .tl-how__t { order: 0; }
  .tl-steps { display: contents; }
  .tl-step { margin: 0 0 18px; min-height: 0; }
  .tl-step--1 { order: 1; } .tl-step--2 { order: 2; } .tl-step--3 { order: 4; } .tl-step--4 { order: 5; }
  .tl-how .tl-ab > .tl-how__live { order: 3; grid-column: 1; margin: 6px 0 24px; }
  .tl-how .tl-ab > .tl-how__quote { order: 3; grid-column: 2; align-self: center; margin: 0 0 18px; }
  .tl-how__side { order: 6; }
  .tl-step--1, .tl-step--3 { margin-left: -16px; margin-right: 46px; padding: 26px 56px 26px 34px; border-radius: 0 8px 8px 0; }
  .tl-step--2, .tl-step--4 { margin-left: 46px; margin-right: -16px; padding: 26px 30px 26px 52px; border-radius: 8px 0 0 8px; }
  .tl-step__n { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 7px rgba(255, 255, 255, .55); }
  .tl-step--1 .tl-step__n, .tl-step--3 .tl-step__n { left: auto; right: -27px; }
  .tl-step--2 .tl-step__n, .tl-step--4 .tl-step__n { left: -27px; }
  .tl-step--4 .tl-step__bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px 0 0 8px; }
  .tl-step p { font-size: 13px; line-height: 1.6; }

  /* профиль: картинка сразу под заголовком, кнопка по центру */
  .tl-profile .tl-ab { display: flex; flex-direction: column; }
  .tl-profile__t { font-size: clamp(38px, 12vw, 56px); }
  .tl-profile__phones { order: 1; margin: 8px 0 4px -13.5%; width: 112%; max-width: none; }
  .tl-profile__text { order: 2; }
  .tl-profile__btn { order: 3; align-self: center; }

  /* все заголовки по центру */
  .tl .tl-h, .tl-exs__t { text-align: center; }

  /* поиск: заголовок по центру, поле и кнопка во всю ширину друг под другом */
  .tl-search__t { margin: 0 auto; text-align: center; font-size: 30px; line-height: 1.25; }
  .tl-search__sub { text-align: center; font-size: 16px; }
  .tl-search__form { flex-direction: column; }
  .tl-search__btn { width: 100%; }

  /* партнёры: тёмный заголовок вместо белой бегущей строки */
  .tl-partners__words { display: none; }
  .tl-partners { padding-top: 40px; }

  /* география и оплата: компактнее */
  .tl-geo__t { font-size: 44px; }
  .tl-pay__c { padding: 26px 28px; }
  .tl-pay__c img { height: 30px; }
  .tl-pay__c p { font-size: 14px; line-height: 1.6; margin-top: 14px; }
}
/* подвал на телефоне — по центру и со скруглением сверху, как на Тильде */
@media (max-width: 767px) {
  .foot { text-align: center; border-radius: 30px 30px 0 0; }
  .foot ul { justify-items: center; }
}
@media (max-width: 767px) { .foot img { display: block; margin-left: auto; margin-right: auto; } }
.cr-note { margin: -4px 0 0; font-size: 14px; color: var(--ink-soft); }
/* телефон: «Спросить» и кнопки в карточках стоимости — по центру */
@media (max-width: 1199px) {
  .tl-how__askrow { text-align: center; }
  .tl-how__ask { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
  .tl-how__asktext { margin-left: auto; margin-right: auto; }
  .h-price .tl-btn { align-self: center; }
}
.cr-ordtext { width: 100%; margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font: 400 14px/1.55 var(--sans); color: var(--ink); resize: none; }
.cr-msg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
@media (max-width: 480px) { .cr-msg .btn { flex: 1 1 calc(50% - 4px); } }
