:root{
  --bg:#f4f6f8;
  --panel:#ffffff;
  --text:#111827;
  --sub:#4b5563;
  --line:#e5e7eb;
  --accent:#2f7d68;
  --accent2:#1f6f5c;
  --muted-section:#e8eef1;
  --radius:14px;
  --shadow: 0 8px 24px rgba(17,24,39,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f6f8fb 0%, var(--bg) 60%);
  color: var(--text);
  line-height: 1.55;
}

a{color:inherit;text-decoration:none}
.container{max-width:1240px;margin:0 auto;padding:0 20px}

.section{padding:36px 0}
.section--cta{background:transparent}

/* Тёплая «подложка» для секций */
.section--muted{
  background: var(--muted-section);
  border-top: 1px solid rgba(148,163,184,.42);
  border-bottom: 1px solid rgba(148,163,184,.42);
}

.home-section.section--muted{
  background: var(--muted-section);
  border-top: 1px solid rgba(148,163,184,.42);
  border-bottom: 1px solid rgba(148,163,184,.42);
}

h1{font-size:2.25rem; line-height:1.2; letter-spacing:-.2px; margin:0 0 12px}
h2{font-size:1.5rem; letter-spacing:-.1px; margin:0 0 14px}
h3{margin:0 0 10px}

.lead{
  color:var(--sub);
  font-size:1.12rem;
  max-width:72ch;
  margin:0;
}

/* =========================
   HEADER (DESKTOP)
   ========================= */
.header{
  position:sticky;
  top:0;
  z-index:1200;
  background: var(--muted-section);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:12px 0;
}

.brand{
  display:flex;
  flex-direction:column;
  flex-shrink:0;
}
.brand__title{font-weight:800;letter-spacing:.2px}
.brand__sub{font-size:.86rem;color:var(--sub)}

/* nav center */
.nav{
  flex:1;
  display:flex;
  justify-content:center;
  position:relative;
}

.nav__toggle{
  display:none;
  background:rgba(255,255,255,.7);
  border:1px solid var(--line);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  font-weight:800;
}

/* desktop menu list */
.nav__menu{
  display:flex;
  align-items:center;
  gap:22px;
  list-style:none;
  margin:0;
  padding:0;
}

/* premium underline hover */
.nav__menu a{
  position:relative;
  color:var(--sub);
  padding:8px 6px;
  border-radius:10px;
  transition: color .18s ease;
}

.nav__menu a:hover{
  background:transparent;
  color:var(--text);
}

.nav__menu a::after{
  content:"";
  position:absolute;
  left:6px;
  right:6px;
  bottom:4px;
  height:2px;
  border-radius:2px;
  background: linear-gradient(90deg, transparent, rgba(47,125,104,.9), transparent);
  transform: scaleX(0);
  transform-origin:center;
  transition: transform .18s ease;
  opacity:.9;
}

.nav__menu a:hover::after{
  transform: scaleX(1);
}

.nav__menu a.is-active{
  background:transparent;
  color:var(--text);
  font-weight:800;
}

.nav__menu a.is-active::after{
  transform: scaleX(1);
  background: linear-gradient(90deg, transparent, rgba(47,125,104,1), transparent);
}

/* CTA icons right + divider */
.header__cta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
  position:relative;
  padding-left:18px;
}

.header__cta::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:1px;
  height:26px;
  background: rgba(17,24,39,.12);
  border-radius:1px;
}

.header__cta::after{
  content:"";
  position:absolute;
  left:-6px;
  top:50%;
  transform:translateY(-50%);
  width:13px;
  height:32px;
  background: radial-gradient(circle, rgba(47,125,104,.18), transparent 70%);
  filter: blur(2px);
  opacity:.55;
  pointer-events:none;
}

/* =========================
   Premium round icon buttons
   glass + glow + spring
   ========================= */
.icon-btn{
  width:46px;
  height:46px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(229,231,235,.85);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 10px 26px rgba(17,24,39,.10),
    inset 0 1px 0 rgba(255,255,255,.55);

  transition:
    transform .18s cubic-bezier(.2,.9,.2,1.3),
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease;

  will-change: transform;
  position:relative;
  overflow:hidden;
}

