/*
Theme Name: Zemexpert
Theme URI: https://example.com/
Author: Dmitry Vetoshkin
Author URI: https://example.com/
Description: Тема сайта землеустроительного и кадастрового эксперта
Version: 1.0
Text Domain: zemexpert
*/

/* =========================================================
   1) Палитра / токены
   ========================================================= */

:root {
  --primary: #1E62FF;
  --primary-dark: #1449CC;
  --primary-soft: #E8F0FF;

  --ink: #0C121F;
  --muted: #5E6678;

  --line: #D9DEEA;
  --bg: #F5F7FA;
  --white: #FFFFFF;

  --shadow-soft: 0 10px 30px rgba(10, 18, 35, 0.06);
  --shadow-strong: 0 14px 40px rgba(5, 11, 25, 0.28);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 18px;
}

/* =========================================================
   2) Reset / база / типографика
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

p { margin: 0 0 0.9em; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}

a:hover { text-decoration: underline; }

/* =========================================================
   3) Каркас / контейнер
   ========================================================= */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   4) Header
   ========================================================= */

.site-header {
  background-color: #050814;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.site-brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.site-header__phone { opacity: 0.9; }

.site-header__phone a {
  color: var(--white);
  text-decoration: none;
}

.site-header__phone a:hover { text-decoration: underline; }

.site-header__cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.36);
  font-size: 13px;
  text-decoration: none;
  color: var(--white);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.site-header__cta:hover {
  background-color: var(--white);
  color: #050814;
  text-decoration: none;
}

.site-header { display: none; }


/* =========================================================
   5) Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .08s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(30, 98, 255, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(30, 98, 255, 0.30);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--line);
}

.btn-secondary:hover {
  background-color: var(--primary-soft);
  text-decoration: none;
}

/* =========================================================
   6) Hero — финальный (brandline вне карточки)
   ========================================================= */

.hero.hero--photo.hero--brand-right .hero-title{
  margin: 0 0 12px;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.12;
  font-weight: 620;
  letter-spacing: -0.015em;
  max-width: 26ch;
}

/* фон: фото слева + зона справа */
.hero.hero--photo.hero--brand-right::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(12,18,31,0.26) 0%,
      rgba(12,18,31,0.12) 28%,
      rgba(245,247,250,0.82) 58%,
      rgba(245,247,250,0.96) 100%
    ),
    url('/wp-content/uploads/2026/01/Кадастровый-инженер-землеустроительный-эксперт-Ветошкин-Дмитрий-Николаевич.webp');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.hero.hero--photo.hero--brand-right .shell{
  position: relative;
  z-index: 2;
  max-width: 1280px;           /* шире общего shell */
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(520px, 680px);
  column-gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

/* бренд-строка — справа, отдельным элементом */
.hero.hero--photo.hero--brand-right .hero-brandline{
  grid-column: 2;
/*   justify-self: end; */
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  opacity: .95;
}

.hero.hero--photo.hero--brand-right .hero-brandline__name{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(12,18,31,0.85);
}

.hero.hero--photo.hero--brand-right .hero-brandline__role{
  margin-top: 2px;
  font-size: 13px;
  color: rgba(94,102,120,0.92);
}

/* карточка справа */
.hero.hero--photo.hero--brand-right .hero-content{
  grid-column: 2;
  justify-self: end;           /* ключевое выравнивание */
  width: 100%;
  max-width: 680px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(217,222,234,0.65);
  border-radius: 18px;
  padding: 26px 26px 22px;
  backdrop-filter: blur(6px);
}

.hero.hero--photo.hero--brand-right .subtitle{
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  max-width: 56ch;
  color: rgba(12,18,31,0.72);
  font-weight: 400;
  letter-spacing: 0;
}

.hero.hero--photo.hero--brand-right .hero-note{
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(12,18,31,0.58);
  border-left: 2px solid var(--primary);
  padding-left: 12px;
}

.hero.hero--photo.hero--brand-right .hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero.hero--photo.hero--brand-right .btn.btn-primary{
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(10,18,35,0.12);
}

@media (max-width: 960px){
  .hero.hero--photo.hero--brand-right{
    min-height: auto;
    padding: 48px 0;
  }
  .hero.hero--photo.hero--brand-right .shell{
    display: block;
    max-width: 1120px; /* возвращаем к общему ритму */
  }
  .hero.hero--photo.hero--brand-right .hero-brandline{
    width: auto;
    justify-self: auto;
    margin: 0 0 10px;
  }
  .hero.hero--photo.hero--brand-right .hero-content{
    width: auto;
    max-width: 720px;
  }
}

/* =========================================================
   7) Sections (общая разметка)
   ========================================================= */

.section { padding: 32px 0; }
.section--alt { background-color: var(--white); }

/* =========================================================
   8) When-needed (базовый блок + hover)
   ========================================================= */

.when-needed h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

.when-needed .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.when-lead {
  font-size: 14px;
  color: var(--muted);
  margin: -6px 0 16px;
}

.when-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform .10s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.when-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.when-card p { font-size: 14px; }

.when-card .what-i-do {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.when-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(10, 18, 35, 0.10);
  border-color: rgba(30, 98, 255, 0.22);
  background-color: #FFFFFF;
}

.when-needed .bottom-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   9) When-needed — вариант с иконками
   ========================================================= */

