* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background: #f5f5f7;
  color: #111;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.wrapper {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 15px;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header-image,
.hero-image {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  object-fit: contain;
}

main {
  padding: 16px 0 24px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

section {
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

section h2 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
  border-left: 4px solid #6cc96c;
  padding-left: 8px;
}

/* Заголовок блоку відгуків по центру, без зеленої лінії */
#reviews h2 {
  text-align: center;
  border-left: none;
  padding-left: 0;
}

/* Заголовок "ЯК ЗАМОВИТИ ?" з такими ж відступами, як ОПИС */
.how-to-order-heading {
  text-align: left;
  border-left: 4px solid #6cc96c;
  padding-left: 8px;
}

.title-green {
  color: #11a70a;
}

section h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0 6px;
}

p {
  margin-bottom: 8px;
  font-size: 15px;
}

ul {
  margin-left: 18px;
  margin-bottom: 8px;
}

ul li {
  margin-bottom: 4px;
  font-size: 14px;
}

/* Список характеристик у блоці features-short — без стандартних кружечків */
#features-short ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

#features-short li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Список переваг у блоці usage з ромбиками */
#usage ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

#usage li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.diamond-bullet {
  color: #2e7d32;
  margin-top: 2px;
  font-size: 14px;
}

/* Список кроків монтажу без крапок */
#mounting ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.tagline {
  font-size: 15px;
  color: #2f3c2f;
  margin-top: 8px;
  margin-bottom: 12px;
}

.highlight-box {
  background: #f1fbf1;
  border: 1px solid #d5efd5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin-top: 10px;
}

.highlight-box b {
  color: #2e7d32;
}

/* Текстовий блок із відступами як у ladder/text-frame */
.text-frame {
  width: 100%;
  max-width: calc(100% - 1cm);
  box-sizing: border-box;
  margin: 20px auto 20px;
}

.text-frame p {
  margin-bottom: 0;
  font-size: 15px;
}

/* Варіант з меншим відступом знизу */
.text-frame--tight {
  margin-bottom: 4px;
}

/* Варіант з меншими відступами зверху і знизу */
.text-frame--compact {
  margin-top: 0px;
  margin-bottom: 0px;
}

/* Зелений ромбик перед підзаголовками в блоці переваг */
#benefits h3::before {
  content: "◆";
  color: #2e7d32;
  margin-right: 6px;
}

/* Кнопка як у скутері */
.btn_wrapper {
  background-color: rgba(195, 6, 6, 0.25);
  padding: 15px;
  border-radius: 999px;
  margin: 15px 0;
  cursor: pointer;
  text-align: center;
  -webkit-animation: pulse 1.5s infinite;
  animation: pulse 1.5s infinite;
}

.btn_wrapper:hover {
  -webkit-animation: none;
  animation: none;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
  }
  70% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
  }
}

@keyframes pulse {
  0% {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
  }
  70% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
  }
}

.btn-order {
  display: inline-block;
  padding: 15px 30px;
  margin: 0;
  background: #ed0707;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid #c30606;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 18px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
  text-transform: uppercase;
}

.btn-order:focus,
.btn-order:active,
.btn-order:focus-visible {
  outline: none;
}

.btn-order:hover {
  background: #c30606;
}

.center-btn {
  text-align: center;
  margin-top: 16px;
}

.center-btn .btn_wrapper {
  margin: 0;
}

/* Кнопка як в Ogurechka */
.order-button-wrap {
  max-width: 480px;
  margin: 20px auto 0;
  padding: 0 10px;
  text-align: center;
}

.order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 0 64px;
  border: none;
  background: linear-gradient(90deg, #ff0000 0%, #bd0000 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.order-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -200px;
  width: 60px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(20px);
  transform: skewX(-25deg) translateZ(0);
  animation-name: order-button-slide;
  animation-duration: 3s;
  animation-delay: 0.05s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

.order-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

@keyframes order-button-slide {
  0% {
    left: -30px;
  }
  100% {
    left: 110%;
  }
}

.order-subtext {
  margin-top: 16px;
  font-size: 14px;
}

/* Таймер + заявка в одному блоці */
.timer-section {
  margin-top: 24px;
  padding: 16px 14px;
  border-radius: 18px;
  background: #ecfdf3;
  border: 2px solid #16a34a;
  text-align: center;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.25);
}

