:root{
  --accent:var(--cyan, #00d1e0);
  --accent-dark:var(--cyan-dark, #00a0ad);
  --dark:#0b1219;
  --line-soft:rgba(255,255,255,.08);
  --success:#19a35b;
  --blue:var(--cyan, #00d1e0);
  --blue-dark:var(--cyan-dark, #00a0ad);
  --shadow:0 20px 45px rgba(0,0,0,.24);
  --shadow-soft:0 10px 25px rgba(0,0,0,.16);
  --radius-xl:16px;
  --transition:.35s ease;
  --sidebar-width:360px;
  --sales-max:920px;
  --drawer-h:84px;
  --nav-height:0px;
  --sticky-top:18px;
  --course-page-top:34px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body.theme-docttus-course{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:
    radial-gradient(circle at top right, rgba(0,209,224,.10), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color:var(--text);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  line-height:1.72;
}

[data-theme="light"] body.theme-docttus-course{
  background:linear-gradient(180deg, #ffffff 0%, #f5f6f8 100%);
}

img{ max-width:100%; display:block; }
button, input{ font:inherit; }
a{ color:inherit; text-decoration:none; }
body.with-bar{ padding-bottom:96px; }
body.with-bar .footer{ padding-bottom:26px; }

.commercial-nav-shell{
  width:100%;
  max-height:0;
  overflow:hidden;
  background:rgba(7,7,9,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:max-height .35s ease, border-color .25s ease;
}

.commercial-nav-shell.active{ border-bottom-color:var(--line); }

[data-theme="light"] .commercial-nav-shell{
  background:rgba(255,255,255,.96);
}

.commercial-nav-shell .theme-header{
  position:static;
  top:auto;
  background:transparent;
  backdrop-filter:none;
  border-bottom:none;
  box-shadow:none;
}

.commercial-nav-shell .theme-header__inner{
  min-height:84px;
}

.commercial-nav-inner{
  max-width:1280px;
  margin:0 auto;
  min-height:var(--drawer-h);
  padding:0 5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  font-size:1.35rem;
  font-weight:900;
  letter-spacing:-1px;
  color:var(--text);
}

.brand span{ color:var(--accent); }

.brand--footer{ color:#fff; }

.nav-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.top-icon{
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  background:var(--surface);
}

.top-icon:hover{
  color:var(--cyan);
  border-color:rgba(0,209,224,.26);
}

.top-btn{
  border:1px solid var(--cyan);
  border-radius:999px;
  background:#000;
  color:var(--cyan);
  padding:12px 18px;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  transition:var(--transition);
}

.top-btn:hover{
  transform:translateY(-1px);
  background:var(--cyan);
  color:#fff;
}

.course-theme-dots{
  gap:8px;
}

.page{ padding:var(--course-page-top) 5% 0; }

.course-heading{
  max-width:1280px;
  margin:0 auto 30px;
}

.course-heading__inner{
  max-width:1160px;
  margin:0 auto;
  text-align:center;
}

.course-heading__title{
  margin:0 auto;
  color:var(--text);
  display:block;
  font-family:inherit;
  font-size:clamp(2.5rem,4vw,4rem);
  line-height:1.1;
  letter-spacing:0;
  font-weight:700;
  text-wrap:pretty;
  overflow-wrap:normal;
  word-break:normal;
  max-width:min(1120px, calc(100% - 24px));
  padding:0 12px .12em;
}

.course-heading__title--medium{
  font-size:clamp(2.35rem,3.55vw,3.55rem);
  max-width:min(1120px, calc(100% - 24px));
}

.course-heading__title--long{
  font-size:clamp(2.1rem,3.2vw,3.1rem);
  line-height:1.11;
  max-width:min(1120px, calc(100% - 24px));
}

.course-heading__subtitle{
    max-width:86ch;
    margin:20px auto 0;
    padding-inline:12px;
    color:color-mix(in srgb, var(--text) 82%, white 18%);
    display:block;
    font-size:clamp(1.26rem,1.5vw,1.55rem);
    font-weight:500;
    letter-spacing:-0.01em;
    text-wrap:balance;
    font-weight:500;
    line-height:1.72;
  line-height:1.82;
  font-weight:400;
  letter-spacing:-.008em;
  text-wrap:pretty;
  padding-bottom:.08em;
}

@supports (-webkit-line-clamp: 2) {
  .course-heading__subtitle{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
  }
}

.course-heading__subtitle--long{
    max-width:82ch;
    font-size:clamp(1.14rem,1.26vw,1.32rem);
}

.page-shell{
  position:relative;
  max-width:1280px;
  margin:0 auto;
  display:flex;
  align-items:flex-start;
  gap:34px;
  transition:gap var(--transition);
}

.page-shell.mode-sales{
  justify-content:center;
  gap:0;
}

.course-menu-floating-dock{
  position:absolute;
  top:10px;
  left:-48px;
  z-index:30;
}

.floating-menu-btn{
  width:36px;
  height:36px;
  border:none;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:0 10px 22px rgba(0,0,0,.18);
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease;
}

.floating-menu-btn:hover{
  transform:translateY(-1px);
  color:var(--cyan);
  border-color:rgba(0,209,224,.24);
  box-shadow:0 14px 26px rgba(0,0,0,.22);
}

.floating-menu-btn i{
  font-size:12px;
  transition:transform .25s ease;
}

[data-theme="light"] .floating-menu-btn{
  background:#ffffff;
  color:#64748b;
  box-shadow:0 10px 22px rgba(15,23,42,.09);
}

[data-theme="light"] .floating-menu-btn:hover{
  box-shadow:0 14px 24px rgba(15,23,42,.12);
}

.floating-menu-btn.active i{ transform:rotate(90deg); }

.content-column{
  flex:1 1 auto;
  min-width:0;
  transition:max-width var(--transition), margin var(--transition), flex-basis var(--transition);
}

.page-shell.mode-sales .content-column{
  flex:0 1 var(--sales-max);
  max-width:var(--sales-max);
  margin:0;
}

.sidebar-column{
  position:sticky;
  top:var(--sticky-top);
  align-self:flex-start;
  flex:0 0 var(--sidebar-width);
  width:var(--sidebar-width);
  min-width:0;
  overflow:visible;
  z-index:15;
  transition:flex-basis var(--transition), width var(--transition);
}

.page-shell.mode-sales .sidebar-column{
  flex-basis:0;
  width:0;
}

.footer{
  margin-top:90px;
  background:var(--bg);
  color:#fff;
  text-align:center;
  padding:64px 5% 8px;
  border-top:1px solid var(--line);
}

.footer-legal{
  max-width:980px;
  margin:0 auto;
  display:grid;
  gap:14px;
  text-align:center;
}

.footer-legal p{
  margin:0;
  color:#94a3b8;
  font-size:12px;
  line-height:1.78;
}

.footer-copy{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
  font-size:12px;
  color:#94a3b8;
  text-align:center;
}

@media (max-width:1160px){
  .course-menu-floating-dock{
    left:0;
    top:-44px;
  }
}

@media (max-width:1080px){
  .course-heading{
    margin-bottom:22px;
  }

  .course-heading__inner{
    max-width:100%;
    padding-inline:12px;
  }

  .course-heading__title{
    display:block;
    font-size:clamp(2rem,6.1vw,3rem);
    line-height:1.04;
    letter-spacing:0;
    max-width:19ch;
    overflow:visible;
    -webkit-line-clamp:unset;
  }

  .course-heading__title--medium{
    font-size:clamp(1.9rem,5.7vw,2.7rem);
    max-width:20ch;
  }

  .course-heading__title--long{
    font-size:clamp(1.75rem,5.1vw,2.35rem);
    max-width:21ch;
  }

  .course-heading__subtitle{
      max-width:62ch;
      margin-top:16px;
      font-size:1.18rem;
      line-height:1.72;
      -webkit-line-clamp:unset;
      overflow:visible;
  }

  .page-shell{
    flex-direction:column;
    gap:24px;
  }

  .page-shell.mode-sales{ justify-content:flex-start; }

  .content-column,
  .page-shell.mode-sales .content-column{
    flex:1 1 auto;
    max-width:none;
    width:100%;
  }

  .sidebar-column,
  .page-shell.mode-sales .sidebar-column{
    position:static;
    top:auto;
    flex:1 1 auto;
    width:100%;
  }

  .course-menu-floating-dock{ display:none; }
}

@media (max-width:640px){
  .course-heading__inner{
    padding-inline:0;
  }

  .course-heading__title{
    width:100%;
    min-width:0;
    font-size:clamp(1.34rem,5.7vw,1.72rem);
    line-height:1.18;
    letter-spacing:0;
    max-width:min(100%, 12em);
    overflow-wrap:break-word;
    text-wrap:wrap;
    padding-inline:0;
  }

  .course-heading__title--medium,
  .course-heading__title--long{
    font-size:clamp(1.34rem,5.7vw,1.72rem);
    line-height:1.18;
    max-width:min(100%, 12em);
  }

  .course-heading__subtitle{
      max-width:40ch;
      margin-top:12px;
      font-size:1.06rem;
      line-height:1.68;
    }
  }

@media (max-width:380px){
  .course-heading__inner{
    padding-inline:12px;
  }

  .course-heading__title,
  .course-heading__title--medium,
  .course-heading__title--long{
    font-size:1.28rem;
    line-height:1.18;
    letter-spacing:0;
    max-width:min(100%, 12em);
  }

  .course-heading__subtitle{
      max-width:34ch;
      font-size:1rem;
      line-height:1.64;
    }
  }

@media (max-width:768px){
  .page{ padding:22px 16px 0; }

  .footer{
    padding:52px 16px 8px;
  }

  body.with-bar .footer{
    padding-bottom:24px;
  }

  .footer-legal{
    text-align:center;
  }

  .commercial-nav-shell{
    max-height:none !important;
    overflow:visible;
  }

  body,
  body.with-bar{
    padding-bottom:188px;
  }
}

@media (max-width:560px){
  .brand{ font-size:1.15rem; }

  .top-icon{
    width:36px;
    height:36px;
  }

  .top-btn{
    padding:10px 14px;
    font-size:13px;
  }
}
