/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateY(0);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 100;
}

.header.is-hidden {
  transform: translateY(-100%);
}

body.menu-open .header__logo {
  transform: scale(0.95);
  transform-origin: top left;
}

.header.is-scrolled {
  background: rgba(241, 242, 246, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.header__logo {
  display: inline-flex;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.header__logo img {
  width: 140px;
  height: auto;
  transition: filter 0.3s ease;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 60px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 60px;
  transition: opacity 0.2s ease;
}

.nav__link {
  position: relative;
  font-size: 20px;
  font-weight: 600;
  color: #000000;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #000000;
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.35s cubic-bezier(0.52, 0.01, 0.16, 1);
}

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

/* Menu toggle (burger) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform 0.25s ease, width 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  width: 36px;
}

.menu-toggle span:nth-child(2) {
  width: 26px;
}

.menu-toggle:hover span {
  width: 36px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
  width: 36px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-5.5px) rotate(-45deg);
  width: 36px;
}

/* Menu overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 24px;
  left: 24px;
  background: #17171A;
  z-index: 90;
  overflow: hidden;
  clip-path: circle(0px at var(--menu-x, 100%) var(--menu-y, 0%));
  transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.menu-overlay.is-open {
  clip-path: circle(150% at var(--menu-x, 100%) var(--menu-y, 0%));
  pointer-events: auto;
}

.menu-overlay__inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(max(var(--container-pad), (100vw - var(--container-width)) / 2) - 24px);
  width: min(var(--container-width), calc(100vw - 2 * var(--container-pad)));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  align-content: center;
  transform: translateY(-40px);
}

.menu-overlay__col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.menu-overlay__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 20px;
  font-size: 30px;
  font-weight: 500;
  color: #FFFFFF;
}

.menu-overlay__link-label {
  position: relative;
}

.menu-overlay__link-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.35s cubic-bezier(0.52, 0.01, 0.16, 1);
}

.menu-overlay__link:hover .menu-overlay__link-label::after {
  transform: scaleX(1);
}

.menu-overlay__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  flex-shrink: 0;
}

.menu-overlay__badge {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--gradient-banana);
  color: #17171A;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.menu-overlay__email {
  position: absolute;
  left: calc(max(var(--container-pad), (100vw - var(--container-width)) / 2) - 24px);
  bottom: var(--space-10);
  color: #FFFFFF;
  font-size: 30px;
  font-weight: 500;
  opacity: 1;
}

.menu-overlay__email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.35s cubic-bezier(0.52, 0.01, 0.16, 1);
}

.menu-overlay__email:hover::after {
  transform: scaleX(1);
}

.menu-overlay__cta {
  position: absolute;
  right: max(var(--container-pad), (100vw - var(--container-width)) / 2);
  bottom: var(--space-10);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  transition: transform 0.25s ease;
}

.menu-overlay__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--gradient-banana);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay__cta:hover {
  transform: scale(1.06);
}

.menu-overlay__cta:hover::before {
  transform: scale(1);
}

/* Header inversion while dark menu is open */
body.menu-open .header.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.menu-open .header__logo img {
  filter: brightness(0) invert(1);
}

body.menu-open .menu-toggle span {
  background: #FFFFFF;
}

/* Page content squeezes while the dark menu opens, unsqueezes on close */
.page-shell {
  max-width: 100vw;
  overflow-x: clip;
  overflow-y: visible;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  transform-origin: top right;
}

body.menu-open .page-shell {
  transform: scale(0.95);
  overflow: hidden;
}

body.menu-open .nav {
  opacity: 0;
  pointer-events: none;
}

/* Brief modal */
.brief-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
  transform-origin: 50% 50%;
  transition: opacity 0.5s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.5s cubic-bezier(0.65, 0, 0.35, 1), transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.brief-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.brief-modal__inner {
  height: 100%;
  padding-top: 200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.brief-modal__title {
  position: relative;
  z-index: 1;
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.brief-modal__subtext {
  max-width: 480px;
}

.brief-modal__cta {
  align-self: flex-start;
  margin-top: 80px;
}

.brief-modal__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 0;
}

.hero__plate.hero__plate--grey {
  width: 600px;
  height: 440px;
  padding: 80px 30px 30px 80px;
  background: var(--color-bg);
}

.hero__plate.hero__plate--grey .founder-banner__plate-watermark {
  color: #F7F8FA;
}

.brief-modal__left {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.brief-form__copyright {
  font-size: 18px;
  color: var(--color-ink-soft);
}

.brief-modal__photo {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 520px;
  height: 520px;
  background-image: url('../assets/images/brief/brief_girl.png');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  z-index: 0;
}

.brief-modal__photo--success {
  background-image: url('../assets/images/brief/brief_girl-success.png');
}

.brief-modal__right--static {
  overflow: visible;
}

.brief-modal__telegram {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  align-self: flex-start;
}

.brief-modal__right {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.brief-form__copyright--pinned {
  position: absolute;
  left: 0;
  bottom: 30px;
}

.brief-modal__right::-webkit-scrollbar {
  display: none;
}

.brief-modal__close {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.brief-modal__close span {
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-ink);
}

.brief-modal__close span:first-child {
  transform: translateY(5.5px) rotate(45deg);
}

.brief-modal__close span:last-child {
  transform: translateY(-5.5px) rotate(-45deg);
}

body.brief-open .menu-toggle {
  display: none;
}

body.brief-open .brief-modal__close {
  display: flex;
}

body.brief-open .nav {
  opacity: 0;
  pointer-events: none;
}

body.brief-open .header.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brief-form {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 720px;
  padding-bottom: 30px;
}

.brief-form__block {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.brief-form__subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-ink);
}

.brief-form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 30px;
  column-gap: 24px;
}

.brief-form__field {
  display: flex;
  flex-direction: column;
}

.brief-form__field input,
.brief-form__field textarea {
  border: none;
  border-bottom: 2px solid var(--color-line);
  padding: 10px 0;
  font-size: 20px;
  font-family: inherit;
  color: var(--color-ink);
  background: transparent;
  resize: none;
  transition: border-color 0.2s ease;
}

.brief-form__field input::placeholder,
.brief-form__field textarea::placeholder {
  color: #CFCFCF;
}

.brief-form__field input:focus,
.brief-form__field textarea:focus {
  outline: none;
  border-color: var(--color-ink);
}

.brief-form__field.is-invalid input,
.brief-form__field.is-invalid textarea {
  border-color: #E5484D;
  color: #E5484D;
}

.brief-form__field.is-invalid input::placeholder,
.brief-form__field.is-invalid textarea::placeholder {
  color: #E5484D;
}

.brief-form__file {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}

.brief-form__file-meta {
  color: currentColor;
  opacity: 0.6;
  margin-left: 4px;
}

.brief-form__file-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  background: none;
  border: none;
  padding: 0;
  color: currentColor;
  cursor: pointer;
}

.brief-form__file-remove[hidden] {
  display: none;
}

.brief-form__submit-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.brief-form__submit {
  align-self: flex-start;
}

.brief-form__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.brief-form__status {
  font-size: 16px;
  color: var(--color-ink);
}

.brief-form__status--error {
  color: #E5484D;
}

.brief-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink-soft);
  cursor: pointer;
}

.brief-form__consent input[type="checkbox"] {
  appearance: none;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border: 2px solid var(--color-line);
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.brief-form__consent input[type="checkbox"]:checked {
  background: var(--color-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6L5 9L10 3' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--color-ink);
}

.brief-form__consent.is-invalid input[type="checkbox"] {
  border-color: #E5484D;
}

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border: none;
  outline: none;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.85;
}

.button--lg {
  height: auto;
  gap: 14px;
  padding: 26px 44px;
  font-size: 22px;
  font-weight: 400;
}

.hero__cta:hover {
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  padding: 256px 0 80px;
  overflow: hidden;
}

.hero--page {
  padding: 200px 0 160px;
  min-height: 640px;
}

.hero--photo-bg {
  background-size: cover;
  background-position: center;
}

.hero--photo-bg__card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: 40px;
  padding: 60px;
}

.hero--photo-bg__card .breadcrumb {
  justify-content: center;
}

.hero--photo-bg .breadcrumb,
.hero--photo-bg .breadcrumb a {
  color: var(--color-ink-soft);
}

.hero--photo-bg .breadcrumb a:hover {
  color: var(--color-ink);
}

.hero--photo-bg .hero__title {
  color: var(--color-ink);
}

.case-hero-split {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.case-hero-split__widget {
  flex: 1;
  min-width: 0;
  border-radius: 40px;
}

.case-hero-split__widget--text {
  background: var(--color-bg);
  padding: 60px;
  min-height: 640px;
  display: flex;
  flex-direction: column;
}

.case-hero-split__widget--text .breadcrumb,
.case-hero-split__widget--text .hero__title {
  text-align: left;
}

.case-hero-split__widget--text .hero__title {
  margin: 0;
}

.seo-text__block--left {
  text-align: left;
  margin: 0;
}

.seo-text__block--left .stub-block__text {
  text-align: left;
}

.seo-text__block--center-left {
  margin: 0 auto;
  text-align: left;
}

.case-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.case-nav__group {
  display: flex;
  gap: 16px;
}

.case-related {
  display: flex;
  gap: 40px;
}

.case-related .cases-grid__item {
  flex: 1;
  margin-bottom: 0;
}

.case-related__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  margin-bottom: 60px;
}

.case-divider {
  height: 1px;
  background: var(--color-line);
  border: none;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.case-divider--narrow {
  position: static;
  width: 100%;
  max-width: 900px;
  left: auto;
  right: auto;
  margin-left: auto;
  margin-right: auto;
}

.divider-gap {
  margin-top: 120px;
}

.mobile-break {
  display: none;
}

.vacancies-cta {
  margin-top: 80px;
  margin-bottom: 200px;
}

.desktop-break {
  display: inline;
}

.founder-about {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.founder-about__photos {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 360px 360px;
  gap: 20px;
  margin-left: calc((100% - 100vw) / 2 - 40px);
}

.founder-about__photo {
  width: 360px;
  height: 360px;
  border-radius: 40px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.founder-about__card {
  flex: 1.3;
  background: #FFFFFF;
  border-radius: 40px 0 0 40px;
  padding: 80px;
  margin-right: calc((100% - 100vw) / 2);
  padding-right: calc((100vw - 100%) / 2 + 80px);
}

.founder-about__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  margin-bottom: 40px;
}

.founder-about__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.founder-about__list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 24px;
  font-size: 24px;
  line-height: 1.4;
}

.founder-about__list li:last-child {
  margin-bottom: 0;
}

.founder-about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ink);
}

.founder-about__about {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 18px;
}

.founder-about__about strong {
  display: block;
  margin-bottom: 8px;
}

.case-banner-wrap {
  position: relative;
}

.case-banner__widget {
  position: absolute;
  right: 40px;
  bottom: 40px;
  width: fit-content;
  background: #FFFFFF;
  border-radius: 40px;
  padding: 32px 40px;
}

.case-banner__widget-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.case-banner__widget-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-banner__widget-tags-row {
  display: flex;
  gap: 12px;
}

.case-banner__widget-tags .service-tags__item--sm {
  background: var(--color-bg);
}

.seo-text__block--center-left .seo-text__title,
.seo-text__block--center-left .stub-block__text {
  text-align: left;
}

.case-hero-split__widget--text .button {
  align-self: flex-start;
  margin-top: 80px;
}

.case-hero-split__widget--image {
  overflow: hidden;
}

.case-hero-split__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  font-size: clamp(34px, 4.9vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 1100px;
}

.hero__title-line {
  display: block;
}

.hero__typing-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 4px;
  background: currentColor;
  vertical-align: -0.1em;
  animation: hero-cursor-blink 1s step-end infinite;
}

@keyframes hero-cursor-blink {
  50% { opacity: 0; }
}

