:root {
      --bg-page: #ffffff;
      --surface-card: #f7f7f9;
      --surface-elevated: #ffffff;
      --border: #e6e6ea;
      --border-strong: #d0d0d7;
      --text-primary: #111827;
      --text-secondary: #4b5563;
      --text-tertiary: #6b7280;
      --footer-bg: #0b0b0c;
      --footer-text: #ffffff;
      --brick-red: #ff3213;
      --sun-yellow: #ffd500;
      --ocean-blue: #0341ae;
      --lime-green: #72cb3b;
      --tangerine: #ff971c;
      --radius-large: 22px;
      --radius-medium: 18px;
      --radius-small: 14px;
      --shadow-card: 0 18px 46px rgba(15, 23, 42, 0.08);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--bg-page);
      color: var(--text-primary);
    }

    h1, h2, h3, h4 {
      margin: 0;
      font-weight: 700;
    }

    p {
      margin: 0;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .top-bar {
      background: linear-gradient(120deg, var(--brick-red), var(--tangerine));
      color: #ffffff;
      font-size: 0.85rem;
      padding: 0.75rem 1rem;
      text-align: center;
    }

    .top-bar__content {
      max-width: 1160px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      align-items: center;
      justify-content: center;
    }
     @media (max-width: 600px) {
      .top-bar {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
      }

      .top-bar__content {
        gap: 0.5rem;
      }
    }


    header {
      background: var(--bg-page);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 30;
    }

    .header-inner {
      max-width: 1160px;
      margin: 0 auto;
      padding: 1rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--brick-red);
    }

    .nav-links {
      display: flex;
      gap: 1.25rem;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .nav-links a:hover {
      color: var(--brick-red);
    }

    main {
      padding: 3rem 0 4rem;
    }

    .container {
      max-width: 1160px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    .checkout-hero {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-bottom: 2.5rem;
    }

    .checkout-hero h1 {
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      line-height: 1.15;
    }

    .checkout-hero p {
      color: var(--text-secondary);
      max-width: 48rem;
      font-size: 1.05rem;
      line-height: 1.6;
    }

    .checkout-layout {
      display: grid;
      gap: 2rem;
    }

    @media (min-width: 1024px) {
      .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
      }
    }

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

    .step {
      display: none;
      background: var(--surface-elevated);
      border: 1px solid var(--border);
      border-radius: var(--radius-large);
      padding: 2rem;
      box-shadow: var(--shadow-card);
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.35s ease, transform 0.35s ease;
      pointer-events: none;
    }

    .step.visible {
      display: block;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .step-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.25rem;
    }

    .step-number {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: rgba(255, 50, 19, 0.1);
      color: var(--brick-red);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1.15rem;
    }

    .step p {
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }

    .option-grid {
      display: grid;
      gap: 1rem;
    }

    /* Мобильная сетка: 2 колонки */
    @media (max-width: 767px) {
      .option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
      }
      .option-card .info, .card-visual .info {
        padding: 0.8rem;
      }
      .info .label {
        font-size: 0.9rem;
      }
      .price-tag {
        font-size: 0.9rem;
      }
    }
    @media (min-width: 768px) {
      .option-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      }
    }

    .option-card,
    .checkbox-card {
      position: relative;
      border-radius: var(--radius-medium);
      border: 1px solid var(--border);
      background: var(--surface-card);
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      cursor: pointer;
      display: flex;
      flex-direction: column;
    }

    .option-card:hover,
    .checkbox-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
      border-color: var(--border-strong);
    }

    .option-card input,
    .checkbox-card input {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
    }

    .option-visual,
    .card-visual {
      display: flex;
      flex-direction: column;
      height: 100%;
      border-radius: inherit;
      border: 2px solid transparent;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .option-card input:checked + .option-visual,
    .checkbox-card input:checked + .card-visual {
      border-color: var(--brick-red);
      box-shadow: 0 18px 44px rgba(255, 50, 19, 0.16);
    }

    /* Квадратные изображения */
    .option-visual img,
    .card-visual img {
      width: 100%;
      aspect-ratio: 1 / 1; 
      object-fit: cover;
    }

    .option-visual .info,
    .card-visual .info {
      padding: 0.6rem 1rem 0.75rem; /* Отступы уменьшены в 2 раза */
      display: flex;
      flex-direction: column;
      gap: 0; /* Убрали лишний отступ между названием и ценой */
      flex-grow: 1;
      justify-content: center; /* Центрируем текст по вертикали */
    }

    .info .label {
      font-weight: 600;
      font-size: 1.05rem;
    }

    .price-tag {
      color: var(--brick-red);
      font-weight: 600;
    }

    .skip-wrapper {
      margin-top: 1.5rem;
    }

    .skip-button {
      border: 1px dashed var(--brick-red);
      border-radius: var(--radius-small);
      padding: 0.85rem 1.4rem;
      color: var(--brick-red);
      font-weight: 600;
      background: rgba(255, 50, 19, 0.08);
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .skip-button:hover {
      background: rgba(255, 50, 19, 0.14);
    }

    .field-group {
      display: grid;
      gap: 0.5rem;
    }

    .promo-code {
      display: grid;
      gap: 0.5rem;
    }

    .promo-code__label {
      font-weight: 600;
      color: var(--text-primary);
    }

    .promo-code__controls {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .promo-code__controls input {
      flex: 1 1 200px;
      min-width: 0;
      padding: 0.95rem 1rem;
      border-radius: var(--radius-small);
      border: 1px solid var(--border);
      font-size: 1rem;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .promo-code__controls input:focus {
      border-color: var(--brick-red);
      box-shadow: 0 0 0 4px rgba(255, 50, 19, 0.15);
      outline: none;
    }

    .promo-code__button {
      padding: 0.95rem 1.6rem;
      border-radius: 999px;
      border: none;
      background: var(--ocean-blue);
      color: #fff;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      white-space: nowrap;
    }

    .promo-code__button:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 24px rgba(3, 65, 174, 0.25);
      background: #02348f;
    }

    .promo-code__button[disabled] {
      opacity: 0.75;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .promo-code__feedback {
      font-size: 0.9rem;
      min-height: 1.2em;
    }

    .promo-code__feedback--success {
      color: var(--lime-green);
      font-weight: 600;
    }

    .promo-code__feedback--error {
      color: var(--brick-red);
      font-weight: 600;
    }

    .inline-discount,
    .summary-discount {
      margin-top: 0.25rem;
      color: var(--lime-green);
      font-weight: 600;
    }

    .inline-discount {
      font-size: 0.95rem;
    }

    .summary-discount {
      font-size: 0.95rem;
    }

    .field-group label {
      font-weight: 600;
      color: var(--text-primary);
    }

    .field-group input,
    .field-group textarea {
      width: 100%;
      padding: 0.95rem 1rem;
      border-radius: var(--radius-small);
      border: 1px solid var(--border);
      font-size: 1rem;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .field-group input:focus,
    .field-group textarea:focus {
      border-color: var(--brick-red);
      box-shadow: 0 0 0 4px rgba(255, 50, 19, 0.15);
      outline: none;
    }

    .field-group small {
      color: var(--text-tertiary);
      font-size: 0.85rem;
    }

    .upload-area {
      border: 2px dashed var(--border);
      border-radius: var(--radius-large);
      padding: 2rem;
      text-align: center;
      background: rgba(255, 255, 255, 0.72);
      transition: border-color 0.2s ease, background 0.2s ease;
    }

    .upload-area.dragover {
      border-color: var(--brick-red);
      background: rgba(255, 50, 19, 0.08);
    }

    .upload-area label {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.9rem 1.6rem;
      border-radius: 999px;
      background: var(--brick-red);
      color: #fff;
      font-weight: 600;
      cursor: pointer;
      margin-top: 1rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .upload-area label:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 24px rgba(255, 50, 19, 0.25);
    }

    .recommendations {
      margin-top: 1.5rem;
      padding: 1.4rem 1.6rem;
      border-radius: var(--radius-medium);
      background: rgba(3, 65, 174, 0.08);
      line-height: 1.6;
      color: var(--text-secondary);
    }

    .recommendations h3 {
      font-size: 1.1rem;
      margin-bottom: 0.75rem;
    }

    .recommendations ul {
      margin: 0;
      padding-left: 1.2rem;
      display: grid;
      gap: 0.4rem;
    }

    .form-footer {
      margin-top: 2rem;
      display: grid;
      gap: 1rem;
    }

    .btn-primary {
      border: none;
      border-radius: 999px;
      font-weight: 700;
      padding: 1.1rem 1.8rem;
      cursor: pointer;
      background: var(--brick-red);
      color: #fff;
      font-size: 1.05rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 32px rgba(255, 50, 19, 0.25);
      background: #e92c10;
    }

    .policy-note {
      color: var(--text-tertiary);
      font-size: 0.9rem;
      line-height: 1.5;
    }

    .policy-note a {
      color: var(--ocean-blue);
      text-decoration: underline;
    }

    .inline-total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 1.2rem;
      border-radius: var(--radius-medium);
      background: var(--surface-card);
      border: 1px solid var(--border);
      font-weight: 600;
      font-size: 1.05rem;
    }

    .inline-total span:last-child {
      color: var(--brick-red);
    }

    .checkout-summary {
      background: var(--surface-elevated);
      border-radius: var(--radius-large);
      border: 1px solid var(--border);
      padding: 1.8rem;
      box-shadow: var(--shadow-card);
      display: grid;
      gap: 1.2rem;
      position: sticky;
      top: 96px;
      height: fit-content;
    }

    .summary-title {
      font-size: 1.25rem;
    }

    /* Progress Bar */
    .progress-container {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.5rem;
    }
    .progress-track {
      flex-grow: 1;
      height: 8px;
      background: #e6e6ea;
      border-radius: 999px;
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--brick-red), var(--tangerine));
      transition: width 0.4s ease;
    }
    .progress-text {
      font-size: 0.85rem;
      color: var(--text-tertiary);
      font-weight: 600;
    }

    .summary-total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(255, 50, 19, 0.08);
      padding: 0.85rem 1rem;
      border-radius: var(--radius-medium);
      font-weight: 700;
      color: var(--brick-red);
      font-size: 1.1rem;
    }
    @media (max-width: 1023px) {
      main {
        padding-bottom: 8rem;
      }

      .checkout-summary {
        position: static;
        top: auto;
        padding-bottom: 4rem;
      }

      .summary-total {
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        margin: 0;
        background: linear-gradient(120deg, var(--brick-red), var(--tangerine));
        color: #fff;
        box-shadow: 0 18px 46px rgba(15, 23, 42, 0.2);
        z-index: 120;
      }

      .summary-total span:first-child {
        font-size: 0.95rem;
        opacity: 0.9;
      }

      .summary-total span:last-child {
        font-size: 1.2rem;
      }
    }
    .summary-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 0.75rem;
      color: var(--text-secondary);
      font-size: 0.95rem;
    }

    .summary-list li {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .summary-note {
      font-size: 0.85rem;
      color: var(--text-tertiary);
      line-height: 1.4;
    }

    .submit-modal {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(12, 15, 28, 0.55);
      backdrop-filter: blur(6px);
      z-index: 120;
      padding: 1.5rem;
    }

    .submit-modal__card {
      background: linear-gradient(140deg, rgba(255, 50, 19, 0.96), rgba(3, 65, 174, 0.92));
      border-radius: var(--radius-large);
      padding: 2.5rem 2rem;
      color: #fff;
      text-align: center;
      max-width: 420px;
      width: 100%;
      box-shadow: 0 24px 60px rgba(10, 16, 34, 0.35);
      position: relative;
      overflow: hidden;
    }

    .submit-modal__card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top right, rgba(255, 213, 0, 0.6), transparent 55%);
      opacity: 0.75;
      pointer-events: none;
    }

    .submit-modal__spinner {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      border: 4px solid rgba(255, 255, 255, 0.35);
      border-top-color: #fff;
      margin: 0 auto 1.4rem;
      animation: spin 1s linear infinite;
    }

    .submit-modal__title {
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
    }

    .submit-modal__text {
      line-height: 1.6;
      font-size: 1rem;
      color: rgba(255, 255, 255, 0.9);
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    body.modal-open {
      overflow: hidden;
    }

    footer {
      background: var(--footer-bg);
      color: var(--footer-text);
      margin-top: 4rem;
    }

    .footer-inner {
      max-width: 1160px;
      margin: 0 auto;
      padding: 3rem 1.5rem 2rem;
      display: grid;
      gap: 2.5rem;
    }

    .footer-top {
      display: grid;
      gap: 2rem;
    }

    @media (min-width: 768px) {
      .footer-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    .footer-brand h3 {
      font-size: 1.5rem;
      margin-bottom: 0.75rem;
    }

    .footer-links {
      display: grid;
      gap: 0.5rem;
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.95rem;
    }

    .footer-links a {
      color: inherit;
    }

    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      padding-top: 1rem;
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.65);
      display: grid;
      gap: 0.5rem;
    }

    @media (max-width: 900px) {
      header {
        position: static;
      }

      .nav-links {
        display: none;
      }

      .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
      }

      .checkout-summary {
        order: 99;
        position: static;
      }

      main {
        padding-bottom: 2rem;
      }
    }

    @media (max-width: 640px) {
      .top-bar__content {
        flex-direction: column;
      }

      .step {
        padding: 1.5rem;
      }
      
      /* Изображения уже квадратные через CSS выше */

      .upload-area {
        padding: 1.5rem;
      }

      .inline-total {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
      }
    }

    /* --- МОБИЛЬНАЯ ОПТИМИЗАЦИЯ ПЕРВОГО ЭКРАНА --- */
