/* ═══════════════════════════════════════════════════════════════════
   Страница «Оптовым клиентам». Макеты «Опт бой» и «Опт бой моб», бриф 07.
   Подключается только на шаблоне page-opt.php.
   ═══════════════════════════════════════════════════════════════════ */

.opt .section{margin-top:56px}

/* ── Общая типографика страницы ────────────────────────────────────── */
.opt-h1{max-width:17ch;margin:0 0 20px;font-size:clamp(36px,4vw,52px);
  line-height:1.05;font-weight:600;letter-spacing:-.04em;text-wrap:balance}
.opt-h2{margin:0 0 10px;font-size:clamp(26px,2.6vw,34px);line-height:1.14;
  font-weight:600;letter-spacing:-.03em}
.opt-sub{max-width:62ch;margin:0 0 24px;font-size:17px;line-height:1.6;
  color:var(--muted);text-wrap:pretty}
.opt-sub--on-dark{margin:0;color:#E8D8D2}
.opt-lead{max-width:52ch;margin:0 0 30px;font-size:18px;line-height:1.6;
  color:#3C3336;text-wrap:pretty}
.opt-note{margin:18px 0 0;font-size:14px;color:var(--muted);text-wrap:pretty}

/* Заголовок с ссылкой справа: «Как работаем», «Что можно закупать» */
.opt-head{display:flex;align-items:end;justify-content:space-between;
  gap:28px;margin-bottom:22px}
.opt-head .opt-sub{margin:0}
.opt-more{display:inline-flex;align-items:center;gap:10px;font-size:14px;
  font-weight:600;white-space:nowrap}
.opt-more:hover{text-decoration:underline;text-underline-offset:4px}

/* ── Герой ─────────────────────────────────────────────────────────── */
.opt-hero{margin-top:18px;background:var(--white);
  border-radius:var(--radius-hero);overflow:hidden}
.opt-hero__grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.opt-hero__text{display:flex;flex-direction:column;justify-content:center;
  padding:64px 56px}
.opt-hero__art{position:relative;min-height:460px;background:var(--porcelain)}
.opt-hero__art img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:100% center}

.opt-kick{display:inline-flex;align-self:flex-start;margin:0 0 24px;
  padding:7px 14px;background:rgba(229,196,200,.42);
  border-radius:var(--radius-pill);font-size:12px;font-weight:600;
  color:var(--burgundy)}

.opt-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px}
.opt-go{display:inline-flex;align-items:center;justify-content:center;
  min-height:56px;padding:0 30px;background:var(--burgundy);color:var(--white);
  border-radius:var(--radius-pill);font-size:16px;font-weight:600}
.opt-go:hover{background:var(--burgundy-hover);color:var(--white)}
.opt-go--ghost{background:var(--white);color:var(--ink);
  border:1px solid var(--border);padding:0 28px}
.opt-go--ghost:hover{background:var(--white);border-color:var(--burgundy);
  color:var(--burgundy)}

/* ── Полоса чисел ──────────────────────────────────────────────────── */
.opt-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid var(--border)}
.opt-facts > div{padding:24px 28px;border-right:1px solid var(--border)}
.opt-facts > div:last-child{border-right:0}
.opt-facts__n{margin:0 0 6px;font-size:26px;font-weight:600;
  letter-spacing:-.025em;color:var(--burgundy)}
.opt-facts__p{margin:0;font-size:13px;line-height:1.5;color:var(--muted)}
/* Подписи на телефоне короче: длинные превращают клетку 2×2 в четыре
   строки текста и число теряется. Обе версии в разметке, лишняя скрыта */
.opt-facts__short{display:none}

/* ── Кому подходит ─────────────────────────────────────────────────── */
.opt-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.opt-card{padding:26px 24px;background:var(--white);border:1px solid #EDE4DE;
  border-radius:var(--radius-panel)}
.opt-card__i{display:grid;place-items:center;width:44px;height:44px;
  margin-bottom:16px;background:#EFE7DF;border-radius:14px;color:var(--burgundy)}
.opt-card__i svg{width:22px;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round}
.opt-card__t{margin:0 0 10px;font-size:18px;line-height:1.25;font-weight:600;
  letter-spacing:-.02em}
.opt-card__p{margin:0;font-size:15px;line-height:1.55;color:#3C3336;
  text-wrap:pretty}

/* ── Как работаем ──────────────────────────────────────────────────── */
.opt-how{margin-top:56px;padding:44px 48px 40px;background:var(--burgundy);
  color:var(--white);border-radius:var(--radius-hero)}
.opt-how .opt-h2{color:var(--white)}
.opt-how__head{display:flex;align-items:end;justify-content:space-between;
  gap:28px;margin-bottom:22px}
.opt-how__link{display:inline-flex;align-items:center;gap:8px;min-height:44px;
  white-space:nowrap;font-size:15px;font-weight:600;color:var(--white);
  text-decoration:underline;text-underline-offset:4px}
.opt-how__link:hover{color:var(--blush)}

.opt-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;
  margin:0;padding:0;list-style:none;border-top:1px solid rgba(255,255,255,.28)}
