:root {
  --yellow: #ffd400;
  --text: #11110d;
  --muted: rgba(17, 17, 13, 0.64);
  --cream: #f1ecd9;
  --cream2: #faf6e7;
  --shadow: 0 24px 60px rgba(23, 21, 13, 0.16);
  --shadow-soft: 0 18px 44px rgba(23, 21, 13, 0.12);
  --font-display: "Unbounded", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
img,
video,
iframe,
svg {
  display: block;
}
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header {
  position: fixed;
  z-index: 80;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 40px));
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.brand,
.nav-panel,
.menu-btn {
  pointer-events: auto;
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  background: var(--yellow);
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.16);
  font-weight: 900;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.nav-panel {
  justify-self: stretch;
  min-height: 44px;
  padding: 0 10px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 252, 238, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.14);
}
.nav-panel a,
.nav-contact-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #1d1b15;
  border-radius: 999px;
  padding: 0 12px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  transition:
    background 0.22s ease,
    transform 0.22s ease;
}
.nav-panel a:hover,
.nav-contact-btn:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}
.menu-btn {
  display: none;
}
.hero {
  position: relative;
  min-height: 100svh;
  padding: 100px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-video-carousel {
  position: absolute;
  z-index: 0;
  inset: 70px 0 70px;
  overflow: hidden;
  pointer-events: none;
}
.hero-video-track {
  display: flex;
  gap: 18px;
  width: max-content;
  min-height: 100%;
  animation: heroVideoMove 44s linear infinite;
}
.hero-video-card {
  position: relative;
  width: min(380px, 34vw);
  min-width: 320px;
  height: min(560px, calc(100svh - 170px));
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0.98;
}
.hero-video-card:nth-child(2n) {
  transform: translateY(28px);
}
.hero-video-card:nth-child(3n) {
  transform: translateY(-18px);
}
.hero-video-card video,
.hero-video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.hero-video-card iframe {
  width: 177.8%;
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(255, 255, 255, 0.16),
      transparent 45%
    ),
    linear-gradient(
      90deg,
      rgba(241, 236, 217, 0.25),
      rgba(241, 236, 217, 0.08),
      rgba(241, 236, 217, 0.22)
    );
  pointer-events: none;
}
@keyframes heroVideoMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 27px));
  }
}
.glass-panel {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 34px;
  text-align: center;
  border-radius: 36px;
  background: rgba(255, 252, 238, 0.68);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--yellow);
  border: 1px solid rgba(0, 0, 0, 0.16);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(255, 212, 0, 0.22);
}
.hero h1 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  text-wrap: balance;
}
.caret {
  display: inline-block;
  width: 0.08em;
  height: 0.78em;
  margin-left: 0.05em;
  background: var(--yellow);
  vertical-align: -0.08em;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.hero p {
  margin: 22px auto 0;
  max-width: 520px;
  color: rgba(17, 17, 13, 0.67);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}
.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary,
.btn-submit {
  background: var(--yellow);
  color: #000;
  box-shadow:
    0 16px 36px rgba(255, 212, 0, 0.25),
    var(--shadow-soft);
}
.btn-primary:hover,
.btn-submit:hover {
  box-shadow:
    0 0 34px rgba(255, 212, 0, 0.42),
    var(--shadow);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.72);
  color: #000;
  box-shadow: var(--shadow-soft);
}
.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  max-width: 780px;
}
.stat-card {
  padding: 22px 18px;
  border-radius: 28px;
  background: rgba(255, 252, 238, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.13);
  box-shadow: var(--shadow-soft);
  text-align: center;
  backdrop-filter: blur(14px);
}
.stat-card strong {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  color: #000;
}
.stat-card .plus {
  color: #000;
  font: inherit;
  margin-left: 2px;
}
.stat-card > span:last-child {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(17, 17, 13, 0.68);
}
.section-light {
  background: var(--cream);
  color: var(--text);
  padding: 86px 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.9fr);
  align-items: center;
  gap: 42px;
  margin-bottom: 30px;
}
.section-head h2,
.about-copy h2,
.lead-copy h2,
.workflow-top h2 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 66px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-wrap: balance;
}
.section-head p,
.about-copy p,
.lead-copy p,
.workflow-top p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
  font-weight: 600;
}
.portfolio-head-media,
.workflow-head-media,
.about-photo {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #000;
  box-shadow: var(--shadow);
}
.portfolio-head-media,
.workflow-head-media {
  min-height: 320px;
  position: relative;
}
.portfolio-head-media video,
.workflow-head-media video,
.workflow-head-media iframe,
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.workflow-head-media video,
.workflow-head-media iframe {
  position: absolute;
  inset: 0;
}
.workflow-head-media iframe {
  width: 177.8%;
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
}
.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.filter-btn {
  border: 1px solid rgba(0, 0, 0, 0.16);
  color: #111;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.22s ease,
    background 0.22s ease;
}
.filter-btn:hover {
  transform: translateY(-2px);
}
.filter-btn.is-active {
  background: var(--yellow);
  color: #000;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.video-card {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.video-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 177.8%;
  height: 100%;
  max-width: none;
  left: 50%;
  transform: translateX(-50%) scale(1.05);
  border: 0;
  pointer-events: none;
}
.video-info {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 252, 238, 0.88);
  color: #000;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}
.video-info span {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.58);
}
.video-info h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.05;
  letter-spacing: -0.055em;
}
.video-info p {
  display: none;
}
.about-section {
  padding-top: 92px;
}
.about-top {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}
.about-photo {
  min-height: 520px;
  background: var(--cream2);
}
.about-photo img {
  object-position: center;
}
.founders-text {
  display: grid;
  gap: 12px;
}
.founders-text p {
  margin-top: 0;
}
.team-block {
  margin-top: 64px;
}
.team-block h3,
.clients-head p,
.question-strip h3 {
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}
.team-block h3 {
  font-size: clamp(26px, 3vw, 42px);
  margin: 0 0 18px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.team-card {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 252, 238, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow-soft);
}
.team-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--yellow), #fff3a3);
  color: #000;
  font-family: var(--font-display);
  margin-bottom: 16px;
}
.team-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
}
.team-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}
.clients-block {
  margin-top: 64px;
}
.clients-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.clients-head p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.clients-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 0 18px;
  cursor: grab;
  scrollbar-width: thin;
}
.clients-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: clientsMove 34s linear infinite;
}
.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}
.client-logo {
  min-width: 150px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  background: rgba(255, 252, 238, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  font-size: 14px;
  text-align: center;
}
.client-logo:hover {
  background: var(--yellow);
}
@keyframes clientsMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.lead-section {
  background: linear-gradient(180deg, var(--cream), #fff9df);
  color: #000;
  padding: 88px 0;
}
.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.78fr);
  gap: 42px;
  align-items: start;
}
.lead-benefits {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lead-benefits span {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  padding: 11px 14px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
.glass-card {
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 252, 238, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.lead-form {
  padding: 28px;
}
.field {
  margin-bottom: 15px;
}
.field label:not(.consent label) {
  display: block;
  margin-bottom: 9px;
  font-weight: 900;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  border-radius: 18px;
  border: 2px solid #000;
  background: var(--cream2);
  color: #000;
  padding: 0 16px;
  outline: none;
  font-weight: 800;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.04);
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  height: 56px;
}
.field textarea {
  min-height: 118px;
  padding-top: 14px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  box-shadow:
    0 0 0 4px rgba(255, 212, 0, 0.42),
    inset 0 -5px 0 rgba(0, 0, 0, 0.04);
}
.field small {
  display: none;
  color: #b00020;
  font-weight: 800;
  margin-top: 7px;
}
.field.has-error small {
  display: block;
}
.consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #000;
  background: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.25;
}
.consent input {
  accent-color: var(--yellow);
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.consent a,
.footer-bottom a {
  font-weight: 900;
  text-decoration: underline;
}
.btn-submit {
  width: 100%;
}
.success-message {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--yellow);
  color: #000;
  font-weight: 900;
}
.workflow-section {
  background: var(--cream);
  color: #000;
  padding: 88px 0;
}
.workflow-top {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin-bottom: 28px;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step-card {
  min-height: 190px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 252, 238, 0.82);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background: #fffdf0;
}
.step-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--yellow);
  text-shadow: 0 1px 0 #000;
  margin-bottom: 28px;
}
.step-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  font-size: 22px;
}
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.question-strip {
  margin-top: 32px;
  min-height: 112px;
  border-radius: 30px;
  background: var(--yellow);
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
}
.question-strip h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  color: #000;
}
.question-strip .btn {
  background: #000;
  color: #fff;
}
.footer {
  background: var(--cream2);
  color: #111;
  padding: 58px 0 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: 28px;
}
.footer-brand {
  display: inline-flex;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  color: #000;
  background: var(--yellow);
  border-radius: 999px;
  padding: 10px 14px;
}
.footer p,
.footer a {
  color: rgba(17, 17, 13, 0.68);
  line-height: 1.5;
}
.footer h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  color: #000;
}
.contact-person {
  margin-top: 14px;
}
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #000;
  box-shadow: 0 16px 34px rgba(255, 212, 0, 0.22);
}
.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.social-rutube span {
  font-family: var(--font-display);
  font-weight: 900;
}
.yt-body {
  fill: currentColor;
}
.yt-play {
  fill: var(--yellow);
}
.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-bottom nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.policy-modal,
.contacts-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}
.policy-modal.is-open,
.contacts-modal.is-open {
  display: flex;
}
.policy-content,
.contacts-content {
  position: relative;
  width: min(900px, 100%);
  max-height: min(86svh, 780px);
  overflow: auto;
  padding: 34px;
  background: var(--cream2);
  color: #000;
}
.contacts-content {
  width: min(720px, 100%);
}
.modal-close,
.policy-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
}
.modal-close:before,
.modal-close:after,
.policy-close:before,
.policy-close:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transform-origin: center;
}
.modal-close:before,
.policy-close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-close:after,
.policy-close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.policy-document h2 {
  margin-top: 0;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}
