* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1;
  padding: 15px;
}

h1,
h2,
h3 {
  font-weight: 600;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

:root {
  --brand-green: #81d100;
  --brand-purple: #94569f;
  --brand-yellow: #fff700;
  --placeholder: #e0e0e0;
}

.btn {
  padding: 12px 24px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  /* font-size: 1.2rem; */
}

.btn-green {
  background-color: var(--brand-green);
  color: #fff;
}

.btn-purple {
  background-color: var(--brand-purple);
  color: #fff;
  font-size: 1rem;
}

.btn-gray {
  background-color: #181818;
  color: #fff;
  font-size: 1rem;
}

.btn-yellow {
  background-color: var(--brand-yellow);
  color: #000;
  font-size: 1rem;
}

.btn-red {
  background-color: #ff4d6d;
  color: #fff;
  font-size: 1rem;
}

/* .btn:hover {
  opacity: 0.85;
} */

.btn-purple:hover {
  background-color: #801294;
}

.btn-green:hover {
  background-color: #6fb203;
}

.btn-red:hover {
  background-color: #e63f5e;
}

.card {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.card-img {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 16px;
}

.card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.95rem;
  color: #555;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid-2 {
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
}

.grid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--placeholder);
  border-radius: 16px;
  padding: 1.5rem;
  color: #fff;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.grid-card h3 {
  font-size: 1.2rem;
  margin-bottom: auto;
  text-align: left;
}

.grid-card p {
  font-size: 0.95rem;
  text-align: left;
  margin-top: auto;
}

/* БАННЕР С КНОПКОЙ ВО ВСЮ ШИРИНУ */

.full-banner {
  background-color: var(--brand-green);
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  margin: 3rem 0;
  text-align: center;
}

.full-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.full-banner p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.container-banner {
  max-width: 800px;
  margin: 0 auto;
}

/* КВАДРАТНЫЙ БАННЕР */

.square-banner {
  display: block;
  background-color: var(--brand-yellow);
  color: #000;
  text-decoration: none;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.square-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.square-banner-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.square-banner-content p {
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  body > main {
    padding: 1rem;
    padding-top: 0px;
    /* или 64px, если .topbar выше */
  }

  .card {
    padding: 16px;
  }

  .card-title {
    font-size: 1rem;
  }

  .full-banner h2 {
    font-size: 1.4rem;
  }

  .square-banner {
    padding: 1.5rem;
  }
}

/* ВОПРОС-ОТВЕТ */

.faq-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
}

/* .faq-section h2,
    .use-cases-container h2,
    .reviews-slider h2 {
      font-size: 2rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 2rem;
    } */

.faq-item {
  border-top: 1px solid #ddd;
  width: 100%;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  padding: 1rem 0;
  color: #0056d2;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.faq-question::after {
  content: '+';
  font-weight: bold;
  font-size: 1.2rem;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  width: 100%;
}

.faq-item.open .faq-answer {
  display: block;
  max-height: 500px;
  /* достаточно для любого ответа */
  margin-top: 0.5rem;
}

.faq-note {
  margin-top: 2rem;
  font-size: 1rem;
  color: #666;
  text-align: center;
}

.faq-note a {
  color: #0056d2;
  text-decoration: underline;
}

/* ОТЗЫВЫ */

.reviews-slider {
  padding: 3rem 1rem;
  background: #f9f9f9;
  overflow: hidden;
  position: relative;
}

.reviews-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.slider-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s ease;
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

@media (min-width: 769px) {
  .slider-container {
    display: flex;
    justify-content: center;
  }

  .slider-track {
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px; /* регулируй по своему количеству карточек */
    margin: 0 auto;
  }
}

.review-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
}