.icon-btn::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 55%);
  transform: rotate(12deg);
  opacity:.9;
  pointer-events:none;
}

.icon-btn svg{
  width:20px;
  height:20px;
  position:relative;
  z-index:1;
}

.icon-btn:hover{
  transform: translateY(-2px) scale(1.06);
  box-shadow:
    0 16px 34px rgba(17,24,39,.14),
    0 0 0 6px rgba(47,125,104,.08),
    inset 0 1px 0 rgba(255,255,255,.65);
  border-color: rgba(47,125,104,.28);
}

.icon-btn:active{
  transform: translateY(0) scale(.98);
  transition-duration:.08s;
}

.icon-btn:focus-visible{
  outline:none;
  box-shadow:
    0 16px 34px rgba(17,24,39,.14),
    0 0 0 4px rgba(47,125,104,.25),
    inset 0 1px 0 rgba(255,255,255,.65);
}

.icon-btn--phone{ color: var(--text); }

.icon-btn--telegram{
  color:#fff;
  border-color: rgba(47,125,104,.55);
  background: rgba(47,125,104,.78);
  box-shadow:
    0 12px 30px rgba(17,24,39,.14),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.icon-btn--telegram:hover{
  background: rgba(31,111,92,.88);
  box-shadow:
    0 18px 40px rgba(17,24,39,.18),
    0 0 0 6px rgba(47,125,104,.16),
    0 0 22px rgba(47,125,104,.22),
    inset 0 1px 0 rgba(255,255,255,.22);
  border-color: rgba(47,125,104,.75);
}

/* =========================
   Cards / Hero / Layout
   ========================= */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  transition: transform .06s ease, background .2s ease;
  font-weight:700;
}
.btn:hover{background:#f3f4f6}
.btn:active{transform:translateY(1px)}

.btn--primary{
  background: var(--accent);
  border-color: var(--accent);
  color:#fff;
}
.btn--primary:hover{background: var(--accent2)}

.btn--ghost{
  background: rgba(255,255,255,.65);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.95);
}

.card{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: 18px;
  padding:20px;
  box-shadow: 0 10px 28px rgba(17,24,39,.08);
}
.card:hover{box-shadow: 0 14px 36px rgba(17,24,39,.10)}
.card p{margin:0 0 12px}
.card p:last-child{margin-bottom:0}

.hero{padding-top:34px}

.hero__grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:16px;
  align-items:start;
}

.hero__grid--compact{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:24px;
  align-items:center;
}

.hero__image{
  display:flex;
  justify-content:center;
  margin-top:10px;
}

.hero__image img{
  width:100%;
  max-width:380px;
  height:auto;
  border-radius:18px;
  display:block;
  box-shadow: 0 12px 34px rgba(17,24,39,.14);
}

.hero__kicker{
  margin: 8px 0 14px;
  color: var(--sub);
  max-width: 72ch;
}
.hero__lead{
  display:grid;
  gap:12px;
}
.hero__lead p{
  margin:0;
}
.hero__note{
  margin: 12px 0 0;
  color: var(--sub);
  font-size: .95rem;
}
.hero__lead .hero__note{
  margin-top:2px;
  line-height:1.45;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:18px 0 0;
}
.actions--stack{flex-direction:column}
.actions .btn{min-height:44px}

.chips{
  display:flex;gap:8px;flex-wrap:wrap;
  list-style:none;padding:0;margin:16px 0 0;
}
.chips li{
  font-size:.9rem;color:var(--sub);
  border:1px solid var(--line);
  padding:6px 10px;border-radius:999px;
  background:#fff;
}

.grid2{display:grid;grid-template-columns: 1fr 1fr;gap:16px}
.grid3{display:grid;grid-template-columns: repeat(3, 1fr);gap:16px}
.grid2--top{align-items:start}

.home-intro-grid{
  align-items:stretch;
}

.home-intro-grid > div{
  display:flex;
  flex-direction:column;
}

.home-intro-grid h2{
  margin-bottom:12px;
}

.home-intro-grid .card{
  flex:1;
}

.list{margin:10px 0 0;padding-left:18px;color:var(--sub)}
.list li{margin:6px 0}

