/* ============================================================
   TEAM.CSS  —  страница team.html
   Все компоненты с префиксом tm-
   ============================================================ */

/* ─── Хиро ──────────────────────────────────────────────── */
.tm-hero {
    position: relative;
    height: clamp(300px, 42vw, 540px);
    overflow: hidden;
    display: flex; align-items: flex-end;
}
.tm-hero__bg {
    position: absolute; inset: 0;
}
.tm-hero__bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.tm-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(17,20,15,.92) 0%, rgba(17,20,15,.35) 60%, transparent 100%);
}
.tm-hero__inner {
    position: relative; z-index: 1;
    width: 100%; padding: 0 var(--pad-x, 56px) 52px;
    max-width: var(--container, 1280px); margin: 0 auto;
}
.tm-hero__eyebrow {
    font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent, #D9D2C5); opacity: .8; margin-bottom: 8px;
}
.tm-hero__h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 300; font-style: italic;
    color: var(--text, #F7F4EE); line-height: 1.15; margin: 0 0 14px;
}
.tm-hero__sub {
    font-size: .92rem; color: rgba(247,244,238,.75); max-width: 560px; margin: 0;
}

/* ─── О нас — сплит ─────────────────────────────────────── */
.tm-about {
    background: var(--bg-deep, #11140F);
    padding: 72px var(--pad-x, 56px);
    border-bottom: 1px solid var(--line, rgba(247,244,238,.18));
}
.tm-about__inner {
    max-width: var(--container, 1280px); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.tm-about__eyebrow {
    font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent, #D9D2C5); opacity: .65; margin-bottom: 16px;
}
.tm-about__h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 300; font-style: italic;
    color: var(--text, #F7F4EE); line-height: 1.2; margin: 0 0 20px;
}
.tm-about__text {
    font-size: .9rem; color: var(--muted, rgba(247,244,238,.65));
    line-height: 1.8; margin: 0 0 14px;
}
.tm-about__text:last-child { margin-bottom: 0; }
.tm-about__text strong { color: var(--text, #F7F4EE); }

.tm-about__stats {
    display: flex; gap: 32px; margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line, rgba(247,244,238,.18));
}
.tm-stat__num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; font-style: italic;
    color: var(--text, #F7F4EE); line-height: 1; display: block; margin-bottom: 4px;
}
.tm-stat__label {
    font-size: .75rem; color: var(--muted, rgba(247,244,238,.65));
    text-transform: uppercase; letter-spacing: .07em;
}

.tm-about__photo {
    border-radius: 8px; overflow: hidden;
    border: 1px solid var(--line, rgba(247,244,238,.18));
    aspect-ratio: 4/3;
}
.tm-about__photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ─── Гиды ───────────────────────────────────────────────── */
.tm-guides {
    background: var(--bg, #1A1F1C);
    padding: 72px var(--pad-x, 56px);
}
.tm-guides__inner { max-width: var(--container, 1280px); margin: 0 auto; }

.tm-section-header {
    text-align: center; margin-bottom: 48px;
}
.tm-section-header__eyebrow {
    font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent, #D9D2C5); opacity: .65; margin-bottom: 10px;
}
.tm-section-header__h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 300; font-style: italic;
    color: var(--text, #F7F4EE); margin: 0 0 10px;
}
.tm-section-header__sub {
    font-size: .88rem; color: var(--muted, rgba(247,244,238,.65));
    max-width: 620px; margin: 0 auto; line-height: 1.7;
}

.tm-guides__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.tm-guide-card {
    background: #1e2520;
    border: 1px solid var(--line, rgba(247,244,238,.18));
    border-radius: 10px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.tm-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.tm-guide-card__photo {
    width: 100%; aspect-ratio: 4/5; object-fit: cover;
    object-position: top; display: block;
}
.tm-guide-card__body {
    padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.tm-guide-card__name {
    font-size: 1.15rem; font-weight: 700; color: var(--text, #F7F4EE); margin: 0;
}
.tm-guide-card__role {
    font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent, #D9D2C5); opacity: .75;
}
.tm-guide-card__bio {
    font-size: .85rem; color: var(--muted, rgba(247,244,238,.65));
    line-height: 1.65; margin: 0; flex: 1;
}
.tm-guide-card__tags {
    display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px;
}
.tm-guide-card__tag {
    font-size: .7rem; color: var(--muted, rgba(247,244,238,.65));
    background: rgba(247,244,238,.07); border: 1px solid rgba(247,244,238,.15);
    padding: 3px 9px; border-radius: 3px;
}
.tm-guide-card__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    margin-top: 8px; padding: 11px 16px; border-radius: 6px;
    background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.3);
    color: #25d366; font-size: .84rem; font-weight: 600;
    text-decoration: none; transition: background .15s;
}
.tm-guide-card__btn:hover { background: rgba(37,211,102,.2); }

/* ─── Преимущества ───────────────────────────────────────── */
.tm-advantages {
    background: var(--bg-deep, #11140F);
    padding: 72px var(--pad-x, 56px);
    border-top: 1px solid var(--line, rgba(247,244,238,.18));
    border-bottom: 1px solid var(--line, rgba(247,244,238,.18));
}
.tm-advantages__inner { max-width: var(--container, 1280px); margin: 0 auto; }
.tm-advantages__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    margin-top: 48px;
}
.tm-adv-card {
    padding: 28px 24px;
    background: rgba(247,244,238,.03);
    border: 1px solid var(--line, rgba(247,244,238,.18));
    border-radius: 8px;
}
.tm-adv-card__icon {
    width: 40px; height: 40px; color: var(--accent, #D9D2C5); margin-bottom: 16px;
}
.tm-adv-card__icon svg { width: 100%; height: 100%; }
.tm-adv-card__title {
    font-size: .95rem; font-weight: 700; color: var(--text, #F7F4EE);
    margin: 0 0 10px;
}
.tm-adv-card__text {
    font-size: .84rem; color: var(--muted, rgba(247,244,238,.65)); line-height: 1.65; margin: 0;
}

/* ─── Контакты ───────────────────────────────────────────── */
.tm-contacts {
    background: var(--bg, #1A1F1C);
    padding: 72px var(--pad-x, 56px);
}
.tm-contacts__inner { max-width: var(--container, 1280px); margin: 0 auto; }
.tm-contacts__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-top: 48px;
}
.tm-contact-card {
    background: #1e2520;
    border: 1px solid var(--line, rgba(247,244,238,.18));
    border-radius: 10px; padding: 28px 26px;
}
.tm-contact-card__icon {
    width: 36px; height: 36px; color: var(--accent, #D9D2C5); margin-bottom: 16px;
}
.tm-contact-card__icon svg { width: 100%; height: 100%; }
.tm-contact-card__title {
    font-size: .95rem; font-weight: 700; color: var(--text, #F7F4EE); margin: 0 0 10px;
}
.tm-contact-card__text {
    font-size: .84rem; color: var(--muted, rgba(247,244,238,.65));
    line-height: 1.7; margin: 0 0 12px;
}
.tm-contact-card__link {
    display: block; font-size: .88rem; color: var(--accent, #D9D2C5);
    text-decoration: none; margin-bottom: 6px; transition: opacity .15s;
}
.tm-contact-card__link:hover { opacity: .75; }
.tm-contact-card__disclaimer {
    font-size: .72rem; color: var(--muted, rgba(247,244,238,.65));
    margin-top: 10px; line-height: 1.5; opacity: .7;
}

/* ─── Партнёрство — CTA ──────────────────────────────────── */
.tm-partner {
    background: var(--bg-deep, #11140F);
    padding: 72px var(--pad-x, 56px);
    border-top: 1px solid var(--line, rgba(247,244,238,.18));
    border-bottom: 1px solid var(--line, rgba(247,244,238,.18));
}
.tm-partner__inner {
    max-width: 780px; margin: 0 auto; text-align: center;
}
.tm-partner__h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; font-style: italic;
    color: var(--text, #F7F4EE); margin: 0 0 14px;
}
.tm-partner__text {
    font-size: .9rem; color: var(--muted, rgba(247,244,238,.65));
    line-height: 1.75; margin: 0 0 28px; max-width: 620px; margin-left: auto; margin-right: auto;
}
.tm-partner__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 6px;
    background: var(--accent, #D9D2C5); color: var(--bg-deep, #11140F);
    font-weight: 700; font-size: .88rem; text-decoration: none;
    transition: opacity .15s;
}
.tm-partner__btn:hover { opacity: .85; }

/* ─── Отзывы — заглушка ─────────────────────────────────── */
.tm-reviews {
    background: var(--bg, #1A1F1C);
    padding: 72px var(--pad-x, 56px);
}
.tm-reviews__inner { max-width: var(--container, 1280px); margin: 0 auto; }
.tm-reviews__placeholder {
    margin-top: 40px;
    min-height: 180px;
    border: 1px dashed var(--line, rgba(247,244,238,.18));
    border-radius: 8px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px;
    color: var(--muted, rgba(247,244,238,.65));
    font-size: .85rem; text-align: center; padding: 32px;
}
.tm-reviews__placeholder svg { opacity: .35; }
.tm-reviews__placeholder code {
    font-size: .78rem; background: rgba(247,244,238,.06);
    padding: 4px 10px; border-radius: 4px; font-family: monospace;
    color: var(--accent, #D9D2C5);
}

/* ─── Реквизиты ──────────────────────────────────────────── */
.tm-legal {
    background: var(--bg-deep, #11140F);
    padding: 64px var(--pad-x, 56px) 80px;
    border-top: 1px solid var(--line, rgba(247,244,238,.18));
}
.tm-legal__inner { max-width: var(--container, 1280px); margin: 0 auto; }
.tm-legal__grid {
    margin-top: 40px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.tm-legal__row {
    display: grid; grid-template-columns: 220px 1fr; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line, rgba(247,244,238,.18));
    font-size: .85rem;
}
.tm-legal__row:nth-child(odd) { grid-column: 1; }
.tm-legal__row:nth-child(even) { grid-column: 2; }
/* fallback: stacked on small screens */
.tm-legal__key {
    color: var(--muted, rgba(247,244,238,.65)); font-size: .78rem;
}
.tm-legal__val { color: var(--text, #F7F4EE); }

/* ─── Адаптив ────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .tm-advantages__grid { grid-template-columns: repeat(2, 1fr); }
    .tm-guides__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .tm-about__inner { grid-template-columns: 1fr; gap: 36px; }
    .tm-about__photo { order: -1; aspect-ratio: 16/9; }
    .tm-contacts__grid { grid-template-columns: 1fr; }
    .tm-legal__grid { grid-template-columns: 1fr; }
    .tm-legal__row { grid-column: 1 !important; }
}

@media (max-width: 640px) {
    .tm-hero,
    .tm-about,
    .tm-guides,
    .tm-advantages,
    .tm-contacts,
    .tm-partner,
    .tm-reviews,
    .tm-legal {
        padding-left: 16px;
        padding-right: 16px;
    }
    .tm-guides__grid { grid-template-columns: 1fr; }
    .tm-advantages__grid { grid-template-columns: 1fr; }
    .tm-about__stats { gap: 20px; flex-wrap: wrap; }
}

/* ─── Автопарк (Как мы ездим) ────────────────────────────── */
.tp-v3-transfer{
    padding: 56px 0;
    background:#11140F;
}
.tp-v3-transfer__head{
    max-width:1200px; margin:0 auto 28px; padding:0 24px;
}
.tp-v3-transfer__eyebrow{
    color:#C8A659; font-size:13px; letter-spacing:.18em; text-transform:uppercase; margin:0 0 8px;
}
.tp-v3-transfer__h2{
    font-size:clamp(22px, 2.8vw, 32px); color:#fff; line-height:1.2; margin:0 0 10px;
    font-family: inherit;
}
.tp-v3-transfer__lead{
    color:#cfd2c9; font-size:15px; line-height:1.55; margin:0; max-width:680px;
}

/* Сетка: 3 авто */
.tp-v3-transfer__track{
    max-width:1200px; margin:0 auto; padding:0 24px;
    display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;
}
.tp-v3-transfer__card{
    background:#1A1D18; border-radius:14px; overflow:hidden;
    display:flex; flex-direction:column;
}
.tp-v3-transfer__photo{
    aspect-ratio: 4/3; overflow:hidden; background:#0E1109;
}
.tp-v3-transfer__photo img{
    width:100%; height:100%; object-fit:cover; display:block;
}
.tp-v3-transfer__body{ padding:16px 18px 20px; }
.tp-v3-transfer__name{
    color:#fff; font-size:16px; font-weight:600; margin:0 0 4px;
}
.tp-v3-transfer__sub{
    color:#9fa298; font-size:13px; line-height:1.45; margin:0;
}

/* Мобильный слайдер */
@media (max-width:740px){
    .tp-v3-transfer{ padding:40px 0; }
    .tp-v3-transfer__track{
        display:flex; padding:0 16px;
        gap:12px;
        overflow-x:auto; scroll-snap-type:x mandatory;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }
    .tp-v3-transfer__track::-webkit-scrollbar{ display:none; }
    .tp-v3-transfer__card{
        flex:0 0 82%; scroll-snap-align:start;
    }
    .tp-v3-transfer__h2{ font-size:22px; }
    .tp-v3-transfer__lead{ display:none; }
}
.tp-v3-transfer__dots{
    display:none; gap:6px; justify-content:center; margin-top:16px;
}
.tp-v3-transfer__dots span{
    width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.25);
    transition:background .2s ease, width .2s ease;
}
.tp-v3-transfer__dots span.is-active{
    background:#C8A659; width:18px; border-radius:3px;
}
@media (max-width:740px){
    .tp-v3-transfer__dots{ display:flex; }
}