@media (max-width: 767px) {
  
  /* 1. Сжимаем верхнюю цветную полоску */
  .top-bar {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }
  
  /* 2. Сжимаем шапку с логотипом */
  .header-inner {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }
  .logo {
    font-size: 1.3rem;
  }

  /* 3. Убираем лишний воздух сверху страницы */
  main {
    padding-top: 1rem; /* Было 3rem */
  }

  /* 4. Компактный заголовок H1 */
  .checkout-hero {
    margin-bottom: 1rem; /* Было 2.5rem */
    gap: 0.25rem;
  }
  .checkout-hero h1 {
    font-size: 1.5rem; /* Делаем шрифт меньше */
    line-height: 1.2;
  }
  
  /* ВАЖНО: Скрываем текст-описание под заголовком на мобильных */
  .checkout-hero p {
    display: none; 
  }

  /* 5. Оптимизация карточки "Шаг 1" */
  .step {
    padding: 1rem; /* Уменьшаем внутренние отступы (было 2rem) */
  }
  
  /* Делаем заголовок шага (цифра 1 и текст) компактнее */
  .step-header {
    margin-bottom: 0.75rem;
  }
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .step-header h2 {
    font-size: 1.1rem;
  }

  /* ВАЖНО: Скрываем описание внутри шага ("Выберите формат...") */
  .step > p {
    display: none;
  }

  /* Поднимаем сетку с картинками выше */
  .option-grid {
    margin-top: 0;
  }
}

