/* Главная страница Fireweek — дизайн из макета «Design.html» */
body{margin:0;font-family:'Onest',system-ui,sans-serif;background:#FFFFFF;color:#17131F;-webkit-font-smoothing:antialiased}
.lp *{box-sizing:border-box}
.lp{background:#FFFFFF;overflow-x:clip}
.lp svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.lp a{color:inherit;text-decoration:none}
.w{width:1200px;margin:0 auto;position:relative}
.sec{position:relative;overflow:hidden}
.eb{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:16px;background:#EDE4FB;color:#5B3FB0;font-size:14px;font-weight:600}
.eb.dk{background:#17131F;color:#FFFFFF}
.h1{margin:0;font-size:80px;line-height:84px;font-weight:800;letter-spacing:-.04em}
.h2{margin:0;font-size:48px;line-height:54px;font-weight:800;letter-spacing:-.03em}
.h3{margin:0;font-size:22px;line-height:28px;font-weight:700;letter-spacing:-.01em}
.lead{margin:0;font-size:20px;line-height:30px;color:#3A3249}
.p{margin:0;font-size:17px;line-height:26px;color:#3A3249}
.mut{color:#625975}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:56px;padding:0 28px;border-radius:18px;background:#17131F;color:#FFFFFF !important;font-size:17px;font-weight:600;border:0;white-space:nowrap}
.btn.s{background:#F1ECF8;color:#17131F !important}
.btn.sm{height:44px;padding:0 20px;border-radius:14px;font-size:15px}
.hd{display:flex;flex-direction:column;gap:16px}
.hd.c{align-items:center;text-align:center}
.oc{position:absolute;border:2px solid #17131F;border-radius:22px;background:transparent}
.dh{display:flex;align-items:baseline;justify-content:space-between;font-size:18px;line-height:24px;font-weight:700}
.dh span{font-weight:400}
.dh.td{color:#6B3FD8}
.rl{height:4px;background:#17131F;border-radius:2px;margin-top:8px}
.rl.td{background:#6B3FD8}
.rw{display:flex;align-items:center;height:42px;border-bottom:1px solid rgba(23,19,31,.16);font-size:14px;line-height:18px;white-space:nowrap;overflow:hidden}
.rw.dn{color:rgba(23,19,31,.4);text-decoration:line-through}
.pl{padding:5px 11px;border-radius:14px;white-space:nowrap}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:24px 32px;margin:0}
.facts div{display:flex;flex-direction:column;gap:6px;padding-top:16px;border-top:2px solid #17131F}
.facts dt{font-size:17px;line-height:22px;font-weight:700;display:flex;align-items:center;gap:8px}
.facts dd{margin:0;font-size:15px;line-height:22px;color:#625975}
.pro{font-size:11px;line-height:14px;font-weight:700;padding:3px 7px;border-radius:7px;background:#EDE4FB;color:#5B3FB0;letter-spacing:.02em}
.tile{position:absolute;border-radius:36px;overflow:hidden}
.chip{display:inline-flex;align-items:center;height:44px;padding:0 18px;border-radius:22px;border:2px solid #17131F;font-size:16px;font-weight:600}
.tg{width:44px;height:26px;border-radius:13px;background:#17131F;position:relative;flex:none}
.tg::after{content:'';position:absolute;top:4px;right:4px;width:18px;height:18px;border-radius:9px;background:#FFFFFF}
.tg.off{background:rgba(23,19,31,.2)}
.tg.off::after{right:auto;left:4px}
.link{display:inline-flex;align-items:center;gap:6px;font-size:16px;font-weight:700;border-bottom:2px solid #17131F;padding-bottom:2px}

/* ── Раскладка страницы (из макета «Главная страница · десктоп») ── */
html{scroll-behavior:smooth}
.lp{min-height:100vh}
.w{width:min(1200px,calc(100% - 48px))}
.sec{padding-bottom:72px}
.sec.site-header,.sec.site-footer{padding-bottom:0}
.h1{font-size:clamp(44px,6.2vw,80px);line-height:1.05}
.h2{font-size:clamp(32px,4vw,48px);line-height:1.12}
.tile{position:relative}
.site-header{position:sticky;top:0;z-index:50;overflow:visible;background:rgba(255,255,255,.94);-webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid #EEE9F5}
html{scroll-padding-top:96px}
.site-header-in{height:88px;display:flex;align-items:center;gap:48px}
.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:800;letter-spacing:-.02em}
.site-nav{display:flex;gap:32px;font-size:16px;font-weight:500;color:#3A3249}
.site-nav a:hover,.site-footer-in a:hover{color:#17131F}
.hero-row{display:flex;align-items:flex-end;justify-content:space-between;gap:48px}
.hero-copy{gap:24px;max-width:760px}
.hero-cta{display:flex;flex-direction:column;gap:12px;width:300px;padding-bottom:4px}
.fig{width:100%;height:600px;margin:0}
.hero-tile{margin:56px 0 0}
.g-free{display:grid;grid-template-columns:minmax(0,1fr) 456px;gap:44px;align-items:start}
.g-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-top:40px}
.g-task{display:grid;grid-template-columns:minmax(0,540px) minmax(0,1fr);gap:60px}
.g-rep{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,540px);gap:60px}
.g-tog{position:relative;min-height:560px;border-radius:40px;overflow:hidden;display:grid;grid-template-columns:minmax(0,620px) 1fr;padding:56px}
.share{right:60px;top:56px;width:400px;height:540px;padding:24px}
.g-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:40px}
.panel-custom{position:relative;height:420px;margin-top:40px;border-radius:36px;overflow:hidden;padding:48px}
.custom-copy{width:470px;max-width:100%;gap:16px}
.custom-ill{left:600px;top:48px;width:620px;height:420px;padding:24px}
.g-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px}
.tile2{position:relative;height:520px;border-radius:36px;overflow:hidden;padding:44px}
.g-plans{display:grid;grid-template-columns:minmax(0,480px) minmax(0,1fr);gap:24px;margin-top:44px}
.cta-box{height:400px;border-radius:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;text-align:center;position:relative;overflow:hidden;padding:0 24px}
.cta-oc{top:56px;width:280px;height:320px;padding:18px 22px;text-align:left}
.cta-l{left:-60px}.cta-r{right:-60px}
.cta-h{font-size:clamp(36px,5vw,64px);line-height:1.06}
.site-footer-in{display:flex;align-items:center;gap:32px;flex-wrap:wrap;min-height:120px;font-size:15px;color:#625975}
.foot-brand{font-weight:800;color:#17131F;font-size:17px}
.btn:focus-visible,.chip:focus-visible,.link:focus-visible,a:focus-visible{outline:2px solid #6B3FD8;outline-offset:3px}
@media(max-width:1000px){
  .site-nav{display:none}
  .hero-row{flex-direction:column;align-items:flex-start;gap:28px}
  .hero-cta{flex-direction:row;flex-wrap:wrap;width:auto}
  .g-free,.g-task,.g-rep,.g-plans,.g-tog,.g-2{grid-template-columns:minmax(0,1fr)}
  .g-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-rep .fig{order:2}
  .share{position:relative;right:auto;top:auto;width:100%;max-width:400px;height:auto;margin-top:28px}
  .panel-custom{height:auto}
  .custom-ill{position:relative;left:auto;top:auto;width:100%;height:auto;margin-top:28px}
  .cta-oc{display:none}
  .tile2{height:560px}
}
@media(max-width:700px){
  .w{width:min(1200px,calc(100% - 32px))}
  .sec{padding-bottom:48px}
  .site-header-in{height:72px;gap:16px}
  .g-4,.g-3{grid-template-columns:minmax(0,1fr)}
  .facts{grid-template-columns:1fr}
  .lead{font-size:18px;line-height:27px}
  .btn{height:52px;padding:0 22px;font-size:16px;white-space:normal;text-align:center}
  .hero-cta{width:100%}.hero-cta .btn{flex:1 1 100%}
  .hero-tile{height:340px}
  .hero-tile>.oc{zoom:.55}
  .fig{height:520px}
  .fig>.oc,.tile2 .ill{zoom:.7}
  .g-tog{padding:28px 22px}
  .panel-custom{padding:28px 22px}
  .tile2{padding:28px 22px;height:520px}
  .tile2 p{width:auto!important}
  .cta-box{height:auto;padding:48px 20px}
  .g-plans article{padding:28px!important}
  .g-plans ul[style*="grid-template-columns"]{grid-template-columns:1fr!important}
  .site-footer-in{gap:16px 24px;padding:24px 0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Заголовок первого экрана: длинный, поэтому мельче общего .h1 и в две строки. */
.hero-copy{max-width:860px}
.hero-copy .h1{font-size:clamp(34px,4.4vw,56px);line-height:1.1;letter-spacing:-.03em;text-wrap:balance}

/* ── Первый экран, вариант B: по центру + неделя (макет HeroB) ── */
.hero-b{padding-bottom:0!important}
.hb-copy{display:flex;flex-direction:column;align-items:center;text-align:center;gap:22px;padding-top:56px}
.hb-h1{margin:0;max-width:1040px;font-size:clamp(34px,4.8vw,68px);line-height:1.06;font-weight:800;letter-spacing:-.04em;text-wrap:balance}
.hb-lead{margin:0;max-width:700px;font-size:20px;line-height:30px;color:#3A3249}
.hb-cta{display:flex;gap:12px;margin-top:6px}
.hero-b .btn{height:60px;padding:0 30px;border-radius:18px}
.hb-stage{position:relative;margin-top:56px}
.hb-week{position:relative;margin:0;height:360px;border-radius:40px 40px 0 0;background:#ECE4FB;overflow:hidden}
.hb-oc{left:48px;top:48px;width:1104px;height:400px;padding:28px 32px;border-radius:26px}
.hb-cols{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px}
.hb-oc .dh{font-weight:800}
.hb-oc .rw{height:44px}
.float{position:absolute;display:flex;align-items:center;gap:10px;border:2px solid #17131F;border-radius:22px;background:#FFFFFF;box-shadow:0 18px 40px rgba(23,19,31,.12)}
.hb-f1{left:-56px;top:-60px;padding:12px 18px 12px 12px}
.hb-f2{right:-40px;top:-70px;padding:10px 18px 10px 10px;border-radius:26px;font-size:15px;font-weight:700}
.hb-fi{width:38px;height:38px;border-radius:19px;display:flex;align-items:center;justify-content:center;flex:none}
.hb-f2 .hb-fi{width:34px;height:34px;border-radius:17px}
.hb-ft{display:flex;flex-direction:column;text-align:left}
.hb-ft span{font-size:12px;font-weight:600;color:#625975}
.hb-ft b{font-size:15px;font-weight:700}
@media(max-width:1300px){.hb-f1{left:12px}.hb-f2{right:12px}}
@media(max-width:1000px){
  .hb-cta{flex-wrap:wrap;justify-content:center}
  .hb-f1{top:-34px}.hb-f2{top:-38px}
}
@media(max-width:700px){
  .hb-copy{padding-top:32px;gap:18px}
  .hb-lead{font-size:18px;line-height:27px}
  .hb-cta{width:100%;flex-direction:column}
  .hero-b .btn{height:54px;width:100%}
  .hb-stage{margin-top:44px}
  .hb-week{height:300px;border-radius:32px 32px 0 0}
  .hb-oc{zoom:.5}
  .hb-f1{left:8px;top:-30px;padding:8px 14px 8px 8px}.hb-f2{right:8px;top:-34px;padding:6px 14px 6px 6px}
  .hb-fi{width:30px;height:30px;border-radius:15px}.hb-f2 .hb-fi{width:28px;height:28px;border-radius:14px}
  .hb-ft b{font-size:13px}.hb-f2{font-size:13px}
}

/* Текст задач в иллюстрациях идёт по одной линии: плашки с цветом выступают влево на свой отступ,
   так что текст в них начинается там же, где и у строк без плашки. */
.lp .rw{overflow:visible}
.lp .rw .pl{margin-left:-11px}