.policy-document p {
  color: rgba(17, 17, 13, 0.68);
  line-height: 1.55;
}
.contacts-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.contacts-popup-grid article {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.contacts-popup-grid a {
  display: block;
  color: rgba(17, 17, 13, 0.72);
  margin-top: 8px;
}
.popup-socials {
  margin-top: 18px;
}
body.modal-open,
body.menu-open {
  overflow: hidden;
}
@media (max-width: 980px) {
  .container {
    width: min(100% - 28px, 720px);
  }
  .site-header {
    top: 20px;
    width: calc(100% - 28px);
    grid-template-columns: 1fr auto;
  }
  .brand {
    height: 46px;
    padding: 0 18px;
    font-size: 13px;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 252, 238, 0.86);
    color: #000;
    padding: 0 16px;
    font-weight: 900;
    text-transform: uppercase;
  }
  .menu-btn span,
  .menu-btn span:before,
  .menu-btn span:after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #000;
    content: "";
  }
  .menu-btn span {
    position: relative;
  }
  .menu-btn span:before,
  .menu-btn span:after {
    position: absolute;
    left: 0;
  }
  .menu-btn span:before {
    top: -7px;
  }
  .menu-btn span:after {
    top: 7px;
  }
  .nav-panel {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 28px;
  }
  .nav-panel.is-open {
    display: flex;
  }
  .nav-panel a,
  .nav-contact-btn {
    justify-content: flex-start;
    min-height: 44px;
    width: 100%;
  }
  .hero {
    min-height: auto;
    padding: 104px 0 42px;
  }
  .hero-video-carousel {
    inset: 76px 0 36px;
  }
  .hero-video-card {
    min-width: 265px;
    height: 520px;
  }
  .glass-panel {
    padding: 28px 20px;
    border-radius: 30px;
  }
  .hero h1 {
    font-size: clamp(34px, 12vw, 54px);
  }
  .hero p {
    font-size: 14px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .section-head,
  .about-top,
  .lead-layout,
  .workflow-top {
    grid-template-columns: 1fr;
  }
  .section-head h2,
  .about-copy h2,
  .lead-copy h2,
  .workflow-top h2 {
    font-size: clamp(30px, 10vw, 46px);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .portfolio-head-media,
  .workflow-head-media {
    min-height: 240px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .clients-head {
    display: grid;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .question-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .contacts-popup-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .container {
    width: calc(100% - 24px);
  }
  .hero-video-card {
    min-width: 230px;
    height: 500px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .video-info h3 {
    font-size: 12px;
  }
  .lead-form,
  .policy-content,
  .contacts-content {
    padding: 22px;
  }
  .about-photo {
    min-height: 380px;
  }
}

/* ==============================
   v18 light polish: компактная главная, о нас, заявка, клиенты, адаптив
   ============================== */
.nav-contact-yellow {
  background: var(--yellow) !important;
  color: #000 !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  box-shadow: 0 14px 32px rgba(255, 212, 0, 0.28) !important;
  padding: 0 18px !important;
}
.nav-contact-yellow:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 42px rgba(255, 212, 0, 0.38) !important;
}
.hero {
  padding-top: 86px;
  padding-bottom: 44px;
  min-height: 92svh;
}
.hero-video-carousel {
  inset: 64px 0 48px;
}
.hero-shade {
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.09),
      transparent 43%
    ),
    linear-gradient(
      90deg,
      rgba(241, 236, 217, 0.12),
      rgba(241, 236, 217, 0.04),
      rgba(241, 236, 217, 0.12)
    );
}
.glass-panel {
  max-width: 480px;
  padding: 30px 28px 26px;
  border-radius: 30px;
  background: rgba(255, 252, 238, 0.62);
}
.hero-kicker,
.eyebrow {
  padding: 8px 12px;
  font-size: 10px;
}
.hero h1 {
  font-size: clamp(34px, 5.1vw, 56px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}
.hero p {
  font-size: 14px;
  line-height: 1.45;
  max-width: 460px;
  margin-top: 16px;
}
.hero-actions {
  margin-top: 20px;
  gap: 10px;
}
.hero-actions .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
}
.hero-stats {
  max-width: 620px;
  margin-top: 22px;
  gap: 12px;
}
.stat-card {
  padding: 16px 16px;
  border-radius: 22px;
}
.stat-card strong {
  font-size: clamp(32px, 3.5vw, 44px);
}
.stat-card > span:last-child {
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.25;
}
.section-head h2,
.about-copy h2,
.lead-copy h2,
.workflow-top h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}
.section-head p,
.about-copy p,
.lead-copy p,
.workflow-top p {
  font-size: 14px;
  line-height: 1.52;
}
.about-top {
  align-items: stretch;
  gap: 36px;
}
.about-photo {
  align-self: stretch;
  height: auto;
  min-height: 0;
}
.about-photo img {
  height: 100%;
  object-fit: cover;
}
.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.founders-text p {
  font-size: 14px;
  line-height: 1.5;
}
.team-block {
  margin-top: 56px;
}
.team-block h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  margin-bottom: 20px;
}
.team-grid-photo {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.team-card-photo {
  padding: 12px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  background: rgba(255, 252, 238, 0.82);
}
.team-photo {
  height: 140px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: #000;
  background: linear-gradient(135deg, #ffd400, #fff3a3 55%, #f7ecd2);
  box-shadow: inset 0 -18px 40px rgba(0, 0, 0, 0.06);
}
.team-photo-ux {
  background: linear-gradient(135deg, #f6f1dd, #ffd400);
}
.team-photo-3d {
  background: linear-gradient(135deg, #ffe66c, #fffdf0);
}
.team-photo-js {
  background: linear-gradient(135deg, #111, #ffd400);
  color: #ffd400;
}
.team-photo-sm {
  background: linear-gradient(135deg, #fffdf0, #ffe45c);
}
.team-text h4 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.25;
}
.team-text p {
  font-size: 13px;
  line-height: 1.42;
}
.clients-block {
  width: 100vw;
  max-width: none;
  margin: 58px 0 0 calc(50% - 50vw);
  overflow: hidden;
}
.clients-head {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 16px;
  display: block;
}
.clients-head p {
  display: none !important;
}
.clients-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 20px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.clients-marquee::-webkit-scrollbar {
  display: none;
}
.clients-track {
  gap: 10px;
  animation: clientsMove 46s linear infinite;
  padding-inline: 18px;
}
.client-logo {
  min-width: 132px;
  height: 62px;
  border-radius: 18px;
  font-size: 12px;
  background: rgba(255, 252, 238, 0.88);
}
.lead-section {
  padding: 76px 0;
  background: linear-gradient(180deg, var(--cream), #fff3bd);
}
.lead-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.86fr);
  align-items: center;
}
.lead-copy h2 {
  max-width: 620px;
}
.lead-form {
  padding: 24px;
  border-radius: 26px;
}
.lead-benefits span {
  font-size: 13px;
  padding: 10px 14px;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  height: 50px;
}
.field textarea {
  min-height: 104px;
}
.workflow-section {
  padding: 76px 0;
  background: linear-gradient(180deg, #fff4be, var(--cream));
}
.workflow-top {
  gap: 32px;
  margin-bottom: 24px;
}
.workflow-head-media {
  min-height: 270px;
  border-radius: 26px;
}
.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.step-card {
  min-height: 160px;
  padding: 18px;
  border-radius: 22px;
}
.step-card b {
  font-size: 24px;
  margin-bottom: 22px;
}
.step-card h3 {
  font-size: 19px;
}
.step-card p {
  font-size: 13px;
}
.question-strip {
  min-height: 90px;
  border-radius: 26px;
  padding: 18px 24px;
}
.question-strip h3 {
  font-size: clamp(24px, 3vw, 38px);
}
.footer-brand {
  color: #000 !important;
}
.footer-brand:visited {
  color: #000 !important;
}
@media (max-width: 980px) {
  .nav-contact-yellow {
    width: 100%;
    justify-content: center !important;
  }
  .hero {
    padding-top: 106px;
    padding-bottom: 36px;
  }
  .hero-video-carousel {
    inset: 82px 0 30px;
  }
  .hero-video-card {
    min-width: 250px;
    height: 500px;
    opacity: 1;
  }
  .glass-panel {
    max-width: min(92vw, 440px);
    padding: 24px 18px;
    border-radius: 26px;
  }
  .hero h1 {
    font-size: clamp(30px, 10.5vw, 46px);
  }
  .hero p {
    font-size: 13px;
    line-height: 1.42;
  }
  .hero-actions .btn {
    min-height: 42px;
    font-size: 12px;
  }
  .hero-stats {
    max-width: min(92vw, 440px);
    margin-top: 16px;
    gap: 10px;
  }
  .stat-card {
    padding: 13px 12px;
    border-radius: 20px;
  }
  .stat-card strong {
    font-size: 34px;
  }
  .section-head h2,
  .about-copy h2,
  .lead-copy h2,
  .workflow-top h2 {
    font-size: clamp(28px, 9vw, 42px);
  }
  .about-top {
    gap: 22px;
  }
  .about-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 4/5;
  }
  .team-grid-photo {
    grid-template-columns: 1fr;
  }
  .team-card-photo {
    min-height: auto;
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 14px;
  }
  .team-photo {
    height: 110px;
    margin-bottom: 0;
  }
  .clients-head {
    width: calc(100% - 28px);
  }
  .lead-section,
  .workflow-section {
    padding: 58px 0;
  }
  .lead-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .question-strip {
    align-items: stretch;
  }
  .question-strip .btn {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .hero-video-card {
    min-width: 220px;
    height: 460px;
  }
  .glass-panel {
    padding: 22px 16px;
  }
  .hero h1 {
    font-size: clamp(28px, 11vw, 40px);
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .portfolio-head-media,
  .workflow-head-media {
    min-height: 210px;
  }
  .team-card-photo {
    grid-template-columns: 1fr;
  }
  .team-photo {
    height: 145px;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .lead-form {
    padding: 20px;
  }
}

/* ==============================
   v19: portfolio fullscreen modal + compact lead + better mobile media
   ============================== */
.video-card {
  cursor: pointer;
}
.video-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 76px 26px 28px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
}
.portfolio-modal.is-open {
  display: flex;
}
.portfolio-modal-inner {
  width: min(1480px, 100%);
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr) minmax(
      150px,
      240px
    );
  align-items: center;
  gap: 18px;
}
.portfolio-player-wrap {
  min-width: 0;
}
.portfolio-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 212, 0, 0.12);
}
.portfolio-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.portfolio-player-info {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 8, 0.74);
  color: #fff;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}
.portfolio-player-info span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: #000;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
}
.portfolio-player-info h3 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.portfolio-player-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
  font-weight: 600;
}
.portfolio-side {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: left;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  opacity: 0.68;
  transform: scale(0.94);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.portfolio-side:hover {
  opacity: 1;
  transform: scale(0.98) translateY(-2px);
  border-color: rgba(255, 212, 0, 0.62);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(255, 212, 0, 0.12);
}
.portfolio-side-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.portfolio-side-thumb {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 18px;
  background: #000;
}
.portfolio-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.72);
}
.portfolio-side strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.portfolio-side small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  line-height: 1.25;
}
.portfolio-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  z-index: 3;
}
.portfolio-modal-close::before,
.portfolio-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transform-origin: center;
}
.portfolio-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.portfolio-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.portfolio-modal-controls {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  backdrop-filter: blur(14px);
  z-index: 2;
}
.portfolio-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  font-weight: 900;
  font-size: 20px;
}
#portfolioCounter {
  min-width: 54px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}
