/* =============================================
   TEAM — /ekim/   stile «lusso» (01/10/2026, regole in contenuti/stile-lusso.md)
   La stessa maison di /junior: nero profondo, rosso del marchio come luce,
   bianco in trasparenza, filetti da 1 px, tipografia condensata grande (un solo
   peso: 700), numeri calmi. Si separa con linee e spazio, non con scatole.
   Movimento: SOLO transform e opacity; i colori cambiano di colpo.
   Senza JS tutto è visibile (l'ingresso lo aggiunge initTeam con .tm-rv/.is-in).
   «Riduci movimento» ferma tutto (in fondo al file).

   02/10/2026 — IL MAZZO. Ordine della pagina: hero compatto → filtri → mazzo di
   carte (scroll-snap orizzontale DENTRO il mazzo, mai la pagina) → scala dei gradi →
   scuola → «Първият свободен час». Una carta toccata fa un salto (translate+scale),
   si ribalta (rotateY 180°) e sul retro ha prezzo e «Запази». Niente sfocature sulle
   carte, niente ombre animate.
   ============================================= */
.tm-page {
  --tm-ink:    #0a0a0a;
  --tm-ink-2:  #0f0f0f;
  --tm-red:    var(--accent-red);         /* #B0111E: superfici, linee forti */
  --tm-red-hi: var(--accent-red-testo);   /* #fb3d48: testo e dettagli rossi su nero */
  --tm-t2:     rgba(255, 255, 255, .72);
  --tm-t3:     rgba(255, 255, 255, .56);
  --tm-line:   rgba(255, 255, 255, .12);
  --tm-line-2: rgba(255, 255, 255, .07);
  --tm-ease:   cubic-bezier(.16, 1, .3, 1);
  --tm-display: 'Barlow Condensed', sans-serif;
  --tm-gutter: 20px;
  --tm-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background: var(--tm-ink);
  overflow-x: clip;
}
.tm-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--tm-gutter); }
.tm-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--tm-grain); background-size: 180px 180px; opacity: .06;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.tm-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- testi comuni ---------- */
.tm-kicker, .tm-idx {
  display: flex; align-items: center; gap: 14px;
  font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .26em; text-transform: uppercase; color: var(--tm-t3);
}
.tm-kicker { color: rgba(255, 255, 255, .82); letter-spacing: .24em; }
.tm-kicker__dash { flex: none; width: 32px; height: 1px; background: var(--tm-red-hi); }
.tm-idx { margin-bottom: 22px; }
.tm-idx b { display: flex; align-items: center; gap: 14px; font: 700 14px/1 var(--tm-display); letter-spacing: .08em; color: var(--tm-red-hi); }
.tm-idx b::after { content: ''; width: 36px; height: 1px; background: rgba(255, 255, 255, .28); }
.tm-h2 {
  font-family: var(--tm-display); font-weight: 700; text-transform: uppercase; color: #fff;
  font-size: clamp(36px, 10.4vw, 76px); line-height: .92; letter-spacing: -.005em; text-wrap: balance;
}
.tm-h2 > span { display: block; }
.tm-h2__dim { color: var(--tm-t3); }
.tm-lead { max-width: 34em; margin-top: 18px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .68); }
.tm-note { margin-top: 20px; font-size: 13px; line-height: 1.55; color: var(--tm-t3); }
.tm-sec { position: relative; padding: 96px 0; }
.tm-head { margin-bottom: 36px; }

/* ---------- pulsanti: il pulsante unico dello studio .bs-cta (style.css, copia di .jr-cta).
   Qui solo ciò che è di questa pagina. ---------- */
button.bs-cta { border: 0; cursor: pointer; text-align: left; }
.tm-offer:hover .bs-cta__arrow svg { transform: translateX(3px); }

.tm-proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin-top: 14px; font-size: 12.5px; line-height: 1.4; color: var(--tm-t3);
}
.tm-proof__stars { color: #fff; font-size: 10px; letter-spacing: 3px; }

/* =============================================
   HERO — compatto: sul telefono, sotto, si vedono già i filtri e la prima carta
   ============================================= */
.tm-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-height) + 22px) 0 18px;
  background:
    radial-gradient(70% 60% at 82% 0%, rgba(176, 17, 30, .30), transparent 70%),
    var(--tm-ink);
}
.tm-hero__title {
  margin: 12px 0 0; font-family: var(--tm-display); font-weight: 700; text-transform: uppercase; color: #fff;
  font-size: clamp(30px, 8.6vw, 96px); line-height: .98; letter-spacing: -.005em;   /* .98: la «Д» che scende e la «Й» che sale non si toccano */
}
.tm-hero__l { display: block; animation: tm-up 1s var(--tm-ease) backwards; }
.tm-hero__l--red { color: var(--tm-red-hi); animation-delay: .12s; }
@keyframes tm-up { from { opacity: 0; transform: translateY(18px); } }
.tm-hero__sub {
  max-width: 34em; margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .68);
  animation: tm-up 1s var(--tm-ease) .24s backwards;
}
/* i due pulsanti dell'hero: sul telefono il mazzo è subito sotto (e «Първият свободен час»
   è l'ultima carta e la chiusura della pagina), quindi compaiono da 600 px in su */
