/* Psychodium Design System — «Стать амбассадором» v1.18.0
 *
 * Structure: hero (offer + CTA | brand pants photo with the 20 % badge) ->
 * «Что вы получаете» (4 tiles) -> «Как стать амбассадором» (3 steps) ->
 * final CTA with the consent line. No ambassador cards (removed at
 * management's request). Same tokens as the catalogue (catalog-v1.css):
 * monochrome dark, light button with dark text, Source Code Pro labels only.
 */

/* ------------------------------------------------------------ host reset */

.pd-amb-v1-active #content,
.pd-amb-v1-active .site-content { background: #101113; }

.pd-amb-v1-active .site-content > .ast-container {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
}

.pd-amb-v1-active #primary,
.pd-amb-v1-active .content-area,
.pd-amb-v1-active .site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.pd-amb-v1-active .ast-breadcrumbs-wrapper,
.pd-amb-v1-active .entry-header { display: none !important; }

/* ---------------------------------------------------------------- tokens */

.pd-amb-v1 {
    --pd-bg: #101113;
    --pd-surface: #17181b;
    --pd-surface-2: #1d1e22;
    --pd-text: #f0f0ed;
    --pd-muted: #b4b4ae;
    --pd-subtle: #878781;
    --pd-line: #2d2f34;
    --pd-line-strong: #414349;
    --pd-accent: #f2f2ee;
    --pd-accent-ink: #111214;
    --pd-shell: 1220px;
    --pd-gutter: clamp(16px, 4vw, 44px);
    --pd-r-sm: 8px;
    --pd-r: 12px;
    --pd-mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    width: 100%;
    padding-bottom: clamp(56px, 8vw, 96px);
    background:
        radial-gradient(70% 28% at 80% 0%, rgba(255,255,255,.045), rgba(255,255,255,0) 58%),
        var(--pd-bg);
    color: var(--pd-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.pd-amb-v1,
.pd-amb-v1 *,
.pd-amb-v1 *::before,
.pd-amb-v1 *::after { box-sizing: border-box; }

.pd-amb-v1 h1,
.pd-amb-v1 h2,
.pd-amb-v1 h3,
.pd-amb-v1 p { color: inherit; font-family: inherit; }

.pd-amb-v1 ul,
.pd-amb-v1 ol { margin: 0; padding: 0; list-style: none; }
.pd-amb-v1 img { display: block; max-width: 100%; }

.pd-amb-v1 a:focus-visible {
    outline: 2px solid var(--pd-accent);
    outline-offset: 3px;
}

.pd-amb-shell {
    width: 100%;
    max-width: calc(var(--pd-shell) + var(--pd-gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--pd-gutter);
}

/* ------------------------------------------------------------------ hero */

.pd-amb-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }

.pd-amb-eyebrow {
    display: block;
    margin: 0 0 16px;
    color: var(--pd-subtle);
    font-family: var(--pd-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.pd-amb-hero h1 {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1;
    text-wrap: balance;
}

.pd-amb-lead {
    max-width: 52ch;
    margin: 20px 0 0;
    color: var(--pd-muted);
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.55;
}

.pd-amb-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 28px;
}

.pd-amb-v1 a.pd-amb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid var(--pd-accent);
    border-radius: var(--pd-r-sm);
    background: var(--pd-accent);
    color: var(--pd-accent-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color .14s ease, border-color .14s ease;
}

.pd-amb-v1 a.pd-amb-button:hover,
.pd-amb-v1 a.pd-amb-button:focus-visible { background: #fff; border-color: #fff; color: var(--pd-accent-ink); }

.pd-amb-note { color: var(--pd-subtle); font-size: 14px; }

/* ------------------------------------------------------------ hero grid */

.pd-amb-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.pd-amb-hero__visual {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: 16px;
    background: var(--pd-surface);
    aspect-ratio: 4 / 5;
    box-shadow: 0 30px 70px -40px rgba(0,0,0,.9);
}

.pd-amb-hero__img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.pd-amb-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16,17,19,0) 55%, rgba(16,17,19,.72) 100%);
    pointer-events: none;
}

.pd-amb-hero__badge {
    position: absolute;
    z-index: 1;
    left: 16px;
    bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: rgba(16,17,19,.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pd-amb-hero__badge strong {
    color: var(--pd-text);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
}

.pd-amb-hero__badge span { color: var(--pd-muted); font-size: 13px; line-height: 1.3; }

/* -------------------------------------------------------------- sections */

.pd-amb-benefits,
.pd-amb-steps { padding-top: clamp(40px, 6vw, 80px); }

.pd-amb-benefits h2,
.pd-amb-steps h2 {
    margin: 0 0 24px;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.pd-amb-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pd-amb-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 20px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r);
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 60%), var(--pd-surface);
}

.pd-amb-tile__icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--pd-line-strong);
    border-radius: 10px;
    color: var(--pd-text);
}

.pd-amb-tile h3,
.pd-amb-step h3 { margin: 4px 0 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.pd-amb-tile p,
.pd-amb-step p { margin: 0; color: var(--pd-muted); font-size: 15px; line-height: 1.55; }

.pd-amb-steps__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    counter-reset: none;
}

.pd-amb-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 20px 22px 0;
    border-top: 1px solid var(--pd-line-strong);
}

.pd-amb-step__num {
    color: var(--pd-subtle);
    font-family: var(--pd-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
}

/* --------------------------------------------------------------- final */

.pd-amb-final { padding-top: clamp(40px, 6vw, 72px); }

.pd-amb-final__panel {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r);
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 60%), var(--pd-surface);
}

.pd-amb-final__title { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.pd-amb-final__text { max-width: 56ch; margin: 10px 0 0; color: var(--pd-muted); }
.pd-amb-final .pd-amb-actions { margin-top: 22px; }

.pd-amb-consent { margin: 18px 0 0; color: var(--pd-subtle); font-size: 14px; }
.pd-amb-v1 .pd-amb-consent a { color: var(--pd-text); text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------- terms */

.pd-amb-hero--terms { padding-bottom: 32px; }
.pd-amb-hero--terms h1 { max-width: 22ch; font-size: clamp(32px, 4.6vw, 52px); }

.pd-amb-v1 a.pd-amb-back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--pd-subtle);
    font-size: 14px;
    text-decoration: none;
}

.pd-amb-v1 a.pd-amb-back:hover { color: var(--pd-text); }

.pd-amb-legal { max-width: 760px; color: var(--pd-muted); font-size: 16px; line-height: 1.7; }
.pd-amb-legal h2 { margin: 40px 0 12px; color: var(--pd-text); font-size: 21px; font-weight: 600; line-height: 1.3; }
.pd-amb-legal p { margin: 0 0 12px; }
.pd-amb-legal > p:first-child { color: var(--pd-text); }

/* ---------------------------------------------------------- breakpoints */

@media (max-width: 1023px) {
    .pd-amb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
    .pd-amb-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .pd-amb-hero__visual { aspect-ratio: 16 / 11; max-height: 420px; }
    .pd-amb-steps__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pd-amb-step { padding: 18px 0; }
}

@media (max-width: 599px) {
    .pd-amb-hero { padding-top: 32px; }
    .pd-amb-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .pd-amb-tile { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 16px; }
    .pd-amb-tile h3 { margin: 0; flex: 1 1 0; font-size: 17px; }
    .pd-amb-tile p { flex: 0 0 100%; font-size: 14px; }
    .pd-amb-hero__badge strong { font-size: 26px; }

    .pd-amb-v1 a.pd-amb-button { width: 100%; }
    .pd-amb-note { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-amb-v1 * { transition: none !important; }
}
