/* ============================================================
   HERO SECTION — Variant C (Centered · Light)
   Подключить: wp_enqueue_style() в functions.php
   ============================================================ */

/* ---------- Шрифт ---------- */
/* playfair-display-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/playfair-display-v40-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* playfair-display-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/playfair-display-v40-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* dm-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/dm-sans-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



/* ---------- Переменные ---------- */
:root {
    --hero-bg:         #f7f6f2;
    --hero-bg-alt:     #eeecea;
    --hero-accent:     #3b3fa8;
    --hero-accent-alt: #5b60d6;
    --hero-text:       #0e0d1c;
    --hero-muted:      #6b6a7e;
    --hero-border:     rgba(0, 0, 0, 0.08);
    --hero-orb-a:      #8b8ee8;
    --hero-orb-b:      #3b3fa8;

    --hero-font-display: 'Playfair Display', Georgia, serif;
    --hero-font-body:    'DM Sans', system-ui, sans-serif;

    --hero-ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Секция ---------- */
.hero-section {
    margin-top: 80px;
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 24px 80px;
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

/* ---------- Декоративный фон ---------- */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Световые пятна */
.hero-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}
.hero-bg__orb--1 {
    width: 600px;
    height: 600px;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(91, 96, 214, 0.10) 0%, transparent 70%);
}
.hero-bg__orb--2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(59, 63, 168, 0.07) 0%, transparent 70%);
}
.hero-bg__orb--3 {
    width: 220px;
    height: 220px;
    top: 20%;
    right: 6%;
    background: radial-gradient(circle, rgba(139, 142, 232, 0.08) 0%, transparent 70%);
}

/* Тонкая сетка */
.hero-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%);
}

/* Плавающие фигуры */
.hero-bg__shapes { position: absolute; inset: 0; }

.shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(59, 63, 168, 0.12);
    animation: shapeFloat 12s ease-in-out infinite;
}
.shape-1 { width: 80px;  height: 80px;  top: 12%; left: 8%;   animation-delay: 0s;   animation-duration: 11s; }
.shape-2 { width: 50px;  height: 50px;  top: 60%; left: 4%;   animation-delay: 2s;   animation-duration: 14s; }
.shape-3 { width: 120px; height: 120px; top: 25%; right: 5%;  animation-delay: 1s;   animation-duration: 13s; border-radius: 30%; }
.shape-4 { width: 40px;  height: 40px;  top: 70%; right: 8%;  animation-delay: 3s;   animation-duration: 10s; }
.shape-5 { width: 65px;  height: 65px;  bottom: 20%; left: 15%; animation-delay: 4s; animation-duration: 15s; border-radius: 20%; }
.shape-6 { width: 30px;  height: 30px;  bottom: 30%; right: 18%; animation-delay: 1.5s; animation-duration: 9s; }

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: .6; }
    50%       { transform: translateY(-18px) rotate(6deg); opacity: 1; }
}

/* Частицы (JS наполняет) */
.particles-container {
    position: absolute;
    inset: 0;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 63, 168, 0.25);
    pointer-events: none;
}

/* ---------- Центральный контент ---------- */
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 760px;
    width: 100%;
}

/* Eyebrow */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hero-accent);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp .7s var(--hero-ease) .1s forwards;
}
.hero-eyebrow__dot {
    width: 4px;
    height: 4px;
    background: var(--hero-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Заголовок */
.hero-title {
    font-size: clamp(32px, 5.5vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--hero-text);
    letter-spacing: -1px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp .7s var(--hero-ease) .22s forwards;
}

/* Описание */
.hero-description {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--hero-muted);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp .7s var(--hero-ease) .34s forwards;
}

/* ---------- Кнопки ---------- */
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp .7s var(--hero-ease) .46s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 28px;
    font-family: var(--hero-font-body);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .2s var(--hero-ease), box-shadow .2s var(--hero-ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn:active { transform: scale(.97) !important; }

.btn--primary {
    background: var(--hero-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59,63,168,.25);
}
.btn--primary:hover {
    background: var(--hero-accent-alt);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,63,168,.3);
}

.btn--outline {
    background: transparent;
    color: var(--hero-text);
    border: 1px solid var(--hero-border);
}
.btn--outline:hover {
    background: rgba(0,0,0,.04);
    transform: translateY(-2px);
    border-color: rgba(59,63,168,.3);
}

/* ---------- Декоративный орб (фоновый, за текстом) ---------- */
.hero-orb-wrap {
    position: absolute;
    top: -60px;
    right: -80px;
    z-index: 0;
    opacity: .18;
    pointer-events: none;
}

.central-orb {
    position: relative;
    width: 220px;
    height: 220px;
    cursor: pointer;
}

.orb-core {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, var(--hero-orb-a), var(--hero-orb-b));
    animation: orbPulse 4s ease-in-out infinite;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--hero-accent);
    animation: orbRing 8s linear infinite;
}
.ring-1 { inset: 15px; opacity: .4; animation-duration: 7s; }
.ring-2 { inset: 0;    opacity: .2; animation-duration: 11s; animation-direction: reverse; }
.ring-3 { inset: -18px; opacity: .1; animation-duration: 15s; }

@keyframes orbPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}
@keyframes orbRing {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---------- Statsbar ---------- */
.statsbar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--hero-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
    width: 100%;
    
    opacity: 0;
    animation: fadeUp .7s var(--hero-ease) .58s forwards;
}

.statsbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 12px;
    transition: background .2s;
}
.statsbar__item:hover { background: #f9f8f6; }

.statsbar__sep {
    width: 1px;
    background: var(--hero-border);
    flex-shrink: 0;
    margin: 14px 0;
}

.statsbar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(59, 63, 168, 0.07);
    border-radius: 8px;
    margin-bottom: 4px;
}
.statsbar__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.statsbar__num {
   
    font-size: 22px;
    font-weight: 700;
    color: var(--hero-text);
    line-height: 1;
}

.statsbar__label {
    font-size: 14px;
    color: var(--hero-text);
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* ---------- Счётчик (JS) ---------- */
.counter { display: inline-block; }

/* ---------- Скролл-индикатор ---------- */
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s var(--hero-ease) 1s forwards;
}

.scroll-indicator__arrow {
    width: 16px;
    height: 16px;
    border-right: 1.5px solid var(--hero-accent);
    border-bottom: 1.5px solid var(--hero-accent);
    transform: rotate(45deg);
    animation: bounce 1.8s ease-in-out infinite;
}

.scroll-indicator__text {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hero-muted);
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%       { transform: rotate(45deg) translateY(5px); }
}

/* ---------- Анимации появления ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 768px) {
    .hero-section { padding: 80px 20px 100px; min-height: 100svh; }

    .hero-orb-wrap { display: none; }

    .statsbar {
        flex-wrap: wrap;
        border-radius: 12px;
    }
    .statsbar__item {
        flex: 1 1 calc(33.33% - 1px);
        min-width: 90px;
        padding: 14px 8px;
    }
    .statsbar__sep { display: none; }
    /* Рисуем границы через outline */
    .statsbar__item:not(:nth-child(3n)) {
        border-right: 1px solid var(--hero-border);
    }
    .statsbar__item:nth-child(n+4) {
        border-top: 1px solid var(--hero-border);
    }
}

@media (max-width: 480px) {
    .hero-title { letter-spacing: -.5px; }
    .statsbar__item { flex: 1 1 calc(50% - 1px); }
    .statsbar__num { font-size: 18px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
}