.when-needed--icons .when-grid { counter-reset: whenCounter; }

.when-item {
  position: relative;
  overflow: hidden;
  padding-top: 22px;
}

/* (нумерация отключена — оставляю как комментарий, т.к. функционально полезно)
.when-item::before { ... }
*/

.when-card__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-right: 14px;
  margin-bottom: 10px;
}

.when-card__head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.when-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(180deg, rgba(30, 98, 255, 0.10), rgba(30, 98, 255, 0.04));
  border: 1px solid rgba(30, 98, 255, 0.18);
  box-shadow: 0 10px 26px rgba(10, 18, 35, 0.06);
}

.when-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

.when-card:hover .when-ico {
  border-color: rgba(30, 98, 255, 0.28);
  box-shadow: 0 14px 34px rgba(10, 18, 35, 0.10);
}

/* роль эксперта */
.when-role {
  margin-top: 16px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.when-role::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.9;
}

.when-role h3 {
  font-size: 16px;
  margin: 0 0 8px;
  padding-left: 14px;
}

.when-role p {
  margin: 0;
  padding-left: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* адаптив when-grid */
@media (max-width: 1100px){
  .when-needed .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px){
  .when-needed .grid { grid-template-columns: 1fr; }
}

/* =========================================================
   10) About
   ========================================================= */

.about-flex {
  display: grid;
  grid-template-columns: 320px minmax(0,1fr);
  gap: 32px;
  align-items: stretch;
}

.about-photo { align-self: stretch; }

.about-photo__frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.about-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: none;
}

.about-text { max-width: 760px; }

.about-text h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.about-lead {
  font-size: 14px;
  color: rgba(12, 18, 31, 0.85);
  margin: 0 0 14px;
}

.about-body {
  font-size: 14px;
  color: rgba(12, 18, 31, 0.84);
  line-height: 1.75;
}

.about-subtitle {
  font-size: 16px;
  margin-top: 9px;
  margin-bottom: 6px;
}

/* метрики */
.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 14px;
  background: rgba(255,255,255,0.70);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  gap: 0;
}

.metric {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 16px;
  position: relative;
}

.metric:not(:first-child) {
  border-left: 1px solid rgba(217, 222, 234, 0.9);
}

.metric__val {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}

