:root {
  --brand-green: #2d7a3e;
  --brand-green-light: #3a9b50;
  --brand-black: #000000;
  --text-dark: #111827;
  --text-gray: #4b5563;
  --bg-gray: #f9fafb;
  --border-light: #e5e7eb;
  --accent-bg: #e8f5e9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #e5e5e5;
  color: var(--text-dark);
  line-height: 1.5;
}

/* === Анимации (добавлено) === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(45, 122, 62, 0.3);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(45, 122, 62, 0);
  }
}

.pulse {
  animation: pulse-soft 2.5s infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* HEADER */
.announcement-bar {
  background: var(--brand-black);
  color: #fff;
  text-align: center;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.header-logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-green);
  letter-spacing: -1px;
}

.header-icons {
  font-size: 20px;
  color: var(--brand-black);
  cursor: pointer;
  transition: 0.2s;
}

.header-icons:hover {
  color: var(--brand-green);
  transform: scale(1.1);
}

/* PRODUCT HERO */
.product-hero {
  padding: 20px;
}

.hero-image {
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.hero-image img {
      width: auto;
    height: 300px;
    display: block;
    margin: auto;
    border-radius: 12px;
}

.reviews-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.reviews-badge .stars {
  color: var(--brand-green);
  font-size: 16px;
}

.product-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 15px;
}

.product-title strong {
  color: var(--brand-black);
}

.price-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.price-from {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
}

.price-new {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-green);
}

.price-old {
  font-size: 16px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
}

.gift-tag {
  background: var(--brand-green);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

/* CIRCULAR BENEFITS */
.circular-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.circular-benefit {
  text-align: center;
}

.circular-benefit-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid var(--brand-green);
  box-shadow: 0 4px 10px rgba(45, 122, 62, 0.2);
  transition: transform 0.3s ease;
}

.circular-benefit:hover .circular-benefit-img {
  transform: scale(1.08);
}

.circular-benefit-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

/* OFFER BOX */
.variant-box {
  border: 2px solid var(--brand-green);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  position: relative;
  background: var(--accent-bg);
}

.variant-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  position: absolute;
  top: -8px;
  left: 15px;
  background: #fff;
  padding: 0 5px;
  color: var(--brand-green);
}

.timer-container {
  text-align: center;
  padding: 10px 0 5px;
}

.timer-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.timer-item {
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  border-radius: 12px;
  padding: 12px 8px;
  min-width: 70px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timer-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-green);
  line-height: 1;
  margin-bottom: 5px;
  font-family: monospace;
}

.timer-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
}

.timer-separator {
  font-size: 28px;
  font-weight: 900;
  color: var(--brand-green);
  margin-top: -15px;
}

@media (max-width: 480px) {
  .timer-item {
    min-width: 55px;
    padding: 8px 5px;
  }

  .timer-number {
    font-size: 24px;
  }

  .timer-label {
    font-size: 8px;
  }

  .timer-separator {
    font-size: 22px;
  }
}

/* BUTTONS */
.btn-main,
.order-button {
  display: block;
  width: 100%;
  background: var(--brand-green);
  color: #fff;
  text-align: center;
  padding: 18px;
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(45, 122, 62, 0.3);
}

.btn-main:active,
.order-button:active {
  transform: translateY(2px);
}

.btn-main:hover,
.order-button:hover {
  transform: translateY(-2px);
  background: var(--brand-green-light);
}

/* SECTIONS */
.section {
  padding: 40px 20px;
  border-top: 1px solid var(--border-light);
}

.bg-gray {
  background: var(--bg-gray);
}

.sec-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 15px;
  text-align: center;
}

.sec-title span {
  color: var(--brand-green);
}

.sec-desc {
  font-size: 14px;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 30px;
}

/* TEXT BLOCK */
.wpf-text {
  margin-top: 20px;
  text-align: left;
}

.wpf-text h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.1;
}

.wpf-text h2 span {
  color: var(--brand-green);
}

.wpf-text p {
  font-size: 14px;
  color: var(--text-gray);
}

/* ICONS GRID */
.four-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 15px;
  text-align: center;
  margin-top: 30px;
}

.fg-icon {
  font-size: 32px;
  color: var(--brand-green);
  margin-bottom: 10px;
}

.fg-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 5px;
}

.fg-desc {
  font-size: 12px;
  color: var(--text-gray);
}

/* HOW TO SECTION */
.how-to-section {
  background: var(--brand-black);
  color: #fff;
  padding: 40px 20px;
}

.how-title {
  display: inline-block;
  background: #fff;
  color: var(--brand-black);
  padding: 5px 15px;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-radius: 4px;
}

.how-desc {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 30px;
}