.lead-section {
  padding: 54px 0 !important;
  background: linear-gradient(180deg, var(--cream), #fff5c6) !important;
}
.lead-layout {
  gap: 24px !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.72fr) !important;
  align-items: center !important;
}
.lead-copy h2 {
  font-size: clamp(26px, 3.2vw, 42px) !important;
  max-width: 560px !important;
}
.lead-copy p {
  font-size: 13px !important;
  max-width: 520px !important;
}
.lead-benefits {
  margin-top: 18px !important;
  gap: 8px !important;
}
.lead-benefits span {
  font-size: 12px !important;
  padding: 9px 12px !important;
}
.lead-form {
  max-width: 430px;
  margin-left: auto;
  padding: 18px !important;
  border-radius: 24px !important;
}
.lead-form .field {
  margin-bottom: 10px !important;
}
.lead-form .field label:not(.consent label) {
  font-size: 13px;
  margin-bottom: 6px !important;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  height: 46px !important;
  border-radius: 15px !important;
}
.field textarea {
  min-height: 78px !important;
  border-radius: 15px !important;
}
.consent label {
  padding: 10px !important;
  font-size: 11px !important;
  border-radius: 14px !important;
}
.btn-submit {
  min-height: 44px !important;
  font-size: 13px !important;
}
.hero-video-card video,
.hero-video-card iframe {
  filter: saturate(1.18) contrast(1.06) brightness(1.08);
}
.hero-shade {
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.035),
      transparent 42%
    ),
    linear-gradient(
      90deg,
      rgba(241, 236, 217, 0.055),
      rgba(241, 236, 217, 0.015),
      rgba(241, 236, 217, 0.05)
    ) !important;
}
.glass-panel {
  background: rgba(255, 252, 238, 0.5) !important;
  backdrop-filter: blur(10px) !important;
}
@media (max-width: 980px) {
  .portfolio-modal {
    padding: 74px 14px 98px;
    align-items: flex-start;
    overflow: auto;
  }
  .portfolio-modal-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(620px, 100%);
  }
  .portfolio-side {
    display: none !important;
  }
  .portfolio-player {
    border-radius: 20px;
    aspect-ratio: 16/10;
  }
  .portfolio-player-info {
    border-radius: 18px;
    padding: 14px;
    margin-top: 10px;
    padding-bottom: 72px;
  }
  .portfolio-player-info p {
    font-size: 13px;
  }
  .portfolio-modal-close {
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
  }
  .portfolio-modal-controls {
    bottom: 20px;
    position: fixed;
  }
  .lead-layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .lead-form {
    max-width: 100%;
    margin: 0;
    padding: 18px !important;
  }
  .lead-section {
    padding: 44px 0 !important;
  }
  .hero-video-carousel {
    inset: 72px 0 18px !important;
  }
  .hero-video-card {
    min-width: 285px !important;
    height: 560px !important;
    opacity: 1 !important;
  }
  .glass-panel {
    max-width: min(86vw, 390px) !important;
    padding: 22px 16px !important;
    background: rgba(255, 252, 238, 0.44) !important;
    backdrop-filter: blur(7px) !important;
  }
  .hero h1 {
    font-size: clamp(28px, 9.4vw, 40px) !important;
  }
  .hero p {
    font-size: 12.5px !important;
  }
  .hero-actions .btn {
    min-height: 40px !important;
  }
  .hero-stats {
    max-width: min(86vw, 390px) !important;
  }
  .stat-card {
    background: rgba(255, 252, 238, 0.7) !important;
  }
  .about-photo {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    background: transparent !important;
  }
  .about-photo img {
    height: auto !important;
    max-height: 420px !important;
    object-fit: contain !important;
    width: 100% !important;
    border-radius: 26px;
  }
}
@media (max-width: 560px) {
  .portfolio-modal {
    padding: 68px 10px 104px;
  }
  .portfolio-player {
    aspect-ratio: 9/14;
  }
  .portfolio-player-info {
    padding: 12px;
    padding-bottom: 78px;
  }
  .portfolio-player-info h3 {
    font-size: 20px;
  }
  .portfolio-player-info p {
    font-size: 12.5px;
  }
  .portfolio-arrow {
    width: 40px;
    height: 40px;
  }
  .hero-video-card {
    min-width: 275px !important;
    height: 585px !important;
  }
  .glass-panel {
    max-width: 84vw !important;
    padding: 20px 15px !important;
  }
  .hero h1 {
    font-size: clamp(27px, 9.8vw, 38px) !important;
  }
  .hero-stats {
    gap: 10px !important;
  }
  .about-photo img {
    max-height: 380px !important;
  }
}

/* ===== v20: light adaptive + pages polish ===== */
.about-copy h2 {
  margin-bottom: 22px !important;
}
.founders-text {
  margin-top: 20px !important;
}
.workflow-section .step-card b {
  font-size: 34px !important;
  text-shadow: none !important;
  color: var(--yellow) !important;
  line-height: 1 !important;
}
.clients-track {
  animation-duration: 78s !important;
}
.hero-video-carousel {
  inset: 96px 0 46px !important;
  pointer-events: auto !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  cursor: grab !important;
}
.hero-video-carousel::-webkit-scrollbar {
  display: none !important;
}
.hero-video-carousel.is-dragging {
  cursor: grabbing !important;
}
.hero-video-carousel.is-dragging .hero-video-track {
  animation-play-state: paused !important;
}
.hero-video-card {
  user-select: none !important;
}
.hero-video-card iframe,
.hero-video-card video {
  pointer-events: none !important;
}