.metric__lbl {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* список */
.about-trust {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px 18px;
  font-size: 14px;
}

.about-trust li {
  position: relative;
  padding-left: 18px;
}

.about-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(30, 98, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(30, 98, 255, 0.10);
}

.about .disclaimer {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* note */
.about-note {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 14px 16px 12px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.about-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.9;
}

.about-note__title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(94, 102, 120, 0.95);
  padding-left: 14px;
  margin-bottom: 8px;
}

.about-note__text {
  margin: 3px;
  padding-left: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* wide note */
.about-wide { margin-top: 16px; }

.about-note--wide {
  max-width: 100%;
  border-radius: 22px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-soft);
}

.about-note--wide::before {
  top: 16px;
  bottom: 16px;
}

.about-note--wide .about-note__text {
  font-size: 14px;
  line-height: 1.75;
  max-width: 1000px;
}

/* адаптив about */
@media (max-width: 960px){
  .about-flex { grid-template-columns: 1fr; gap: 18px; }
  .about-text { max-width: 100%; }
  .about-metrics { grid-template-columns: 1fr; padding: 12px; }
  .metric { padding: 10px 0; }
  .metric:not(:first-child){
    border-left: none;
    border-top: 1px solid rgba(217, 222, 234, 0.9);
  }
}

/* =========================================================
   11) Services
   ========================================================= */

.services h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.service-card p { font-size: 14px; }

.service-more {
  display: inline-flex;
  margin-top: 10px;
  font-size: 14px;
}

/* premium services */
.services--premium .services-head {
  max-width: 920px;
  margin-bottom: 18px;
}

.services--premium .services-lead {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 860px;
}

.service-card--premium {
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .10s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card--premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(10, 18, 35, 0.10);
  border-color: rgba(30, 98, 255, 0.20);
}

.service-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.service-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #2B3752;
  background: rgba(30, 98, 255, 0.08);
  border: 1px solid rgba(30, 98, 255, 0.16);
}

.service-card--premium h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.service-desc {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(12, 18, 31, 0.78);
  line-height: 1.7;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: rgba(12, 18, 31, 0.84);
}

.service-list li {
  position: relative;
  padding-left: 16px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(30, 98, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(30, 98, 255, 0.10);
}

.service-microcta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(217, 222, 234, 0.9);
  font-size: 13px;
  color: var(--muted);
}

.service-microcta a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 98, 255, 0.25);
}

.service-microcta a:hover {
  border-bottom-color: rgba(30, 98, 255, 0.45);
}

@media (min-width: 961px){
  .service-card--wide {
    grid-column: 1 / -1;
    padding: 20px 20px 18px;
  }
  .service-list--cols{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }
}

/* =========================================================
   12) Workflow (база)
   ========================================================= */

.workflow h2 {
  font-size: 26px;
  margin-bottom: 28px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px 22px;
}

.workflow-step {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  font-size: 14px;
  display: flex;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(5, 11, 25, 0.04);
}

.workflow-step__num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--primary);
  flex-shrink: 0;
}

.workflow-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

/* =========================================================
   13) Workflow — premium (таймлайн)
   ========================================================= */

.workflow--premium .workflow-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.workflow--premium .workflow-steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(30, 98, 255, 0.15), rgba(30, 98, 255, 0.05));
  border-radius: 2px;
}

.workflow--premium .workflow-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}

.workflow--premium .workflow-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(10, 18, 35, 0.08);
  border-color: rgba(30, 98, 255, 0.20);
}

.workflow--premium .workflow-step__num {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(30, 98, 255, 0.45);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.workflow-step__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 880px;
}

.workflow-step__title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  color: var(--ink);
}

.workflow-step__text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(12, 18, 31, 0.82);
}

.workflow-step__out {
  margin-top: 6px;
  padding-top: 8px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px dashed rgba(217, 222, 234, 0.9);
}

@media (max-width: 640px){
  .workflow--premium .workflow-steps::before { left: 21px; }
  .workflow--premium .workflow-step { padding-left: 14px; }
  .workflow--premium .workflow-step__num { width: 24px; height: 24px; font-size: 11px; }
}

