/* ============================================
   Retax — единая дизайн-система сайта
   Источник: retax-design-guide.html
   ============================================ */

:root {
  /* === Бренд === */
  --rt-primary:        #A72C6B;
  --rt-primary-hover:  #8A2459;
  --rt-primary-soft:   #D87BB5;
  --rt-primary-tint:   #FCE8F4;
  --rt-primary-bg:     #F5E8F0;

  /* === Тёмные акценты === */
  --rt-deep-violet:    #4A235A;
  --rt-darker-violet:  #3D1B55;
  --rt-near-black:     #1A1A1A;

  /* === Нейтральные === */
  --rt-page:           #FFFFFF;
  --rt-surface:        #FFFFFF;
  --rt-ice:            #FAF4F8;
  --rt-border:         #E8E8E8;
  --rt-text:           #1A1A1A;
  --rt-text-muted:     #555555;
  --rt-text-faint:     #9A9A9A;

  /* === Радиусы === */
  --rt-r-card:   24px;
  --rt-r-pill:   999px;
  --rt-r-input:  12px;
  --rt-r-sm:     14px;

  /* === Тени === */
  --rt-shadow-sm: 0 2px 8px rgba(167, 44, 107, 0.06);
  --rt-shadow-md: 0 8px 24px rgba(167, 44, 107, 0.10);
  --rt-shadow-lg: 0 20px 50px rgba(74, 35, 90, 0.18);

  /* === Типографика === */
  --rt-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--rt-font);
  background: var(--rt-page);
  color: var(--rt-text);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rt-primary); text-decoration: none; }
a:hover { color: var(--rt-primary-hover); }

/* ============================================ Layout ============================================ */
.wrap {
  /* legacy wrapper — больше не ограничивает ширину, но сохраняем для старых страниц */
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* Full-bleed container — обязательный внутри каждой секции */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
.container--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================ Header ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240,240,240,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(167,44,107,0.08);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 768px) {
  .site-header__inner { padding: 14px 20px; }
}
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo-re {
  background: var(--rt-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  margin-right: 2px;
}
.logo-tax { color: var(--rt-near-black); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: nowrap;
}
.nav-menu a {
  color: var(--rt-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
  position: relative;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .nav-menu { gap: 18px; }
  .nav-menu a { font-size: 13px; }
}
.nav-menu a:hover { color: var(--rt-primary); }
.nav-menu a.active { color: var(--rt-primary); }
.nav-menu a.active::after {
  content:""; position:absolute; left:0; right:0; bottom:-6px;
  height: 2px; background: var(--rt-primary); border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--rt-r-pill);
  background: var(--rt-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--rt-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--rt-shadow-md); }

.burger {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.burger span { width: 22px; height: 2px; background: var(--rt-text); border-radius: 2px; }

/* ============================================ Buttons ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--rt-r-pill);
  font-family: var(--rt-font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--rt-primary); color: #fff; }
.btn-primary:hover { background: var(--rt-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--rt-shadow-md); }
.btn-secondary { background: var(--rt-primary-tint); color: var(--rt-primary); }
.btn-secondary:hover { background: #F8D5E9; color: var(--rt-primary); }
.btn-ghost {
  background: transparent;
  color: var(--rt-primary);
  border: 1.5px solid var(--rt-primary);
}
.btn-ghost:hover { background: var(--rt-primary); color: #fff; }
.btn-white {
  background: #fff;
  color: var(--rt-primary);
}
.btn-white:hover { background: var(--rt-primary-tint); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 8px; }

/* ============================================ Sections (Full-bleed) ============================================ */
section.block {
  background: var(--rt-surface);
  padding: 80px 0;
  margin: 0;
  position: relative;
}
section.block + section.block { border-top: 1px solid rgba(167,44,107,0.06); }
section.block.dark + section.block,
section.block + section.block.dark,
section.block.darker + section.block,
section.block + section.block.darker,
section.block.tinted + section.block,
section.block + section.block.tinted,
section.block.ice + section.block,
section.block + section.block.ice { border-top: none; }

section.block.dark {
  background: var(--rt-deep-violet);
  color: #fff;
}
section.block.darker {
  background: var(--rt-darker-violet);
  color: #fff;
}
section.block.tinted {
  background: var(--rt-primary-bg);
}
section.block.ice {
  background: var(--rt-ice);
}
section.block.gradient {
  background: linear-gradient(135deg, var(--rt-primary) 0%, var(--rt-deep-violet) 100%);
  color: #fff;
}
section.block.compact { padding: 56px 0; }
section.block.tight   { padding: 40px 0; }

@media (max-width: 768px) {
  section.block { padding: 56px 0; }
  section.block.compact { padding: 44px 0; }
  .container { padding: 0 20px; }
  .container--narrow { padding: 0 20px; }
}

/* ============================================ Typography ============================================ */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rt-primary);
  margin-bottom: 12px;
}
.dark .eyebrow, .darker .eyebrow { color: var(--rt-primary-soft); }

