/* Creative Trainers – podstránka bez HERO; HERO rieši modul šablóny */
.ct-page{
  --red:#ff4a4a;
  --purple:145,82,244;
  --max:1440px;
  position:relative;
  overflow:hidden;
  padding:72px 0 128px;
  color:#f5f5f3;
  background:
    radial-gradient(ellipse 120% 70% at 12% 14%,rgba(var(--purple),.16),rgba(var(--purple),.055) 38%,transparent 70%),
    radial-gradient(ellipse 105% 62% at 88% 72%,rgba(var(--purple),.10),transparent 68%),
    #050505;
}

.ct-page *{box-sizing:border-box}
.ct-page-wrap{width:min(calc(100% - 64px),var(--max));margin:auto}
.ct-profiles{display:grid;gap:24px}

.ct-profile{
  position:relative;
  display:grid;
  grid-template-columns:minmax(330px,430px) minmax(0,1fr);
  align-items:start;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(ellipse 105% 130% at 2% 6%,rgba(var(--purple),.29),rgba(var(--purple),.13) 34%,transparent 64%),
    radial-gradient(ellipse 86% 102% at 98% 92%,rgba(var(--purple),.14),transparent 66%),
    radial-gradient(ellipse 74% 86% at 58% 42%,rgba(var(--purple),.055),transparent 72%),
    linear-gradient(135deg,rgba(255,255,255,.022),rgba(255,255,255,.004)),
    rgba(8,8,9,.95);
}

.ct-profile:before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:2px;
  background:linear-gradient(180deg,rgba(255,74,74,.92),rgba(255,74,74,.08) 72%,transparent);
  box-shadow:0 0 16px rgba(255,55,55,.24);
  z-index:3;
}

/* Fotka má vždy rovnaký rámec; množstvo textu ju už nenaťahuje. */
.ct-profile-photo{
  position:relative;
  width:100%;
  height:430px;
  overflow:hidden;
  background:linear-gradient(145deg,#17131f,#080809);
}

.ct-profile-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 20%;
  filter:brightness(.78) saturate(.86);
  transition:transform .4s ease,filter .35s ease;
}

.ct-profile:hover .ct-profile-photo img{
  transform:scale(1.025);
  filter:brightness(.86) saturate(.91);
}

.ct-profile-photo:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,transparent 66%,rgba(5,5,5,.28) 100%),
    linear-gradient(90deg,transparent 76%,rgba(8,8,9,.36) 100%);
  pointer-events:none;
}

.ct-profile-photo.is-empty:before{
  content:"";
  position:absolute;
  inset:18%;
  border:1px solid rgba(255,255,255,.055);
}

.ct-profile-content{
  min-height:430px;
  padding:44px 52px 42px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}


/* Poradie + navigácia medzi profilmi. Pri priamom prekliku je hneď jasné,
   že nad/nižšie sú ďalší tréneri. */
.ct-profile-nav{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding:0 0 13px;
  border-bottom:1px solid rgba(255,255,255,.075);
}

.ct-profile-count{
  color:#ff6868;
  font-size:10px;
  font-weight:850;
  letter-spacing:.18em;
}

.ct-profile-nav-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:14px;
}

.ct-profile-nav-links a{
  color:#83838a;
  font-size:10px;
  font-weight:760;
  letter-spacing:.08em;
  text-decoration:none;
  transition:color .2s ease;
}

.ct-profile-nav-links a:hover{
  color:#fff;
}

.ct-profile:target .ct-profile-nav{
  border-bottom-color:rgba(255,74,74,.22);
}

.ct-profile:target .ct-profile-count{
  color:#ff7777;
  text-shadow:0 0 10px rgba(255,74,74,.30);
}

/* Typ trénera – výrazný, ale stále čistý prvok. */
.ct-profile-category{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:7px 12px 6px;
  margin:0 0 17px;
  border:1px solid rgba(255,74,74,.48);
  background:rgba(255,54,54,.075);
  color:#ff6969;
  font-size:10px;
  font-weight:850;
  line-height:1;
  letter-spacing:.15em;
  text-transform:uppercase;
  box-shadow:inset 0 0 18px rgba(255,40,40,.025);
}

.ct-profile h2{
  margin:0 0 13px;
  font-size:clamp(36px,3.7vw,58px);
  line-height:.98;
  letter-spacing:-.048em;
}

.ct-profile-specialization{
  margin:0 0 28px;
  max-width:760px;
  color:#c7c7cc;
  font-size:17px;
  line-height:1.55;
}

.ct-contact{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 28px;
}