.page-main {
  padding-top: 110px;
  background: var(--cream);
  min-height: 100svh;
}
.page-hero {
  padding: 72px 0 48px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  margin: 18px 0 0;
  max-width: 920px;
}
.page-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 650;
  margin: 22px 0 0;
}
.contacts-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}
.contacts-page-card {
  border-radius: 28px;
  background: rgba(255, 252, 238, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow-soft);
  padding: 26px;
}
.contacts-page-card h3 {
  font-family: var(--font-display);
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.05em;
}
.contacts-page-card p,
.contacts-page-card a {
  display: block;
  color: rgba(17, 17, 13, 0.72);
  line-height: 1.55;
  margin: 7px 0;
  font-weight: 650;
}
.contacts-page-socials {
  margin-top: 24px;
}
.workflow-page .workflow-top {
  padding-top: 0;
}
.workflow-page .question-strip {
  margin-bottom: 52px;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 380px !important;
    padding-bottom: 36px !important;
    justify-content: flex-start !important;
  }
  .hero-video-carousel {
    inset: 86px 0 auto !important;
    height: 330px !important;
    overflow-x: auto !important;
  }
  .hero-video-track {
    min-height: 330px !important;
  }
  .hero-video-card {
    min-width: 250px !important;
    height: 330px !important;
    border-radius: 24px !important;
  }
  .hero-video-card:nth-child(2n),
  .hero-video-card:nth-child(3n) {
    transform: none !important;
  }
  .glass-panel {
    max-width: min(92vw, 520px) !important;
    background: rgba(255, 252, 238, 0.74) !important;
    backdrop-filter: blur(12px) !important;
  }
  .hero-stats {
    margin-top: 16px !important;
  }
  .page-main {
    padding-top: 96px;
  }
  .contacts-page-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .hero {
    padding-top: 344px !important;
  }
  .hero-video-carousel {
    height: 300px !important;
  }
  .hero-video-track {
    min-height: 300px !important;
  }
  .hero-video-card {
    min-width: 235px !important;
    height: 300px !important;
  }
  .glass-panel {
    padding: 20px 16px !important;
    border-radius: 26px !important;
  }
  .page-title {
    font-size: clamp(32px, 12vw, 48px);
  }
}

/* ===== v21: navigation fixes, page gradients and social icons ===== */
.page-gradient {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 212, 0, 0.28), transparent 34%),
    linear-gradient(180deg, #fff4be 0%, #fff7d4 260px, var(--cream) 620px);
}
.page-gradient .page-main,
.page-gradient .workflow-section {
  background: transparent !important;
}
.page-gradient .site-header {
  background: transparent;
}
.workflow-page .workflow-section {
  background: transparent !important;
}
.contacts-page .page-hero,
.workflow-page {
  background: transparent !important;
}
.question-strip .btn,
.question-strip a.btn {
  text-decoration: none;
}
.social-links {
  align-items: center;
}
.social-links a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  overflow: hidden;
  flex: 0 0 auto;
}
.social-links svg {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
  max-width: 21px !important;
  max-height: 21px !important;
  margin: 0 !important;
  transform: none !important;
}
.social-links .social-rutube span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
  font-size: 16px;
}
.social-youtube .yt-body {
  fill: #000 !important;
}
.social-youtube .yt-play {
  fill: var(--yellow) !important;
}
.contacts-page-socials.social-links,
.popup-socials.social-links {
  gap: 10px;
}
.footer .social-links a,
.contacts-page-socials a,
.popup-socials a {
  box-shadow:
    0 14px 30px rgba(255, 212, 0, 0.22),
    0 1px 0 rgba(0, 0, 0, 0.08);
}
@media (max-width: 980px) {
  .page-gradient {
    background:
      radial-gradient(
        circle at 18% 6%,
        rgba(255, 212, 0, 0.25),
        transparent 36%
      ),
      linear-gradient(180deg, #fff4be 0%, #fff7d4 210px, var(--cream) 520px);
  }
}

/* v22: обновлённые клиенты — единый формат логотипов */
.client-logo {
  min-width: 170px !important;
  width: 170px !important;
  height: 78px !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
}
.client-logo img {
  display: block;
  max-width: 136px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}
.client-logo--text span {
  display: block;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: center;
  color: #11110d;
}
.client-logo--image {
  background: rgba(255, 252, 238, 0.88) !important;
}
.client-logo:hover img {
  transform: scale(1.03);
  transition: transform 0.22s ease;
}
.clients-track {
  animation-duration: 82s !important;
}
@media (max-width: 560px) {
  .client-logo {
    min-width: 150px !important;
    width: 150px !important;
    height: 70px !important;
    padding: 9px 12px !important;
  }
  .client-logo img {
    max-width: 122px;
    max-height: 46px;
  }
  .client-logo--text span {
    font-size: 12px;
  }
}

/* v23: клиентские логотипы и кликабельность */
.clients-marquee {
  touch-action: pan-x;
  cursor: grab;
}
.clients-marquee.is-dragging {
  cursor: grabbing;
}
.client-logo {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-user-drag: none;
  user-select: none;
}
.client-logo img {
  pointer-events: none;
}

/* v26: бесконечный ровный блок клиентов без пустого хвоста */
.clients-marquee {
  overflow: hidden !important;
}
.clients-marquee.is-dragging .clients-track,
.clients-marquee:hover .clients-track {
  animation-play-state: paused !important;
}
.clients-track {
  display: flex !important;
  gap: 10px !important;
  width: max-content !important;
  padding-inline: 0 !important;
  animation: clientsMove var(--clients-duration, 82s) linear infinite !important;
  will-change: transform;
}
.clients-group {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@keyframes clientsMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--clients-loop-width, 50%)));
  }
}

/* v27: верхняя якорная точка для логотипа МАЗУР-РАЗУМ */
.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* v28: видео на главной ниже, без обрезания сверху + телефон в меню */
.hero-video-carousel {
  inset: 118px 0 46px !important;
}
.hero-video-card:nth-child(2n) {
  transform: translateY(18px) !important;
}
.hero-video-card:nth-child(3n) {
  transform: translateY(0) !important;
}

.nav-panel {
  gap: 10px !important;
}
.nav-phone-btn {
  min-height: 54px !important;
  padding: 6px 14px 6px 8px !important;
  gap: 10px !important;
  background: var(--yellow) !important;
  color: #000 !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  box-shadow:
    0 16px 34px rgba(255, 212, 0, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.12) !important;
  text-transform: none !important;
  white-space: nowrap;
}
.nav-phone-btn:hover {
  background: #ffe45c !important;
  box-shadow:
    0 0 34px rgba(255, 212, 0, 0.45),
    0 18px 42px rgba(0, 0, 0, 0.16) !important;
}
.nav-phone-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fffef2;
  color: #000;
  flex: 0 0 38px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.nav-phone-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.nav-phone-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.05;
}
.nav-phone-text strong {
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.03em;
}
.nav-phone-text small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 980px) {
  .nav-panel .nav-phone-btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 58px !important;
    border-radius: 22px !important;
    margin-top: 6px;
  }
  .nav-phone-text strong {
    font-size: 15px;
  }
  .nav-phone-text small {
    font-size: 11px;
  }
  .hero-video-carousel {
    inset: 92px 0 auto !important;
  }
  .hero-video-card:nth-child(2n),
  .hero-video-card:nth-child(3n) {
    transform: none !important;
  }
}