.tm-hero__act { display: none; }
.tm-hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 12px;
  animation: tm-up 1s var(--tm-ease) .36s backwards;
}
.tm-hero .tm-proof { margin-top: 0; font-size: 12px; }
/* «5 нива · 13 души · 1 школа» in una riga piccola */
.tm-stats { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 4px; }
.tm-stats li { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.tm-stats li + li::before {
  content: ''; align-self: center; width: 3px; height: 3px; margin: 0 9px 0 4px; border-radius: 50%;
  background: rgba(255, 255, 255, .4);
}
.tm-stats strong { font: 700 15px/1 var(--tm-display); letter-spacing: .02em; color: #fff; }
.tm-stats span { font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--tm-t3); }

/* =============================================
   BARRA DEI FILTRI (resta in vista sotto l'intestazione mentre si guarda il mazzo)
   ============================================= */
.tm { position: relative; }
.tm-bar {
  position: sticky; top: var(--header-height); z-index: 20;
  background: rgba(10, 10, 10, .94); border-top: 1px solid var(--tm-line-2); border-bottom: 1px solid var(--tm-line-2);
  padding: 10px 0;
}
@media (max-height: 500px) { .tm-bar { position: static; } }   /* telefono girato */
.tm-filters { display: flex; gap: 8px; }
.tm-filter {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .16); color: var(--tm-t2);
  font: 600 12px/1 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: transform .3s var(--tm-ease);
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.tm-filter:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.tm-filter:active { transform: scale(.96); }
.tm-filter:focus-visible { outline: 2px solid var(--tm-red-hi); outline-offset: 2px; }
.tm-filter__n { font: 700 15px/1 var(--tm-display); letter-spacing: .02em; color: var(--tm-red-hi); }
.tm-filter.is-active { background: #fff; border-color: #fff; color: #0a0a0a; }
.tm-filter.is-active .tm-filter__n { color: var(--tm-red); }

/* =============================================
   LA DIDASCALIA — il capitolo della carta in vista (i quattro stanno nella stessa cella:
   l'altezza è quella del più lungo, niente salti quando cambia)
   ============================================= */
.tm-chapters { display: grid; padding-top: 16px; }
.tm-chapter {
  grid-area: 1 / 1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .3s ease, transform .45s var(--tm-ease), visibility 0s linear .3s;
}
.tm-chapter.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tm-chapter__no { font: 700 14px/1 var(--tm-display); letter-spacing: .08em; color: var(--tm-red-hi); }
.tm-chapter__t { font: 700 20px/1 var(--tm-display); text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.tm-chapter__l { grid-column: 2; margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--tm-t3); }

/* =============================================
   IL MAZZO — COVERFLOW (02/10/2026, ridisegno sull'immagine del proprietario).
   La carta al centro è grande, dritta e A COLORI; ai lati 2–3 colleghi per parte, sempre più
   piccoli e lontani, ruotati in 3D verso il centro, uno DIETRO l'altro, in BIANCO E NERO, più
   scuri e col nome sbiadito. Tutto segue il dito: initTeam legge scrollLeft a ogni fotogramma e
   scrive SOLO transform (la carta) e opacity (la copia a colori, l'ombra, la didascalia).
   Lo scorrimento resta quello nativo (scroll-snap, inerzia del telefono): le posizioni di
   aggancio sono quelle della fila «piatta», il coverflow è solo disegnato sopra.
   Senza JS: una fila piatta di carte a colori (com'era prima).
   ============================================= */
.tm-deck {
  --cw: min(62vw, 300px);   /* la carta al centro (le stesse misure di $slot_card in page-ekim.php) */
  --gap: 12px;
  --pad: calc((100% - var(--cw)) / 2);   /* la prima e l'ultima carta possono stare al centro */
  position: relative; display: flex; gap: var(--gap); margin: 0; padding: 26px var(--pad) 34px; list-style: none;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  /* la luce del palco: ferma dietro la carta al centro (lo sfondo di uno scorritore non scorre) */
  background: radial-gradient(min(60%, 420px) 46% at 50% 58%, rgba(176, 17, 30, .20), transparent 72%);
}
.tm-deck::-webkit-scrollbar { display: none; }
/* niente zoom col doppio tocco su iOS (02/10, sfidante): manipulation = pan-x + pan-y + pinch-zoom, cioè lo
   swipe orizzontale del mazzo e lo scorrimento verticale della pagina restano, sparisce solo il doppio tocco.
   Sul mazzo, su ogni sua carta e su ogni pulsante della pagina team. */
.tm-deck, .tm-deck > li, .tm-cf, .tm-card__hop, .tm-card__front, .tm-card__back, .tm-card button, .tm-card a, .tm-endcard,
.tm-deck-nav__btn, .tm-filter, .tm-cuts, .tm-gal button, .tm-gal__track, .tm-sheet button { touch-action: manipulation; }
/* La carta (li) resta FERMA dov'è nella fila: è il bersaglio dell'aggancio. Il coverflow sposta il
   suo involucro .tm-cf. Misurato in WebKit il 02/10/2026: con il transform sul li, l'aggancio usava
   la posizione trasformata e il mazzo si fermava fra due carte (scrollLeft 194 invece di 570). */
.tm-deck > li { position: relative; flex: 0 0 var(--cw); min-width: 0; scroll-snap-align: center; display: flex; }
.tm-deck > li[hidden] { display: none; }
.tm-cf { flex: 1 0 auto; display: flex; width: 100%; transform-origin: 50% 50%; }
/* coverflow acceso (initTeam, non con «riduci movimento»): ogni carta è uno strato che si sposta.
   03/10/2026: dove il browser conosce le animazioni legate allo scorrimento, transform e opacità li muove il
   compositore insieme al mazzo (initTeam, legaAlloScorrimento): niente più stili scritti a ogni fotogramma. */
.tm.is-cf .tm-cf { will-change: transform; }
/* l'accenno al primo arrivo: le carte scivolano di lato e tornano, una volta (initTeam, non con «riduci movimento») */
.tm-deck.is-hint .tm-card__hop { animation: tm-hint 1.05s cubic-bezier(.45, 0, .2, 1); }
@keyframes tm-hint {
  0%   { transform: none; }
  42%  { transform: translateX(-34px); }
  72%  { transform: translateX(5px); }
  100% { transform: none; }
}

/* ---------- LA CARTA ---------- */
.tm-card { container-type: inline-size; scroll-margin-top: calc(var(--header-height) + 150px); }
/* il salto: si alza e si ingrandisce un attimo (solo transform); dà la prospettiva al ribaltamento.
   Girata, la carta resta un poco sollevata (−6 px) con la sua ombra sotto. */
.tm-card__hop {
  flex: 1 0 auto; position: relative; display: flex; flex-direction: column; width: 100%;
  perspective: 1700px;
  transition: transform .5s var(--tm-ease);
}
.tm-card.is-flipped .tm-card__hop { transform: translateY(-6px); transition: none; }   /* all'andata niente transizione: in CSS una transizione vince sull'animazione e coprirebbe il salto (tm-hop finisce già a −6 px) */
.tm-card.is-hop .tm-card__hop { animation: tm-hop .62s var(--tm-ease); }
@keyframes tm-hop {
  0%   { transform: none; }
  30%  { transform: translateY(-14px) scale(1.04); }
  100% { transform: translateY(-6px); }
}
/* l'ombra sotto la carta sollevata: una macchia già sfumata (gradiente, niente filtro), solo opacity/transform */
.tm-card__lift {
  position: absolute; left: 10%; right: 10%; bottom: -16px; height: 34px; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
  opacity: 0; transform: scaleX(.7);
  transition: opacity .4s ease, transform .5s var(--tm-ease);
}
.tm-card.is-flipped .tm-card__lift { opacity: 1; transform: scaleX(1.06); }
.tm-card.is-hop .tm-card__lift { animation: tm-lift .62s var(--tm-ease); }
@keyframes tm-lift { 30% { opacity: .55; transform: scaleX(1.18) translateY(8px); } }

/* il ribaltamento (03/10/2026, il proprietario: «più fluido»): rotateY 180° in 0,5 s, ease-out con un piccolo
   rimbalzo — cubic-bezier(.4, 1, .4, 1.08): parte deciso, passa di taglio (90°) al 20,2 % del tempo, sfora di
   4° al 73 % e si posa a 0,5 s (prima: 0,72 s in ease-in-out, lento a partire). All'andata parte 0,14 s dopo il
   salto (la carta si alza, POI gira): di taglio a 0,14 + 0,101 = 0,24 s; al ritorno subito, di taglio a 0,10 s.
   La faccia che se ne va diventa invisibile esattamente in quei momenti (qui sotto). */
.tm-card__inner {
  flex: 1 0 auto; position: relative; z-index: 1; display: grid;
  min-height: calc(var(--cw) * 1.45);
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.4, 1, .4, 1.08);
}
.tm-card.is-flipped .tm-card__inner { transform: rotateY(180deg); transition-delay: .14s; }

/* le due facce stanno nella stessa cella. Lo scambio lo fa `visibility` ESATTAMENTE nel momento
   in cui la carta è di taglio (90°), non backface-visibility da sola: misurato in WebKit il
   02/10/2026, con la sola backface-visibility il retro compariva specchiato sopra il fronte
   durante la prima metà del giro. visibility non si anima: scatta. E da tastiera una faccia
   si raggiunge solo quando è davanti. */
.tm-card__front, .tm-card__back {
  grid-area: 1 / 1; position: relative; min-width: 0;
  border-radius: 10px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
/* al ritorno (verso il fronte) di taglio a 0,10 s; all'andata (verso il retro) a 0,24 s */
.tm-card__front { visibility: visible; transition: visibility 0s linear .1s; }
.tm-card__back  { visibility: hidden;  transition: visibility 0s linear .1s; transform: rotateY(180deg); }
.tm-card.is-flipped .tm-card__front { visibility: hidden;  transition: visibility 0s linear .24s; }
.tm-card.is-flipped .tm-card__back  { visibility: visible; transition: visibility 0s linear .24s; }

/* ---------- IL NEON (02/10/2026, il proprietario: «quando è rigirata, giri un neon rosso sempre dello
   stesso colore intorno alla scheda, proprio sul bordo»). Uno strato con un conic-gradient (una
   cometa rossa del marchio su un anello rosso tenue) che RUOTA con transform: rotate, in loop, un
   giro ogni 3 s; la maschera (padding + content-box esclusa) lo lascia vedere SOLO sui 2 px del
   bordo, angoli arrotondati compresi. Il bagliore attorno è un'ombra FERMA che compare in opacità.
   A carta dritta lo strato che gira non esiste (display: none, nessuna animazione, nessun costo);
   al ritorno .is-spegne lo tiene in moto mentre sfuma. Con «riduci movimento» è un bordo fisso. */
.tm-neon, .tm-glow {
  position: absolute; inset: -3px; z-index: 0; pointer-events: none; border-radius: 13px;
  opacity: 0; transition: opacity .3s ease;
}
/* due anelli con la stessa cometa: quello sottile (3 px, pieno) è il neon; quello largo (10 px, tenue)
   è il suo alone, che corre insieme a lui. Tutti e due mascherati: dentro la carta non disegnano nulla. */
.tm-neon {
  padding: 3px; overflow: hidden; isolation: isolate;
  background: rgba(251, 61, 72, .16);   /* l'anello tenue: la cometa ci corre sopra */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tm-neon--alone { inset: -11px; padding: 9px; border-radius: 21px; background: none; }
.tm-neon__spin {
  display: none; position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; z-index: -1;
  background: conic-gradient(from 0deg,
    rgba(251, 61, 72, 0) 0deg, rgba(251, 61, 72, 0) 210deg,
    rgba(251, 61, 72, .35) 290deg, rgba(251, 61, 72, .85) 335deg, #fb3d48 352deg, rgba(251, 61, 72, 0) 360deg);
  transform: translate(-50%, -50%) rotate(0deg);
}
.tm-neon--alone .tm-neon__spin { opacity: .38; }
.tm-glow { inset: 0; border-radius: 10px; box-shadow: 0 0 26px rgba(251, 61, 72, .16); }
.tm-card.is-flipped .tm-glow,
.tm-card.is-flipped .tm-neon { opacity: 1; transition: opacity .45s ease .5s; }   /* dopo il giro */
.tm-card.is-flipped .tm-neon__spin,
.tm-card.is-spegne .tm-neon__spin { display: block; animation: tm-neon 3s linear infinite; }
@keyframes tm-neon {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- davanti: la persona ---------- */
.tm-card__front {
  display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding: 0; margin: 0;
  border: 1px solid var(--tm-line); background: #0b0b0b; color: #fff; text-align: left; cursor: pointer;
  font: inherit; -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.tm-card--master .tm-card__front { border-color: rgba(251, 61, 72, .55); }
.tm-card__front:focus-visible { outline: 2px solid var(--tm-red-hi); outline-offset: 3px; }
.tm-card__photo { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.tm-card__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  /* il testo sta sul busto, mai sul volto: la sfumatura scura copre solo il terzo in basso */
  background: linear-gradient(to top, rgba(10, 10, 10, .94) 0%, rgba(10, 10, 10, .72) 22%, rgba(10, 10, 10, 0) 46%);
}
.tm-pic { position: absolute; inset: 0; display: block; }
.tm-pic--col { z-index: 1; }
/* la copia in bianco e nero: filtro FISSO (si disegna una volta), mai animato */
.tm-pic--bw  { z-index: 0; }
.tm-pic--bw .tm-img { filter: grayscale(1) contrast(1.06); }
.tm-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transition: transform 1.2s var(--tm-ease), opacity .6s ease;
}
.tm-img.is-pending { opacity: 0; }   /* solo per le foto che non erano ancora arrivate quando il JS è partito */
/* l'ombra delle carte lontane: nero sopra foto e distintivo, sotto il nome (che sbiadisce da sé) */
.tm-card__shade { position: absolute; inset: 0; z-index: 3; background: #050505; opacity: 0; pointer-events: none; }
.tm.is-cf .tm-pic--col, .tm.is-cf .tm-card__shade, .tm.is-cf .tm-card__cap { will-change: opacity; }

.tm-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 6px 10px 5px; border-radius: 999px;
  font: 600 12px/1 'Inter', sans-serif; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(10, 10, 10, .62); color: #fff; border: 1px solid rgba(255, 255, 255, .26);
}
.tm-badge--master { background: var(--tm-red); border-color: var(--tm-red); }
.tm-badge--senior { border-color: rgba(251, 61, 72, .75); }

.tm-card__cap { position: relative; z-index: 4; display: flex; flex-direction: column; padding: 0 16px 14px; }
.tm-card__name {
  display: block; font-family: var(--tm-display); font-weight: 700; text-transform: uppercase; color: #fff;
  line-height: .9; letter-spacing: .005em; white-space: nowrap;
  /* il nome sta SEMPRE in una riga: il corpo scende quanto serve (--len = lettere del nome) */
  font-size: min(42px, calc((100cqi - 32px) / (var(--len, 8) * .6)));
}
.tm-card__role { margin-top: 7px; font: 600 12px/1.35 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.tm-card--master .tm-card__role { color: var(--tm-red-hi); }
.tm-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.tm-card__spec {
  /* mai tagliata: se va su tre righe la didascalia sale (sul busto, non sul volto). Misurato il
     02/10: a 320 px in inglese «Also oversees the juniors’ work» perdeva la terza riga */
  min-width: 0; font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .82);
}
.tm-card__turn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1.2 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.tm-card__turn i {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(10, 10, 10, .4);
  transition: transform .6s var(--tm-ease);
}
.tm-card__turn svg, .tm-back__turn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* carta stretta (telefoni da 320–360): l'etichetta lascia solo il cerchio, così la specialità respira */
@container (max-width: 299px) {
  .tm-card__turn > span { display: none; }   /* non un testo ritagliato a 1 px: un testo nascosto dentro un pulsante resta un testo che trabocca */
}
@media (hover: hover) {
  .tm-card:not(.is-flipped):hover .tm-card__hop { transform: translateY(-4px); }
  .tm-card:hover .tm-img { transform: scale(1.04); }
  .tm-card:hover .tm-card__turn i { transform: rotate(180deg); }
}

/* il segnaposto finché manca la foto: luce rossa in alto, grana, l'iniziale incisa e la nota
   sotto l'iniziale (in fondo c'è il nome) */
.tm-mono {
  position: absolute; inset: 0; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-bottom: 34%;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(176, 17, 30, .34), transparent 72%),
    linear-gradient(180deg, #171717 0%, #0b0b0b 100%);
}
.tm-mono::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--tm-grain); background-size: 180px 180px; opacity: .07;
}
.tm-mono__l {
  font: 700 min(150px, 48cqi)/1 var(--tm-display);
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .42);
}
.tm-mono__note { font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--tm-t3); text-align: center; }

/* ---------- dietro: biografia, prezzo, «Запази», i tagli, il profilo ---------- */
.tm-card__back {
  display: flex; flex-direction: column; padding: 16px 16px 10px;
  border: 1px solid rgba(251, 61, 72, .5);
  background:
    radial-gradient(90% 46% at 100% 0%, rgba(176, 17, 30, .34), transparent 70%),
    linear-gradient(180deg, #151515 0%, #0e0e0e 100%);
  color: #fff;
}
.tm-card__back:focus { outline: none; }
.tm-card__back:focus-visible { outline: 2px solid var(--tm-red-hi); outline-offset: 3px; }
.tm-back__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm-back__top .tm-badge { position: static; }
.tm-back__no { font: 700 14px/1 var(--tm-display); letter-spacing: .1em; color: var(--tm-t3); }
.tm-back__name {
  margin-top: 12px; font-family: var(--tm-display); font-weight: 700; text-transform: uppercase; color: #fff;
  line-height: .9; white-space: nowrap; font-size: min(42px, calc((100cqi - 32px) / (var(--len, 8) * .6)));
}
.tm-back__role { margin-top: 6px; font: 600 12px/1.35 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--tm-red-hi); }
/* la biografia prende lo spazio che resta; se non entra, sfuma in basso e il pulsante diventa «Прочети още» */
.tm-back__bio { flex: 1 1 0; min-height: 4.6em; margin-top: 10px; overflow: hidden; }
.tm-back__bio.is-cut {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.9em), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 1.9em), transparent);
}
.tm-back__bio-t { font-size: 13px; line-height: 1.5; color: var(--tm-t2); }
.tm-back__line--soon { color: var(--tm-t3); }
.tm-back__spec { margin-top: 8px; border-top: 1px solid var(--tm-line); }
.tm-back__spec > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--tm-line); }
/* collaudo 04/10 (M11): a 12 px «ПОДСТРИГВАНЕ · 35 МИН» non entra su una riga accanto al prezzo: va a capo lui, il prezzo resta intero */
.tm-back__spec dt { flex: 1 1 auto; min-width: 0; font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-t3); }
.tm-back__spec dd { flex: none; font-size: 13px; line-height: 1.35; color: #fff; text-align: right; }
.tm-back__price { font: 700 30px/.8 var(--tm-display) !important; letter-spacing: -.01em; white-space: nowrap; }
.tm-back__price i { font-style: normal; color: var(--tm-red-hi); font-size: .5em; vertical-align: .7em; margin-left: .06em; }
.tm-back__guard { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--tm-t3); }
.tm-back__act { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
/* «Запази при …»: il pulsante rosso dello studio, compatto; il testo può andare su due righe */
.tm-book { width: 100%; }
.tm-book.bs-cta--compact { padding-left: 16px; gap: 8px; font-size: 12px; letter-spacing: .12em; }
.tm-card:not(.is-flipped) .bs-cta::after { animation: none; }   /* il riflesso passa solo sulla carta girata */
/* «Най-добрите ми подстрижки»: compare SOLO se ci sono le foto */
.tm-cuts {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin-top: 4px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); color: #fff;
  font: 600 12px/1.2 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; text-align: left; cursor: pointer;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--tm-ease);
}
.tm-cuts:active { transform: scale(.97); }
.tm-cuts:hover { border-color: rgba(255, 255, 255, .6); }
.tm-cuts:focus-visible { outline: 2px solid var(--tm-red-hi); outline-offset: 2px; }
.tm-cuts svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--tm-red-hi); stroke-width: 1.5; }
.tm-cuts__t { flex: 1; min-width: 0; }
.tm-cuts__n { flex: none; font: 700 15px/1 var(--tm-display); letter-spacing: .04em; color: var(--tm-red-hi); }
/* «Скоро онлайн»: NON è un pulsante (non si prenota). Un'etichetta con un punto vuoto. */
.tm-soon {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 2px;
  font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--tm-t3);
  cursor: default; user-select: none;
}
.tm-soon::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); }
.tm-back__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm-back__link {
  min-height: 46px; padding: 0 2px;   /* alto quanto il pulsante «rigira» accanto */ border: 0; background: none; cursor: pointer; color: #fff;
  font: 600 12px/1.2 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: rgba(251, 61, 72, .8); text-underline-offset: 5px; text-decoration-thickness: 1px;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.tm-back__link:hover { color: var(--tm-red-hi); }
.tm-back__turn {
  /* 46 e non 44: sotto il giro 3D il riquadro misurava 43,99 px (02/10, WebKit a 320/402/428) */
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); color: #fff;
  transition: transform .5s var(--tm-ease);
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.tm-back__turn:active { transform: scale(.92) rotate(-90deg); }
.tm-back__link:focus-visible, .tm-back__turn:focus-visible { outline: 2px solid var(--tm-red-hi); outline-offset: 3px; }

/* ---------- l'ultima carta: «Не знаеш кого да избереш?» ---------- */
.tm-endcard {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 22px 16px 16px; border-radius: 10px; color: #fff; text-decoration: none;
  border: 1px solid var(--tm-line);
  background: radial-gradient(90% 50% at 50% 100%, rgba(176, 17, 30, .3), transparent 72%), #101010;
  -webkit-tap-highlight-color: transparent;
}
.tm-endcard:hover, .tm-endcard:focus { color: #fff; }
.tm-endcard:focus-visible { outline: 2px solid var(--tm-red-hi); outline-offset: 3px; }
.tm-endcard__k { font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--tm-t3); }
.tm-endcard__t { font: 700 30px/.95 var(--tm-display); text-transform: uppercase; text-wrap: balance; }
.tm-endcard .bs-cta { padding-left: 14px; gap: 8px; font-size: 12px; letter-spacing: .1em; }
.tm-endcard__t { font-size: min(40px, 13cqi); }
.tm-deck__end { container-type: inline-size; }
.tm-endcard .tm-proof { margin-top: 2px; }

/* ---------- le frecce AI LATI del mazzo (04/10/2026, proprietario: «dal computer non si fa swipe»).
   Cerchio di vetro scuro con filo sottile, freccia bianca che diventa rossa al passaggio; ≥ 56 px.
   Solo col mouse (hover + puntatore fine) e da 1024 px: sul telefono resta il dito e non si vedono.
   Si muovono solo transform e opacity; con «riduci movimento» niente spostamento al passaggio. ---------- */
.tm-stage { position: relative; }
/* gli z-index delle carte (fino a 1000, team.js) restano DENTRO il mazzo: le frecce ai lati stanno sopra */
.tm-stage > .tm-deck { isolation: isolate; }
.tm-deck-side { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .tm-deck-side {
    display: block; position: absolute; z-index: 6; top: 50%; width: 64px; height: 64px; margin-top: -32px; padding: 0;
    border: 0; background: none; cursor: pointer; color: #fff;
    -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
    transition: opacity .35s ease;
  }
  .tm-deck-side--prev { left: max(24px, calc(50% - var(--cw, 320px) / 2 - 380px)); }
  .tm-deck-side--next { right: max(24px, calc(50% - var(--cw, 320px) / 2 - 380px)); }
  .tm-deck-side__c {
    position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
    background: rgba(18, 18, 18, .78);
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 40px -18px rgba(0, 0, 0, .9);
    transition: transform .45s var(--tm-ease);
  }
  .tm-deck-side__c::after {   /* l'alone rosso al passaggio: solo opacità */
    content: ''; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; opacity: 0;
    box-shadow: 0 0 0 1px rgba(251, 61, 72, .85), 0 16px 36px -14px rgba(176, 17, 30, .9);
    transition: opacity .35s ease;
  }
  .tm-deck-side svg { position: relative; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .tm-deck-side:hover .tm-deck-side__c { color: var(--tm-red-hi); }
  .tm-deck-side:hover .tm-deck-side__c::after, .tm-deck-side:focus-visible .tm-deck-side__c::after { opacity: 1; }
  .tm-deck-side--prev:hover .tm-deck-side__c { transform: translateX(-3px); }
  .tm-deck-side--next:hover .tm-deck-side__c { transform: translateX(3px); }
  .tm-deck-side:active .tm-deck-side__c { transform: scale(.92); }
  .tm-deck-side:focus-visible { outline: none; }
  .tm-deck-side:focus-visible .tm-deck-side__c { outline: 2px solid var(--tm-red-hi); outline-offset: 3px; }
  .tm-deck-side:disabled { opacity: 0; pointer-events: none; }   /* alla prima / all'ultima carta la freccia sparisce */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .tm-deck-side__c { background: rgba(18, 18, 18, .97); }
  }
  @media (prefers-reduced-motion: reduce) {
    .tm-deck-side__c, .tm-deck-side__c::after { transition: none; }
    .tm-deck-side--prev:hover .tm-deck-side__c, .tm-deck-side--next:hover .tm-deck-side__c { transform: none; }
  }
}

/* ---------- sotto il mazzo: 3 / 13 · avanzamento (e ‹ › solo al computer, da 1024 px) ---------- */
.tm-deck-nav { display: flex; align-items: center; gap: 14px; margin-top: -10px; min-height: 44px; }
.tm-deck-nav__btn { display: none; }
.tm-deck-nav__btn {
  flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .03); color: #fff;
  transition: transform .3s var(--tm-ease), opacity .3s ease;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.tm-deck-nav__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tm-deck-nav__btn:hover { border-color: rgba(255, 255, 255, .6); }
.tm-deck-nav__btn:active { transform: scale(.92); }
.tm-deck-nav__btn:disabled { opacity: .3; cursor: default; }
.tm-deck-nav__btn:focus-visible { outline: 2px solid var(--tm-red-hi); outline-offset: 2px; }
.tm-count { flex: none; display: flex; align-items: baseline; gap: 5px; font: 700 16px/1 var(--tm-display); letter-spacing: .08em; color: var(--tm-t3); font-variant-numeric: tabular-nums; }
.tm-count__i { min-width: 1.2em; text-align: right; color: #fff; font-size: 22px; }
.tm-progress { flex: 1; position: relative; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.tm-progress i {
  position: absolute; inset: 0; background: var(--tm-red-hi); transform-origin: left center;
  transform: scaleX(var(--p, .077)); transition: transform .45s var(--tm-ease);
}

/* il filtro rimescola il mazzo: le carte escono in un lampo e rientrano «distribuite» da destra.
   Si anima il FIGLIO di .tm-cf: .tm-cf ha già il suo transform, quello del coverflow. */
.tm-deck.is-out .tm-cf > * { opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .18s ease, transform .18s ease; }
.tm-deck.is-deal > li:not([hidden]) .tm-cf > * { animation: tm-deal .72s var(--tm-ease) backwards; animation-delay: calc(min(var(--n, 0), 5) * 70ms); }
@keyframes tm-deal { from { opacity: 0; transform: translateX(56px) scale(.94) rotate(1.2deg); } }

/* =============================================
   COME FUNZIONANO I LIVELLI — la scala dei gradi (dopo il mazzo)
   ============================================= */
.tm-levels { border-top: 1px solid var(--tm-line-2); margin-top: 64px; }
.tm-ladder { border-top: 1px solid var(--tm-line); counter-reset: none; }
.tm-ladder li { border-bottom: 1px solid var(--tm-line); }
.tm-ladder__row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 12px; align-items: start;
  min-height: 64px; padding: 22px 0; color: #fff; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tm-ladder__row:focus-visible { outline: 2px solid var(--tm-red-hi); outline-offset: 4px; }
.tm-ladder__no { font: 700 15px/1.6 var(--tm-display); letter-spacing: .08em; color: var(--tm-red-hi); }
.tm-ladder__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tm-ladder__lvl { font: 700 30px/.95 var(--tm-display); text-transform: uppercase; letter-spacing: .01em; }
.tm-ladder__who { font: 600 12px/1.4 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--tm-t3); }
.tm-ladder__line { font-size: 14.5px; line-height: 1.55; color: var(--tm-t2); }
.tm-ladder__go { align-self: center; color: rgba(255, 255, 255, .5); }
.tm-ladder__go svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--tm-ease);
}
.tm-ladder__row:hover .tm-ladder__go svg { transform: translateY(-4px); }
.tm-ladder__row:hover .tm-ladder__lvl { color: var(--tm-red-hi); }

