/**
 * ГЛАВ-ХИРУРГ — Благотворительность
 * Все правила изолированы внутри .ghmc
 */

.ghmc{
  /* --- палитра (снята пипеткой с макета) --- */
  --ghmc-black:    #090b0d;
  --ghmc-panel:    #1d1110;   /* тёплая заливка текстовой части карточки */
  --ghmc-hairline: rgba(255,190,160,.10);
  --ghmc-red:      #e0341c;
  --ghmc-date:     #d0301a;
  --ghmc-gold:     #fec252;
  --ghmc-title:    #ffffff;
  --ghmc-text:     #dbdcda;
  --ghmc-muted:    #b7b8b6;

  --ghmc-font:     'Roboto Condensed', 'Arial Narrow', 'DejaVu Sans Condensed', 'Segoe UI', system-ui, sans-serif;
  --ghmc-radius:   4px;
  --ghmc-pad-x:    20px;
  --ghmc-gap:      16px;

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

/* --- сброс стилей темы --- */
.ghmc,
.ghmc *,
.ghmc *::before,
.ghmc *::after{box-sizing:border-box}

.ghmc ul,
.ghmc ol{margin:0 !important;padding:0 !important;list-style:none !important;background:none}
.ghmc li{margin:0 !important;list-style:none !important;background:none}
.ghmc li::before,
.ghmc li::after{content:none}
.ghmc p{margin:0;padding:0;text-indent:0}
.ghmc h1,.ghmc h2,.ghmc h3,.ghmc h4,.ghmc h5,.ghmc h6{border:0;font-family:var(--ghmc-font)}
.ghmc a{text-decoration:none !important;color:inherit;border:0;box-shadow:none}
.ghmc a:hover,
.ghmc a:focus{text-decoration:none !important;color:inherit}
.ghmc img{border:0 !important;border-radius:0;max-width:100%;height:auto}
.ghmc svg{display:block;max-width:100%}
.ghmc__btn-arrow svg{width:26px !important;height:14px !important}
.ghmc__more svg{width:24px !important;height:14px !important}

/* ============================================================
   ФОН
   ============================================================ */
.ghmc__bg{
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-color:var(--ghmc-black);
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
}
.ghmc__bg--css::before{
  content:"";
  position:absolute;
  top:34%;
  right:-26%;
  width:80%;
  aspect-ratio:1/1;
  transform:translateY(-50%);
  background:radial-gradient(closest-side, rgba(224,52,28,.14), rgba(224,52,28,.05) 46%, transparent 72%);
  filter:blur(2px);
}
.ghmc__bg--css::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1.5px 1.5px at 88% 40%, rgba(255,150,110,.5), transparent 60%),
    radial-gradient(1px 1px   at 94% 48%, rgba(255,130,90,.4),  transparent 60%),
    radial-gradient(1.5px 1.5px at 91% 54%, rgba(255,120,70,.36), transparent 60%),
    radial-gradient(1px 1px   at 96% 36%, rgba(255,170,130,.36), transparent 60%);
}
.ghmc__arc{
  position:absolute;
  border:1px solid rgba(255,90,50,.05);
  border-radius:50%;
  pointer-events:none;
}
.ghmc__arc--1{width:520px;height:520px;top:-160px;right:-170px}

.ghmc__rail{
  position:absolute;
  top:0;
  bottom:0;
  left:12px;
  z-index:0;
  display:flex;
  align-items:center;
  pointer-events:none;
}
.ghmc__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);
}
.ghmc__rail-num{
  position:relative;
  padding:6px 0;
  background:var(--ghmc-black);
  font-size:9px;
  letter-spacing:.2em;
  color:rgba(255,255,255,.2);
}
.ghmc__vlabel{
  position:absolute;
  left:calc(var(--ghmc-pad-x) * .30);
  bottom:12%;
  z-index:0;
  display:none;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  font-size:11px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:rgba(255,255,255,.15);
  pointer-events:none;
  user-select:none;
}

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

/* ============================================================
   РАСКЛАДКА
   ============================================================ */
.ghmc__top{
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  align-items:center;
}
.ghmc__row{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--ghmc-gap);
  margin-top:var(--ghmc-gap);
}
.ghmc__featured-wrap{display:block}

/* ============================================================
   ШАПКА
   ============================================================ */
.ghmc__head{
  position:relative;
  padding:14px 0 6px 26px;
}
.ghmc__ghost{
  position:absolute;
  top:-34px;
  left:-4px;
  z-index:-1;
  display:block;
  font-weight:700;
  font-size:clamp(54px, 12vw, 150px);
  line-height:1;
  letter-spacing:.05em;
  text-transform:uppercase;
  white-space:nowrap;
  color:rgba(255,255,255,.04);
  user-select:none;
}
.ghmc__kicker{
  display:block;
  margin-bottom:16px;
  font-weight:700;
  font-size:clamp(11px, .92vw, 15px);
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--ghmc-gold);
}
.ghmc__title{
  margin:0;
  font-weight:700;
  font-size:clamp(28px, 3.4vw, 52px);
  line-height:1.12;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--ghmc-title);
}
.ghmc__subtitle{
  max-width:44ch;
  margin-top:20px;
  font-weight:300;
  font-size:clamp(15px, 1.32vw, 21px);
  line-height:1.55;
  color:var(--ghmc-muted);
  text-wrap:pretty;
}
.ghmc__head::before{
  content:"";
  position:absolute;
  top:4px;
  bottom:6px;
  left:0;
  width:2px;
  background:linear-gradient(to bottom, var(--ghmc-red), rgba(224,52,28,.10));
}
.ghmc__head::after{
  content:"";
  position:absolute;
  top:-6px;
  left:-2.5px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--ghmc-red);
  box-shadow:0 0 10px 2px rgba(224,52,28,.5);
}

