/* ============================================================
   Premium House — страница «Дома в стиле Райт»
   Шрифты: Liberation Serif (Tinos) — заголовки, DejaVu Sans — body.
   Палитра, размеры — измерены прямо с источника.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400;1,700&subset=cyrillic&display=swap');

:root {
  --color-orange:     #F58F32;
  --color-red:        #F04F2F;
  --color-dark:       #242D33;
  --color-white:      #FFFFFF;
  --color-gray:       #A5ABB0;
  --color-light-gray: #F2F4F5;

  /* Очень лёгкий оранжевый градиент к белому — почти white с тёплым акцентом в углу */
  --bg-warm-card: linear-gradient(135deg, #FFFFFF 0%, #FFFAF3 60%, #FFF0DD 100%);
  --bg-warm-card-edge: rgba(245, 143, 50, 0.10);

  --bg-gradient:       linear-gradient(90deg, #F04F2F 0%, #F58F32 100%);
  --bg-gradient-hover: linear-gradient(90deg, #d4452a 0%, #e68d26 100%);

  /* Раздельные стеки: serif для заголовков, sans для body */
  --font-display: 'Liberation Serif', 'Tinos', 'Times New Roman', Times, serif;
  --font-body:    'DejaVu Sans', Verdana, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-main:    var(--font-body);

  --container-width: 1240px;
  --container-wide:  1800px;   /* для блоков, которые должны быть почти на весь экран */
  --container-padding: clamp(30px, 6vw, 60px);   /* увеличены в 1.5× для большего воздуха по краям */
  --container-padding-tight: clamp(16px, 1.6vw, 32px);
  --section-y: clamp(56px, 8vw, 96px);
  --gap: clamp(16px, 2vw, 24px);
  --gap-lg: clamp(20px, 2.5vw, 32px);

  --transition: all 0.3s ease;
}

/* ---------- Сбросы ---------- */
.ph-root, .ph-root *, .ph-root *::before, .ph-root *::after { box-sizing: border-box; }

.ph-root {
  font-family: var(--font-body);
  color: var(--color-dark);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ph-root img { max-width: 100%; height: auto; display: block; }
.ph-root a { color: inherit; text-decoration: none; font-family: inherit; }
.ph-root ul { margin: 0; padding: 0; list-style: none; }
.ph-root button { font-family: inherit; border: 0; background: none; cursor: pointer; padding: 0; }

/* Заголовки — serif */
.ph-root h1, .ph-root h2, .ph-root h3, .ph-root h4 {
  font-family: var(--font-display) !important;
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* Перебиваем Tilda Manrope */
.t-rec .ph-root,
.t-rec .ph-root * { font-family: var(--font-body) !important; }
.t-rec .ph-root h1,
.t-rec .ph-root h2,
.t-rec .ph-root h3,
.t-rec .ph-root h4 { font-family: var(--font-display) !important; }

/* Контейнер — только max-width и центрирование, БЕЗ padding.
   Боковые отступы держит .ph-section, чтобы не было двойного padding. */
.ph-container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
/* Расширенный контейнер — почти на всю ширину экрана (для hero) */
.ph-container--wide {
  max-width: var(--container-wide);
  padding: 0;
}

/* ============================================================
   ШАПКА (BLOCK 00)
   ============================================================ */
.ph-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(36, 45, 51, 0.4);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  transition: background var(--transition);
}
.ph-header.is-scrolled { background: rgba(36, 45, 51, 0.85); }

.ph-header__top { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.ph-header__top-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 10px var(--container-padding);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 66px;
}
.ph-header__logo { display: inline-flex; align-items: center; text-decoration: none !important; flex-shrink: 0; }
.ph-header__logo img { height: 45px; width: auto; display: block; }

.ph-header__contacts-group {
  display: flex; align-items: center; gap: 28px; justify-content: center;
}
.ph-header__contact-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255, 255, 255, 0.82) !important; white-space: nowrap;
}
.ph-header__contact-item img { width: 14px; height: 14px; opacity: 0.78; flex-shrink: 0; }
.ph-header__contact-item a { color: rgba(255, 255, 255, 0.82) !important; transition: color var(--transition); }
.ph-header__contact-item a:hover { color: var(--color-orange) !important; }

.ph-header__socials { display: inline-flex; align-items: center; gap: 12px; }
.ph-header__socials a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}
.ph-header__socials a:hover { background: var(--bg-gradient); transform: translateY(-2px); }
.ph-header__socials img { width: 14px; height: 14px; filter: brightness(0) invert(1); }