/* Стиль для синей ссылки */
.link-btn {
  background: none;
  border: none;
  color: var(--ocean-blue);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  padding: 0.5rem;
}

/* Стили попапа */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 200; /* Выше всего остального */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.info-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.info-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 14, 0.6);
  backdrop-filter: blur(4px);
}

.info-modal__card {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.info-modal.open .info-modal__card {
  transform: translateY(0);
}

.info-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.5rem;
}

.info-modal__card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.info-modal__card ul {
  padding-left: 1.2rem;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}












/* --- СЕКСИ ЗАГРУЗЧИК --- */
.sexy-upload {
  position: relative;
  width: 100%;
  height: 200px; /* Крупная зона */
  border-radius: var(--radius-large);
  border: 2px dashed #d1d5db;
  background: #f9fafb;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.sexy-upload:hover {
  border-color: var(--brick-red);
  background: #fff5f5;
}

.sexy-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;       /* На всякий случай для старых браузеров */
  height: 100%;      /* На всякий случай */
  opacity: 0;        /* Делаем невидимым, но кликабельным */
  cursor: pointer;
  z-index: 10;       /* Лежит поверх текста и иконки */
  font-size: 0;      /* Убирает возможные артефакты текста */
}

.upload-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  pointer-events: none;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.upload-preview {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 5;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.preview-badge {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime-green);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.remove-photo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;

  cursor: pointer;
  z-index: 20; /* Поверх инпута */
}