.list--2col{
  columns: 2;
  column-gap: 22px;
}
.list--2col li{break-inside: avoid;margin:0 0 8px}

.steps--compact{margin:0;padding-left:18px}
.steps--compact li{margin:0 0 10px}
.steps--compact li:last-child{margin-bottom:0}

.link{color:var(--accent);font-weight:800}
.link:hover{text-decoration:underline}

.muted{color:var(--sub)}
.small{font-size:.9rem}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:26px 0;
  background: transparent;
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:16px;
}
.footer__title{font-weight:900;margin-bottom:8px}
.footer__links{list-style:none;margin:0;padding:0}
.footer__links li{margin:8px 0}
.footer__links a{color:var(--sub)}
.footer__links a:hover{color:var(--text)}

/* =========================
   MOBILE: Off-canvas menu (mnav)
   ========================= */

/* скрыто по умолчанию на desktop */
.mnav-overlay,
.mnav{ display:none; }

@media (max-width: 860px){

  .container{padding:0 16px}

  /* прячем desktop menu и CTA в шапке */
  .nav__menu{ display:none; }
  .header__cta{ display:none; }

  /* показываем кнопку */
  .nav__toggle{ display:inline-flex; align-items:center; gap:8px; }

  /* на мобилке убираем blur у хедера (чтобы не было глюков с кликом) */
  .header{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    background: var(--muted-section);
  }

  /* overlay */
  .mnav-overlay{
    display:block;
    position:fixed;
    inset:0;
    background: rgba(17,24,39,.38);
    opacity:0;
    pointer-events:none;
    transition: opacity .22s ease;
    z-index:2000;
  }

  .mnav-overlay.is-open{
    opacity:1;
    pointer-events:auto;
  }

  /* drawer */
  .mnav{
    display:flex;
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(86vw, 360px);

    background: var(--muted-section);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-left:1px solid rgba(229,231,235,.9);
    box-shadow: -24px 0 60px rgba(17,24,39,.22);

    transform: translateX(110%);
    transition: transform .24s ease;
    z-index:2001;

    flex-direction:column;
    padding:16px;
  }

  .mnav.is-open{ transform: translateX(0); }

  .mnav__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-bottom:12px;
    border-bottom:1px solid rgba(229,231,235,.9);
  }

  .mnav__brand .mnav__title{ font-weight:900; letter-spacing:.2px; }
  .mnav__brand .mnav__sub{ color:var(--sub); font-size:.9rem; }

  .mnav__close{
    width:42px;height:42px;
    border-radius:14px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.85);
    cursor:pointer;
    font-size:18px;
    line-height:1;
  }
  .mnav__close:active{ transform: translateY(1px); }

  .mnav__links{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:14px 0;
  }

  .mnav__links a{
    display:block;
    padding:12px 12px;
    border-radius:14px;
    color:var(--text);
    border:1px solid transparent;
  }

  .mnav__links a:hover{
    background: rgba(47,125,104,.08);
    border-color: rgba(47,125,104,.18);
  }

  .mnav__links a.is-active{
    background: rgba(47,125,104,.12);
    border-color: rgba(47,125,104,.22);
    color: var(--accent);
    font-weight:800;
  }

  .mnav__cta{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:auto;
    padding-top:12px;
  }
  .mnav__cta .btn{ width:100%; min-height:46px; }

  .mnav__note{
    margin-top:10px;
    color:var(--sub);
    font-size:.92rem;
    line-height:1.35;
  }

  /* mobile layout */
  .hero{padding-top:20px}

  .hero__grid,
  .hero__grid--compact{
    grid-template-columns:1fr;
    gap:18px;
    align-items:start;
  }

  .hero__image{
    justify-content:flex-start;
    margin-top:0;
  }

  .hero__image img{ max-width:520px; }

  h1{font-size:1.6rem; line-height:1.25}
  .lead{font-size:1rem}

  .actions{ flex-direction:column; }
  .actions .btn{ width:100%; min-height:46px; }

  .grid2,.grid3{ grid-template-columns:1fr; }
  .list--2col{ columns:1; }

  .footer__grid{ grid-template-columns:1fr; gap:20px; }
  .footer{ padding:20px 0; }
  .section{ padding:28px 0; }
}