.ct-contact a{
  min-width:190px;
  padding:13px 17px 14px;
  border:1px solid rgba(255,255,255,.10);
  border-left:2px solid rgba(255,74,74,.72);
  background:rgba(255,255,255,.018);
  color:#fff;
  text-decoration:none;
  transition:border-color .2s ease,background .2s ease;
}

.ct-contact a:hover{
  border-color:rgba(255,74,74,.48);
  background:rgba(255,74,74,.035);
}

.ct-contact small{
  display:block;
  margin-bottom:5px;
  color:#72727a;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:9px;
}

.ct-contact strong{font-size:14px}

/* Dlhé profily sú zbalené – rozdiel v množstve textu už nerozbíja layout. */
.ct-more{
  width:100%;
  margin-top:auto;
  border-top:1px solid rgba(255,255,255,.085);
}

.ct-more summary{
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:19px 0 4px;
  color:#efeff1;
  font-size:13px;
  font-weight:760;
  cursor:pointer;
  user-select:none;
}

.ct-more summary::-webkit-details-marker{display:none}
.ct-more summary::marker{display:none}

.ct-more-mark{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 28px;
  border:1px solid rgba(255,74,74,.62);
  color:var(--red);
  font-size:19px;
  font-weight:400;
  line-height:1;
  transition:transform .22s ease,background .22s ease,color .22s ease;
}

.ct-more[open] .ct-more-mark{
  transform:rotate(45deg);
  background:var(--red);
  color:#fff;
}

.ct-more-body{
  padding:26px 0 4px;
  animation:ctOpen .22s ease;
}

@keyframes ctOpen{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}

.ct-bio{
  margin:0 0 26px;
  max-width:900px;
  color:#aaaab0;
  font-size:14px;
  line-height:1.72;
}

.ct-details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 30px;
  border-top:1px solid rgba(255,255,255,.075);
}

.ct-detail{
  padding:22px 0;
  border-bottom:1px solid rgba(255,255,255,.075);
}

.ct-detail h3{
  position:relative;
  margin:0 0 12px;
  padding-left:12px;
  color:#ececef;
  font-size:13px;
}

.ct-detail h3:before{
  content:"";
  position:absolute;
  left:0;top:2px;bottom:2px;
  width:2px;
  background:var(--red);
  box-shadow:0 0 7px rgba(255,74,74,.38);
}

.ct-detail ul{list-style:none;margin:0;padding:0}
.ct-detail li{
  position:relative;
  padding:5px 0 5px 16px;
  color:#8e8e95;
  font-size:12.5px;
  line-height:1.55;
}
.ct-detail li:before{
  content:"";
  position:absolute;
  left:0;top:12px;
  width:5px;height:1px;
  background:var(--red);
  box-shadow:0 0 5px rgba(255,74,74,.45);
}

@media(max-width:980px){
  .ct-page{padding-top:58px}
  .ct-profile{grid-template-columns:310px minmax(0,1fr)}
  .ct-profile-photo{height:390px}
  .ct-profile-content{min-height:390px;padding:36px 34px}
  .ct-details{grid-template-columns:1fr}
}

@media(max-width:760px){
  .ct-page-wrap{width:calc(100% - 28px)}
  .ct-profile{grid-template-columns:1fr}
  .ct-profile-photo{height:auto;aspect-ratio:4/3}
  .ct-profile-photo img{object-position:center 18%}
  .ct-profile-content{min-height:0;padding:30px 24px 28px}
  .ct-profile-nav{margin-bottom:16px}
  .ct-profile-nav-links{gap:12px}
  .ct-profile-count,.ct-profile-nav-links a{font-size:10px}
  .ct-profile-specialization{font-size:15px}
  .ct-contact{display:grid;width:100%}
  .ct-contact a{min-width:0;width:100%}
}

@media(max-width:520px){
  .ct-page{padding:44px 0 86px}
  .ct-profiles{gap:18px}
  .ct-profile-photo{aspect-ratio:1/1}
  .ct-profile-content{padding:26px 20px 24px}
  .ct-profile h2{font-size:38px}
  .ct-details{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  .ct-more-body{animation:none}
  .ct-profile-photo img,.ct-more-mark{transition:none}
}


/* Pri prekliku z homepage zvýrazní konkrétneho trénera. */
.ct-profile{
  scroll-margin-top:110px;
}

.ct-profile:target{
  border-color:rgba(255,74,74,.34);
  box-shadow:
    0 0 0 1px rgba(255,74,74,.055),
    0 0 34px rgba(145,82,244,.11);
}