.hero__cta {
  margin-top: 80px;
  height: auto;
  padding: 26px 44px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 400;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.hero__cta {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero__cta-arrow {
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(4px);
}

.hero__banner {
  position: relative;
  width: 100%;
  height: 800px;
  margin-top: 160px;
  border-radius: 60px;
  background: #000000;
  overflow: hidden;
}

.hero__banner--pre-footer {
  margin-top: 100px;
  margin-bottom: 160px;
}

.hero .hero__banner {
  margin-top: 200px;
}

.hero__banner--dark-hover .hero__plate::before {
  background: #000000;
}

.hero__banner--dark-hover .hero__plate:hover .hero__plate-title,
.hero__banner--dark-hover .hero__plate:hover .hero__plate-text {
  color: #FFFFFF;
}

.hero__banner--dark-hover .hero__plate:hover .founder-banner__plate-watermark {
  color: #262626;
}

.hero__banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__plates {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  gap: 10px;
}

.hero__plate {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 460px;
  height: 240px;
  padding: 30px 30px 30px 40px;
  border-radius: 40px;
  background: #FFFFFF;
  text-align: left;
}

.hero__plate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #FFC94D;
  clip-path: circle(0% at 20% 100%);
  transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero__plate:hover::before {
  clip-path: circle(120% at 20% 100%);
}

.hero__plate-title {
  position: relative;
  z-index: 1;
  font-size: 30px;
  font-weight: var(--fw-bold);
  line-height: 1.15;
  color: var(--color-ink);
  transition: color 0.35s ease 0.1s;
}

.hero__plate:hover .hero__plate-title {
  color: var(--color-ink);
}

.hero__plate-text {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease 0.1s;
  font-size: 18px;
  line-height: 1.35;
  color: var(--color-ink-soft);
}

.hero__plate:hover .hero__plate-text {
  color: var(--color-ink);
}

.hero__plate-list {
  position: relative;
  z-index: 1;
}

.hero__plate-list li {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-ink-soft);
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 10px;
}

.hero__plate-list li:last-child {
  margin-bottom: 0;
}

/* Logo marquee */
.logo-marquee {
  width: 100%;
  padding: 160px 0 80px;
  overflow: hidden;
}

.logo-marquee--home {
  padding-top: 220px;
  padding-bottom: 40px;
}

.logo-marquee--wide-gap {
  padding: 240px 0;
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 45s linear infinite;
}

.logo-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-marquee__logo {
  height: auto;
  width: 120px;
  margin-right: 160px;
  opacity: 1;
  filter: grayscale(1) brightness(0);
}

.logo-marquee__logo--partner {
  width: 160px;
}

.logo-marquee__logo--beget {
  width: 112px;
}

.logo-marquee__logo--newtech {
  width: 160px;
}

.logo-marquee__logo--kalina {
  width: 100px;
}

@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Stub block (placeholder for upcoming sections) */
.stub-block {
  padding: 100px 0;
  border-top: 1px solid var(--color-line);
  text-align: center;
}

.stub-block__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  text-align: left;
  margin-bottom: 12px;
}

.stub-block__text {
  font-size: 16px;
  color: var(--color-ink-soft);
}

/* Сворачиваемый текст (мобил): по умолчанию — не активен, весь текст виден как есть */
.text-collapse {
  max-height: none;
  overflow: visible;
}

.text-collapse__toggle {
  display: none;
}

/* About */
.about {
  padding: 100px 0;
  border-top: 1px solid var(--color-line);
}

.about__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  margin-bottom: 60px;
}

.about-sticky-scroller {
  position: relative;
  height: calc(var(--step-count, 3) * 100vh);
}

.about-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 40px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-sticky__media {
  position: relative;
  flex: 0 0 50%;
  height: 100%;
}

.about-sticky__media-item {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-sticky__media-item.is-active {
  opacity: 1;
}

.about-sticky__media-item[data-media="0"] { background-image: linear-gradient(135deg, #2B2A29 0%, #000000 100%); }

.about-sticky__content {
  position: relative;
  flex: 1;
  height: 100%;
}

.about-sticky__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.about-sticky__step.is-active {
  opacity: 1;
  pointer-events: auto;
}

.about-sticky__cta {
  background: #000000;
  color: #FFFFFF;
  align-self: flex-start;
  margin-top: 32px;
}

.about-sticky__step-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.about-sticky__step-title--lg {
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 600;
  margin-bottom: 24px;
}

.about-sticky__step-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ink-soft);
  max-width: 500px;
}

.about-sticky__nav {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-sticky__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-ink);
  color: #FFFFFF;
  cursor: pointer;
}

.about-sticky__arrow--prev svg {
  transform: rotate(180deg);
}

/* Cases */
.cases {
  padding: 100px 0;
  border-top: 1px solid var(--color-line);
  text-align: center;
}

.cases--home {
  border-top: 1px solid var(--color-line);
}

.cases__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  text-align: left;
  margin-bottom: 50px;
}

.cases__title--home {
  text-align: center;
  margin-bottom: 120px;
}

.cases-grid {
  display: flex;
  justify-content: space-between;
  width: 1600px;
  max-width: 100%;
  margin: 0 auto 50px;
  text-align: left;
}

.cases-grid__col {
  width: 740px;
  display: flex;
  flex-direction: column;
}

.scroll-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 90;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: scale(1.08);
}

.scroll-top svg {
  transform: rotate(-90deg);
}

.cases-grid__item {
  display: block;
  color: inherit;
  text-decoration: none;
  margin-bottom: 80px;
}

.cases-grid__image {
  display: block;
  width: 100%;
  height: 500px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
}

.cases-grid__title {
  max-width: 680px;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
}

.cases-grid__desc {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ink-soft);
  margin-bottom: 10px;
}

.cases-grid__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 40px;
}

.cases-grid__image-wrap .cases-grid__image {
  margin-bottom: 0;
  transition: transform 0.5s ease;
}

.cases-grid__image-wrap:hover .cases-grid__image {
  transform: scale(1.08);
}

.cases-grid__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(241, 242, 246, 0.35);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: #000000;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cases-grid__badge svg {
  width: 64px;
  height: 64px;
}

.cases-grid__image-wrap:hover .cases-grid__badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cases-grid__date {
  font-size: 14px;
  color: var(--color-ink-soft);
}

.cases__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: auto;
  padding: 26px 44px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 400;
}

/* Services strip */
.services-strip {
  padding: 100px 0;
  border-top: 1px solid var(--color-line);
}

.services-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* FAQ */
.faq {
  padding: 100px 0;
  border-top: 1px solid var(--color-line);
}

.faq--no-line {
  border-top: none;
  padding-top: var(--space-block);
  padding-bottom: 60px;
}

.additional-services {
  padding: 160px 0;
  padding-top: 0;
  padding-bottom: 0;
}

.additional-services__sticky {
  gap: 120px;
}

.additional-services__sticky .about-sticky__step-title {
  margin-bottom: 60px;
}

.additional-services__sticky .about-sticky__media {
  width: 960px;
  flex: 0 0 960px;
}

.additional-services__sticky .service-tags__cloud {
  justify-content: flex-start;
}

.service-tags__cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 80px;
}

.service-tags__cloud--sm {
  gap: 20px;
}

.service-tags__item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  border-radius: 24px;
  border: 1.5px solid var(--color-line);
  background: #FFFFFF;
  font-size: 26px;
  font-weight: 500;
  color: var(--color-ink);
  white-space: nowrap;
}

.service-tags__item--sm {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.service-tags__item--sm:hover {
  background: var(--color-ink);
  color: #FFFFFF;
}

.services-features__intro-block {
  max-width: 900px;
  margin: 200px auto 200px;
  text-align: center;
}

.services-features--divider .services-features__intro-block {
  margin-top: 200px;
}

.services-features--divider .services-features__flagship {
  margin-bottom: 200px;
}

.services-features__flagship-note {
  position: absolute;
  left: 80px;
  bottom: 40px;
  z-index: 2;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.partners-programs__submit {
  margin-top: 80px;
}

.services-features__intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: auto;
  padding: 26px 44px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 400;
  margin-top: 80px;
}

.services-features__intro-block .services-features__title {
  margin-bottom: 80px;
}

.services-features__intro-block .stub-block__text {
  font-size: clamp(14px, 1vw, 20px);
  line-height: 1.6;
  margin-bottom: 20px;
}

.services-features__intro-block .stub-block__text:last-of-type {
  margin-bottom: 0;
}

.faq__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  text-align: center;
  margin-bottom: 60px;
}

.faq__list {
  max-width: 1170px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-line);
  border-radius: 24px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.faq__item.is-open {
  background: #FFFFFF;
  border-bottom-color: transparent;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 26px;
  font-weight: 500;
  color: var(--color-ink);
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--color-ink);
  border-radius: 50%;
}

.faq__icon span {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-ink);
  transition: transform 0.25s ease;
}

.faq__icon span:nth-child(1) {
  width: 12px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq__icon span:nth-child(2) {
  width: 1.5px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq__item.is-open .faq__icon span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.faq__answer-inner {
  padding: 0 60px 60px;
  font-size: clamp(14px, 1vw, 20px);
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.faq__answer-inner p {
  margin-bottom: 16px;
}

.faq__answer-inner p:last-child {
  margin-bottom: 0;
}

/* Reusable animated gradient glow (mesh-gradient style) */
.blob-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob-bg span {
  position: absolute;
  width: 32vw;
  height: 32vw;
  background: radial-gradient(circle at 40% 40%, #FFC94D 0%, #FFB238 45%, rgba(255, 178, 56, 0) 72%);
  filter: blur(60px);
}

.blob-bg span:nth-child(1) {
  top: -8%;
  left: -6%;
  animation: blob-live-a 17s ease-in-out infinite;
}

.blob-bg span:nth-child(2) {
  top: -4%;
  right: 2%;
  animation: blob-live-b 21s ease-in-out infinite;
  animation-delay: -9s;
}

@keyframes blob-live-a {
  0%   { border-radius: 58% 42% 55% 45% / 45% 55% 42% 58%; transform: translate(0%, 0%) scale(0.75); opacity: 0; }
  25%  { border-radius: 42% 58% 40% 60% / 60% 40% 58% 42%; transform: translate(-3%, 4%) scale(1.05); opacity: 0.35; }
  50%  { border-radius: 65% 35% 60% 40% / 40% 60% 35% 65%; transform: translate(3%, -3%) scale(0.75); opacity: 0; }
  75%  { border-radius: 38% 62% 45% 55% / 55% 45% 62% 38%; transform: translate(-2%, -4%) scale(1.1); opacity: 0.4; }
  100% { border-radius: 58% 42% 55% 45% / 45% 55% 42% 58%; transform: translate(0%, 0%) scale(0.75); opacity: 0; }
}

@keyframes blob-live-b {
  0%   { border-radius: 45% 55% 42% 58% / 58% 42% 55% 45%; transform: translate(0%, 0%) scale(1.05); opacity: 0.35; }
  25%  { border-radius: 60% 40% 58% 42% / 42% 58% 40% 60%; transform: translate(3%, -4%) scale(0.75); opacity: 0; }
  50%  { border-radius: 40% 60% 35% 65% / 65% 35% 60% 40%; transform: translate(-3%, 3%) scale(1.1); opacity: 0.4; }
  75%  { border-radius: 55% 45% 62% 38% / 38% 62% 45% 55%; transform: translate(2%, 4%) scale(0.75); opacity: 0; }
  100% { border-radius: 45% 55% 42% 58% / 58% 42% 55% 45%; transform: translate(0%, 0%) scale(1.05); opacity: 0.35; }
}

/* Services features (homepage) */
.services-features {
  padding: 120px 0 160px;
}

.services-features--page {
  padding-top: 0;
  padding-bottom: 0;
}

.services-features--divider {
  border-top: 1px solid var(--color-line);
}

.services-features__title {
  max-width: 700px;
  margin: 0 auto 120px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--color-ink);
}

.services-features__title--3 {
  font-size: 24px;
  margin-bottom: 60px;
}

.services-features__title--extra {
  margin-top: 120px;
  margin-bottom: 60px;
}

.services-features__row--extra {
  margin-top: 0;
}

.services-features__row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.services-features__row--vertical {
  grid-template-columns: repeat(3, 1fr);
}

.services-features__row--vertical .services-features__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 660px;
}

.school-directions.services-features__row--vertical .services-features__card {
  min-height: 440px;
  overflow: visible;
}

.school-directions.services-features__row--horizontal .services-features__card {
  height: 440px;
}

.services-features__card-image {
  position: relative;
  flex: 1;
  margin: 30px 0 -80px;
}

.services-features__card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
  transform: scale(1.25);
  transform-origin: bottom center;
}

.services-features__card-image--analysis img {
  transform: scale(1.03) translateY(0%);
}

.services-features__card-image--branding img {
  transform: scale(0.9) translateY(-53px);
}


.services-features__row--horizontal {
  grid-template-columns: repeat(2, 1fr);
}

.services-features__row--horizontal .services-features__card {
  height: 660px;
  overflow: hidden;
}

.services-features--page .services-features__row--tall {
  margin-bottom: 0;
}

.services-features__row--tall .services-features__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 660px;
}

.services-features__card-mvp2-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 660px;
  object-fit: cover;
  z-index: 0;
}

.services-features__card--mvp2 .services-features__card-title,
.services-features__card--mvp2 .services-features__card-text {
  position: relative;
  z-index: 1;
  max-width: 180px;
}

.services-features__card {
  padding: 80px;
  border-radius: 40px;
  background: #FFFFFF;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-features__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.services-features__card--photo-bg {
  position: relative;
}

.services-features__card--ui-ux2 {
  position: relative;
  background: #FFFFFF;
}

.services-features__card-uiux2-image {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  display: block;
}

.services-features__card--ui-ux2 .services-features__card-title,
.services-features__card--ui-ux2 .services-features__card-text,
.services-features__card--ui-ux2 .services-features__card-list {
  position: relative;
  z-index: 1;
  max-width: 240px;
}

.services-features__card--icon-bottom {
  position: relative;
}

.services-features__card--icon-bottom .services-features__card-text {
  max-width: 280px;
}

.services-features__card-icon-bottom {
  position: absolute;
  bottom: 80px;
  right: 80px;
  width: 340px;
}

.services-features__card-icon-bottom img {
  display: block;
  width: 100%;
  height: auto;
}

.services-features__card--photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
}

