/* Clooly Neon/Material Home Styles */

.hero {
  padding-block: clamp(5rem, 12vw, 9rem);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 100% 0%, rgba(42, 211, 255, 0.08), transparent 40%),
              radial-gradient(circle at 0% 100%, rgba(255, 92, 138, 0.08), transparent 40%);
}

/* Плавный переход в белый цвет внизу секции */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(42, 211, 255, 0.15), transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.2em;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #1a1a1a;
  background: linear-gradient(135deg, #000000 0%, #555555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2.5rem;
  max-width: 90%;
  line-height: 1.6;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero__actions .btn {
  padding: 0.8em 1.8em;
  font-size: 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 0;
}

.hero-metric {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: transparent;
  border: none;
  padding: 0;
  backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
}

.hero-metric__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 92, 138, 0.1);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  margin-bottom: 0.25rem;
}

.hero-metric__icon svg {
  width: 20px;
  height: 20px;
}

.hero-metric__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.hero-metric__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Visual Card with improved 3D effect */
.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
}

.hero__visual-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  /* Убираем толстую рамку, делаем тонкий светящийся контур */
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.15), /* Мягкая тень снизу */
    0 0 0 1px rgba(255, 255, 255, 0.5) inset, /* Внутренний блик */
    0 0 20px rgba(255, 255, 255, 0.2) inset; /* Внутреннее свечение */
  transform: rotate(2deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Полностью прозрачный фон с сильным размытием */
  background: rgba(255, 255, 255, 0.15); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px; /* Минимальный отступ для эффекта рамки */
  border: 1px solid rgba(255, 255, 255, 0.4); /* Тонкий внешний контур */
}

.hero__visual-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero__visual-card img {
  border-radius: 28px;
  width: 100%;
  height: auto;
  display: block;
}

/* Feature Ticker */
.feature-ticker {
  background: rgba(255, 255, 255, 0.5); /* Полупрозрачный фон */
  backdrop-filter: blur(10px);
  padding-block: 1.5rem;
  overflow: hidden;
  margin-top: -3rem; /* Поднимаем вверх, чтобы перекрыть низ Hero */
  margin-bottom: 2rem;
  position: relative;
  z-index: 5; /* Поверх градиента Hero */
  border-top: 1px solid rgba(255, 255, 255, 0.4); /* Очень тонкая светлая граница */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-ticker__track {
  display: flex;
  gap: 3rem;
  animation: ticker 20s linear infinite;
  white-space: nowrap;
}

.feature-ticker__item {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Service Overview - Modern Bento Style */
.service-overview {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: radial-gradient(circle at 0% 0%, rgba(42, 211, 255, 0.03), transparent 40%),
              radial-gradient(circle at 100% 100%, rgba(255, 92, 138, 0.03), transparent 40%);
}

.service-overview__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Акцент на контент */
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

/* Левая часть: Контент */
.service-overview__content {
  background: transparent; /* Убираем фон контейнера */
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.service-overview__content .badge {
  margin-bottom: 1.5rem;
}

.service-overview__content h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-main) 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-overview__lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-weight: 500;
}

.service-overview__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Сетка преимуществ */
.service-overview__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem; /* Добавлен отступ снизу */
  padding: 0;
}

.service-list__item {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-list__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.service-list__item::before {
  content: attr(data-index);
  position: absolute;
  top: -1rem;
  right: -1rem;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0,0,0,0.02);
  z-index: 0;
  pointer-events: none;
}

.service-list__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  color: var(--text-main);
}

.service-list__item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Правая часть: Панель с виджетами */
.service-overview__panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 2rem;
}