.ph-header__cta-group { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.ph-header__phone {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 16px;
  color: var(--color-white) !important; white-space: nowrap;
  transition: color var(--transition);
}
.ph-header__phone:hover { color: var(--color-orange) !important; }

.ph-btn--callback {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  font-family: var(--font-body) !important;
  background: var(--bg-gradient) !important;
  color: var(--color-white) !important;
  border: 0; border-radius: 6px; white-space: nowrap;
  transition: var(--transition);
  text-decoration: none !important; cursor: pointer;
}
.ph-btn--callback:hover {
  background: var(--bg-gradient-hover) !important;
  color: var(--color-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 79, 47, 0.32);
}

.ph-header__bottom { background: transparent; }
.ph-header__bottom-inner {
  max-width: var(--container-width); margin: 0 auto;
  padding: 10px var(--container-padding); min-height: 60px;
  display: flex; align-items: center; justify-content: center;
}
.ph-header__nav { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: nowrap; }
.ph-header__nav a {
  position: relative; font-family: var(--font-body); font-weight: 600;
  font-size: 14px; color: var(--color-white) !important;
  white-space: nowrap; padding: 6px 0;
  transition: color var(--transition);
}
.ph-header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--bg-gradient);
  transform: scaleX(0); transition: transform var(--transition);
}
.ph-header__nav a:hover { color: var(--color-orange) !important; }
.ph-header__nav a:hover::after { transform: scaleX(1); }

.ph-burger {
  display: none; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 6px;
  background: transparent; cursor: pointer; position: relative; flex-shrink: 0;
}
.ph-burger span {
  position: absolute; left: 12px; right: 12px;
  height: 2px; background: var(--color-white);
  transition: var(--transition);
}
.ph-burger span:nth-child(1) { top: 14px; }
.ph-burger span:nth-child(2) { top: 21px; }
.ph-burger span:nth-child(3) { top: 28px; }
.ph-burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.ph-burger.is-open span:nth-child(2) { opacity: 0; }
.ph-burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .ph-header__contacts-group { display: none; }
  .ph-header__bottom { display: none; }
  .ph-header__nav {
    position: fixed; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: rgba(36, 45, 51, 0.96); backdrop-filter: blur(12px);
    padding: 24px var(--container-padding); gap: 16px;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: var(--transition);
  }
  .ph-header__nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .ph-burger { display: block; }
}
@media (max-width: 640px) {
  .ph-header__phone { display: none; }
  .ph-btn--callback { padding: 8px 14px; font-size: 13px; }
  .ph-header__logo img { height: 36px; }
}

/* ============================================================
   HERO (BLOCK 01)
   ============================================================ */
.ph-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  color: var(--color-white); background-color: var(--color-dark);
  background-image: url("assets/hero.jpg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
}
.ph-hero > .ph-container--wide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;   /* крошки сверху, layout снизу */
  padding: clamp(140px, 18vh, 200px) var(--container-padding-tight) clamp(48px, 7vh, 80px);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}
@media (max-height: 640px) and (orientation: landscape) {
  .ph-hero { min-height: auto; }
  .ph-hero > .ph-container--wide { min-height: auto; padding: 130px 0 50px; }
}
.ph-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(36, 45, 51, 0.50) 0%,
    rgba(36, 45, 51, 0.30) 30%,
    rgba(36, 45, 51, 0.55) 100%);
  z-index: 0; pointer-events: none;
}
.ph-hero .ph-container { position: relative; z-index: 1; width: 100%; }