.services-features__card-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.services-features__card--photo-bg .services-features__card-title,
.services-features__card--photo-bg .services-features__card-text,
.services-features__card--photo-bg .services-features__card-list {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
}

.services-features__card--photo-bg .services-features__card-list {
  color: rgba(255, 255, 255, 0.55);
}

.services-features__card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.services-features__card-list li {
  position: relative;
  padding-left: 20px;
}

.services-features__card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.services-features__card--photo-bg .services-features__card-text {
  max-width: 300px;
}

.services-features__card--acid {
  background: #FFD000;
}

.services-features__card--dark {
  position: relative;
  background: #17171A;
}

.services-features__card--dark .services-features__card-title {
  color: #FFFFFF;
}

.services-features__card--dark .services-features__card-text {
  color: rgba(255, 255, 255, 0.55);
}

.services-features__card--dark .services-features__card-list {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.55);
}

.services-features__card-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.services-features__card--dark .services-features__card-title,
.services-features__card--dark .services-features__card-text {
  position: relative;
  z-index: 1;
}

.services-features__card-web-wrap {
  position: absolute;
  left: 80px;
  bottom: 0;
  width: 446px;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
}

.services-features__card-web-wrap--wide {
  right: 0;
  bottom: 140px;
  width: 446px;
  border-radius: 0;
  overflow: visible;
}

.services-features__card-web-glass {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 30% 20%, rgba(255, 255, 255, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 60% at 80% 75%, rgba(255, 255, 255, 0.1), transparent 70%);
  backdrop-filter: blur(18px);
}

.services-features__card-web-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.95;
}

.services-features__card--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}

.services-features__card-body {
  flex: 1;
  min-width: 0;
}

.services-features__card-side-image {
  flex-shrink: 0;
  width: 286px;
}

.services-features__card-side-image--reserve {
  width: 360px;
  align-self: center;
  margin-right: -80px;
}

.services-features__card-side-image img {
  display: block;
  width: 100%;
  height: auto;
}

.services-features__card-title {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 30px;
  color: #000000;
}

.services-features__card-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.services-features__flagship {
  position: relative;
  overflow: hidden;
  height: 660px;
  margin-top: 200px;
  margin-bottom: 0;
  padding: 80px;
  border-radius: 40px;
  background: #17171A;
  display: flex;
  align-items: flex-start;
}

.services-features__flagship-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.services-features__flagship-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
}

.services-features__flagship-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.services-features__flagship-person {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  filter: brightness(0.8);
}

.services-features__flagship-icon-wrap {
  position: absolute;
  z-index: 2;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  border-radius: 10px;
  overflow: hidden;
}

.services-features__flagship-icon-glass {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 30% 20%, rgba(255, 255, 255, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 60% at 80% 75%, rgba(255, 255, 255, 0.1), transparent 70%);
  backdrop-filter: blur(18px);
}

.services-features__flagship-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.95;
}

.services-features__flagship-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--gradient-banana);
  color: #17171A;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  margin-bottom: 20px;
}

.services-features__flagship-title {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.services-features__flagship-text {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.services-features__flagship-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
  margin-top: 60px;
  list-style: none;
}

.services-features__flagship-item {
  position: relative;
  padding-left: 20px;
}

.services-features__flagship-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
}

.services-features__flagship-item-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.services-features__flagship-item-text {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.services-strip__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.services-strip__num {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink-soft);
}

/* Page hero (listing pages: breadcrumb + title + filters) */
.page-hero {
  position: relative;
  padding: 200px 0 80px;
}

.page-hero--contacts {
  padding-bottom: 200px;
}

.contacts-info {
  display: grid;
  grid-template-columns: 620px 1fr;
  align-items: start;
  margin-top: 120px;
}

.contact-socials {
  display: flex;
  gap: 20px;
}

.contact-socials__link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.contact-socials__link:hover {
  opacity: 0.7;
}

.page-hero__info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-hero__info-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-hero__info-label {
  font-size: 18px;
  font-weight: 500;
  color: #9B9A97;
}

.page-hero__info-link {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
  text-decoration: none;
}

a.page-hero__info-link {
  text-decoration: underline;
}

a.page-hero__info-link--plain {
  text-decoration: none;
}

a.page-hero__info-link:hover {
  color: var(--color-ink-soft);
}

.page-hero--center {
  padding-bottom: 120px;
}

.page-hero--center .page-hero__title {
  text-align: center;
}

.page-hero--center .breadcrumb {
  justify-content: center;
}

.page-hero .blob-bg {
  inset: -120px;
}

.page-banner .breadcrumb {
  justify-content: center;
}

.contact-cards {
  padding-top: var(--space-block);
  padding-bottom: var(--space-block);
}

.contact-cards__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-cards__card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 420px;
  border-radius: 40px;
  background: #FFFFFF;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-cards__card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}

.contact-cards__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.contact-cards__card--plain {
  min-height: 660px;
}

.contact-cards__card--plain::after {
  display: none;
}

.contact-cards__image--fixed {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 660px;
  flex: none;
}

.contact-cards__card--photo-bg::after {
  display: none;
}

.contact-cards__image.contact-cards__image--bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.contact-cards__card--photo-bg .contact-cards__content {
  position: relative;
  z-index: 1;
  flex: none;
  width: 100%;
}

.contact-cards__card--photo-bg .contact-cards__title,
.contact-cards__card--photo-bg .contact-cards__text {
  max-width: 280px;
}

.contact-cards__content {
  flex: 0 0 50%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-cards__cta {
  margin-top: auto;
  align-self: flex-start;
}

.contact-cards__image {
  flex: 0 0 50%;
  width: 50%;
  object-fit: cover;
}

.contact-cards__title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-cards__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.contact-cards__card .contact-cards__list {
  margin-top: 20px;
}

.contact-cards__list li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-ink-soft);
  list-style: disc;
  margin-left: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-ink-soft);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-ink-soft);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--color-ink);
}

.page-hero__title {
  font-size: clamp(34px, 4.9vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 80px;
}

.page-hero__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 20px;
}

.page-hero__cta:hover .page-hero__cta-arrow {
  transform: translateX(4px);
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-filters.is-invalid .case-filters__tab {
  border-color: #E5484D;
}

.case-filters__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--color-line);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.case-filters__tab:hover,
.case-filters__tab.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #FFFFFF;
}

.case-filters--no-border .case-filters__tab {
  border: none;
}

.cases--page {
  border-top: none;
  padding-top: 0;
}

/* Simple page banner (inner pages stub) */
.page-banner {
  position: relative;
  padding: 200px 0 var(--space-block);
  text-align: center;
}

.page-banner .blob-bg {
  inset: -120px;
}

.inline-avatar {
  display: inline-flex;
  width: 100px;
  height: 60px;
  vertical-align: middle;
  margin: 0 6px;
  border-radius: 30px;
  overflow: hidden;
  background: #FFD000;
}

.inline-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner__title {
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 4.9vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.services-strip__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* SEO text blocks */
.seo-text {
  padding: 100px 0;
}

.seo-text--plain {
  padding-top: 40px;
  padding-bottom: 200px;
}

.seo-text--after-directions {
  padding-top: 160px;
}


.seo-text__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.seo-text__block {
  width: 1170px;
  max-width: 100%;
  padding: 60px;
  text-align: left;
}

.seo-text__block--card {
  width: 1170px;
  max-width: 100%;
  background: #FFFFFF;
  border-radius: 24px;
}

.seo-text__block--plain {
  max-width: 900px;
  padding: 0;
  text-align: center;
}

.seo-text__title {
  font-size: 26px;
  font-weight: 500;
  text-align: left;
  margin-bottom: 30px;
}

.seo-text__title--title2 {
  font-size: clamp(28px, 3vw, 44px);
  text-align: center;
  margin-bottom: 80px;
}

.seo-text__block p {
  font-size: clamp(14px, 1vw, 20px);
  line-height: 1.6;
  color: var(--color-ink-soft);
  margin-bottom: 16px;
}

.seo-text__block--plain .stub-block__text {
  font-size: clamp(14px, 1vw, 20px);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}

.seo-text__block--plain .stub-block__text:last-of-type {
  margin-bottom: 0;
}

.seo-text__block--left .stub-block__text,
.seo-text__block--center-left .seo-text__title,
.seo-text__block--center-left .stub-block__text {
  text-align: left;
}

.seo-text__block p:last-child {
  margin-bottom: 0;
}

/* Founder banner (About page) */
.founder-banner {
  padding: 0 0 100px;
}

.founder-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.founder-banner__plates {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.founder-banner__plate {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 50px;
  border-radius: 40px;
  background: #FFFFFF;
}

.founder-banner__plate-watermark {
  position: absolute;
  right: 20px;
  bottom: -0.18em;
  z-index: 0;
  font-size: 200px;
  font-weight: var(--fw-regular);
  line-height: 1;
  color: var(--color-bg);
  user-select: none;
  pointer-events: none;
}

.founder-banner__plate-watermark--flush {
  right: -0.05em;
}

.founder-banner__plate-title {
  position: relative;
  z-index: 1;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: var(--color-ink);
}

.founder-banner__plate-text {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-ink-soft);
}

.founder-banner__photo {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: #000000;
  min-height: 600px;
}

.founder-banner__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder-note {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
}

.founder-quote {
  padding: 60px 0 200px;
  text-align: center;
}

.founder-quote__inner {
  max-width: 1500px;
}

.founder-quote__marks {
  display: block;
  font-size: 200px;
  font-weight: 700;
  line-height: 0.5;
  color: var(--color-line);
  margin-bottom: 40px;
}

.founder-quote__text {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--color-ink);
}

.founder-quote__profile {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 14px 40px 14px 14px;
  margin-top: 80px;
}

.founder-quote__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-banana);
  object-fit: cover;
  display: block;
}

.founder-quote__info {
  text-align: left;
}

.founder-quote__name {
  font-size: 24px;
  font-weight: 600;
}

.founder-quote__role {
  margin-top: 10px;
  font-size: 18px;
  color: var(--color-ink-soft);
}

/* Clients carousel (About page) */
.clients-block {
  padding: 0 0 100px;
}

.clients-block__head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 120px;
}

.clients-block__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  text-align: center;
}

.clients-block__nav-float {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 50%;
  background: var(--color-ink);
  color: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.12s ease-out;
}

.clients-block__nav-float.is-visible {
  opacity: 0.6;
}

.clients-block__nav {
  display: flex;
  gap: 12px;
}

.clients-block__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--color-ink);
  color: #FFFFFF;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.clients-block__arrow:hover {
  opacity: 0.8;
}

.clients-block__arrow:active {
  transform: scale(0.9);
}

.clients-block__carousel {
  overflow: hidden;
  padding: 40px 0 80px;
  margin: -40px calc(-1 * max(var(--container-pad), (100vw - var(--container-width)) / 2)) -80px calc(-1 * max(var(--container-pad), (100vw - var(--container-width)) / 2));
  cursor: none;
}

.clients-block__track {
  display: flex;
  gap: 80px;
  width: max-content;
  padding-left: max(var(--container-pad), (100vw - var(--container-width)) / 2);
  will-change: transform;
  user-select: none;
}

.clients-block__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.clients-block__slide-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-ink);
}

.clients-block__slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clients-block__slide-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--color-ink);
}

.clients-block__slide-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.clients-block__review {
  flex: 0 0 660px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 520px;
  padding: 80px;
  border-radius: 24px;
  background: #FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clients-block__carousel:not(.is-dragging) .clients-block__review:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.clients-block__review-text {
  flex: 1;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-ink);
}

.clients-block__review-text p {
  margin-bottom: 16px;
}

.clients-block__review-text p:last-child {
  margin-bottom: 0;
}

.clients-block__review-author {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 80px;
  text-align: left;
}

.clients-block__review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-banana);
}

.clients-block__review-avatar--green {
  background: #31582A;
}

.clients-block__review-avatar--blue {
  background: #607572;
}

.clients-block__review-avatar--sage {
  background: #9AAB87;
}

.clients-block__review-avatar--pale {
  background: #FFFCB1;
}

.clients-block__review-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.clients-block__review-author strong {
  font-size: 24px;
  font-weight: 600;
}

.clients-block__review-author span {
  margin-top: 10px;
  font-size: 18px;
  color: var(--color-ink-soft);
}

.clients-block__review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.clients-block__review-tag {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-line);
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

/* Agency block (About page) */
.agency-block {
  padding: 0 0 100px;
}

.agency-block__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.agency-block__title--section {
  margin-bottom: 60px;
}

.agency-block__photo {
  position: relative;
  width: 50%;
  aspect-ratio: 3 / 4;
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-ink);
}

.agency-block__note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 60px 60px 80px;
  border-radius: 40px;
  background: var(--color-bg);
}

.agency-block__note-text {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-ink);
}

.agency-block__note-sign {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 40px;
}

.agency-block__note-sign strong {
  font-size: 20px;
  font-weight: 600;
}

.agency-block__note-sign span {
  font-size: 16px;
  color: var(--color-ink-soft);
}

.agency-block__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agency-block__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.agency-block__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  margin-bottom: 20px;
}

.agency-intro {
  padding: 120px 0;
}

