/*
 * Общий каркас лендинга almajob.kz.
 *
 * Токены — официальная палитра ALMA JOB (src/constants/theme.ts клиента):
 * фиолетовый ряд #57328C / #5F4299 / #9C89B7, зелёный #76B300 / #91C138,
 * бежевое полотно #f5f1e8 и тёплые нейтральные «Яблоневого сада».
 *
 * Здесь только вёрстка страницы. Анимация первого экрана у каждого варианта
 * своя и живёт в <style> внутри самого файла варианта — так три подачи
 * сравниваются без взаимного влияния.
 */

:root {
    --primary: #57328C;
    --primary-text: #5F4299;
    --primary-light: #9C89B7;
    --primary-bg: #F0ECF5;
    --green: #76B300;
    --green-accent: #91C138;
    --text: #333333;
    --text-muted: #7C7466;
    --text-faint: #9A9284;
    --line: #E7E0D2;
    --bg: #f5f1e8;
    --surface: #FFFFFF;

    --page: 1120px;
    --radius: 20px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--primary-text);
}

.shell {
    width: 100%;
    max-width: var(--page);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Шапка --------------------------------------------------------------- */

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
}

.wordmark {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--primary-text);
    text-transform: uppercase;
    text-decoration: none;
}

.wordmark span {
    color: var(--green);
}

.langs {
    display: flex;
    gap: 4px;
    font-size: 14px;
}

.langs a {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.langs a:hover {
    background: var(--primary-bg);
    color: var(--primary-text);
}

.langs a[aria-current='true'] {
    background: var(--primary);
    color: #fff;
}

/* --- Первый экран -------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 40px 0 72px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-accent);
    box-shadow: 0 0 0 4px rgba(145, 193, 56, 0.22);
}

h1 {
    margin: 20px 0 0;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary);
}

h1 em {
    font-style: normal;
    color: var(--green);
}

.lead {
    margin: 18px 0 0;
    max-width: 30em;
    font-size: clamp(17px, 2vw, 19px);
    color: var(--text-muted);
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(87, 50, 140, 0.75);
}

.btn-ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary-text);
}

.btn:hover {
    transform: translateY(-1px);
}

.stage {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
}

/* --- Блоки --------------------------------------------------------------- */

section {
    padding: 22px 0;
}

h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary);
}

.section-lead {
    margin: 0 0 26px;
    max-width: 46em;
    color: var(--text-muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
}

.card h3 {
    margin: 14px 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-text);
}

.card p {
    margin: 0;
    font-size: 15.5px;
    color: var(--text-muted);
}

.pip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-bg);
    color: var(--primary-text);
    font-size: 16px;
    font-weight: 700;
}

.card:nth-child(2) .pip {
    background: rgba(145, 193, 56, 0.16);
    color: var(--green);
}

.card .avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line);
}

/* --- Групповое фото ------------------------------------------------------- */

.people {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 30px 0 10px;
}

.people-figure {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 44px -28px rgba(51, 41, 66, 0.55);
}

.people-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 30%;
}

.people-figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(87, 50, 140, 0) 62%, rgba(42, 34, 51, 0.28) 100%);
    pointer-events: none;
}

.people-text h2 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .people {
        grid-template-columns: 1fr;
    }

    .people-figure {
        order: -1;
    }
}

.prose {
    max-width: 44em;
    color: var(--text-muted);
}

.prose h2 {
    margin-top: 34px;
}

.prose p {
    margin: 0 0 16px;
}

.prose strong {
    color: var(--text);
}

/* --- Подвал -------------------------------------------------------------- */

footer {
    margin-top: 40px;
    padding: 30px 0 44px;
    border-top: 1px solid var(--line);
    font-size: 14.5px;
    color: var(--text-faint);
}

.foot-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* --- Адаптив ------------------------------------------------------------- */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-bottom: 48px;
    }

    .hero > .stage {
        order: -1;
        max-width: 340px;
    }

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

/* Уважаем системную настройку: движение выключено — страница остаётся целой. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