.review-image img {
  width: 100%;
  height: auto;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.review-content {
  padding: 1rem;
}

.review-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.review-stars {
  color: #ffc107;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.95rem;
  color: #555;
}

.slider-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.slider-btn:hover {
  opacity: 1;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

/* Мобильный вид — скрываем стрелки */
@media (max-width: 768px) {
  .slider-btn {
    display: none;
  }

  .slider-track {
    gap: 1rem;
  }

  .review-card {
    flex: 0 0 80%;
  }
}

.hero-banner {
  background-image: url('https://duogu.ru/img/index/banner010825.jpg');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 800px;
  /* ПК-вариант */
  position: relative;
  margin-top: 56px;
  /* компенсация .topbar */
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* затемнение */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
}

.hero-buttons {
  display: flex;
  gap: 25px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 14px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  flex: 1; /* чтобы кнопки равномерно растягивались */
}

/* Вторая кнопка стилистика */
.btn-white {
  background: #fff;
  color: #222;
  border: 2px solid #28a745; /* зелёный акцент */
  transition: 0.3s;
}
.btn-white:hover {
  background: #28a745;
  color: #fff;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgb(0 0 0);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-banner {
    height: 100svh;
    margin-top: 0;

    /* Fallback для старых браузеров */
    background-image: url('https://duogu.ru/img/index/banner010825-2.jpg');

    /* Chrome/Edge */
    background-image: -webkit-image-set(
      url('https://duogu.ru/img/index/banner010825-2.webp') type('image/webp'),
      url('https://duogu.ru/img/index/banner010825-2.jpg') type('image/jpeg')
    );

    /* Firefox/Safari */
    background-image: image-set(
      url('https://duogu.ru/img/index/banner010825-2.webp') type('image/webp'),
      url('https://duogu.ru/img/index/banner010825-2.jpg') type('image/jpeg')
    );
  }

  .hero-overlay {
    height: 100svh;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

.use-cases {
  padding: 3rem 1rem;
  text-align: center;
}

.use-cases-container {
  max-width: 1100px;
  margin: 0 auto;
}

.use-cases-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.use-cases-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.use-case {
  position: relative;
  padding-top: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  cursor: pointer;
  transition: transform 0.3s ease;
}

/* при наведении запускаем анимацию */
.use-case:hover {
  animation: tilt 0.6s ease-in-out infinite alternate;
}

.chakra-slider .use-case:hover {
  animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes tilt {
  0% {
    transform: rotate(-2deg) scale(1.02);
  }
  100% {
    transform: rotate(2deg) scale(1.02);
  }
}

.use-case span {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.75rem 1rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  width: 100%;
  text-align: left;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* 📱 Адаптация */
@media (max-width: 768px) {
  .use-cases-grid,
  .use-cases-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .use-cases-title {
    font-size: 1.5rem;
  }
}

.advantages-section {
  padding: 1rem 1rem;
}

.advantage-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.icon-block {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

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

.advantage-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.advantage-card p {
  font-size: 0.95rem;
  color: #333;
}

.advantage-card a {
  color: var(--brand-green);
  text-decoration: none;
}

.icon-block {
  width: 48px;
  height: 48px;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="8" fill="%2300E509"/><path d="M35 16L21 30L13 22" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
}

.order-steps {
  padding: 3rem 1rem;
}

.order-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

.order-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-step.reverse {
  flex-direction: row-reverse;
}

.order-text {
  flex: 1;
  min-width: 250px;
  padding-left: 30px;
}

.order-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: right;
}

.order-text .step-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-purple);
  margin-bottom: 0.5rem;
  text-align: right;
  width: auto;
  height: auto;
  border: none;
  background: none;
  box-shadow: none;
}

.order-text p {
  font-size: 0.95rem;
  color: #444;
  text-align: right;
}

.order-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.order-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.order-cta {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .order-step {
    flex-direction: column;
    text-align: center;
  }

  .order-step.reverse {
    flex-direction: column;
  }

  .order-text,
  .order-text .step-number,
  .order-text h3,
  .order-text p {
    text-align: center;
    padding-left: 0px;
  }
}

/* 02-08-25 */

.faq-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
  font-family: sans-serif;
}

.faq-item {
  border-bottom: 1px solid var(--brand-purple);
  padding: 0.5rem 0;
}

.faq-item p {
  margin-top: 10px;
}

.faq-item summary {
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::marker {
  display: none;
}

.faq-icon::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--brand-green);
}

.faq-item[open] .faq-icon::after {
  content: '–';
}

/* секция "процесс" */

.process-section {
  text-align: left;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.process-head {
  text-align: center;
  margin-bottom: 1.6rem;
}

.process-head h2 {
  margin-bottom: 0.6rem;
}

.process-head p {
  color: #555;
  font-size: 1.05rem;
}

.process-idea {
  background: #81d10024;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.process-idea-head {
  text-align: center;
  margin-bottom: 28px;
}

.process-idea-head h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.process-idea-head p {
  color: #555;
}

.process-idea-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: stretch;
}

.process-timeline {
  --timeline-line-width: 2px;
  --timeline-marker-size: 28px;
  --timeline-marker-col: var(--timeline-marker-size);
  --timeline-pad-left: 22px;
  --timeline-pad-top: 22px;
  --timeline-step-pad-x: 12px;
  --timeline-step-pad-y: 8px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: start;
  position: relative;
  height: 100%;
}

.process-timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: start;
  position: relative;
  padding-left: var(--timeline-pad-left);
  padding-top: var(--timeline-pad-top);
}

