/* ============================================================
   БАЙКАЛ ПОРТАЛ — система стилей
   Нейтральная тёплая база + один электрический акцент
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Нейтральная база */
  --paper:      #F2EEE4;
  --paper-2:    #E8E3D6;
  --surface:    #FBFAF6;
  --ink:        #15140F;
  --ink-2:      #4C4A43;
  --ink-3:      #918E83;
  --line:       rgba(21,20,15,0.14);
  --line-soft:  rgba(21,20,15,0.08);

  /* Единственный яркий акцент */
  --accent:     #1A47FF;
  --accent-700: #0F2FC9;
  --accent-ink: #0B237F;
  --accent-wash:#E6E9FF;
  --accent-glow: rgba(26,71,255,0.22);

  /* Типографика */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Радиусы / тени */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(21,20,15,0.05);
  --shadow-md: 0 14px 40px -18px rgba(21,20,15,0.30);
  --shadow-accent: 0 18px 44px -16px var(--accent-glow);

  --maxw: 1280px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Утилиты ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 100px;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-accent:hover { background: var(--accent-700); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); transition: all .18s;
}
.icon-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* ---------- Чипы / бейджи ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: all .16s; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-accent.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 9px; border-radius: 6px;
}
.badge-accent { background: var(--accent-wash); color: var(--accent-ink); }
.badge-verify { background: var(--accent); color: #fff; }
.badge-ink { background: var(--ink); color: var(--paper); }
.badge-online { background: #E7F6EC; color: #1B7A3D; }
.badge-online::before { content:""; width:7px; height:7px; border-radius:50%; background:#27AE60; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; flex: none; }
.brand > span { white-space: nowrap; line-height: 1.05; }
.brand small { white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink);
  display: grid; place-items: center; position: relative; overflow: hidden; flex: none;
}
.brand-mark span { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.brand small { font-family: var(--font-body); font-weight: 600; font-size: 11px; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; display:block; margin-top:-3px;}

.main-nav { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.main-nav a {
  position: relative; font-weight: 600; font-size: 15px; color: var(--ink-2);
  padding: 8px 14px; border-radius: 100px; transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--ink); background: var(--paper-2); }
.main-nav a.active { color: var(--ink); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-actions .link-login { font-weight: 700; font-size: 15px; padding: 8px 6px; color: var(--ink); }
.header-actions .link-login:hover { color: var(--accent); }

.burger { display: none; }

/* ---------- Screen switching ---------- */
.screen { display: none; animation: screenIn .5s cubic-bezier(.16,.84,.44,1); }
.screen.active { display: block; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ГЛАВНАЯ
   ============================================================ */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 92px);
  max-width: 14ch;
}
.hero h1 .rotor {
  display: inline-flex; position: relative; color: var(--accent);
  vertical-align: top;
}
.hero h1 .rotor em { font-style: normal; }
.hero-sub {
  margin-top: 24px; font-size: clamp(16px, 1.6vw, 20px);
  color: var(--ink-2); max-width: 50ch; line-height: 1.5; font-weight: 500;
}

/* Поисковая панель */
.search-bar {
  margin-top: 34px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 100px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; padding: 8px 8px 8px 8px; gap: 4px;
  max-width: 760px;
}
.search-field { display: flex; align-items: center; gap: 12px; padding: 8px 18px; flex: 1; min-width: 0; }
.search-field svg { flex: none; color: var(--ink-3); }
.search-field input {
  border: none; outline: none; background: none; width: 100%;
  font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--ink);
}
.search-field input::placeholder { color: var(--ink-3); }
.search-divider { width: 1px; height: 30px; background: var(--line); flex: none; }
.search-bar .btn { flex: none; }

.hero-tags { margin-top: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-tags .label { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }

/* Stats ribbon */
.stats-ribbon {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 60px;
}
.stats-ribbon .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 8px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.03em; line-height: 1; }
.stat .num .suffix { color: var(--accent); }
.stat .lbl { margin-top: 8px; font-size: 14px; color: var(--ink-2); font-weight: 600; }

/* Секции */
.section { padding: 84px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.02em; line-height: 1.02; }
.section-head p { color: var(--ink-2); margin-top: 12px; max-width: 46ch; font-weight: 500; }

/* Категории */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.cat-cell {
  position: relative; padding: 28px 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .2s; cursor: pointer; overflow: hidden;
}
.cat-cell:hover { background: var(--ink); color: var(--paper); }
.cat-cell:hover .cat-count, .cat-cell:hover .cat-ico { color: inherit; }
.cat-cell:hover .cat-ico { background: rgba(255,255,255,.12); }
.cat-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; margin-bottom: 40px; transition: all .2s; }
.cat-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.cat-count { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.cat-arrow { position: absolute; top: 26px; right: 24px; opacity: 0; transform: translate(-6px,6px); transition: all .2s; }
.cat-cell:hover .cat-arrow { opacity: 1; transform: translate(0,0); }
/* 4 cols => remove right border on 4th column, bottom border on last row handled by overflow */
.cat-grid .cat-cell:nth-child(4n) { border-right: none; }

/* Карточки исполнителей */
.pro-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pro-card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
  cursor: pointer; display: flex; flex-direction: column;
}
.pro-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.pro-head { display: flex; align-items: center; gap: 13px; }
.pro-head > div:last-child { min-width: 0; }
.avatar {
  width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--paper); position: relative;
}
.avatar.lg { width: 96px; height: 96px; border-radius: 24px; font-size: 36px; }
.avatar .dot { position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; background: #27AE60; border: 3px solid var(--surface); }
.pro-name { font-weight: 800; font-size: 16.5px; line-height: 1.18; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pro-name .v { align-self: flex-start; margin-top: 1px; }
.pro-name .v { color: var(--accent); display: inline-flex; }
.pro-spec { font-size: 13.5px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.pro-meta { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13.5px; font-weight: 700; }
.pro-meta .star { color: var(--accent); display:inline-flex; }
.pro-meta .muted { color: var(--ink-3); font-weight: 600; }
.pro-skills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.skill { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); padding: 5px 10px; border-radius: 7px; }
.pro-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; }
.price small { font-size: 12px; color: var(--ink-3); font-weight: 600; display: block; }
.price b { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }

/* Как это работает */
.how { background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: 56px clamp(24px,4vw,64px); position: relative; overflow: hidden; }
.how-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.how-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px,3.6vw,46px); letter-spacing: -.02em; color: var(--paper); }
.how-head .eyebrow { color: #fff; }
.how-head .eyebrow::before { background: var(--accent); }
.toggle {
  display: inline-flex; padding: 5px; background: rgba(255,255,255,.08); border-radius: 100px; gap: 4px;
}
.toggle button { padding: 10px 20px; border-radius: 100px; font-weight: 700; font-size: 14.5px; color: rgba(255,255,255,.6); transition: all .2s; white-space: nowrap; }
.toggle button.active { background: var(--accent); color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding-top: 26px; border-top: 2px solid rgba(255,255,255,.18); transition: border-color .2s; }
.step:hover { border-color: var(--accent); }
.step .n { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent); letter-spacing: .04em; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-top: 14px; letter-spacing: -.01em; }
.step p { color: rgba(255,255,255,.65); margin-top: 10px; font-weight: 500; font-size: 15px; }

