/**
 * ГЛАВ-ХИРУРГ — Обучение
 * Все правила изолированы внутри .ghme
 */

/* ------------------------------------------------------------
   ТОКЕНЫ (цвета сняты пипеткой с макета)
   ------------------------------------------------------------ */
.ghme{
  --ghme-black:    #07090c;
  --ghme-card:     #0e0f11;
  --ghme-hairline: rgba(255,190,160,.12);
  --ghme-red:      #ff3b1f;
  --ghme-gold:     #ffd07a;
  --ghme-title:    #ffffff;
  --ghme-text:     #cfd2d3;
  --ghme-muted:    #c0c1c3;

  --ghme-font:     'Roboto Condensed', 'Arial Narrow', 'DejaVu Sans Condensed', 'Segoe UI', system-ui, sans-serif;
  --ghme-radius:   10px;
  --ghme-pad-x:    20px;

  position:relative;
  overflow:hidden;
  isolation:isolate;
  padding:48px var(--ghme-pad-x) 56px;
  background:var(--ghme-black);
  color:var(--ghme-text);
  font-family:var(--ghme-font);
  font-size:16px;
  line-height:1.4;
  text-align:left;
  -webkit-font-smoothing:antialiased;
}

/* ------------------------------------------------------------
   СБРОС СТИЛЕЙ ТЕМЫ (только внутри секции)
   ------------------------------------------------------------ */
.ghme,
.ghme *,
.ghme *::before,
.ghme *::after{box-sizing:border-box}

.ghme ul,
.ghme ol{margin:0 !important;padding:0 !important;list-style:none !important;background:none}
.ghme li{margin:0 !important;list-style:none !important;background:none}
.ghme li::before,
.ghme li::after{content:none}
.ghme p{margin:0;padding:0;text-indent:0}
.ghme h1,.ghme h2,.ghme h3,.ghme h4,.ghme h5,.ghme h6{border:0;font-family:var(--ghme-font)}
.ghme a{text-decoration:none !important;color:inherit;border:0;box-shadow:none}
.ghme a:hover,
.ghme a:focus{text-decoration:none !important;color:inherit}
.ghme img{border:0 !important;max-width:100%;height:auto}
.ghme svg{display:block;max-width:100%}
/* защита от тем, задающих svg{width/height:...!important} */
.ghme__icon svg{width:100% !important;height:100% !important}
.ghme__btn-arrow svg{width:26px !important;height:14px !important}

/* ------------------------------------------------------------
   ФОН
   ------------------------------------------------------------ */
.ghme__bg{
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-color:var(--ghme-black);
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
}
.ghme__bg--css::before{
  content:"";
  position:absolute;
  top:34%;
  right:-28%;
  width:88%;
  aspect-ratio:1/1;
  transform:translateY(-50%);
  background:radial-gradient(closest-side, rgba(255,59,31,.16), rgba(255,59,31,.05) 46%, transparent 72%);
  filter:blur(2px);
}
.ghme__bg--css::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1.5px 1.5px at 88% 34%, rgba(255,150,110,.55), transparent 60%),
    radial-gradient(1px 1px   at 94% 42%, rgba(255,130,90,.45),  transparent 60%),
    radial-gradient(1.5px 1.5px at 91% 48%, rgba(255,120,70,.40), transparent 60%),
    radial-gradient(1px 1px   at 97% 30%, rgba(255,170,130,.40), transparent 60%),
    radial-gradient(1px 1px   at 83% 40%, rgba(255,120,70,.30),  transparent 60%);
}
.ghme__arc{
  position:absolute;
  border:1px solid rgba(255,90,50,.05);
  border-radius:50%;
  pointer-events:none;
}
.ghme__arc--1{width:340px;height:340px;left:-180px;bottom:20px}
.ghme__arc--2{width:620px;height:620px;left:-370px;bottom:-180px;border-color:rgba(255,90,50,.03)}

/* техническая линейка слева */
.ghme__rail{
  position:absolute;
  top:0;
  bottom:0;
  left:12px;
  z-index:0;
  display:flex;
  align-items:center;
  pointer-events:none;
}
.ghme__rail::before{
  content:"";
  position:absolute;
  left:50%;
  top:5%;
  bottom:5%;
  width:1px;
  background:repeating-linear-gradient(to bottom, rgba(255,255,255,.13) 0 4px, transparent 4px 10px);
}
.ghme__rail-num{
  position:relative;
  padding:6px 0;
  background:var(--ghme-black);
  font-size:9px;
  letter-spacing:.2em;
  color:rgba(255,255,255,.2);
}

/* вертикальная подпись слева и техподпись справа снизу */
.ghme__vlabel,
.ghme__corner{
  position:absolute;
  z-index:0;
  display:none;
  font-size:11px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:rgba(255,255,255,.16);
  pointer-events:none;
  user-select:none;
}
.ghme__vlabel{
  left:calc(var(--ghme-pad-x) * .30);
  bottom:14%;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
}
.ghme__corner{
  right:calc(var(--ghme-pad-x) * .34);
  bottom:7%;
  line-height:1.9;
  text-align:right;
}

.ghme__inner{
  position:relative;
  max-width:1600px;
  margin:0 auto;
}

/* ------------------------------------------------------------
   ШАПКА
   ------------------------------------------------------------ */