.ph-hero__layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 40px; align-items: center;
}
@media (max-width: 1024px) { .ph-hero__layout { grid-template-columns: 1fr; } }

.ph-hero__crumbs { font-size: 13px; color: rgba(255, 255, 255, 0.78); margin: 0 0 clamp(28px, 4vh, 44px) !important; animation: phFadeUp 0.7s ease-out 0s both; }
.ph-hero__crumbs a { color: rgba(255, 255, 255, 0.78) !important; transition: color var(--transition); }
.ph-hero__crumbs a:hover { color: var(--color-orange) !important; }
.ph-hero__crumbs .ph-sep { margin: 0 8px; opacity: 0.5; }

.ph-hero__title {
  font-family: var(--font-display) !important;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.1;
  color: var(--color-white) !important;
  margin: 0 0 clamp(20px, 2.4vh, 28px) !important;
  text-transform: uppercase; white-space: pre-line;
  animation: phFadeUp 0.9s ease-out 0.1s both;
}

.ph-hero__subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--color-white);
  margin: 0 0 clamp(36px, 5vh, 56px) !important;
  line-height: 1.3;
  animation: phFadeUp 0.9s ease-out 0.2s both;
}

.ph-hero__features {
  list-style: none !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, max-content);
  gap: clamp(16px, 2vh, 22px) clamp(28px, 3vw, 56px);
  /* !important — Tilda глобально сбрасывает margin у всех ul до 0 */
  margin: 0 0 clamp(56px, 8vh, 88px) !important;
  animation: phFadeUp 0.9s ease-out 0.3s both;
}
.ph-hero__features .ph-hero__feature {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 0 22px !important;
}
@media (max-width: 640px) { .ph-hero__features { grid-template-columns: 1fr; } }
.ph-hero__feature {
  position: relative; padding-left: 22px; font-size: 16px;
  color: var(--color-white); font-weight: 500;
}
.ph-hero__feature::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--bg-gradient);
}

.ph-btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 16px 32px;
  font-family: var(--font-body) !important; font-weight: 700; font-size: 16px;
  color: var(--color-white) !important; background: var(--bg-gradient) !important;
  border: 0; border-radius: 8px; text-decoration: none !important; cursor: pointer;
  position: relative; overflow: hidden; transition: var(--transition);
  animation: phFadeUp 0.9s ease-out 0.4s both;
  box-shadow: 0 6px 18px rgba(240, 79, 47, 0.24);
}
.ph-btn-cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: translateX(-120%); transition: transform 0.7s ease-out;
}
.ph-btn-cta:hover {
  background: var(--bg-gradient-hover) !important; color: var(--color-white) !important;
  transform: translateY(-2px); box-shadow: 0 10px 28px rgba(240, 79, 47, 0.36);
}
.ph-btn-cta:hover::before { transform: translateX(120%); }
.ph-btn-cta__arrow { display: inline-block; transition: transform var(--transition); }
.ph-btn-cta:hover .ph-btn-cta__arrow { transform: translateX(4px); }

.ph-hero__calcs {
  display: flex; flex-direction: column; gap: 16px;
  animation: phFadeUp 0.9s ease-out 0.5s both;
}
@media (max-width: 1024px) { .ph-hero__calcs { flex-direction: row; flex-wrap: wrap; } }
.ph-calc-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px;
  padding: 18px 22px; width: 240px;
  color: var(--color-white) !important; text-decoration: none !important;
  transition: var(--transition);
}
.ph-calc-card:hover {
  background: rgba(255, 255, 255, 0.12); transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28); color: var(--color-white) !important;
}
.ph-calc-card__icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-gradient);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ph-calc-card__icon img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.ph-calc-card__text {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  color: var(--color-white) !important; line-height: 1.3;
}
.ph-calc-card__text small {
  display: block; font-weight: 400; font-size: 13px;
  color: rgba(255, 255, 255, 0.78); margin-top: 2px;
}