.ghmc__btn{
  display:inline-grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  margin-top:30px;
  padding:16px 24px;
  border:1px solid rgba(224,52,28,.55);
  border-radius:2px;
  color:#fff;
  transition:border-color .3s ease, background-color .3s ease;
}
.ghmc__btn:hover{border-color:var(--ghmc-red);background:rgba(224,52,28,.08)}
.ghmc__btn:focus-visible{outline:2px solid var(--ghmc-red);outline-offset:3px}
.ghmc__btn-text{
  font-weight:400;
  font-size:clamp(12px, .92vw, 15px);
  letter-spacing:.14em;
  text-transform:uppercase;
  white-space:nowrap;
}
.ghmc__btn-arrow{display:flex;align-items:center;color:var(--ghmc-red);transition:transform .3s ease}
.ghmc__btn:hover .ghmc__btn-arrow{transform:translateX(4px)}

/* ============================================================
   КАРТОЧКА (фото слева + текст справа)
   ============================================================ */
.ghmc__card{
  position:relative;
  display:grid;
  grid-template-columns:44% 1fr;
  overflow:hidden;
  border:1px solid var(--ghmc-hairline);
  border-radius:var(--ghmc-radius);
  background:var(--ghmc-panel);
  transition:border-color .35s ease, transform .35s ease;
}
.ghmc__card:hover{border-color:rgba(224,52,28,.3)}

.ghmc__media{
  position:relative;
  overflow:hidden;
  background:#0c0e10;
}
.ghmc__media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .55s ease;
}
.ghmc__card:hover .ghmc__media img{transform:scale(1.04)}
.ghmc__media::after{           /* растушёвка к тексту */
  content:"";
  position:absolute;
  inset:0 0 0 auto;
  width:38%;
  background:linear-gradient(to right, transparent, var(--ghmc-panel));
  pointer-events:none;
}
.ghmc__media--empty{
  background:
    linear-gradient(135deg, rgba(224,52,28,.12), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 6px, transparent 6px 12px),
    #0c0e10;
}

.ghmc__body{
  display:flex;
  flex-direction:column;
  padding:clamp(22px, 2.2vw, 38px);
}

.ghmc__date{
  font-weight:400;
  font-size:clamp(10px, .78vw, 13px);
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ghmc-date);
}
.ghmc__card-title{
  margin:14px 0 0;
  font-weight:700;
  line-height:1.28;
  color:var(--ghmc-title);
  overflow-wrap:anywhere;
}
.ghmc__sep{
  width:26px;
  height:2px;
  margin:16px 0 0;
  background:var(--ghmc-red);
}
.ghmc__excerpt{
  margin-top:16px;
  font-weight:300;
  line-height:1.6;
  color:var(--ghmc-text);
  text-wrap:pretty;
}
.ghmc__more{
  display:flex;
  align-items:center;
  margin-top:auto;
  padding-top:22px;
  color:var(--ghmc-red);
  transition:transform .3s ease;
}
.ghmc__card:hover .ghmc__more{transform:translateX(4px)}

.ghmc__link::after{content:"";position:absolute;inset:0}
.ghmc__card:has(.ghmc__link:focus-visible){outline:2px solid var(--ghmc-red);outline-offset:3px}

/* --- featured (большая) --- */
.ghmc__card--featured{min-height:clamp(260px, 26vw, 320px)}
.ghmc__card--featured .ghmc__card-title{font-size:clamp(20px, 1.7vw, 27px)}
.ghmc__card--featured .ghmc__excerpt{font-size:clamp(14px, 1.05vw, 17px)}

/* --- обычная (в ряду) --- */
.ghmc__card--sm{min-height:clamp(240px, 21vw, 305px)}
.ghmc__card--sm .ghmc__card-title{font-size:clamp(16px, 1.25vw, 20px)}
.ghmc__card--sm .ghmc__excerpt{font-size:clamp(13px, .9vw, 15px)}
.ghmc__card--sm .ghmc__body{padding:clamp(18px, 1.8vw, 26px)}

.ghmc__empty{padding:32px 0;color:rgba(255,255,255,.42);font-size:15px}

/* ============================================================
   ПЛАНШЕТ / ДЕСКТОП
   ============================================================ */
@media (min-width:640px){
  .ghmc{--ghmc-pad-x:40px}
  .ghmc__head{padding:16px 0 6px 30px}
  .ghmc__row{grid-template-columns:1fr 1fr}
}

@media (min-width:1000px){
  .ghmc{
    --ghmc-pad-x:clamp(48px, 8.25vw, 138px);
    --ghmc-gap:18px;
    padding-top:54px;
    padding-bottom:64px;
  }
  .ghmc__rail{left:calc(var(--ghmc-pad-x) * .34)}
  .ghmc__vlabel{display:block}

  /* шапка слева, большая карточка справа */
  .ghmc__top{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:40px;align-items:center}
  .ghmc__head{padding:20px 0 6px 34px}
  .ghmc__ghost{top:-48px;left:-6px;font-size:clamp(96px, 9vw, 160px)}

  .ghmc__row{grid-template-columns:repeat(3,1fr)}

  .ghmc__card:hover{transform:translateY(-3px)}
  .ghmc__card--featured{min-height:320px}
}

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