.ghme__head{
  position:relative;
  padding:22px 0 34px 26px;
}
.ghme__ghost{
  position:absolute;
  top:-30px;
  left:-4px;
  z-index:-1;
  display:block;
  font-weight:700;
  font-size:clamp(52px, 13vw, 152px);
  line-height:1;
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:nowrap;
  color:rgba(255,255,255,.035);
  user-select:none;
}
.ghme__kicker{
  display:block;
  margin-bottom:14px;
  font-weight:400;
  font-size:clamp(11px, .88vw, 14px);
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--ghme-gold);
}
.ghme__title{
  margin:0;
  font-weight:700;
  font-size:clamp(34px, 4.6vw, 76px);
  line-height:1.06;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--ghme-title);
}
.ghme__subtitle{
  max-width:46ch;
  margin-top:18px;
  font-weight:300;
  font-size:clamp(15px, 1.32vw, 22px);
  line-height:1.72;
  color:var(--ghme-muted);
  text-wrap:pretty;
}
.ghme__head::before{            /* красная вертикальная линия */
  content:"";
  position:absolute;
  top:12px;
  bottom:34px;
  left:0;
  width:2px;
  background:linear-gradient(to bottom, var(--ghme-red), rgba(255,59,31,.10));
}
.ghme__head::after{             /* светящаяся точка */
  content:"";
  position:absolute;
  top:2px;
  left:-3px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--ghme-red);
  box-shadow:0 0 10px 2px rgba(255,59,31,.5);
}

/* ------------------------------------------------------------
   КАРТОЧКИ НАПРАВЛЕНИЙ
   ------------------------------------------------------------ */
.ghme__cards{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:6px;
}

.ghme__card{
  position:relative;
  display:flex;
  flex-direction:column;
  padding:clamp(24px, 2.6vw, 42px);
  border:1px solid var(--ghme-hairline);
  border-radius:var(--ghme-radius);
  background:var(--ghme-card);
  transition:border-color .35s ease, transform .35s ease;
}
.ghme__card:hover{border-color:rgba(255,59,31,.28)}

.ghme__card-head{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  column-gap:clamp(18px, 2vw, 32px);
  align-items:center;
}

.ghme__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:clamp(72px, 6.3vw, 105px);
  height:clamp(72px, 6.3vw, 105px);
  padding:clamp(14px, 1.3vw, 22px);
  border:1px solid var(--ghme-red);
  border-radius:4px;
  color:var(--ghme-red);
}

.ghme__card-kicker{
  display:block;
  margin-bottom:8px;
  font-weight:400;
  font-size:clamp(11px, .84vw, 14px);
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--ghme-red);
}
.ghme__card-title{
  margin:0;
  font-weight:700;
  font-size:clamp(26px, 2.7vw, 44px);
  line-height:1.1;
  color:var(--ghme-title);
}

/* затухающая линия со светящейся точкой на конце */
.ghme__line{
  position:relative;
  display:block;
  height:1px;
  margin-top:16px;
  background:linear-gradient(90deg, rgba(255,59,31,.75), rgba(255,59,31,.12) 62%, rgba(255,59,31,0));
}
.ghme__line::after{
  content:"";
  position:absolute;
  top:50%;
  right:0;
  width:7px;
  height:7px;
  margin-top:-3.5px;
  border-radius:50%;
  background:var(--ghme-red);
  box-shadow:0 0 9px 2px rgba(255,59,31,.45);
}

.ghme__desc{
  margin-top:clamp(20px, 2.2vw, 34px);
  margin-bottom:clamp(24px, 2.6vw, 40px);   /* минимальный отступ до кнопки */
  font-weight:300;
  font-size:clamp(15px, 1.2vw, 20px);
  line-height:1.62;
  color:var(--ghme-text);
  text-wrap:pretty;
}

.ghme__btn{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  width:100%;
  max-width:377px;
  margin-top:auto;
  padding:clamp(16px, 1.6vw, 24px) clamp(18px, 1.8vw, 26px);
  border:1px solid rgba(255,59,31,.55);
  border-radius:3px;
  color:#fff;
  transition:border-color .3s ease, background-color .3s ease;
}
.ghme__btn:hover{
  border-color:var(--ghme-red);
  background:rgba(255,59,31,.08);
}
.ghme__btn:focus-visible{outline:2px solid var(--ghme-red);outline-offset:3px}
.ghme__btn-text{
  font-weight:400;
  font-size:clamp(12px, .95vw, 15px);
  letter-spacing:.13em;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ghme__btn-arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ghme-red);
  transition:transform .3s ease;
}
.ghme__btn:hover .ghme__btn-arrow{transform:translateX(4px)}

/* кликабельна вся карточка */
.ghme__btn::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:var(--ghme-radius);
}

/* ------------------------------------------------------------
   ПЛАНШЕТ / ДЕСКТОП
   ------------------------------------------------------------ */
@media (min-width:640px){
  .ghme{--ghme-pad-x:40px}
  .ghme__head{padding:26px 0 38px 30px}
}

@media (min-width:900px){
  .ghme__cards{grid-template-columns:1fr 1fr;gap:31px}
}

@media (min-width:1000px){
  .ghme{
    --ghme-pad-x:clamp(48px, 10.3vw, 172px);
    padding-top:56px;
    padding-bottom:64px;
  }
  .ghme__rail{left:calc(var(--ghme-pad-x) * .34)}
  .ghme__vlabel,
  .ghme__corner{display:block}

  .ghme__head{padding:30px 0 46px 34px}
  .ghme__head::before{top:16px;bottom:46px}
  .ghme__ghost{top:-46px;left:-6px;font-size:clamp(96px, 9.6vw, 168px)}
  .ghme__subtitle{margin-top:20px}

  .ghme__card{padding:42px}
  .ghme__card:hover{transform:translateY(-3px)}
}

@media (prefers-reduced-motion:reduce){
  .ghme *{transition:none !important;animation:none !important}
}
