/* V2 overrides — "Warm system": sun-orbit hero, denser geometry */

body.v2 {
  --bg: #F4EFE6;
  --bg-2: #FAF6EE;
  --bg-3: #E8DFCE;
}

.v2-hero { padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 8vw, 100px); position: relative; overflow: hidden; }
.v2-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.v2-hero__copy .hero__title { max-width: 14ch; margin-top: 12px; }
.v2-hero__art {
  position: relative;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.v2-sun {
  position: absolute; inset: 22% 22% 22% 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fad48a, var(--sun) 55%, var(--sun-2));
  box-shadow: 0 30px 60px -20px rgba(212,156,74,.35);
}
.v2-rings {
  position: absolute; inset: 4%;
  border-radius: 50%;
  border: 1px dashed rgba(42,37,32,.22);
  animation: spin 60s linear infinite;
}
.v2-rings::before, .v2-rings::after {
  content: ""; position: absolute; inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(42,37,32,.14);
}
.v2-rings::after { inset: 24%; border-style: dotted; }
.v2-orb {
  position: absolute;
  background: #fff; border: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--ink); padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 16px 30px -16px rgba(42,37,32,.22);
}
.v2-orb--1 { top: 6%; left: 50%; transform: translateX(-50%); }
.v2-orb--2 { bottom: 14%; left: 6%; }
.v2-orb--3 { bottom: 14%; right: 6%; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .v2-rings { animation: none; } }

@media (max-width: 820px) {
  .v2-hero__grid { grid-template-columns: 1fr; }
  .v2-hero__art { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .v2-hero__art { max-width: 280px; }
  .v2-orb { font-size: 13px; padding: 6px 12px; }
  .v2-orb--2 { bottom: 10%; left: 2%; }
  .v2-orb--3 { bottom: 10%; right: 2%; }
  .v2-hero__copy .hero__title { max-width: none; }
  .v2 .plan { padding: 24px; }
}

/* Featured plan emphasis — visual lift via shadow only, no transform that misaligns buttons */
.v2 .plan--featured { box-shadow: 0 30px 60px -28px rgba(232,184,109,.55); }

/* Cards more geometric in V2 */
.v2 .card { border-radius: 6px; }
.v2 .plan { border-radius: 8px; }
.v2 .benefits__grid { border-radius: 8px; }
.v2 .g { border-radius: 8px; }

/* Chat demo — real screenshot in product section */
.chat-demo { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.chat-demo__btn {
  background: transparent; border: 0; padding: 0; cursor: zoom-in;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.28), 0 6px 14px -8px rgba(0,0,0,.16);
  transition: transform .25s ease;
  max-width: 100%;
}
.chat-demo__btn:hover { transform: translateY(-2px); }
.chat-demo__btn img { display: block; width: 100%; max-height: 760px; height: auto; object-fit: contain; }
.chat-demo figcaption { text-align: center; max-width: 360px; }

/* Inline section CTA — для Doc 16 / Doc 22 */
.section__cta { text-align: center; margin-top: clamp(28px, 5vw, 48px); }

/* Problem grid с 2 карточками — равные колонки, без пустого хвоста справа */
.problem__grid--2 { grid-template-columns: repeat(2, 1fr) !important; max-width: 880px; margin-left: auto; margin-right: auto; }
@media (max-width: 820px) { .problem__grid--2 { grid-template-columns: 1fr !important; } }

/* Bonuses: art должен занимать обе строки слева, чтобы h3 и p были в правой колонке */
.bonus { align-items: start !important; }
.bonus__art { grid-row: span 2; align-self: start; }

/* ============================================================
   Дизайн-апгрейд: врезка-цитата, плитки, featured plan, for-not, гарантии
   ============================================================ */

/* 1. Callout — врезка-цитата на цветном фоне */
.callout {
  margin: clamp(20px, 4vw, 36px) auto 0;
  max-width: 760px;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 40px);
  background: #F0EBFA;
  border-left: 4px solid #8B7BB8;
  border-radius: 10px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  text-align: center;
}
.callout--lavender { background: #F0EBFA; border-left-color: #8B7BB8; }

/* 4. Tiles — карточки-плитки с иконками */
.tiles {
  margin-top: clamp(32px, 5vw, 48px);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.tiles--7 > :nth-child(7) { grid-column: 2; }
@media (max-width: 880px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles--7 > :nth-child(7) { grid-column: auto; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
}
.tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(42,37,32,.25); }
.tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sun-soft, #FAEDCB), var(--sun, #E8B86D));
  color: #6B4A1F;
}
.tile__icon svg, .tile svg { width: 22px; height: 22px; max-width: 22px; max-height: 22px; flex-shrink: 0; }
.tile__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  margin: 4px 0 2px;
  color: var(--ink);
}
.tile__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* 5. Pricing — Optimal с заливкой и усиленным shadow (без вертикального сдвига, чтобы кнопки были на одной линии) */
.v2 .plans { align-items: stretch; }
.v2 .plan { height: 100%; }
.v2 .plan--featured {
  background: linear-gradient(180deg, #FAF3FF 0%, var(--bg-2) 100%);
  border-color: #C9B8E5;
  box-shadow: 0 32px 50px -28px rgba(139,123,184,.4);
}
.v2 .plan--featured .plan__badge {
  background: #6F5BA8;
  color: #fff;
}

/* 8. For-not — цветные фоны половин */
.card-block { padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 32px); border-radius: 14px; border: 1px solid var(--line); }
.card-block--ok { background: #F4EDDC; border-color: #E6D9B6; }
.card-block--no { background: #EFEFEF; border-color: #DCDCDC; }
.card-block h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 0 0 14px; color: var(--ink); }
.card-block ul { padding-left: 22px; margin: 0; }
.card-block li { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin-bottom: 8px; }

/* 9. Guarantees — крупнее h3, серее текст */
.v2 .g { padding: clamp(26px, 4vw, 34px); }
.v2 .g h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
  margin: 14px 0 12px;
  color: var(--ink);
  line-height: 1.25;
}
.v2 .g p {
  color: var(--ink-3, #6E6660);
  font-size: 15px;
  line-height: 1.65;
}