h1, h2, h3, h4 { letter-spacing: -0.5px; }
.t-hero { font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.7px; margin-bottom: 20px; overflow-wrap: break-word; hyphens: manual; }
.t-h1   { font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.7px; margin-bottom: 18px; }
.t-h2   { font-size: clamp(24px, 2.5vw, 32px); font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.t-h3   { font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.t-h4   { font-size: 18px; font-weight: 600; line-height: 1.35; }
.t-body { font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--rt-text); }
.t-lead { font-size: clamp(16px, 1.5vw, 19px); font-weight: 400; line-height: 1.55; color: var(--rt-text-muted); max-width: 760px; }
.dark .t-lead, .darker .t-lead { color: rgba(255,255,255,0.85); }
.t-cap  { font-size: 13px; font-weight: 500; color: var(--rt-text-muted); }
.t-stat { font-size: clamp(38px, 4vw, 52px); font-weight: 800; color: var(--rt-primary); line-height: 1; letter-spacing: -1.5px; }
.accent { color: var(--rt-primary); }
.dark .accent, .darker .accent { color: var(--rt-primary-soft); }

.mb-8  { margin-bottom: 8px;  }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ============================================ Hero (full-bleed) ============================================ */
.hero {
  background: linear-gradient(180deg, #FCE8F4 0%, #FFFFFF 100%);
  padding: 56px 0 64px;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.hero-decor {
  position: absolute;
  right: -180px; top: -180px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,44,107,.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-decor--2 {
  position: absolute;
  left: -120px; bottom: -150px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,35,90,.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 100%; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero-content .t-hero { text-wrap: balance; }
.hero-content .t-hero .accent { display: block; margin-top: 8px; }
.hero-content .t-lead { font-size: clamp(15px, 1.2vw, 17px); max-width: 540px; }

.hero.dark { background: var(--rt-deep-violet); color: #fff; }
.hero.dark .t-hero, .hero.dark .t-h1 { color: #fff; }
.hero.dark .t-lead { color: rgba(255,255,255,0.85); }

@media (max-width: 1100px) {
  .hero { padding: 48px 0 56px; }
}
@media (max-width: 768px) {
  .hero { padding: 36px 0 48px; }
}

/* ============================================ Grids ============================================ */
.grid { display: grid; gap: 22px; align-items: stretch; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid > * { height: 100%; }

/* ============================================ Cards ============================================ */
.card {
  background: var(--rt-surface);
  border-radius: var(--rt-r-card);
  padding: 32px 28px;
  box-shadow: var(--rt-shadow-sm);
  border: 1px solid rgba(167,44,107,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--rt-shadow-md); }

.card-tinted { background: var(--rt-primary-bg); border: none; }

.card .ico {
  width: 56px; height: 56px;
  background: var(--rt-primary);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 800;
  margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--rt-text-muted); }
.card .num {
  display: inline-block;
  font-family: 'Montserrat', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--rt-primary);
  background: var(--rt-primary-tint);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card.dark-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.card.dark-card h3, .card.dark-card h4 { color: #fff; }
.card.dark-card p { color: rgba(255,255,255,0.78); }

/* ============================================ Stat blocks ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.stat {
  background: var(--rt-surface);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--rt-shadow-sm);
}
.stat .value { font-size: 42px; font-weight: 800; color: var(--rt-primary); line-height: 1; letter-spacing: -1px; }
.stat .label { font-size: 14px; color: var(--rt-text-muted); margin-top: 10px; }
.stat.tinted { background: var(--rt-primary-bg); }

/* ============================================ Pills, tags ============================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--rt-primary-tint);
  color: var(--rt-primary);
}
.pill.status-ready { background: #E6F6EC; color: #2D7A45; }
.pill.status-mvp { background: #FFF0DF; color: #A26B0E; }
.pill.status-roadmap { background: #E8EAF7; color: #4A4A8A; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ============================================ Lists ============================================ */
.bullets {
  list-style: none;
  margin-top: 8px;
}
.bullets li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--rt-text-muted);
  line-height: 1.55;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--rt-primary-tint);
  border: 3px solid var(--rt-primary);
}
.dark .bullets li, .darker .bullets li { color: rgba(255,255,255,0.82); }
.dark .bullets li::before, .darker .bullets li::before {
  background: rgba(255,255,255,0.08);
  border-color: var(--rt-primary-soft);
}

/* ============================================ Process / Steps ============================================ */
.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
}
.step {
  background: var(--rt-surface);
  border-radius: var(--rt-r-card);
  padding: 26px 24px;
  box-shadow: var(--rt-shadow-sm);
  position: relative;
}
.step-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--rt-primary);
  background: var(--rt-primary-tint);
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h4 { margin-bottom: 6px; font-size: 17px; font-weight: 600; }
.step p { font-size: 14px; color: var(--rt-text-muted); }

/* ============================================ Tables ============================================ */
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--rt-surface);
  border-radius: var(--rt-r-card);
  overflow: hidden;
  box-shadow: var(--rt-shadow-sm);
  margin-top: 18px;
}
.tbl th {
  background: var(--rt-primary-bg);
  color: var(--rt-primary);
  text-align: left;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 700;
}
.tbl td {
  padding: 14px 22px;
  font-size: 15px;
  color: var(--rt-text);
  border-top: 1px solid var(--rt-border);
}
.tbl td.muted { color: var(--rt-text-muted); }
.tbl .price { font-weight: 700; color: var(--rt-primary); white-space: nowrap; }

/* ============================================ Form ============================================ */
.form {
  display: grid;
  gap: 14px;
  max-width: 460px;
}
.form input,
.form textarea,
.form select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--rt-r-input);
  padding: 14px 16px;
  color: #fff;
  font-family: var(--rt-font);
  font-size: 15px;
  outline: none;
  width: 100%;
  transition: all .2s ease;
}
.form input::placeholder,
.form textarea::placeholder { color: rgba(255,255,255,0.5); }
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--rt-primary-soft);
  background: rgba(255,255,255,0.12);
}
.form textarea { resize: vertical; min-height: 100px; }
.form .checkbox-line {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: flex; gap: 10px;
  align-items: flex-start;
  margin-top: 4px;
}
.form .checkbox-line input { width: auto; }
.form .checkbox-line a { color: var(--rt-primary-soft); text-decoration: underline; }