/* v29: мобильная шапка-полоска, offcanvas-меню и аккуратный блок «О нас» */
.nav-mobile-contacts {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 18px 20px 16px !important;
    background: rgba(255, 252, 238, 0.92) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 14px 34px rgba(20, 18, 10, 0.08) !important;
    backdrop-filter: blur(18px) !important;
  }

  .brand {
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #11110d !important;
    font-size: 24px !important;
    line-height: 1 !important;
    letter-spacing: -0.075em !important;
  }

  .menu-btn {
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    overflow: hidden !important;
  }

  .menu-btn span,
  .menu-btn span::before,
  .menu-btn span::after {
    width: 30px !important;
    height: 3px !important;
    background: #1b173c !important;
    border-radius: 999px !important;
  }

  .menu-btn span::before {
    top: -9px !important;
  }

  .menu-btn span::after {
    top: 9px !important;
  }

  .nav-panel {
    position: fixed !important;
    z-index: 120 !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: min(78vw, 440px) !important;
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 92px 22px 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #050505 !important;
    color: #fff !important;
    box-shadow: 34px 0 90px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: none !important;
    transform: translateX(-105%) !important;
    transition: transform 0.28s ease !important;
    pointer-events: auto !important;
    overflow: auto !important;
  }

  .nav-panel::before {
    content: "МАЗУР-РАЗУМ";
    position: absolute;
    top: 34px;
    left: 22px;
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.075em;
    color: var(--yellow);
  }

  .nav-panel::after {
    content: "×";
    position: absolute;
    top: 24px;
    right: 22px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 34px;
    line-height: 1;
    font-weight: 400;
    pointer-events: none;
  }

  .nav-panel.is-open {
    transform: translateX(0) !important;
  }

  .nav-panel a,
  .nav-panel .nav-contact-btn {
    min-height: 66px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    text-transform: none !important;
    letter-spacing: -0.035em !important;
  }

  .nav-panel a:hover,
  .nav-panel .nav-contact-btn:hover {
    transform: none !important;
    background: transparent !important;
    color: var(--yellow) !important;
  }

  .nav-panel .nav-phone-btn {
    display: flex !important;
    min-height: auto !important;
    margin: 26px 0 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  .nav-panel .nav-phone-icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    background: #4d58e8 !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  .nav-panel .nav-phone-text strong {
    font-size: 20px !important;
    color: #fff !important;
    letter-spacing: -0.02em !important;
  }

  .nav-panel .nav-phone-text small {
    display: none !important;
  }

  .nav-mobile-contacts {
    display: grid !important;
    gap: 18px !important;
    margin-top: 20px !important;
  }

  .nav-mobile-contacts a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 44px !important;
    border: 0 !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
  }

  .nav-mobile-contact-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #4d58e8;
    color: #fff;
    font-size: 20px;
    line-height: 1;
  }

  body.menu-open::after {
    content: "";
    position: fixed;
    z-index: 100;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(1px);
  }

  .hero {
    padding-top: 360px !important;
  }

  .about-section {
    overflow: hidden !important;
    padding-top: 58px !important;
  }

  .about-top {
    gap: 20px !important;
    align-items: start !important;
  }

  .about-photo {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }

  .about-photo img {
    width: 100% !important;
    height: auto !important;
    max-height: 360px !important;
    object-fit: contain !important;
    object-position: center top !important;
    border-radius: 24px !important;
  }

  .about-copy {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .about-copy h2 {
    max-width: 100% !important;
    margin-top: 16px !important;
    margin-bottom: 22px !important;
    font-size: clamp(28px, 8.6vw, 42px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.055em !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .founders-text {
    max-width: 100% !important;
    margin-top: 0 !important;
    gap: 16px !important;
  }

  .founders-text p {
    max-width: 100% !important;
    font-size: 17px !important;
    line-height: 1.52 !important;
    overflow-wrap: break-word !important;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 16px 20px 14px !important;
  }

  .brand {
    font-size: 22px !important;
  }

  .nav-panel {
    width: 74vw !important;
    padding: 88px 22px 26px !important;
  }

  .nav-panel::before {
    top: 32px;
    font-size: 20px;
  }

  .nav-panel a,
  .nav-panel .nav-contact-btn {
    min-height: 58px !important;
    font-size: 20px !important;
  }

  .nav-mobile-contacts a {
    font-size: 18px !important;
  }

  .about-photo img {
    max-height: 330px !important;
  }

  .about-copy h2 {
    font-size: clamp(26px, 8.2vw, 36px) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.05em !important;
  }

  .founders-text p {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
}

/* v30: шапка-полоска, чистое мобильное меню и кликабельные пункты */
.site-header {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  transform: none !important;
  grid-template-columns: 1fr auto !important;
  padding: 14px max(20px, calc((100vw - 1120px) / 2 + 20px)) !important;
  background: rgba(255, 252, 238, 0.92) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 14px 36px rgba(20, 18, 10, 0.08) !important;
  backdrop-filter: blur(18px) !important;
}

.site-header .brand {
  justify-self: start !important;
  background: var(--yellow) !important;
  color: #000 !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  border-radius: 999px !important;
  height: 44px !important;
  padding: 0 22px !important;
  box-shadow:
    0 16px 34px rgba(255, 212, 0, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.08) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.site-header .nav-panel {
  justify-self: end !important;
  width: min(820px, calc(100vw - 280px)) !important;
  border-radius: 999px !important;
  background: rgba(255, 252, 238, 0.86) !important;
}

@media (max-width: 980px) {
  .site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 18px 20px 16px !important;
    min-height: 88px !important;
  }

  .site-header .brand {
    height: 58px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 118px) !important;
    padding: 0 28px !important;
    font-size: 18px !important;
    letter-spacing: -0.055em !important;
    border-radius: 999px !important;
    background: var(--yellow) !important;
    color: #000 !important;
    box-shadow:
      0 14px 30px rgba(255, 212, 0, 0.22),
      0 8px 20px rgba(0, 0, 0, 0.08) !important;
  }

  .site-header .menu-btn {
    width: auto !important;
    min-width: 68px !important;
    height: 58px !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 252, 238, 0.86) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
    color: transparent !important;
    font-size: 0 !important;
    overflow: hidden !important;
    transform: none !important;
  }

  .site-header .menu-btn span,
  .site-header .menu-btn span::before,
  .site-header .menu-btn span::after {
    width: 30px !important;
    height: 3px !important;
    background: #1b173c !important;
    border-radius: 999px !important;
  }

  .site-header .menu-btn span::before {
    top: -9px !important;
  }
  .site-header .menu-btn span::after {
    top: 9px !important;
  }

  .site-header .nav-panel {
    position: fixed !important;
    z-index: 220 !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: min(78vw, 440px) !important;
    min-height: 100svh !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: #050505 !important;
    color: #fff !important;
    box-shadow: 34px 0 90px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform 0.26s ease !important;
    padding: 104px 22px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    pointer-events: auto !important;
    overflow: auto !important;
  }

  .site-header .nav-panel.is-open {
    transform: translate3d(0, 0, 0) !important;
  }

  .site-header .nav-panel::before {
    content: "МАЗУР-РАЗУМ";
    position: absolute;
    top: 28px;
    left: 22px;
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--yellow);
    color: #000;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.055em;
    box-shadow: 0 12px 30px rgba(255, 212, 0, 0.22);
  }

  .site-header .nav-panel::after {
    content: "×";
    position: absolute;
    top: 28px;
    right: 22px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 34px;
    line-height: 1;
    font-weight: 400;
    pointer-events: none;
  }

  .site-header .nav-panel a,
  .site-header .nav-panel .nav-contact-btn {
    display: flex !important;
    align-items: center !important;
    min-height: 64px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    text-transform: none !important;
    letter-spacing: -0.035em !important;
    pointer-events: auto !important;
  }

  .site-header .nav-panel a:hover,
  .site-header .nav-panel .nav-contact-btn:hover {
    color: var(--yellow) !important;
    background: transparent !important;
    transform: none !important;
  }

  .site-header .nav-panel .nav-phone-btn {
    margin: 26px 0 0 !important;
    gap: 14px !important;
    border-bottom: 0 !important;
    min-height: 50px !important;
  }

  .site-header .nav-phone-icon,
  .nav-mobile-contact-icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    background: var(--yellow) !important;
    color: #000 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
  }

  .site-header .nav-phone-icon svg {
    fill: #000 !important;
  }

  .site-header .nav-phone-text strong {
    font-size: 20px !important;
    color: #fff !important;
  }

  .site-header .nav-phone-text small {
    display: none !important;
  }

  .nav-mobile-contacts {
    display: grid !important;
    gap: 18px !important;
    margin-top: 18px !important;
  }

  .nav-mobile-contacts a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 44px !important;
    border: 0 !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
  }

  .nav-mobile-contacts a[href^="tel"] {
    display: none !important;
  }

  body.menu-open::after {
    display: none !important;
    content: none !important;
  }

  .hero {
    padding-top: 390px !important;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 84px !important;
    padding: 16px 20px 14px !important;
  }

  .site-header .brand {
    height: 54px !important;
    padding: 0 24px !important;
    font-size: 17px !important;
  }

  .site-header .menu-btn {
    height: 54px !important;
    min-width: 64px !important;
    padding: 0 16px !important;
  }

  .site-header .nav-panel {
    width: 74vw !important;
    padding: 98px 22px 26px !important;
  }

  .site-header .nav-panel a,
  .site-header .nav-panel .nav-contact-btn {
    min-height: 58px !important;
    font-size: 20px !important;
  }

  .nav-mobile-contacts a {
    font-size: 18px !important;
  }

  .hero {
    padding-top: 360px !important;
  }
}

/* v31: mobile burger without ellipse */
@media (max-width: 980px) {
  .site-header .menu-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
}

@media (max-width: 560px) {
  .site-header .menu-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
  }
}

/* v32: local portfolio videos preview/fullscreen support */
.video-frame video,
.portfolio-side-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
  background: #000;
}
.portfolio-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: 0;
  border-radius: inherit;
}

/* v33: уменьшение заголовков + порядок этапов работы */
.hero h1 {
  font-size: clamp(30px, 4.5vw, 50px) !important;
  line-height: 0.95 !important;
}
.section-head h2,
.about-copy h2,
.lead-copy h2,
.workflow-top h2,
.contacts-content h2,
.policy-document h2 {
  font-size: clamp(26px, 3.05vw, 42px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.06em !important;
}
.team-block h3,
.question-strip h3 {
  font-size: clamp(24px, 2.7vw, 38px) !important;
}
.workflow-section .step-card b {
  font-size: 30px !important;
}
@media (max-width: 980px) {
  .hero h1 {
    font-size: clamp(26px, 8.8vw, 38px) !important;
  }
  .section-head h2,
  .about-copy h2,
  .lead-copy h2,
  .workflow-top h2,
  .contacts-content h2,
  .policy-document h2 {
    font-size: clamp(24px, 7.8vw, 36px) !important;
    line-height: 1 !important;
  }
  .team-block h3,
  .question-strip h3 {
    font-size: clamp(22px, 7vw, 32px) !important;
  }
}
@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(24px, 8.9vw, 35px) !important;
  }
  .section-head h2,
  .about-copy h2,
  .lead-copy h2,
  .workflow-top h2,
  .contacts-content h2,
  .policy-document h2 {
    font-size: clamp(23px, 7.3vw, 32px) !important;
    line-height: 1.02 !important;
  }
}

