/* ==========================================================================
   Лендинг «Приветствие» (.amb-wl) — вставляется в страницу блоком
   «Произвольный HTML». Подключается из inc/custom.php только на страницах,
   где в контенте есть класс amb-wl.
   Корневой элемент дополнительно несёт класс wp-block-ambassador2026-welcome:
   правила .entry-content в assets/style.css исключают такие блоки через :not(),
   поэтому типографика контента сюда не протекает.
   Все селекторы начинаются с .amb-wl — на остальные блоки темы не влияют.
   ========================================================================== */

.amb-wl {
    --wl-ink: #000;
    --wl-text: #1a1b1f;
    --wl-muted: #5d5e63;
    --wl-accent: #3c7c79;
    --wl-accent-soft: rgba(60, 124, 121, 0.12);
    --wl-line: #e3e2e7;
    --wl-surface: #f4f3f8;
    --wl-card: #fff;
    --wl-radius: 1rem;
    --wl-radius-sm: 0.75rem;
    --wl-gap: 16px;
    color: var(--wl-text);
    display: flex;
    flex-direction: column;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    gap: 64px;
    line-height: 1.6;
}

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

.amb-wl :is(h1, h2, h3, h4, p, ul, ol, figure) {
    margin: 0;
}

.amb-wl :is(h1, h2, h3, h4) {
    color: var(--wl-ink);
    font-family: inherit;
    text-wrap: balance;
}

.amb-wl h1 {
    font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.amb-wl h2 {
    font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.amb-wl h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.amb-wl p {
    text-wrap: pretty;
}

.amb-wl a {
    color: inherit;
    text-decoration: none;
}

.amb-wl img {
    display: block;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    width: 100%;
}

.amb-wl .material-symbols-outlined {
    font-size: 1.5rem;
    line-height: 1;
}

/* ---------- Общие элементы ---------- */

.amb-wl-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-margin-top: 96px;
}

.amb-wl-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 46rem;
}