/* Light form variant */
.form-light input, .form-light textarea, .form-light select {
  background: #fff;
  border: 1px solid var(--rt-border);
  color: var(--rt-text);
}
.form-light input::placeholder, .form-light textarea::placeholder { color: var(--rt-text-faint); }
.form-light .checkbox-line { color: var(--rt-text-muted); }
.form-light .checkbox-line a { color: var(--rt-primary); }

/* ============================================ CTA Block (full-bleed) ============================================ */
.cta-block {
  background: linear-gradient(135deg, var(--rt-deep-violet) 0%, var(--rt-primary) 100%);
  color: #fff;
  padding: 80px 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.cta-block .container {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: 1.2fr 1fr;
}
.cta-block::before {
  content: "";
  position: absolute;
  right: -200px; top: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  pointer-events: none;
}
@media (max-width: 768px) {
  .cta-block { padding: 56px 0; }
  .cta-block .container { grid-template-columns: 1fr; gap: 24px; }
}
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,0.88); margin-bottom: 0; max-width: 540px; font-size: 16px; }

/* ============================================ Breadcrumbs ============================================ */
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--rt-text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--rt-text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--rt-primary); }
.crumbs span.sep { color: var(--rt-text-faint); }

/* ============================================ Footer ============================================ */
.site-footer {
  background: var(--rt-near-black);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  margin-top: 0;
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 768px) {
  .site-footer__inner { padding: 0 20px; padding-bottom: 28px; }
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  font-weight: 600;
}
.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  font-size: 14px;
  transition: color .2s ease;
}
.site-footer a:hover { color: var(--rt-primary-soft); }
.site-footer .copy {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
@media (max-width: 768px) {
  .site-footer .copy { padding: 0 20px; }
}
.site-footer .copy a { display: inline; color: rgba(255,255,255,0.5); }
.site-footer .copy a:hover { color: var(--rt-primary-soft); }

/* ============================================ Logo block in footer ============================================ */
.footer-logo .logo-tax { color: #fff; }
.footer-logo p { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 14px; max-width: 280px; line-height: 1.55; }

/* ============================================ Inline highlights ============================================ */
.kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rt-border);
  align-items: baseline;
}
.kv:last-child { border-bottom: none; }
.kv .k { font-weight: 600; color: var(--rt-text); font-size: 14px; }
.kv .v { font-size: 14.5px; color: var(--rt-text-muted); }

/* ============================================ Quote ============================================ */
.quote {
  background: var(--rt-primary-bg);
  border-left: 4px solid var(--rt-primary);
  border-radius: 0 var(--rt-r-card) var(--rt-r-card) 0;
  padding: 28px 32px;
  font-style: italic;
  color: var(--rt-text);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 16px;
}
.quote .author {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--rt-primary);
}