/* =============================================
   04 · LA SCUOLA (i junior)
   ============================================= */
.tm-school {
  position: relative; isolation: isolate; padding: 96px 0;
  background: radial-gradient(70% 38% at 50% 0%, rgba(176, 17, 30, .12), transparent 70%), var(--tm-ink-2);
  border-top: 1px solid var(--tm-line-2); border-bottom: 1px solid var(--tm-line-2);
}
.tm-school .tm-group__head { margin-bottom: 24px; }
.tm-school .tm-h2 { font-size: clamp(34px, 9.4vw, 64px); }
.tm-school .tm-lead { font-size: 15px; margin-top: 14px; }
.tm-pillars { border-top: 1px solid var(--tm-line); }
.tm-pillars li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--tm-line);
}
.tm-pillars svg { width: 24px; height: 24px; margin-top: 1px; fill: none; stroke: var(--tm-red-hi); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tm-pillars li > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tm-pillars strong { font: 700 21px/1.05 var(--tm-display); text-transform: uppercase; color: #fff; }
.tm-pillars li > span > span { font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .64); }

/* l'offerta come un certificato: filetto rosso, secondo bordo interno, luce in alto a destra */
.tm-offer {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  margin-top: 28px; padding: 28px 24px 24px; border-radius: 10px; color: #fff; text-decoration: none;
  border: 1px solid rgba(251, 61, 72, .55);
  background: radial-gradient(80% 60% at 100% 0%, rgba(176, 17, 30, .30), transparent 70%), rgba(255, 255, 255, .025);
  box-shadow: 0 34px 60px -34px rgba(176, 17, 30, .8);
  transition: transform .5s var(--tm-ease);
  -webkit-tap-highlight-color: transparent;
}
.tm-offer::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--tm-line-2); border-radius: 6px; pointer-events: none; }
.tm-offer:hover { color: #fff; transform: translateY(-3px); }
.tm-offer:active { transform: scale(.985); }
.tm-offer:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.tm-offer__k { font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--tm-t2); }
.tm-offer__p { margin: 18px 0 14px; font: 700 clamp(88px, 26vw, 132px)/.78 var(--tm-display); letter-spacing: -.03em; color: #fff; }
.tm-offer__p i { font-style: normal; color: var(--tm-red-hi); font-size: .3em; vertical-align: 1.9em; margin-left: .1em; }
.tm-offer__d { font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .84); max-width: 26em; }
.tm-offer__g {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--tm-line-2);
  font-size: 13px; line-height: 1.5; color: var(--tm-t2);
}
.tm-offer__g svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--tm-red-hi); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tm-offer__go { margin-top: 18px; }

