/* ==================================================
   ОЧИЩЕНА ТА ВПОРЯДКОВАНА ВЕРСІЯ STYLES.CSS

   Що зроблено:
   - відформатовано структуру файлу;
   - уніфіковано коментарі українською;
   - логіку стилів не змінено навмисно, щоб не ламати верстку.

   Примітка:
   у файлі все ще можуть лишатися повтори правил, якщо вони
   були потрібні для перевизначення стилів нижче по коду.
================================================== */

/* Скидання базових стилів */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Базові стилі сторінки */
body {
  font-family: Arial, sans-serif;
  background-color: #f3f3f3;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 220px 220px;
  color: #000;
}

/* =========================
   Шапка сайту / меню
========================= */

.header {
  padding-top: 20px;
  margin-bottom: 60px;
}

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

  max-width: 1180px;
  margin: 0 auto;

  background: #fff;
  border: 2px solid #e6e6e6;
  border-radius: 999px;
  padding: 14px 18px;
}

.logo {
  text-decoration: none;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 60px;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 58px;
  margin-left: auto;
  margin-right: auto;
}

.nav-list a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.nav-list a:hover {
  opacity: 0.65;
}

.nav-btn {
  text-decoration: none;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 18px 36px;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* =========================
   Перший екран
========================= */

.hero {
  padding-bottom: 20px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.hero-content {
  padding-top: 40px;
  max-width: 700px;
  margin-left: 40px;
}

@media (max-width: 1200px) {
  .hero-content {
    margin-left: 40px;
  }
}

@media (max-width: 900px) {
  .hero-content {
    margin-left: 0;
  }
}

.hero-title {
  font-size: 70px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.hero-btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 18px 30px;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn-dark {
  background: #000;
  color: #fff;
}

.hero-btn-light {
  color: #000;
  border: 4px solid #000;
  background: transparent;
}

/* =========================
   Партнери
========================= */

.partners {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.partner-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: #f8f8f8;
  border: 2px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.partner-info h3 {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 800;
}

.partner-info p {
  font-size: 15px;
  font-weight: 700;
}

/* =========================
   Перший екран VISUAL
========================= */

.hero-visual {
  position: relative;
  width: 360px;
  min-width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-shadow {
  position: absolute;
  width: 230px;
  height: 230px;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(34px);
  border-radius: 50%;
  bottom: 26px;
  z-index: 0;
}

.cube {
  position: relative;
  width: 250px;
  height: 250px;
  transform: rotate(-8deg);
  z-index: 1;
}

.cube-face {
  position: absolute;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
  border: 2px solid rgba(219, 229, 239, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.cube-face-top {
  width: 200px;
  height: 108px;
  top: 0;
  left: 46px;
  transform: skewX(-35deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
}

.cube-face-front {
  width: 182px;
  height: 205px;
  left: 12px;
  top: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px 14px;
}

.cube-face-side {
  width: 155px;
  height: 205px;
  right: 0;
  top: 64px;
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart {
  font-size: 62px;
  text-align: center;
  margin-top: 8px;
}

.cube-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #dce8f2;
  border-radius: 16px;
  padding: 14px 12px;
}

.cube-bottom strong {
  font-size: 21px;
}

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 21px;
  font-weight: 700;
  color: #234;
}

.cube-profit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.cube-profit small {
  font-size: 16px;
  font-weight: 800;
  color: #34c59a;
}

.cube-profit strong {
  font-size: 21px;
  font-weight: 900;
  color: #20364f;
}

/* =========================
   Адаптація для планшетів
========================= */

@media (max-width: 1200px) {
  .nav {
    max-width: 100%;
  }

  .nav-list {
    gap: 34px;
  }

  .hero-container {
    grid-template-columns: 1fr 320px;
    gap: 40px;
  }

  .hero-title {
    font-size: 60px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-visual {
    width: 320px;
    min-width: 320px;
    height: 320px;
  }

  .cube {
    transform: scale(0.88) rotate(-8deg);
  }
}
.partner-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.hero-content {
  max-width: 700px;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-phone {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

@media (max-width: 1200px) {
  .nav {
    max-width: 100%;
  }

  .nav-list {
    gap: 34px;
  }

  .hero-container {
    grid-template-columns: 1fr 320px;
    gap: 40px;
  }

  .hero-title {
    font-size: 60px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-visual {
    width: auto;
    min-width: 0;
    height: auto;
  }

  .hero-phone {
    max-width: 320px;
  }
}

/* Скидання базових стилів */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   Анімації
========================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatPhone {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

@keyframes gridMove {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      220px 0,
      0 220px;
  }
}

/* Базові стилі сторінки */

/* Контейнер */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* =========================
   Шапка сайту / меню
========================= */

.header {
  margin-bottom: 60px;
}

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

  max-width: 1180px;
  margin: 0 auto;

  background: #fff;
  border: 2px solid #e6e6e6;
  border-radius: 999px;
  padding: 14px 18px;

  animation: fadeUp 0.8s ease both;
}

.logo {
  text-decoration: none;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 60px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.logo:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 58px;
  margin-left: auto;
  margin-right: auto;
}

.nav-list a {
  position: relative;
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.nav-list a:hover {
  opacity: 0.8;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #000;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-btn {
  text-decoration: none;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 18px 36px;
  border-radius: 999px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-btn:hover {
  opacity: 0.96;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.nav-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transition: left 0.7s ease;
}

.nav-btn:hover::before {
  left: 140%;
}

/* =========================
   Перший екран
========================= */

.hero {
  padding-bottom: 20px;
}

.hero-title {
  font-size: 70px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 24px;

  opacity: 0;
  animation: fadeRight 0.9s ease 0.15s forwards;
}

.hero-text {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  max-width: 700px;
  margin-bottom: 28px;

  opacity: 0;
  animation: fadeRight 0.9s ease 0.3s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;

  opacity: 0;
  animation: fadeRight 0.9s ease 0.45s forwards;
}

.hero-btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 18px 30px;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transition: left 0.7s ease;
}

.hero-btn:hover::before {
  left: 140%;
}

.hero-btn-dark {
  background: #000;
  color: #fff;
}

.hero-btn-light {
  color: #000;
  border: 4px solid #000;
  background: transparent;
}

.hero-btn-light:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* =========================
   Партнери
========================= */

.partners {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;

  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
}

.partner-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: #f8f8f8;
  border: 2px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.partner-card:hover .partner-icon {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.partner-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.partner-info h3 {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 800;
}

.partner-info p {
  font-size: 15px;
  font-weight: 700;
}

/* =========================
   Перший екран VISUAL
========================= */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;

  opacity: 0;
  animation: fadeLeft 1s ease 0.35s forwards;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  filter: blur(12px);
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-phone-wrap {
  position: relative;
  z-index: 1;
  animation: floatPhone 4.8s ease-in-out infinite;
  transition: transform 0.25s ease;
  will-change: transform;
}

.hero-phone {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

/* =========================
   Поява елементів під час прокрутки
========================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Адаптація для планшетів
========================= */

@media (max-width: 1200px) {
  .nav {
    max-width: 100%;
  }

  .nav-list {
    gap: 34px;
  }

  .hero-container {
    grid-template-columns: 1fr 320px;
    gap: 40px;
  }

  .hero-title {
    font-size: 60px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-visual {
    width: auto;
    min-width: 0;
    height: auto;
  }

  .hero-phone {
    max-width: 320px;
  }
}

/* =========================
   Адаптація для мобільних
========================= */

@media (max-width: 900px) {
  .nav {
    border-radius: 28px;
    padding: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    margin-right: 0;
  }

  .nav-list {
    width: 100%;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 8px 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-content {
    margin-left: 0;
    padding-top: 10px;
    text-align: center;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-text {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .partners {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-phone {
    max-width: 280px;
  }
}

/* =========================
   Режим зі зменшеним рухом
========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.active,
  .hero-title,
  .hero-text,
  .hero-actions,
  .partners,
  .hero-visual {
    opacity: 1 !important;
    transform: none !important;
  }
}

.work-process {
  padding: 60px 0;
  margin-top: 120px; /* отступ от блока сверху */
}

.work-title {
  text-align: center;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 26px;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-item {
  display: grid;
  grid-template-columns: 72px 1fr 1.25fr;
  align-items: center;
  gap: 16px;

  background: #f7f7f7;
  border: 2px solid #e7e7e7;
  border-radius: 22px;
  padding: 12px 14px;
}

.work-step {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  flex-shrink: 0;
}

.work-name {
  font-size: 22px;
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.work-text {
  background: #000;
  color: #fff;
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
}

/* Анімація */
.reveal-item {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}

.work-item.reveal-item:nth-child(1) {
  transition-delay: 0.05s;
}

.work-item.reveal-item:nth-child(2) {
  transition-delay: 0.12s;
}

.work-item.reveal-item:nth-child(3) {
  transition-delay: 0.19s;
}

.work-item.reveal-item:nth-child(4) {
  transition-delay: 0.26s;
}

/* =========================
   Ефекти наведення для блоку процесу
========================= */

.work-item {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.work-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border-color: #dcdcdc;
}

/* Збільшення номера кроку */

.work-step {
  transition: transform 0.35s ease;
}

.work-item:hover .work-step {
  transform: scale(1.08);
}

/* Анімація текстового блока */

.work-text {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.work-item:hover .work-text {
  transform: translateX(6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

/* Назва */

.work-name {
  transition: transform 0.35s ease;
}

.work-item:hover .work-name {
  transform: translateX(4px);
}

/* =========================
   Окрема картка кейсу
========================= */
.case-single-section {
  padding: 70px 0;
  overflow: hidden;
}

.cases-title {
  margin: 0 0 40px;
  text-align: center;
  font-size: 64px;
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}
/* =========================
   Секція кейсів
   ========================= */

.cases-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.cases-scroll::-webkit-scrollbar {
  display: none;
}

.cases-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.case-single-card {
  flex: 0 0 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  padding: 20px;
  border: 2px solid #e6e6e6;
  border-radius: 24px;
  background: #f5f5f5;
  box-sizing: border-box;
}

.case-single-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: 18px;
}

.case-single-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Щоб картки зручно гортались по одній */
.cases-scroll {
  scroll-snap-type: x mandatory;
}

.case-single-card {
  scroll-snap-align: start;
}













.case-single-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.case-single-brand {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.case-single-subtitle {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 10px;
}

.case-single-task {
  width: 100%;
  max-width: 100%;
  background: #000;
  color: #fff;
  border-radius: 16px;
  padding: 8px 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.case-single-task h4 {
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  margin: 0 0 8px;
}

.case-single-task p {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 5px;
}

.case-single-task p:last-child {
  margin-bottom: 0;
}

.case-single-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 10px;
  max-width: 100%;
  padding: 0;
}

.case-single-list li {
  position: relative;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
}

.case-single-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.case-single-result {
  width: 100%;
  max-width: 100%;
  background: #000;
  color: #fff;
  border-radius: 16px;
  padding: 10px;
  margin-top: auto;
  box-sizing: border-box;
}

.case-single-result h4 {
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  margin: 0 0 8px;
}

.case-single-result-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.case-single-result-row:last-child {
  margin-bottom: 0;
}

.case-single-result-row span,
.case-single-result-row strong {
  font-size: 11px;
  line-height: 1.2;
}

.case-single-result-row span {
  font-weight: 700;
}

.case-single-result-row strong {
  font-weight: 900;
  text-align: right;
}

.case-single-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.case-single-image-wrap {
  overflow: hidden;
  border-radius: 16px;
  height: 70%;
  min-height: 0;
}

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

.case-single-btn {
  min-height: 46px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  padding: 0 10px;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    box-shadow 0.3s ease;
}

.case-single-btn:hover {
  transform: translateY(-2px);
  opacity: 0.96;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.cases-bottom {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.cases-main-btn {
  position: relative;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 78px;
  padding: 0 34px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 1;
}

.cases-main-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.cases-main-btn span {
  font-size: 42px;
  line-height: 1;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.cases-main-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.cases-main-btn:hover::before {
  transform: scaleX(1);
}

.cases-main-btn:hover span {
  color: #fff;
  transform: translateX(6px);
}

@media (max-width: 1400px) {
  .cases-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
}

@media (max-width: 991px) {
  .cases-title {
    font-size: 46px;
    margin-bottom: 30px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .case-single-card {
    aspect-ratio: auto;
    grid-template-columns: minmax(0, 1fr) 220px;
    padding: 16px;
  }

  .case-single-image-wrap {
    min-height: 320px;
    height: 100%;
  }

  .cases-main-btn {
    font-size: 22px;
    min-height: 68px;
    padding: 0 28px;
  }

  .cases-main-btn span {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .case-single-section {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  .cases-title {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 24px;
  }

  .cases-grid {
    gap: 16px;
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .case-single-card {
    max-width: 320px;
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 12px;
    aspect-ratio: auto;
  }

  .case-single-right {
    order: -1;
    height: auto;
  }

  .case-single-image-wrap {
    min-height: 220px;
    height: auto;
  }

  .case-single-brand {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .case-single-subtitle {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .case-single-task {
    padding: 10px;
    border-radius: 14px;
  }

  .case-single-task h4,
  .case-single-result h4 {
    font-size: 15px;
  }

  .case-single-task p,
  .case-single-list li,
  .case-single-result-row span,
  .case-single-result-row strong {
    font-size: 11px;
  }

  .case-single-btn {
    min-height: 48px;
    font-size: 12px;
    border-radius: 14px;
  }

  .case-single-result {
    border-radius: 14px;
    padding: 10px;
  }

  .cases-bottom {
    margin-top: 28px;
  }

  .cases-main-btn {
    width: 100%;
    max-width: 320px;
    min-height: 58px;
    font-size: 16px;
    gap: 12px;
    padding: 0 18px;
  }

  .cases-main-btn span {
    font-size: 24px;
  }
}

/* ===== SCROLL Анімації ===== */

.cases-title,
.cases-bottom,
.case-single-card {
  opacity: 0;
  transform: translateY(60px);
}

/* Заголовок */

.cases-title.show {
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Картки */

.case-single-card.show {
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Кнопка */

.cases-bottom.show {
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: 0.6s;
}

/* Каскад появи карток */

.case-single-card:nth-child(1).show {
  animation-delay: 0.15s;
}
.case-single-card:nth-child(2).show {
  animation-delay: 0.3s;
}
.case-single-card:nth-child(3).show {
  animation-delay: 0.45s;
}
.case-single-card:nth-child(4).show {
  animation-delay: 0.6s;
}
.case-single-card:nth-child(5).show {
  animation-delay: 0.75s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Позиціонування бренду
========================= */

.brand-positioning-section {
  padding: 90px 0;
}

.brand-positioning-title {
  text-align: center;
  font-size: 58px;
  font-weight: 900;
  margin-bottom: 42px;
  letter-spacing: -1px;
}

.brand-positioning-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-positioning-item {
  display: grid;
  grid-template-columns: 1.2fr 120px 1fr;
  align-items: center;
  gap: 18px;

  padding: 18px 22px;

  background: #f5f5f5;
  border: 2px solid #e7e7e7;
  border-radius: 26px;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.brand-positioning-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* LEFT */

.brand-positioning-item-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-positioning-item-heading {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.brand-positioning-item-index {
  font-size: 16px;
  font-weight: 800;
  opacity: 0.7;
}

/* ICON */

.brand-positioning-item-icon {
  width: 96px;
  height: 96px;

  border-radius: 20px;

  background: #fff;
  border: 2px solid #e5e5e5;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 38px;

  transition: transform 0.35s ease;
}

.brand-positioning-item:hover .brand-positioning-item-icon {
  transform: rotate(-6deg) scale(1.05);
}

/* TEXT */

.brand-positioning-item-text {
  background: #000;
  color: #fff;

  border-radius: 18px;

  padding: 18px 20px;

  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

.brand-positioning-item-text strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.brand-positioning-item-text p {
  margin: 0;
}

.brand-positioning-item-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* =========================
   Анімація появи блоку позиціонування
========================= */

.reveal-position-item {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal-position-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* задержка каскада */

.reveal-position-item:nth-child(1) {
  transition-delay: 0.3s;
}
.reveal-position-item:nth-child(1) {
  transition-delay: 0.1s;
}
.reveal-position-item:nth-child(2) {
  transition-delay: 0.25s;
}
.reveal-position-item:nth-child(3) {
  transition-delay: 0.4s;
}

/* =========================
   Вітрина послуг
========================= */

.services-showcase-section {
  padding: 90px 0;
}

.services-showcase-title {
  margin: 0 0 34px;
  text-align: center;
  font-size: 58px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.services-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.services-showcase-card {
  position: relative;
  min-height: 340px;
  border-radius: 30px;
  padding: 22px 20px 20px;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.services-showcase-card--dark {
  background: #000;
  color: #fff;
  border: 2px solid #000;
}

.services-showcase-card--light {
  background: #f3f3f3;
  color: #000;
  border: 2px solid #1c1c1c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.services-showcase-card-heading {
  margin: 0;
  font-size: 44px;
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -1px;
  max-width: 95%;
}

.services-showcase-card-description {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  margin: 0;
  max-width: 82%;
  font-size: 17px;
  line-height: 1.05;
  font-weight: 800;
}

.services-showcase-card-cta-heading {
  font-size: 44px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: none;
  max-width: 90%;
}

.services-showcase-card-cta-arrow {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: auto;
}

.services-showcase-card-cta-arrow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  line-height: 1;
  font-weight: 900;
  transition: transform 0.3s ease;
}

.services-showcase-card--light:hover .services-showcase-card-cta-arrow span {
  transform: translate(6px, 4px);
}

/* =========================
   Поява карток послуг
========================= */

.reveal-services-item {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal-services-item.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal-services-item:nth-child(1) {
  transition-delay: 0.08s;
}
.reveal-services-item:nth-child(2) {
  transition-delay: 0.16s;
}
.reveal-services-item:nth-child(3) {
  transition-delay: 0.24s;
}
.reveal-services-item:nth-child(4) {
  transition-delay: 0.32s;
}
.reveal-services-item:nth-child(5) {
  transition-delay: 0.4s;
}
.reveal-services-item:nth-child(6) {
  transition-delay: 0.48s;
}

/* =========================
   Адаптація для планшетів
========================= */

@media (max-width: 1100px) {
  .services-showcase-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }

  .services-showcase-card {
    min-height: 300px;
  }

  .services-showcase-card-heading,
  .services-showcase-card-cta-heading {
    font-size: 38px;
  }

  .services-showcase-card-description {
    font-size: 15px;
    max-width: 86%;
  }
}

/* =========================
   Адаптація для мобільних
========================= */

@media (max-width: 767px) {
  .services-showcase-section {
    padding: 56px 0;
  }

  .services-showcase-title {
    font-size: 34px;
    margin-bottom: 22px;
  }

  .services-showcase-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 340px;
    margin: 0 auto;
  }

  .services-showcase-card {
    min-height: 250px;
    border-radius: 24px;
    padding: 18px 16px 16px;
  }

  .services-showcase-card-heading,
  .services-showcase-card-cta-heading {
    font-size: 28px;
    line-height: 0.98;
    letter-spacing: 0;
    max-width: 100%;
  }

  .services-showcase-card-description {
    left: 16px;
    right: 16px;
    bottom: 18px;
    max-width: 88%;
    font-size: 13px;
    line-height: 1.12;
  }

  .services-showcase-card-cta-arrow span {
    font-size: 54px;
  }
}

@media (hover: none) {
  .services-showcase-card:hover {
    transform: none;
    box-shadow: none;
  }

  .services-showcase-card--light:hover .services-showcase-card-cta-arrow span {
    transform: none;
  }
}

/* =========================
   Блок «Чому ми»
========================= */

.why-us-showcase-section {
  padding: 90px 0;
}

.why-us-showcase-layout {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 44px;
  align-items: start;
}

.why-us-showcase-content {
  max-width: 560px;
  padding-top: 6px;
}

.why-us-showcase-title {
  margin: 0 0 24px;
  font-size: 64px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.why-us-showcase-text {
  margin: 0 0 38px;
  max-width: 520px;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
}

.why-us-showcase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 0 42px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease;
}

.why-us-showcase-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  opacity: 0.96;
}

.why-us-showcase-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.why-us-showcase-card {
  position: relative;
  background: #000;
  color: #fff;
  border-radius: 34px;
  padding: 22px;
  overflow: hidden;
  min-height: 290px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.why-us-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.why-us-showcase-card--large {
  min-height: 310px;
}

.why-us-showcase-card--small {
  min-height: 250px;
  margin-top: 42px;
}

.why-us-showcase-card-icon-box {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.why-us-showcase-card-icon-image {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.why-us-showcase-card-text-box {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.why-us-showcase-card-title {
  margin: 0;
  font-size: 32px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.why-us-showcase-card-description {
  margin: 0;
  max-width: 82%;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
}

.why-us-showcase-card-description--metric {
  max-width: 90%;
}

/* =========================
   Анімація появи блоку «Чому ми»
========================= */

.reveal-why-us-item {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal-why-us-item.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal-why-us-item:nth-child(1) {
  transition-delay: 0.08s;
}
.reveal-why-us-item:nth-child(2) {
  transition-delay: 0.18s;
}
.reveal-why-us-item:nth-child(3) {
  transition-delay: 0.28s;
}
.reveal-why-us-item:nth-child(4) {
  transition-delay: 0.38s;
}

/* =========================
   Адаптація для планшетів
========================= */

@media (max-width: 1200px) {
  .why-us-showcase-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .why-us-showcase-content {
    max-width: 100%;
  }

  .why-us-showcase-text {
    max-width: 760px;
    font-size: 22px;
  }
}

@media (max-width: 991px) {
  .why-us-showcase-title {
    font-size: 50px;
  }

  .why-us-showcase-text {
    font-size: 20px;
  }

  .why-us-showcase-button {
    min-height: 66px;
    font-size: 20px;
    padding: 0 32px;
  }

  .why-us-showcase-cards {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .why-us-showcase-card {
    border-radius: 28px;
  }

  .why-us-showcase-card-description {
    font-size: 20px;
  }
}

/* =========================
   Адаптація для мобільних
========================= */

@media (max-width: 767px) {
  .why-us-showcase-section {
    padding: 56px 0;
  }

  .why-us-showcase-layout {
    gap: 24px;
  }

  .why-us-showcase-title {
    font-size: 34px;
    margin-bottom: 18px;
  }

  .why-us-showcase-text {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.18;
    max-width: 100%;
  }

  .why-us-showcase-button {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    font-size: 15px;
    text-align: center;
  }

  .why-us-showcase-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 340px;
    margin: 0 auto;
  }

  .why-us-showcase-card,
  .why-us-showcase-card--large,
  .why-us-showcase-card--small {
    min-height: 220px;
    margin-top: 0;
    border-radius: 24px;
    padding: 18px;
  }

  .why-us-showcase-card-icon-box {
    top: 14px;
    right: 14px;
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .why-us-showcase-card-icon-image {
    width: 40px;
    height: 40px;
  }

  .why-us-showcase-card-text-box {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .why-us-showcase-card-title {
    font-size: 26px;
  }

  .why-us-showcase-card-description {
    max-width: 88%;
    font-size: 18px;
    line-height: 1.08;
  }
}

@media (hover: none) {
  .why-us-showcase-card:hover,
  .why-us-showcase-button:hover {
    transform: none;
    box-shadow: none;
  }
}

/* =========================
   Заголовок секції відгуків
========================= */

.reviews-title-section {
  padding: 80px 0 24px;
  background: transparent;
}

.reviews-main-title {
  margin: 0;
  text-align: center;
  font-size: 58px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #000;
}

.reviews-main-title-white {
  margin: 0;
  text-align: center;
  padding-bottom: 20px;
  font-size: 22px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #ffffff;
}

/* =========================
   Темна секція відгуків
========================= */

.reviews-dark-section {
  background: #000;
  color: #fff;
  padding: 0;
  margin: 0;
  width: 100%;
}

.reviews-dark-inner {
  background: #000;
  width: 100%;
  padding: 56px 0 80px;
}

.reviews-dark-section .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.reviews-dark-text-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 58px;
}

.reviews-dark-text-card {
  padding: 8px 34px 0;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reviews-dark-text-card:last-child {
  border-right: none;
}

.reviews-dark-text-card-message {
  margin: 0 0 24px;
  color: #fff;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 800;
}

.reviews-dark-text-card-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.reviews-dark-text-card-author-avatar {
  width: 82px;
  height: 82px;
  background: #111;
  overflow: hidden;
  flex-shrink: 0;
}

.reviews-dark-text-card-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reviews-dark-text-card-author-name {
  color: #fff;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
}

.reviews-dark-video-title {
  margin: 0 0 34px;
  text-align: center;
  font-size: 58px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
}

.reviews-dark-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: stretch;
}

.reviews-dark-video-card {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: #e9e9e9;
  aspect-ratio: 0.78 / 1;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.reviews-dark-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.08);
}

.reviews-dark-video-card-poster {
  width: 100%;
  height: 100%;
}

.reviews-dark-video-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reviews-dark-video-card-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.reviews-dark-video-card-play-button span {
  font-size: 42px;
  line-height: 1;
  margin-left: 6px;
}

.reviews-dark-video-card:hover .reviews-dark-video-card-play-button {
  transform: translate(-50%, -50%) scale(1.08);
}

/* =========================
   Анімація появи відгуків
========================= */

.reveal-reviews-item {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal-reviews-item.show {
  opacity: 1;
  transform: translateY(0);
}

.reviews-dark-text-grid .reveal-reviews-item:nth-child(1) {
  transition-delay: 0.08s;
}
.reviews-dark-text-grid .reveal-reviews-item:nth-child(2) {
  transition-delay: 0.16s;
}
.reviews-dark-text-grid .reveal-reviews-item:nth-child(3) {
  transition-delay: 0.24s;
}

.reviews-dark-video-grid .reveal-reviews-item:nth-child(1) {
  transition-delay: 0.08s;
}
.reviews-dark-video-grid .reveal-reviews-item:nth-child(2) {
  transition-delay: 0.16s;
}
.reviews-dark-video-grid .reveal-reviews-item:nth-child(3) {
  transition-delay: 0.24s;
}

/* =========================
   Адаптація для планшетів
========================= */

@media (max-width: 1100px) {
  .reviews-main-title,
  .reviews-dark-video-title {
    font-size: 46px;
  }

  .reviews-dark-text-card {
    padding: 8px 22px 0;
    min-height: 340px;
  }

  .reviews-dark-text-card-message {
    font-size: 17px;
  }

  .reviews-dark-text-card-author-name {
    font-size: 18px;
  }

  .reviews-dark-video-grid {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .reviews-dark-text-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .reviews-dark-text-card {
    min-height: auto;
    padding: 0 0 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .reviews-dark-text-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .reviews-dark-video-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .reviews-dark-video-card {
    aspect-ratio: 0.72 / 1;
  }
}

/* =========================
   Адаптація для мобільних
========================= */

@media (max-width: 767px) {
  .reviews-title-section {
    padding: 56px 0 18px;
  }

  .reviews-main-title,
  .reviews-dark-video-title {
    font-size: 34px;
    margin-bottom: 22px;
  }

  .reviews-dark-inner {
    padding: 34px 0 52px;
  }

  .reviews-dark-text-grid {
    gap: 22px;
    margin-bottom: 40px;
  }

  .reviews-dark-text-card {
    padding: 0 0 20px;
  }

  .reviews-dark-text-card-message {
    font-size: 16px;
    line-height: 1.14;
    margin-bottom: 18px;
  }

  .reviews-dark-text-card-author {
    gap: 12px;
  }

  .reviews-dark-text-card-author-avatar {
    width: 64px;
    height: 64px;
  }

  .reviews-dark-text-card-author-name {
    font-size: 17px;
  }

  .reviews-dark-video-grid {
    gap: 16px;
    max-width: 340px;
  }

  .reviews-dark-video-card {
    aspect-ratio: 0.74 / 1;
  }

  .reviews-dark-video-card-play-button {
    width: 74px;
    height: 74px;
  }

  .reviews-dark-video-card-play-button span {
    font-size: 30px;
    margin-left: 4px;
  }
}

@media (hover: none) {
  .reviews-dark-video-card:hover {
    transform: none;
    box-shadow: none;
  }

  .reviews-dark-video-card:hover .reviews-dark-video-card-play-button {
    transform: translate(-50%, -50%);
  }
}

.reviews-dark-section {
  position: relative;
  background: #000;
  overflow: hidden;
}

.reviews-dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 0;
}

.reviews-dark-inner,
.reviews-dark-section .container,
.reviews-main-title-white {
  position: relative;
  z-index: 1;
}

/* =========================
   Контактна форма
========================= */

.contact-card-section {
  padding: 90px 0;
  background: #000;
}

.contact-card-wrap {
  display: flex;
  justify-content: center;
}

.contact-card-form {
  width: 100%;
  max-width: 520px;
  background: #f3f3f3;
  border: 14px solid #e9e9e9;
  border-radius: 34px;
  padding: 46px 28px 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.contact-card-title {
  margin: 0 0 28px;
  text-align: center;
  font-size: 58px;
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.contact-pill {
  display: block;
  width: 100%;
  margin-bottom: 22px;
}

.contact-pill input,
.contact-pill textarea {
  width: 100%;
  border: 4px solid #000;
  border-radius: 999px;
  background: transparent;
  outline: none;
  box-shadow: none;

  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;

  padding: 0 42px;
}

.contact-pill input {
  min-height: 88px;
}

.contact-pill textarea {
  min-height: 88px;
  resize: none;
  border-radius: 44px;
  padding-top: 22px;
  padding-bottom: 18px;
  overflow: hidden;
}

.contact-pill input::placeholder,
.contact-pill textarea::placeholder {
  color: #000;
  opacity: 1;
}

.contact-pill input:focus,
.contact-pill textarea:focus {
  background: #fff;
}

.contact-card-divider {
  height: 4px;
  width: 100%;
  background: #000;
  margin: 28px 0 18px;
}

.contact-card-btn {
  width: 100%;
  min-height: 92px;
  border: none;
  border-radius: 999px;
  background: #000;
  color: #fff;
  cursor: pointer;

  font-family: Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-card-btn:hover {
  opacity: 0.96;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.contact-card-btn:active {
  transform: translateY(0);
}

/* =========================
   Контактна форма Адаптація для мобільних
========================= */

@media (max-width: 768px) {
  .contact-card-section {
    padding: 56px 0;
  }

  .contact-card-form {
    max-width: 100%;
    border-width: 10px;
    border-radius: 28px;
    padding: 34px 16px 18px;
  }

  .contact-card-title {
    font-size: 34px;
    margin-bottom: 20px;
  }

  .contact-pill {
    margin-bottom: 16px;
  }

  .contact-pill input,
  .contact-pill textarea {
    font-size: 14px;
    border-width: 3px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .contact-pill input {
    min-height: 58px;
  }

  .contact-pill textarea {
    min-height: 82px;
    padding-top: 16px;
    padding-bottom: 12px;
    border-radius: 28px;
  }

  .contact-card-divider {
    height: 3px;
    margin: 20px 0 14px;
  }

  .contact-card-btn {
    min-height: 62px;
    font-size: 24px;
  }
}

.contact-card-form {
  width: 100%;
  max-width: 420px; /* было 520 */
  background: #f3f3f3;
  border: 10px solid #e9e9e9; /* было 14 */
  border-radius: 28px;
  padding: 34px 22px 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.contact-card-title {
  margin: 0 0 20px;
  font-size: 42px; /* было 58 */
}

.contact-pill input,
.contact-pill textarea {
  font-size: 16px; /* было 20 */
  padding: 0 28px;
  border-width: 3px;
}

.contact-pill input {
  min-height: 64px; /* было 88 */
}

.contact-pill textarea {
  min-height: 72px;
  padding-top: 16px;
  padding-bottom: 12px;
}

.contact-card-divider {
  height: 3px;
  margin: 20px 0 14px;
}

.contact-card-btn {
  min-height: 64px; /* было 92 */
  font-size: 24px; /* было 38 */
}

/* =========================
   Анімація появи контактної форми
========================= */

.reveal-contact-section {
  opacity: 0;
  transform: translateY(80px) scale(0.96);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-contact-section.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-contact-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================
   Слайдер креативів MKB
========================= */

.mkb-creatives-showcase {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.mkb-creatives-showcase__heading {
  text-align: center;
  font-size: 58px;
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 40px;
}

/* Плавна поява блоку */

.mkb-creatives-showcase--reveal {
  opacity: 0;
  transform: translateY(80px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.mkb-creatives-showcase--reveal.mkb-creatives-showcase--is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mkb-creatives-showcase--reveal .mkb-creatives-showcase__heading {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease 0.12s,
    transform 0.8s ease 0.12s;
}

.mkb-creatives-showcase--reveal .mkb-creatives-showcase__viewport {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition:
    opacity 1s ease 0.22s,
    transform 1s ease 0.22s;
}

.mkb-creatives-showcase--reveal.mkb-creatives-showcase--is-visible
  .mkb-creatives-showcase__heading,
.mkb-creatives-showcase--reveal.mkb-creatives-showcase--is-visible
  .mkb-creatives-showcase__viewport {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Область стрічки */

.mkb-creatives-showcase__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Плавні краї */
.mkb-creatives-showcase__viewport::before,
.mkb-creatives-showcase__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.mkb-creatives-showcase__viewport::before {
  left: 0;
  background: linear-gradient(
    to right,
    #f3f3f3 0%,
    rgba(243, 243, 243, 0) 100%
  );
}

.mkb-creatives-showcase__viewport::after {
  right: 0;
  background: linear-gradient(to left, #f3f3f3 0%, rgba(243, 243, 243, 0) 100%);
}

/* Сама рухома стрічка */

.mkb-creatives-showcase__scroller {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  animation: mkbCreativesAutoMarquee 28s linear infinite;
  will-change: transform;
}

.mkb-creatives-showcase__viewport:hover .mkb-creatives-showcase__scroller {
  animation-play-state: paused;
}

.mkb-creatives-showcase__item {
  flex: 0 0 auto;
  width: 240px;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.mkb-creatives-showcase__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mkb-creatives-showcase__item:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.2);
}

@keyframes mkbCreativesAutoMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 9px));
  }
}

/* мобильная версия */

@media (max-width: 768px) {
  .mkb-creatives-showcase {
    padding: 56px 0;
  }

  .mkb-creatives-showcase__heading {
    font-size: 34px;
    margin-bottom: 24px;
  }

  .mkb-creatives-showcase__viewport::before,
  .mkb-creatives-showcase__viewport::after {
    width: 40px;
  }

  .mkb-creatives-showcase__scroller {
    gap: 12px;
    animation-duration: 20s;
  }

  .mkb-creatives-showcase__item {
    width: 160px;
    height: 300px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mkb-creatives-showcase--reveal,
  .mkb-creatives-showcase--reveal .mkb-creatives-showcase__heading,
  .mkb-creatives-showcase--reveal .mkb-creatives-showcase__viewport {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .mkb-creatives-showcase__scroller {
    animation: none !important;
  }
}