/* ============================================ Note ============================================ */
.note {
  background: var(--rt-primary-bg);
  border-left: 4px solid var(--rt-primary);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 15px;
  color: var(--rt-text);
  line-height: 1.55;
  margin-top: 18px;
}
.note b { color: var(--rt-primary); }

/* ============================================ Two-column intro ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ============================================ Responsive ============================================ */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; }
  .burger { display: flex; }
  .nav-cta { padding: 9px 18px; font-size: 13px; }
}
@media (max-width: 820px) {
  /* На планшете 768 — все трехколоночные сетки в 1 колонку, чтобы не было висячей карточки */
  .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .grid > * { height: auto; } /* в одну колонку выравнивание по высоте не нужно */
  .nav-cta { display: none; } /* на мобиле CTA в шапке скрываем — остаётся бургер и CTA в hero */
  .nav-menu { display: none; }
  .burger { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--rt-surface);
    padding: 20px 24px 24px;
    gap: 14px;
    box-shadow: var(--rt-shadow-md);
    border-top: 1px solid var(--rt-border);
  }
  .nav-menu.open a { font-size: 15px; padding: 6px 0; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 4px; }
  .kv .k { font-size: 13px; color: var(--rt-text-faint); text-transform: uppercase; letter-spacing: 1px; }
}

/* ============================================ */
/* === Index page — дополнительные компоненты === */
/* ============================================ */

/* Hero metrics row */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rt-border);
}
.hero-metric { display: flex; flex-direction: column; gap: 6px; }
.hero-metric__value {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  color: var(--rt-primary);
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.hero-metric__label {
  font-size: 13px;
  color: var(--rt-text-muted);
  line-height: 1.4;
}

/* Section header */
.section-head { max-width: 820px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-foot { margin-top: 28px; }
.section-foot.center { text-align: center; }

/* Link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rt-primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: gap .2s ease;
}
.link-arrow:hover { gap: 10px; color: var(--rt-primary-hover); }
.dark .link-arrow, .darker .link-arrow { color: var(--rt-primary-soft); }
.dark .link-arrow:hover, .darker .link-arrow:hover { color: #fff; }

/* Quote card with author */
.quote-card {
  background: var(--rt-primary-bg);
  border-radius: var(--rt-r-card);
  padding: 32px 30px;
  box-shadow: var(--rt-shadow-sm);
  border-left: 4px solid var(--rt-primary);
}
.quote-card__text {
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  color: var(--rt-text);
  margin-bottom: 20px;
}
.quote-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rt-primary), var(--rt-deep-violet));
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar-circle.lg { width: 140px; height: 140px; font-size: 42px; }
.quote-card__name { font-weight: 700; color: var(--rt-text); font-size: 15px; line-height: 1.3; }
.quote-card__role { font-size: 13px; color: var(--rt-text-muted); margin-top: 2px; }

/* Offerings card with icon and link */
.offering {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--rt-surface);
  border-radius: var(--rt-r-card);
  padding: 28px 26px;
  box-shadow: var(--rt-shadow-sm);
  border: 1px solid rgba(167,44,107,0.05);
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
  height: 100%;
}
.offering__more { margin-top: auto; }
.offering:hover { transform: translateY(-3px); box-shadow: var(--rt-shadow-md); color: inherit; }
.offering.flagship {
  border: 2px solid var(--rt-primary);
  background: linear-gradient(180deg, #fff 0%, var(--rt-primary-tint) 100%);
}
.offering__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--rt-primary-tint);
  color: var(--rt-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 4px;
}
.offering h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--rt-text);
  line-height: 1.3;
}
.offering p {
  font-size: 14px;
  color: var(--rt-text-muted);
  line-height: 1.55;
  flex: 1;
}
.offering__more {
  color: var(--rt-primary);
  font-weight: 600;
  font-size: 14px;
  margin-top: 6px;
}