/* v36: внутренняя страница-кейс по одному ролику */
.case-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #000;
  color: #fff !important;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.case-link:hover {
  transform: translateY(-2px);
  background: var(--yellow);
  color: #000 !important;
}
.portfolio-case-btn {
  width: fit-content;
  margin-top: 16px;
}
.case-teaser-section {
  padding: 78px 0;
  background: linear-gradient(180deg, var(--cream), #fff4be 52%, var(--cream));
}
.case-teaser-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 26px;
  align-items: center;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 252, 238, 0.82);
  box-shadow: var(--shadow);
}
.case-teaser-copy h2,
.case-result-card h2,
.case-section-head h2 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.05vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.case-teaser-copy p,
.case-result-card p,
.case-section-head p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 720px;
}
.case-teaser-video {
  position: relative;
  /* min-height: 360px; */
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
}
.case-teaser-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.question-strip--double p {
  margin: 8px 0 0;
  color: rgba(0, 0, 0, 0.66);
  font-weight: 800;
}
.question-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.question-actions .btn-glass {
  background: #fff;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.16);
}
.case-page {
  padding-top: 102px;
}
.case-hero {
  padding: 64px 0 70px;
}
.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
}
.case-hero-copy .page-title {
  max-width: 720px;
}
.case-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 0;
}
.case-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 252, 238, 0.8);
  color: #000;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.case-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.case-main-video {
  aspect-ratio: 9/14;
  max-height: 650px;
  padding: 10px;
  border-radius: 34px;
  background: rgba(255, 252, 238, 0.74);
  overflow: hidden;
}
.case-main-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  background: #000;
}
.case-section {
  padding: 78px 0;
  background: var(--cream2);
}
.case-section-head {
  display: block;
  margin-bottom: 28px;
}
.case-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.case-stage-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  min-height: 230px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 252, 238, 0.86);
  box-shadow: var(--shadow-soft);
}
.case-stage-card.case-stage-wide {
  grid-column: 1/-1;
}
.case-stage-card b {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-display);
  font-size: 20px;
  box-shadow: 0 12px 22px rgba(255, 212, 0, 0.32);
}
.case-stage-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: -0.055em;
}
.case-stage-card p,
.case-stage-card li {
  color: var(--muted);
  line-height: 1.5;
}
.case-stage-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}
.script-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.script-box span,
.reference-grid span,
.storyboard-grid div {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #000;
  font-weight: 850;
}
.script-box span {
  padding: 12px 14px;
}
.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.reference-grid span {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  background: linear-gradient(135deg, #fff, var(--yellow));
}
.storyboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.storyboard-grid div {
  min-height: 160px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    180deg,
    #111 0%,
    #303030 56%,
    var(--yellow) 56%,
    var(--yellow) 100%
  );
}
.storyboard-grid strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.storyboard-grid span {
  color: rgba(0, 0, 0, 0.7);
  font-size: 13px;
  line-height: 1.35;
}
.case-result-section {
  padding: 70px 0 90px;
  background: var(--cream);
}
.case-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 34px;
  background: var(--yellow);
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: var(--shadow);
}
.case-result-card .eyebrow {
  background: #000;
  color: #fff;
}
.case-result-card p {
  color: rgba(0, 0, 0, 0.72);
  margin-bottom: 0;
}
.case-result-card .btn {
  flex: 0 0 auto;
  background: #000;
  color: #fff;
}
@media (max-width: 980px) {
  .case-teaser-card,
  .case-hero-grid,
  .case-timeline {
    grid-template-columns: 1fr;
  }
  .case-teaser-section,
  .case-section,
  .case-result-section {
    padding: 56px 0;
  }
  .case-main-video {
    aspect-ratio: 16/11;
    max-height: none;
  }
  .question-actions {
    justify-content: flex-start;
  }
  .storyboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-result-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .case-page {
    padding-top: 88px;
  }
  .case-hero {
    padding: 44px 0 48px;
  }
  .case-teaser-card,
  .case-stage-card,
  .case-result-card {
    padding: 18px;
    border-radius: 24px;
  }
  .case-teaser-video {
    min-height: 260px;
  }
  .case-stage-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .reference-grid,
  .storyboard-grid {
    grid-template-columns: 1fr;
  }
  .case-meta span {
    width: 100%;
  }
  .case-hero-actions .btn,
  .question-actions .btn,
  .case-result-card .btn {
    width: 100%;
  }
}

/* v37: аккуратная страница кейса по правкам руководителя */
.case-hero-copy .page-title {
  font-size: clamp(32px, 4.15vw, 54px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.06em !important;
  max-width: 620px !important;
}
.case-hero .page-lead {
  max-width: 620px !important;
  margin-top: 20px !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: rgba(17, 17, 13, 0.72) !important;
}
.case-main-video {
  aspect-ratio: 1/1 !important;
  max-height: 520px !important;
  width: min(520px, 100%) !important;
  justify-self: center !important;
}
.case-main-video video {
  object-fit: cover !important;
}
.case-section-head h2 {
  font-size: clamp(25px, 3vw, 36px) !important;
  line-height: 1.04 !important;
  max-width: 850px !important;
}
.case-section-head p {
  max-width: 760px !important;
  font-size: 14px !important;
}
.case-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
.case-stage-card,
.case-stage-card.case-stage-wide {
  grid-column: auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: start !important;
  gap: 12px !important;
  aspect-ratio: 1/1 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 18px !important;
  overflow: hidden !important;
  border-radius: 26px !important;
  background: rgba(255, 252, 238, 0.9) !important;
}
.case-stage-card b {
  width: 42px !important;
  height: 42px !important;
  font-size: 14px !important;
  box-shadow: none !important;
}
.case-stage-card h3 {
  margin: 0 0 8px !important;
  font-size: 18px !important;
  line-height: 1.08 !important;
}
.case-stage-card p,
.case-stage-card li {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}
.case-stage-card ul {
  margin: 8px 0 0 !important;
  padding-left: 16px !important;
}
.script-box,
.reference-grid,
.storyboard-grid {
  gap: 7px !important;
  margin-top: 10px !important;
}
.script-box span,
.reference-grid span,
.storyboard-grid div {
  min-height: auto !important;
  border-radius: 13px !important;
  border: 1px solid rgba(0, 0, 0, 0.13) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #11110d !important;
  box-shadow: none !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}
.script-box span {
  padding: 8px 9px !important;
}
.reference-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
.reference-grid span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 9px 6px !important;
}
.storyboard-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}
.storyboard-grid div {
  padding: 9px !important;
  justify-content: flex-start !important;
  display: flex !important;
  flex-direction: column !important;
}
.storyboard-grid strong {
  margin: 0 0 4px !important;
  font-family: var(--font-text) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}
.storyboard-grid span {
  color: rgba(17, 17, 13, 0.62) !important;
  font-size: 10.5px !important;
  line-height: 1.22 !important;
}
@media (max-width: 1120px) {
  .case-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 860px) {
  .case-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .case-main-video {
    max-height: none !important;
  }
}
@media (max-width: 560px) {
  .case-hero-copy .page-title {
    font-size: clamp(28px, 10vw, 38px) !important;
  }
  .case-hero .page-lead {
    font-size: 14px !important;
  }
  .case-section-head h2 {
    font-size: clamp(23px, 8vw, 30px) !important;
  }
  .case-timeline {
    grid-template-columns: 1fr !important;
  }
  .case-stage-card,
  .case-stage-card.case-stage-wide {
    aspect-ratio: auto !important;
    min-height: 230px !important;
  }
}

/* v37 compact cards fit */
.case-stage-card,
.case-stage-card.case-stage-wide {
  padding: 14px !important;
  gap: 8px !important;
}
.case-stage-card b {
  width: 36px !important;
  height: 36px !important;
  font-size: 12px !important;
}
.case-stage-card h3 {
  font-size: 15.5px !important;
  margin-bottom: 6px !important;
}
.case-stage-card p,
.case-stage-card li {
  font-size: 11.3px !important;
  line-height: 1.35 !important;
}
.script-box,
.reference-grid,
.storyboard-grid {
  gap: 6px !important;
  margin-top: 8px !important;
}
.script-box span,
.reference-grid span,
.storyboard-grid div {
  font-size: 10.5px !important;
  border-radius: 10px !important;
}
.script-box span {
  padding: 7px 8px !important;
}
.reference-grid span {
  padding: 8px 5px !important;
}
.storyboard-grid div {
  padding: 7px !important;
}
.storyboard-grid strong {
  font-size: 10.2px !important;
  margin-bottom: 3px !important;
}
.storyboard-grid span {
  font-size: 9.8px !important;
}