@media (max-width: 480px){
  h1{font-size:1.45rem}
  h2{font-size:1.25rem}
  .section{padding:26px 0}
  .btn{font-size:.95rem}
}
.problems-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.problem-item{
  display:flex;
  gap:16px;
  padding:20px;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--line);
  transition:.2s ease;
}

.problem-item:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 32px rgba(17,24,39,.08);
}

.problem-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  background:rgba(47,125,104,.1);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:var(--accent);
  font-size:18px;
}

.problem-item h3{
  margin:0 0 6px;
  font-size:1rem;
}

.problem-item p{
  margin:0;
  color:var(--sub);
  font-size:.95rem;
}

@media(max-width:860px){
  .problems-grid{
    grid-template-columns:1fr;
  }
}
/* =========================
   Premium Process Timeline
   ========================= */

.process{
  position: relative;
  display: grid;
  gap: 28px;
  margin-top: 24px;
  padding-left: 40px;
}

.process::before{
  content:"";
  position:absolute;
  left:18px;
  top:0;
  bottom:0;
  width:2px;
  background: linear-gradient(
    to bottom,
    rgba(47,125,104,.35),
    rgba(47,125,104,.08)
  );
}

.process-item{
  display:grid;
  grid-template-columns: 60px 1fr;
  gap:18px;
  align-items:start;
  position:relative;
}

.process-num{
  width:36px;
  height:36px;
  border-radius:14px;
  background: rgba(47,125,104,.12);
  color: var(--accent);
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 0 0 6px rgba(47,125,104,.06);
  transition:.2s ease;
}

.process-content h3{
  margin:0 0 6px;
}

.process-content p{
  margin:0;
  color: var(--sub);
}

.process-item:hover .process-num{
  transform: scale(1.08);
  background: rgba(47,125,104,.18);
}

@media (max-width:860px){

  .process{
    padding-left: 32px;
    gap:22px;
  }

  .process-item{
    grid-template-columns: 44px 1fr;
    gap:14px;
  }

  .process-num{
    width:32px;
    height:32px;
    border-radius:12px;
    font-size:.9rem;
  }
}
/* HERO with image (like screenshot) */
.hero__grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero__content{ min-width: 0; }

.hero__media{
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f5f7;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.hero__img{
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1 / 1;      /* можно 1/1 или 3/4 — подберите под фото */
  object-fit: cover;
}

/* Responsive */
@media (max-width: 960px){
  .hero__grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero__media{
    order: -1; /* фото сверху на мобилке; уберите, если нужно снизу */
  }
}
/* HERO GRID */
.hero__grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* текст шире, фото компактнее */
  gap: 48px;
  align-items: center;
}

/* Фото-контейнер */
.hero__image{
  width: 100%;
  max-width: 380px;      /* ограничиваем, чтобы не было огромным */
  justify-self: end;     /* прижимаем вправо */
  
  border-radius: 20px;
  overflow: hidden;

  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  background: #f3f5f7;
}

/* Само изображение */
.hero__image img{
  width: 100%;
  height: 100%;
  display: block;

  aspect-ratio: 1 / 1;   /* вертикальное фото как на скрине */
  object-fit: cover;
}
@media (max-width: 960px){
  .hero__grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__image{
    max-width: 100%;
    justify-self: center;
  }
}
/* =========================
   HERO (FINAL) — как на скрине, фото квадратное
   ВАЖНО: этот блок должен быть В САМОМ КОНЦЕ style.css
   ========================= */

/* переопределяем старые hero__grid / hero__grid--compact */
.hero__grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* текст шире, фото компактнее */
  gap: 48px;
  align-items: center;
}

