/* ── Font overrides ── */
/* Roboto → Factor A (формы .form.mobileform на всех страницах) */
.form.mobileform { font-family: 'Factor A', sans-serif; }

/* ── Global (перенесено из <style> страниц) ── */
/* Форма на странице (не попап): убираем ограничение max-width из Webflow CSS */
.mtk-form:not(.popup) { max-width: none; }
/* Футер: ссылки в колонке «Расскажите о своей задаче» — Factor A */
.mtk-footer-lena-cont .link-bold { font-family: 'Factor A', sans-serif; }
html { overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
.footer-case-cont { min-width: 0; max-width: 100%; }

@media screen and (max-width: 991px) {
  /* На планшете и ниже фиксированная нижняя панель перекрывала низ экрана — скрываем */
  .footer-case.desktop { display: none; }
  .mtk-about-cont-text, .narrow-cont { width: 100%; max-width: 100%; }
}
@media screen and (max-width: 767px) {
  .footer-case.desktop { display: none; }
}
@media screen and (max-width: 479px) {
  .footer-case.mobile { display: flex; position: relative; }
}
.footer-fix-cont { position: relative; }
.overflow-x { -webkit-font-smoothing: antialiased; }
.logo-box:hover .hover-text { display: inline-block; }
.mtk-portlinks a:hover .spanemoji, .portlinks a:hover .spanemoji { display: inline !important; text-decoration: none !important; }
input:matches([type="button"],[type="submit"]) { color: #ffffff !important; }
.header input#button-send { color: #ffffff !important; }

/* ── Nav hover ── */
.dropdown-link:hover span.spanemoji.nav-emoji { display: inline !important; text-decoration: none !important; }
.mtk-nav-link:hover .dropdown-arrow { opacity: .6; transform: rotate(180deg); }

/* ── Forms ── */
.motka-form {
  margin: 0 0 15px;
}
.motka-form-done {
  text-align: center;
  background-color: #ddd;
  padding: 20px;
  display: none;
}
.motka-form-fail {
  background-color: #ffdede;
  margin-top: 10px;
  padding: 10px;
  display: none;
}

/* ── Footer sticky fix ── */
.footer-case.desktop { background: #fff; }
.footer-fix-cont { position: relative; z-index: 9999; opacity: 0; pointer-events: none; transform: translateY(100%); transition: none; }
.footer-fix-cont.visible { opacity: 1; pointer-events: auto; transform: translateY(0%); transition: opacity 0.4s ease, transform 0.4s ease; }

/* ── Fixed top-right CTA button ── */
.buttom-design-wrapper { display: none !important; }
.buttom-design-wrapper.active {
  display: block !important;
  position: fixed !important;
  /* top / right / left — выставляются JS-ом через inline style */
  max-width: none !important;
  padding: 0 !important;
  pointer-events: none;
  z-index: 8000;
}
.buttom-design-wrapper .button-call-to-action {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  pointer-events: none;
}
.buttom-design-wrapper .button-call-to-action > a {
  pointer-events: auto;
  display: block;
}

/* ── chitay-gorod: блок Команда — одна центрированная колонка ── */
.cg-team .lsp-team-colls {
  justify-content: center;
}
.cg-team .lsp-motka-coll {
  max-width: none;
  width: auto;
}
.cg-team .lsp-people-2 {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 40px;
}

/* ══════════════════════════════════════════
   chitay-gorod: все стили кейса
   ══════════════════════════════════════════ */

/* ── Typography ── */
.cg-case-title {
  font-family: 'Factor A', sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  color: #202320;
  text-align: center;
  width: 100%;
}
.cg-h3 {
  font-family: 'Factor A', sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.15;
  color: #333;
  margin-bottom: 40px;
}
.cg-h4 {
  font-family: 'Factor A', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: #333;
}
.cg-h4-num {
  font-family: 'Factor A', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  color: #000;
  width: 48px;
  height: 48px;
  border-radius: 40px;
  background: #f4f0ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
}
.cg-h4-cont {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.cg-chitay-gorod .cg-body {
  font-family: 'Spectral', serif;
  font-size: 24px;
  line-height: 1.34;
  letter-spacing: -0.32px;
  color: #333;
}
.cg-chitay-gorod .cg-body p { font-size: 24px; margin-bottom: 20px; }
.cg-chitay-gorod .cg-body p:last-child { margin-bottom: 0; }
.cg-chitay-gorod .cg-body ul { list-style: disc; padding-left: 36px; margin-top: 0; }
.cg-chitay-gorod .cg-body ul li { margin-bottom: 4px; line-height: 1.34; font-weight: 400; }
.cg-chitay-gorod .cg-body ul li:last-child { margin-bottom: 0; }

/* ── Layout helpers ── */
.cg-text-col {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.cg-wide-img-wrap {
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 40px;
  overflow: hidden;
}
.cg-wide-img-wrap img { width: 100%; height: auto; display: block; }

/* Section paddings */
.cg-section     { padding: 96px 40px 0; }
.cg-section-64  { padding: 64px 40px 0; }
.cg-section-80  { padding: 80px 40px 0; }
.cg-section-120 { padding: 120px 40px 0; }
.cg-section-last { padding: 120px 40px 120px; }

/* ── Tags ── */
.cg-subtitle-mascot { width: 102px; height: 184px; display: block; }

/* ── Hero ── */
.cg-hero { padding: 0 20px 0; }
.cg-hero-inner { max-width: 1400px; margin: 0 auto; border-radius: 40px; overflow: hidden; }
.cg-hero-inner img { width: 100%; height: auto; display: block; }

/* ── H1 section ── */
.cg-h1-section { padding: 96px 40px 0; }
.cg-h1-section-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

/* ── Context section ── */
.cg-context-section { padding: 96px 40px 0; }
.cg-context-item { max-width: 900px; margin: 0 auto; width: 100%; }
.cg-context-item + .cg-context-item { margin-top: 40px; }
.cg-context-header {
  font-family: 'Factor A', sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.15;
  color: #333;
  margin: 0 0 40px;
}

/* ── Video ── */
.cg-video-wrap { max-width: 1400px; margin: 40px auto 0; }
.cg-video-placeholder {
  background: #f4f0ea;
  border-radius: 24px;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Factor A', sans-serif;
  font-size: 16px;
  color: #aaa;
}

/* ── Plan infograph ── */
.cg-plan-infograph { padding: 80px 0 0 40px; overflow-x: auto; display: flex; justify-content: center; }
.cg-plan-cont { display: inline-flex; gap: 24px; align-items: flex-start; }
.cg-info-col { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; flex-shrink: 0; }
.cg-info-col-5 { position: relative; }
.cg-info-h5 {
  font-family: 'Factor A', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  color: #333;
  padding-left: 16px;
}
.cg-info-col-2 .cg-info-h5 { padding-left: 0; width: 100%; text-align: center; }
.cg-info-cards { display: flex; flex-direction: column; align-items: center; width: 100%; }
.cg-info-cards.is-gap { gap: 16px; align-items: stretch; }
.cg-info-card {
  background: #f4f0ea;
  border-radius: 24px;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Factor A', sans-serif;
  font-weight: 400;
  font-size: 14.4px;
  line-height: 1.34;
  color: #333;
}
.cg-info-card.is-bold { font-weight: 700; }
.cg-info-divider { display: flex; justify-content: center; }
.cg-info-divider img { display: block; width: 2px; height: 16px; }
.cg-info-arrow { flex-shrink: 0; align-self: flex-start; }
.cg-info-arrow img { display: block; width: 23px; height: 90px; }
.cg-info-mascot { position: absolute; left: 83px; top: 123px; pointer-events: none; }
.cg-info-mascot img { display: block; width: 110px; height: 83px; }

/* ── Approach section ── */
.cg-approach-section { padding: 80px 40px 0; }
.cg-approach-wrap {
  background: #f4f0ea;
  border-radius: 40px;
  padding: 50px 76px;
  max-width: 1144px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.cg-approach-row { display: flex; gap: 8px; align-items: center; }
.cg-approach-cards-left { display: flex; flex-wrap: wrap; gap: 24px; width: 608px; flex-shrink: 0; align-self: center; }
.cg-approach-card-wrap { position: relative; width: 292px; flex-shrink: 0; }
.cg-approach-card-shadow {
  position: absolute;
  width: 294px; height: 308px; left: 30px; top: -26px;
  display: flex; align-items: center; justify-content: center;
  mix-blend-mode: multiply; pointer-events: none; z-index: 0;
}
.cg-approach-card-shadow-inner { transform: rotate(-1.98deg); width: 284px; height: 299px; position: relative; flex-shrink: 0; }
.cg-approach-card-shadow-inner img { position: absolute; top: -20%; left: -21%; width: 142%; height: 139%; max-width: none; display: block; }
.cg-approach-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  width: 292px;
  min-height: 242px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}
.cg-approach-card:not(.cg-approach-card-itog) { min-height: 280px; }
.cg-approach-card-itog {
  width: 296px; min-height: 0; flex: 1;
  justify-content: center; align-items: center;
  gap: 48px; flex-shrink: 0; align-self: stretch;
}
p.cg-approach-text {
  font-family: 'Spectral', serif;
  font-size: 18px; line-height: 1.34; letter-spacing: -0.32px;
  color: #333; width: 100%;
}
.cg-approach-arrow-wrap { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; flex-shrink: 0; overflow: hidden; }
.cg-approach-arrow-icon { width: 58px; height: 52px; display: block; }
.cg-approach-owl { width: 130px; height: auto; display: block; }

/* ── Book card formula ── */
.cg-formula-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto 80px; flex-wrap: wrap; }
.cg-formula-item {
  font-family: 'Factor A', sans-serif; font-weight: 700;
  font-size: 34px; line-height: 1; color: #333;
  background: #f4f0ea; border-radius: 41px; padding: 14px 41px;
}
.cg-formula-plus { font-family: 'Factor A', sans-serif; font-weight: 400; font-size: 50px; color: #333; }

/* ── Big stat ── */
.cg-stat-wrap {
  background: #f4f0ea; border-radius: 24px; padding: 48px;
  max-width: 900px; margin: 40px auto 0;
  display: flex; gap: 40px; align-items: flex-start;
}
.cg-stat-nums { display: flex; flex-direction: row; align-items: center; gap: 12px; flex-shrink: 0; }
.cg-stat-num { font-family: 'Factor A', sans-serif; font-weight: 700; font-size: 116px; line-height: 0.95; letter-spacing: -4px; color: #333; }
.cg-stat-label { font-family: 'Factor A', sans-serif; font-weight: 700; font-size: 42px; line-height: 0.95; color: #333; max-width: 240px; }
.cg-stat-wrap .cg-body { flex: 1; }

/* ── Section images ── */
.cg-img-full { width: 100%; max-width: 1400px; height: auto; display: block; border-radius: 24px; margin: 48px auto 0; }

/* ── Book card pic block ── */
.cg-book-card-pic-cont { display: flex; flex-direction: column; align-items: center; padding-top: 80px; }
.cg-book-card-pic { width: 100%; max-width: 1400px; border-radius: 24px; overflow: hidden; }
.cg-book-card-pic img { width: 100%; height: auto; display: block; }

/* ── Renew pages pic block ── */
.cg-renew-pic-cont { display: flex; flex-direction: column; align-items: center; padding-top: 56px; }
.cg-renew-pic { background: #f4f0ea; width: 100%; max-width: 1400px; height: 860px; border-radius: 24px; overflow: hidden; padding-left: 140px; padding-top: 108px; box-sizing: border-box; }
.cg-renew-pic-inner { display: grid; grid-template-columns: max-content; grid-template-rows: max-content; place-items: start; }
.cg-renew-pic-shadow-layer { grid-column: 1; grid-row: 1; position: relative; display: flex; align-items: center; justify-content: center; width: 1149px; height: 756px; mix-blend-mode: multiply; margin-left: 18px; margin-top: 28px; }
.cg-renew-pic-shadow { transform: rotate(-1.98deg); flex-shrink: 0; width: 1125px; height: 717px; position: relative; }
.cg-renew-pic-shadow img { position: absolute; top: -8.36%; left: -5.34%; width: 110.65%; height: 116.45%; max-width: none; display: block; }
.cg-renew-pic-main { grid-column: 1; grid-row: 1; position: relative; width: 1100px; height: 671px; border-radius: 24px; border: 8px solid #fff; overflow: hidden; }
.cg-renew-pic-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-renew-colls { display: flex; gap: 48px; align-items: flex-start; justify-content: center; }
.cg-renew-coll { display: flex; flex-direction: column; gap: 48px; width: 550px; flex-shrink: 0; }
.cg-renew-coll-img { width: 100%; border-radius: 32px; display: block; }

/* ── Read magazine pic block ── */
.cg-read-mag-cont { display: flex; justify-content: center; padding-top: 56px; }
.cg-read-mag-pic { width: 100%; max-width: 1472px; height: auto; display: block; box-shadow: 0 0 64px 0 rgba(206,206,206,0.34); border-radius: 24px; }

/* ── My books pictures ── */
.cg-mybooks-pictures { display: flex; flex-direction: column; gap: 48px; align-items: center; padding-top: 56px; }
.cg-mybooks-pic1 { background: #f4f0ea; width: 100%; max-width: 1400px; height: 860px; border-radius: 24px; overflow: hidden; padding-left: 140px; padding-top: 76px; box-sizing: border-box; }
.cg-mybooks-pic1-inner { display: grid; grid-template-columns: max-content; grid-template-rows: max-content; place-items: start; }
.cg-mybooks-shadow-layer { grid-column: 1; grid-row: 1; position: relative; display: flex; align-items: center; justify-content: center; width: 1149px; height: 756px; mix-blend-mode: multiply; margin-left: 25px; margin-top: 55px; }
.cg-mybooks-shadow { transform: rotate(-1.98deg); flex-shrink: 0; width: 1125px; height: 717px; position: relative; }
.cg-mybooks-shadow img { position: absolute; top: -8.36%; left: -5.34%; width: 110.65%; height: 116.45%; max-width: none; display: block; }
.cg-mybooks-pic1-main { grid-column: 1; grid-row: 1; position: relative; width: 1092px; height: 724px; border-radius: 24px; border: 8px solid #fff; overflow: hidden; }
.cg-mybooks-pic1-main img { width: 100.7%; height: 100%; object-fit: cover; display: block; }
.cg-mybooks-pic2 { display: flex; gap: 72px; align-items: center; justify-content: center; padding-top: 56px; width: 100%; max-width: 1400px; }
.cg-mybooks-phone { width: 550px; height: 817px; flex-shrink: 0; border-radius: 32px; overflow: hidden; }
.cg-mybooks-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Catalog search pictures ── */
.cg-catalog-pics { display: flex; flex-direction: column; gap: 72px; align-items: center; padding-top: 120px; }
.cg-catalog-pic1 { background: #fbe083; width: 100%; max-width: 1400px; height: 860px; border-radius: 24px; overflow: hidden; padding-left: 140px; padding-top: 76px; box-sizing: border-box; }
.cg-catalog-pic1-inner { display: grid; grid-template-columns: max-content; grid-template-rows: max-content; place-items: start; }
.cg-catalog-shadow-layer { grid-column: 1; grid-row: 1; position: relative; display: flex; align-items: center; justify-content: center; width: 1149px; height: 756px; mix-blend-mode: multiply; margin-left: 25px; margin-top: 55px; }
.cg-catalog-shadow { transform: rotate(-1.98deg); flex-shrink: 0; width: 1125px; height: 717px; position: relative; }
.cg-catalog-shadow img { position: absolute; top: -8.36%; left: -5.34%; width: 110.65%; height: 116.45%; max-width: none; display: block; }
.cg-catalog-pic1-main { grid-column: 1; grid-row: 1; position: relative; width: 1092px; height: 724px; border-radius: 24px; border: 8px solid #fff; overflow: hidden; }
.cg-catalog-pic1-main img { width: 100.7%; height: 100%; object-fit: cover; display: block; }
.cg-catalog-pic2 { width: 100%; max-width: 1400px; height: 860px; border-radius: 24px; overflow: hidden; }
.cg-catalog-pic2 img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Certificates section ── */
.cg-cert-cont { display: flex; flex-direction: column; align-items: center; gap: 120px; padding-top: 120px; }
.cg-cert-desktop { width: 100%; max-width: 1400px; height: 860px; border-radius: 24px; overflow: hidden; flex-shrink: 0; }
.cg-cert-desktop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-cert-colls { display: flex; gap: 20px; align-items: flex-start; justify-content: center; width: 100%; }
.cg-cert-coll1 { display: flex; flex-direction: column; gap: 72px; align-items: flex-start; justify-content: flex-end; width: 550px; flex-shrink: 0; }
.cg-cert-mobile { width: 550px; height: 817px; border-radius: 32px; overflow: hidden; flex-shrink: 0; }
.cg-cert-mobile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-cert-coll2 { display: flex; align-items: flex-end; flex-shrink: 0; width: 696px; }
.cg-cert-coll2 img { width: 696px; height: 1016px; display: block; object-fit: cover; }

/* ── Section mascot ── */
.cg-section-mascot { height: 120px; width: auto; display: block; margin-bottom: 48px; }

/* ── Illustration block ── */
.cg-illus-cont { display: flex; flex-direction: column; gap: 48px; align-items: center; padding-top: 56px; width: 100%; }
.cg-illus-lines {
  width: 100%;
  max-width: 1508px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.cg-illus-lines img { flex: 1; height: auto; display: block; min-width: 0; max-width: 100%; }
.cg-illus-pic { width: 100%; max-width: 1469px; border-radius: 24px; overflow: hidden; box-shadow: 0 0 64px 0 rgba(206,206,206,0.34); }
.cg-illus-pic img { width: 100%; height: auto; display: block; }

/* ── Results & reply ── */
.cg-result-cont { max-width: 900px; margin: 0 auto; }
.cg-reply-wrap { padding: 120px 40px 0; }
.cg-reply-card {
  max-width: 1013px; margin: 40px auto 0;
  background: #fff; border-radius: 24px;
  box-shadow: 0px 4px 60px 0px rgba(0,0,0,0.1);
  padding: 80px 46px 80px 55px;
}
p.cg-quote-text { font-family: 'Spectral', serif; font-size: 28px; line-height: 1.34; letter-spacing: -0.32px; color: #333; margin-bottom: 32px; }
.cg-reply-author { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.cg-author-ava { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
p.cg-quote-author { font-family: 'Factor A', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.3; color: #333; }
p.cg-quote-role { font-family: 'Factor A', sans-serif; font-size: 20px; line-height: 1.3; color: #333; margin-top: 4px; }

/* ── Book series pics section ── */
.cg-bs-pics-cont { display: flex; flex-direction: column; gap: 120px; margin: 48px auto 0; max-width: 1400px; }
.cg-bs-main-img { width: 100%; height: auto; display: block; border-radius: 24px; }
.cg-bs-cols { display: flex; gap: 72px; align-items: center; }
.cg-bs-col { display: flex; flex-direction: column; gap: 72px; flex: 1; }
.cg-bs-col-img { width: 100%; height: auto; display: block; border-radius: 32px; }
p.cg-bs-caption { font-family: 'Spectral', serif; font-size: 24px; line-height: 1.34; letter-spacing: -0.32px; color: #333; }

/* ── Планшет: поворот стрелки при открытом dropdown ── */
.mtk-nav-link-2.w-dropdown.w--open .dropdown-arrow-2 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* ── Десктоп: dropdown «Портфолио» появляется по hover ── */
@media (min-width: 992px) {
  .mtk-nav-link-drop.dt-mob-view:hover > .w-dropdown-list {
    display: block;
  }
  /* Сдвигаем список вниз от toggle, чтобы он не перекрывал ссылку */
  .mtk-nav-link-drop.dt-mob-view .dropdown-nav {
    top: 3.1em;
    padding-top: 0;
  }
  /* Webflow перехватывает mousedown на .w-dropdown-toggle — отключаем pointer-events
     на самом toggle, возвращаем только ссылке (не стрелке). */
  .mtk-nav-link-drop.dt-mob-view .w-dropdown-toggle {
    pointer-events: none;
  }
  .mtk-nav-link-drop.dt-mob-view .w-dropdown-toggle a {
    pointer-events: auto;
  }
  /* Стрелка некликабельна — только декоративный элемент на десктопе */
  .mtk-nav-link-drop.dt-mob-view .dropdown-arrow {
    pointer-events: none;
  }
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */


@media (max-width: 1024px) {
  .wrapper-story, .designsystem { padding-left: 5vw; }
  .wrapper, .footer-thin-container.maincont80.limited { padding-left: 5vw; padding-right: 5vw; }
  .heading-4 { font-size: 80px; }
  .mtk-reviews-grid { grid-template-columns: 1fr 1fr; }

  .cg-case-title { font-size: 48px; }
  .cg-h3 { font-size: 40px; }
  .cg-context-header { font-size: 40px; }
  .cg-h4 { font-size: 26px; }
  .cg-chitay-gorod .cg-body { font-size: 20px; }
  .cg-chitay-gorod .cg-body p { font-size: 20px; }
  .cg-approach-wrap { padding: 40px; }
  .cg-approach-cards-left { width: auto; flex: 1; }
  /* Прямые дети cards-left (карточки 1 и 2) */
  .cg-approach-cards-left > .cg-approach-card { width: calc(50% - 12px); }
  /* Обёртки карточек 3 и 4 — тоже 50%, карточка внутри — 100% */
  .cg-approach-card-wrap { width: calc(50% - 12px); flex-shrink: 1; }
  .cg-approach-card-wrap .cg-approach-card { width: 100%; }
  .cg-approach-card-itog { flex: none; width: 240px; }
  .cg-stat-wrap { padding: 36px; gap: 28px; }
  .cg-stat-num { font-size: 88px; }
  .cg-stat-label { font-size: 32px; }
  p.cg-quote-text { font-size: 24px; }
  .cg-formula-item { font-size: 28px; }
  .cg-formula-plus { font-size: 40px; }
  .cg-bs-pics-cont { gap: 56px; }
  .cg-bs-cols { gap: 40px; }
  .cg-bs-col { gap: 40px; }
  p.cg-bs-caption { font-size: 20px; }
  .cg-illus-lines { gap: 32px; }

  /* Скриншоты с тенью — убрать тени, сделать картинки адаптивными */
  .cg-renew-pic-shadow-layer, .cg-mybooks-shadow-layer, .cg-catalog-shadow-layer { display: none; }
  .cg-renew-pic, .cg-mybooks-pic1, .cg-catalog-pic1 { height: auto; padding-left: 48px; padding-right: 48px; padding-top: 56px; padding-bottom: 56px; }
  .cg-renew-pic-inner, .cg-mybooks-pic1-inner, .cg-catalog-pic1-inner { display: block; width: 100%; }
  .cg-renew-pic-main, .cg-mybooks-pic1-main, .cg-catalog-pic1-main { position: static; width: 100% !important; height: auto !important; }
  .cg-renew-pic-main img, .cg-mybooks-pic1-main img, .cg-catalog-pic1-main img { width: 100%; height: auto; object-fit: contain; }
  /* Ренью — две колонки → одна */
  .cg-renew-coll { width: 100%; flex-shrink: 1; }
  /* Мои книги — телефон и gap */
  .cg-mybooks-pic2 { gap: 24px; }
  .cg-mybooks-phone { width: calc(50% - 12px); height: auto; aspect-ratio: 550 / 817; }
  /* Сертификаты */
  .cg-cert-coll2 { width: 100%; flex-shrink: 1; }
  .cg-cert-coll2 img { width: 100%; height: auto; }
  /* Plan — горизонтальный скролл внутри секции */
  .cg-plan-infograph { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .cg-info-col { flex-shrink: 1; }
}

@media (max-width: 768px) {
  .cg-approach-section { padding: 56px 24px 0; }
  .cg-approach-wrap { padding: 32px 24px; gap: 24px; }
  .cg-approach-row { flex-direction: column; }
  .cg-approach-cards-left { width: 100%; flex: none; }
  .cg-approach-card { min-height: 180px; }
  .cg-approach-card-itog { width: 100%; min-height: 180px; flex-direction: row; justify-content: flex-start; gap: 24px; }
  .cg-approach-arrow-wrap { transform: rotate(90deg); }
  /* Абсолютная тень-картинка карточек на планшете вылезает за правый край (горизонтальный скролл) — скрываем, как и прочие декоративные тени */
  .cg-approach-card-shadow { display: none; }
}

@media (max-width: 991px) {
  .w-container .columns-9.w-row { margin-left: 0; margin-right: 0; }

  .cg-case-title { font-size: 36px; }
  .cg-h3 { font-size: 32px; }
  .cg-context-header { font-size: 32px; }
  .cg-h4 { font-size: 22px; }
  .cg-h4-num { font-size: 20px; }
  .cg-chitay-gorod .cg-body { font-size: 18px; }
  .cg-chitay-gorod .cg-body p { font-size: 18px; }
  .cg-section, .cg-section-64, .cg-section-80, .cg-section-120 { padding-left: 24px; padding-right: 24px; }
  .cg-hero { padding: 0 16px 0; }
  .cg-h1-section { padding: 64px 24px 0; }
  .cg-context-section { padding: 64px 24px 0; }
  .cg-plan-infograph { padding: 56px 24px 0; justify-content: flex-start; }
  .cg-stat-wrap { flex-direction: column; padding: 24px; gap: 16px; }
  .cg-stat-num { font-size: 64px; }
  .cg-stat-label { font-size: 26px; }
  p.cg-quote-text { font-size: 20px; }
  .cg-reply-wrap { padding: 80px 24px 80px; }
  .cg-reply-card { padding: 40px 24px; }
  .cg-formula-item { font-size: 22px; padding: 14px 18px; }
  .cg-formula-plus { font-size: 32px; }
  .cg-renew-pic-shadow-layer, .cg-mybooks-shadow-layer, .cg-catalog-shadow-layer { display: none; }
  .cg-renew-pic { height: auto; padding-left: 32px; padding-right: 24px; padding-top: 48px; padding-bottom: 48px; }
  .cg-renew-pic-inner { display: block; width: 100%; }
  .cg-renew-pic-main { position: static; width: 100% !important; height: auto !important; }
  .cg-renew-pic-main img { width: 100%; height: auto; object-fit: contain; }
  .cg-renew-colls { flex-direction: column; gap: 24px; }
  .cg-renew-coll { width: 100%; }
  .cg-mybooks-pic1 { height: auto; padding-left: 32px; padding-right: 24px; padding-top: 48px; padding-bottom: 48px; }
  .cg-mybooks-pic1-inner { display: block; width: 100%; }
  .cg-mybooks-pic1-main { position: static; width: 100% !important; height: auto !important; }
  .cg-mybooks-pic1-main img { width: 100%; height: auto; object-fit: contain; }
  .cg-mybooks-pic2 { gap: 24px; }
  .cg-mybooks-phone { width: calc(50% - 12px); height: auto; aspect-ratio: 550 / 817; }
  .cg-mybooks-phone img { width: 100%; height: 100%; object-fit: cover; }
  .cg-catalog-pic1 { height: auto; padding-left: 32px; padding-right: 24px; padding-top: 48px; padding-bottom: 48px; }
  .cg-catalog-pic1-inner { display: block; width: 100%; }
  .cg-catalog-pic1-main { position: static; width: 100% !important; height: auto !important; }
  .cg-catalog-pic1-main img { width: 100%; height: auto; object-fit: contain; }
  .cg-catalog-pic2 { height: 320px; }
  .cg-cert-desktop { height: 400px; }
  .cg-cert-colls { flex-direction: column; gap: 24px; }
  .cg-cert-coll1 { width: 100%; gap: 16px; }
  .cg-cert-mobile { width: 100%; max-width: 360px; height: auto; aspect-ratio: 550 / 817; }
  .cg-cert-mobile img { width: 100%; height: 100%; object-fit: cover; }
  .cg-cert-coll2 { width: 100%; }
  .cg-cert-coll2 img { width: 100%; height: auto; }
  .cg-bs-cols { flex-direction: column; }
  .cg-bs-col { width: 100%; }
  .cg-illus-lines { gap: 32px; }
}

@media (max-width: 768px) {
  .cg-renew-colls { flex-direction: row; gap: 24px; }
  .cg-renew-coll { flex: 1; gap: 24px; }
  .cg-mybooks-pictures { gap: 24px; }
  .cg-illus-cont { gap: 24px; }
  .cg-mybooks-pic2 { padding-top: 0; }
  .cg-catalog-pics { padding-top: 48px; gap: 24px; }
  .cg-cert-cont { padding-top: 48px; gap: 48px; }
  .cg-bs-pics-cont { gap: 24px; }
  .cg-cert-colls { flex-direction: row; }
  .cg-cert-coll1, .cg-cert-coll2 { flex: 1; width: auto; }
  .cg-bs-cols { flex-direction: row; }
  .cg-bs-col { width: auto; }
  .cg-team .lsp-people-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .cg-team .lsp-person.person-motka.cent { align-items: flex-start; width: 100%; text-align: left; }
  .cg-context-header { margin: 0 0 24px; }
  .cg-h4-cont { margin-bottom: 16px; }
  .cg-info-h5 { font-size: 18px; }
  .cg-section-120 { padding: 48px 40px 0; }
}

@media (max-width: 479px) {
  /* Fix: Webflow shared CSS скрывает .div-block-17 (гамбургер + кнопка) при <=479px */
  .div-block-17 { display: flex; }
  .div-block-17 > a { display: none; }
  .nav-close-icon-img { width: 20px; }
  .project-intro.saas { padding-top: 0; }
  .heading-4 { font-size: 48px; line-height: 42px; }

  .cg-case-title { font-size: 28px; }
  .cg-h3 { font-size: 26px; margin-bottom: 20px; }
  .cg-approach-section .cg-h3 { margin-bottom: 0; }
  .cg-context-header { font-size: 26px; margin-bottom: 20px; }
  .cg-h4 { font-size: 18px; }
  .cg-h4-num { font-size: 14px; width: 32px; height: 32px; }
  .cg-h4-cont { margin-bottom: 16px; gap: 10px; }
  .cg-chitay-gorod .cg-body,
  .cg-chitay-gorod .cg-body p,
  p.cg-bs-caption { font-size: 18px; }
  .cg-formula-item { font-size: 16px; padding: 10px 14px; }
  .cg-formula-plus { font-size: 20px; }
  .cg-stat-num { font-size: 52px; }
  .cg-stat-label { font-size: 20px; max-width: 160px; }
  p.cg-quote-text { font-size: 16px; }
  .cg-section, .cg-section-64, .cg-section-80, .cg-section-120 { padding-left: 16px; padding-right: 16px; }
  .cg-section-120 { padding-top: 56px; }
  .cg-hero { padding: 0 10px 0; }
  .cg-h1-section { padding: 36px 16px 0; }
  .cg-context-section { padding: 36px 16px 0; }
  .cg-plan-infograph { padding: 24px 16px 0; }
  .cg-approach-section { padding: 36px 16px 0; }
  .cg-approach-wrap { padding: 20px 16px; border-radius: 24px; }
  .cg-approach-card-wrap { width: 100%; }
  .cg-approach-card { width: 100%; min-height: 0; border-radius: 16px; }
  .cg-approach-cards-left > .cg-approach-card { width: 100%; }
  .cg-approach-card:not(.cg-approach-card-itog) { min-height: 0; }
  .cg-approach-card-itog { width: 100%; flex-direction: column; align-items: center; }
  .cg-approach-card-shadow { display: none; }
  .cg-approach-owl { order: -1; }
  .cg-reply-wrap { padding: 56px 16px 0; }
  .cg-reply-card { padding: 24px 16px; }
  .cg-section-mascot { height: 72px; margin-bottom: 24px; }
  .cg-renew-coll { gap: 24px; }
  .cg-renew-pic { padding-left: 16px; padding-right: 16px; padding-top: 28px; padding-bottom: 28px; }
  .cg-mybooks-pic1 { padding-left: 16px; padding-right: 16px; padding-top: 28px; padding-bottom: 28px; }
  .cg-catalog-pic1 { padding-left: 16px; padding-right: 16px; padding-top: 28px; padding-bottom: 28px; }
  .cg-catalog-pics { gap: 24px; padding-top: 48px; }
  .cg-catalog-pic2 { height: 180px; }
  .cg-cert-cont { gap: 24px; padding-top: 48px; }
  .cg-cert-desktop { height: auto; border-radius: 16px; }
  .cg-mybooks-pic2 { gap: 12px; padding-top: 0; }
  .cg-mybooks-phone { max-width: 220px; border-radius: 16px; }
  .cg-cert-mobile { max-width: 260px; }
  .cg-stages-col-5 { width: 140px; }
  .cg-stages-mascot { display: none; }
  /* Видео — полный экран, без фона и скруглений */
  .cg-video-wrap {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    margin-top: 24px;
  }
  .cg-video-placeholder {
    border-radius: 0;
    background: none;
  }
  .cg-book-card-pic-cont {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding-top: 40px;
  }
  .cg-book-card-pic {
    border-radius: 0;
    max-width: none;
  }
  .cg-cert-desktop {
    width: calc(100% + 32px);
    margin-left: -16px;
    border-radius: 0;
  }

  .cg-illus-lines { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .cg-illus-lines img { flex: none; width: calc(50% - 8px); }
  .cg-bs-pics-cont { gap: 40px; }
  .cg-hero-inner,
  .cg-img-full,
  .cg-book-card-pic,
  .cg-renew-pic,
  .cg-renew-pic-main,
  .cg-renew-coll-img,
  .cg-read-mag-pic,
  .cg-mybooks-pic1,
  .cg-mybooks-pic1-main,
  .cg-catalog-pic1,
  .cg-catalog-pic1-main,
  .cg-catalog-pic2,
  .cg-cert-mobile,
  .cg-illus-pic,
  .cg-bs-main-img,
  .cg-bs-col-img,
  .cg-video-placeholder {
    border-radius: 16px;
  }
}

/* ══════════════════════════════════════════
   chitay-gorod: дополнительные мобильные правки
   ══════════════════════════════════════════ */
@media (max-width: 479px) {
  /* Меню не уходит за hero-изображение */
  .mtk-header-category { position: relative; z-index: 200; }
  .cg-hero { position: relative; z-index: 0; }

  /* Маскот-берёза под заголовком — вдвое меньше */
  .cg-subtitle-mascot { width: 51px; height: 92px; }

  /* Формула маркетплейса — в одну строку */
  .cg-formula-wrap { flex-wrap: nowrap; gap: 8px; }

  /* Подход: gap между карточками и сова */
  .cg-approach-cards-left { gap: 8px; }
  .cg-approach-owl { width: 91px; }

  /* Подписи под картинками — прижать к изображению */
  .cg-bs-col { gap: 12px; }

  /* Мои книги — gap между первой строкой и строкой с двумя телефонами */
  .cg-mybooks-pictures { gap: 12px; }

  /* Видео сертификатов — не обрезать высоту */
  .cg-cert-desktop video { height: auto !important; }

  /* Два изображения сертификатов рядом через grid */
  .cg-cert-colls {
    display: grid;
    grid-template-areas: "text text" "img1 img2";
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .cg-cert-coll1 { display: contents; }
  .cg-cert-coll1 > p.cg-body { grid-area: text; }
  .cg-cert-coll1 > .cg-cert-mobile {
    grid-area: img1;
    max-width: none;
    width: 100%;
    height: auto;
    aspect-ratio: 550 / 817;
  }
  .cg-cert-coll2 { grid-area: img2; align-self: start; }
  .cg-cert-coll2 img { width: 100%; height: auto; }

  /* Абзац "У автора на странице" — под картинку */
  .cg-bs-col:last-child .cg-bs-col-img { order: -1; }
}

@media (max-width: 425px) {
  /* Кнопка «Заказать дизайн» — снаружи меню, перед тремя точками */
  .div-block-17 > a { display: flex; }
  /* Убираем её из раскрывающегося меню, чтобы не было дублирования */
  .mtk-nav-menu .ask-button-link.order-des { display: none; }
  /* Убираем лишний отступ справа от кнопки перед гамбургером */
  .div-block-17 > a.ask-button-link.order-des { margin-right: 0; }

  .cg-plan-infograph { padding-left: 0; }
  .cg-plan-cont { gap: 16px; }
  .cg-info-col { gap: 24px; }
  .cg-formula-item { padding: 10px; }
  .cg-section-120 { padding-top: 32px; }
  .cg-read-mag-cont { padding-top: 32px; }
  .cg-mybooks-pictures { padding-top: 32px; }
  .cg-catalog-pics { padding-top: 32px; }
  .cg-cert-cont { padding-top: 32px; }
  .cg-bs-pics-cont { margin: 32px auto 0; }
  .cg-reply-card { margin: 32px auto 0; }
  p.cg-quote-author { font-size: 20px; }
  p.cg-quote-role { font-size: 18px; }
  .lsp-team.cg-team { padding-left: 0; padding-right: 0; }
  .mtk-wrapper.wrap-footer { padding-top: 0; }
  .cg-team .lsp-people-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
  .cg-team .lsp-person.person-motka.cent { align-items: flex-start; width: 100%; text-align: left; }
}

/* ══════════════════════════════════════════
   Перенесено из inline <style> страниц
   ══════════════════════════════════════════ */

/* Root pages: сброс margin-top от Webflow shared CSS */
body.mtk-body-main { margin-top: 0; }

/* Services: убираем двойной верхний отступ у description-wrapper после page-wrapper */
.services-desc { padding-top: 0; }

.footer-new { padding-top: 32px; }

/* Мобильные кейсы: убираем большой верхний отступ первых секций */
@media screen and (max-width: 767px) {
  .case-section.case-main.case-white { padding-top: 16px; }
  .case-section.case-main.case-white.gramota.nopad.gm,
  .case-section.case-main.case-white.nopad.mg { padding-top: 16px; }
  .case-wrapper.deepgeo { padding-top: 16px; }
  .case-wrapper.mtx { padding-top: 16px; }
  .case-wrapper.case-spherum { padding-top: 0; }
  .main.topnav.overflow-x.case-mobile.case-alg { padding-top: 16px; }
}

/* Колонки ссылок (портфолио/главная) */
.designlinks .portlinks {
  -webkit-column-width: 250px; -moz-column-width: 250px; column-width: 250px;
  -webkit-column-count: 3; -moz-column-count: 3; column-count: 3;
  -webkit-column-gap: 30px; -moz-column-gap: 30px; column-gap: 30px;
}

/* Видео-фон Moneywall */
.story5 .w-background-video > video {
  background-image: url(/assets/cdn.prod.website-files.com/623a4d65378e3dda4dd20f87/625455d11c841a695102d9dc_moneywall_videoBG.png) !important;
}



/* Services: hover-эффект карточки */
@media (min-width: 992px) {
  .service-container-right .service-image img { transition: transform 0.4s ease; will-change: transform; }
  .service-container-right:hover .service-image img { transform: scale(1.05); }
}

/* Services: скролл к якорям с учётом sticky-шапки */
.anchor, .service-wrap { scroll-margin-top: var(--anchor-offset, 0px); }
.sticky-tabs-spacer { height: 0px; }
.sticky-tabs.is-fixed {
  position: fixed !important;
  top: var(--sticky-top, 0px) !important;
  left: var(--sticky-left, 0px);
  width: var(--sticky-width, auto);
  z-index: 100;
}

/* Index: кастомные чекбоксы формы */
.checkbox-3 {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  opacity: 0; position: absolute; inset: 0; margin: 0; padding: 0;
  width: 100%; height: 100%; z-index: 2; cursor: pointer; outline: none; box-shadow: none;
}
.checkbox-field-2 {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 16px; border: 2px solid #D1C2BB; border-radius: 16px;
  background-color: transparent; transition: all 0.2s ease; cursor: pointer; overflow: hidden;
}
.checkbox-3.w--redirected-checked ~ .checkbox-field-2 { background-color: #f7f3f1; border: none; }

/* Congratz: плавная прокрутка ленты */
.trusted-by-list {
  -webkit-transition-timing-function: linear !important;
  -o-transition-timing-function: linear !important;
  transition-timing-function: linear !important;
}

/* Форма «Заказать дизайн»: капсульные чекбоксы */
.checkbox-pill-mobile {
  position: relative; display: inline-flex; align-items: center;
  padding: 0; border: none; background: transparent; cursor: pointer;
  font-family: 'Factor A', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.checkbox-pill-mobile input[type="checkbox"] {
  position: absolute; inset: 0; opacity: 0; margin: 0;
  width: 100%; height: 100%; cursor: pointer; z-index: 1;
}
.checkbox-pill-mobile span {
  position: relative; z-index: 0; display: inline-block;
  padding: 2px 11px; border: 1px solid #D1C2BB; border-radius: 16px;
  background: transparent; font-size: 14px; line-height: 24px;
  color: #858585; font-weight: 400; user-select: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.checkbox-pill-mobile input[type="checkbox"]:checked + span { background: #F3EFED; border-color: #F3EFED; color: #333; }
.checkbox-pill-mobile:hover span { border-color: #BBA89C; }
.checkbox-pill-mobile input[type="checkbox"]:focus-visible + span { outline: 2px solid #BBA89C; outline-offset: 2px; }

/* ── Форма попап: десктопные капсульные чекбоксы ── */
.checkbox-pill-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkbox-pill {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: Factor A, Arial, sans-serif;
}
.checkbox-pill input[type="checkbox"] { display: none; }
.checkbox-pill span {
  display: inline-block;
  padding: 3px 16px;
  border: 1px solid #D1C2BB;
  border-radius: 22px;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
  color: #807E7D;
  font-weight: 400;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.checkbox-pill input[type="checkbox"]:checked + span { background: #fff; border-color: #fff; color: #333; }
.checkbox-pill:hover span { border-color: #BBA89C; }

/* ── Форма попап: чекбокс «Согласие на обработку данных» ── */
:root {
  --cb-size: 16px;
  --cb-radius: 2px;
  --cb-border: 2px;
  --cb-color: #000;
  --cb-icon: url("/assets/cdn.prod.website-files.com/6576c5109dea6fc963ab8e4e/68e6176d02100277331b39b9_material-symbols_check-rounded.svg");
}
@media (max-width: 768px) {
  :root { --cb-size: 16px; --cb-radius: 2px; }
}
.new-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.new-checkbox__input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}
.new-checkbox__box {
  inline-size: var(--cb-size);
  block-size: var(--cb-size);
  border: var(--cb-border) solid var(--cb-color);
  border-radius: var(--cb-radius);
  background: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  flex: 0 0 auto;
}
.new-checkbox__input:focus-visible + .new-checkbox__box { box-shadow: 0 0 0 3px rgba(0,0,0,.15); }
.new-checkbox__input:checked + .new-checkbox__box {
  background-color: var(--cb-color);
  border-color: var(--cb-color);
  background-image: var(--cb-icon);
}
.new-checkbox__input:disabled + .new-checkbox__box { opacity: .5; cursor: not-allowed; }

/* privacy-policy, consent: список не должен быть тоньше остального текста */
.cookie-list .cookie-text { font-weight: 400; }


/* ── congratz: иллюстрации выходят за 1400px-контейнер и обрезаются по краю экрана ── */
.case-item-wide.cong-kit { overflow-x: clip; }

/* ── ai-body: видео «Enjoy the journey» — клип ── */
.case-video.case-journey { overflow: hidden; }
.case-video-bg.case-video-journey5 { overflow: hidden; }

/* ── scan: межстрочный интервал основного текста ── */
.p-case-scan { line-height: 34px; }

@media screen and (max-width: 479px) {
  .mtk-h4-cases {
    font-size: 1.4em;
    line-height: 95%;
  }
}

@media screen and (max-width: 991px) {
  .review-text-p.big-size-p { font-size: 24px; }
}
@media screen and (max-width: 767px) {
  .review-text-p, .review-text-p.big-size-p, .review-text-p.p-more { font-size: 18px !important; }
}

/* Теги-кейсы в секциях услуг стали ссылками на портфолио — сохраняем вид тега */
a.tag { text-decoration: none; color: inherit; transition: filter .15s ease, background-color .15s ease; }
a.tag:hover { filter: saturate(1.2) brightness(0.9); }
/* голубой плотный — умеренный фильтр */
a.tag.blue:hover { filter: saturate(1.5) brightness(0.85); }
/* полупрозрачные -20 (alpha 0.2): filter не берёт (за элементом просвечивает белый) — повышаем насыщенность через alpha фона */
a.tag.blue-20:hover  { filter: none; background-color: rgba(69, 127, 243, 0.47); }
a.tag.orange-20:hover { filter: none; background-color: rgba(178, 146, 49, 0.46); }