/* =============================================
   NON SAI CHI SCEGLIERE? — la chiusura
   ============================================= */
.tm-anyone {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: 112px 0 120px;
  background: radial-gradient(60% 55% at 50% 100%, rgba(176, 17, 30, .26), transparent 70%), var(--tm-ink);
}
.tm-kicker--c { justify-content: center; }
.tm-levels .tm-kicker, .tm-anyone .tm-kicker { margin-bottom: 22px; }
.tm-anyone .tm-h2 { font-size: clamp(36px, 10.4vw, 72px); max-width: 12em; margin: 0 auto; }
.tm-anyone .tm-lead { margin: 18px auto 0; max-width: 30em; }
.tm-anyone__btn { max-width: 420px; margin: 34px auto 0; }
.tm-anyone .tm-proof { justify-content: center; }

/* =============================================
   IL PROFILO (il foglio completo, aperto da «Целият профил» sul retro della carta)
   ============================================= */
.tm-sheet {
  width: min(980px, calc(100% - 48px)); max-height: min(90vh, 820px); margin: auto;
  padding: 0; border: 1px solid var(--tm-line); border-radius: 10px;
  background: #0f0f0f; color: #fff; overflow: auto; overscroll-behavior: contain;
}
.tm-sheet::backdrop { background: rgba(0, 0, 0, .82); }
.tm-sheet[open] { animation: tm-in .45s var(--tm-ease); }
@keyframes tm-in { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.tm-sheet__close {
  /* non «float»: accanto a un float la griglia del profilo si stringe */
  position: sticky; top: 12px; margin: 12px 12px -56px auto; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(10, 10, 10, .78); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--tm-ease);
}
.tm-sheet__close:hover { border-color: #fff; }
.tm-sheet__close:active { transform: scale(.92); }
.tm-sheet__close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.tm-profile { display: grid; grid-template-columns: 1fr 1.12fr; }
.tm-profile[hidden] { display: none; }
.tm-profile.is-entering { animation: tm-swap .4s var(--tm-ease); }
@keyframes tm-swap { from { opacity: 0; transform: translateX(var(--dir, 16px)); } to { opacity: 1; transform: none; } }
.tm-profile__photo { position: relative; overflow: hidden; background: #121212; min-height: 560px; container-type: inline-size; }   /* la foto riempie tutta la colonna */
.tm-profile__photo .tm-img { transition: opacity .4s ease; }
.tm-profile__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(15, 15, 15, 0) 74%, #0f0f0f 100%);
}
.tm-profile__photo .tm-mono { padding-bottom: 0; }
.tm-profile__photo .tm-mono__l { font-size: 190px; }
.tm-profile__body { padding: 44px 40px 28px; position: relative; min-width: 0; }
.tm-profile__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tm-profile__tags .tm-badge { position: static; display: inline-block; }
.tm-profile__school { font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--tm-red-hi); }
.tm-profile__name {
  margin-top: 18px; font-family: var(--tm-display); font-weight: 700; text-transform: uppercase; line-height: .88; letter-spacing: -.005em;
  white-space: nowrap;
  font-size: min(72px, calc(min(436px, (100vw - 48px) * .528 - 80px) / (var(--len, 8) * .6)));
}
.tm-profile__role { margin-top: 10px; font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--tm-t3); }
.tm-spec { margin-top: 24px; border-top: 1px solid var(--tm-line); }
.tm-spec > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--tm-line); }
.tm-spec dt { font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--tm-t3); }
.tm-spec dd { font-size: 15px; line-height: 1.35; color: #fff; text-align: right; }
.tm-spec__price { font: 700 34px/.8 var(--tm-display) !important; letter-spacing: -.01em; white-space: nowrap; }
.tm-spec__price i, .tm-offer__p i { font-style: normal; color: var(--tm-red-hi); }
.tm-spec__price i { font-size: .5em; vertical-align: .7em; margin-left: .06em; }
.tm-profile__bio { margin-top: 20px; font-size: 15.5px; line-height: 1.7; color: var(--tm-t2); }
.tm-profile__bio--soon { color: var(--tm-t3); }
.tm-skills { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--tm-line-2); display: grid; gap: 12px; }
.tm-skills li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--tm-t2); }
.tm-skill { display: flex; gap: 4px; flex: none; }
.tm-skill i { position: relative; width: 22px; height: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.tm-skill i.on::after { content: ''; position: absolute; inset: 0; background: var(--tm-red-hi); transform-origin: left; }
.tm-profile.is-entering .tm-skill i.on::after {
  animation: tm-fill .6s var(--tm-ease) backwards; animation-delay: calc(var(--s) * 70ms + 140ms);
}
@keyframes tm-fill { from { transform: scaleX(0); } }
.tm-profile__offer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px;
  padding: 16px 18px; border-radius: 10px; color: #fff; text-decoration: none;
  border: 1px solid rgba(251, 61, 72, .5); background: radial-gradient(80% 90% at 100% 0%, rgba(176, 17, 30, .2), transparent 70%);
}
.tm-profile__offer:hover { color: #fff; border-color: var(--tm-red-hi); }
.tm-profile__offer > span:first-child { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; color: var(--tm-t2); }
.tm-profile__offer strong { font: 700 21px/1 var(--tm-display); text-transform: uppercase; color: #fff; }
.tm-profile__offer-go { flex: none; color: var(--tm-red-hi); font: 600 12px/1.2 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.tm-profile__actions { margin-top: 26px; display: flex; }
.tm-profile__actions .bs-cta { white-space: normal; }
.tm-sheet__nav {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 18px; border-top: 1px solid var(--tm-line); position: sticky; bottom: 0; z-index: 4; background: #0f0f0f;
}
.tm-sheet__step {
  background: none; border: 0; color: #fff; cursor: pointer; padding: 10px 8px; min-height: 44px;
  font: 600 12px/1.2 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase;
}
.tm-sheet__step:hover { color: var(--tm-red-hi); }
.tm-sheet__count { font: 700 15px var(--tm-display); letter-spacing: .14em; color: var(--tm-t3); }

/* il computer in orizzontale basso (e il telefono girato): la foto segue il testo */
@media (min-width: 769px) and (max-height: 620px) {
  .tm-profile { grid-template-columns: .8fr 1.2fr; }
  .tm-profile__photo { min-height: 0; position: sticky; top: 0; align-self: start; height: calc(90vh - 66px); }
  .tm-profile__body { padding: 28px 28px 0; }
  .tm-profile__actions {
    position: sticky; bottom: 65px; z-index: 2; margin: 14px -28px 0; padding: 14px 28px 10px;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0), #0f0f0f 14px);
  }
  .tm-profile__name { font-size: min(48px, calc(min(440px, 55vw - 120px) / (var(--len, 8) * .6))); }
}

/* =============================================
   ENTRATA (solo con JS: initTeam mette .tm-rv a ciò che è ancora sotto lo schermo)
   ============================================= */
.tm-rv { opacity: 0; transform: translateY(30px); }
.tm-rv.is-in {
  opacity: 1; transform: none;
  transition: opacity 1s var(--tm-ease), transform 1.1s var(--tm-ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

/* =============================================
   DA 600 px
   ============================================= */
@media (min-width: 600px) {
  .tm-page { --tm-gutter: 32px; }
  .tm-sec { padding: 120px 0; }
  .tm-hero { padding: calc(var(--header-height) + 40px) 0 26px; }
  .tm-hero__sub { font-size: 16px; line-height: 1.6; margin-top: 16px; }
  .tm-hero__act {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px;
    animation: tm-up 1s var(--tm-ease) .3s backwards;
  }
  .tm-hero__act .bs-cta { width: auto; }
  .tm-hero__btn { min-width: 300px; }
  .tm-hero__meta { margin-top: 18px; }
  .tm-deck { --cw: 300px; --gap: 16px; --cf-spread: 1.5; }
}

/* ---------- computer ---------- */
@media (min-width: 900px) {
  .tm-sec { padding: 150px 0; }
  .tm-hero__sub { font-size: 17px; }
  .tm-lead { font-size: 17px; }
  .tm-head { margin-bottom: 56px; }
  .tm-chapter__t { font-size: 24px; }
  .tm-chapter__l { font-size: 13.5px; }
  .tm-deck { padding-top: 30px; }
  .tm-deck-nav { max-width: 560px; margin-left: auto; margin-right: auto; }
  /* la scala dei gradi diventa cinque colonne, come un righello */
  .tm-ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tm-ladder li { border-bottom: 0; }
  .tm-ladder li + li { border-left: 1px solid var(--tm-line); }
  .tm-ladder__row { display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 26px 22px 28px; }
  .tm-ladder li:first-child .tm-ladder__row { padding-left: 0; }
  .tm-ladder__lvl { font-size: 36px; }
  .tm-ladder__main { flex: 1; gap: 10px; }
  .tm-ladder__go { align-self: flex-start; }
  .tm-ladder { border-bottom: 1px solid var(--tm-line); }
  .tm-levels { margin-top: 96px; }
  .tm-school { padding: 150px 0; }
  .tm-school__top {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 72px; align-items: start;
  }
  .tm-school .tm-group__head .tm-lead { margin-top: 18px; }
  .tm-school .tm-pillars { grid-column: 1; }
  .tm-school .tm-offer { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; padding: 36px 34px 30px; }
  .tm-anyone { padding: 150px 0 160px; }
  .tm-sheet__nav { padding: 10px 22px; }
}

/* ---------- computer (da 1024 px): il mouse non striscia, quindi ci sono ‹ ›. Il coverflow resta
   (02/10/2026: lo stesso mazzo del telefono, più largo: --cf-spread in initTeam allarga i lati).
   L'hero va su due colonne così filtri e carte salgono. ---------- */
@media (min-width: 1024px) {
  .tm-deck-nav__btn { display: grid; }   /* le frecce solo al computer; sul telefono si sfoglia col dito */
  .tm-deck { --cw: 320px; --gap: 20px; --cf-spread: 2.1; padding-top: 30px; }
  .tm-hero { padding: calc(var(--header-height) + 52px) 0 34px; }
  .tm-hero .tm-wrap {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 64px; align-items: end;
    grid-template-areas: "k k" "t s" "t a" "t m";
  }
  .tm-hero .tm-kicker { grid-area: k; }
  .tm-hero__title { grid-area: t; font-size: min(5.4vw, 78px); margin-top: 18px; }
  .tm-hero__sub { grid-area: s; margin-top: 0; font-size: 16px; }
  .tm-hero__act { grid-area: a; margin-top: 18px; }
  .tm-hero__meta { grid-area: m; margin-top: 16px; }
  .tm-hero__btn { min-width: 0; }
}

/* =============================================
   TELEFONO (e tablet stretto): il profilo sale dal basso
   ============================================= */
@media (max-width: 768px) {
  .tm-sheet {
    width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; margin: auto 0 0;
    border-radius: 14px 14px 0 0; border-bottom: 0;
  }
  .tm-sheet[open] { animation: tm-sheet-up .45s var(--tm-ease); }
  @keyframes tm-sheet-up { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
  .tm-profile { grid-template-columns: 1fr; }
  .tm-profile__photo { position: relative; min-height: 0; aspect-ratio: 4 / 3.4; }
  .tm-profile__photo::after { background: linear-gradient(to top, #0f0f0f 0%, rgba(15, 15, 15, 0) 36%); }
  .tm-profile__photo .tm-mono__l { font-size: 150px; }
  .tm-profile__body { padding: 0 20px 18px; margin-top: -22px; z-index: 1; }
  .tm-profile__name { font-size: min(56px, calc((100vw - 40px) / (var(--len, 8) * .6))); }
  .tm-sheet__nav { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  /* «Запази при …» resta appoggiato sopra «Предишен / Следващ» mentre la biografia scorre */
  .tm-profile__actions {
    position: sticky; bottom: calc(65px + env(safe-area-inset-bottom)); z-index: 2;
    margin: 18px -20px 0; padding: 18px 20px 12px;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0), #0f0f0f 16px);
  }
}
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  .tm-profile__photo { aspect-ratio: 16 / 7; }
}

/* ---------- telefono ---------- */
@media (max-width: 640px) {
  .tm-bar .tm-wrap { padding: 0; }
  .tm-filters {
    overflow-x: auto; scrollbar-width: none; padding: 0 var(--tm-gutter); scroll-padding: 0 var(--tm-gutter);
  }
  .tm-filters::-webkit-scrollbar { display: none; }
  .tm-filter { padding: 0 14px; }
}
@media (max-width: 360px) {
  .tm-page { --tm-gutter: 16px; }
  .tm-deck { --cw: 66vw; --gap: 10px; }
  .tm-book.bs-cta--compact { padding-left: 12px; gap: 6px; letter-spacing: .1em; font-size: 12px; }
}

/* =============================================
   I TAGLI MIGLIORI — la galleria (02/10/2026). Sul telefono un foglio che sale dal basso; al
   computer una finestra grande. Le foto scorrono col dito (scroll-snap); X, Esc o un tocco fuori
   dalla foto la chiudono. Compare solo se il barbiere ha delle foto in assets/images/team/tagli/<id>/.
   ============================================= */
.tm-gal {
  width: min(1100px, calc(100% - 48px)); height: min(88vh, 900px); max-width: none; max-height: none; margin: auto;
  padding: 0; border: 1px solid var(--tm-line); border-radius: 12px; overflow: hidden;
  background: #0b0b0b; color: #fff;
}
.tm-gal[open] { display: flex; flex-direction: column; animation: tm-in .45s var(--tm-ease); }
.tm-gal::backdrop { background: rgba(0, 0, 0, .86); }
.tm-gal__head { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--tm-line-2); }
.tm-gal__t { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--tm-t3); }
.tm-gal__who { font: 700 22px/1 var(--tm-display); letter-spacing: .02em; color: #fff; }
.tm-gal__n { flex: none; font: 700 15px/1 var(--tm-display); letter-spacing: .12em; color: var(--tm-t3); font-variant-numeric: tabular-nums; }
.tm-gal__x {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); color: #fff;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.tm-gal__x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tm-gal__x:focus-visible, .tm-gal__step:focus-visible, .tm-gal__track:focus-visible { outline: 2px solid var(--tm-red-hi); outline-offset: -2px; }
.tm-gal__track {
  flex: 1; min-height: 0; display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tm-gal__track::-webkit-scrollbar { display: none; }
.tm-gal__item { flex: 0 0 100%; min-width: 0; display: grid; place-items: center; padding: 14px; scroll-snap-align: center; scroll-snap-stop: always; }
.tm-gal__item picture { display: contents; }
.tm-gal__item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #141414; }
.tm-gal__nav { position: absolute; left: 0; right: 0; top: 50%; display: none; justify-content: space-between; padding: 0 14px; pointer-events: none; }
.tm-gal__step {
  pointer-events: auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 10, 10, .7); color: #fff;
  -webkit-appearance: none; appearance: none; transition: opacity .3s ease;
}
.tm-gal__step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tm-gal__step:disabled { opacity: .25; cursor: default; }
@media (hover: hover) and (min-width: 769px) { .tm-gal__nav { display: flex; } }
@media (max-width: 768px) {
  .tm-gal {
    width: 100%; height: 88vh; height: 88dvh; margin: auto 0 0;
    border-radius: 16px 16px 0 0; border-bottom: 0;
  }
  .tm-gal[open] { animation: tm-sheet-up .45s var(--tm-ease); }
  .tm-gal__head { padding-top: 14px; position: relative; }
  .tm-gal__head::before {   /* la maniglia del foglio */
    content: ''; position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(255, 255, 255, .22);
  }
  .tm-gal__item { padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); }
}

/* =============================================
   «RIDUCI MOVIMENTO»: niente salto, niente rotazione, niente rimescolio.
   Il retro compare con una dissolvenza (solo opacity) sopra il fronte.
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .tm-page *, .tm-page *::before, .tm-page *::after, .tm-sheet, .tm-sheet *, .tm-gal, .tm-gal * { animation: none !important; transition: none !important; }
  .tm-rv { opacity: 1; transform: none; }
  .tm-card:hover .tm-img, .tm-card:hover .tm-card__hop, .tm-card:hover .tm-card__turn i { transform: none; }
  .tm-cf { transform: none !important; }   /* niente coverflow 3D: una fila piatta; le vicine restano in bianco e nero e più scure */
  .tm-page .tm-card.is-flipped .tm-card__hop { transform: none; }
  /* il neon: un bordo rosso FERMO, tutto intorno (lo strato che gira non c'è) */
  .tm-page .tm-neon { background: var(--tm-red-hi); }
  .tm-page .tm-neon--alone { background: rgba(251, 61, 72, .22); }
  .tm-page .tm-card .tm-neon__spin { display: none !important; }
  .tm-page .tm-card__inner, .tm-page .tm-card.is-flipped .tm-card__inner, .tm-page .tm-card__back { transform: none !important; }
  .tm-page .tm-card__back { opacity: 0; transition: opacity .28s ease, visibility 0s linear .28s !important; }
  .tm-page .tm-card__front { opacity: 1; transition: opacity .28s ease, visibility 0s !important; }
  .tm-page .tm-card.is-flipped .tm-card__back { opacity: 1; transition: opacity .28s ease, visibility 0s !important; }
  .tm-page .tm-card.is-flipped .tm-card__front { opacity: 0; transition: opacity .28s ease, visibility 0s linear .28s !important; }
}

/* Nel profilo la nota «Снимката идва скоро» finiva sopra «JUNIOR · Школата…» (01/10/2026):
   lì basta l'iniziale grande; la nota resta sulle carte. */
.tm-profile__photo .tm-mono__note { display: none; }

/* 04/10/2026: nel profilo di Alexander il link ai video che gira e monta (/video/) */
.tm-profile__video { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; color: var(--tm-t2); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .3); }
.tm-profile__video:hover, .tm-profile__video:focus-visible { color: #fff; text-decoration-color: var(--tm-red-hi); }
.tm-profile__video-a { color: var(--tm-red-hi); text-decoration: none; }