/* Tariff toggle and panels */
.tariff-toggle {
  display: inline-flex;
  background: var(--rt-surface);
  border-radius: 999px;
  padding: 5px;
  box-shadow: var(--rt-shadow-sm);
  margin: 0 auto 36px;
  border: 1px solid var(--rt-border);
}
.tariff-toggle-wrap { text-align: center; }
.tariff-toggle__btn {
  padding: 11px 26px;
  border: none;
  background: transparent;
  font-family: var(--rt-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--rt-text-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.tariff-toggle__btn.active {
  background: var(--rt-primary);
  color: #fff;
  box-shadow: var(--rt-shadow-sm);
}
.tariff-panel { display: none; }
.tariff-panel.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tariff-card {
  background: var(--rt-surface);
  border-radius: var(--rt-r-card);
  padding: 32px 28px;
  box-shadow: var(--rt-shadow-sm);
  border: 1px solid rgba(167,44,107,0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: all .2s ease;
}
.tariff-card:hover { transform: translateY(-3px); box-shadow: var(--rt-shadow-md); }
.tariff-card.featured {
  border: 2px solid var(--rt-primary);
  background: linear-gradient(180deg, #fff 0%, #FCF4F8 100%);
}
.tariff-card__badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--rt-primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 10px -2px rgba(167,44,107,0.35);
}
.tariff-card__name { font-size: 19px; font-weight: 700; color: var(--rt-text); }
.tariff-card__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--rt-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.tariff-card__price-note { font-size: 14px; font-weight: 500; color: var(--rt-text-muted); }
.tariff-card__for { font-size: 14px; color: var(--rt-text-muted); }
.tariff-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--rt-border);
  border-bottom: 1px solid var(--rt-border);
  flex: 1;
}
.tariff-card__features li {
  font-size: 14px;
  color: var(--rt-text);
  padding-left: 22px;
  position: relative;
}
.tariff-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rt-primary);
  font-weight: 700;
}
.btn.block { width: 100%; }

.tariff-example {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--rt-primary-tint);
  border-radius: 14px;
  font-size: 14.5px;
  color: var(--rt-text);
  text-align: center;
}
.tariff-example b { color: var(--rt-primary); }

/* Tariff panel intro note */
.tariff-panel__note {
  text-align: center;
  color: var(--rt-text-muted);
  font-size: 15px;
  max-width: 760px;
  margin: 0 auto 28px;
}

/* Tariff price table (on-premise) */
.tariff-price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 18px;
  font-size: 14.5px;
}
.tariff-price-table thead th {
  text-align: left;
  font-weight: 600;
  color: var(--rt-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 8px 10px;
  background: var(--rt-primary-tint);
  border-radius: 8px 8px 0 0;
}
.tariff-price-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(167,44,107,0.08);
  color: var(--rt-text);
}
.tariff-price-table tbody td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--rt-primary);
  white-space: nowrap;
}
.tariff-price-table tbody tr:last-child td { border-bottom: none; }
.tariff-card .tariff-price-table + .btn { margin-top: auto; }

/* Tariff footnote (credit top-up under SaaS) */
.tariff-footnote {
  margin-top: 24px;
  padding: 16px 22px;
  background: var(--rt-primary-tint);
  border-left: 3px solid var(--rt-primary-soft);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--rt-text);
}

/* Tariff add-ons (under on-premise table) */
.tariff-addons {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tariff-addon {
  padding: 16px 20px;
  background: var(--rt-primary-tint);
  border-left: 3px solid var(--rt-primary-soft);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--rt-text);
  line-height: 1.55;
}
.tariff-addon.accent {
  background: #FBE8DC;
  border-left-color: #E8916A;
}
@media (max-width: 768px) {
  .tariff-addons { grid-template-columns: 1fr; }
}

/* Case card (typical) */
.case-card {
  background: var(--rt-surface);
  border-radius: var(--rt-r-card);
  padding: 28px 26px;
  box-shadow: var(--rt-shadow-sm);
  border: 1px solid rgba(167,44,107,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .2s ease;
  height: 100%;
}
.case-card .link-arrow { margin-top: auto; }
.case-card__effect { margin-top: auto; }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--rt-shadow-md); }
.case-card__badge {
  align-self: flex-start;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--rt-primary);
  background: var(--rt-primary-tint);
  border-radius: 999px;
  text-transform: uppercase;
}
.case-card h3 { font-size: 18px; font-weight: 700; color: var(--rt-text); line-height: 1.35; }
.case-card p { font-size: 14.5px; color: var(--rt-text-muted); line-height: 1.55; }
.case-card__effect {
  background: var(--rt-primary-bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin-top: 4px;
}
.case-card__effect b { color: var(--rt-primary); }

/* Industry case (dark) */
.industry-case {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--rt-r-card);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  transition: all .2s ease;
  height: 100%;
}
.industry-case__more { margin-top: auto; }
.industry-case:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
  border-color: var(--rt-primary-soft);
  color: #fff;
}
.industry-case h3 { font-size: 19px; font-weight: 700; color: #fff; }
.industry-case p { font-size: 14.5px; color: rgba(255,255,255,0.78); line-height: 1.55; }
.industry-case__metric {
  font-size: 14px;
  color: var(--rt-primary-soft);
  font-weight: 600;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.industry-case__more {
  color: var(--rt-primary-soft);
  font-weight: 600;
  font-size: 14px;
}

/* Communication cards */
.comm-card {
  background: var(--rt-surface);
  border-radius: var(--rt-r-card);
  padding: 28px 26px;
  box-shadow: var(--rt-shadow-sm);
  border: 1px solid rgba(167,44,107,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .2s ease;
  height: 100%;
}
.comm-card:hover { transform: translateY(-3px); box-shadow: var(--rt-shadow-md); }
.comm-card__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--rt-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.comm-card__date {
  font-size: 20px;
  font-weight: 700;
  color: var(--rt-text);
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}
.comm-card h3 { font-size: 17px; font-weight: 700; color: var(--rt-text); line-height: 1.35; }
.comm-card p { font-size: 14px; color: var(--rt-text-muted); line-height: 1.55; flex: 1; }
.comm-card .btn { margin-top: auto; }
.comm-card__cover {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--rt-primary-tint) 0%, var(--rt-primary-bg) 100%);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--rt-primary);
  margin-bottom: 4px;
}
.comm-card__tg-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--rt-primary), var(--rt-deep-violet));
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.comm-card__badge {
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--rt-primary);
  background: var(--rt-primary-tint);
  border-radius: 6px;
  text-transform: uppercase;
}