/* CTA band */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(40px,6vw,76px); background: var(--accent); color: #fff; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px,4.6vw,60px); letter-spacing: -.02em; line-height: 1; max-width: 16ch; }
.cta-band p { margin-top: 18px; font-size: clamp(16px,1.6vw,19px); opacity: .9; max-width: 44ch; font-weight: 500; }
.cta-band .btn { margin-top: 30px; }
.cta-deco { position: absolute; right: -60px; top: -60px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255,255,255,.10); }
.cta-deco.two { right: 80px; top: 120px; width: 180px; height: 180px; border-width: 28px; }

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.catalog-top { padding: 40px 0 26px; border-bottom: 1px solid var(--line); }
.crumb { font-size: 13.5px; color: var(--ink-3); font-weight: 600; display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.crumb a:hover { color: var(--accent); }
.catalog-top h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px,4vw,52px); letter-spacing: -.02em; }
.catalog-search { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.catalog-search .search-bar { margin: 0; flex: 1; min-width: 280px; box-shadow: var(--shadow-sm); }

.catalog-body { display: grid; grid-template-columns: 280px 1fr; gap: 36px; padding: 32px 0 90px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filter-group { padding: 22px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 16px; }
.filter-list { display: flex; flex-direction: column; gap: 11px; }
.check { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: color .15s; }
.check:hover { color: var(--ink); }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.6px solid var(--line); flex: none; display: grid; place-items: center; transition: all .15s; }
.check input { display: none; }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box svg { opacity: 1; }
.check .box svg { opacity: 0; color: #fff; transition: opacity .15s; }
.check .cnt { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-toolbar .count { font-weight: 700; font-size: 15px; }
.catalog-toolbar .count b { color: var(--accent); }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.select {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 100px; font-weight: 700; font-size: 14px; background: var(--surface);
  transition: border-color .15s;
}
.select:hover { border-color: var(--ink); }
.view-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden; }
.view-toggle button { padding: 9px 12px; color: var(--ink-3); transition: all .15s; display: grid; place-items: center; }
.view-toggle button.active { background: var(--ink); color: var(--paper); }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.catalog-grid.list-view { grid-template-columns: 1fr; }
.catalog-grid.list-view .pro-card { flex-direction: row; align-items: center; gap: 24px; }
.catalog-grid.list-view .pro-head { flex: 0 0 280px; }
.catalog-grid.list-view .pro-skills { margin-top: 0; flex: 1; }
.catalog-grid.list-view .pro-meta { margin-top: 0; }
.catalog-grid.list-view .pro-foot { margin-top: 0; padding-top: 0; flex-direction: column; align-items: flex-end; gap: 12px; flex: none; }

.load-more { display: flex; justify-content: center; margin-top: 40px; }

/* ============================================================
   ПРОФИЛЬ
   ============================================================ */
.profile-hero { padding: 36px 0 0; }
.profile-hero .crumb { margin-bottom: 24px; }
.profile-card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-xl);
  padding: 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.profile-id h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px,3.4vw,42px); letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-id .role { font-size: 17px; color: var(--ink-2); font-weight: 600; margin-top: 6px; }
