/**
 * ГЛАВ-ХИРУРГ — Дорожная карта
 * Все правила изолированы внутри .ghmr
 */

.ghmr{
  /* --- палитра (снята пипеткой с макета) --- */
  --ghmr-black:    #08080a;
  --ghmr-panel:    #111113;
  --ghmr-hairline: rgba(255,180,150,.09);
  --ghmr-red:      #ff5228;   /* колонка «поставленные»  */
  --ghmr-amber:    #ffa348;   /* колонка «выполненные»   */
  --ghmr-text:     #ececea;
  --ghmr-muted:    #9a9694;
  --ghmr-date:     #bdbbb8;

  --ghmr-accent:   var(--ghmr-red);   /* переопределяется на колонке */

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

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

/* --- сброс стилей темы, только внутри секции --- */
.ghmr,
.ghmr *,
.ghmr *::before,
.ghmr *::after{box-sizing:border-box}

.ghmr ul,
.ghmr ol{margin:0 !important;padding:0 !important;list-style:none !important;background:none}
.ghmr li{margin:0 !important;list-style:none !important;background:none}
.ghmr li::before,
.ghmr li::after{content:none}
.ghmr p{margin:0;padding:0;text-indent:0}
.ghmr h1,.ghmr h2,.ghmr h3,.ghmr h4,.ghmr h5,.ghmr h6{border:0;font-family:var(--ghmr-font)}
.ghmr a{text-decoration:none !important;color:inherit;border:0;box-shadow:none}
.ghmr a:hover,
.ghmr a:focus{text-decoration:none !important;color:inherit}
.ghmr svg{display:block;max-width:100%}
.ghmr img{border:0 !important;border-radius:0}
/* защита от тем, задающих svg{width/height:...!important} */
.ghmr__panel-icon svg{width:100% !important;height:100% !important}
.ghmr__marker--check svg{width:34px !important;height:34px !important}
.ghmr__date svg{width:16px !important;height:16px !important}
.ghmr__done-mark svg{width:100% !important;height:100% !important}
.ghmr__note-icon svg{width:100% !important;height:100% !important}
.ghmr__button-arrow svg{width:30px !important;height:16px !important}

/* ============================================================
   ФОН
   ============================================================ */
.ghmr__bg{
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-color:var(--ghmr-black);
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
}
.ghmr__bg--css::before{
  content:"";
  position:absolute;
  top:8%;
  right:-24%;
  width:80%;
  aspect-ratio:1/1;
  transform:translateY(-50%);
  background:radial-gradient(closest-side, rgba(255,82,40,.14), rgba(255,82,40,.05) 46%, transparent 72%);
  filter:blur(2px);
}
.ghmr__bg--css::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1.5px 1.5px at 88% 10%, rgba(255,150,110,.55), transparent 60%),
    radial-gradient(1px 1px   at 94% 18%, rgba(255,130,90,.45),  transparent 60%),
    radial-gradient(1.5px 1.5px at 91% 24%, rgba(255,120,70,.40), transparent 60%),
    radial-gradient(1px 1px   at 97% 7%,  rgba(255,170,130,.40), transparent 60%),
    radial-gradient(1px 1px   at 83% 16%, rgba(255,120,70,.30),  transparent 60%);
}
.ghmr__arc{
  position:absolute;
  border:1px solid rgba(255,90,50,.05);
  border-radius:50%;
  pointer-events:none;
}
.ghmr__arc--1{width:360px;height:360px;left:-190px;bottom:40px}
.ghmr__arc--2{width:640px;height:640px;left:-380px;bottom:-160px;border-color:rgba(255,90,50,.03)}

.ghmr__rail{
  position:absolute;
  top:0;
  bottom:0;
  left:12px;
  z-index:0;
  display:flex;
  align-items:center;
  pointer-events:none;
}
.ghmr__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);
}
.ghmr__rail-num{
  position:relative;
  padding:6px 0;
  background:var(--ghmr-black);
  font-size:9px;
  letter-spacing:.2em;
  color:rgba(255,255,255,.2);
}
.ghmr__rail-num::after{
  content:"";
  position:absolute;
  top:50%;
  left:calc(100% + 4px);
  width:12px;
  height:1px;
  background:rgba(255,255,255,.16);
}

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

/* ============================================================
   ШАПКА
   ============================================================ */