/* Director card */
.director-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  background: var(--rt-surface);
  border-radius: var(--rt-r-card);
  padding: 36px 32px;
  box-shadow: var(--rt-shadow-sm);
  margin-bottom: 28px;
}
.director-card__info h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.director-card__role {
  color: var(--rt-primary);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
}
.director-card__bio { font-size: 15px; color: var(--rt-text-muted); line-height: 1.6; }

/* Start cards (4 paths) */
.start-card {
  background: var(--rt-surface);
  border-radius: var(--rt-r-card);
  padding: 28px 24px;
  box-shadow: var(--rt-shadow-sm);
  border: 1px solid rgba(167,44,107,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s ease;
}
.start-card:hover { transform: translateY(-3px); box-shadow: var(--rt-shadow-md); }
.start-card__num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--rt-primary-tint);
  color: var(--rt-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 4px;
}
.start-card h3 { font-size: 17px; font-weight: 700; }
.start-card p { font-size: 14px; color: var(--rt-text-muted); line-height: 1.55; }

/* Timeline steps */
.timeline-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}
.timeline-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: tl;
}
.timeline-steps li {
  background: var(--rt-surface);
  border-radius: var(--rt-r-card);
  padding: 28px 26px;
  box-shadow: var(--rt-shadow-sm);
  position: relative;
}
.timeline-steps li::before {
  counter-increment: tl;
  content: "0" counter(tl);
  position: absolute;
  top: 18px; right: 22px;
  font-size: 36px;
  font-weight: 800;
  color: var(--rt-primary-tint);
  line-height: 1;
}
.timeline-steps h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.timeline-duration { color: var(--rt-primary); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.timeline-steps p { font-size: 14px; color: var(--rt-text-muted); line-height: 1.55; }

/* CTA block actions */
.cta-block-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .director-card { grid-template-columns: 1fr; text-align: center; }
  .director-card .avatar-circle.lg { margin: 0 auto; }
  .timeline-steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero-metrics { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tariff-toggle { width: 100%; }
  .tariff-toggle__btn { flex: 1; padding: 11px 14px; font-size: 13px; }
  .cta-block-actions { flex-direction: column; }
  .cta-block-actions .btn { width: 100%; }
}

/* ================================================================
   Rentu-style additions: icon-boxes, image-side, surface-cards, bands
   ================================================================ */

/* Soft surface card — rounded with subtle shadow, sits inside a section */
.surface-card {
  background: var(--rt-surface);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 6px 24px rgba(74, 35, 90, 0.06);
  border: 1px solid rgba(167,44,107,0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.surface-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(74, 35, 90, 0.12);
}
.surface-card.dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
}
.surface-card.dark h3, .surface-card.dark .surface-card__title { color: #fff; }
.surface-card.dark p { color: rgba(255,255,255,0.75); }

/* Icon-box — coloured rounded square with SVG icon inside */
.icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--rt-primary-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rt-primary);
  flex-shrink: 0;
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box.violet { background: rgba(74,35,90,0.10); color: var(--rt-deep-violet); }
.icon-box.lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-box.lg svg { width: 32px; height: 32px; }
.dark .icon-box, .gradient .icon-box {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

/* Section header (centered or left, with eyebrow + title + lead) */
.sect-head {
  margin-bottom: 48px;
}
.sect-head.center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}
.sect-head .eyebrow { margin-bottom: 14px; }
.sect-head h2 { margin-bottom: 14px; }
.sect-head .lead { color: var(--rt-text-muted); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; max-width: 720px; }
.sect-head.center .lead { margin-left: auto; margin-right: auto; }
.dark .sect-head .lead, .darker .sect-head .lead, .gradient .sect-head .lead { color: rgba(255,255,255,0.78); }
@media (max-width: 768px) { .sect-head { margin-bottom: 32px; } }

/* Two-column layout: text + illustration */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.split--reverse > :first-child { order: 2; }
.split.split--reverse > :last-child { order: 1; }
.split.split--40-60 { grid-template-columns: 0.8fr 1.2fr; }
.split.split--60-40 { grid-template-columns: 1.2fr 0.8fr; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.split--reverse > :first-child,
  .split.split--reverse > :last-child { order: initial; }
}

/* Inline list with check icons */
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--rt-text);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--rt-primary-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A72C6B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 7 12 13 4'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.dark .check-list li, .darker .check-list li, .gradient .check-list li { color: rgba(255,255,255,0.85); }
.dark .check-list li::before, .darker .check-list li::before, .gradient .check-list li::before {
  background-color: rgba(255,255,255,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 7 12 13 4'/%3E%3C/svg%3E");
}

/* Stat band — orange-style horizontal counter (rentu-like) */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid rgba(167,44,107,0.10);
  margin-top: 40px;
}
.dark .stat-band, .darker .stat-band, .gradient .stat-band { border-top-color: rgba(255,255,255,0.18); }
.stat-band__item { text-align: center; }
.stat-band__value {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  color: var(--rt-primary);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.dark .stat-band__value, .darker .stat-band__value, .gradient .stat-band__value { color: var(--rt-primary-soft); }
.stat-band__label {
  font-size: 14px;
  color: var(--rt-text-muted);
  line-height: 1.4;
}
.dark .stat-band__label, .darker .stat-band__label, .gradient .stat-band__label { color: rgba(255,255,255,0.75); }
@media (max-width: 768px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 28px 0; }
}