.agency-intro--tight {
  padding-top: 40px !important;
  padding-bottom: 80px;
}

.agency-intro--tight .services-features__intro-block {
  margin: 0 auto;
}

.agency-why {
  padding-top: 80px;
  border-top: 1px solid var(--color-line);
}

.agency-why--after-divider {
  border-top: none;
  padding-top: 120px;
}

.school-cta {
  padding: 100px 0;
}

.school-cta__inner {
  display: flex;
  justify-content: center;
}

.agency-intro__text-only {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.agency-intro__text-only .agency-block__title {
  text-align: center;
  margin-bottom: 80px;
}

.agency-intro__text-only .stub-block__text {
  font-size: 22px;
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
  margin-bottom: 20px;
}

.agency-intro__text-only .stub-block__text:last-of-type {
  margin-bottom: 0;
}

.agency-intro__text-only .button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: auto;
  padding: 26px 44px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 400;
  margin-top: 80px;
}

.agency-block__subtitle {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Blog listing */
.blog-list {
  padding: 0 0 160px;
}

.blog-page--hidden {
  display: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card__image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 40px;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.05);
}

.blog-card__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(241, 242, 246, 0.35);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: #000000;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-card__badge svg {
  width: 32px;
  height: 32px;
}

.blog-card:hover .blog-card__badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.blog-card__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
  margin-bottom: 20px;
}

.blog-card__desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ink-soft);
  margin-bottom: 30px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.blog-card__date {
  font-size: 14px;
  color: var(--color-ink-soft);
  flex-shrink: 0;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tag-chip,
.blog-card__tag {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.blog-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 80px;
}

.blog-pagination {
  display: flex;
  gap: 12px;
}

.blog-pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-ink-soft);
  font-size: 16px;
}

.blog-pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-pagination__item.is-active {
  background: var(--color-ink);
  color: #FFFFFF;
}

.blog-pagination__count {
  font-size: 15px;
  color: var(--color-ink-soft);
  white-space: nowrap;
}

/* Footer */
.footer {
  background: #000000;
  color: #FFFFFF;
  padding-top: 160px;
}

.footer .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 120px;
  padding-right: 120px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 684px; /* 684px = ширина .footer__right, держит выравнивание с .footer__legal внизу */
  align-items: start;
  column-gap: 60px;
  padding-bottom: 100px;
}

