/* ═══════════════════════════════════════════
   СТРАНИЦЫ НОВОГО МЕНЮ: лояльность, инструкторы, бронирование,
   мерч, авиабилеты, страховка, сертификат, для компаний
   Шаблоны: templates/page-*.tpl, шапка — chunks/blocks/page-hero.tpl
═══════════════════════════════════════════ */

.pg-hero {
    padding: 9rem 0 3.5rem;
}
.pg-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-success);
    margin-bottom: 14px;
}
.pg-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.pg-lead {
    max-width: 720px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

.pg-section { padding: 3rem 0; }
.pg-section h2 {
    font-family: CoFo, sans-serif;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.pg-white { background: #fff; }

.pg-card {
    height: 100%;
    padding: 28px;
    border-radius: 20px;
    background: #fff;
}
.pg-white .pg-card { background: var(--color-body); }
.pg-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.pg-card p { margin: 0; color: #555; line-height: 1.6; }
.pg-card .pg-emoji {
    display: block;
    font-size: 2rem;
    margin-bottom: 14px;
}

.pg-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--color-mint);
    font-size: 12px;
    font-weight: 600;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 0;
    border-radius: 40px;
    background: var(--color-success);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.pg-btn:hover { background: #18a785; color: #fff; }
.pg-btn-outline {
    background: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
}
.pg-btn-outline:hover { background: var(--color-black); color: #fff; }

/* Шаги (бронирование, сертификат) */
.pg-steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
}
.pg-steps li {
    position: relative;
    counter-increment: step;
    padding: 0 0 28px 64px;
}
.pg-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-success);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pg-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 48px;
    bottom: 4px;
    left: 21px;
    width: 2px;
    background: var(--color-mint);
}
.pg-steps h3 { font-size: 1.15rem; font-weight: 700; margin: 8px 0 6px; }
.pg-steps p { margin: 0; color: #555; line-height: 1.6; }

/* Лестница мерча (лояльность) */
.pg-ladder {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}
.pg-ladder > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 16px;
    border-radius: 18px;
    background: var(--color-mint);
    min-height: calc(110px + var(--i) * 26px);
}
.pg-ladder b { font-size: 2rem; line-height: 1; }
.pg-ladder small { color: #555; font-size: 12px; margin-bottom: 6px; }
.pg-ladder span { font-weight: 700; font-size: 1.05rem; }
@media (max-width: 767.98px) {
    .pg-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pg-ladder > div { min-height: 120px; }
}

/* Подарочный сертификат */
.gift-card {
    position: relative;
    aspect-ratio: 1.6;
    max-width: 520px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 28px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .25), transparent 40%),
        linear-gradient(135deg, #20C19C 0%, #128a72 55%, #0d5e4f 100%);
    box-shadow: 0 30px 60px -20px rgba(13, 94, 79, .5);
    transform: rotate(-3deg);
    transition: transform .4s;
}
.gift-card:hover { transform: rotate(0); }
.gift-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 260px;
    height: 160px;
    background: rgba(255, 255, 255, .12);
    clip-path: polygon(0 100%, 35% 30%, 50% 55%, 70% 10%, 100% 100%);
}
.gift-card .gift-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.gift-card .gift-logo img { filter: brightness(0) invert(1); }
.gift-card .gift-title {
    position: absolute;
    left: 32px;
    bottom: 32px;
    z-index: 1;
}
.gift-card .gift-title small {
    display: block;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 12px;
    opacity: .85;
}
.gift-card .gift-title b {
    font-family: CoFo, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
}

.pg-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pg-amounts input { position: absolute; opacity: 0; pointer-events: none; }
.pg-amounts label {
    padding: 12px 20px;
    border: 2px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.pg-amounts input:checked + label {
    border-color: var(--color-success);
    background: #e8f8f3;
}

.pg-form {
    padding: 32px;
    border-radius: 24px;
    background: #fff;
}
.pg-form .form-control,
.pg-form .form-select {
    min-height: 52px;
    border-radius: 12px;
}
.pg-form label.pg-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}
.pg-ctype {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pg-ctype input { position: absolute; opacity: 0; pointer-events: none; }
.pg-ctype label {
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--color-gray-50);
    font-size: 14px;
    cursor: pointer;
}
.pg-ctype input:checked + label { background: var(--color-black); color: #fff; }

/* Кейсы (для компаний) */
.pg-case {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(160deg, #e9ecef, #d0e7d8);
    color: var(--color-black);
}
.pg-case .pg-badge { align-self: flex-start; margin-bottom: auto; background: #fff; }

/* Виджеты партнёров */
.pg-widget {
    min-height: 420px;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
}

/* Двухколоночная шапка (сертификат): заголовок меньше, чтобы не наезжал на карточку */
.pg-hero .col-lg-6 h1 {
    font-size: clamp(2rem, 3.4vw, 3rem);
    overflow-wrap: anywhere;
}

/* ═══ «Наша команда» (templates/team-new.tpl) ═══ */
.tm-hero { padding: 8rem 0 4rem; }
.tm-hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    line-height: 1.02;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.tm-intro { font-size: 1.05rem; line-height: 1.7; color: #555; }
.tm-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.tm-stats b { display: block; font-family: CoFo, sans-serif; font-size: 2rem; line-height: 1.1; color: var(--color-success); }
.tm-stats span { font-size: 13px; color: var(--color-muted); }
.tm-hero-photo {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 1100 / 760;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35);
}
.tm-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.tm-head { max-width: 640px; margin-bottom: 2rem; }
.tm-head p { color: #555; font-size: 1.05rem; line-height: 1.6; margin: 0; }

.tm-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: var(--color-body);
    color: inherit;
    text-decoration: none;
    transition: transform .3s, box-shadow .3s;
}
.tm-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .3); color: inherit; }
.tm-photo { aspect-ratio: 8 / 9; background: var(--color-mint); overflow: hidden; }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tm-card:hover .tm-photo img { transform: scale(1.04); }
.tm-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.tm-body h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.tm-role { font-size: 13px; color: var(--color-success); font-weight: 600; margin-bottom: 10px; }
.tm-body p {
    color: #555;
    font-size: .95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tm-more { margin-top: auto; font-weight: 600; color: var(--color-success); font-size: 14px; }

.tm-guide { display: block; color: inherit; text-decoration: none; }
.tm-guide-photo {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-mint);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tm-guide-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: filter .3s, transform .4s; }
.tm-guide:hover .tm-guide-photo img { filter: none; transform: scale(1.04); }
.tm-guide-photo span { font-family: CoFo, sans-serif; font-size: 3rem; color: #fff; }
.tm-guide h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.tm-guide:hover h3 { color: var(--color-success); }
.tm-guide .tm-role { margin-bottom: 0; }

.tm-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px;
    border-radius: 28px;
    background: var(--color-mint);
}
.tm-cta h2 { margin-bottom: 6px; }
.tm-cta p { margin: 0; color: #444; }

@media (max-width: 767.98px) {
    .tm-hero { padding-top: 6rem; }
    .tm-stats b { font-size: 1.5rem; }
    .tm-cta { padding: 28px; }
}