/* Dashboard mock illustration */
.dashboard-mock {
  background: var(--rt-deep-violet);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(74, 35, 90, 0.25);
  position: relative;
  overflow: hidden;
}
.dashboard-mock__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.dashboard-mock__cell {
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 14px 16px;
}
.dashboard-mock__cell-label {
  display: block;
  width: 60%;
  height: 6px;
  border-radius: 3px;
  background: rgba(167,44,107,0.18);
  margin-bottom: 10px;
}
.dashboard-mock__cell-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--rt-deep-violet);
}
.dashboard-mock__cell-value.accent { color: var(--rt-primary); }
.dashboard-mock__chart {
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  height: 160px;
  position: relative;
}
.dashboard-mock__chart svg { width: 100%; height: 100%; }
.dashboard-mock__row.bottom {
  margin-bottom: 0;
  grid-template-columns: 1fr 2fr;
}

/* Bento direction card (for "что вы можете получить от Retax") */
.direction-card {
  background: var(--rt-surface);
  border-radius: 18px;
  padding: 26px 24px;
  border: 1px solid rgba(167,44,107,0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .25s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.direction-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167,44,107,0.25);
  box-shadow: 0 12px 30px rgba(167,44,107,0.10);
}
.direction-card.featured {
  background: linear-gradient(135deg, var(--rt-primary) 0%, var(--rt-primary-hover) 100%);
  color: #fff;
  border-color: transparent;
}
.direction-card.featured h3, .direction-card.featured .direction-card__title { color: #fff; }
.direction-card.featured p { color: rgba(255,255,255,0.88); }
.direction-card.featured .direction-card__tag {
  background: rgba(255,255,255,0.18); color: #fff;
}
.direction-card.featured .icon-box { background: rgba(255,255,255,0.16); color: #fff; }
.direction-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rt-text);
  line-height: 1.3;
}
.direction-card__text {
  font-size: 14.5px;
  color: var(--rt-text-muted);
  line-height: 1.55;
  flex: 1;
}
.direction-card__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rt-primary-tint);
  color: var(--rt-primary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.direction-card__link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rt-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  transition: gap .2s ease;
}
.direction-card__link:hover { gap: 10px; }
.direction-card.featured .direction-card__link { color: #fff; }

/* Step card (process steps 1-2-3) */
.step-card {
  background: var(--rt-surface);
  border-radius: 18px;
  padding: 28px 24px;
  border: 1px solid rgba(167,44,107,0.07);
  position: relative;
  height: 100%;
}
.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--rt-primary-tint);
  color: var(--rt-primary);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}
.step-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rt-text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.step-card__text {
  font-size: 14.5px;
  color: var(--rt-text-muted);
  line-height: 1.55;
}

/* Logo strip (clients/partners) */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0.7;
}
.logo-strip__item {
  font-size: 18px;
  font-weight: 600;
  color: var(--rt-text-muted);
  letter-spacing: 0.5px;
}