.ghmr__head{
  position:relative;
  padding:36px 0 30px 26px;
}
.ghmr__ghost{
  position:absolute;
  top:-24px;
  left:-4px;
  z-index:-1;
  display:block;
  font-weight:700;
  font-size:clamp(48px, 12vw, 116px);
  line-height:1;
  letter-spacing:.03em;
  text-transform:uppercase;
  white-space:nowrap;
  color:rgba(255,255,255,.035);
  user-select:none;
}
.ghmr__title{
  margin:0;
  font-weight:700;
  font-size:clamp(30px, 3.6vw, 60px);
  line-height:1.1;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#fff;
}
.ghmr__subtitle{
  max-width:64ch;
  margin-top:14px;
  font-weight:300;
  font-size:clamp(14px, 1.16vw, 20px);
  line-height:1.5;
  color:var(--ghmr-muted);
  text-wrap:pretty;
}
.ghmr__subtitle-lead{
  display:block;
  margin-bottom:6px;
  font-weight:700;
  font-size:clamp(13px, 1vw, 17px);
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--ghmr-amber);
}
.ghmr__head::before{
  content:"";
  position:absolute;
  top:2px;
  bottom:30px;
  left:0;
  width:2px;
  background:linear-gradient(to bottom, var(--ghmr-red), rgba(255,82,40,.12));
}
.ghmr__head::after{
  content:"";
  position:absolute;
  top:-14px;
  left:-2.5px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--ghmr-red);
  box-shadow:0 0 9px 1px rgba(255,82,40,.45);
}

/* ============================================================
   ПАНЕЛИ
   ============================================================ */
.ghmr__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

.ghmr__panel{
  --ghmr-accent:var(--ghmr-red);
  position:relative;
  padding:24px clamp(18px,2vw,30px) 28px;
  border:1px solid var(--ghmr-hairline);
  border-radius:var(--ghmr-radius);
  background:var(--ghmr-panel);
}
.ghmr__panel--done{--ghmr-accent:var(--ghmr-amber)}

.ghmr__panel-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding-bottom:16px;
  border-bottom:1px solid var(--ghmr-accent);
  border-image:linear-gradient(90deg, transparent, var(--ghmr-accent) 18%, var(--ghmr-accent) 82%, transparent) 1;
}
.ghmr__panel-icon{
  flex:0 0 auto;
  width:34px;
  height:34px;
  color:var(--ghmr-accent);
}
.ghmr__panel-icon svg{width:100%;height:100%}
.ghmr__panel-title{
  margin:0;
  font-weight:700;
  font-size:clamp(15px, 1.3vw, 20px);
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#fff;
}

/* ============================================================
   СПИСОК ЗАДАЧ
   ============================================================ */
.ghmr__tasks{
  position:relative;
  margin-top:8px;
}
/* вертикальная пунктирная линия-таймлайн (только у нумерованной колонки) */
.ghmr__tasks--numbered::before{
  content:"";
  position:absolute;
  left:19px;
  top:52px;
  bottom:44px;
  width:1px;
  background:repeating-linear-gradient(to bottom,
    rgba(255,82,40,.5) 0 4px, transparent 4px 9px);
}

.ghmr__task{
  position:relative;
  display:grid;
  grid-template-columns:38px auto minmax(0,1fr);
  column-gap:16px;
  align-items:start;
  padding:18px 0;
}
.ghmr__task + .ghmr__task{border-top:1px solid rgba(255,255,255,.04)}

.ghmr__marker{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  margin-top:2px;
  border-radius:50%;
  background:var(--ghmr-panel);
}
.ghmr__marker--num{
  border:1.5px solid var(--ghmr-accent);
  font-weight:700;
  font-size:14px;
  letter-spacing:.02em;
  color:var(--ghmr-accent);
}
.ghmr__marker--check{color:var(--ghmr-accent)}
.ghmr__marker--check svg{width:34px;height:34px}

/* миниатюра задачи */
.ghmr__thumb{
  flex:0 0 auto;
  width:clamp(120px, 12vw, 184px);
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:8px;
  background:#0d1013;
}
.ghmr__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.ghmr__task:hover .ghmr__thumb img{transform:scale(1.05)}

.ghmr__task-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:
    "title  meta"
    "desc   meta";
  column-gap:14px;
  align-items:start;
  min-width:0;
  padding-top:1px;
}
.ghmr__task-title{
  grid-area:title;
  margin:0;
  font-weight:700;
  font-size:clamp(15px, 1.12vw, 18px);
  line-height:1.28;
  letter-spacing:.01em;
  color:#fff;
  overflow-wrap:anywhere;
}
.ghmr__task-title a{color:inherit;transition:color .25s ease}
.ghmr__task:hover .ghmr__task-title a{color:var(--ghmr-accent)}
.ghmr__task-desc{
  grid-area:desc;
  margin-top:7px;
  font-weight:300;
  font-size:clamp(13px, .92vw, 15px);
  line-height:1.5;
  color:var(--ghmr-muted);
  text-wrap:pretty;
}

/* правая мета-колонка: дата сверху, галочка снизу (в колонке «выполненные») */
.ghmr__meta{
  grid-area:meta;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:18px;
  padding-top:2px;
}
.ghmr__date{
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  font-weight:400;
  font-size:clamp(11px, .82vw, 13px);
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--ghmr-date);
}
.ghmr__panel--done .ghmr__date{color:var(--ghmr-amber)}
.ghmr__date svg{
  width:16px;
  height:16px;
  flex:0 0 auto;
  color:var(--ghmr-accent);
}
.ghmr__done-mark{
  width:30px;
  height:30px;
  color:var(--ghmr-amber);
}
.ghmr__done-mark svg{width:100%;height:100%}