/* v38: 8 этапов кейса — ровная сетка 4x2 на десктопе */
.case-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
}
.case-stage-card,
.case-stage-card.case-stage-wide {
  grid-column: auto !important;
  aspect-ratio: 1/1 !important;
}
@media (max-width: 1120px) {
  .case-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 860px) {
  .case-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  .case-timeline {
    grid-template-columns: 1fr !important;
  }
  .case-stage-card,
  .case-stage-card.case-stage-wide {
    aspect-ratio: auto !important;
  }
}

/* v40: кейс мероприятия СИМ */
.case-teaser-video video {
  object-position: left center !important;
}
.case-page--sim .case-main-video {
  aspect-ratio: 16/9 !important;
  width: min(100%, 640px) !important;
  max-height: none !important;
  justify-self: center !important;
}
.case-page--sim .case-main-video video {
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}
.case-page--sim .case-hero-copy .page-title {
  font-size: clamp(28px, 3.7vw, 48px) !important;
  max-width: 680px !important;
}
.case-page--sim .case-hero .page-lead {
  max-width: 650px !important;
}
.case-page--sim .case-timeline--sim {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
.case-page--sim .case-stage-card,
.case-page--sim .case-stage-card.case-stage-wide {
  aspect-ratio: auto !important;
  min-height: 310px !important;
  height: auto !important;
  padding: 20px !important;
  gap: 12px !important;
  border-radius: 28px !important;
  background: rgba(255, 252, 238, 0.92) !important;
  overflow: hidden !important;
}
.case-page--sim .case-stage-card b {
  width: 40px !important;
  height: 40px !important;
  font-size: 13px !important;
}
.case-page--sim .case-stage-card h3 {
  font-size: 20px !important;
  margin: 0 0 8px !important;
}
.case-page--sim .case-stage-card p {
  font-size: 13px !important;
  line-height: 1.45 !important;
}
.case-page--sim .case-stage-card--span2 {
  grid-column: span 2 !important;
}
.case-page--sim .case-stage-card--span4 {
  grid-column: 1 / -1 !important;
  min-height: 470px !important;
}
.case-page--sim .case-stage-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(170px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}
.case-page--sim .case-stage-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-page--sim .case-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.case-page--sim .case-chip-row span,
.case-page--sim .script-box--concepts span {
  border-radius: 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #11110d !important;
  box-shadow: none !important;
}
.case-page--sim .case-chip-row span {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.case-page--sim .case-stage-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}
.case-page--sim .case-stage-media img,
.case-page--sim .case-stage-media video {
  width: 100%;
  height: 100%;
  display: block;
}
.case-page--sim .case-stage-media--logo {
  min-height: 180px;
  background: #f6f0ff;
}
.case-page--sim .case-stage-media--logo img {
  object-fit: cover;
}
.case-page--sim .script-box--concepts {
  display: grid !important;
  gap: 10px !important;
  margin-top: 12px !important;
}
.case-page--sim .script-box--concepts span {
  padding: 12px 14px !important;
  font-size: 12px !important;
  line-height: 1.42 !important;
  font-weight: 700 !important;
}
.case-page--sim .script-box--concepts strong {
  font-weight: 900;
}
.case-page--sim .case-stage-media--storyboard {
  margin-top: 14px;
  min-height: 300px;
  background: #12031d;
}
.case-page--sim .case-stage-media--storyboard img {
  object-fit: contain;
  background: #12031d;
}
.case-page--sim .case-stage-media--square {
  margin-top: 12px;
  aspect-ratio: 1/1;
}
.case-page--sim .case-stage-media--square img {
  object-fit: cover;
}
.case-page--sim .case-stage-media--video video {
  object-fit: cover !important;
  object-position: left center !important;
  background: #000;
}
.case-page--sim .case-result-card p {
  max-width: 780px;
}
@media (max-width: 1120px) {
  .case-page--sim .case-timeline--sim {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .case-page--sim .case-stage-card--span2,
  .case-page--sim .case-stage-card--span4 {
    grid-column: span 1 !important;
    min-height: unset !important;
  }
  .case-page--sim .case-stage-split {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 860px) {
  .case-page--sim .case-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .case-page--sim .case-main-video {
    width: 100% !important;
  }
  .case-page--sim .case-timeline--sim {
    grid-template-columns: 1fr !important;
  }
  .case-page--sim .case-stage-card--span2,
  .case-page--sim .case-stage-card--span4 {
    grid-column: auto !important;
  }
}
@media (max-width: 560px) {
  .case-page--sim .case-stage-card {
    padding: 18px !important;
  }
  .case-page--sim .case-hero-copy .page-title {
    font-size: clamp(27px, 9vw, 40px) !important;
  }
  .case-page--sim .case-section-head h2 {
    font-size: clamp(24px, 8vw, 32px) !important;
  }
  .case-page--sim .case-stage-card h3 {
    font-size: 18px !important;
  }
  .case-page--sim .case-stage-card p,
  .case-page--sim .script-box--concepts span {
    font-size: 12px !important;
  }
}

/* v41: правки hero-видео и первой карточки кейса */
.case-page--sim .case-hero-copy .page-title {
  font-size: clamp(26px, 3.1vw, 42px) !important;
  line-height: 1.03 !important;
  max-width: 620px !important;
}

.case-page--sim .case-hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.15fr) !important;
  gap: 46px !important;
}

.case-page--sim .case-main-video {
  width: 100% !important;
  max-width: 760px !important;
  aspect-ratio: 16/9 !important;
  padding: 10px !important;
  border-radius: 34px !important;
  overflow: hidden !important;
  background: rgba(255, 252, 238, 0.9) !important;
}

.case-page--sim .case-main-video video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: left center !important;
  transform: scale(1.42) !important;
  transform-origin: left center !important;
  border-radius: 24px !important;
}

.case-page--sim .case-stage-card--task .case-stage-split {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.95fr) !important;
  gap: 18px !important;
}

.case-page--sim .case-stage-media--logo {
  min-height: 210px !important;
  padding: 10px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.case-page--sim .case-stage-media--logo img {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 200px !important;
  transform: scale(0.94) !important;
}

@media (max-width: 1120px) {
  .case-page--sim .case-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .case-page--sim .case-main-video {
    max-width: 100% !important;
  }
}

@media (max-width: 560px) {
  .case-page--sim .case-hero-copy .page-title {
    font-size: clamp(25px, 8.2vw, 34px) !important;
  }
  .case-page--sim .case-main-video video {
    transform: scale(1.24) !important;
  }
  .case-page--sim .case-stage-card--task .case-stage-split {
    grid-template-columns: 1fr !important;
  }
  .case-page--sim .case-stage-media--logo {
    min-height: 180px !important;
  }
}

/* v42: polish for SIM case page */
.case-page--sim .case-hero-grid {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr) !important;
  gap: 48px !important;
  align-items: center !important;
}
.case-page--sim .case-hero-copy .page-title {
  font-size: clamp(22px, 2.55vw, 34px) !important;
  line-height: 1.02 !important;
  max-width: 540px !important;
}
.case-page--sim .case-hero .page-lead {
  max-width: 560px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}
.case-page--sim .case-main-video {
  width: 100% !important;
  max-width: 900px !important;
  padding: 0 !important;
  border-radius: 32px !important;
  background: transparent !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08) !important;
}
.case-page--sim .case-main-video video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: left center !important;
  transform: none !important;
  background: transparent !important;
  border-radius: 24px !important;
}
.case-page--sim .case-stage-card--task .case-stage-split {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr) !important;
  gap: 20px !important;
}
.case-page--sim .case-stage-media--logo {
  min-height: 220px !important;
  padding: 16px !important;
}
.case-page--sim .case-stage-media--logo img {
  max-height: 190px !important;
  transform: scale(0.88) !important;
}
.case-page--sim .case-stage-card--storyboard {
  min-height: 340px !important;
}
.case-page--sim .case-stage-split--storyboard {
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr) !important;
  gap: 22px !important;
  align-items: start !important;
}
.case-page--sim .case-stage-split--storyboard .case-stage-copy {
  padding-right: 8px !important;
}
.case-page--sim .case-stage-media--storyboard {
  margin-top: 0 !important;
  min-height: 220px !important;
  max-height: 280px !important;
  align-self: start !important;
}
.case-page--sim .case-stage-media--storyboard img {
  object-fit: cover !important;
  object-position: center top !important;
}
.case-page--sim .case-stage-card--generation .case-stage-media--square img {
  object-fit: cover !important;
  object-position: center center !important;
}
.case-page--sim .case-stage-card--audio .case-stage-media--square {
  padding: 10px !important;
  background: #fff !important;
}
.case-page--sim .case-stage-card--audio .case-stage-media--square img {
  object-fit: contain !important;
  object-position: center bottom !important;
  transform: scale(0.94) !important;
}

@media (max-width: 1120px) {
  .case-page--sim .case-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .case-page--sim .case-stage-split--storyboard {
    grid-template-columns: 1fr !important;
  }
  .case-page--sim .case-stage-media--storyboard {
    max-height: none !important;
  }
}