/* --- КОМПАКТНАЯ ФОРМА --- */
.compact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr; /* На мобилке в столбик */
  }
}

/* Floating Labels (как в Google Material) */
.floating-input {
  position: relative;
}

.floating-input input {
  width: 100%;
  padding: 1.2rem 1rem 0.6rem; /* Больше места сверху для лейбла */
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  font-size: 1rem;
  background: var(--surface-card);
  transition: all 0.2s;
}

.floating-input input:focus {
  border-color: var(--brick-red);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  outline: none;
}

.floating-input label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

/* Магия плавающего лейбла: если фокус или есть текст */
.floating-input input:focus + label,
.floating-input input:not(:placeholder-shown) + label {
  top: 0.6rem;
  font-size: 0.75rem;
  color: var(--brick-red);
}

/* --- КНОПКИ-ТОГГЛЫ --- */
.extra-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.action-toggle {
  background: none;
  border: 1px dashed var(--border-strong);
  padding: 0.6rem 1rem;
  border-radius: 99px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.action-toggle:hover {
  border-color: var(--brick-red);
  color: var(--brick-red);
  background: rgba(255, 50, 19, 0.05);
}

.expandable-field {
  margin-top: 1rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.expandable-field textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-small);
  border: 1px solid var(--border);
  font-family: inherit;
}



/* Добавляем анимацию для липкой плашки */
.summary-total {
  transition: transform 0.4s ease, opacity 0.4s ease;
  /* Убедись, что z-index высокий */
  z-index: 99; 
}