.profile-stats { display: flex; gap: 28px; margin-top: 20px; flex-wrap: wrap; }
.profile-stats .ps { display: flex; flex-direction: column; gap: 2px; }
.profile-stats .ps b { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.profile-stats .ps span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.profile-stats .ps b .star { color: var(--accent); }
.profile-actions { display: flex; flex-direction: column; gap: 12px; min-width: 200px; }

.profile-body { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 44px 0 90px; align-items: start; }
.profile-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 30px; position: sticky; top: var(--header-h); background: var(--paper); z-index: 5; }
.profile-tabs button { padding: 16px 18px; font-weight: 700; font-size: 15.5px; color: var(--ink-3); position: relative; transition: color .15s; }
.profile-tabs button.active { color: var(--ink); }
.profile-tabs button.active::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0; }

.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.01em; margin-bottom: 14px; }
.prose p { color: var(--ink-2); font-weight: 500; line-height: 1.7; margin-bottom: 14px; max-width: 62ch; }
.block { margin-bottom: 48px; }

.port-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.port-tile { aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; position: relative; border: 1px solid var(--line); cursor: pointer; }
.port-tile .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.port-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(transparent, rgba(21,20,15,.78)); color: #fff; font-weight: 700; font-size: 14.5px; transform: translateY(8px); opacity: 0; transition: all .2s; }
.port-tile:hover figcaption { transform: translateY(0); opacity: 1; }
.port-tile:hover .ph { transform: scale(1.04); transition: transform .4s; }

.review { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.review .avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-head b { font-weight: 800; font-size: 15px; }
.review-head .when { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.review-stars { color: var(--accent); display: inline-flex; gap: 1px; margin-left: auto; }
.review p { color: var(--ink-2); font-weight: 500; margin-top: 8px; line-height: 1.6; }

/* Sidebar пакетов */
.pkg-rail { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.pkg-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pkg-tabs { display: flex; border-bottom: 1px solid var(--line); }
.pkg-tabs button { flex: 1; padding: 14px 8px; font-weight: 700; font-size: 13.5px; color: var(--ink-3); transition: all .15s; }
.pkg-tabs button.active { color: var(--ink); background: var(--paper-2); }
.pkg-inner { padding: 24px; }
.pkg-price { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; }
.pkg-price small { font-size: 14px; color: var(--ink-3); font-weight: 600; font-family: var(--font-body); }
.pkg-desc { color: var(--ink-2); font-weight: 500; font-size: 14.5px; margin: 12px 0 18px; }
.pkg-feats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.pkg-feats li { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pkg-feats li svg { color: var(--accent); flex: none; }
.pkg-card .btn { width: 100%; }
.pkg-meta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 70px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand { color: var(--paper); }
.footer-brand p { color: rgba(255,255,255,.55); margin-top: 18px; max-width: 34ch; font-weight: 500; font-size: 14.5px; }
.footer-col h5 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.78); font-weight: 600; font-size: 14.5px; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; flex-wrap: wrap; color: rgba(255,255,255,.5); font-size: 13.5px; font-weight: 600; }

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1080px) {
  .pro-row { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid .cat-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .cat-grid .cat-cell:nth-child(2n) { border-right: none; }
}

@media (max-width: 900px) {
  .main-nav, .header-actions .btn-accent, .header-actions .link-login { display: none; }
  .burger { display: inline-flex; }
  .catalog-body { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .profile-body { grid-template-columns: 1fr; }
  .pkg-rail { position: static; }
  .profile-card { grid-template-columns: 1fr; text-align: left; }
  .profile-actions { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .stats-ribbon .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .pro-row { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid .cat-cell { border-right: none !important; }
  .steps { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; border-radius: var(--r-lg); align-items: stretch; padding: 12px; }
  .search-divider { display: none; }
  .search-field { padding: 12px; }
  .search-bar .btn { width: 100%; }
  .catalog-grid.list-view .pro-card { flex-direction: column; align-items: stretch; }
  .catalog-grid.list-view .pro-head { flex: none; }
  .catalog-grid.list-view .pro-foot { flex-direction: row; align-items: flex-end; }
  .profile-actions { flex-direction: column; }
  .port-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .mobile-menu.open { display: flex; }
}

/* ---------- Mobile menu panel ---------- */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--paper); flex-direction: column; padding: 24px 18px; gap: 6px;
}
.mobile-menu a { font-family: var(--font-display); font-weight: 600; font-size: 26px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 20px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: none; }
