/* ==========================================================================
   СтройСвязь — маркетплейс стройки и ремонта
   Характер: деловой «инструментальный» — тёплая бумага, графит, оранжевый
   сигнал, тонкие линии вместо тяжёлых теней, диагональный первый экран,
   мягкое зерно на фоне. Заголовки Manrope, текст Inter (кириллица есть,
   подключены без блокировки рендера, системный запасной стек).
   Сетка: контейнер 1200, ритм секций 96/56, радиусы 8/14/22.
   ========================================================================== */

:root{
  --bg:#F6F5F2;
  --surface:#FFFFFF;
  --surface-2:#F1EFEA;
  --text:#1C1F24;
  --muted:#6B7079;
  --border:#E6E3DD;
  --brand:#F26B1D;
  --brand-2:#2B2F36;
  --accent:#2E9E6B;
  --grad:linear-gradient(135deg,#2B2F36 0%,#3A3F47 60%,#F26B1D 140%);

  --brand-ink:#B84C0A;
  --brand-btn:#C4520C;
  --brand-btn-hover:#A4440A;
  --accent-ink:#1E7A4E;
  --danger:#D93B3B;
  --brand-soft:#FDEBDD;

  --font-display:"Manrope","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --font-sans:"Inter","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;
  --radius-1:8px;
  --radius-2:14px;
  --radius-3:22px;
  --radius-pill:999px;

  --shadow-sm:0 1px 2px rgba(28,31,36,.06);
  --shadow-md:0 6px 20px rgba(28,31,36,.08);
  --shadow-lg:0 18px 48px rgba(28,31,36,.14);

  --container:1200px;
  --gutter:20px;
  --section-y:96px;
  --header-h:72px;
  --ease-out:cubic-bezier(.16,1,.3,1);

  color-scheme:light;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  font-size:17px;
  line-height:1.6;
  letter-spacing:-.005em;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.04;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page{ position:relative; z-index:1; display:flex; flex-direction:column; min-height:100svh; }
main{ flex:1 0 auto; }

h1,h2,h3,h4{ font-family:var(--font-display); color:var(--text); text-wrap:balance; margin:0; }
h1{ font-size:clamp(2.125rem,4.6vw,3.5rem); line-height:1.08; font-weight:800; letter-spacing:-.02em; }
h2{ font-size:clamp(1.75rem,3.2vw,2.5rem); line-height:1.14; font-weight:800; letter-spacing:-.018em; }
h3{ font-size:clamp(1.19rem,1.6vw,1.375rem); line-height:1.3; font-weight:700; letter-spacing:-.01em; }
p{ margin:0; max-width:66ch; text-wrap:pretty; }
a{ color:var(--brand-ink); text-decoration-thickness:1px; text-underline-offset:2px; }
a:hover{ color:var(--brand-btn-hover); }
img{ max-width:100%; display:block; }
::selection{ background:#F8C9A8; color:#241609; }
:focus-visible{ outline:3px solid var(--brand); outline-offset:2px; border-radius:4px; }

.container{ width:100%; max-width:var(--container); margin-inline:auto; padding-inline:var(--gutter); }
.section{ padding-block:var(--section-y); }
.section--alt{ background:var(--surface-2); border-block:1px solid var(--border); }
.section__head{ display:flex; flex-direction:column; gap:10px; margin-bottom:40px; }
.section__head p{ color:var(--muted); font-size:16px; }
.section__head--row{ flex-direction:row; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.muted{ color:var(--muted); }
.visually-hidden{ position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.empty-state{ padding:32px 0; color:var(--muted); }
.label-text{ font-family:var(--font-display); font-size:13.5px; font-weight:700; color:#3B4048; letter-spacing:.01em; }

/* ---------- кнопки ---------- */
.btn{
  --btn-bg:var(--brand-btn);
  --btn-fg:#fff;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:52px; padding:0 24px;
  font-family:var(--font-display); font-size:16px; font-weight:700; letter-spacing:-.005em;
  color:var(--btn-fg);
  background:var(--btn-bg);
  border:1px solid transparent;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
  cursor:pointer; text-decoration:none;
  transition:background .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s;
}
.btn:hover{ --btn-bg:var(--brand-btn-hover); color:var(--btn-fg); transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn:active{ transform:translateY(0); }
.btn--ghost{ --btn-bg:transparent; --btn-fg:var(--brand-2); border:2px solid var(--brand-2); box-shadow:none; }
.btn--ghost:hover{ --btn-bg:var(--brand-2); --btn-fg:#fff; }
.btn--light{ --btn-bg:#fff; --btn-fg:var(--brand-2); }
.btn--light:hover{ --btn-bg:#F3EFE9; }
.btn--sm{ min-height:44px; padding:0 18px; font-size:15px; }
.btn--block{ width:100%; }
.btn[disabled], .btn.is-disabled{ opacity:.5; pointer-events:none; }
.btn--danger{ --btn-bg:#fff; --btn-fg:var(--danger); border:1.5px solid #EFC9C9; box-shadow:none; }
.btn--danger:hover{ --btn-bg:#FDECEC; --btn-fg:var(--danger); }
.btn--quiet{ --btn-bg:transparent; --btn-fg:#4C5158; box-shadow:none; border:1px solid var(--border); }
.btn--quiet:hover{ --btn-bg:#fff; --btn-fg:var(--text); }

/* ---------- шапка ---------- */
.site-top{ background:var(--brand-2); color:#E8E4DD; font-size:13.5px; letter-spacing:.01em; }
.site-top .container{ display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:36px; }
.site-top a{ color:#fff; text-decoration:none; border-bottom:1px solid rgba(255,255,255,.35); }
.site-top__note{ display:flex; align-items:center; gap:8px; }
.site-top__dot{ width:6px; height:6px; border-radius:50%; background:var(--brand); flex:none; }

.site-header{
  position:sticky; top:0; z-index:60;
  background:color-mix(in srgb, var(--bg) 88%, #fff);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(12px) saturate(140%);
}
.site-header__inner{ display:flex; align-items:center; gap:28px; min-height:var(--header-h); }
.brand{ display:inline-flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:20px; letter-spacing:-.03em; color:var(--text); text-decoration:none; flex:none; }
.brand:hover{ color:var(--text); }
.brand__mark{ width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:var(--brand-2); color:#fff; }
.brand__mark svg{ width:19px; height:19px; }
.brand__accent{ color:var(--brand); }
.nav{ display:flex; align-items:center; gap:26px; margin-inline:auto; }
.nav a{
  font-family:var(--font-display); font-weight:600; font-size:15.5px; color:var(--text);
  text-decoration:none; padding-block:6px; position:relative;
}
.nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--brand);
  transform:scaleX(0); transform-origin:left; transition:transform .2s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after{ transform:scaleX(1); }
.header-actions{ display:flex; align-items:center; gap:14px; flex:none; }
.header-actions .auth-link{ font-family:var(--font-display); font-weight:600; font-size:15px; color:var(--text); text-decoration:none; }
.header-actions .auth-link:hover{ color:var(--brand-ink); }

.burger{
  display:none; width:44px; height:44px; align-items:center; justify-content:center;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-sm); cursor:pointer;
}
.burger span{ display:block; width:18px; height:2px; background:var(--text); position:relative; }
.burger span::before,.burger span::after{ content:""; position:absolute; left:0; width:18px; height:2px; background:var(--text); }
.burger span::before{ top:-6px; } .burger span::after{ top:6px; }

.mobile-menu{
  position:fixed; top:calc(var(--header-h) + 36px); left:0; right:0; z-index:55;
  background:var(--surface); border-bottom:1px solid var(--border);
  padding:18px var(--gutter) 26px;
  box-shadow:var(--shadow-md);
  max-height:calc(100svh - var(--header-h));
  overflow:auto;
}
.mobile-menu[hidden]{ display:none; }
.mobile-menu ul{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.mobile-menu a{ display:block; padding:13px 4px; font-family:var(--font-display); font-weight:600; font-size:17px; color:var(--text); text-decoration:none; border-bottom:1px solid var(--border); }
.mobile-menu .btn{ margin-top:16px; width:100%; }

/* ---------- первый экран ---------- */
.hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(1100px 500px at 12% -10%, #FBE3D2 0%, transparent 62%),
    var(--surface);
  border-bottom:1px solid var(--border);
  padding-block:clamp(48px,6vw,84px) clamp(56px,7vw,96px);
}
.hero__shape{
  position:absolute; right:-14%; top:-18%; width:64%; aspect-ratio:1;
  background:var(--grad); opacity:.07; transform:rotate(18deg);
  clip-path:polygon(18% 0, 100% 0, 100% 82%, 0 100%);
  pointer-events:none; z-index:0;
}
.hero__inner{ position:relative; z-index:1; display:grid; grid-template-columns:7fr 5fr; gap:clamp(24px,4vw,56px); align-items:center; }
.hero__text{ display:flex; flex-direction:column; gap:22px; }
.hero__lead{ font-size:clamp(1.03rem,1.35vw,1.19rem); color:#3B4048; max-width:52ch; }
.hero__actions{ display:flex; flex-wrap:wrap; gap:12px; }
.hero__search{
  display:flex; gap:10px; background:var(--surface); padding:10px;
  border:1px solid var(--border); border-radius:calc(var(--radius-md) + 4px);
  box-shadow:var(--shadow-sm); max-width:640px;
}
.hero__search input{
  flex:1; min-width:0; border:0; background:transparent; padding:0 12px; min-height:48px;
  font-family:var(--font-sans); font-size:16px; color:var(--text); box-shadow:none;
}
.hero__search input:focus{ outline:none; box-shadow:none; }
.hero__search:focus-within{ border-color:var(--brand); box-shadow:0 0 0 4px #FCE0CE; }
.hero__hint{ font-size:14px; color:var(--muted); }
.hero__media{ position:relative; }
.hero__media img{
  width:100%; aspect-ratio:5/6; object-fit:cover;
  border-radius:var(--radius-lg);
  clip-path:polygon(0 0, 100% 6%, 100% 100%, 0 94%);
  box-shadow:var(--shadow-lg);
}
.hero__text > *{ animation:heroIn .7s var(--ease-out) both; }
.hero__text > *:nth-child(2){ animation-delay:.06s; }
.hero__text > *:nth-child(3){ animation-delay:.12s; }
.hero__text > *:nth-child(4){ animation-delay:.18s; }
.hero__text > *:nth-child(5){ animation-delay:.24s; }
.hero__media{ animation:heroIn .9s var(--ease-out) both; animation-delay:.1s; }
@keyframes heroIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }

/* ---------- категории ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.cat-card{
  display:flex; flex-direction:column; gap:10px; align-items:flex-start;
  padding:20px 18px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-md); text-decoration:none; color:var(--text);
  transition:transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s;
}
.cat-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:#D9D4CB; color:var(--text); }
.cat-card__icon{
  width:42px; height:42px; display:grid; place-items:center; border-radius:12px;
  background:var(--brand-soft); color:var(--brand-ink);
}
.cat-card__icon svg{ width:22px; height:22px; }
.cat-card__name{ font-family:var(--font-display); font-weight:700; font-size:15.5px; line-height:1.3; }
.cat-card__count{ font-size:13px; color:var(--muted); margin-top:auto; }

/* ---------- как это работает ---------- */
.how__inner{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(20px,3vw,48px); }
.how-col{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:clamp(22px,2.6vw,34px); box-shadow:var(--shadow-sm); }
.how-col h3{ margin-bottom:18px; }
.steps{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.steps li{ display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-top:1px solid var(--border); font-size:16px; }
.steps li:first-child{ border-top:0; padding-top:0; }
.steps__num{
  flex:none; width:28px; height:28px; border-radius:50%; display:grid; place-items:center;
  background:var(--brand-2); color:#fff; font-family:var(--font-display); font-weight:700; font-size:14px;
}

/* ---------- карточка заказа ---------- */
.order-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.order-grid--three{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.order-card{
  display:flex; flex-direction:column; gap:12px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:22px; box-shadow:var(--shadow-sm);
  transition:transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.order-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.order-card__top{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 11px; border-radius:var(--radius-pill);
  font-family:var(--font-display); font-size:12.5px; font-weight:700; letter-spacing:.01em;
}
.badge--cat{ background:var(--brand-soft); color:var(--brand-ink); text-decoration:none; }
.badge--cat:hover{ background:#FBDCC4; color:var(--brand-btn-hover); }
.badge--open{ background:color-mix(in srgb, var(--accent) 13%, #fff); color:var(--accent-ink); }
.badge--work{ background:#EEF0F3; color:#3E444D; }
.badge--closed{ background:#F1EFEA; color:#7A7266; }
.badge--soft{ background:var(--surface-2); color:#4C5158; }
.order-card__title{ font-size:19px; line-height:1.3; }
.order-card__title a{ color:var(--text); text-decoration:none; font-family:var(--font-display); font-weight:700; }
.order-card__title a:hover{ color:var(--brand-ink); }
.order-card__text{ font-size:15px; color:#4A4F57; }
.order-card__meta{ display:flex; flex-wrap:wrap; gap:8px 18px; font-size:13.5px; color:var(--muted); }
.meta-item{ display:inline-flex; align-items:center; gap:6px; }
.meta-item svg{ width:15px; height:15px; flex:none; color:#8A8F97; }
.meta-item--price{ color:var(--text); font-weight:600; }
.meta-item--price svg{ color:var(--brand-ink); }
.order-card__foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:14px; border-top:1px solid var(--border); font-size:13.5px; color:var(--muted); }
.order-card__foot .more{ font-family:var(--font-display); font-weight:700; font-size:14px; color:var(--brand-ink); text-decoration:none; display:inline-flex; align-items:center; gap:5px; }
.order-card__foot .more:hover{ gap:9px; }

/* ---------- мастера ---------- */
.masters-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.master-card{
  display:flex; flex-direction:column; gap:12px; align-items:flex-start;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:20px; box-shadow:var(--shadow-sm); text-decoration:none; color:var(--text);
  transition:transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.master-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); color:var(--text); }
.avatar{
  width:64px; height:64px; border-radius:50%; overflow:hidden; flex:none;
  background:var(--brand-2); color:#fff; display:grid; place-items:center;
  font-family:var(--font-display); font-weight:700; font-size:20px; letter-spacing:.02em;
  border:2px solid #fff; box-shadow:0 0 0 1px var(--border);
}
.avatar img{ width:100%; height:100%; object-fit:cover; }
.avatar--lg{ width:112px; height:112px; font-size:32px; }
.avatar--sm{ width:40px; height:40px; font-size:14px; }
.master-card__name{ font-family:var(--font-display); font-weight:700; font-size:17px; }
.master-card__city{ font-size:14px; color:var(--muted); margin-top:-6px; }
.chips{ display:flex; flex-wrap:wrap; gap:6px; }
.chip{
  font-size:12.5px; padding:4px 9px; border-radius:var(--radius-pill);
  background:var(--surface-2); color:#4C5158; border:1px solid var(--border); text-decoration:none;
}
a.chip:hover{ border-color:var(--brand); color:var(--brand-ink); }
.rating{ display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:600; }
.rating svg{ width:15px; height:15px; color:var(--brand); }
.rating--none{ color:var(--muted); font-weight:400; }
.master-card__foot{ margin-top:auto; padding-top:10px; width:100%; display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--border); font-size:13.5px; color:var(--muted); }

/* ---------- тёмный баннер ---------- */
.cta-band{ background:var(--grad); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md); }
.cta-band__inner{ display:grid; grid-template-columns:6fr 6fr; align-items:stretch; }
.cta-band__media{ position:relative; min-height:280px; }
.cta-band__media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cta-band__text{ padding:clamp(26px,3.4vw,52px); display:flex; flex-direction:column; gap:16px; justify-content:center; color:#fff; }
.cta-band__text h2{ color:#fff; }
.cta-band__text p{ color:#E7E3DC; max-width:46ch; }
.cta-band__text .btn{ align-self:flex-start; margin-top:6px; }

/* ---------- заголовок страницы ---------- */
.page-head{ background:var(--surface); border-bottom:1px solid var(--border); padding-block:clamp(32px,4vw,56px); }
.page-head h1{ font-size:clamp(1.9rem,3.8vw,2.9rem); }
.page-head p{ color:var(--muted); margin-top:14px; font-size:17px; }
.page-head--img{ position:relative; overflow:hidden; color:#fff; border-bottom:0; background:var(--brand-2); }
.page-head--img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.page-head--img::after{ content:""; position:absolute; inset:0; background:rgba(20,22,26,.55); }
.page-head--img .container{ position:relative; z-index:1; }
.page-head--img h1{ color:#fff; }
.page-head--img p{ color:#EDEAE4; }

/* ---------- раскладка с фильтрами ---------- */
.layout{ display:grid; grid-template-columns:3fr 9fr; gap:clamp(20px,2.6vw,36px); align-items:start; }
.side-panel{ position:sticky; top:calc(var(--header-h) + 16px); display:grid; gap:14px; }
.panel{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:22px; box-shadow:var(--shadow-sm); }
.panel__title{ font-family:var(--font-display); font-weight:700; font-size:16px; margin-bottom:10px; }
.filter-form{ display:grid; gap:16px; }
.filter-form .btn{ width:100%; }
.filter-group{ display:grid; gap:7px; }
.filter-group > label, .field > label, .field > .label-text{
  font-family:var(--font-display); font-size:13.5px; font-weight:700; color:#3B4048; letter-spacing:.01em;
}
.check{ display:flex; align-items:flex-start; gap:10px; font-size:14.5px; color:#3B4048; cursor:pointer; }
.check input{ width:18px; height:18px; accent-color:var(--brand-btn); margin-top:2px; flex:none; }

.field{ display:grid; gap:7px; }
.input, .select, .textarea{
  width:100%; min-height:48px; padding:11px 14px;
  font-family:var(--font-sans); font-size:16px; color:var(--text);
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius-sm);
  transition:border-color .15s, box-shadow .15s;
}
textarea, .textarea{ min-height:120px; resize:vertical; line-height:1.55; }
.input:focus, .select:focus, .textarea:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 4px #FCE0CE; }
.select{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7079' stroke-width='2'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:38px; }
.field__hint{ font-size:13px; color:var(--muted); }

.sort-bar{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:18px; }
.sort-bar__count{ font-size:14.5px; color:var(--muted); }
.segmented{ display:inline-flex; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-pill); padding:3px; }
.segmented a{ padding:7px 14px; border-radius:var(--radius-pill); font-family:var(--font-display); font-size:14px; font-weight:600; color:#4C5158; text-decoration:none; }
.segmented a.is-active{ background:var(--surface); color:var(--text); box-shadow:var(--shadow-sm); }

.filters-toggle{ display:none; }

.pagination{ display:flex; gap:8px; flex-wrap:wrap; margin-top:28px; }
.pagination a, .pagination span{
  min-width:42px; height:42px; display:grid; place-items:center; padding:0 12px;
  border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface);
  font-family:var(--font-display); font-weight:600; font-size:15px; color:var(--text); text-decoration:none;
}
.pagination a:hover{ border-color:var(--brand); color:var(--brand-ink); }
.pagination .is-active{ background:var(--brand-2); border-color:var(--brand-2); color:#fff; }

/* ---------- страница заказа ---------- */
.order-layout{ display:grid; grid-template-columns:8fr 4fr; gap:clamp(20px,2.6vw,36px); align-items:start; }
.order-main{ display:grid; gap:18px; }
.order-side{ display:grid; gap:16px; position:sticky; top:calc(var(--header-h) + 16px); }
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:clamp(20px,2.4vw,30px); box-shadow:var(--shadow-sm); }
.card--tight{ padding:22px; }
.order-head{ display:flex; flex-direction:column; gap:14px; }
.order-head h1{ font-size:clamp(1.7rem,3.2vw,2.4rem); }
.kv{ display:grid; gap:0; }
.kv__row{ display:flex; justify-content:space-between; gap:16px; padding:11px 0; border-top:1px solid var(--border); font-size:15px; }
.kv__row:first-child{ border-top:0; padding-top:0; }
.kv__key{ color:var(--muted); }
.kv__val{ font-weight:600; text-align:right; }
.prose{ display:grid; gap:14px; font-size:16.5px; line-height:1.65; color:#2C3138; }
.prose p{ max-width:70ch; }

.contact-box{ display:grid; gap:14px; }
.locked{ display:grid; gap:10px; padding:16px; border-radius:var(--radius-md); background:var(--surface-2); border:1px dashed #D5CFC4; }
.locked__icon{ color:var(--muted); }
.locked p{ font-size:14px; color:var(--muted); }
.phone-line{ font-family:var(--font-display); font-size:20px; font-weight:800; letter-spacing:-.01em; font-variant-numeric:tabular-nums; }
.phone-line a{ color:var(--text); text-decoration:none; }
.phone-line a:hover{ color:var(--brand-ink); }

.alert{ padding:14px 16px; border-radius:var(--radius-md); font-size:15px; border:1px solid; display:flex; gap:10px; align-items:flex-start; }
.alert svg{ width:18px; height:18px; flex:none; margin-top:2px; }
.alert--ok{ background:#EAF7F0; border-color:#C3E7D5; color:#17603E; }
.alert--err{ background:#FDECEC; border-color:#F3C9C9; color:#9C2525; }
.alert--info{ background:#F2F1EC; border-color:var(--border); color:#3B4048; }

.responses{ display:grid; gap:12px; }
.response{ border:1px solid var(--border); border-radius:var(--radius-md); padding:16px; display:grid; gap:10px; background:var(--surface); }
.response--accepted{ border-color:#BEE5D1; background:#F4FCF8; }
.response--rejected{ opacity:.7; }
.response__head{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.response__name{ font-family:var(--font-display); font-weight:700; font-size:16px; text-decoration:none; color:var(--text); }
.response__name:hover{ color:var(--brand-ink); }
.response__price{ font-family:var(--font-display); font-weight:800; font-size:17px; margin-left:auto; }
.response__text{ font-size:15px; color:#3B4048; }
.response__actions{ display:flex; gap:10px; flex-wrap:wrap; }
.response__actions form{ display:inline; margin:0; }

/* ---------- профиль мастера ---------- */
.profile-layout{ display:grid; grid-template-columns:4fr 8fr; gap:clamp(20px,2.6vw,36px); align-items:start; }
.profile-side{ display:grid; gap:16px; position:sticky; top:calc(var(--header-h) + 16px); }
.profile-side h1{ font-size:clamp(1.5rem,2.4vw,1.9rem); }
.profile-meta{ display:grid; gap:8px; font-size:15px; color:#3B4048; }
.profile-meta__row{ display:flex; align-items:center; gap:8px; }
.profile-meta svg{ width:16px; height:16px; color:#8A8F97; flex:none; }
.profile-main{ display:grid; gap:18px; }
.review{ padding:16px 0; border-top:1px solid var(--border); display:grid; gap:8px; }
.review:first-of-type{ border-top:0; padding-top:0; }
.review__head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.review__author{ font-family:var(--font-display); font-weight:700; font-size:15.5px; }
.review__date{ font-size:13px; color:var(--muted); margin-left:auto; }
.stars{ display:inline-flex; gap:2px; }
.stars svg{ width:16px; height:16px; color:#D9D4CB; }
.stars svg.on{ color:var(--brand); }
.stars button{ background:none; border:0; padding:2px; cursor:pointer; color:var(--brand); line-height:0; }

/* ---------- подписка ---------- */
.tariff-wrap{ display:grid; justify-items:center; gap:20px; }
.tariff-card{
  width:100%; max-width:560px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:clamp(24px,3vw,38px); box-shadow:var(--shadow-lg);
  display:grid; gap:20px;
}
.tariff-card__top{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.tariff-card__name{ font-family:var(--font-display); font-size:22px; font-weight:800; }
.tariff-card__period{ font-size:14px; color:var(--muted); margin-top:4px; }
.tariff-card__price{ font-family:var(--font-display); font-size:clamp(2rem,4vw,2.6rem); font-weight:800; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.tariff-card__price small{ font-size:15px; font-weight:600; color:var(--muted); letter-spacing:0; }
.tariff-card--offer{
  width:100%; max-width:560px; margin:0 auto; background:var(--surface);
  border:1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius:var(--radius-lg); padding:clamp(22px,3vw,32px); box-shadow:var(--shadow-lg);
  display:grid; gap:16px; position:relative; overflow:hidden;
}
.tariff-card--offer::before{ content:""; position:absolute; inset:0 0 auto 0; height:4px; background:linear-gradient(90deg, var(--brand), var(--brand-2)); }
.tariff-card--offer .tariff-card__name{ color:var(--brand); }
.promo-box .form-note{ margin:0; font-size:13.5px; color:var(--muted); }
@media (max-width:560px){
  .promo-box form{ flex-direction:column; }
  .promo-box .btn{ width:100%; }
}
.tariff-list{ list-style:none; margin:0; padding:0; display:grid; gap:11px; }
.tariff-list li{ display:flex; gap:10px; align-items:flex-start; font-size:15.5px; }
.tariff-list svg{ width:19px; height:19px; color:var(--accent); flex:none; margin-top:2px; }
.tariff-status{ display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:var(--radius-md); background:#EAF7F0; color:#17603E; font-size:15px; font-weight:600; }

.faq{ display:grid; gap:10px; }
.faq__item{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:0 20px; }
.faq__item summary{
  cursor:pointer; list-style:none; padding:18px 0; font-family:var(--font-display);
  font-weight:700; font-size:16.5px; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.faq__item summary::-webkit-details-marker{ display:none; }
.faq__item summary::after{ content:"+"; font-size:22px; color:var(--brand-ink); line-height:1; flex:none; }
.faq__item[open] summary::after{ content:"–"; }
.faq__item p{ padding-bottom:18px; font-size:15.5px; color:#3B4048; }

/* ---------- формы ---------- */
.form-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:clamp(22px,3vw,38px); box-shadow:var(--shadow-md); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-grid .field--full{ grid-column:1/-1; }
.form-actions{ display:grid; gap:12px; margin-top:22px; }
.form-actions .btn{ width:100%; }
.form-note{ font-size:13px; color:var(--muted); text-align:center; }
.consent{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:#4A4F57; }
.consent input{ width:18px; height:18px; accent-color:var(--brand-btn); margin-top:2px; flex:none; }
.consent a{ color:var(--brand-ink); }
.form-narrow{ max-width:720px; margin-inline:auto; }

/* ---------- кабинет ---------- */
.tabs{ display:flex; gap:6px; flex-wrap:wrap; border-bottom:1px solid var(--border); margin-bottom:24px; align-items:center; }
.tabs a{
  padding:12px 16px; font-family:var(--font-display); font-weight:600; font-size:15px;
  color:#4C5158; text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px;
}
.tabs a:hover{ color:var(--brand-ink); }
.tabs a.is-active{ color:var(--text); border-bottom-color:var(--brand); }
.tab-select{ display:none; margin-bottom:20px; }

.role-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.role-card{
  position:relative; display:grid; gap:10px; text-align:left; padding:26px; background:var(--surface);
  border:1.5px solid var(--border); border-radius:var(--radius-lg); cursor:pointer;
  transition:border-color .18s, box-shadow .18s, transform .18s;
}
.role-card:hover{ border-color:var(--brand); box-shadow:var(--shadow-md); transform:translateY(-2px); }
.role-card input{ position:absolute; opacity:0; pointer-events:none; }
.role-card__title{ font-family:var(--font-display); font-weight:800; font-size:18px; }
.role-card__desc{ font-size:14.5px; color:var(--muted); }
.role-card__check{ width:22px; height:22px; border-radius:50%; border:1.5px solid #CFC9BF; display:grid; place-items:center; color:transparent; }
.role-card:has(input:checked){ border-color:var(--brand); box-shadow:0 0 0 4px #FCE0CE; }
.role-card:has(input:checked) .role-card__check{ background:var(--brand-btn); border-color:var(--brand-btn); color:#fff; }

.list{ display:grid; gap:12px; }
.list-row{
  display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap;
  padding:16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
}
.list-row__main{ display:grid; gap:5px; min-width:0; }
.list-row__title{ font-family:var(--font-display); font-weight:700; font-size:16px; }
.list-row__title a{ color:var(--text); text-decoration:none; }
.list-row__title a:hover{ color:var(--brand-ink); }
.list-row__sub{ font-size:13.5px; color:var(--muted); }
.list-row__actions{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.list-row__actions form{ display:inline; margin:0; }
.table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface); }
table.table{ width:100%; border-collapse:collapse; font-size:14.5px; min-width:520px; }
table.table th, table.table td{ padding:12px 16px; text-align:left; border-bottom:1px solid var(--border); }
table.table th{ font-family:var(--font-display); font-size:12.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); background:var(--surface-2); }
table.table tr:last-child td{ border-bottom:0; }
table.table td.num{ font-variant-numeric:tabular-nums; }

.flash{ margin-bottom:20px; }

/* ---------- подвал ---------- */
.site-footer{ background:var(--brand-2); color:#D7D2CA; margin-top:0; }
.site-footer .container{ padding-block:clamp(40px,5vw,64px) 24px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:clamp(24px,4vw,56px); }
.footer-brand{ display:grid; gap:14px; align-content:start; }
.footer-brand .brand{ color:#fff; font-size:21px; }
.footer-brand .brand__mark{ background:var(--brand); color:#fff; }
.footer-brand p{ font-size:14.5px; color:#B9B4AC; max-width:30ch; }
.footer-col h4{ font-family:var(--font-display); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.09em; color:#8F8A82; margin-bottom:14px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.footer-col a{ color:#E4E0D9; text-decoration:none; font-size:15px; }
.footer-col a:hover{ color:#fff; text-decoration:underline; }
.footer-bottom{
  margin-top:38px; padding-top:20px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:13.5px; color:#948F87;
}
.footer-bottom a{ color:#B9B4AC; }

/* ---------- адаптив ---------- */
@media (max-width:1080px){
  :root{ --section-y:76px; }
  .cat-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .masters-grid{ grid-template-columns:repeat(3,minmax(0,1fr))!important; }
  .layout, .order-layout, .profile-layout{ grid-template-columns:1fr; }
  .side-panel, .order-side, .profile-side{ position:static; }
  .order-grid--three{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  :root{ --section-y:56px; }
  .site-top{ display:none; }
  .nav{ display:none; }
  .burger{ display:inline-flex; }
  .header-actions{ margin-left:auto; gap:10px; }
  .header-actions .auth-link{ display:none; }
  .mobile-menu{ top:var(--header-h); }
  .hero__inner{ grid-template-columns:1fr; }
  .hero__media{ order:2; }
  .hero__media img{ aspect-ratio:16/10; clip-path:polygon(0 0, 100% 3%, 100% 100%, 0 97%); }
  .hero__search{ flex-direction:column; }
  .hero__search .btn{ width:100%; }
  .how__inner{ grid-template-columns:1fr; }
  .order-grid, .order-grid--three{ grid-template-columns:1fr; }
  .cta-band__inner{ grid-template-columns:1fr; }
  .cta-band__media{ min-height:220px; order:-1; }
  .form-grid{ grid-template-columns:1fr; }
  .role-grid{ grid-template-columns:1fr; }
  .tabs{ display:none; }
  .tab-select{ display:block; }
  .footer-grid{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .cat-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .cat-card{ padding:16px 14px; }
  .masters-grid{
    grid-template-columns:none!important; grid-auto-flow:column; grid-auto-columns:78%;
    overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; gap:12px;
    scrollbar-width:thin;
  }
  .master-card{ scroll-snap-align:start; }
  .btn{ min-height:48px; padding:0 18px; font-size:15px; }
  .page-head p{ font-size:15.5px; }
  .filters-toggle{ display:inline-flex; }
  .side-panel{ display:none; }
  .side-panel.is-open{ display:grid; margin-bottom:18px; }
  .order-card{ padding:18px; }
  .section__head--row{ align-items:flex-start; }
  .tabs a{ margin-left:0!important; }
}
@media (max-width:400px){
  .brand{ font-size:18px; }
  .header-actions .btn--header{ padding:0 12px; font-size:13.5px; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; scroll-behavior:auto!important; }
}

/* --- Недостающие дизайн-токены (значения из theme.css платформы) --- */
:root{
  --font-size-base: var(--step-0, clamp(1rem, .96rem + .2vw, 1.125rem));
  --line-height: 1.6;
}