@keyframes phFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   SECTION общая
   ============================================================ */
.ph-section {
  width: 100%;
  padding: var(--section-y) var(--container-padding);
  background: var(--color-light-gray);
}
.ph-section--white { background: var(--color-white); }
.ph-section--gray  { background: #F2F4F5; }

/* Декоративный SVG-фон с источника — точные параметры расположения
   и прозрачности. Используется на блоке About (Block 02). */
.ph-section--lines {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}
.ph-section--lines::before {
  content: "";
  position: absolute;
  /* Растягиваем SVG на 200% размера секции и смещаем за правый-нижний угол
     — как в источнике (top 50%, left 50%, right -50%, bottom -50%). */
  top: 50%; left: 50%; right: -50%; bottom: -50%;
  background-image: url("assets/background.svg");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: 50% 50%;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
.ph-section--lines > .ph-container { position: relative; z-index: 1; }

/* ============================================================
   BLOCK 02 — двух-колоночный layout
   Левая: тёплая оранжевая градиентная карточка (как в референсе)
   Правая: оригинальное фото дома + интерактивные hot-spot маркеры
   ============================================================ */
.ph-about {
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap-lg);
  align-items: stretch;
}
@media (max-width: 960px) { .ph-about { grid-template-columns: 1fr; } }

/* Левая карточка — очень лёгкий тёплый градиент, почти белый */
.ph-card {
  position: relative;
  background: var(--bg-warm-card);
  border-radius: 20px;
  padding: clamp(32px, 3.5vw, 56px) clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(36, 45, 51, 0.04), 0 8px 32px rgba(36, 45, 51, 0.05);
  border: 1px solid var(--bg-warm-card-edge);
}
/* Едва заметный тёплый блик в правом верхнем углу */
.ph-card::before {
  content: "";
  position: absolute;
  top: -160px; right: -160px;
  width: 360px; height: 360px;
  background: radial-gradient(circle at center, rgba(245, 143, 50, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.ph-card > * { position: relative; z-index: 1; }

.ph-about__title {
  font-family: var(--font-display) !important;
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin: 0 0 20px;
  /* без max-width — даём заголовку растянуться, чтобы умещался в 2 строки */
}

.ph-about__lead {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(15px, 1.1vw, 16px);
  color: var(--color-dark);
  margin: 0 0 16px;
  line-height: 1.5;
}

.ph-about__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14.5px;
  color: #5a626a;
  margin: 0 0 12px;
  line-height: 1.65;
}
.ph-about__text:last-of-type { margin-bottom: 0; }

.ph-about__cta {
  margin-top: auto;
  padding-top: 32px;
}
.ph-about__cta .ph-btn-cta { padding: 14px 26px; font-size: 14px; }

/* ============================================================
   Правая карточка — фото дома на всю площадь карточки
   Ken Burns + clip-path reveal + минималистичные hot-spot маркеры
   ============================================================ */
.ph-photo-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-dark);
}

.ph-photo-stage__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: 22% center;   /* смещение кадра влево, чтобы виден был основной объём дома */
  display: block;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  transform: scale(1.04);
  transition:
    clip-path 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-clip-path 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 6s ease-out;
}
.ph-photo-stage.is-revealed .ph-photo-stage__img {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
  transform: scale(1);
  animation: phKenBurns 32s ease-in-out 1.8s infinite alternate;
}
@keyframes phKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.04) translate(-1.2%, -0.6%); }
}