.footer__cta-btn {
  background: var(--gradient-banana);
  color: #000000;
  height: auto;
  padding: 20px 40px;
  border-radius: 40px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

.footer__cta {
  flex-shrink: 0;
}

.footer__cta-title {
  white-space: nowrap;
  font-size: clamp(32px, 4.17vw, 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 60px;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.footer__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__nav a {
  position: relative;
  font-size: 24px;
  font-weight: 500;
  color: #FFFFFF;
}

.footer__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.35s cubic-bezier(0.52, 0.01, 0.16, 1);
}

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

.footer__email {
  position: relative;
  align-self: flex-start;
  font-size: 50px;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  margin: 0 0 40px 0;
}

.footer__email:hover {
  background: var(--gradient-banana);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer__email:hover::after {
  background: var(--gradient-banana);
}

.footer__email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
}

.footer__socials {
  align-self: flex-start;
  display: flex;
  gap: 20px;
  margin-top: 31px;
}

.footer__social {
  display: inline-block;
  width: 64px;
  height: 64px;
  line-height: 0;
}

.footer__social img {
  transition: filter 0.2s ease;
}

.footer__social:hover img {
  filter: brightness(0) invert(1);
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr 684px; /* совпадает с .footer__top — левый край .footer__legal встает под .footer__right */
  align-items: center;
  column-gap: 24px;
  padding: 40px 0;
  white-space: nowrap;
  border-top: 1px solid #494949;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__copy {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  color: #7F7F7F;
}

.footer__legal {
  display: flex;
  gap: 60px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.footer__legal a {
  position: relative;
  color: #7F7F7F;
}

.footer__legal a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #FFFFFF;
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.35s cubic-bezier(0.52, 0.01, 0.16, 1);
}

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

/* Кейс подробно — галерея скриншотов проекта */
.case-gallery {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.case-gallery__image {
  width: 100%;
  border-radius: 40px;
}

/* ==========================================================================
   АДАПТИВ — концепт на главной (index.html + общие блоки, которые она использует)
   Шапка/футер и модальные окна (бриф/success) — отдельные проходы, тут не трогаем
   логику самих компонентов, только то, что нужно для главной не разъехаться.
   ========================================================================== */

@media (max-width: 1023px) {
  :root {
    --container-pad: 24px;
    --space-block: 120px;
  }

  /* Шапка: прячем десктоп-меню, остаётся бургер (уже есть) */
  .nav {
    display: none;
  }

  .header__logo img {
    width: 110px;
  }

  .agency-intro:not(.agency-intro--tight) {
    padding-bottom: 60px;
  }

  .services-features--divider {
    padding-top: 60px;
  }

  .agency-intro__text-only .agency-block__title {
    margin-bottom: 40px;
  }

  .hero:not(.hero--page) {
    padding-bottom: 0 !important;
  }

  /* Бургер-меню: 3 колонки → 1, убираем абсолютное позиционирование низа */
  .menu-overlay {
    left: 12px;
    bottom: 12px;
  }

  .menu-overlay__inner {
    position: static;
    left: auto;
    width: 100%;
    height: 100%;
    padding: calc(var(--header-height) + 32px) var(--container-pad) 32px;
    grid-template-columns: 1fr;
    gap: 32px;
    align-content: flex-start;
    overflow-y: auto;
    transform: none;
  }

  .menu-overlay__link {
    font-size: 24px;
  }

  .menu-overlay__email {
    position: static;
    display: block;
    margin: 32px var(--container-pad) 0;
    font-size: 22px;
  }

  .menu-overlay__cta {
    position: static;
    width: 140px;
    height: 140px;
    margin: 24px var(--container-pad) 32px;
    font-size: 18px;
  }

  /* Hero */
  .hero {
    padding-top: 160px;
  }

  .hero__banner {
    height: 460px;
    margin-top: 100px;
    border-radius: 32px;
  }

  .hero .hero__banner {
    margin-top: 120px;
  }

  .hero__plates {
    bottom: 20px;
    right: 20px;
    left: 20px;
    gap: 12px;
  }

  .hero__plate {
    flex: 1;
    width: auto;
    height: auto;
    min-height: 160px;
    padding: 20px 20px 20px 24px;
    border-radius: 24px;
  }

  .hero__plate-title {
    font-size: 22px;
  }

  .hero__plate-text {
    font-size: 14px;
  }

  .founder-banner__plate-watermark {
    font-size: 110px;
  }

  /* Services-features: все сетки → 1 колонка */
  .services-features__row--horizontal,
  .services-features__row--vertical,
  .services-features__row--horizontal.services-features__row--tall {
    grid-template-columns: 1fr;
  }

  /* Grid/flex-элементы по умолчанию не могут сжаться уже своего контента (min-width:auto) —
     из-за этого карточки/колонки распирали страницу вправо на мобиле */
  .services-features__card,
  .footer__cta,
  .footer__right,
  .footer__copy,
  .footer__legal,
  .services-features__flagship-item,
  .cases-grid__col {
    min-width: 0;
  }

  .services-features__row--vertical .services-features__card {
    min-height: 420px;
  }

  .services-features__card {
    padding: 40px;
  }

  .services-features__card-icon-bottom {
    width: 220px;
    right: 40px;
    bottom: 40px;
  }

  .services-features__card-web-wrap,
  .services-features__card-web-wrap {
    left: auto;
    right: -40px;
    width: 286px;
  }

  .services-features__card-web-wrap--wide {
    width: 314px;
    right: 0;
    bottom: 110px;
  }

  .services-features__card-uiux2-image {
    max-width: 220px;
    height: auto;
  }

  .services-features__card-mvp2-image {
    width: 68%;
    right: -50px;
  }

  .services-features__flagship,
  .services-features--divider .services-features__flagship {
    height: auto;
    margin-top: 120px;
    margin-bottom: 120px;
    padding: 40px;
    flex-direction: column;
  }

  .services-features__flagship-note {
    left: 40px;
  }

  .services-features__flagship-person {
    display: none;
  }

  .services-features__flagship-icon-wrap {
    display: none;
  }

  .services-features__flagship-content {
    max-width: 100%;
  }

  .services-features__flagship-list {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  .services-features__title {
    margin-bottom: 40px;
  }

  .services-features__intro-block,
  .services-features--divider .services-features__intro-block {
    margin: 120px auto;
  }

  .inline-avatar {
    width: 72px;
    height: 44px;
    border-radius: 20px;
  }

  /* Sticky-scroll «О студии» — на планшете/мобиле scroll-jacking отключаем */
  .about-sticky-scroller {
    height: auto;
  }

  .about-sticky {
    position: static;
    height: auto;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0 20px;
  }

  .about-sticky__media {
    position: relative;
    display: block;
    flex: none;
    width: 345px;
    max-width: 100%;
    height: 300px;
  }

  .about-sticky__media-item {
    border-radius: 24px;
  }

  .additional-services__sticky .about-sticky__media {
    position: relative;
    display: block;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .about-sticky__content {
    position: relative;
    width: 100%;
    height: auto;
  }

  .about-sticky__step {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 1;
    pointer-events: auto;
  }

  .about-sticky__step.is-active {
    position: relative;
    display: flex;
  }

  .additional-services__sticky .about-sticky__step {
    text-align: center;
  }

  .additional-services__sticky .about-sticky__step-text {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .additional-services__sticky .service-tags__cloud {
    justify-content: center;
    margin-top: 40px;
  }

  .service-tags__cloud {
    margin-top: 20px;
  }

  .service-tags__cloud--sm {
    gap: 10px;
  }

  .service-tags__item--sm {
    font-size: 14px;
  }

  .about-sticky__nav {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .about-sticky__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--color-ink);
    color: #FFFFFF;
    cursor: pointer;
  }

  .about-sticky__arrow--prev svg {
    transform: rotate(180deg);
  }

  /* Кейсы: 2 колонки по 740 → 1 колонка */
  .cases-grid {
    flex-direction: column;
    width: 100%;
  }

  .cases-grid__col {
    width: 100%;
  }

  .cases-grid__image {
    height: auto;
    aspect-ratio: 740 / 500;
  }

  .cases-grid__image-wrap {
    margin-bottom: 30px;
  }

  /* FAQ */
  .faq__question {
    padding: 32px 32px 20px;
  }

  .faq__answer-inner {
    padding: 0 32px 32px;
  }

  /* SEO-текст */
  .seo-text__block,
  .seo-text__block--card {
    width: 100%;
    padding: 40px;
  }

  /* Футер */
  .footer .container {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
  }

  .footer__top {
    grid-template-columns: 1fr;
    row-gap: 80px;
    padding-bottom: 60px;
  }

  .footer__cta-title {
    white-space: normal;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 40px;
  }

  .footer__right {
    align-items: flex-start;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 24px 32px;
  }
}

@media (max-width: 767px) {
  :root {
    --container-pad: 20px;
    --space-block: 80px;
    --header-height: 76px;
  }

  /* Титры — на мобиле десктопный clamp() ещё слишком крупный, жёстко сжимаем */
  .hero__title {
    font-size: 34px;
  }

  .footer__cta-title {
    font-size: 34px;
  }

  .cases__title,
  .faq__title,
  .services-features__title,
  .agency-block__title,
  .seo-text__title.seo-text__title--title2,
  .case-related__title,
  .founder-about__title,
  .stub-block__title,
  .about__title,
  .clients-block__title,
  .about-sticky__step-title--lg,
  .additional-services__sticky .about-sticky__step-title {
    font-size: 28px;
    line-height: 1.1;
  }

  .about-sticky__step-title--lg,
  .additional-services__sticky .about-sticky__step-title {
    font-weight: 500;
    margin-bottom: 40px;
  }

  .about-sticky__step-text {
    font-size: 16px;
    line-height: 1.8;
  }

  .services-features__intro-block .services-features__title {
    margin-bottom: 40px;
  }

  .services-features__intro-block .stub-block__text {
    font-size: 16px;
    line-height: 1.8;
  }

  .agency-intro__text-only .agency-block__title {
    margin-bottom: 40px;
  }

  .text-collapse {
    position: relative;
    max-height: 308px;
    overflow: hidden;
  }

  .text-collapse::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: linear-gradient(to bottom, rgba(241, 242, 246, 0), var(--color-bg));
    pointer-events: none;
  }

  .text-collapse.is-expanded {
    max-height: none;
  }

  .text-collapse.is-expanded::after {
    display: none;
  }

  .agency-intro__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
  }

  .text-collapse__toggle {
    display: inline-block;
    font-family: inherit;
    font-size: 16px;
    color: var(--color-ink-soft);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .agency-intro__actions .button {
    padding: 18px 28px;
    font-size: 16px;
    gap: 10px;
    margin-top: 0;
  }

  .agency-intro__text-only .stub-block__text {
    font-size: 16px;
    line-height: 1.8;
  }

  .inline-avatar {
    width: 56px;
    height: 34px;
    border-radius: 16px;
    margin: 0 4px;
    position: relative;
    top: -3px;
  }

  .agency-block__title-tail {
    display: block;
    margin-top: 4px;
  }

  .services-features__card-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .services-features__card-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .cases-grid__title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .cases-grid__desc {
    font-size: 14px;
    margin-bottom: 0;
  }

  .cases-grid__item {
    margin-bottom: 60px;
  }

  .cases-grid__col:last-child .cases-grid__item:last-child {
    margin-bottom: 0;
  }

  .cases-grid {
    margin-bottom: 60px;
  }

  .cases__cta {
    padding: 18px 28px;
    font-size: 16px;
    gap: 8px;
    margin-top: 0;
  }

  .founder-banner__plate-watermark {
    font-size: 64px;
  }

  .header__logo img {
    width: 100px;
  }

  .menu-toggle {
    width: 30px;
    height: 30px;
    gap: 6px;
  }

  .menu-toggle span {
    height: 2px;
    border-radius: 1px;
  }

  .brief-modal__close {
    width: 30px;
    height: 30px;
    gap: 6px;
  }

  .brief-modal__close span {
    width: 27px;
    height: 2px;
    border-radius: 1px;
  }

  .brief-modal__close span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .brief-modal__close span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .menu-toggle span:nth-child(1) {
    width: 27px;
  }

  .menu-toggle span:nth-child(2) {
    width: 19px;
  }

  /* Пятно на мобиле мельчает и почти не видно — оставляем одно, крупнее, от правого края */
  .blob-bg span:nth-child(2) {
    display: none;
  }

  .blob-bg span:nth-child(1) {
    width: 220px;
    height: 220px;
    top: -20px;
    left: auto;
    right: -30px;
    filter: blur(40px);
  }

  .hero {
    padding-top: 156px;
    padding-bottom: 0;
  }

  .hero__banner {
    height: 320px;
    border-radius: 20px;
  }

  .hero .hero__banner {
    margin-top: 80px;
  }

  .hero__plates {
    flex-direction: column;
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .hero__plate {
    min-height: 120px;
  }

  /* Кнопки: десктопный размер (padding 26/44, 22px) слишком крупный на мобиле */
  .hero__cta,
  .services-features__intro-cta {
    padding: 18px 28px;
    font-size: 16px;
    gap: 10px;
    margin-top: 40px;
  }

  .agency-intro,
  .stub-block,
  .about,
  .cases,
  .faq,
  .seo-text {
    padding-top: 60px;
    padding-bottom: 60px;
  }


  .agency-intro {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .services-features {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .services-features__row:has(+ .logo-marquee) {
    margin-bottom: 0;
  }

  .cases {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .faq {
    padding-top: 40px;
    padding-bottom: 0;
  }

  .hero__banner--pre-footer {
    margin-top: 80px;
    margin-bottom: 0;
  }

  .seo-text--plain {
    padding-top: 60px;
  }

  .seo-text--after-directions {
    padding-top: 40px;
  }

  .cases__title--home {
    margin-bottom: 40px;
  }

  .services-features__card {
    padding: 28px;
    border-radius: 20px;
  }

  .services-features__row--vertical .services-features__card,
  .services-features__row--horizontal .services-features__card {
    height: auto;
    min-height: 400px;
  }

  /* Тексты в карточках-виджетах не должны тянуться на всю ширину — правило для ВСЕХ карточек сразу */
  .services-features__card-title {
    max-width: none;
    white-space: nowrap;
  }

  .services-features__card-text {
    max-width: 220px;
  }

  .services-features__card--photo-bg .services-features__card-title,
  .services-features__card--photo-bg .services-features__card-text {
    max-width: 170px;
  }

  .services-features__card--ui-ux2 .services-features__card-title,
  .services-features__card--mvp2 .services-features__card-title {
    max-width: none;
    white-space: nowrap;
  }

  .services-features__card--ui-ux2 .services-features__card-text,
  .services-features__card--ui-ux2 .services-features__card-list {
    max-width: 220px;
  }

  .services-features__card--mvp2 .services-features__card-text {
    max-width: 140px;
  }

  .services-features__card-image--branding {
    position: absolute;
    left: 50%;
    bottom: 40px;
    margin: 0;
    flex: none;
    width: 180px;
    height: 180px;
    transform: translateX(-50%);
  }

  .services-features__card-image--branding img {
    transform: none;
  }

  .services-features__card--photo-bg .services-features__card-bg-image {
    object-position: calc(50% + 20px) center;
  }

  .services-features__card-web-wrap {
    display: block;
    position: absolute;
    left: auto;
    right: 0;
    bottom: 0;
    width: 220px;
  }

  .services-features__card-web-wrap--wide {
    display: block;
    position: absolute;
    right: 0;
    bottom: 80px;
    width: 257px;
  }

  .services-features__card-icon-bottom {
    position: absolute;
    left: 50%;
    bottom: 40px;
    right: auto;
    width: 140px;
    transform: translateX(-50%);
    margin: 0;
  }

  .services-features__card-uiux2-image {
    max-width: 187px;
    right: -50px;
  }

  .services-features__card-mvp2-image {
    top: auto;
    right: auto;
    left: 50%;
    bottom: 0;
    width: 58.5%;
    height: auto;
    object-fit: contain;
    transform: translateX(calc(-50% + 100px));
  }

  .services-features__card-list {
    font-size: 14px;
  }

  .services-features__card-list li::before {
    top: 8px;
  }

  .services-features__flagship,
  .services-features--divider .services-features__flagship {
    padding: 28px;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 24px;
  }

  .services-features__intro-block,
  .services-features--divider .services-features__intro-block {
    margin: 80px auto;
  }

  .services-features__flagship-content {
    max-width: 240px;
  }

  .services-features__flagship-badge {
    padding: 4px 10px;
    font-size: 12px;
    margin-bottom: 10px;
  }

  .services-features__flagship-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .services-features__flagship-text {
    max-width: 260px;
    font-size: 14px;
    line-height: 1.5;
  }

  .services-features__flagship-list {
    gap: 10px;
    margin-top: 24px;
  }

  .services-features__flagship-item-title {
    font-size: 14px;
    margin-bottom: 0;
  }

  .services-features__flagship-item-text {
    display: none;
  }

  .services-features__flagship-icon-wrap {
    display: block;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin-top: 32px;
    border-radius: 0;
    overflow: visible;
  }

  .logo-marquee {
    padding: 80px 0 80px;
  }

  .logo-marquee--home {
    padding-top: 80px;
  }

  .logo-marquee__logo {
    width: 74px;
    margin-right: 49px;
  }

  .logo-marquee__logo--partner {
    width: 99px;
  }

  .logo-marquee__logo--beget {
    width: 69px;
  }

  .logo-marquee__logo--newtech {
    width: 99px;
  }

  .logo-marquee__logo--kalina {
    width: 62px;
  }

  .faq__title {
    margin-bottom: 32px;
  }

  .faq__question {
    padding: 24px 20px 16px;
    gap: 16px;
  }

  .faq__question span:first-child {
    font-size: 16px;
  }

  .faq__answer-inner {
    padding: 0 20px 24px;
  }

  .seo-text__block,
  .seo-text__block--card {
    padding: 24px;
  }

  .seo-text__title {
    font-size: 20px;
  }

  .seo-text__title--title2 {
    margin-bottom: 40px;
  }

  .seo-text__title.seo-text__title--title2 {
    line-height: 1.3;
  }

  .seo-text__title-line3 {
    display: inline-block;
    margin-top: 4px;
  }

  .seo-text--plain .stub-block__text {
    font-size: 16px;
    line-height: 1.8;
  }

  .seo-text__toggle {
    display: block;
    margin: 24px auto 0;
  }

  .footer {
    padding-top: 80px;
  }

  .footer__cta-btn {
    width: auto;
    padding: 18px 28px;
    font-size: 16px;
  }

  .footer__nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 16px 40px;
  }

  .footer__nav a {
    font-size: 18px;
  }

  .footer__email {
    font-size: 30px;
    margin-bottom: 0;
  }

  .footer__socials {
    gap: 12px;
    margin-top: 20px;
  }

  .footer__social {
    width: 48px;
    height: 48px;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    row-gap: 16px;
    text-align: left;
    white-space: normal;
    padding-top: 30px;
  }

  .footer__legal {
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 14px;
  }

  /* Бургер-меню на мобиле: фон на весь экран, крест по центру бокса */
  .menu-overlay {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
  }

  .menu-overlay__inner {
    height: auto;
    overflow-y: visible;
  }

  .menu-overlay__email::after {
    height: 1px;
    transform: scaleX(1);
  }

  /* Бейдж и стрелка не должны влиять на высоту строки пункта меню */
  .menu-overlay__link {
    position: relative;
  }

  .menu-overlay__badge,
  .menu-overlay__arrow {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
  }

  .menu-overlay__arrow {
    width: 28px;
    height: 28px;
  }


  .menu-toggle[aria-expanded="true"] span:nth-child(1),
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    width: 27px;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .menu-overlay__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .menu-overlay__col {
    gap: 30px;
  }

  .menu-overlay__col:nth-child(2) {
    margin-left: -20px;
  }

  .menu-overlay__link {
    font-size: 20px;
  }

  .menu-overlay__email {
    display: inline-block;
    position: relative;
    align-self: flex-start;
    width: fit-content;
    font-size: 20px;
    margin: 100px 0 0 var(--container-pad);
  }

  .menu-overlay__badge {
    padding: 4px 10px;
    font-size: 12px;
  }

  .menu-overlay__cta {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: auto;
    width: 140px;
    height: 140px;
    margin: 0;
    font-size: 16px;
  }

  .footer__copy {
    font-size: 14px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 767px) {
  /* Бриф-модалка */
  .brief-modal {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .brief-modal__inner {
    position: relative;
    height: auto;
    padding-top: 120px;
    padding-bottom: 340px;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
  }

  .brief-modal__left {
    position: static;
    height: auto;
  }

  .brief-modal__title {
    font-size: clamp(28px, 9vw, 36px);
  }

  .brief-modal__telegram {
    margin-top: 30px;
    padding: 12px 20px;
    font-size: 15px;
  }

  .brief-modal__right {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
    margin-top: 60px;
  }

  .brief-form {
    gap: 60px;
    padding-bottom: 0;
  }

  .brief-form__submit-block {
    gap: 30px;
  }

  .brief-form__consent {
    font-size: 12px;
  }

  /* Success-страница (уведомление) переиспользует .brief-modal, добавляю недостающее */
  .hero__plate.hero__plate--grey {
    width: 100%;
    height: auto;
    min-height: 300px;
    padding: 32px 24px 24px 32px;
    gap: 28px;
  }

  .hero__plate--grey .founder-banner__plate-watermark {
    font-size: 90px;
  }

  .hero__plate-list li {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .hero__plate-list li:last-child {
    margin-bottom: 0;
  }

  .brief-modal__stats {
    margin-top: 0;
  }

  .brief-modal__cta {
    margin-top: 40px;
  }

  .brief-form__copyright {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    margin-top: 0;
    font-size: 14px;
    text-align: center;
    color: var(--color-ink);
  }

  .brief-form__row {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .brief-form__field input,
  .brief-form__field textarea {
    font-size: 14px;
  }

  .brief-form__subtitle {
    font-size: 16px;
  }

  .brief-form__block {
    gap: 20px;
  }

  .case-filters__tab {
    padding: 10px 18px;
    font-size: 14px;
  }

  .button--lg {
    padding: 18px 28px;
    font-size: 16px;
    gap: 10px;
  }

  .brief-modal__photo {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 300px;
    height: 300px;
    transform: translateX(-50%);
    background-position: top center;
  }
}

@media (max-width: 479px) {
  .hero__banner {
    height: 340px;
  }

  .hero__plates {
    flex-direction: row;
    gap: 8px;
  }

  .hero__plate {
    min-height: 100px;
    padding: 14px 16px;
  }

  .hero__plate-title {
    font-size: 18px;
  }

  .hero__plate-text {
    font-size: 12px;
  }

  .founder-banner__plate-watermark {
    font-size: 44px;
  }

  .services-features__flagship-list {
    margin-top: 20px;
  }

  .menu-overlay__cta {
    width: 140px;
    height: 140px;
  }
}

/* iOS safe-area: элементы у краёв экрана не должны заезжать под чёлку/индикатор свайпа */
@supports (padding: max(0px)) {
  .header__inner {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .scroll-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* Article body (страница статьи блога) */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.article-meta__date {
  font-size: 14px;
  color: var(--color-ink-soft);
}

.article-meta__tags {
  display: flex;
  gap: 8px;
}

.article-meta__tag {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.article-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.article-list li {
  position: relative;
  padding-left: 26px;
  font-size: clamp(14px, 1vw, 20px);
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.article-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-ink);
}

.article-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-line);
}

.article-link:hover {
  text-decoration-color: var(--color-ink);
}

@media (max-width: 767px) {
  .case-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .case-nav__group {
    justify-content: center;
  }

  .case-banner-section {
    margin-top: 40px;
  }

  .case-banner__widget {
    position: static;
    width: 100%;
    max-width: 345px;
    border-radius: 24px;
    margin-top: 20px;
  }

  .case-banner__widget-title {
    font-size: 16px;
  }

  .case-related .cases-grid__image {
    border-radius: 24px;
  }

  .case-related {
    flex-direction: column;
    gap: 40px;
  }

  .case-related__title {
    margin-bottom: 40px;
  }

  .article-section {
    margin-top: 40px !important;
  }

  .page-hero--center {
    padding-bottom: 80px !important;
  }

  .page-hero--center .page-hero__title {
    margin-bottom: 0 !important;
  }

  .partners-features {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .partners-features .services-features__row--vertical .services-features__card {
    height: 300px !important;
    min-height: 0 !important;
  }

  .services-features__flagship-note {
    position: static;
    order: 2;
    margin-top: 30px;
  }

  .services-features__flagship-person {
    display: block;
    position: relative;
    right: auto;
    bottom: auto;
    order: 3;
    width: 100%;
    height: auto;
    margin-top: 32px;
    margin-bottom: -28px;
    border-radius: 0 0 24px 24px;
    object-fit: cover;
  }

  .partners-features .logo-marquee--home {
    padding-top: 60px !important;
    padding-bottom: 80px !important;
  }

  .partners-features .services-features__intro-block {
    margin: 80px auto 40px;
  }

  .partners-seo-text .seo-text__block--plain {
    padding-top: 0;
  }

  .case-footer-gap {
    margin-top: 80px !important;
  }

  .article-meta__tag {
    padding: 10px 18px;
  }

  .article-hero--page {
    padding-bottom: 40px !important;
  }

  .blog-list {
    padding-top: 40px;
  }

  .case-design-gallery {
    margin-top: 30px !important;
  }

  .seo-text__block--center-left {
    padding-top: 0;
    padding-bottom: 0;
  }

  .case-final-section {
    padding-top: 40px !important;
  }

  .case-divider-gap-section,
  .case-related-section {
    margin-top: 40px !important;
  }

  .case-task-section,
  .case-design-section,
  .case-concept-section,
  .case-concept-gallery-section,
  .case-adaptive-section,
  .case-adaptive-gallery-section {
    margin-top: 40px !important;
  }

  .seo-text__block--center-left .seo-text__title--title2 {
    margin-bottom: 30px;
  }

  .seo-text__block--center-left .stub-block__text {
    font-size: 16px;
    line-height: 1.8;
  }

  .article-list li {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Агентство — адаптив (карточки "Почему мы", цитата, карусель отзывов, лого-лента) */
@media (max-width: 1023px) {
  .services-features__row--vertical {
    grid-template-columns: 1fr;
  }

  .services-features__row--horizontal {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-features--divider .services-features__row--horizontal .services-features__card--photo-bg {
    grid-column: 1 / -1;
  }

  .services-features--divider .logo-marquee--home {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .services-features--divider .services-features__flagship {
    margin-top: 0 !important;
  }


  .services-features__row--vertical .services-features__card {
    min-height: 500px;
  }

  .services-features__row--horizontal .services-features__card {
    height: auto;
    min-height: 500px;
  }

  .services-features__card {
    padding: 40px;
  }

  .clients-block__review {
    flex: 0 0 calc(100vw - var(--container-pad) * 2);
    padding: 56px;
  }
}

/* Главная — планшет-only правки (768–1023px), мобиль (<=767) не трогаем */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero--page:has(+ .case-banner-section) {
    padding-bottom: 120px !important;
    min-height: 0 !important;
  }

  .hero--page:has(+ .case-banner-section) .hero__title {
    margin-bottom: 60px !important;
  }

  /* Пятна (blob-bg): на page-hero/page-banner убираем десктопный вылет -120px, как на главной */
  .page-banner .blob-bg,
  .page-hero .blob-bg {
    inset: 0;
  }

  /* Партнёры: VIP-баннер высота 400, справа фото как на десктопе */
  .partners-features .services-features__flagship {
    min-height: 400px;
  }

  .partners-features .services-features__flagship-person {
    display: block;
  }

  .partners-features .services-features__flagship-content {
    max-width: 60%;
  }

  .partners-features .services-features__flagship-note .mobile-break {
    display: inline;
  }

  /* Партнёры: виджеты высота 400, тёмный на всю ширину */
  .partners-features .services-features__row--vertical .services-features__card {
    min-height: 400px !important;
  }

  .partners-features .services-features__row--vertical .services-features__card--dark {
    grid-column: 1 / -1;
  }

  /* Футер: нижняя строка (копирайт и ссылки) наезжала друг на друга — переносим */
  .footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px 40px;
    white-space: normal;
  }

  /* Партнёры: кнопка «Отправить заявку» → баннер 120 */
  .partners-features .services-features__intro-block {
    margin-bottom: 0 !important;
  }

  .partners-features + .container .hero__banner--pre-footer {
    margin-top: 120px !important;
  }

  /* Школа/Вакансии: баннер → кавычки цитаты 120 (60 низ hero + 60 верх цитаты) */
  .hero--page:has(+ .founder-quote) {
    padding-bottom: 60px !important;
    min-height: 0 !important;
  }

  .hero--page + .founder-quote {
    padding-top: 60px !important;
  }

  /* Школа: заголовок → баннер 120, профиль → кнопка 60, кнопка → футер 120 */
  .hero--page .hero__banner {
    margin-top: 120px !important;
  }

  .founder-quote + .vacancies-cta {
    margin-top: 60px !important;
    margin-bottom: 120px !important;
  }

  .founder-quote + .vacancies-cta .services-features__intro-cta {
    margin-top: 0 !important;
  }

  .hero--page:has(+ .case-banner-section) .services-features__intro-cta {
    margin-top: 0 !important;
  }

  .blog-pagination-row {
    margin-top: 60px !important;
    margin-bottom: 60px !important;
  }

  .cases.cases--page {
    padding-bottom: 60px !important;
  }

  .page-hero--cases {
    padding-bottom: 60px !important;
  }

  .cases--page {
    padding-top: 0 !important;
  }

  .case-footer-gap {
    margin-top: 120px !important;
  }

  .article-section,
  .case-divider-gap-section,
  .case-related-section {
    margin-top: 60px !important;
  }

  .article-section + .article-section {
    margin-top: 60px !important;
  }

  /* Главная — виджеты услуг: Аналитика (широкая) / ИИ контент+Брендинг / Сайт+Продвижение, по 2 в строку */
  .services-features--divider .container:has(> .services-features__row--horizontal:not(.services-features__row--tall)) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .services-features--divider .container:has(> .services-features__row--horizontal:not(.services-features__row--tall)) > .services-features__title {
    grid-column: 1 / -1;
  }

  .services-features--divider .services-features__row--horizontal:not(.services-features__row--tall),
  .services-features--divider .services-features__row--vertical {
    display: contents;
  }

  .services-features--divider .services-features__card--photo-bg {
    grid-column: 1 / -1;
    order: 1;
  }

  .services-features--divider .services-features__card--icon-bottom {
    order: 2;
  }

  .services-features--divider .services-features__card--branding {
    order: 3;
  }

  .services-features--divider .services-features__card--dark {
    order: 4;
  }

  .services-features--divider .services-features__row--vertical .services-features__card:last-child {
    order: 5;
  }

  .footer__cta-title {
    font-size: clamp(28px, 9vw, 36px);
  }

  .services-features--divider .services-features__row--horizontal .services-features__card {
    min-height: 360px;
  }

  .services-features__card-title {
    font-size: 24px;
  }

  .services-features__card-text,
  .services-features__card-list {
    font-size: 16px;
  }

  .additional-services__sticky .about-sticky__media-item {
    border-radius: 40px;
  }

  .about-sticky__step-title--lg,
  .additional-services__sticky .about-sticky__step-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .additional-services__sticky .about-sticky__step-text {
    font-size: 20px;
    line-height: 1.5;
  }

  .additional-services__sticky .about-sticky__step {
    padding-left: 80px;
    padding-right: 80px;
  }

  .seo-text__block--plain {
    padding-top: 0 !important;
    padding-left: 80px !important;
    padding-right: 80px !important;
  }

  .services-features--divider .services-features__row {
    margin-bottom: 20px !important;
  }

  .hero + .agency-intro {
    padding-top: 120px !important;
  }

  .agency-intro__text-only {
    padding-left: 80px !important;
    padding-right: 80px !important;
  }

  .services-features--page .services-features__row--horizontal .services-features__card--photo-bg {
    grid-column: 1 / -1;
  }

  .services-features--page .services-features__row--vertical {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-features--page .services-features__row {
    margin-bottom: 20px !important;
  }

  .services-features--divider .logo-marquee--home,
  .services-features--page .logo-marquee--home {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
  }

  .services-features--page .services-features__flagship {
    margin-top: 0 !important;
  }

  .services-features__card-icon-bottom {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .services-features__card-image--branding img {
    transform: scale(0.9) translateY(-73px);
  }

  .services-features__flagship-title {
    font-size: 26px;
  }

  .services-features__flagship-item-text {
    display: none;
  }

  .services-features__flagship-list {
    gap: 10px;
  }

  .services-features__flagship-item-title {
    margin-bottom: 0;
  }

  .services-features__flagship,
  .services-features--divider .services-features__flagship {
    flex-direction: row;
  }

  .services-features__flagship-content {
    max-width: 280px;
  }

  .services-features__flagship-icon-wrap {
    display: block;
    position: absolute;
    left: auto;
    right: -130px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 470px;
    margin-top: 0;
    border-radius: 10px;
    overflow: hidden;
  }

  .seo-text__title.seo-text__title--title2 {
    margin-bottom: 40px;
  }

  .seo-text__block--plain .stub-block__text {
    font-size: 20px;
    line-height: 1.5;
  }

  .services-features__intro-block {
    padding-left: 80px;
    padding-right: 80px;
  }

  .services-features__intro-block .stub-block__text {
    font-size: 20px;
    line-height: 1.5;
  }

  .services-features__intro-block .services-features__title {
    margin-bottom: 40px;
  }

  .agency-intro__text-only .stub-block__text {
    font-size: 20px;
    line-height: 1.5;
  }

  .services-features {
    padding-bottom: 60px;
  }

  .cases {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .cases__title--home {
    margin-bottom: 40px;
  }

  .faq {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero__banner--pre-footer {
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .seo-text--plain {
    padding-top: 60px;
    padding-bottom: 120px;
  }

  .seo-text--after-directions {
    padding-top: 120px;
  }

  .footer {
    padding-top: 60px;
  }

  /* Бургер-меню: 2 колонки по 4 пункта, почта слева / бриф справа снизу */
  .menu-overlay__inner {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    padding-top: calc(var(--header-height) + 200px);
    padding-bottom: 200px;
  }

  .menu-overlay__col {
    display: contents;
  }

  .menu-overlay__link {
    position: relative;
    justify-self: start;
    width: fit-content;
  }

  .menu-overlay__badge,
  .menu-overlay__arrow {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
  }

  .menu-overlay__email {
    position: absolute;
    left: var(--container-pad);
    bottom: 32px;
    margin: 0;
    font-size: 22px;
  }

  .menu-overlay__cta {
    position: absolute;
    left: auto;
    right: var(--container-pad);
    bottom: 32px;
    margin: 0;
    width: 200px;
    height: 200px;
    font-size: 20px;
  }

  .footer__cta-title {
    font-size: 48px;
  }

  .faq__answer-inner {
    font-size: 18px;
    line-height: 1.5;
  }

  .faq__question {
    font-size: 24px;
  }

  /* Кейсы: 2 независимые колонки (шахматка), как на десктопе */
  .cases-grid {
    flex-direction: row;
    gap: 40px;
    margin-bottom: 0;
  }

  .cases-grid__col {
    width: calc(50% - 20px);
  }

  .cases-grid__col .cases-grid__item:last-child {
    margin-bottom: 0;
  }

  .services-features__card--ui-ux2 .services-features__card-text {
    display: none;
  }

  .services-features__card-uiux2-image {
    right: -80px;
  }

  .services-features__card--mvp2 .services-features__card-title,
  .services-features__card--mvp2 .services-features__card-text {
    max-width: 140px;
  }

  .services-features__card-mvp2-image {
    top: auto;
    bottom: 0;
    height: auto;
    z-index: 2;
  }

  /* Агентство — планшет */
  .divider-gap {
    margin-top: 60px;
  }

  .agency-why {
    padding-top: 60px;
  }

  .agency-why--after-divider {
    padding-top: 60px;
  }

  /* Агентство «Почему мы?» — Рассрочка встаёт в сетку рядом с Комплекс, Аналитика отдельно на всю ширину снизу */
  .agency-why .container:has(.school-directions.services-features__row--horizontal) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .agency-why .container:has(.school-directions.services-features__row--horizontal) > .services-features__title {
    grid-column: 1 / -1;
  }

  .agency-why .services-features__row--vertical.school-directions,
  .agency-why .services-features__row--horizontal.school-directions {
    display: contents;
  }

  .school-directions.services-features__row--vertical .services-features__card {
    min-height: 360px;
  }

  .agency-why .services-features__row--vertical.school-directions .services-features__card:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
  }

  .agency-why .services-features__row--vertical.school-directions .services-features__card:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
  }

  .agency-why .services-features__row--vertical.school-directions .services-features__card:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .agency-why .services-features__row--horizontal.school-directions .services-features__card:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .agency-why .services-features__row--horizontal.school-directions .services-features__card:nth-child(2) {
    grid-column: 2;
    grid-row: 3;
    height: auto;
    min-height: 360px;
  }

  .founder-quote__marks {
    font-size: 120px;
    margin-bottom: 20px;
  }

  .founder-quote__text {
    font-size: 40px;
  }

  .founder-quote__profile {
    margin-top: 60px;
  }

  .clients-block__head {
    margin-bottom: 40px;
  }

  /* Отзывы: 1 карточка полностью + пик следующей справа */
  .clients-block__track {
    gap: 24px;
  }

  .clients-block__review {
    flex: 0 0 calc(100vw - var(--container-pad) * 2 - 100px);
  }

  /* Услуги (services.html) — Брендинг встаёт рядом с ИИ контент, как на главной */
  .services-features--page .container:has(.services-features__row--vertical .services-features__card-image--branding) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .services-features--page .services-features__row--horizontal:has(.services-features__card--icon-bottom),
  .services-features--page .services-features__row--vertical:has(.services-features__card-image--branding) {
    display: contents;
  }

  .services-features--page .services-features__row--horizontal:has(.services-features__card--icon-bottom) .services-features__card:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .services-features--page .services-features__row--horizontal:has(.services-features__card--icon-bottom) .services-features__card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .services-features--page .services-features__row--vertical:has(.services-features__card-image--branding) .services-features__card:nth-child(1) {
    grid-column: 2;
    grid-row: 2;
  }

  .services-features--page .services-features__row--vertical:has(.services-features__card-image--branding) .services-features__card:nth-child(2) {
    grid-column: 1;
    grid-row: 3;
  }

  .services-features--page .services-features__row--vertical:has(.services-features__card-image--branding) .services-features__card:nth-child(3) {
    grid-column: 2;
    grid-row: 3;
  }

  /* UI-UX/MVP (row--tall) — не задеты выше, явное восстановление 2 колонок */
  .services-features__row--horizontal.services-features__row--tall {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-marquee--wide-gap {
    padding: 120px 0;
  }

  /* Внутренние страницы — шапка page-banner/page-hero (общие для services/cases/contacts и т.д.) */
  .page-banner {
    padding-top: 140px;
  }

  .page-banner__title,
  .page-hero__title {
    font-size: 44px;
  }

  .page-hero {
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .page-hero__title {
    margin-bottom: 40px;
  }

  /* Форма брифа (контакты/успех) — в 1 колонку на планшете */
  .brief-modal {
    overflow-y: auto;
  }

  .brief-modal__inner {
    position: relative;
    height: auto;
    padding-top: 140px;
    padding-bottom: 0;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .brief-modal__left {
    display: contents;
  }

  .brief-modal__right {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
    order: 1;
  }

  .brief-modal__title {
    font-size: 44px;
    order: 0;
  }

  .brief-modal__telegram {
    order: 0;
    justify-self: start;
    margin-top: -20px;
  }

  .brief-modal__photo {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 720px;
    height: 675px;
    margin: 0 auto 0;
    background-position: top center;
    order: 2;
  }

  .brief-form__copyright {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--color-ink);
  }

  /* Контакты — 620px+1fr переполняло планшет, в 1 колонку */
  .contacts-info {
    grid-template-columns: 1fr;
    row-gap: 40px;
    margin-top: 60px;
  }

  .page-hero:has(.contacts-info) {
    padding-bottom: 120px !important;
  }

  .blog-list {
    padding-bottom: 120px;
  }

  .seo-text__block--plain.seo-text__block--center-left {
    padding-bottom: 0;
  }

  .article-section + .article-section {
    margin-top: 120px !important;
  }

  .article-list li {
    font-size: 20px;
    line-height: 1.5;
  }

  .hero__plate.hero__plate--grey {
    width: 100%;
    height: 400px;
    min-height: 0;
    padding: 40px;
  }

  /* founder-about (school2) — фото 720px фикс без адаптива уезжало за экран */
  .founder-about {
    flex-direction: column;
  }

  .founder-about__photos {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .founder-about__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .founder-about__card {
    border-radius: 40px;
    padding: 60px;
  }

  .founder-about__title {
    font-size: 32px;
  }

  .founder-about__list li {
    font-size: 20px;
  }

  /* Блог — карточки 3 → 2 колонки на планшете */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
  }

  .case-related__title {
    margin-bottom: 40px;
  }

  /* hero--page перед agency-intro (agency.html, school2.html) — убрать двойной паддинг */
  .hero--page:has(+ .agency-intro) {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 767px) {
  .services-features__card {
    position: relative;
    overflow: hidden;
  }

  .divider-gap {
    margin-top: 60px;
  }

  .mobile-break {
    display: inline;
  }

  .desktop-break {
    display: none;
  }

  .vacancies-cta {
    margin-top: 40px;
    margin-bottom: 80px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .blog-list {
    padding-bottom: 80px;
  }

  .blog-list .blog-pagination-row,
  .cases--page .blog-pagination-row {
    margin-top: 60px;
  }

  .breadcrumb {
    flex-wrap: nowrap;
    overflow: hidden;
    max-width: 100%;
  }

  .breadcrumb > * {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .breadcrumb > *:last-child {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .blog-card__image-wrap {
    margin-bottom: 30px;
  }

  .blog-card__title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .blog-card__desc {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .blog-card__date {
    font-size: 14px;
  }

  .tag-chip,
  .blog-card__tag {
    padding: 8px 16px;
    font-size: 14px;
  }

  .blog-pagination-row {
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
  }

  .blog-pagination__item {
    width: 40px;
    height: 40px;
  }

  .case-gallery {
    gap: 40px;
  }

  .case-gallery__image {
    border-radius: 24px;
    height: auto;
    aspect-ratio: 740 / 500;
    object-fit: cover;
  }

  .article-meta {
    margin-top: 20px;
  }

  .seo-text__title.seo-text__title--title2 {
    text-align: center;
  }

  .seo-text__title.seo-text__title--title2 .agency-block__title-tail {
    text-align: center;
  }

  .page-banner {
    padding-top: 140px;
    padding-bottom: 20px;
    overflow: hidden;
  }

  .page-banner .blob-bg,
  .page-hero .blob-bg {
    inset: 0;
  }

  .hero--page {
    padding-bottom: 20px;
    min-height: 0;
    overflow: hidden;
  }

  .breadcrumb {
    margin-bottom: 20px;
  }

  .page-banner__title {
    font-size: 32px;
    line-height: 1.15;
  }

  .agency-why--after-divider {
    padding-top: 60px;
  }

  .logo-marquee--wide-gap {
    padding: 60px 0;
  }

  .clients-block {
    padding-bottom: 0;
  }

  .services-features__row--vertical,
  .services-features__row--horizontal {
    grid-template-columns: 1fr;
  }

  .services-features__row--vertical .services-features__card,
  .services-features__row--horizontal .services-features__card {
    height: auto;
    min-height: 420px;
  }

  .services-features--divider .services-features__row--vertical .services-features__card,
  .services-features--divider .services-features__row--horizontal .services-features__card,
  .services-features--page .services-features__row--vertical .services-features__card,
  .services-features--page .services-features__row--horizontal .services-features__card {
    min-height: 360px;
  }

  .school-directions.services-features__row--vertical .services-features__card {
    height: 200px;
    min-height: 0;
    overflow: hidden;
  }

  .school-directions.services-features__row--horizontal .services-features__card {
    height: 300px;
    min-height: 0;
  }

  .services-features__card--icon-bottom .services-features__card-title,
  .services-features__card--icon-bottom .services-features__card-text {
    max-width: 220px;
  }

  .services-features__card {
    padding: 32px;
    border-radius: 24px;
  }

  .services-features__card-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .services-features__card-text,
  .services-features__card-list {
    font-size: 14px;
  }

  .services-features__card--ui-ux2 .services-features__card-text {
    display: none;
  }

  .services-features__card--ui-ux2 .services-features__card-list {
    font-size: 14px;
  }

  .founder-quote {
    padding: 40px 0 80px;
  }

  .founder-quote__marks {
    font-size: 96px;
    margin-bottom: 0px;
  }

  .founder-quote__profile {
    padding: 10px 32px 10px 10px;
    gap: 12px;
    margin-top: 40px;
  }

  .founder-quote__avatar {
    width: 64px;
    height: 64px;
  }

  .founder-quote__name {
    font-size: 18px;
  }

  .founder-quote__role {
    font-size: 14px;
    line-height: 1.5;
  }

  .clients-block__head {
    margin-bottom: 48px;
  }

  .clients-block__carousel {
    padding: 20px 0 40px;
    margin-bottom: -40px;
  }

  .clients-block__track {
    gap: 16px;
  }

  .clients-block__review {
    flex: 0 0 290px;
    min-height: 0;
    padding: 32px;
  }

  .clients-block__review-text {
    font-size: 16px;
  }

  .clients-block__review-author {
    margin-top: 32px;
    gap: 14px;
  }

  .clients-block__review-author strong {
    font-size: 18px;
  }

  .clients-block__review-author span {
    font-size: 14px;
  }
}

/* Контакты — адаптив */
@media (max-width: 767px) {
  .page-hero {
    padding: 140px 0 60px;
  }

  .page-hero--contacts {
    padding-bottom: 120px;
  }

  .page-hero--cases {
    padding-bottom: 20px;
  }

  .cases--page {
    padding-bottom: 80px;
  }

  .page-hero__title {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 40px;
  }

  .contacts-info {
    grid-template-columns: 1fr;
    row-gap: 40px;
    margin-top: 60px;
  }

  .contact-socials {
    gap: 16px;
  }

  .contact-socials__link img {
    width: 48px;
    height: 48px;
  }

  .page-hero__info {
    gap: 24px;
  }

  .page-hero__info-label {
    font-size: 14px;
  }

  .page-hero__info-link {
    font-size: 18px;
  }
}

/* ==========================================================================
   1024–1279: горизонтальный планшет / малый ноутбук — ВСЕ правила в одном блоке.
   Десктоп ≥1280, планшет-портрет 768–1023 и мобилка ≤767 здесь не трогаем.
   ========================================================================== */
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Горизонтальный планшет / малый ноутбук (1024–1279px). Десктоп ≥1280 и планшет ≤1023 не трогаем */

  /* Заголовок hero → баннер 120 */
  .hero .hero__banner {
    margin-top: 120px;
  }

  /* Плашки >18 / 500+ не влезали: две по 460 шире баннера — делим ширину, максимум 460 */
  .hero__plates {
    left: 40px;
    justify-content: flex-end;
  }

  .hero__plate {
    flex: 1 1 0;
    width: auto;
    max-width: 460px;
    min-width: 0;
  }

  /* Главная: баннер → «Onebanan Digital Agency» 60, кнопка → линия 60, линия → «Услуги для бизнеса» 60 */
  .hero:not(.hero--page) {
    padding-bottom: 0;
  }

  .hero:not(.hero--page) + .agency-intro {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .hero:not(.hero--page) + .agency-intro .agency-block__title {
    margin-bottom: 60px;
  }

  .agency-intro + .services-features--divider {
    padding-top: 120px;
  }

  .agency-intro + .services-features--divider .services-features__title {
    margin-bottom: 60px;
  }

  /* Главная — виджеты услуг в 3 строки: Аналитика (на всю ширину) / ИИ контент + Брендинг / Сайт + Продвижение */
  .services-widgets.services-features .container:has(> .services-features__row--horizontal:not(.services-features__row--tall)) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .services-widgets.services-features .container:has(> .services-features__row--horizontal:not(.services-features__row--tall)) > .services-features__title {
    grid-column: 1 / -1;
  }

  .services-widgets.services-features .services-features__row--horizontal:not(.services-features__row--tall),
  .services-widgets.services-features .services-features__row--vertical {
    display: contents;
  }

  .services-widgets.services-features .services-features__card--photo-bg {
    grid-column: 1 / -1;
    order: 1;
  }

  .services-widgets.services-features .services-features__card--icon-bottom {
    order: 2;
  }

  .services-widgets.services-features .services-features__row--vertical .services-features__card:nth-child(1) {
    order: 3;
  }

  .services-widgets.services-features .services-features__row--vertical .services-features__card:nth-child(2) {
    order: 4;
  }

  .services-widgets.services-features .services-features__row--vertical .services-features__card:nth-child(3) {
    order: 5;
  }

  /* Главная — виджеты → лента 120, лента → «Комплексное развитие» 120 */
  .services-widgets.services-features .logo-marquee--home {
    padding-top: 120px;
    padding-bottom: 0;
  }

  .services-widgets.services-features .services-features__flagship {
    margin-top: 120px;
  }

  /* Главная — все виджеты услуг высотой 600 */
  .services-widgets.services-features .services-features__row--horizontal:not(.services-features__row--tall) .services-features__card,
  .services-widgets.services-features .services-features__row--vertical .services-features__card {
    height: auto;
    min-height: 600px;
  }

  /* Главная — Продвижение: картинка (446 → 401 → 361 → 379) */
  .services-widgets.services-features .services-features__card-web-wrap--wide {
    width: 379px;
    left: auto;
    right: 0;
  }

  /* Главная — Сайт: картинка на 20% меньше (446 → 357) */
  .services-widgets.services-features .services-features__card--dark .services-features__card-web-wrap {
    width: 357px;
    left: auto;
    right: 0;
  }

  /* Главная — ИИ контент: картинка на 30% меньше (340 → 238) */
  .services-widgets.services-features .services-features__card-icon-bottom {
    width: 238px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* Главная — SEO-блок внизу: баннер → заголовок 120, заголовок → текст 60, текст 22px, → футер 120 */
  .cases--home ~ .container:has(+ .seo-text--plain) .hero__banner--pre-footer {
    margin-bottom: 80px;
  }

  .cases--home ~ .seo-text--plain {
    padding-bottom: 120px;
  }

  .cases--home ~ .seo-text--plain .seo-text__title--title2 {
    margin-bottom: 60px;
  }

  .cases--home ~ .seo-text--plain .stub-block__text {
    font-size: 22px;
    line-height: 1.5;
    text-wrap: pretty;
    margin-bottom: 20px;
  }

  .cases--home ~ .seo-text--plain .stub-block__text:last-of-type {
    margin-bottom: 0;
  }

  /* Футер: как на планшете 768 — одна колонка стеком */
  .footer {
    padding-top: 60px;
  }

  .footer .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    row-gap: 80px;
    padding-bottom: 60px;
  }

  .footer__cta-title {
    white-space: normal;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 40px;
  }

  .footer__right {
    align-items: flex-start;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 24px 32px;
  }

  .footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px 40px;
    white-space: normal;
  }

  /* Кейсы: две колонки с зазором по центру 60 (без него колонки слипались) */
  .cases-grid {
    gap: 60px;
  }

  .cases-grid__col {
    width: calc(50% - 30px);
  }

  .cases-grid__image {
    height: auto;
    aspect-ratio: 740 / 500;
  }

  /* Главная — виджеты → линия 120, линия → «Кейсы» 120, «Кейсы» → сетка 60 */
  .agency-intro + .services-features--divider {
    padding-bottom: 120px;
  }

  .cases--home {
    padding-top: 120px;
  }

  .cases__title--home {
    margin-bottom: 60px;
  }

  /* Главная — UI-UX интерфейсы и Разработка MVP: 2 в строку, шрифты и картинки меньше */
  .services-widgets.services-features .services-features__row--tall .services-features__card {
    padding: 40px;
    height: 600px;
  }

  .services-widgets.services-features .services-features__card-mvp2-image {
    top: auto;
    bottom: 0;
    height: auto;
  }

  .services-widgets.services-features .services-features__row--tall .services-features__card-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .services-widgets.services-features .services-features__row--tall .services-features__card-text,
  .services-widgets.services-features .services-features__row--tall .services-features__card-list {
    font-size: 18px;
  }

  .services-widgets.services-features .services-features__card--ui-ux2 .services-features__card-text {
    display: none;
  }

  .services-widgets.services-features .services-features__card-uiux2-image {
    width: 321px;
    height: auto;
    right: -110px;
  }

  .services-widgets.services-features .services-features__card-mvp2-image {
    width: 330px;
    right: -70px;
  }

  /* Главная — текстовый блок «Услуги Onebanan Digital» как верхний «Onebanan Digital Agency»: отступы 120, заголовок → текст 60, текст 22px */
  .services-widgets.services-features .services-features__flagship {
    margin-bottom: 120px;
  }

  .services-widgets.services-features .services-features__intro-block {
    margin-top: 120px;
    margin-bottom: 120px;
  }

  .services-widgets.services-features .services-features__intro-block .services-features__title {
    max-width: none;
    margin-bottom: 60px;
  }

  .services-widgets.services-features .services-features__intro-block .stub-block__text {
    font-size: 22px;
    line-height: 1.5;
    text-wrap: pretty;
    margin-bottom: 20px;
  }

  .services-widgets.services-features .services-features__intro-block .stub-block__text:last-of-type {
    margin-bottom: 0;
  }

  /* Главная — «Комплексное развитие» как на планшете: заголовок → описание → список в 1 колонку; мелкие описания пунктов скрыты; иконка справа сдвинута за край баннера на 80 */
  .services-widgets.services-features .services-features__flagship-item-text {
    display: none;
  }

  .services-widgets.services-features .services-features__flagship {
    height: 600px;
    min-height: 0;
  }

  .services-widgets.services-features .services-features__flagship-content {
    max-width: 45%;
  }

  .services-widgets.services-features .services-features__flagship-list {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 32px;
  }

  .services-widgets.services-features .services-features__flagship-icon-wrap {
    right: -160px;
  }

  /* ==========================================================================
  1024–1279: остальные страницы по правилам главной (только этот диапазон)
  ========================================================================== */

  /* Пятна: без десктопного вылета -120, как на главной */
  .page-banner .blob-bg,
  .page-hero .blob-bg {
    inset: 0;
  }

  /* Низ страниц → футер 120 */
  .seo-text--plain {
    padding-bottom: 120px;
  }

  .case-footer-gap {
    margin-top: 120px !important;
  }

  .blog-list {
    padding-bottom: 120px;
  }

  .page-hero:has(.contacts-info) {
    padding-bottom: 120px !important;
  }

  section.container[style*="margin-bottom:200px"] {
    margin-bottom: 120px !important;
  }

  /* Текстовые блоки: текст 22px, заголовок → текст 60 */
  .seo-text__block--plain .stub-block__text,
  .services-features__intro-block .stub-block__text,
  .agency-intro__text-only .stub-block__text {
    font-size: 22px;
    line-height: 1.5;
  }

  .seo-text__title.seo-text__title--title2,
  .services-features__intro-block .services-features__title {
    margin-bottom: 60px;
  }

  /* Страницы с hero--page: баннер → следующий блок 120 */
  .hero--page:has(+ .agency-intro) {
    padding-bottom: 0 !important;
  }

  .hero--page + .agency-intro--tight {
    padding-top: 120px !important;
  }

  /* Школа / Вакансии: баннер → цитата 120, профиль → кнопка 60, кнопка → футер 120 */
  .hero--page:has(+ .founder-quote) {
    padding-bottom: 60px !important;
    min-height: 0 !important;
  }

  .hero--page + .founder-quote {
    padding-top: 60px !important;
  }

  .founder-quote + .vacancies-cta {
    margin-top: 60px !important;
    margin-bottom: 120px !important;
  }

  .founder-quote + .vacancies-cta .services-features__intro-cta {
    margin-top: 0 !important;
  }

  /* Кейс подробно: кнопка → баннер 120, заголовок → кнопка 60 */
  .hero--page:has(+ .case-banner-section) {
    padding-bottom: 120px !important;
    min-height: 0 !important;
  }

  .hero--page:has(+ .case-banner-section) .hero__title {
    margin-bottom: 60px !important;
  }

  .hero--page:has(+ .case-banner-section) .services-features__intro-cta {
    margin-top: 0 !important;
  }

  /* Партнёры: 2 колонки, чёрный на всю ширину, высота 600; VIP-баннер 600 с фото справа */
  .partners-features .services-features__row--vertical {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-features .services-features__row--vertical .services-features__card {
    min-height: 600px;
  }

  .partners-features .services-features__row--vertical .services-features__card--dark {
    grid-column: 1 / -1;
  }

  .partners-features .services-features__flagship {
    height: 600px;
  }

  .partners-features .services-features__flagship-content {
    max-width: 60%;
  }

  .partners-features .services-features__intro-block {
    margin-bottom: 0;
  }

  .partners-features + .container .hero__banner--pre-footer {
    margin-top: 120px;
  }

  /* Услуги (services.html): виджеты в 3 строки, как на главной; высота 600 */

  /* Услуги: заголовок страницы → виджеты 120 (как заголовок → баннер на главной) */
  .page-banner:has(+ .services-features--page) {
    padding-bottom: 120px;
  }

  /* Услуги: карточки → лента 120, лента → следующий блок 120, как на главной */
  .services-features--page + .faq--no-line {
    padding-top: 120px;
  }

  /* Агентство «Почему мы?»: 2 колонки, как на планшете */
  .agency-why .container:has(.school-directions.services-features__row--horizontal) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .agency-why .container:has(.school-directions.services-features__row--horizontal) > .services-features__title {
    grid-column: 1 / -1;
  }

  .agency-why .services-features__row--vertical.school-directions,
  .agency-why .services-features__row--horizontal.school-directions {
    display: contents;
  }

  .agency-why .services-features__row--vertical.school-directions .services-features__card:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
  }

  .agency-why .services-features__row--vertical.school-directions .services-features__card:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
  }

  .agency-why .services-features__row--vertical.school-directions .services-features__card:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .agency-why .services-features__row--horizontal.school-directions .services-features__card:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .agency-why .services-features__row--horizontal.school-directions .services-features__card:nth-child(2) {
    grid-column: 2;
    grid-row: 3;
    height: auto;
    min-height: 440px;
  }

  .logo-marquee--wide-gap {
    padding: 120px 0;
  }

  /* school2: блок «основатель» — фото 720px фикс не влезает */
  .founder-about {
    flex-direction: column;
  }

  .founder-about__photos {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .founder-about__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  /* Бриф / успех: левая колонка уже фикс. фото и плашки */
  .brief-modal__photo {
    width: min(520px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .hero__plate.hero__plate--grey {
    width: 100%;
    height: 400px;
  }

  /* Страница «Услуги» 1024–1279: весь блок виджетов — копия главной (селекторы заменены) */

  /* Услуги (как главная) — виджеты услуг в 3 строки: Аналитика (на всю ширину) / ИИ контент + Брендинг / Сайт + Продвижение */

  /* Услуги (как главная) — виджеты → лента 120, лента → «Комплексное развитие» 120 */

  /* Услуги (как главная) — все виджеты услуг высотой 600 */

  /* Услуги (как главная) — Продвижение: картинка (446 → 401 → 361 → 379) */

  /* Услуги (как главная) — Сайт: картинка на 20% меньше (446 → 357) */

  /* Услуги (как главная) — ИИ контент: картинка на 30% меньше (340 → 238) */

  /* Услуги (как главная) — UI-UX интерфейсы и Разработка MVP: 2 в строку, шрифты и картинки меньше */

  /* Услуги (как главная) — текстовый блок «Услуги Onebanan Digital» как верхний «Onebanan Digital Agency»: отступы 120, заголовок → текст 60, текст 22px */

  /* Услуги (как главная) — «Комплексное развитие» как на планшете: заголовок → описание → список в 1 колонку; мелкие описания пунктов скрыты; иконка справа сдвинута за край баннера на 80 */

  /* Услуги: порядок карточек по позиции (у карточек нет классов --branding) */

  /* Агентство «Почему мы?» 1024–1279: заголовок → виджеты 60 */
  .agency-why .services-features__title {
    margin-bottom: 60px;
  }

  /* Агентство «Отзывы клиентов» 1024–1279: заголовок → карточки 60 */
  .clients-block__head {
    margin-bottom: 60px;
  }

  /* Баннер перед SEO-блоком 1024–1279: баннер → заголовок 120 (160 снизу баннера + 40 сверху блока → 80 + 40) */
  .container:has(+ .seo-text--plain) .hero__banner--pre-footer {
    margin-bottom: 80px;
  }

  /* Статья блога 1024–1279: пункты списка того же размера, что абзацы (22px) */
  .article-list li {
    font-size: 22px;
    line-height: 1.5;
  }

  /* Партнёры 1024–1279: заголовок → виджеты 120 (было 80 margin + 120 padding) */
  .page-hero--center .page-hero__title {
    margin-bottom: 0;
  }

  /* Партнёры 1024–1279: виджеты → лента 120, лента → VIP-баннер 120, как на главной */
  .partners-features .logo-marquee--home {
    padding-top: 120px;
    padding-bottom: 0;
  }

  .partners-features .services-features__flagship {
    margin-top: 120px;
  }

  /* Партнёры 1024–1279: VIP-баннер как «Комплексное развитие» на главной — без мелких текстов, список в 1 колонку, сноска в 2 строки */
  .partners-features .services-features__flagship-item-text,
  .partners-features .services-features__flagship-text {
    display: none;
  }

  .partners-features .services-features__flagship-content {
    max-width: 45%;
  }

  .partners-features .services-features__flagship-list {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 32px;
  }

  .partners-features .services-features__flagship-note .mobile-break {
    display: inline;
  }

  /* Контакты 1024–1279: правая колонка ближе к соцсетям (было 620px слева) */
  .contacts-info {
    grid-template-columns: 420px 1fr;
  }

  /* Бриф 1024–1279: поля формы в 1 колонку (в 2 колонки в узкой правой части тесно) */
  .brief-form__row {
    grid-template-columns: 1fr;
  }
}

/* ВРЕМЕННО: иконка VK скрыта на всех страницах (футер и контакты) во всех версиях.
   Когда будет готова группа VK — удалить это правило, разметка иконок и iconки остались. */
a[aria-label="VK"] {
  display: none !important;
}