.process-timeline-steps::before {
  content: '';
  position: absolute;
  left: calc(
    var(--timeline-pad-left) + var(--timeline-step-pad-x) + (var(--timeline-marker-col) / 2) -
      (var(--timeline-line-width) / 2)
  );
  top: calc(var(--timeline-pad-top) + var(--timeline-step-pad-y) + (var(--timeline-marker-size) / 2));
  bottom: calc(var(--timeline-marker-size) / 2);
  width: var(--timeline-line-width);
  background: #d3d3d3;
  z-index: 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: var(--timeline-marker-col) 56px 1fr;
  align-items: start;
  gap: 12px;
  position: relative;
  z-index: 1;
  text-align: left;
  padding: var(--timeline-step-pad-y) var(--timeline-step-pad-x);
  border-radius: 14px;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.step-number {
  width: var(--timeline-marker-size);
  height: var(--timeline-marker-size);
  border-radius: 999px;
  background: #fff;
  border: 2px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #555;
  position: relative;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.timeline-step.is-active .step-number {
  border-color: var(--brand-purple);
  background: var(--brand-purple);
  color: #fff;
  transform: scale(1.1);
}

.timeline-step.is-active {
  background: rgba(148, 86, 159, 0.08);
  /* box-shadow: inset 3px 0 0 var(--brand-purple); */
}

.step-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.step-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(0.96);
}

.timeline-step.is-active .step-thumb {
  border-color: var(--brand-purple);
  box-shadow: 0 6px 14px rgba(148, 86, 159, 0.25);
}

.step-content {
  display: grid;
  gap: 4px;
}

.step-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  transition:
    color 0.25s ease,
    font-weight 0.25s ease;
}

.step-text {
  font-size: 1rem;
  color: #666;
}

.timeline-step.is-active .step-title {
  font-weight: 700;
  color: #222;
}

.process-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  place-items: center; /* центр по горизонтали и вертикали */
  position: relative;
}

.process-gallery::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -8px;
  height: 28px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(10px);
  z-index: 0;
}

.gallery-main {
  /* background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%); */
  border-radius: 22px;
  overflow: hidden;
  /* border: 1px solid rgba(0, 0, 0, 0.04); */
  /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12); */
  position: relative;
  z-index: 1;
  /* padding: 10px; */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  filter: saturate(0.92) contrast(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  will-change: opacity, transform;
}

.gallery-main img.is-animating {
  animation: gallery-zoom 1s ease;
}