.how-step {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.how-num {
  width: 32px;
  height: 32px;
  background: var(--brand-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

.how-text {
  font-size: 15px;
  font-weight: 600;
  padding-top: 4px;
}

/* CAROUSEL */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  scroll-snap-type: x mandatory;
  padding-bottom: 15px;
  scrollbar-width: none;
  margin-top: 20px;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.c-item {
  min-width: 80%;
  scroll-snap-align: center;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.c-item img {
  width: 100%;
  object-fit: contain;
  display: block;
}

.c-label {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  padding: 15px;
  font-weight: 800;
  font-size: 16px;
}

/* CLINICAL RESULTS */
.clinical-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.clinical-row:last-child {
  border-bottom: none;
}

.c-ring {
  width: 65px;
  height: 65px;
  border: 4px solid var(--brand-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.c-text h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
}

.c-text p {
  font-size: 13px;
  color: var(--text-gray);
}

/* COMPARE TABLE */
.compare-table {
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
  background: #fff;
}

.ct-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.ct-head div {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  background: #fff;
}

.ct-head div:first-child {
  border: none;
  background: var(--bg-gray);
}

.ct-head div:last-child {
  border-right: none;
}

.ct-head .ct-stepprs {
  background: var(--brand-green);
  color: #fff;
}

.ct-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  font-size: 14px;
  text-align: center;
  align-items: center;
}

.ct-row div {
  padding: 14px 0;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

.ct-row div:first-child {
  border-left: 1px solid var(--border-light);
  background: var(--brand-green);
  color: #fff;
  font-weight: 700;
}

.ct-row div:last-child {
  border-right: none;
}

.ct-row div:not(:first-child) {
  font-size: 18px;
  color: var(--text-gray);
}

@media (max-width: 768px) {
  .ct-head,
  .ct-row {
    font-size: 12px;
  }

  .ct-head div,
  .ct-row div {
    padding: 12px 0;
  }

  .ct-row div:not(:first-child) {
    font-size: 16px;
  }
}

/* CHECKOUT FORM */
.checkout-section {
  padding: 40px 20px;
  background: var(--bg-gray);
  border-top: 2px solid var(--brand-green);
}

.checkout-title {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.checkout-sub {
  font-size: 13px;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  transition: 0.3s;
}

.form-input:focus {
  border-color: var(--brand-green);
  outline: none;
}

.field-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 6px;
  display: none;
}

/* === SIZE SELECTOR IN FORM (добавлено) === */
.size-selector-form {
  margin: 20px 0 25px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-option-form {
  flex: 1;
  min-width: 80px;
  padding: 12px 8px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  background: #fff;
}

.size-option-form:hover {
  border-color: var(--brand-green-light);
  transform: translateY(-2px);
}

.size-option-form.active {
  border-color: var(--brand-green);
  background: var(--accent-bg);
  box-shadow: 0 4px 12px rgba(45, 122, 62, 0.15);
}

.size-option-form .size-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.size-option-form .size-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-green);
  margin-top: 4px;
}

.selected-size-info {
  background: var(--accent-bg);
  border-left: 3px solid var(--brand-green);
  padding: 10px 15px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 15px;
  font-size: 13px;
}

.selected-size-info strong {
  color: var(--brand-green);
}

/* FOOTER */
.footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  background: #fff;
  border-top: 1px solid var(--border-light);
}

.footer a {
  color: #6b7280;
  text-decoration: none;
}

.footer-block {
  margin-bottom: 12px;
}

.footer-divider {
  height: 1px;
  background: var(--border-light);
  margin: 20px 0;
}

.footer-links a {
  display: inline-block;
  margin: 0 8px;
  font-size: 10px;
}

.horizontal-ticker {
  background: var(--brand-black);
  overflow: hidden;
  padding: 12px 0;
  margin-top: 20px;
}

.horizontal-ticker__inner {
  overflow: hidden;
  white-space: nowrap;
}

.horizontal-ticker__container {
  display: inline-flex;
  gap: 40px;
  animation: tickerScroll 20s linear infinite;
}

.horizontal-ticker__item {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-transform: uppercase;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.horizontal-ticker:hover .horizontal-ticker__container {
  animation-play-state: paused;
}

/* DROPDOWN MENU */
.dropdown-menu {
  position: fixed;
  top: 70px;
  left: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 1px solid var(--border-light);
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-nav {
  list-style: none;
  padding: 8px 0;
}

.dropdown-nav-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.dropdown-nav-item:hover {
  background: var(--bg-gray);
  color: var(--brand-green);
  padding-left: 25px;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: none;
}

.menu-overlay.active {
  display: block;
}

/* SALES POPUP */
.sales-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateX(-150%);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity 0.5s ease;
  max-width: 320px;
  border: 1px solid rgba(45, 122, 62, 0.3);
}

.sales-popup.show {
  transform: translateX(0);
  opacity: 1;
}

.sales-popup-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.sales-popup-title {
  color: var(--brand-green);
  font-weight: 800;
}

.sales-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

.order-button-section {
  margin-top: 20px;
  text-align: center;
}

/* Static comparison image */
.static-comparison {
  margin-bottom: 20px;
}

.static-comparison img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
