/* sx-decor.css — тёплые свечения, карточки, акценты и фото-вставки для тёмной темы (body.sx.leg) */

/* 1. Мягкие цветные свечения на фоне секций */
.leg main>section:not(.hero){position:relative;isolation:isolate}
.leg main>section:not(.hero)::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(560px 360px at 94% 6%,rgba(253,111,110,.14),transparent 70%),
    radial-gradient(480px 320px at 3% 96%,rgba(255,184,107,.08),transparent 70%)}
.leg main>section:not(.hero):nth-of-type(even)::after{
  background:
    radial-gradient(540px 360px at 4% 8%,rgba(255,184,107,.12),transparent 70%),
    radial-gradient(500px 340px at 97% 94%,rgba(253,111,110,.11),transparent 70%)}
/* тонкая граница-градиент между секциями */
.leg main>section.alt+section:not(.alt),.leg main>section:not(.alt)+section.alt{box-shadow:inset 0 1px 0 rgba(255,244,230,.06)}

/* 2. Акцент под заголовками секций */
.leg main>section:not(.hero) h2::after{content:"";display:block;width:64px;height:4px;border-radius:4px;margin-top:16px;background:linear-gradient(90deg,#FD6F6E,#FFB86B)}
.leg main>section:not(.hero) .cta h2::after,.leg main>section:not(.hero) .pricebox h2::after{display:none}

/* 3. Карточки вместо голых блоков */
.leg .item{border-top:0;position:relative;overflow:hidden;border-radius:20px;padding:26px 24px 26px;
  background:linear-gradient(160deg,rgba(255,244,230,.075),rgba(255,244,230,.02) 60%);
  border:1px solid rgba(255,244,230,.12);transition:transform .25s,border-color .25s,box-shadow .25s}
.leg .item::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:linear-gradient(90deg,#FD6F6E,#FFB86B)}
.leg .item:hover{transform:translateY(-4px);border-color:rgba(253,111,110,.45);box-shadow:0 24px 50px -28px rgba(253,111,110,.55)}
.leg .item h3{color:#fff4e6;margin-bottom:10px}

.leg .steps li{border-top:0;border-radius:20px;padding:22px 22px 24px;background:rgba(255,244,230,.05);border:1px solid rgba(255,244,230,.12)}
.leg .steps li::before{background:linear-gradient(90deg,#FD6F6E,#FFB86B);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:34px}

/* галочки — в кружках */
.leg .ticks li{padding:14px 0 14px 40px;border-bottom-color:rgba(255,244,230,.1)}
.leg .ticks li::before{left:0;top:14px;width:26px;height:26px;border:0;border-radius:50%;transform:none;
  background:rgba(253,111,110,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FD6F6E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow:inset 0 0 0 1px rgba(253,111,110,.4)}

/* FAQ — раскрывающиеся карточки */
.leg .faq details,.leg .faq details:first-child{border:1px solid rgba(255,244,230,.12);border-radius:16px;padding:18px 22px;margin-bottom:10px;background:rgba(255,244,230,.035);transition:border-color .2s,background .2s}
.leg .faq details:hover{border-color:rgba(255,244,230,.26)}
.leg .faq details[open]{border-color:rgba(253,111,110,.5);background:linear-gradient(160deg,rgba(253,111,110,.09),rgba(255,244,230,.02))}
.leg .faq summary::after{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:50%;background:rgba(253,111,110,.15);color:#FD6F6E;font-size:20px}

/* блок с ответом в начале страницы */
.leg .answer{border-left:3px solid #FD6F6E;padding-left:20px}

/* 4. Статьи блога */
.leg .article .prose h2{padding-left:18px;position:relative}
.leg .article .prose h2::before{content:"";position:absolute;left:0;top:.12em;bottom:.12em;width:4px;border-radius:4px;background:linear-gradient(180deg,#FD6F6E,#FFB86B)}
.leg .article .prose li::marker{color:#FD6F6E;font-weight:800}
.leg .article table{margin:20px 0 24px;border-collapse:separate;border-spacing:0;border:1px solid rgba(255,244,230,.16);border-radius:16px;background:rgba(255,244,230,.03)}
.leg .article th{background:rgba(253,111,110,.16);color:#fff4e6;border-bottom:1px solid rgba(253,111,110,.4)}
.leg .article tr:nth-child(even) td{background:rgba(255,244,230,.035)}
.leg .article tr:last-child td{border-bottom:0}
.leg .article blockquote{border-left:0;margin:28px 0;padding:22px 26px;border-radius:18px;background:linear-gradient(160deg,rgba(253,111,110,.12),rgba(255,184,107,.05));box-shadow:inset 3px 0 0 #FD6F6E}

/* 5. Фото-вставка с градиентом и подписью */
.photoband{position:relative;margin:0;border-radius:28px;overflow:hidden;min-height:clamp(260px,34vw,420px);display:flex;align-items:flex-end;box-shadow:0 40px 80px -40px rgba(0,0,0,.9)}
.photoband img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.2s ease}
.photoband:hover img{transform:scale(1.04)}
.photoband::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,13,12,.92) 0%,rgba(15,13,12,.55) 48%,rgba(15,13,12,.1) 100%),linear-gradient(0deg,rgba(253,111,110,.28),transparent 55%)}
.photoband figcaption{position:relative;z-index:1;padding:clamp(24px,4vw,48px);max-width:620px}
.photoband figcaption b{display:block;font-size:clamp(22px,2.6vw,32px);line-height:1.15;letter-spacing:-.01em;margin-bottom:10px}
.photoband figcaption span{display:block;color:#eadfce;font-size:16px}
.photoband .tag{display:inline-block;margin-bottom:14px;padding:6px 14px;border-radius:30px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#1a1210;background:linear-gradient(90deg,#FD6F6E,#FFB86B)}
section.band{padding:12px 0 8px}
.leg main>section.band::after{display:none}
.leg .article figure.ph{margin:32px 0}
.leg .article figure.ph img{width:100%;height:auto}
.leg .article figure.ph figcaption{font-size:13px;color:#a99c8c;margin-top:10px}

@media (max-width:900px){
  .photoband::after{background:linear-gradient(0deg,rgba(15,13,12,.95) 10%,rgba(15,13,12,.45) 70%,rgba(15,13,12,.2))}
  .photoband{min-height:340px}
  .leg .item{padding:22px 20px}
}
@media (prefers-reduced-motion:reduce){.leg .item:hover{transform:none}.photoband:hover img{transform:none}}

/* GEO: автор и дата обновления */
.leg .upd{margin:12px 0 0;font-size:13px;color:#a99c8c}
.leg .upd time{color:#d8c9b6}
.leg .author-box{display:flex;gap:18px;align-items:center;margin:8px 0 40px;padding:20px 22px;border-radius:20px;background:rgba(255,244,230,.05);border:1px solid rgba(255,244,230,.12)}
.leg .author-box img{width:72px;height:72px;border-radius:50%;object-fit:cover;object-position:50% 18%;flex:0 0 72px;box-shadow:0 0 0 3px rgba(253,111,110,.45)}
.leg .author-box b{display:block;font-size:16px}
.leg .author-box span{display:block;color:#c9bba9;font-size:14px;margin:4px 0 6px}
.leg .author-box a{color:#FFB86B;font-size:14px;font-weight:600;text-decoration:none}
