/* ============================================================
   Стиль посадочных подстраниц yoji studio (услуги/направления).
   Единый визуальный язык с кейсами: светлый фон, орбы, стекло,
   синий акцент, шрифты Actay. Подключается вместе с tokens.css.
============================================================ */
:root {
  --cw: 940px;
  /* Токен из tokens.css (#8494bc) даёт 3.02:1 на белом — ниже нормы WCAG AA
     (4.5:1) для обычного текста. Переопределяем только здесь: landing.css
     подключён к статьям и услуговым страницам, а не к тёмной главной, где
     тот же токен работает на другом фоне и трогать его нельзя. */
  --yoji-slate: #3f4a70;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--yoji-bg, #f4f6fb); color: var(--yoji-ink, #0a1330);
  font-family: var(--font-body, "Actay"), system-ui, sans-serif; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: var(--yoji-blue, #013ad1); }
.wrap { max-width: var(--cw); margin: 0 auto; padding: 0 22px; }
img { max-width: 100%; }

/* фон-орбы */
.cbg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cbg span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.cbg span:nth-child(1){ width: 460px; height: 460px; top: -120px; right: -80px; background: #3b5aff; }
.cbg span:nth-child(2){ width: 420px; height: 420px; bottom: 6%; left: -140px; background: #7c8bff; opacity: .35; }

/* топбар */
.ctop { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(244,246,251,.72); border-bottom: 1px solid rgba(10,19,48,.06); }
.ctop .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
/* flex-shrink:0 обязателен на обоих: без него на тесных заголовках (кейсы
   с кнопкой «Назад») лого сжимается вплоть до нулевой ширины — img получает
   max-width:100% из общего сброса выше и на него не действует автоматический
   минимальный размер, который обычно защищает содержимое флекс-элемента. */
.ctop a.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; text-decoration: none; }
.ctop a.brand img { height: 24px; width: auto; display: block; flex-shrink: 0; }
.ctop__right { display: flex; align-items: center; gap: 16px; }
.ctop .nav { display: flex; gap: 22px; align-items: center; }
.ctop .nav a { font-size: 14px; color: var(--yoji-slate,#5a6b93); text-decoration: none; }
.ctop .nav a:hover { color: var(--yoji-blue); }
.ctop__lang { display: inline-flex; align-items: center; gap: 2px; background: rgba(10,19,48,.06); border-radius: 999px; padding: 3px; }
.ctop__lang a { font-family: var(--font-wide),sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--yoji-slate,#5a6b93); text-decoration: none; padding: 6px 10px; border-radius: 999px; line-height: 1; transition: color .15s, background .15s; }
.ctop__lang a:hover { color: var(--yoji-blue); }
.ctop__lang a.is-active { background: #fff; color: var(--yoji-ink,#0a1330); box-shadow: 0 1px 3px rgba(10,19,48,.12); }
.ctop a.cta-mini { background: var(--yoji-blue,#013ad1); color: #fff; padding: 9px 16px; border-radius: 999px;
  font-family: var(--font-wide),sans-serif; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }

/* бургер-меню (без JS, на <details>) — навигация на подстраницах */
.ctop__menu { display: none; position: relative; }
.ctop__menu > summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--yoji-ink,#0a1330);
  background: rgba(10,19,48,.06); user-select: none; }
.ctop__menu > summary::-webkit-details-marker { display: none; }
.ctop__menu[open] > summary { background: var(--yoji-blue,#013ad1); color: #fff; }
.ctop__menu-nav { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border-radius: 16px;
  box-shadow: 0 14px 44px rgba(10,19,48,.18); padding: 8px; min-width: 210px; display: flex; flex-direction: column; z-index: 40; }
.ctop__menu-nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--yoji-ink,#0a1330);
  font-size: 15px; font-weight: 600; line-height: 1.2; }
.ctop__menu-nav a:last-child { color: var(--yoji-blue,#013ad1); }
.ctop__menu-nav a:hover { background: rgba(1,58,209,.07); color: var(--yoji-blue,#013ad1); }

/* хлебные крошки */
.crumbs { font-size: 13px; color: var(--yoji-slate,#5a6b93); padding: 18px 0 0; }
.crumbs a { color: var(--yoji-slate,#5a6b93); text-decoration: none; }
.crumbs a:hover { color: var(--yoji-blue); }
.crumbs span { color: var(--yoji-ink); }

/* hero */
header.hero { padding: 26px 0 20px; }
.eyebrow { font-family: var(--font-wide),sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--yoji-blue); margin: 0 0 16px; }
h1 { font-family: var(--font-display), var(--font-wide), sans-serif; font-weight: 400;
  font-size: clamp(28px, 5vw, 46px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 18px; text-wrap: balance; }
.lead { font-size: clamp(16px,2vw,19px); color: var(--yoji-slate,#44506f); max-width: 52ch; margin: 0 0 22px; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--yoji-blue,#013ad1); color: #fff; text-decoration: none;
  font-family: var(--font-wide),sans-serif; font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(1,58,209,.28); }
.btn.ghost { background: #fff; color: var(--yoji-ink); box-shadow: 0 8px 22px rgba(10,19,48,.08); }

/* оглавление / быстрые ответы */
.tldr { background: linear-gradient(180deg, rgba(1,58,209,.06), rgba(1,58,209,.02));
  border: 1px solid rgba(1,58,209,.14); border-radius: 20px; padding: 20px 24px; margin: 8px 0 36px; }
.tldr b { color: var(--yoji-ink); }
.tldr p { margin: 0; color: var(--yoji-slate,#44506f); }

/* секции */
section.block { margin: 40px 0; }
h2 { font-family: var(--font-wide),sans-serif; font-weight: 700; font-size: clamp(21px,2.6vw,28px); letter-spacing: -.005em; margin: 0 0 16px; }
h3 { font-family: var(--font-wide),sans-serif; font-weight: 700; font-size: clamp(17px,2vw,20px); margin: 26px 0 10px; }
section.block p, section.block li { color: var(--yoji-slate,#44506f); }
section.block p { margin: 0 0 14px; }
section.block p b, section.block li b, section.block strong { color: var(--yoji-ink); font-weight: 700; }
ul.did, ol.steps { margin: 0 0 16px; padding: 0; display: grid; gap: 12px; list-style: none; }
ul.did li { position: relative; padding-left: 30px; }
ul.did li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 5px;
  background: var(--yoji-blue,#013ad1); box-shadow: 0 3px 8px rgba(1,58,209,.3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
ol.steps { counter-reset: st; }
ol.steps li { position: relative; padding-left: 44px; }
ol.steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 9px; background: rgba(1,58,209,.1); color: var(--yoji-blue);
  font-family: var(--font-wide),sans-serif; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

/* таблица цен / сравнения */
.tbl-wrap { overflow-x: auto; margin: 0 0 16px; border-radius: 18px; border: 1px solid rgba(10,19,48,.08); background: #fff;
  box-shadow: 0 12px 34px rgba(10,19,48,.06); }
table.ptable { width: 100%; border-collapse: collapse; min-width: 520px; }
table.ptable th, table.ptable td { text-align: left; padding: 14px 18px; border-bottom: 1px solid rgba(10,19,48,.06); font-size: 14.5px; color: var(--yoji-slate,#44506f); }
table.ptable th { font-family: var(--font-wide),sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--yoji-slate,#5a6b93); background: rgba(1,58,209,.04); }
table.ptable td b, table.ptable td strong { color: var(--yoji-ink); }
table.ptable tr:last-child td { border-bottom: 0; }

/* карточки-сетка (факторы, услуги) */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 16px; }
.gc { background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.85); border-radius: 18px; padding: 20px 22px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 26px rgba(40,50,90,.06); }
.gc h3 { margin: 0 0 8px; font-size: 17px; color: var(--yoji-ink); }
.gc p { margin: 0; font-size: 14px; }

/* callout */
.callout { background: linear-gradient(180deg, rgba(1,58,209,.06), rgba(1,58,209,.02));
  border: 1px solid rgba(1,58,209,.14); border-radius: 20px; padding: 22px 24px; margin: 0 0 16px; }
.callout p:last-child { margin-bottom: 0; }

/* мини-кейс */
.proof { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid rgba(10,19,48,.08);
  border-radius: 20px; padding: 20px 24px; box-shadow: 0 12px 34px rgba(10,19,48,.06); margin: 0 0 16px; flex-wrap: wrap; }
.proof .big { font-family: var(--font-display),sans-serif; font-weight: 400; font-size: clamp(30px,5vw,44px); line-height: 1;
  color: var(--yoji-blue); flex: 0 0 auto; }
.proof .txt { flex: 1 1 240px; }
.proof .txt p { margin: 0; }

/* FAQ */
.faq details { border: 1px solid rgba(10,19,48,.08); border-radius: 16px; background: #fff; margin: 0 0 10px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-family: var(--font-wide),sans-serif;
  font-weight: 700; font-size: 15.5px; color: var(--yoji-ink); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yoji-blue); font-size: 22px; line-height: 1; flex: 0 0 auto; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 18px; color: var(--yoji-slate,#44506f); }
.faq .a p { margin: 0 0 10px; } .faq .a p:last-child { margin: 0; }

/* перелинковка на другие направления */
.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 0; }
.related a { display: block; text-decoration: none; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.85);
  border-radius: 18px; padding: 18px 20px; box-shadow: 0 8px 26px rgba(40,50,90,.06); transition: transform .15s, box-shadow .15s; }
.related a:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(40,50,90,.12); }
.related a b { display: block; font-family: var(--font-wide),sans-serif; color: var(--yoji-ink); font-size: 15px; margin-bottom: 4px; }
.related a span { font-size: 13px; color: var(--yoji-slate,#5a6b93); }

/* CTA */
.cta { text-align: center; margin: 56px 0; padding: 42px 24px; border-radius: 26px;
  background: var(--yoji-blue,#013ad1); color: #fff; box-shadow: 0 26px 60px rgba(1,58,209,.3); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); max-width: 46ch; margin: 0 auto 22px; }
.cta a.btn { background: #fff; color: var(--yoji-ink); box-shadow: none; }
/* компактная форма заявки на подстраницах — в боксе-панели, с бликом на кнопке */
.cta__mini { max-width: 600px; margin: 10px auto 0; text-align: left;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2); border-radius: 22px;
  padding: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 44px rgba(0,20,80,.22); }
.cta__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cta__mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta__mini-input { min-width: 0; height: 54px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent;
  background: #fff; color: var(--yoji-ink,#0a1330); font-size: 15px; font-family: inherit; line-height: 1.2; transition: box-shadow .15s; }
.cta__mini-input::placeholder { color: #97a0b6; }
.cta__mini-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.65); }
.cta__mini-input[name="website"] { grid-column: 1 / -1; }
.cta__mini .btn { grid-column: 1 / -1; position: relative; overflow: hidden; isolation: isolate;
  height: 56px; margin-top: 4px; background: #fff; color: var(--yoji-blue,#013ad1);
  box-shadow: 0 12px 28px rgba(0,0,0,.2); border: 0; cursor: pointer; border-radius: 999px;
  font-family: var(--font-wide),sans-serif; font-weight: 700; font-size: 15.5px; letter-spacing: .01em;
  transition: transform .14s var(--ease,ease), box-shadow .18s; }
.cta__mini .btn::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(1,58,209,.22), transparent); transform: skewX(-20deg); pointer-events: none; }
.cta__mini .btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(0,0,0,.26); }
.cta__mini .btn:hover::after { animation: ctaSheen .85s ease-out; }
.cta__mini .btn:disabled { opacity: .7; cursor: default; transform: none; }
@keyframes ctaSheen { 0% { left: -70%; } 100% { left: 140%; } }
@media (prefers-reduced-motion: reduce) { .cta__mini .btn::after { animation: none; } }
.cta__mini-msg { color: #ffe0e0; font-size: 14px; margin: 12px 0 0; }
.cta__mini-msg:empty { margin: 0; }
.cta__mini-ok { color: #fff; font-weight: 700; font-size: 18px; text-align: center; margin: 6px 0 0; }

/* явное согласие с политикой — чекбокс (тёмная тема, форма на .cta__mini) */
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0;
  cursor: pointer; user-select: none; position: relative; }
.consent-check input { position: absolute; top: 1px; left: 0; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.consent-check__box { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12); position: relative;
  transition: background .15s, border-color .15s; }
.consent-check input:checked ~ .consent-check__box { background: #fff; border-color: #fff; }
.consent-check input:checked ~ .consent-check__box::after { content: ""; position: absolute; inset: 0; background: var(--yoji-blue,#013ad1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.consent-check input:focus-visible ~ .consent-check__box { outline: 2px solid #fff; outline-offset: 2px; }
.consent-check__text { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.85); text-align: left; }
.consent-check__text a { color: #fff; text-decoration: underline; }
@media (max-width: 560px) { .cta__mini-row { grid-template-columns: 1fr; } .cta__mini { padding: 18px; } }
footer.cfoot { text-align: center; color: var(--yoji-slate,#5a6b93); font-size: 13px; padding: 30px 0 50px; }
footer.cfoot a { color: var(--yoji-slate,#5a6b93); }

@media (max-width: 720px) {
  .grid, .related { grid-template-columns: 1fr; }
  .ctop .nav { display: none; }
  .ctop__menu { display: block; }
  .ctop__right { gap: 8px; }
  .ctop__lang a { padding: 6px 8px; font-size: 11px; }
  .ctop a.cta-mini { padding: 8px 13px; font-size: 12px; }
}
@media (max-width: 400px) {
  .ctop a.cta-mini span.cta-mini__full { display: none; }
}

/* Подпись автора под шапкой статьи. Появилась вместе с генератором блога:
   имя автора должно быть видимым, но не спорить с лидом за внимание. */
.byline { margin: -8px 0 28px; font-size: 15px; line-height: 1.5; color: rgba(10,19,48,.62); }
.byline a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(10,19,48,.22); }
.byline a:hover { color: #013ad1; border-bottom-color: #013ad1; }

/* Схемы в статьях. Стеклянная карточка тех же параметров, что .gc и .related a,
   иначе шесть схем подряд читаются как вставки из другого макета.
   Переменные ниже нужны SVG: он встраивается инлайном и берёт цвет темы. */
:root {
  --chart-track: rgba(10,19,48,.055);
  --chart-card:  rgba(255,255,255,.55);
  --chart-edge:  rgba(255,255,255,.85);
  --chart-line:  rgba(10,19,48,.10);
}
.chart { margin: 0 0 26px; padding: 26px 28px 22px; border-radius: 22px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px rgba(40,50,90,.06); color: var(--yoji-ink); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart figcaption { margin-top: 18px; padding-top: 14px; font-size: 14px; line-height: 1.5;
  color: var(--yoji-slate,#5a6b93); border-top: 1px solid rgba(10,19,48,.08); }
@media (max-width: 620px) {
  .chart { padding: 18px 16px 16px; border-radius: 18px; }
  .chart figcaption { font-size: 13px; }
}

/* Галерея скриншотов. Две колонки на десктопе, одна на телефоне; одиночный
   снимок не растягиваем на две — он выглядит обрезком сетки. */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 26px; }
.shots--one { grid-template-columns: 1fr; max-width: 620px; }
.shots figure { margin: 0; padding: 14px 14px 12px; border-radius: 20px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px rgba(40,50,90,.06); }
.shots img { display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid rgba(10,19,48,.07); background: #fff; }
.shots figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.45;
  color: var(--yoji-slate,#5a6b93); }
@media (max-width: 720px) {
  .shots { grid-template-columns: 1fr; gap: 14px; }
  .shots figure { padding: 12px 12px 10px; border-radius: 18px; }
}
