/* ===== listing pages: cases.html («Проекты») and services.html («Решения») ===== */

/* page head — same language as the home hero */
.lh{ text-align:center; display:flex; flex-direction:column; align-items:center; padding-top:clamp(36px,5.5vw,88px); }
.lh h1{ margin:clamp(12px,1.6vw,22px) 0 0; font-size:clamp(56px,9vw,132px); font-weight:600; letter-spacing:-.05em; line-height:.95; color:var(--ink); }
.lh-lead{ margin:clamp(16px,1.8vw,26px) auto 0; max-width:32em; font-size:clamp(17px,1.4vw,20px); line-height:1.5; color:var(--mut); text-wrap:balance; }
.lh, .lh-list, .sx{ animation:lh-in .9s var(--ease) both; }
.lh-list, .sx{ animation-delay:.12s; }
@keyframes lh-in{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ .lh, .lh-list, .sx{ animation:none; } }

/* cases grid */
.lh-list{ padding-top:clamp(36px,4.4vw,64px); }

/* services: anchor chips */
.sx-nav{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:clamp(26px,3vw,40px); max-width:860px; }
.sx-nav a{ display:inline-flex; align-items:center; gap:10px; height:46px; padding:0 20px 0 16px; border-radius:99px; background:var(--bg2); font-size:15.5px; font-weight:500; color:var(--ink); transition:background .25s, color .25s; }
.sx-nav a span{ font-size:13px; font-weight:600; color:#B4B7BD; transition:color .25s; }
.sx-nav a:hover{ background:#EAF0FF; color:var(--blue); }
.sx-nav a:hover span{ color:var(--blue); }

/* services: groups — gray block with white tiles */
.sx{ display:grid; gap:12px; padding-top:clamp(40px,5vw,80px); }
.sg{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(28px,4vw,64px); padding:clamp(28px,3.6vw,56px); background:var(--bg2); border-radius:32px; scroll-margin-top:92px; }
.sg-h{ display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.sg-top{ display:flex; align-items:flex-start; justify-content:space-between; width:100%; }
.sg-ic{ width:56px; height:56px; color:var(--ink); }
.sg-ic svg{ width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.sg-n{ margin-top:-4px; font:600 clamp(40px,3.6vw,54px)/1 Onest,sans-serif; letter-spacing:-.05em; color:#D3D6DB; transition:color .35s; }
.sg:hover .sg-n{ color:var(--blue); }
.sg h2{ margin:clamp(28px,4vw,72px) 0 0; font-size:clamp(34px,3.7vw,56px); font-weight:600; letter-spacing:-.045em; line-height:1.02; color:var(--ink); }
.sg-v{ margin-top:14px; max-width:22em; font-size:clamp(17px,1.35vw,19px); line-height:1.5; color:var(--mut); }
.sg-ex{ display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; padding-top:32px; }
.sg-ex a{ display:inline-flex; align-items:center; gap:14px; min-height:50px; padding:5px 5px 5px 20px; border-radius:99px; background:#fff; font-size:15px; font-weight:500; line-height:1.25; color:var(--ink); transition:color .25s; }
.sg-ex a em{ font-style:normal; color:var(--soft); }
.sg-ex a i{ flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:var(--blue); color:#fff; transition:transform .3s var(--ease); }
.sg-ex a svg{ width:15px; height:15px; }
.sg-ex a:hover{ color:var(--blue); }
.sg-ex a:hover i{ transform:rotate(45deg); }

.sg-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:10px; align-content:start; }
.sg-list li{ display:flex; flex-direction:column; gap:8px; min-height:clamp(150px,12vw,180px); padding:clamp(22px,2.2vw,30px); background:#fff; border-radius:22px; }
.sg-list li:last-child:nth-child(odd){ grid-column:1/-1; min-height:0; }
.sg-list b{ display:flex; align-items:flex-start; gap:10px; font-weight:500; font-size:clamp(18px,1.45vw,21px); line-height:1.3; letter-spacing:-.01em; }
.sg-list b::before{ content:""; flex:none; width:8px; height:8px; margin-top:.5em; border-radius:50%; background:var(--blue); }
.sg-list p{ padding-left:18px; font-size:15.5px; line-height:1.5; color:var(--mut); }

/* bottom CTA (reuses .ctH block look) */
.lcta .ctH h2{ max-width:12em; }
.lcta .btn-l{ margin-top:clamp(28px,3.2vw,40px) !important; }

@media (max-width:1000px){
  .sg{ grid-template-columns:1fr; }
  .sg h2{ margin-top:28px; }
  .sg-ex{ padding-top:24px; }
}
@media (max-width:640px){
  .sx{ gap:8px; margin-left:calc(var(--gut) * -1); margin-right:calc(var(--gut) * -1); }
  .sg{ gap:24px; padding:28px 10px 10px; border-radius:24px; scroll-margin-top:76px; }
  .sg-h{ padding:0 10px; }
  .sg-ic{ width:44px; height:44px; }
  .sg-n{ font-size:36px; }
  .sg h2{ font-size:clamp(32px,9vw,40px); margin-top:22px; }
  .sg-v{ font-size:16.5px; }
  .sg-ex a{ width:100%; justify-content:space-between; }
  .sg-list{ grid-template-columns:1fr; gap:8px; }
  .sg-list li{ min-height:0; padding:20px; border-radius:18px; }
  .sg-list b{ font-size:18px; }
  .sx-nav{ gap:6px; }
  .sx-nav a{ height:42px; padding:0 16px 0 14px; font-size:15px; }
  .lh h1{ font-size:clamp(52px,15vw,68px); }
}

/* SEO: подзаголовок внутри H1, блок «Проекты в США и работа в России» */
.lh h1 .lh-h1s{ display:block; margin-top:.3em; font-size:.34em; letter-spacing:-.035em; line-height:1.12; text-wrap:balance; }
.lh-ru{ padding-top:clamp(48px,6vw,96px); }
.lh-ru-in{ background:var(--bg2); border-radius:32px; padding:clamp(28px,4vw,56px); }
.lh-ru h2{ font-size:clamp(28px,3vw,44px); font-weight:600; letter-spacing:-.035em; line-height:1.06; color:var(--ink); max-width:18em; text-wrap:balance; }
.lh-ru p{ margin-top:16px; max-width:44em; font-size:clamp(16px,1.25vw,18px); line-height:1.55; color:var(--mut); text-wrap:pretty; }
@media (max-width:760px){ .lh-ru-in{ border-radius:24px; padding:28px 18px 18px; } }