@media (max-width: 560px) {
  .case-page--sim .case-hero-copy .page-title {
    font-size: clamp(20px, 7vw, 30px) !important;
  }
  .case-page--sim .case-main-video {
    border-radius: 24px !important;
  }
  .case-page--sim .case-stage-media--logo {
    min-height: 190px !important;
  }
}

/* v43: final refinements for SIM case and portfolio */
.case-page--sim .case-hero-grid {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr) !important;
  gap: 52px !important;
}
.case-page--sim .case-hero-copy .page-title {
  font-size: clamp(20px, 2.2vw, 30px) !important;
  max-width: 500px !important;
}
.case-page--sim .case-hero .page-lead {
  max-width: 560px !important;
  font-size: 14px !important;
}
.case-page--sim .case-main-video {
  max-width: 980px !important;
  aspect-ratio: 16/9 !important;
  overflow: hidden !important;
}
.case-page--sim .case-main-video video {
  object-fit: cover !important;
  object-position: left center !important;
  transform: scale(1.06) !important;
}
.case-page--sim .case-stage-card--task .case-stage-split {
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 1.04fr) !important;
  align-items: center !important;
}
.case-page--sim .case-stage-media--logo {
  min-height: 190px !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}
.case-page--sim .case-stage-media--logo img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
}
.case-page--sim .case-stage-card--storyboard {
  min-height: 360px !important;
}
.case-page--sim .case-stage-split--storyboard {
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1.28fr) !important;
  gap: 26px !important;
  align-items: center !important;
}
.case-page--sim .case-stage-media--storyboard {
  min-height: 240px !important;
  max-height: 320px !important;
  padding: 10px !important;
  background: #fff !important;
}
.case-page--sim .case-stage-media--storyboard img {
  object-fit: contain !important;
  object-position: center center !important;
}
.case-page--sim .case-stage-card--generation .case-stage-media--square img {
  object-fit: cover !important;
  object-position: center center !important;
  image-rendering: auto !important;
}
.case-page--sim .case-stage-card--audio .case-stage-media--square {
  padding: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}
.case-page--sim .case-stage-card--audio .case-stage-media--square img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 28% !important;
  transform: none !important;
}
.video-frame .portfolio-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1120px) {
  .case-page--sim .case-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .case-page--sim .case-stage-split--storyboard {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 680px) {
  .case-page--sim .case-stage-card--task .case-stage-split {
    grid-template-columns: 1fr !important;
  }
  .case-page--sim .case-main-video video {
    transform: none !important;
  }
}

/* v44: equalized stage cards and improved SIM case visuals */
.case-page--sim .case-stage-card--generation,
.case-page--sim .case-stage-card--audio,
.case-page--sim .case-stage-card--edit,
.case-page--sim .case-stage-card--final {
  min-height: 320px !important;
}
.case-page--sim .case-stage-card--generation .case-stage-media--square,
.case-page--sim .case-stage-card--audio .case-stage-media--square,
.case-page--sim .case-stage-card--edit .case-stage-media--square,
.case-page--sim .case-stage-card--final .case-stage-media--square {
  width: min(100%, 320px) !important;
  aspect-ratio: 1 / 1 !important;
  margin-top: 14px !important;
}
.case-page--sim .case-stage-card--generation .case-stage-media--square img,
.case-page--sim .case-stage-card--edit .case-stage-media--square img,
.case-page--sim .case-stage-card--final .case-stage-media--square video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.case-page--sim .case-stage-card--audio .case-stage-media--square img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 14% !important;
}
.case-page--sim .case-stage-card--storyboard {
  min-height: 330px !important;
}
.case-page--sim .case-stage-split--storyboard {
  grid-template-columns: minmax(0, 0.72fr) minmax(380px, 1.08fr) !important;
  gap: 20px !important;
  align-items: center !important;
}
.case-page--sim .case-stage-media--storyboard {
  min-height: 220px !important;
  max-height: 260px !important;
  padding: 10px !important;
}
.case-page--sim .case-stage-media--storyboard img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.case-page--sim .case-result-card h2 {
  max-width: 760px !important;
}
.case-page--sim .case-result-card p {
  max-width: 760px !important;
}
@media (max-width: 1120px) {
  .case-page--sim .case-stage-card--generation,
  .case-page--sim .case-stage-card--audio,
  .case-page--sim .case-stage-card--edit,
  .case-page--sim .case-stage-card--final,
  .case-page--sim .case-stage-card--storyboard {
    min-height: auto !important;
  }
  .case-page--sim .case-stage-split--storyboard {
    grid-template-columns: 1fr !important;
  }
}

/* v45: SIM case layout update for stages 03-07 */
.case-page--sim .case-stage-card--storyboard {
  min-height: 410px !important;
}
.case-page--sim .case-stage-split--storyboard {
  grid-template-columns: minmax(0, 0.62fr) minmax(430px, 1.18fr) !important;
  gap: 22px !important;
  align-items: center !important;
}
.case-page--sim .case-stage-media--storyboard {
  min-height: 330px !important;
  max-height: 330px !important;
  padding: 8px !important;
}
.case-page--sim .case-stage-media--storyboard img {
  object-fit: contain !important;
  object-position: center center !important;
}
.case-page--sim .case-stage-card--generation,
.case-page--sim .case-stage-card--audio,
.case-page--sim .case-stage-card--edit,
.case-page--sim .case-stage-card--final {
  min-height: 280px !important;
}
.case-page--sim .case-stage-card--generation .case-stage-split,
.case-page--sim .case-stage-card--audio .case-stage-split,
.case-page--sim .case-stage-card--edit .case-stage-split,
.case-page--sim .case-stage-card--final .case-stage-split {
  grid-template-columns: minmax(0, 0.98fr) minmax(220px, 0.92fr) !important;
  gap: 18px !important;
  align-items: center !important;
}
.case-page--sim .case-stage-media--side {
  min-height: 180px !important;
  max-height: 180px !important;
  padding: 0 !important;
  background: #fff !important;
}
.case-page--sim .case-stage-media--side img,
.case-page--sim .case-stage-media--side video {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}
.case-page--sim .case-stage-card--generation .case-stage-media--side img {
  object-position: center 18% !important;
}
.case-page--sim .case-stage-card--audio .case-stage-media--side img {
  object-position: center center !important;
}
.case-page--sim .case-stage-card--edit .case-stage-media--side img {
  object-position: center center !important;
}
.case-page--sim .case-stage-card--final .case-stage-media--side video {
  object-position: left center !important;
}
@media (max-width: 1120px) {
  .case-page--sim .case-stage-card--storyboard {
    min-height: auto !important;
  }
  .case-page--sim .case-stage-split--storyboard,
  .case-page--sim .case-stage-card--generation .case-stage-split,
  .case-page--sim .case-stage-card--audio .case-stage-split,
  .case-page--sim .case-stage-card--edit .case-stage-split,
  .case-page--sim .case-stage-card--final .case-stage-split {
    grid-template-columns: 1fr !important;
  }
  .case-page--sim .case-stage-media--storyboard,
  .case-page--sim .case-stage-media--side {
    max-height: none !important;
    min-height: 220px !important;
  }
}
@media (max-width: 680px) {
  .case-page--sim .case-stage-media--storyboard {
    min-height: 260px !important;
  }
  .case-page--sim .case-stage-media--side {
    min-height: 200px !important;
  }
}

/* v46: restore final video, full vertical storyboard, cleaner audio card, realistic outro */
.case-page--sim .case-stage-card--storyboard {
  min-height: 560px !important;
}
.case-page--sim .case-stage-split--storyboard {
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.88fr) !important;
  gap: 26px !important;
  align-items: center !important;
}
.case-page--sim .case-stage-media--storyboard {
  min-height: 500px !important;
  max-height: 500px !important;
  max-width: 300px !important;
  width: 100% !important;
  margin-left: auto !important;
  padding: 6px !important;
  background: #fff !important;
}
.case-page--sim .case-stage-media--storyboard img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.case-page--sim .case-stage-card--audio .case-stage-media--side {
  padding: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}
.case-page--sim .case-stage-card--audio .case-stage-media--side img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.case-page--sim .case-stage-card--final {
  min-height: 320px !important;
}
.case-page--sim .case-stage-card--final .case-stage-media--square {
  width: min(100%, 320px) !important;
  aspect-ratio: 1/1 !important;
  margin-top: 14px !important;
}
.case-page--sim .case-stage-card--final .case-stage-media--square video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: left center !important;
}
.case-page--sim .case-result-card h2 {
  max-width: 880px !important;
}
.case-page--sim .case-result-card p {
  max-width: 840px !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}
@media (max-width: 1120px) {
  .case-page--sim .case-stage-card--storyboard {
    min-height: auto !important;
  }
  .case-page--sim .case-stage-split--storyboard {
    grid-template-columns: 1fr !important;
  }
  .case-page--sim .case-stage-media--storyboard {
    max-width: 360px !important;
    min-height: 560px !important;
    max-height: 560px !important;
    margin: 0 auto !important;
  }
}
@media (max-width: 680px) {
  .case-page--sim .case-stage-media--storyboard {
    max-width: 100% !important;
    min-height: 440px !important;
    max-height: 440px !important;
  }
}