.amb-wl-eyebrow {
    align-items: center;
    color: var(--wl-accent);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 8px;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.amb-wl-lead {
    color: var(--wl-muted);
    font-size: 1.125rem;
    line-height: 1.55;
}

.amb-wl-muted {
    color: var(--wl-muted);
}

.amb-wl-note {
    color: var(--wl-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.amb-wl-note a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.amb-wl-card {
    background: var(--wl-card);
    border: 1px solid var(--wl-line);
    border-radius: var(--wl-radius);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.amb-wl-card--soft {
    background: var(--wl-surface);
    border-color: transparent;
}

.amb-wl-grid {
    display: grid;
    gap: var(--wl-gap);
    grid-template-columns: 1fr;
}

.amb-wl-grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .amb-wl-grid--2,
    .amb-wl-grid--3,
    .amb-wl-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .amb-wl-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .amb-wl-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Две колонки: текст + фото */
.amb-wl-split {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .amb-wl-split {
        align-items: center;
        gap: 48px;
        grid-template-columns: 1fr 1fr;
    }

    .amb-wl-split--rev > :first-child {
        order: 2;
    }
}

.amb-wl-split > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.amb-wl-photo {
    aspect-ratio: 4 / 3;
    background: var(--wl-surface);
    border-radius: var(--wl-radius);
    overflow: hidden;
}

.amb-wl-photo--wide {
    aspect-ratio: 16 / 9;
}

.amb-wl-icon {
    align-items: center;
    background: var(--wl-accent-soft);
    border-radius: 9999px;
    color: var(--wl-accent);
    display: inline-flex;
    flex: none;
    height: 44px;
    justify-content: center;
    width: 44px;
}

/* Кнопки */
.amb-wl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amb-wl-btn {
    align-items: center;
    background: var(--wl-ink);
    border: 1px solid var(--wl-ink);
    border-radius: 9999px;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.9375rem;
    font-weight: 500;
    gap: 8px;
    justify-content: center;
    letter-spacing: 0.01em;
    line-height: 1.2;
    min-height: 48px;
    padding: 12px 24px;
    text-align: center;
    transition: opacity 0.2s, transform 0.2s, background-color 0.2s;
}

.amb-wl-btn:hover {
    opacity: 0.88;
}

.amb-wl-btn:active {
    transform: scale(0.97);
}

.amb-wl-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

.amb-wl-btn--ghost {
    background: transparent;
    border-color: var(--wl-line);
    color: var(--wl-ink) !important;
}

.amb-wl-btn--ghost:hover {
    background: var(--wl-surface);
    opacity: 1;
}

.amb-wl-btn--light {
    background: #fff;
    border-color: #fff;
    color: var(--wl-ink) !important;
}

.amb-wl-btn--outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff !important;
}

@media (max-width: 479px) {
    .amb-wl-actions .amb-wl-btn {
        width: 100%;
    }
}

/* Нумерованные шаги */
.amb-wl-steps {
    counter-reset: wl-step;
    display: grid;
    gap: var(--wl-gap);
    list-style: none;
    padding: 0;
}

@media (min-width: 900px) {
    .amb-wl-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.amb-wl-steps > li {
    counter-increment: wl-step;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.amb-wl-steps > li::before {
    align-items: center;
    background: var(--wl-ink);
    border-radius: 9999px;
    color: #fff;
    content: counter(wl-step);
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 600;
    height: 32px;
    justify-content: center;
    margin-bottom: 4px;
    width: 32px;
}

/* Список с галочками */
.amb-wl-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.amb-wl-checks > li {
    margin: 0;
    padding-left: 32px;
    position: relative;
}

.amb-wl-checks > li::before {
    color: var(--wl-accent);
    content: "check_circle";
    font-family: "Material Symbols Outlined";
    font-size: 1.25rem;
    left: 0;
    line-height: 1.5rem;
    position: absolute;
    top: 0;
}

/* ---------- 1. Приветствие ---------- */

.amb-wl-hero {
    border-radius: 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 560px;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

@media (min-width: 768px) {
    .amb-wl-hero {
        min-height: 620px;
        padding: 48px;
    }
}

.amb-wl-hero__media {
    inset: 0;
    position: absolute;
}

.amb-wl-hero__media::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.72) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.amb-wl-hero__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 44rem;
    position: relative;
}

.amb-wl-hero h1 {
    color: #fff;
}

.amb-wl-hero .amb-wl-eyebrow {
    color: #fff;
    opacity: 0.85;
}

.amb-wl-hero .amb-wl-lead {
    color: rgba(255, 255, 255, 0.88);
}

.amb-wl-hero .amb-wl-actions {
    margin-top: 8px;
}

/* ---------- 2. Контакты ---------- */

.amb-wl-contact {
    align-items: flex-start;
    flex-direction: row;
    gap: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.amb-wl-contact:hover {
    border-color: var(--wl-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.amb-wl-contact__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.amb-wl-contact__label {
    color: var(--wl-muted);
    font-size: 0.875rem;
    line-height: 1.35;
}

.amb-wl-contact__phone {
    color: var(--wl-ink);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    white-space: nowrap;
}

.amb-wl-badge {
    align-self: flex-start;
    background: var(--wl-accent-soft);
    border-radius: 9999px;
    color: var(--wl-accent);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 6px 10px;
}

/* ---------- 3. Соцсети ---------- */

.amb-wl-social {
    align-items: flex-start;
    background: var(--wl-surface);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
}

@media (min-width: 900px) {
    .amb-wl-social {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        padding: 40px 48px;
    }
}

.amb-wl-social__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 36rem;
}

.amb-wl-social .amb-wl-actions {
    flex: none;
}

/* ---------- 4. Реферальная программа ---------- */

.amb-wl-dark {
    background: var(--wl-ink);
    border-radius: 1.5rem;
    color: rgba(255, 255, 255, 0.86);
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px 24px;
}

@media (min-width: 768px) {
    .amb-wl-dark {
        padding: 48px;
    }
}

.amb-wl-dark :is(h2, h3) {
    color: #fff;
}

.amb-wl-dark .amb-wl-eyebrow {
    color: #7fc4c0;
}

.amb-wl-dark .amb-wl-lead,
.amb-wl-dark .amb-wl-muted,
.amb-wl-dark .amb-wl-note {
    color: rgba(255, 255, 255, 0.66);
}

.amb-wl-dark .amb-wl-steps > li::before {
    background: #fff;
    color: var(--wl-ink);
}

.amb-wl-dark .amb-wl-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.amb-wl-amount {
    color: #fff;
    font-size: clamp(2.5rem, 1.6rem + 4vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}

.amb-wl-amount small {
    font-size: 0.45em;
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.7;
    vertical-align: 0.6em;
}

.amb-wl-offer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amb-wl-offer__split {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.amb-wl-offer__split div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amb-wl-offer__sum {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.amb-wl-offer__who {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.875rem;
    line-height: 1.35;
}

.amb-wl-tip {
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    gap: 12px;
    padding-top: 24px;
}

.amb-wl-tip .material-symbols-outlined {
    color: #7fc4c0;
}

/* ---------- 5. Отделка ---------- */

.amb-wl-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.amb-wl-gallery > :first-child {
    aspect-ratio: 16 / 9;
    grid-column: 1 / -1;
}

.amb-wl-gallery > * {
    aspect-ratio: 1 / 1;
    background: var(--wl-surface);
    border-radius: var(--wl-radius-sm);
    overflow: hidden;
}

@media (min-width: 900px) {
    .amb-wl-gallery {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .amb-wl-gallery > :first-child {
        aspect-ratio: auto;
        grid-column: auto;
        grid-row: span 2;
    }
}

.amb-wl-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
}

.amb-wl-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amb-wl-stat b {
    color: var(--wl-ink);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.amb-wl-stat span {
    color: var(--wl-muted);
    font-size: 0.875rem;
    line-height: 1.35;
}

.amb-wl-partner {
    background: var(--wl-surface);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
}

@media (min-width: 768px) {
    .amb-wl-partner {
        padding: 40px 48px;
    }
}

.amb-wl-gift {
    align-items: flex-start;
    border-top: 1px solid var(--wl-line);
    display: flex;
    gap: 16px;
    padding-top: 24px;
}

/* ---------- 6. Апартаменты ---------- */

.amb-wl-usecase {
    border-left: 3px solid var(--wl-accent);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 16px;
}

/* ---------- 8. Кубанский ---------- */

.amb-wl-feature {
    border-radius: 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 460px;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

@media (min-width: 768px) {
    .amb-wl-feature {
        padding: 48px;
    }
}

.amb-wl-feature .amb-wl-hero__body {
    max-width: 38rem;
}

.amb-wl-feature :is(h2, h3) {
    color: #fff;
}

.amb-wl-feature .amb-wl-eyebrow {
    color: #fff;
    opacity: 0.85;
}

.amb-wl-feature .amb-wl-lead {
    color: rgba(255, 255, 255, 0.88);
}

.amb-wl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.amb-wl-tags li {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    margin: 0;
    padding: 8px 12px;
}

/* ---------- 9. География ---------- */

.amb-wl-city {
    align-items: center;
    flex-direction: row;
    gap: 12px;
}

@media (max-width: 639px) {
    .amb-wl-grid--4 {
        gap: 8px;
    }

    .amb-wl-city {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
}

.amb-wl-city b {
    color: var(--wl-ink);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ---------- 10. Юридическая информация ---------- */

.amb-wl-legal {
    border-top: 1px solid var(--wl-line);
    color: var(--wl-muted);
    font-size: 0.75rem;
    line-height: 1.55;
    padding-top: 24px;
}

.amb-wl-legal summary {
    align-items: center;
    color: var(--wl-muted);
    cursor: pointer;
    display: flex;
    font-size: 0.8125rem;
    font-weight: 600;
    gap: 8px;
    list-style: none;
}

.amb-wl-legal summary::-webkit-details-marker {
    display: none;
}

.amb-wl-legal summary::after {
    content: "expand_more";
    font-family: "Material Symbols Outlined";
    font-size: 1.25rem;
    font-weight: 400;
    transition: transform 0.2s;
}

.amb-wl-legal[open] summary::after {
    transform: rotate(180deg);
}

.amb-wl-legal__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
}

.amb-wl-legal h4 {
    color: var(--wl-text);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 8px;
}

.amb-wl-legal ol {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: decimal;
    padding-left: 1.25rem;
}

.amb-wl-legal li {
    margin: 0;
}

.amb-wl-legal a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.amb-wl-legal .amb-wl-disclaimer {
    border-top: 1px solid var(--wl-line);
    margin-top: 8px;
    padding-top: 12px;
}