.opt-steps li{padding:22px 28px 4px 28px;border-left:1px solid rgba(255,255,255,.22)}
.opt-steps li:first-child{padding-left:0;border-left:0}
.opt-steps li:last-child{padding-right:0}
.opt-steps__n{display:block;margin-bottom:8px;font-size:13px;font-weight:600;
  letter-spacing:.08em;color:#E3B9AE}
.opt-steps__t{margin:0 0 8px;font-size:19px;line-height:1.25;font-weight:600;
  letter-spacing:-.02em;color:var(--white)}
.opt-steps__p{margin:0;font-size:15px;line-height:1.55;color:#EADCD7;
  text-wrap:pretty}

/* ── Что можно закупать и Условия ──────────────────────────────────── */
.opt-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}

.opt-sect{display:flex;flex-direction:column;padding:30px 28px;
  background:var(--white);border:1px solid #EDE4DE;
  border-radius:var(--radius-surface);color:var(--ink)}
.opt-sect:hover{border-color:var(--burgundy);color:var(--ink)}
.opt-sect__n{font-size:12px;font-weight:600;letter-spacing:.08em;
  text-transform:uppercase;color:var(--burgundy)}
.opt-sect__t{margin:16px 0 10px;font-size:22px;line-height:1.15;font-weight:600;
  letter-spacing:-.02em}
.opt-sect__p{margin:0 0 20px;font-size:15px;line-height:1.55;color:#3C3336;
  text-wrap:pretty}
.opt-sect__go{display:inline-flex;align-items:center;gap:10px;margin-top:auto;
  font-size:14px;font-weight:600;color:var(--burgundy)}

.opt-term{padding:28px 26px;background:var(--white);border:1px solid #EDE4DE;
  border-radius:var(--radius-panel)}
.opt-term--dark{background:var(--burgundy);color:var(--white);border-color:var(--burgundy)}
.opt-term__t{margin:0 0 10px;font-size:18px;line-height:1.25;font-weight:600;
  letter-spacing:-.02em}
.opt-term__p{margin:0;font-size:15px;line-height:1.55;color:#3C3336;
  text-wrap:pretty}