.timer-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
  text-transform: none;
}

.timer-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  margin-top: 6px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 50%, #2e7d32 100%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  min-width: 280px;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3ch;
}

.timer-part {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 40%, #c0c0c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.timer-label {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.timer-separator {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #f5f5f5 0%, #c0c0c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 2px;
  align-self: flex-start;
  margin-top: 2px;
}

.timer-note {
  margin-top: 8px;
  font-size: 13px;
  color: #2f3c2f;
}

/* Фото-приклад у блоці таймера */
.timer-section .timer-photo {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.timer-section .timer-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Карусель відгуків */
.reviews-section {
  text-align: left;
}

.reviews-carousel {
  position: relative;
  margin-top: 16px;
}

.reviews-stats {
  max-width: 480px;
  margin: 8px auto 8px;
  padding: 0 10px;
  text-align: center;
}

.reviews-stats-text {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.reviews-stats-bar {
  width: 100%;
  max-width: 420px;
  height: 8px;
  margin: 0 auto;
  border-radius: 999px;
  background: #e5e7eb; /* сіра частина (2%) */
  overflow: hidden;
}

.reviews-stats-bar-fill {
  width: 98%;
  height: 100%;
  background: linear-gradient(90deg, #11a70a 0%, #6cc96c 100%); /* зелена частина (98%) */
}

.reviews-carousel img {
  width: 100%;
  border-radius: 10px;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 4px;
}

.carousel-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #2e7d32;
  font-weight: 700;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.carousel-btn:active {
  background: rgba(226, 244, 226, 0.95);
}

/* Форма заявки як у скутері (спрощена логіка) */
form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

form .btn_wrapper {
  margin: 15px 0 0;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

label {
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.form-field {
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.branch-block {
  margin-top: 4px;
}

.branch-block input.form-input {
  margin-bottom: 6px;
}

.city-suggestions {
  position: relative;
}

.city-suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.city-suggestion-item {
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
}

.city-suggestion-item:hover {
  background: #f1fbf1;
}

.np-widget-btn {
  margin-top: 6px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #4caf50;
  background: #f1fbf1;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.np-widget-btn:hover {
  background: #e0f4e0;
}

.np-widget-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.np-widget-frame {
  width: min(420px, 100%);
  height: 520px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  background: #fff;
}

/* Вибір способу доставки */
.delivery-options {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.delivery-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 14px;
  background-color: #fff;
  color: #111;
  transition: background-color 0.2s, border-color 0.2s;
}

.delivery-option-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #777;
  box-sizing: border-box;
}

.delivery-option.active {
  border-color: #4caf50;
  background-color: #f1fbf1;
  color: #2e7d32;
}

.delivery-option.active .delivery-option-circle {
  border-color: #4caf50;
  background-color: #4caf50;
}

.delivery-options.disabled {
  opacity: 0.5;
  pointer-events: auto;
}

/* Фіксований верхній якір з банером, який з'являється після скролу */
.top-anchor-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
}

.top-anchor-bar-inner {
  max-width: 480px;
  margin: 0 auto;
}

.top-anchor-bar img {
  width: 100%;
  display: block;
}

.top-anchor-bar--visible {
  display: block;
}

footer {
  padding: 16px 8px 8px;
  font-size: 12px;
  color: #777;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

@media (max-width: 600px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  .wrapper {
    padding: 10px;
    width: 100%;
    max-width: 480px;
  }

  .header-image,
  .hero-image {
    max-width: 100%;
  }

  h2 {
    font-size: 20px;
    word-wrap: break-word;
  }

  p,
  li {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .order-button,
  .btn-order {
    white-space: nowrap;
  }

  .order-button {
    padding: 0 32px;
    font-size: 20px;
  }

  .btn-order {
    font-size: 16px;
    width: 100%;
    max-width: 100%;
  }
}