.hero__grid--compact{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

/* карточка под фото */
.hero__image{
  width: 100%;
  max-width: 420px;      /* размер как на скрине (можно 380–460) */
  justify-self: end;     /* прижать к правому краю */
  margin-top: 0;         /* убираем старый сдвиг вниз */
  display: block;        /* убираем flex из старых правил */

  border-radius: 22px;
  overflow: hidden;
  background: #f3f5f7;
  border: 1px solid rgba(229,231,235,.9);

  box-shadow: 0 20px 40px rgba(17,24,39,.08);
}

/* квадратное изображение */
.hero__image img{
  width: 100%;
  height: 100%;
  display: block;

  aspect-ratio: 1 / 1;  /* КВАДРАТ */
  object-fit: cover;
}

/* мелкая опциональная правка, чтобы текст не "ломался" */
.hero__text{ min-width: 0; }

/* адаптив */
@media (max-width: 960px){
  .hero__grid,
  .hero__grid--compact{
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .hero__image{
    max-width: 520px;
    justify-self: start; /* на мобилке слева, как обычно */
  }
}
/* Поднять фото на странице передержки */
.hero--inner .hero__grid,
.hero--inner .hero__grid--compact{
  align-items: center;
}
.hero--inner{
  padding-top: 34px; /* как у обычного hero */
}

/* =========================
   ARTICLE PAGES
   ========================= */
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:0 0 20px;
  color:var(--sub);
  font-size:.94rem;
}

.breadcrumbs a{
  color:var(--accent);
  font-weight:800;
}

.breadcrumbs a:hover{text-decoration:underline}

.article-hero .lead{
  max-width:68ch;
}

.article-hero__image{
  margin:0;
}

.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 0;
}

.article-meta span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  border:1px solid rgba(47,125,104,.18);
  border-radius:999px;
  background:rgba(47,125,104,.08);
  color:var(--accent2);
  font-size:.94rem;
  font-weight:800;
}

.article-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:34px;
  align-items:start;
}

.article-content{
  max-width:850px;
}

.article-content > p:first-child{
  margin-top:0;
}

.article-content p,
.article-content li{
  color:var(--sub);
}

.article-content p{
  margin:0 0 16px;
}

.article-content h2{
  margin:0 0 14px;
  font-size:1.58rem;
  line-height:1.25;
}

.article-content h3{
  line-height:1.3;
}

.article-content ul,
.article-content ol{
  margin:0 0 18px;
  padding-left:22px;
}

.article-content li{
  margin:8px 0;
}

.article-content strong{
  color:var(--text);
}

.article-section{
  margin-top:34px;
}

.article-summary{
  margin-top:28px;
  padding:22px;
  border:1px solid rgba(47,125,104,.16);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(47,125,104,.08), rgba(255,255,255,.9));
  box-shadow:0 10px 28px rgba(17,24,39,.07);
}

.article-summary h2{
  margin-top:0;
}

.article-start-toc{
  margin:0 0 28px;
  padding:22px;
}

.article-start-toc h2{
  margin:0 0 14px;
}

.article-start-toc ol{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 18px;
  margin:0;
  padding-left:22px;
}

.article-start-toc li{
  margin:0;
}

.article-start-toc a{
  color:var(--accent);
  font-weight:800;
}

.article-start-toc a:hover{
  text-decoration:underline;
}

.article-section--media{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:24px;
  align-items:start;
}

.article-figure{
  margin:0;
  border-radius:18px;
  overflow:hidden;
  background:var(--panel);
  border:1px solid rgba(229,231,235,.9);
  box-shadow:0 14px 34px rgba(17,24,39,.09);
}

.article-figure img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1 / 1;
  object-fit:cover;
}

.article-figure figcaption{
  padding:12px 14px;
  color:var(--sub);
  font-size:.92rem;
  line-height:1.45;
  background:#fff;
}

.article-rhythm{
  margin:4px 0 16px;
  padding:14px 16px;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--text);
  font-weight:800;
  box-shadow:0 8px 20px rgba(17,24,39,.06);
}

.article-callout{
  margin:18px 0;
  padding:16px 18px;
  border-left:4px solid var(--accent);
  border-radius:16px;
  background:rgba(47,125,104,.08);
}

.article-callout p{
  margin:0;
  color:var(--text);
  font-weight:800;
}

.article-related{
  margin-top:34px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow);
}

.article-related h2{
  margin-top:0;
}

.article-related ul{
  margin:0;
  padding-left:20px;
}

.article-related li{
  margin:10px 0;
}

