/* Всё по делу v1.8 — типографика без наложения русских букв.
   Системные шрифты без зависимостей от Google Fonts (работает на Beget и в РФ).
   Подключать ПОСЛЕ assets/app.css. */
:root {
  --body-font: "Segoe UI Variable Text", "Segoe UI", Tahoma, Arial, sans-serif;
  --display-font: "Segoe UI Variable Display", "Segoe UI", Tahoma, Arial, sans-serif;
}
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-synthesis: weight style; }
body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: normal;
  font-synthesis: weight style;
  text-rendering: auto;
  overflow-wrap: break-word;
}
button, input, textarea, select { font-family: inherit; letter-spacing: normal; }
/* Удаляем слишком плотный трекинг старой версии (-0.03...-0.11em).
   Это особенно критично при кириллице и подмене Inter системным шрифтом. */
:is(h1, h2, h3, h4, h5, h6,
    .brand-type, .brand-type em, .art-big, .stats-inner strong,
    .specialty > span:nth-child(2), .stars, .start-empty-design > strong,
    .big-rating strong, .footer-detail strong, .hero-choices-head strong,
    .hero-choice b, .btn, .picker-title h2) { letter-spacing: 0 !important; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  font-weight: 700 !important;
  hyphens: manual;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { line-height: 1.20 !important; }
h2 { line-height: 1.27 !important; }
h3 { line-height: 1.32 !important; }
h4, h5, h6 { line-height: 1.4 !important; }
/* Заголовки разных частей сайта не должны прижиматься к соседним элементам. */
.hero h1 {
  font-size: clamp(40px, 5.1vw, 66px) !important;
  line-height: 1.17 !important;
  margin-block: 26px 24px;
}
.hero .hero-lead { line-height: 1.7; }
.hero-choice b { font-weight: 700; line-height: 1.38; }
.hero-choices-head strong { font-size: clamp(23px, 2.5vw, 30px); line-height: 1.28; }
.art-big { line-height: 1.24 !important; font-weight: 700; }
.stats-inner strong { font-weight: 700; line-height: 1.25 !important; }
.brand-type {
  font-family: var(--display-font);
  font-weight: 700 !important;
  line-height: 1.18 !important;
  white-space: nowrap;
}
.brand-type em { font-weight: 700 !important; line-height: 1.22; }
.brand-type small { font-weight: 500 !important; line-height: 1.45; letter-spacing: 0 !important; }
.section-kicker, .eyebrow, .picker-overline, .art-kicker, .art-counter {
  letter-spacing: .07em !important;
  line-height: 1.5;
}
.section-kicker { font-size: 12px; }
.btn {
  font-weight: 700;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  text-wrap: pretty;
}
.main-nav a, .login-link, .user-link { font-weight: 650; line-height: 1.45; }
.specialty > span:nth-child(2) { line-height: 1.38; font-weight: 700; }
.stars { letter-spacing: 0 !important; }
.review-card h3, .service-card h3, .chat-panel-head h2,
.form-card h2, .page-head h1, .picker-title h2 { line-height: 1.3 !important; }
.review-body, .chat-msg-body p, .chat-guidelines, .service-work-list a {
  line-height: 1.67;
  letter-spacing: normal;
}
/* Тексты длиннее своей колонки должны переноситься, а не залезать на соседнюю. */
:where(.hero-copy, .hero-choices, .hero-choice, .section-heading,
  .review-card, .service-card, .owner-dashboard, .admin-content, .form-card,
  .picker-panel, .picker-results, .chat-panel, .chat-msg-body) { min-width: 0; }
:where(.hero-choice, .review-card, .service-card, .chat-msg-body,
  .form-card, .admin-content, .picker-panel) { overflow-wrap: break-word; }
label, .field-label, .field-hint, .muted, .small-muted,
.photo-upload-head p, .photo-preview-card > span { line-height: 1.55; }
input, select, textarea { font-size: 16px; line-height: 1.45; }
/* Mobile: сохраняем читабельность заголовков и кнопок. */
@media(max-width:760px) {
  body { font-size: 15px; line-height: 1.6; }
  .hero h1 { font-size: clamp(36px, 8.6vw, 48px) !important; line-height: 1.2 !important; }
  .page-head h1 { line-height: 1.2 !important; }
  h2 { line-height: 1.3 !important; }
  .hero-choice b { line-height: 1.4; }
  .main-nav a { line-height: 1.5; }
}
@media(max-width:390px) {
  .hero h1 { font-size: clamp(32px, 8.4vw, 38px) !important; }
  .brand-type { font-size: 18px; }
  .brand-type small { font-size: 8px; }
  .btn { gap: 9px; }
}
/* Compact UI copy: more comfortable Cyrillic at ordinary laptop and phone sizes. */
.hero-choice small { font-size: 11px; }
.hero-choice > span:nth-child(2) > span { font-size: 13px; line-height: 1.55; }
.work-group > summary, .work-check { font-size: 13px !important; line-height: 1.5 !important; }
.chat-msg-body p { font-size: 14px; }
.chat-guidelines { font-size: 13px; }
.checkbox-label, .checkbox-label span { font-size: 13px; line-height: 1.55; }
.photo-upload-head p, .photo-upload-hint { font-size: 13px; }
@media(min-width:761px) { .brand-type small { font-size: 10px; } }


/* v1.9 — review identity, evidence, profile, mentions. Keep normal Cyrillic spacing */
.review-contact-box,.review-media-section,.account-profile{border:1px solid #dce5db;border-radius:20px;padding:clamp(18px,3vw,28px);background:#f8faf5;display:grid;gap:15px;min-width:0}
.review-contact-box h3,.review-media-section h3{font-size:1.2rem;margin:0;letter-spacing:normal;line-height:1.35}
.review-contact-box p,.review-media-section p{margin:0;line-height:1.65}
.review-media-section .photo-uploader,.account-profile .photo-uploader{background:white;min-width:0}
.review-gallery,.review-admin-media{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}
.review-gallery a,.review-admin-media a{display:block;width:104px;height:90px;overflow:hidden;border:1px solid #dbe5d9;border-radius:12px;background:#f3f6ef}
.review-gallery img,.review-admin-media img{width:100%;height:100%;object-fit:cover}
.review-admin-contact,.owner-review-contact{padding:10px 12px;border-radius:10px;background:#eff8ed;font-size:.93rem;line-height:1.6;margin:10px 0}
.review-admin-media a{width:96px;height:96px}
.account-dashboard{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}
.account-profile-head{display:flex;align-items:center;gap:18px;min-width:0}
.account-profile-head h2{margin:0 0 4px;font-size:1.4rem;line-height:1.4;overflow-wrap:anywhere}
.account-profile .profile-avatar{flex:0 0 74px;width:74px;height:74px;border-radius:50%;background:#e4f0d5;color:#17473b;display:grid;place-items:center;font-size:2rem;font-weight:700;overflow:hidden}
.profile-avatar img,.avatar.has-photo img,.chat-avatar img{height:100%;width:100%;object-fit:cover;border-radius:50%}
.avatar.has-photo{display:inline-flex;overflow:hidden}
.account-reviews{min-width:0}.account-reviews .section-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:18px}
.mention-suggest{border:1px solid #cbd9c5;background:white;border-radius:15px;box-shadow:0 8px 22px #143d3517;padding:6px;max-height:240px;overflow:auto}
.mention-suggest[hidden]{display:none}.mention-option{display:block;width:100%;padding:11px 13px;text-align:left;border:0;background:white;color:#153e36;font:inherit;font-size:.95rem;border-radius:10px;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.mention-option:hover,.mention-option:focus-visible{background:#eff8e6}.sto-mention{display:inline;color:#176548;font-weight:700;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
@media(max-width:780px){.account-dashboard{grid-template-columns:minmax(0,1fr)}.account-profile,.review-media-section,.review-contact-box{padding:16px}.account-profile-head{gap:12px}}

/* v1.10: читаемый выбор исполнителя */
[data-suggest-entity]{min-width:0}[data-suggest-master-hint]{background:#f1f7e9;padding:13px 15px;border-radius:11px;line-height:1.65;margin:0;color:#456454}[data-suggest-master-hint][hidden]{display:none}