/* Статистика */
.service-panel__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-stat {
  background: #fff;
  border-radius: 20px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-stat__value {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2cb67d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.25rem;
}

.service-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Карточка "Как проходит сервис" */
.service-panel__card {
  background: #fff;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.08);
}

.service-panel__card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.service-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.service-steps li {
  position: relative;
  padding-left: 3rem;
}

.service-steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: rgba(33, 240, 162, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Линия соединения шагов */
.service-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1rem;
  top: 2.2rem;
  bottom: -1.3rem;
  width: 2px;
  background: rgba(0,0,0,0.05);
}

.service-steps strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.service-steps span {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Сертификат */
.service-panel__card--accent {
  background: linear-gradient(135deg, rgba(255, 92, 138, 0.08), rgba(42, 211, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.service-cert__badge {
  display: inline-block;
  background: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-cert p {
  margin: 0.6rem 0;
  color: #1a1a1a; /* Темный цвет для контраста */
  font-weight: 500;
  line-height: 1.5;
  font-size: 1.05rem;
}

.service-cert p:last-of-type {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #4a4a4a; /* Чуть светлее, но читабельно */
}

@media (max-width: 991px) {
  .service-overview__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .service-overview__panel {
    position: static;
  }
  
  .service-panel__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .service-panel__stats {
    grid-template-columns: 1fr;
  }
  
  .service-stat {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    text-align: left;
  }
  
  .service-stat__value {
    margin-bottom: 0;
    font-size: 1.4rem;
  }
}

/* Story / Philosophy Section */
.story {
  padding-block: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.story__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story__media {
  position: relative;
}

.story__media img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow-accent);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.story__media:hover img {
  transform: rotate(0);
}

.story__content {
  background: var(--bg-surface-glass);
  backdrop-filter: var(--blur-glass);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.story__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.story__content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.story__grid {
  display: grid;
  gap: 1.5rem;
}

.story-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid var(--color-primary);
}

.story-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.story-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .story__container {
    grid-template-columns: 1fr;
  }
  .story__media {
    order: -1;
    margin-bottom: 2rem;
  }
}

/* Products / Boxes */
.box-showcase {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.section-headline > div {
  max-width: 600px;
}

.section-headline__title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-headline__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.box-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem; /* Чуть больше отступа внутри */
  border-radius: 32px; /* Более скругленные углы */
  background: #ffffff !important;
  /* Убираем серую рамку, делаем красивую тень */
  border: 1px solid rgba(255, 255, 255, 0.5); 
  box-shadow: 
    0 10px 40px -10px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.02); /* Тончайшая микро-рамка */
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  /* Цветная тень при наведении в тон бренда */
  box-shadow: 
    0 25px 50px -12px rgba(33, 240, 162, 0.15),
    0 0 0 1px rgba(33, 240, 162, 0.1);
}

.product-card__media {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  /* Добавляем внутреннюю тень для глубины */
  box-shadow: inset 0 0 20px rgba(0,0,0,0.03);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.08);
}

.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 0.5rem 0.5rem;
}

.product-card__title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-card__list {
  margin-bottom: 1.5rem;
  color: var(--text-main); /* Был muted, стал main для контраста */
  font-size: 1rem; /* Чуть увеличил с 0.95rem */
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Увеличил отступ между пунктами */
  list-style: none;
  padding: 0;
}

.product-card__list li {
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.6; /* Увеличил интервал */
  font-weight: 400;
  opacity: 0.9;
}

.product-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232cb67d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.product-card__cta {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.75rem;
  margin-top: auto;
}

.product-card__cta .btn {
  justify-content: center;
  font-size: 0.9rem;
  padding-block: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .section-headline {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .box-showcase__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  
  .product-card__cta {
      grid-template-columns: 1fr;
  }
}

/* Reviews */
.reviews {
  background: var(--bg-surface-strong);
  padding-block: 5rem;
  margin-top: 4rem;
}

.review-card {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.review-card__quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.review-card__author {
  font-weight: 600;
  color: var(--color-primary);
}

/* Subscription Section (Fix Visibility) */
.catalog-subscribe {
  padding-block: 5rem;
  position: relative;
}

.catalog-subscribe__container {
  background: var(--bg-surface-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
}

.catalog-subscribe__content {
  max-width: 700px;
}

.catalog-subscribe__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.catalog-subscribe__content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.catalog-subscribe__list {
  margin-bottom: 2rem;
  display: grid;
  gap: 1rem;
}

.catalog-subscribe__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
}

.catalog-subscribe__list li::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232cb67d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* CTA Ribbon */
.cta-ribbon {
  padding-block: 5rem;
}

.cta-ribbon__container {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.cta-ribbon__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-ribbon__content h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-ribbon__content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-ribbon__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta-ribbon__actions .btn--primary {
  color: #fff !important;
  border-color: #fff;
}

.cta-ribbon__actions .btn--primary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border-color: #fff;
}

.cta-ribbon__actions .btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cta-ribbon__actions .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}
/* Hero Chips */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: -1.5rem;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.chip {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  color: var(--color-primary);
}

.chip[data-tone="primary"] {
  background: #ffffff;
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
  .hero {
    padding-block: 4rem;
  }
  
  .hero__container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero__title {
    font-size: 3rem;
  }
  
  .hero__subtitle {
    margin-inline: auto;
  }
  
  .hero__actions {
    justify-content: center;
    margin-bottom: 2.5rem;
  }
  
  .hero__metrics {
    padding-top: 1.5rem;
    max-width: 600px;
    margin-inline: auto;
  }
  
  .hero-metric {
    align-items: center;
  }
  
  .hero__visual-card {
    transform: rotate(0);
    max-width: 500px;
    margin-inline: auto;
  }
  
  .hero__chips {
    margin-top: 1.5rem;
  }
}