.article-related a{
  color:var(--accent);
  font-weight:800;
}

.article-related a:hover{
  text-decoration:underline;
}

/* Articles index */
.section-head{
  max-width:850px;
  margin:0 0 22px;
}

.section-head .lead{
  margin-top:6px;
}

.articles-hero .lead{
  display:grid;
  gap:12px;
}

.articles-hero .lead p{
  margin:0;
}

.articles-hero__image img{
  aspect-ratio:1 / 1;
  object-fit:cover;
}

.articles-featured{
  display:block;
}

.article-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.article-grid--featured{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.article-card{
  min-height:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.article-card h3{
  margin:0;
  line-height:1.25;
}

.article-card p{
  color:var(--sub);
  margin:0;
}

.article-card .btn{
  align-self:flex-start;
  margin-top:auto;
}

.article-card__tag{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  min-height:30px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(47,125,104,.18);
  background:rgba(47,125,104,.08);
  color:var(--accent2);
  font-size:.86rem;
  font-weight:900;
}

.articles-catalog .section-head{
  margin-bottom:10px;
}

.article-category{
  margin-top:34px;
}

.article-category__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.article-category__head h2{
  margin:0;
}

.articles-cta{
  max-width:900px;
}

.articles-cta p{
  max-width:78ch;
}

.home-articles .article-grid{
  margin-top:18px;
}

.home-articles .actions{
  margin-top:22px;
}

.article-numbered{
  counter-reset:article-step;
  list-style:none;
  padding-left:0 !important;
}

.article-numbered li{
  position:relative;
  margin:12px 0;
  padding:16px 16px 16px 54px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 22px rgba(17,24,39,.05);
}

.article-numbered li::before{
  counter-increment:article-step;
  content:counter(article-step);
  position:absolute;
  left:16px;
  top:16px;
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:rgba(47,125,104,.12);
  color:var(--accent);
  font-weight:900;
}

.article-faq{
  display:grid;
  gap:14px;
}

.article-faq h2{
  margin-bottom:0;
}

.article-faq .card h3{
  margin-bottom:8px;
}

.article-toc{
  position:sticky;
  top:96px;
}

.article-toc__title{
  margin-bottom:10px;
  font-weight:900;
}

.article-toc ol{
  margin:0;
  padding-left:18px;
}

.article-toc li{
  margin:8px 0;
  color:var(--sub);
}

.article-toc a{
  color:var(--sub);
}

.article-toc a:hover{
  color:var(--accent);
}

@media (max-width: 980px){
  .article-grid--featured{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .article-layout{
    grid-template-columns:1fr;
  }

  .article-toc--desktop{
    display:none;
  }

  .article-toc{
    position:static;
    order:-1;
  }

  .article-content{
    max-width:none;
  }
}

@media (max-width: 700px){
  .article-grid,
  .article-grid--featured{
    grid-template-columns:1fr;
  }

  .article-card .btn{
    width:100%;
  }

  .article-start-toc ol{
    grid-template-columns:1fr;
  }

  .article-section--media{
    grid-template-columns:1fr;
  }

  .article-figure{
    max-width:420px;
  }

  .article-meta span{
    width:100%;
    justify-content:center;
  }

  .article-summary,
  .article-numbered li{
    border-radius:14px;
  }

  .article-rhythm{
    font-size:.95rem;
  }
}
/* Approach card with square photo */
.approach-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(17,24,39,.08);

  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 20px;
  align-items: center;
}

.approach-card__text p{ margin: 0 0 12px; }
.approach-card__text p:last-child{ margin-bottom: 0; }

.approach-card__image{
  width: 100%;
  max-width: 320px;
  justify-self: end;

  border-radius: 18px;
  overflow: hidden;
  background: #f3f5f7;
  border: 1px solid rgba(229,231,235,.9);
  box-shadow: 0 12px 34px rgba(17,24,39,.10);
}

.approach-card__image img{
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1 / 1;   /* квадрат */
  object-fit: cover;
}

/* Mobile */
@media (max-width: 960px){
  .approach-card{
    grid-template-columns: 1fr;
  }
  .approach-card__image{
    max-width: 520px;
    justify-self: start;
  }
}