.opt-term--dark .opt-term__p{color:#F0DDE0}

/* ── Заявка и колонка справа ───────────────────────────────────────── */
.opt-bottom{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;
  margin-top:56px;margin-bottom:64px;align-items:start;scroll-margin-top:110px}
.opt-box{padding:36px 40px;background:var(--white);
  border-radius:var(--radius-hero)}
.opt-h2--form{font-size:24px;line-height:1.2;letter-spacing:-.025em}

.opt-general{display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px;
  margin:0 0 22px;padding:14px 18px;background:#F7EAEC;
  border-radius:var(--radius-card);font-size:15px;line-height:1.45;color:#3C3336}
.opt-general svg{width:20px;margin-top:2px;fill:none;stroke:#9B2C3C;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
/* display:grid перебивает штатное скрытие по атрибуту hidden — без этой
   строки пустая розовая плашка висит на странице с самого начала */
.opt-general[hidden]{display:none}

.opt-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
  margin-bottom:18px}
.opt-field{display:block}
.opt-field--wide{margin-bottom:0}
.opt-label{display:block;margin-bottom:8px;font-size:13px;font-weight:600;
  color:#3C3336}
.opt-label b{color:#9B2C3C;font-weight:inherit}
.opt-in{width:100%;height:54px;padding:0 18px;font:inherit;font-size:15px;
  color:var(--ink);background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-pill);outline:0}
.opt-in:focus-visible{outline:2px solid var(--burgundy);outline-offset:2px}
.opt-in[aria-invalid="true"]{border-color:#9B2C3C}
.opt-area{height:auto;padding:16px 18px;line-height:1.55;
  border-radius:18px;resize:vertical}
.opt-err{display:block;margin-top:6px;font-size:13px;color:#9B2C3C}
.opt-err[hidden]{display:none}

/* Приманка для роботов: убираем из потока, но не display:none — часть
   ботов такие поля пропускает именно по этому признаку */
.opt-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.opt-agree{display:grid;grid-template-columns:24px minmax(0,1fr);
  align-items:start;gap:12px;margin-top:22px;font-size:14px;line-height:1.5;
  color:#3C3336;cursor:pointer;text-wrap:pretty}
.opt-agree input{width:22px;height:22px;margin:2px 0 0;accent-color:var(--burgundy)}
.opt-agree a{font-weight:600}

.opt-submit{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-top:26px}
.opt-submit__go{display:inline-flex;align-items:center;justify-content:center;
  gap:10px;min-height:56px;padding:0 30px;background:var(--burgundy);
  color:var(--white);border:0;border-radius:var(--radius-pill);font:inherit;
  font-size:16px;font-weight:600;cursor:pointer}
.opt-submit__go:hover{background:var(--burgundy-hover)}
.opt-submit__go[disabled]{background:#7A4757;cursor:default}
.opt-submit__note{margin:0;font-size:13px;color:var(--muted)}
.opt-spin{display:block;width:16px;height:16px;border:2px solid rgba(255,255,255,.35);
  border-top-color:var(--white);border-radius:var(--radius-pill);
  animation:opt-spin .8s linear infinite}
.opt-spin[hidden]{display:none}
@keyframes opt-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.opt-spin{animation:none}}

.opt-done{padding:8px 0 4px}
.opt-done__i{display:grid;place-items:center;width:52px;height:52px;
  margin-bottom:18px;background:rgba(47,122,85,.12);
  border-radius:var(--radius-pill);color:var(--in-stock)}
.opt-done__i svg{width:26px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.opt-done__t{margin:0 0 10px;font-size:24px;line-height:1.2;font-weight:600;
  letter-spacing:-.025em}
.opt-done__t:focus-visible{outline:2px solid var(--burgundy);outline-offset:4px}
.opt-done__p{max-width:56ch;margin:0 0 24px;font-size:16px;line-height:1.6;
  color:var(--muted);text-wrap:pretty}

.opt-aside{position:sticky;top:104px;display:flex;flex-direction:column;gap:16px}
.opt-aside__k{margin:0 0 12px;font-size:11px;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted)}
.opt-next{display:flex;flex-direction:column;gap:14px;padding:26px;
  background:var(--ink);color:var(--white);border-radius:var(--radius-panel)}
.opt-next .opt-aside__k{margin:0 0 2px;color:rgba(255,255,255,.55)}
.opt-next p{margin:0;font-size:15px;line-height:1.55;color:rgba(255,255,255,.86);
  text-wrap:pretty}
.opt-docs{padding:24px 26px;background:var(--white);border-radius:var(--radius-panel)}
.opt-docs__p{margin:0 0 8px;font-size:15px;line-height:1.55;color:#3C3336;
  text-wrap:pretty}
.opt-docs__go{display:inline-flex;align-items:center;gap:8px;min-height:44px;
  font-size:14px;font-weight:600}
.opt-docs__line{height:1px;margin:18px 0;background:#EDE4DE;border:0}

/* ── Планшет ───────────────────────────────────────────────────────── */
@media (max-width:1180px){
  .opt-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .opt-bottom{grid-template-columns:minmax(0,1fr)}
  .opt-aside{position:static;flex-direction:row;flex-wrap:wrap}
  .opt-aside > *{flex:1 1 300px}
}

@media (max-width:1024px){
  .opt-hero__grid{grid-template-columns:minmax(0,1fr)}
  .opt-hero__text{padding:32px 28px 34px;order:2}
  .opt-hero__art{order:1;min-height:260px}
  .opt-3{grid-template-columns:minmax(0,1fr)}
  .opt-steps{grid-template-columns:minmax(0,1fr);border-top:0}
  .opt-steps li{padding:20px 0;border-left:0;
    border-top:1px solid rgba(255,255,255,.22)}
  .opt-steps li:first-child{padding-top:4px;border-top:0}
  .opt-how{padding:32px 28px 30px}
  .opt-how__head,.opt-head{flex-direction:column;align-items:start;gap:14px}
  .opt-box{padding:28px 26px}
}

/* ── Телефон ───────────────────────────────────────────────────────── */
@media (max-width:767px){
  .opt .section{margin-top:32px}
  .opt-hero{margin-top:14px;border-radius:22px}
  .opt-hero__art{min-height:220px}
  .opt-hero__text{padding:24px 20px 26px}
  .opt-h1{font-size:32px;line-height:1.08;letter-spacing:-.035em}
  .opt-lead{margin-bottom:22px;font-size:16px}
  /* Кнопки в столбик и во всю ширину: рядом они на 390 не помещаются */
  .opt-cta{flex-direction:column;align-items:stretch;gap:10px}
  .opt-go{min-height:52px;padding:0 24px}
  .opt-note{margin-top:16px;line-height:1.5}

  .opt-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .opt-facts > div{padding:18px 20px;border-bottom:1px solid var(--border)}
  .opt-facts > div:nth-child(even){border-right:0}
  .opt-facts > div:nth-last-child(-n+2){border-bottom:0}
  .opt-facts__n{font-size:22px;margin-bottom:4px}
  .opt-facts__p{line-height:1.45}
  .opt-facts__long{display:none}
  .opt-facts__short{display:inline}

  .opt-4{grid-template-columns:minmax(0,1fr)}
  .opt-how{margin-top:32px;padding:26px 20px 24px;border-radius:22px}
  .opt-sub{font-size:16px;margin-bottom:18px}
  /* Зона нажатия, а не кегль: строка в 22 пикселя мала для пальца */
  .opt-more,.opt-docs__go{min-height:44px}

  .opt-bottom{margin-top:32px;margin-bottom:40px;gap:16px}
  .opt-box{padding:24px 20px;border-radius:22px}
  .opt-pair{grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:16px}
  .opt-aside{flex-direction:column}
  .opt-submit{gap:12px}
  .opt-submit__go{width:100%}
  .opt-submit__note{width:100%;text-align:center}
}
