/* Ladder — основні стилі лендінгу.
 *
 * Натхнення: структура класів з babushkalet/css/main.css,
 * але без жорстко зашитого дизайну (мінімалістичний, легко
 * змінюваний каркас).
 */

/* Базове скидання та типографіка */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

p {
  margin: 0 0 0.5rem;
  font-size: 15px;
}

/* Контейнер та основний контент,
 * за аналогією до babushkalet .wrapper/main
 */
.wrapper {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
}

main {
  width: 100%;
}

section {
  width: 100%;
  margin-top: 24px;
}

/* Заголовки секцій (мінімальний каркас) */
section h2 {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-title--red {
  border-left: 4px solid #ff0000;
  padding-left: 8px;
  color: #ff0000;
}

.section-title--black {
  color: #000;
}

/* Зображення шапки та основні секційні зображення */
.header-image,
.section-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.section-image--rounded {
  border-radius: 8px;
}

.text-frame {
  width: 100%;
  max-width: calc(100% - 1cm);
  box-sizing: border-box;
  margin: 20px auto 0;
}

.text-frame p {
  margin-bottom: 0;
  font-size: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-48 {
  margin-top: 48px;
}

/* Центруючі обгортки для кнопок/елементів */
.center-btn {
  text-align: center;
  margin-top: 16px;
}

/* Базовий стиль для кнопок замовлення (каркас, без складних ефектів) */
.btn-order {
  display: inline-block;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid currentColor;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.btn-order.btn_first {
  /* Місце для майбутніх ефектів (анімація, градієнти тощо) */
}

/* Форми (як у babushkalet, але спрощено) */
form {
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
}

.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

button {
  border: none;
  background: none;
}

/* Відео/медіа-каркас — на випадок майбутніх секцій */
.video-wrap {
  margin: 20px 0;
  position: relative;
  width: 100%;
}

video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.video-play-btn {
  /* Каркас для кнопки програвання поверх відео */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Rectangle 9 — блок наявності та цін */
.availability-box {
  margin: 24px auto 0;
  padding: 12px 16px;
  background: rgba(250, 0, 0, 0.19);
  border-radius: 24px;
  display: inline-block;
}

.availability-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(90deg, #ff0000 0%, #990000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.availability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.availability-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
}

.availability-list li + li {
  margin-top: 6px;
}

.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  margin-top: 6px;
  flex-shrink: 0;
}

.availability-text strong {
  font-weight: 700;
}

/* Секція форми замовлення (як на макеті) */
.order-section {
  margin-top: 8px;
}

.order-frame {
  border: 4px solid #ff0000;
  border-radius: 12px;
  padding: 24px 16px 32px;
  background: #ffffff;
}

.order-stock {
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  color: #ff0000;
  margin: 0;
  white-space: nowrap;
}

.order-stock-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0 4px;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(180deg, #000000 0%, #666666 100%);
  border-radius: 10px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.order-divider {
  margin: 16px auto 24px;
  width: 80%;
  height: 1px;
  background: #000000;
}

.order-subtitle {
  font-size: 16px;
  font-weight: 200;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 24px;
}

.order-form .form-group {
  margin-bottom: 16px;
}

@keyframes btn-pulse {
  0% {
    transform: scale(0.95);
  }
  70% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.95);
  }
}

.order-btn {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 14px 20px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff0000 0%, #ff6a00 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  box-shadow:
    0 0 30px 8px rgba(255, 140, 0, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  animation: btn-pulse 1.5s ease-in-out infinite;
}

a.order-btn {
  text-decoration: none;
}

.cf-turnstile {
  margin: 0 auto;
}

.order-btn:hover {
  animation: none;
}

@media (min-width: 480px) {
  .order-frame {
    padding: 28px 24px 36px;
  }

  .order-stock {
    font-size: 18px;
  }

  .order-subtitle {
    font-size: 18px;
  }

  .order-btn {
    font-size: 20px;
  }
}

/* Футер */
footer {
  padding: 16px 8px 8px;
  font-size: 12px;
  text-align: center;
}

footer a {
  font-size: 12px;
  text-decoration: underline;
  margin: 0 4px;
}

.footer-links {
  margin-top: 4px;
}

.cookie {
  margin-top: 4px;
  font-size: 11px;
}

/* Адаптація під мобільні екрани, як у babushkalet */
@media (max-width: 600px) {
  .wrapper {
    padding: 10px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }
}

/* Клас для гнучкого використання Inter з різною вагою */
.inter-base {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
