/* ==============================
   HERO — широкий: фото во всю ширину, текст слева на терракоте
   ============================== */
.hero {
    position: relative;
    min-height: min(calc(100vh - 80px), 620px);
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Терракотовый фон с тёплым свечением за фигурой (справа светлее, слева темнее — под текст) */
    background: radial-gradient(78% 120% at 74% 42%, #a86740 0%, #8c5334 52%, #7b492e 100%);
}

/* Вырезанная фигура (PNG без фона) — крупно, привязана к верху; сдвинута ближе к тексту */
.hero-photo {
    position: absolute;
    top: 2%;
    right: 8%;
    height: 136%;
    width: auto;
    z-index: 0;
    display: block;
    filter: drop-shadow(-30px 24px 40px rgba(60, 28, 16, 0.28));
}

/* Затемнение слева — читаемость светлого текста на терракоте */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(84, 40, 26, 0.80) 0%,
        rgba(92, 45, 30, 0.55) 30%,
        rgba(108, 56, 38, 0.12) 52%,
        transparent 66%
    );
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

/* Плавное появление элементов hero при загрузке */
.hero-text > * {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.25s; }
.hero-text > *:nth-child(3) { animation-delay: 0.4s; }
.hero-text > *:nth-child(4) { animation-delay: 0.55s; }
.hero-text > *:nth-child(5) { animation-delay: 0.7s; }

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Тег: дэш + имя/роль */
.hero-tag {
    display: inline-flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.tag-line {
    display: inline-block;
    width: 44px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--blue) 30%, var(--blue));
    margin-top: 12px;
    flex-shrink: 0;
}

.hero-tag-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-name {
    color: #fdf6ec;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.hero-role {
    color: rgba(253, 246, 236, 0.82);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    line-height: 1;
}

.hero-title {
    font-size: clamp(28px, 3.1vw, 42px);
    line-height: 1.18;
    margin-bottom: 26px;
    color: #fdf6ec;
    font-weight: 500;
    letter-spacing: -0.005em;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 1px 24px rgba(60, 26, 14, 0.28);
}

.hero-title em {
    color: #fdf6ec;
    font-style: italic;
    line-height: inherit;
    vertical-align: baseline;
    font-family: inherit;
}

/* Акцентная фраза «Не ваши.» — пыльно-голубым (холодный акцент на тёплой терракоте) */
.hero-title strong {
    color: #cdd8e5;
    font-weight: 500;
    white-space: nowrap;
}

/* Обе строки заголовка — блочные и неразрывные (перенос слов не рвёт смысл) */
.hero-title-l1,
.hero-title-l2 {
    display: block;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(253, 246, 236, 0.9);
    max-width: 500px;
    margin-bottom: 32px;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
    text-shadow: 0 1px 16px rgba(60, 26, 14, 0.22);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

/* Кнопки на терракоте: главная — кремовая, вторичная — светлая */
.hero .btn-primary {
    background: #fdf6ec;
    color: #7a3f2c;
    box-shadow: 0 12px 26px rgba(60, 28, 18, 0.32);
}

.hero .btn-primary:hover {
    background: #ffffff;
    color: #6a3423;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(60, 28, 18, 0.4);
}

.hero .btn-ghost {
    color: #fdf6ec;
}

.hero .btn-ghost:hover {
    color: #cdd8e5;
}

/* Статистика */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    align-items: start;
    max-width: 520px;
}

.stat {
    padding: 0 26px;
    position: relative;
}

.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }

.stat + .stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(255, 255, 255, 0.28);
}

.stat-num {
    font-family: var(--num);
    font-variant-numeric: tabular-nums;
    font-size: 32px;
    color: #fdf6ec;
    line-height: 1;
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 40px;
}

.stat-number {
    font-family: var(--num);
    font-variant-numeric: tabular-nums;
    font-size: 32px;
    line-height: 1;
}

.stat-label {
    font-size: 11.5px;
    color: rgba(253, 246, 236, 0.8);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
    .hero-text > * { animation: none; opacity: 1; transform: none; }
}
