.reviews {
  position: relative;
  scroll-margin-top: 120px;
}

.reviews,
.premium-reveal {
  overflow: hidden;
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reviews.reviews-visible,
.premium-reveal.premium-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.premium {
  position: relative;
}

.premium-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.premium-via-pattern {
  position: absolute;
  inset: 4% -5% 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  grid-auto-rows: minmax(110px, 1fr);
  align-items: center;
  justify-items: center;
  gap: 12px 24px;
  color: rgba(44, 111, 199, 0.18);
  font-size: clamp(42px, 7vw, 104px);
  font-weight: 900;
  letter-spacing: 0.04em;
  user-select: none;
}

.premium-via-pattern span:nth-child(odd) { transform: rotate(-8deg); }
.premium-via-pattern span:nth-child(even) { transform: rotate(8deg); }

.premium-via-pattern .vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.reviews-content {
  position: relative;
  z-index: 1;
}

.reviews .container, 
.premium .container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px;
}

.reviews .blue, .premium .blue { color: #2C6FC7 !important; }
.reviews .white, .premium .white { color: #FFFFFF !important; }
.premium .gold { color: #FFD700 !important; }
.reviews .gray { color: #919191 !important; }

#reviews-root {
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 15px;
}

.title-with-icon {
  display: flex;
  align-items: stretch;
  gap: 15px;
  flex: 1;
  width: 100%;
}

.reviews-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
}

.reviews-text-group h2 {
  white-space: nowrap;
  font-size: clamp(10px, 6.5cqw, 24px);
  margin: 0;
}

.btn-review-mobile {
  display: none;
}

.reviews-sub {
  color: #7D9CBA;
  margin-top: 5px;
  white-space: nowrap;
  font-size: clamp(8px, 4.5cqw, 20px);
}

.btn-review {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.btn-review img {
  height: 45px;
  width: auto;
  display: block;
}

.reviews-slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 130px;
}

.reviews-slider {
  display: block;
  width: 100%;
}

.review-page {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  animation: reviewPageIn 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.review-page.active {
  display: grid;
}

.review-card {
  border: 1px solid #2C6FC7;
  border-radius: 12px;
  padding: 10px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 111, 199, 0.2);
}

.review-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
}

.review-top img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.review-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.review-name-row h4 {
  color: #FFFFFF;
  margin: 0;
}

.review-name-row .stars {
  color: #FFD700;
  font-size: 16px;
  line-height: 1;
}

.review-info {
  width: calc(100% - 70px);
}

.review-info p {
  color: #919191;
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: absolute;
  top: 24px;
  right: 14px;
  z-index: 3;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #333;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: #2C6FC7;
}

.reviews-footer-text {
  text-align: center;
  font-size: 20px;
  margin-top: 15px;
  color: #919191;
}

.glow-text {
  animation: glowAnim 2s infinite alternate;
}

@keyframes glowAnim {
  0% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
  100% { text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 10px rgba(255, 255, 255, 0.5); }
}

@keyframes fadeEffect {
  from {opacity: 0.4;} 
  to {opacity: 1;}
}

.badge-img {
  display: inline-block;
  height: 42px;
  vertical-align: middle;
  margin: 0 0px;
}

.store-buttons {
  display: flex;
  gap: 15px;
}

.store-buttons img {
  height: 60px;
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 3000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.7); 
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #1E1E1E;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  border: 1px solid #333333;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: slideUpModal 0.3s;
}

.review-modal-content {
  text-align: left;
}

.full-review-top {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 10px;
}

.full-review-top img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.full-review-text {
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  max-height: 50vh;
  overflow-y: auto;
}

@keyframes slideUpModal {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-modal {
  color: #919191;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #FFFFFF;
}

.modal-content h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.newsletter-form input,
.newsletter-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #333333;
  background: #121212;
  color: white;
  font-family: inherit;
  resize: vertical;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 5px;
  margin-bottom: 20px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 30px;
  color: #444;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #FFD700;
}