/* Hot-spot маркеры — оранжевая точка в полупрозрачном белом кружке */
.ph-hotspot {
  position: absolute;
  z-index: 2;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: scale(0.6);
  padding: 0;
  transition:
    opacity 0.5s ease-out,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    width 0.25s ease,
    height 0.25s ease;
}
/* Точка-сердечник внутри маркера */
.ph-hotspot::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.ph-photo-stage.is-revealed .ph-hotspot { opacity: 1; transform: scale(1); }
.ph-photo-stage.is-revealed .ph-hotspot:nth-of-type(1) { transition-delay: 1.1s; }
.ph-photo-stage.is-revealed .ph-hotspot:nth-of-type(2) { transition-delay: 1.3s; }
.ph-photo-stage.is-revealed .ph-hotspot:nth-of-type(3) { transition-delay: 1.5s; }
.ph-photo-stage.is-revealed .ph-hotspot:nth-of-type(4) { transition-delay: 1.7s; }

.ph-hotspot:hover {
  width: 34px; height: 34px;
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 18px rgba(245, 143, 50, 0.45);
}
.ph-hotspot:hover::after {
  background: var(--color-red);
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
}

/* Подсказка над маркером */
.ph-hotspot__tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  letter-spacing: 0.01em;
}
.ph-hotspot__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-dark);
}
.ph-hotspot:hover .ph-hotspot__tip,
.ph-hotspot:focus .ph-hotspot__tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 960px) {
  .ph-photo-stage { min-height: 380px; }
}
@media (max-width: 640px) {
  .ph-photo-stage { min-height: 280px; border-radius: 16px; }
  .ph-hotspot { width: 22px; height: 22px; }
  .ph-hotspot::after { width: 7px; height: 7px; }
  .ph-hotspot:hover { width: 28px; height: 28px; }
  .ph-hotspot__tip { font-size: 11px; padding: 6px 10px; }
}

/* ============================================================
   BLOCK 03 — «Почему выбирают нас» — 4 карточки со счётчиками
   Серый фон секции + белые карточки с парящими тенями + анимация
   счётчика от 0 при появлении в viewport.
   ============================================================ */
.ph-stats-head {
  text-align: center;
  margin: 0 auto clamp(28px, 3vw, 48px);
  max-width: 920px;
}
.ph-stats__title {
  font-family: var(--font-display) !important;
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin: 0;
  white-space: pre-line;
}

.ph-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.5vw, 24px);
}
@media (max-width: 1024px) { .ph-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ph-stats { grid-template-columns: 1fr; } }

.ph-stat-card {
  position: relative;
  /* Полоска сверху сделана как background-image — обрезается border-radius
     автоматически (а не вылезает за углы как ::before делал). */
  background:
    linear-gradient(90deg, #F04F2F 0%, #F58F32 100%) top left / 0 3px no-repeat,
    var(--color-white);
  border-radius: 20px;
  padding: clamp(28px, 2.4vw, 40px);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow:
    0 1px 2px rgba(36, 45, 51, 0.04),
    0 8px 32px rgba(36, 45, 51, 0.06);
  transition: transform var(--transition),
              box-shadow var(--transition),
              background-size 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ph-stat-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(36, 45, 51, 0.08),
    0 18px 48px rgba(36, 45, 51, 0.12);
  background:
    linear-gradient(90deg, #F04F2F 0%, #F58F32 100%) top left / 100% 3px no-repeat,
    var(--color-white);
}

.ph-stat-card__num {
  font-family: var(--font-display) !important;
  font-weight: 700;
  font-size: clamp(48px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  /* Сплошной бренд-оранж — единый цвет на всех числах независимо от длины
     (градиент даёт разный визуальный результат на коротком "5" и длинном "1162"). */
  color: var(--color-orange);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  margin: 0 0 16px;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.ph-stat-card__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(15px, 1.1vw, 16px);
  color: var(--color-dark);
  margin: 0 0 12px;
  line-height: 1.35;
  min-height: 2.7em;
}
.ph-stat-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13.5px;
  color: #5a626a;
  line-height: 1.6;
  margin: 0;
}

.ph-stats__cta {
  margin-top: clamp(28px, 3vw, 48px);
  display: flex;
  justify-content: center;
}

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