/* Hero-metric refinement — cleaner, inline */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(167,44,107,0.12);
}
.hero-metric { display: flex; flex-direction: column; gap: 4px; }
.hero-metric__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--rt-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.hero-metric__label {
  font-size: 13px;
  color: var(--rt-text-muted);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 18px 16px; margin-top: 32px; padding-top: 24px; align-items: start; }
  .hero-metric { min-height: 64px; }
  .hero-metric__value { font-size: 17px; }
  .hero-metric__label { font-size: 12.5px; }
}
@media (max-width: 380px) {
  .hero-metrics { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .hero-metric__value { font-size: 16px; }
}

/* ============================================================
   HERO ILLUSTRATION — process flow card
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { max-width: 100%; }
  .hero-content .t-lead { max-width: 100%; }
  .hero-visual { width: 100%; }
  .hero-visual > svg { width: 100%; max-width: 100%; margin: 0; display: block; }
}
@media (max-width: 600px) {
  .hero-grid { gap: 24px; }
}
.hero-content { min-width: 0; }

.hero-visual {
  position: relative;
  min-width: 0;
}
/* Картинка без собственной рамки — фон/тень/border убраны */
.hero-visual > svg {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
@media (max-width: 900px) {
  .hero-visual > svg { padding: 0; border-radius: 0; }
}
.hero-vis-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 30px 60px -20px rgba(74, 35, 90, 0.25),
    0 12px 28px -10px rgba(167, 44, 107, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.hero-vis-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid #EEE4EC;
}
.hero-vis-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E2D7DE;
}
.hero-vis-dot:first-child { background: #F2A6BD; }
.hero-vis-card__title {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #6B5566;
  letter-spacing: 0.02em;
}

.hero-flow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-flow__step {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #FAF4F8;
  border: 1px solid #F1E4EC;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hero-flow__step:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(167, 44, 107, 0.15);
}
.hero-flow__step.human {
  background: linear-gradient(135deg, #FCE8F4 0%, #F5D7E8 100%);
  border-color: #E8B8D2;
}
.hero-flow__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A72C6B;
  border: 1px solid #EEE4EC;
}
.hero-flow__icon svg {
  width: 22px;
  height: 22px;
}
.hero-flow__step.human .hero-flow__icon {
  background: #A72C6B;
  color: #fff;
  border-color: #A72C6B;
}
.hero-flow__txt { min-width: 0; }
.hero-flow__name {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.3;
}
.hero-flow__meta {
  font-size: 12px;
  color: #7A6A75;
  margin-top: 2px;
  line-height: 1.3;
}
.hero-flow__status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hero-flow__status.ok {
  background: #DCEFD8;
  color: #2E6B23;
}
.hero-flow__status.warn {
  background: #FFE6C7;
  color: #8A4A12;
}
.hero-flow__status.human-tag {
  background: #A72C6B;
  color: #fff;
}
.hero-flow__arrow {
  text-align: center;
  color: #C8B0BE;
  font-size: 16px;
  line-height: 1;
  margin: -2px 0;
  user-select: none;
}

.hero-vis-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #E8D4E0;
  font-size: 12px;
  color: #6B5566;
  flex-wrap: wrap;
}
.hero-vis-card__metric {
  color: #A72C6B;
  font-weight: 700;
}

/* Mobile: stack hero columns */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 600px) {
  .hero-vis-card { padding: 18px; }
  .hero-flow__step {
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    padding: 10px 12px;
  }
  .hero-flow__icon { width: 36px; height: 36px; }
  .hero-flow__icon svg { width: 18px; height: 18px; }
  .hero-flow__name { font-size: 13px; }
  .hero-flow__meta { font-size: 11px; }
}

/* ============================================================
   ICON SIZING for inline SVGs inside existing icon containers
   ============================================================ */
.offering__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}
.comm-card__cover svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
}
.comm-card__tg-icon svg {
  width: 32px;
  height: 32px;
}

/* ============================================ Шапка: логотип-картинка (прежняя версия) ============================================ */
.logo-img { height: 34px; width: auto; display: block; }
@media (max-width: 768px) { .logo-img { height: 30px; } }

/* ============================================ Подвал — прежняя версия retax.ru ============================================ */
.site-footer__brand {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.site-footer__logo { height: 40px; width: auto; }
.site-footer__tagline {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin: 0;
}
.site-footer__contacts {
  display: flex; gap: 22px; flex-wrap: wrap; justify-content: center;
  margin: 2px 0 0;
}
.site-footer__contacts a {
  color: var(--rt-primary-soft);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.site-footer__contacts a:hover { color: #fff; }
.site-footer__policy {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__policy:hover { color: #fff; }
.site-footer__copy {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  margin: 8px 0 0;
}
@media (max-width: 768px) { .site-footer__brand { padding: 0 20px; } }