.newsletter-form button {
  width: 100%;
  padding: 12px;
  background-color: #2C6FC7;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.premium {
  padding: 60px 0;
  color: #FFFFFF;
  overflow: hidden;
}

.premium-container-optimized {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-desktop {
  display: block;
  width: 100%;
}

.premium-desktop-optimized {
  height: 100%;
  display: flex;
  align-items: center;
}

.premium-mobile {
  display: none;
}

.premium-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  align-items: end;
  gap: 0px;
}

.premium-top-optimized {
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  align-items: center;
  height: auto;
}

.premium-left {
  text-align: left;
}

.premium-left-optimized {
  align-self: center;
  margin-top: 40px;
}

.premium-center {
  display: flex;
  justify-content: center;
  align-items: end;
  position: relative;
  z-index: 2;
}

.premium-center-optimized {
  align-items: center;
}

.premium-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 1;
}

.premium-right-optimized {
  justify-content: flex-end;
  align-items: center;
}

.panel-tilted-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
  transform: rotate(4deg) scale(1.2);
  transform-origin: center;
}

.man-desktop-img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.man-desktop-img-optimized {
  max-height: 100%;
}

.panel-img-optimized {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.premium-sub-panel {
  margin-top: 15px;
  font-size: 24px;
  color: #919191;
  line-height: 1.4;
  text-align: center;
  width: 100%;
}

.premium-title {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 12px;
}

.premium-subtitle-gray {
  font-size: 24px;
  color: #919191;
  line-height: 1.35;
  font-weight: 500;
  margin-bottom: 20px;
}

.premium-desktop .premium-subtitle-gray {
  white-space: nowrap;
}

.premium-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.premium-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 22px;
}

.premium-list li img {
  width: 28px;
  height: 28px;
}

.store-buttons.left-align {
  justify-content: flex-start;
  margin-top: 10px;
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .premium-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .premium-top-optimized {
    grid-template-columns: 1fr;
  }
  .premium-left, .premium-center {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }
  .premium-left-optimized {
    text-align: center;
    margin-top: 0;
  }
  .premium-right {
    display: none;
  }
  .premium-list li {
    justify-content: center;
  }
  .store-buttons.left-align {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .reviews-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 15px;
  }

  .title-with-icon {
    justify-content: center;
    align-items: stretch;
    gap: 12px;
  }
  
  .btn-review-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
  }

  .btn-review-mobile img {
    height: 38px;
    width: auto;
  }

  .btn-review { display: none; }

  .review-page {
    grid-template-columns: 1fr;
  }

  .slider-dots {
    position: absolute;
    top: 24px;
    right: 8px;
    margin-top: 0;
    transform: translateY(-50%);
  }

  .premium-via-pattern {
    inset: 2% -28% 0;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px 14px;
    font-size: clamp(28px, 12vw, 56px);
  }

  .reviews-footer-text {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    color: #919191;
  }

  .store-buttons img {
    height: 50px;
  }

  .premium {
    padding: 30px 0;
  }

  .premium-desktop {
    display: none;
  }

  .premium-mobile {
    display: block;
    text-align: center;
    margin-bottom: 15px;
  }

  .man-phone-img {
    max-width: 220px;
    margin: 0 auto 20px auto;
    display: block;
  }

  .premium-title {
    font-size: clamp(10px, 4.1vw, 16px);
    margin-bottom: 5px;
    white-space: nowrap;
  }

  .premium-subtitle-gray {
    font-size: 14px;
    margin-bottom: 15px;
    white-space: nowrap;
  }
  
  .premium-mobile .badge-img {
    height: 24px;
  }

  .store-buttons.center-align {
    justify-content: center;
    margin-top: 15px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .reviews, .premium-reveal, .review-page {
    transition: none;
    animation: none;
  }
}