/* Класс для скрытия */
.summary-total.hidden {
  transform: translateY(200%); /* Уводим вниз за экран */
  opacity: 0;
  pointer-events: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--brick-red);
  color: var(--brick-red);
  background: rgba(255, 50, 19, 0.05);
}



/* Стили для карточек без фото (с эмодзи) */
.emoji-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.emoji-icon {
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding-top: 1rem;
}

/* Белая плашка с текстом внутри цветной карточки */
.emoji-visual .info {
  background: rgba(255, 255, 255, 0.95);
  margin: 10px;
  border-radius: 12px;
  padding: 0.8rem 1rem !important;
  flex-grow: 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.checkbox-card input:checked + .emoji-visual {
  box-shadow: inset 0 0 0 4px var(--brick-red);
}
.seo-info-block {
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .seo-info-block {
    padding: 20px !important;
    margin-top: 30px !important;
  }
}
/* --- СТИЛИ ДЛЯ ВЫБОРА ОПЛАТЫ --- */
.payment-section {
  margin-top: 1rem;
}

.payment-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .payment-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.payment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: var(--radius-medium);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

/* Скрываем нативный радиобаттон */
.payment-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.payment-card input:checked + .pc-content,
.payment-card input:checked + .pc-badge + .pc-content {
  /* Стиль для выбранного состояния управляется через родителя .payment-card */
}

/* Состояние Active для Предоплаты */
.payment-card.type-part:has(input:checked) {
  border-color: var(--text-primary);
  background: var(--surface-card);
}

/* Состояние Active для Полной оплаты (Красная обводка) */
.payment-card.type-full:has(input:checked) {
  border-color: var(--brick-red);
  background: #fff5f5; /* Легкий красный фон */
  box-shadow: 0 12px 30px rgba(255, 50, 19, 0.15);
}

.pc-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.pc-price-block {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}

.pc-total-label {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.strike-total {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.pc-pay-now {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.part-amount {
  color: var(--text-primary);
}

.full-amount {
  color: var(--brick-red);
}

.pc-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: grid;
  gap: 0.5rem;
}

.pc-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

/* Бейдж "Выгодно" */
.pc-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--sun-yellow);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-bottom-left-radius: 12px;
  z-index: 2;
}

.pc-bonus-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brick-red);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bonus-list li {
  color: var(--text-primary);
}

/* Модификация Step 1 (3 карточки в ряд) */
.step[data-step="1"] .option-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
/* --- СТИЛИ ДЛЯ ПРЕДЗАКАЗА И ПРЕДУПРЕЖДЕНИЙ --- */
.info-notice {
    background: rgba(3, 65, 174, 0.08);
    color: var(--text-secondary);
    padding: 1rem;
    border-radius: var(--radius-small);
    font-size: 0.95rem;
    line-height: 1.5;
    border-left: 4px solid var(--ocean-blue);
}

.warning-box {
    margin-top: 1rem;
    background: #fff5f5;
    border: 1px solid rgba(255, 50, 19, 0.2);
    border-left: 4px solid var(--brick-red);
    padding: 1rem;
    border-radius: var(--radius-small);
    color: var(--text-primary);
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
}

.warning-box.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- КОМПАКТНАЯ СЕТКА ШАГА 3 --- */
/* Делаем 4 элемента более мелкими */
.compact-grid {
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 0.75rem !important;
}
@media (min-width: 600px) {
    .compact-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
.checkbox-card.small-card .card-visual .info {
    padding: 0.5rem !important;
}
.checkbox-card.small-card .label {
    font-size: 0.9rem;
}
.checkbox-card.small-card .price-tag {
    font-size: 0.85rem;
}

/* --- ЗАБЛОКИРОВАННАЯ ОПЦИЯ (24 ЧАСА) --- */
.locked-option {
    cursor: not-allowed !important;
    opacity: 0.8;
    position: relative;
    border-style: dashed;
}
.locked-option:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--border) !important;
}

/* --- ЦЕНА ПРИ ПОЛНОЙ ОПЛАТЕ --- */
.price-tag.is-free-bonus {
    color: var(--lime-green);
    font-weight: 800;
}
.price-tag.is-free-bonus span {
    /* Если нужно зачеркнуть старую цену, можно добавить через ::before, 
       но здесь мы просто заменим текст JS-ом */
}

/* --- TOAST NOTIFICATION --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 90%;
    max-width: 320px;
}

.toast {
    background: rgba(11, 12, 14, 0.9);
    color: #fff;
    padding: 1rem 1.2rem;
    border-radius: 99px;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: toastUp 0.3s ease forwards;
    pointer-events: auto;
}

@keyframes toastUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}