.ghmr__empty{
  padding:22px 0 6px;
  color:rgba(255,255,255,.4);
  font-size:14px;
}

/* кликабельность всей строки */
.ghmr__task-link::after{
  content:"";
  position:absolute;
  inset:0;
}
.ghmr__task:has(.ghmr__task-link:focus-visible){outline:2px solid var(--ghmr-accent);outline-offset:2px;border-radius:6px}

/* ============================================================
   НИЖНИЙ БЛОК «ЦЕЛЬ / ПРОГРЕСС»
   ============================================================ */
.ghmr__notes{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  margin-top:20px;
  border:1px solid var(--ghmr-hairline);
  border-radius:var(--ghmr-radius);
  background:var(--ghmr-panel);
  overflow:hidden;
}
.ghmr__note{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  column-gap:20px;
  align-items:center;
  padding:26px clamp(20px,2.4vw,34px);
}
.ghmr__note + .ghmr__note{border-top:1px solid rgba(255,255,255,.06)}
.ghmr__note-icon{
  flex:0 0 auto;
  width:clamp(56px, 5vw, 74px);
  height:clamp(56px, 5vw, 74px);
  color:var(--ghmr-red);
}
.ghmr__note-icon svg{width:100%;height:100%}
.ghmr__note-title{
  margin:0 0 8px;
  font-weight:700;
  font-size:clamp(15px, 1.25vw, 19px);
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ghmr-red);
}
.ghmr__note-text{
  font-weight:300;
  font-size:clamp(14px, 1vw, 16px);
  line-height:1.55;
  color:var(--ghmr-muted);
  text-wrap:pretty;
}

/* ============================================================
   КНОПКА
   ============================================================ */
.ghmr__footer{
  display:flex;
  justify-content:center;
  margin-top:36px;
}
.ghmr__button{
  display:grid;
  grid-template-columns:1fr 1px 62px;
  align-items:center;
  min-width:280px;
  max-width:100%;
  height:60px;
  border:1px solid rgba(255,82,40,.4);
  border-radius:2px;
  color:#fff;
  transition:border-color .3s ease, background-color .3s ease;
}
.ghmr__button:hover{
  border-color:rgba(255,82,40,.75);
  background:rgba(255,82,40,.07);
}
.ghmr__button:focus-visible{outline:2px solid var(--ghmr-red);outline-offset:3px}
.ghmr__button-text{
  padding:0 22px;
  font-weight:400;
  font-size:clamp(12px, .95vw, 16px);
  letter-spacing:.12em;
  text-transform:uppercase;
  text-align:center;
}
.ghmr__button-sep{align-self:stretch;width:1px;background:rgba(255,82,40,.32)}
.ghmr__button-arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ghmr-red);
  transition:transform .3s ease;
}
.ghmr__button-arrow svg{width:30px;height:16px}
.ghmr__button:hover .ghmr__button-arrow{transform:translateX(4px)}

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

@media (min-width:960px){
  .ghmr__grid{grid-template-columns:1fr 1fr;gap:21px}
  .ghmr__notes{grid-template-columns:1fr 1fr}
  .ghmr__note + .ghmr__note{border-top:0;border-left:1px solid rgba(255,255,255,.06)}
}

@media (min-width:1000px){
  .ghmr{--ghmr-pad-x:clamp(48px, 8.5vw, 122px);padding-top:58px;padding-bottom:64px}
  .ghmr__rail{left:calc(var(--ghmr-pad-x) * .34)}
  .ghmr__head{padding:44px 0 40px 40px}
  .ghmr__head::before{top:6px;bottom:40px}
  .ghmr__head::after{top:-10px}
  .ghmr__ghost{top:-30px;left:-6px;font-size:clamp(84px, 8vw, 150px)}
  .ghmr__panel{padding:26px 30px 30px}
  .ghmr__footer{margin-top:48px}
  .ghmr__button{grid-template-columns:1fr 1px 74px;min-width:478px;height:66px}
}

/* узкие экраны: фото компактнее, дата под текстом */
@media (max-width:520px){
  .ghmr__task{grid-template-columns:32px auto minmax(0,1fr);column-gap:12px}
  .ghmr__thumb{width:84px}
  .ghmr__task-body{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"title" "desc" "meta";
  }
  .ghmr__meta{align-items:flex-start;gap:10px;margin-top:8px}
  .ghmr__marker{width:32px;height:32px;font-size:12px}
  .ghmr__note{grid-template-columns:1fr;justify-items:start;gap:14px}
}

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