@keyframes gallery-zoom {
  0% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

/* .gallery-main::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
} */

.gallery-main-overlay {
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gallery-main:hover .gallery-main-overlay {
  opacity: 1;
}

.gallery-thumbs {
  display: none;
}

.gallery-thumb {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 5px;
  background: #fff;
  cursor: pointer;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  aspect-ratio: 1 / 1;
}

.gallery-thumb:hover {
  transform: translateY(-1px);
}

.gallery-thumb:hover .gallery-thumb-overlay {
  opacity: 1;
}

.gallery-thumb.is-hidden {
  display: none;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  filter: saturate(0.9) contrast(0.97);
}

.gallery-thumb-overlay {
  position: absolute;
  inset: 5px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gallery-thumb.is-active {
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--brand-purple);
  transform: scale(1.02);
}

.gallery-thumb.is-active img {
  filter: saturate(1) contrast(1);
}

.process-gallery-cta {
  display: inline-block;
  margin-top: auto;
  margin-left: var(--timeline-pad-left);
  padding: 14px 26px;
}

.process-gallery-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(148, 86, 159, 0.25);
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 1.2rem 0 1.8rem;
}

.flow-item {
  background-color: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.flow-title {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.flow-item p {
  font-size: 0.9rem;
  color: #555;
}

.process-choose {
  margin-bottom: 1.8rem;
}

.process-choose h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.choose-card {
  background-color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  color: #333;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.choose-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.choose-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.choose-card span {
  display: block;
  padding: 10px 12px;
  font-weight: 600;
}

.process-cta {
  /* background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%); */
  /* border-radius: 18px; */
  padding: 28px;
  /* border: 1px solid rgba(0, 0, 0, 0.06); */
  /* box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); */
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: start;
}

.process-cta-content {
  grid-column: 2;
  grid-row: 1;
}

.process-cta-media {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.process-cta-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.process-cta-subtitle {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 16px;
  max-width: 560px;
}

.process-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.process-metric {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  min-height: 52px;
  font-weight: 700;
}

.process-metric i {
  color: var(--brand-purple);
  font-size: 1.1rem;
}

.process-cta-media {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 32px 24px 12px;
}

.process-laptop {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.process-laptop-frame {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.process-laptop-screen {
  position: absolute;
  width: 68%;
  height: 58%;
  left: 16%;
  top: 16%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  display: block;
}

.process-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.process-stat {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.process-note {
  color: #555;
}

.process-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.process-actions .btn {
  width: auto;
}

.btn-outline {
  background: transparent;
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 1rem;
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.05);
}

.process-clips {
  /* margin-top: 2rem; */
}

.process-clips-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-clips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.process-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.process-item img,
.process-item video {
  width: 100%;
  display: block;
  border-radius: 1rem;
}

.watch-btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand-green);
  color: #000000;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

@media (max-width: 1024px) {
  .process-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-cta {
    grid-template-columns: 1fr;
  }

  .process-cta-content,
  .process-cta-media {
    grid-column: auto;
    grid-row: auto;
  }

  .process-actions {
    justify-content: flex-start;
  }

  .process-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-cta-media {
    padding: 16px 12px 4px;
  }

  .process-idea-body {
    grid-template-columns: 1fr;
  }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .process-cta {
    padding: 20px 16px;
    gap: 16px;
  }

  .process-cta-content {
    text-align: left;
  }

  .process-cta-title {
    font-size: 1.35rem;
  }

  .process-cta-subtitle {
    font-size: 0.95rem;
  }

  .process-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-actions {
    flex-direction: column;
    gap: 10px;
  }

  .process-actions .btn {
    width: 100%;
    text-align: center;
  }

  .process-cta-media {
    padding: 8px 0 0;
    justify-content: center;
  }

  .process-laptop {
    max-width: 320px;
  }
  .process-clips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    --timeline-pad-left: 18px;
    --timeline-pad-top: 18px;
    --timeline-marker-size: 26px;
  }

  .process-timeline-steps {
    /* padding-left: var(--timeline-pad-left); */
    padding-top: var(--timeline-pad-top);
  }

  .process-timeline-steps::before {
    display: block;
  }

  .process-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-main img {
    height: 100%;
  }

  .timeline-step {
    grid-template-columns: var(--timeline-marker-col) 52px 1fr;
    gap: 10px;
  }

  .step-thumb {
    width: 52px;
    height: 52px;
  }

  .process-actions {
    width: 100%;
  }

  .process-actions .btn {
    width: 100%;
    text-align: center;
  }

  .process-laptop {
    max-width: 320px;
  }
}

.spanlnk {
  text-decoration: none;
  color: var(--brand-green);
}

/* анимация кнопки */
@keyframes breath-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.btn-attract {
  animation: breath-pulse 2s ease-in-out infinite;
  transition: transform 0.3s ease;
  text-decoration: none;
}

/* анимация кнопки умеренная*/
@keyframes breath-pulse2 {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.btn-attract2 {
  animation: breath-pulse2 2s ease-in-out infinite;
  transition: transform 0.3s ease;
}

/* === LIGHTBOX POPUP === */
/* базовый лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1rem;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* содержимое */
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;

  /* убрал постоянный transform */
  opacity: 1;
  transform: none;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

/* анимация только при появлении */
.lightbox.active .lightbox-content {
  animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* стрелки */
.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 4rem;
  /* padding: 0.8rem 1.2rem; */
  border-radius: 50%;
  z-index: 100;
  transition: background 0.2s;
}

.lightbox .nav-btn:hover {
  background: rgba(0, 0, 0, 0%);
}

.lightbox .prev {
  left: -3rem;
}
.lightbox .next {
  right: -3rem;
}

/* кнопка закрытия */
.lightbox .close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

/* футер с кнопкой */
.lightbox-footer {
  margin-top: 1rem;
  text-align: center;
}

.lightbox-footer .btn {
  margin-top: 1rem;
}

/* адаптация для телефонов */
@media (max-width: 768px) {
  /* .lightbox .prev { left: 0.1rem; }
  .lightbox .next { right: 0.1rem; } */
  .lightbox .nav-btn {
    font-size: 4.2rem;
    padding: 1rem;
  }
}

.lightbox-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.lightbox-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s;
}

.lightbox-dots .dot.active {
  background: var(--brand-green); /* твой фирменный зелёный */
}

@media (max-width: 768px) {
  .lightbox .nav-btn {
    display: none;
  }
}

/* индикатор свайпа */
.swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  animation: fade-move 2s ease-in-out infinite;
}

@keyframes fade-move {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  25% {
    opacity: 1;
    transform: translateX(6px);
  }
  50% {
    opacity: 1;
    transform: translateX(-6px);
  }
  75% {
    opacity: 1;
    transform: translateX(6px);
  }
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .swipe-hint {
    display: flex;
  }
}

/* теги */
.link-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 15px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03); /* лёгкая подложка */
  border-radius: 16px;
}

.link-tags a {
  font-size: 0.85rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.link-tags a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #81d100; /* твой фирменный зелёный */
}

/* параллакс текста */
/* Скрытое состояние */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* Когда в зоне видимости */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