/* =========================================================
   14) Workflow — axis (ДОЛЖНО БЫТЬ ПОСЛЕ premium)
   ========================================================= */

.workflow--axis .workflow-axis{
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.workflow--axis .workflow-rail{
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: sticky;
  top: 18px;
}

.workflow--axis .workflow-rail li{
  position: relative;
  height: 74px;
  display: grid;
  place-items: start center;
}

.workflow--axis .workflow-rail li span{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 750;
  color: rgba(30, 98, 255, 0.95);
  background: rgba(30, 98, 255, 0.06);
  border: 1px solid rgba(30, 98, 255, 0.28);
  box-shadow: 0 10px 26px rgba(10, 18, 35, 0.06);
}

.workflow--axis .workflow-rail li::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 38px;
  bottom: -38px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(30, 98, 255, 0.18), rgba(30, 98, 255, 0.06));
  border-radius: 2px;
  z-index: -1;
}

.workflow--axis .workflow-rail li:last-child::after{ content: none; }

.workflow--axis .workflow-steps{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 18px;
}

@media (min-width: 980px){
  .workflow--axis .workflow-steps{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .workflow--axis .workflow-step:nth-child(1){ grid-column: 1; grid-row: 1; }
  .workflow--axis .workflow-step:nth-child(2){ grid-column: 1; grid-row: 2; }
  .workflow--axis .workflow-step:nth-child(3){ grid-column: 1; grid-row: 3; }
  .workflow--axis .workflow-step:nth-child(4){ grid-column: 2; grid-row: 1; }
  .workflow--axis .workflow-step:nth-child(5){ grid-column: 2; grid-row: 2; }
  .workflow--axis .workflow-step:nth-child(6){ grid-column: 2; grid-row: 3; }
}

.workflow--axis .workflow-step{
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}

.workflow--axis .workflow-step:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(10, 18, 35, 0.10);
  border-color: rgba(30, 98, 255, 0.22);
}

.workflow--axis .workflow-step__num{
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid rgba(30, 98, 255, 0.45);
}

.workflow--axis .workflow-step__content{ min-width: 0; }

.workflow--axis .workflow-step__title{
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  margin: 0;
}

.workflow--axis .workflow-step__text{
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(12, 18, 31, 0.82);
}

@supports selector(.x:has(.y)){
  .workflow--axis:has(.workflow-step:nth-child(1):hover) .workflow-rail li:nth-child(1) span,
  .workflow--axis:has(.workflow-step:nth-child(2):hover) .workflow-rail li:nth-child(2) span,
  .workflow--axis:has(.workflow-step:nth-child(3):hover) .workflow-rail li:nth-child(3) span,
  .workflow--axis:has(.workflow-step:nth-child(4):hover) .workflow-rail li:nth-child(4) span,
  .workflow--axis:has(.workflow-step:nth-child(5):hover) .workflow-rail li:nth-child(5) span,
  .workflow--axis:has(.workflow-step:nth-child(6):hover) .workflow-rail li:nth-child(6) span{
    background: rgba(30, 98, 255, 0.12);
    border-color: rgba(30, 98, 255, 0.45);
    box-shadow: 0 14px 34px rgba(10, 18, 35, 0.10);
  }
}

@media (max-width: 720px){
  .workflow--axis .workflow-axis{ grid-template-columns: 1fr; }
  .workflow--axis .workflow-rail{
    position: relative;
    top: auto;
    display: flex;
    gap: 10px;
    padding: 0 0 10px;
  }
  .workflow--axis .workflow-rail li{ height: auto; }
  .workflow--axis .workflow-rail li::after{ content: none; }
}

/* =========================================================
   15) Forms (база)
   ========================================================= */

.send-form h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.form { margin-top: 4px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px 18px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #C9D2E5;
  font-size: 14px;
  background-color: var(--white);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #9AA3BA; }

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(30, 98, 255, 0.12);
  background-color: #FBFCFF;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.send-form__submit { margin-top: 16px; }

.send-form__bottom {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* lite send-form */
.send-form--lite h2 { margin-bottom: 10px; }

.send-form__lead {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
}

.form-grid--lite{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.form-field--wide{ grid-column: 1 / -1; }

.form-grid--lite textarea{ min-height: 110px; }

.send-form__bottom--lite{
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* =========================================================
   16) Contact (форма + визитка) — tidy
   ========================================================= */

/* ---- Section layout ---- */

#contact.contact-combined{
  min-height: 100svh;
  padding: clamp(44px, 6vh, 84px) 0;
  display: flex;
  align-items: center;
  background: var(--bg);
}

#contact.contact-combined .shell{ width: 100%; }

.contact-head{
  max-width: 920px;
  margin-bottom: 18px;
}

.contact-lead{
  max-width: 820px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0 0;
}

.contact-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  align-items: stretch;
}

/* ---- Cards (form / vcard) ---- */

.contact-form,
.contact-card{
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  height: 100%;
}

.contact-form{
  display: flex;
  flex-direction: column;
}

.contact-options{
  display: flex;
  height: 100%;
}

.contact-card{
  display: flex;
  flex-direction: column;
}

.contact-card__title{
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}

.contact-card__sub{
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- Form grid ---- */

.form-grid--contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.form-grid--contact textarea{
  min-height: 120px;
  resize: vertical;
}

.form-label{
  display: block;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(94, 102, 120, 0.95);
  margin: 0 0 6px;
}

.contact-form__submit{
  margin-top: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-form__hint{
  font-size: 13px;
  color: var(--muted);
}

.contact-note{
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- vCard ---- */

.contact-vcard{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.vcard-row{
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(250, 251, 253, 0.9);
  border: 1px solid rgba(217, 222, 234, 0.92);
  transition:
    transform .12s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease;
}

.vcard-ico{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(30, 98, 255, 0.07);
  border: 1px solid rgba(30, 98, 255, 0.14);
}

.vcard-ico svg{ width: 20px; height: 20px; }

.vcard-main{
  display: grid;
  gap: 2px;
  min-width: 0;
}

.vcard-name{
  font-weight: 650;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
}

.vcard-meta{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.vcard-action{
  font-size: 12px;
  color: rgba(94, 102, 120, 0.95);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(217, 222, 234, 0.9);
}

.vcard-row--primary{
  background: rgba(30, 98, 255, 0.06);
  border-color: rgba(30, 98, 255, 0.18);
}

.vcard-row--primary .vcard-ico{
  background: rgba(30, 98, 255, 0.10);
  border-color: rgba(30, 98, 255, 0.22);
}

.vcard-row:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(10, 18, 35, 0.08);
  border-color: rgba(30, 98, 255, 0.22);
  background: #fff;
}

.vcard-row:hover .vcard-action{
  border-color: rgba(30, 98, 255, 0.22);
}

.contact-card__note{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(217, 222, 234, 0.9);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Consent checkbox ---- */

.form-consent{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.form-consent input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-consent__box{
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  transition: background-color .2s ease, border-color .2s ease, outline-color .2s ease;
  margin-top: 2px;
}

.form-consent__box::after{
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .15s ease;
}

.form-consent input:checked + .form-consent__box{
  background: var(--primary);
  border-color: var(--primary);
}

.form-consent input:checked + .form-consent__box::after{
  transform: rotate(-45deg) scale(1);
}

.form-consent input:focus-visible + .form-consent__box{
  outline: 2px solid var(--primary-soft);
  outline-offset: 2px;
}

.form-consent__text{
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.form-consent__text a{
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.form-consent__text a:hover{
  border-bottom-color: currentColor;
}

/* ---- Unified validation (all fields) ---- */

.form-field{ position: relative; }

.form-error{
  display: none;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: #C0392B;
}

.form-field.is-error .form-error{ display: block; }

.form-field.is-error input,
.form-field.is-error textarea{
  border-color: #E54848;
  background: #FFF5F5;
}

.form-field.is-error input:focus,
.form-field.is-error textarea:focus{
  outline: 2px solid rgba(229,72,72,.18);
  outline-offset: 2px;
}

.form-field.is-error .form-consent__box{
  border-color: #E54848;
  background: #FFF5F5;
}

.form-field.is-error .form-consent__text{
  color: #C0392B;
}

/* ---- Responsive ---- */

@media (max-width: 960px){
  #contact.contact-combined{
    min-height: auto;
    display: block;
    padding: 32px 0;
  }

  .contact-grid{
    grid-template-columns: 1fr;
  }

  .form-grid--contact{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   17) Footer (обычный)
   ========================================================= */

.site-footer {
  background-color: #050814;
  color: #B4BCD2;
  padding: 20px 0 26px;
  font-size: 13px;
}

.site-footer .shell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* add to your CSS */

/* Form alerts (success/error) */
.form-alert{
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
}
.form-alert--success{
  border-color: rgba(34, 197, 94, .35);
  background: rgba(34, 197, 94, .08);
  color: #166534;
}
.form-alert--error{
  border-color: rgba(229, 72, 72, .35);
  background: rgba(229, 72, 72, .08);
  color: #7f1d1d;
}

/* e-mail: allow wrapping (prevents ellipsis) */
.vcard-row--email .vcard-name{
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* =========================================================
   17.1) FOOTER — passport (compact premium)
   ========================================================= */

.site-footer--passport{
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 36px 0 14px;
}

/* head */
.footer-passport-head{
  display: grid;
  gap: 6px;
}

.footer-passport-name{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.18;
}

.footer-passport-role{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* thick rule */
.footer-passport-rule{
  height: 2px;
  background: var(--ink);
  opacity: .9;
  margin: 6px 0 10px;
  border-radius: 2px;
}

/* grid */
.footer-passport-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.5fr;
  gap: 16px;
  align-items: start;
}

.fp-block{
  min-width: 0;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

/* kv */
.fp-kv{
  display: grid;
  gap: 8px;
}

.fp-row{
  display: grid;
  grid-template-columns: 1.1fr .9fr; /* ключ/значение */
  align-items: start;
}

.fp-block--mid .fp-row{
  grid-template-columns: 100px 1fr;
}

.fp-k{
  font-size: 12px;
  color: var(--ink);
  opacity: .85;
  line-height: 1.5;
}

.fp-v{
  font-size: 12px;
  color: var(--ink);
  opacity: .92;
  line-height: 1.5;
  word-break: break-word;
}

/* right text */
.fp-legal{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.fp-legal p{ margin: 0 0 12px; }

/* bottom bar */
.footer-bottom--compact{
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-mini{
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.footer-mini__link{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-mini__link:hover{
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.footer-mini__sep{ opacity: .55; }

/* первая строка реквизитов — одна “ячейка” */
.fp-row--full{
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.fp-row--full .fp-v{
  font-weight: 600;
  line-height: 1.45;
}

/* responsive */
@media (max-width: 980px){
  .footer-passport-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .fp-row{
    grid-template-columns: 1fr;
  }
  .fp-block{
    padding-left: 12px;
  }
}

/* =========================================================
   18) Global responsive (общие брейкпоинты)
   ========================================================= */

@media (max-width: 960px) {
  .about-flex { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }

  .services-grid { grid-template-columns: 1fr; }

  .workflow-steps { grid-template-columns: 1fr 1fr; }

  .form-grid { grid-template-columns: 1fr; }
  .form-grid textarea { grid-column: span 1; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header__inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .workflow-steps { grid-template-columns: 1fr; }

  .form-grid--lite { grid-template-columns: 1fr; }
  .form-grid--contact { grid-template-columns: 1fr; }

  .contact-form__submit{
    flex-direction: column;
    align-items: stretch;
  }

  .vcard-row{ grid-template-columns: 40px 1fr; }
  .vcard-action{ display: none; }
}
/* =========================
   Responsive — финальная доводка
   ========================= */

/* 0) базовые мелочи */
body{ -webkit-text-size-adjust: 100%; }
.site{ overflow-x: clip; }

/* 1) контейнер: чуть меньше боковые поля на узких экранах */
@media (max-width: 420px){
  .shell{ padding: 0 16px; }
}

/* 2) hero: комфортнее на мобиле */
@media (max-width: 640px){
  .hero.hero--photo.hero--brand-right{ padding: 28px 0 34px; }

  .hero.hero--photo.hero--brand-right::before{
    /* фокусируем фото чуть ближе к центру, чтобы лицо/объект не уходил за край */
    background-position: 35% center;
  }

  .hero.hero--photo.hero--brand-right .hero-brandline__name,
  .hero.hero--photo.hero--brand-right .hero-brandline__role{
    font-size: 12px;
  }

  .hero.hero--photo.hero--brand-right .hero-content{
    padding: 18px 16px 16px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
  }

 .hero.hero--photo.hero--brand-right .hero-title{
    font-size: 28px;
    line-height: 1.12;
    max-width: none;
  }


  .hero.hero--photo.hero--brand-right .subtitle{
    font-size: 14px;
  }

  .hero.hero--photo.hero--brand-right .hero-actions{
    width: 100%;
  }

  .hero.hero--photo.hero--brand-right .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }
}

/* 3) карточные сетки: чтобы элементы растягивались по высоте */
.when-needed .grid,
.services-grid,
.workflow-steps,
.contact-grid{
  align-items: stretch;
}
.when-card,
.service-card,
.workflow-step,
.contact-form,
.contact-card{
  height: 100%;
}

/* 4) services: 3 колонки на очень широких экранах (по желанию) */
@media (min-width: 1280px){
  .services-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 5) контактная визитка: удобнее нажимать пальцем */
@media (max-width: 640px){
  .vcard-row{ padding: 12px 12px; }
  .vcard-ico{ width: 42px; height: 42px; }
  .vcard-name{ font-size: 14px; }
  .vcard-meta{ font-size: 12px; }
}

/* 6) hover-эффекты на тач-устройствах: без “дергания” */
@media (hover: none){
  .btn:hover,
  .when-card:hover,
  .service-card--premium:hover,
  .workflow--premium .workflow-step:hover,
  .workflow--axis .workflow-step:hover,
  .vcard-row:hover{
    transform: none;
  }
}
/* ABOUT — mobile: photo centered */
@media (max-width: 960px){
  .about-flex{
    justify-items: center;
  }

  .about-photo{
    max-width: 320px;
    width: 100%;
    margin: 0 auto
    justify-self: center;
  }

  .about-photo__frame{
    margin: 0 auto; 
  }
}
/* ABOUT — mobile: center metrics */
@media (max-width: 960px){
  .about-metrics{
    justify-items: center;
    text-align: center;
  }

  .metric{
    width: 100%;
    max-width: 320px;
    padding: 12px 0;
    text-align: center;
  }

  .metric:not(:first-child){
    border-top: 1px solid rgba(217, 222, 234, 0.9);
    border-left: none;
  }

  .metric__val{
    justify-content: center;
  }
}
@media (max-width: 960px){
  .contact-card{
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px;
  }

  .contact-options{
    width: 100%;
  }
}

.hero.hero--photo.hero--brand-right .hero-brandline{
  margin: 0 0 12px; /* вернуть вертикальный отступ */
  width: fit-content;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(217,222,234,0.70);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(10,18,35,0.06);
}


.hero.hero--photo.hero--brand-right .hero-brandline__name{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .10em;
  color: rgba(12,18,31,0.92);
}

.hero.hero--photo.hero--brand-right .hero-brandline__role{
  font-size: 13px;
  color: rgba(12,18,31,0.62);
}
@media (max-width: 640px){
  .hero.hero--photo.hero--brand-right .hero-brandline{
    width: 100%;
    max-width: none;
    box-sizing: border-box;

    /* чтобы плашка шла "по ширине окна", но не прилипала к краям */
    margin: 0 0 10px;
    padding: 10px 12px;

    border-radius: 14px; /* можно 12px, если хочешь чуть строже */
    justify-self: stretch;
  }
}
/* =========================================================
   Policy page
   ========================================================= */

.policy { padding: 44px 0; }
.policy-doc { max-width: 980px; margin: 0 auto; }

.policy-head{
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.policy-title{
  margin: 0 0 10px;
  font-size: clamp(26px, 3.1vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.policy-meta{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.policy-doc h2{
  margin-top: 26px;
  font-size: 20px;
  line-height: 1.25;
}

.policy-doc p{ margin: 0 0 0.9em; }

.policy-doc ul{
  margin: 0 0 1em;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.policy-doc li{ line-height: 1.65; margin-left: 2em;}

.policy-doc a{
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 640px){
  .policy { padding: 28px 0; }
  .policy-title{ font-size: 24px; }
  .policy-doc h2{ font-size: 18px; }
}
.policy-obf{
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  text-decoration: none;
}

.policy-obf__label{
  color: var(--muted);
}

.policy-obf__value{
  font-weight: 700;
}

.policy-obf:hover .policy-obf__value{
  text-decoration: underline;
}

.policy-obf.is-revealed{
  cursor: text;
}
.obf-inline{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.obf-inline:hover{ opacity: .9; }




/* inline obfuscated email/phone in text */
.obf-inline{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.obf-inline::after{
  content: "показать";
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1.2;
}

.obf-inline:hover{
  border-bottom-style: solid;
  opacity: .95;
}

.obf-inline:focus-visible{
  outline: 3px solid rgba(30, 98, 255, .25);
  outline-offset: 3px;
  border-radius: 6px;
}

/* after reveal: normal email look */
.obf-inline.is-revealed{
  color: inherit;
  border-bottom: 0;
  font-weight: 600;
  cursor: text;
}
.obf-inline.is-revealed::after{ content: ""; border: 0; padding: 0; }

/* make it look nicer inside policy typography */
.policy-doc .obf-inline{ margin: 0 2px; }

/* consent: separate policy line */
.form-consent__policy{
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.form-consent__policy a{
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.form-consent__policy a:hover{
  color: var(--primary-dark);
}

.hero.hero--photo.hero--brand-right .hero-title{
  margin: 0 0 12px;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.12;
  font-weight: 620;
  letter-spacing: -0.015em;
  max-width: 26ch;
}
.hero.hero--photo.hero--brand-right{
  min-height: 100vh;   /* фолбэк */
}
/* HERO: вертикальное центрирование содержимого */
.hero.hero--photo.hero--brand-right{
  position: relative;      /* важно для ::before */
  min-height: 100vh;       /* фолбэк */
  min-height: 100svh;      /* корректнее на мобилках */
  display: flex;
  align-items: center;     /* центр по вертикали */
  padding: 0;              /* чтобы центр был “чистым” */
}

/* если нужен безопасный отступ на маленьких экранах — включи вместо padding:0
.hero.hero--photo.hero--brand-right{
  padding: clamp(24px, 6vh, 84px) 0;
  box-sizing: border-box;
}
*/

.hero.hero--photo.hero--brand-right::before{
  content:"";
  position:absolute;
  inset:0;
  z-index: 0;
  /* твой background оставляем как есть */
}

.hero.hero--photo.hero--brand-right .shell{
  position: relative;
  z-index: 2;              /* поверх фона */
  width: 100%;
}

