:root{
        --container-w: 1380px;
        --container-padding: 0 40px;

        --primary:#2867ed;
        --primary-dark:#1952d1;
        --primary-light:#2aa89a;
        --primary-glow:rgba(40,103,237,.15);
        --bg:#f8fafc;
        --bg-gradient:linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%);
        --panel:#ffffff;
        --line:#e2e8f0;
        --line-light:#f1f5f9;
        --txt:#0f172a;
        --txt-muted:#64748b;
        --txt-light:#94a3b8;
        --radius:20px;
        --radius-sm:14px;
        --radius-lg:28px;
        --sidebar-w: 0px;
        --topbar-h:86px;
        --shadow:0 4px 24px rgba(0,0,0,.04);
        --shadow-hover:0 12px 40px rgba(0,0,0,.08);
        --shadow-lg:0 24px 60px rgba(0,0,0,.12);
        --transition:all .35s cubic-bezier(.4,0,.2,1);
        --transition-sm:all .2s ease;
      }

      *{box-sizing:border-box;margin:0;padding:0}
      html{scroll-behavior:smooth}

      body{
        font-family:'Manrope',-apple-system,BlinkMacSystemFont,sans-serif;
        background:var(--bg-gradient);
        color:var(--txt);
        line-height:1.6;
        -webkit-font-smoothing:antialiased;
        -moz-osx-font-smoothing:grayscale;
        overflow-x:hidden;
      }

      .app{display:flex;min-height:100vh}

      .lmt-modal-overlay{
        position:fixed;
        top:0;
        left:0;
        width:100%;
        height:100%;
        background:rgba(0,0,0,0.85);
        backdrop-filter:blur(8px);
        display:none;
        align-items:center;
        justify-content:center;
        z-index:100000;
      }
      .lmt-modal{
        display: flex;
        background:#fff;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        animation:fadeInScale .2s ease;
        position: relative;
        overflow: hidden;
      }
      @keyframes fadeInScale{
        from{opacity:0; transform:scale(.96);}
        to{opacity:1; transform:scale(1);}
      }
      .lmt-modal-close {
          position: fixed;
          top: 20px;
          right: 20px;
          width: 44px;
          height: 44px;
          background: rgba(0, 0, 0, 0.5);
          backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px);
          border: 1px solid rgba(255, 255, 255, 0.2);
          border-radius: 50%;
          font-size: 24px;
          cursor: pointer;
          color: #ffffff;
          line-height: 1;
          display: flex;
          align-items: center;
          justify-content: center;
          z-index: 100001;
          transition: all 0.2s ease;
          -webkit-tap-highlight-color: transparent;
          touch-action: manipulation;
      }
      .lmt-modal-close:hover {
          background: rgba(0, 0, 0, 0.7);
          transform: scale(1.1);
      }
      .lmt-modal-image {
        flex: 1;
        background-image: url('/wp-content/uploads/2026/05/photo-1588776814546-1ffcf47267a5.avif');
        background-size: cover;
        background-position: center;
        display: block;
      }
      .lmt-modal-form-container {
        flex: 1;
        padding: 48px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        background: #fff;
        overflow-y: auto;
      }
      .lmt-modal-tabs{
        display:flex;
        gap:8px;
        margin-bottom:24px;
        background:#f1f5f9;
        padding:6px;
        border-radius:60px;
      }
      .lmt-tab{
        flex:1;
        background:none;
        border:none;
        padding:8px 0;
        font-weight:500;
        border-radius:40px;
        cursor:pointer;
        color:#64748b;
      }
      .lmt-tab.active{
        background:#2867ed;
        color:white;
      }
      .lmt-modal-form{
        display:none;
      }
      .lmt-modal-form.active{
        display:block;
      }
      .lmt-form-group{
        margin-bottom:18px;
        position: relative;
      }
      .lmt-form-group label{
        display:block;
        font-size:13px;
        font-weight:600;
        margin-bottom:6px;
        color:#1e293b;
      }
      .lmt-form-group input{
        width:100%;
        padding:12px 40px 12px 16px;
        border:1.5px solid #e2e8f0;
        border-radius:14px;
        background:#fff;
      }
      .lmt-form-group input:focus{
        outline:none;
        border-color:#2867ed;
        box-shadow:0 0 0 3px rgba(40,103,237,0.1);
      }
      .lmt-form-group .toggle-password {
        position: absolute;
        right: 12px;
        top: 34px;
        background: none;
        border: none;
        cursor: pointer;
        color: #94a3b8;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        border-radius: 4px;
      }
      .lmt-form-group .toggle-password:hover {
        color: #2867ed;
      }
      .consent-checkbox {
          display: flex;
          align-items: center;
          gap: 8px;
          margin: 16px 0;
      }
      .consent-checkbox input {
          width: 18px;
          height: 18px;
          margin: 0;
      }
      .consent-checkbox label {
          font-size: 12px;
          color: #64748b;
      }
      .consent-checkbox a {
          color: #2867ed;
          text-decoration: none;
      }
      .lmt-submit-btn{
        width:100%;
        background:#2867ed;
        color:#fff;
        border:none;
        padding:12px;
        border-radius:40px;
        font-weight:700;
        cursor:pointer;
        transition:.2s;
        margin-top:8px;
      }
      .lmt-submit-btn:hover{
        background:#0f6b5f;
        transform:translateY(-2px);
      }
      .lmt-message{
        margin-top:16px;
        font-size:14px;
        text-align:center;
      }
      .lmt-message.success{
        color:#10b981;
      }
      .lmt-message.error{
        color:#ef4444;
      }

      /* Оформление курса внутри формы аккаунта. */
      .lmt-modal-overlay.is-checkout{padding:16px;background:rgba(15,23,42,.65);}
      .is-checkout .lmt-modal{width:100%;max-width:560px;height:auto;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);border-radius:24px;box-shadow:0 24px 80px rgba(0,0,0,.2);}
      .is-checkout .lmt-modal-image{display:none;}
      .is-checkout .lmt-modal-form-container{padding:32px;justify-content:flex-start;}
      .is-checkout .lmt-modal-close{position:absolute;top:12px;right:12px;width:36px;height:36px;background:#f1f5f9;color:#334155;border:0;}
      .lmt-checkout-eyebrow{margin:0 44px 12px 0;color:#2867ed;font-size:14px;font-weight:700;}
      .lmt-checkout-summary h2{margin:0 0 12px;color:#0f172a;font-size:24px;line-height:1.3;overflow-wrap:anywhere;}
      .lmt-checkout-price{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;padding:12px 16px;background:#f8fafc;border-radius:12px;font-size:14px;color:#475569;}
      .lmt-checkout-price strong{color:#0f172a;font-size:20px;white-space:nowrap;}
      .lmt-checkout-steps{display:flex;gap:12px;list-style:none;padding:0;margin:0 0 16px;font-size:14px;color:#64748b;}
      .lmt-checkout-steps li{flex:1;padding:8px 0;border-bottom:2px solid #e2e8f0;}
      .lmt-checkout-steps li[aria-current="step"]{color:#0f6b5f;border-color:#2867ed;font-weight:700;}
      .lmt-checkout-explanation{margin:0 0 20px;font-size:14px;line-height:1.55;color:#475569;}
      .is-checkout .lmt-modal-tabs{margin-bottom:20px;}
      .is-checkout .lmt-tab{font-size:14px;padding:10px 6px;}
      .is-checkout .lmt-tab[data-tab="reset"]{display:none;}
      .is-checkout .lmt-form-group{margin-bottom:14px;}
      .is-checkout .lmt-form-group label,.is-checkout .consent-checkbox label{font-size:14px;}
      .is-checkout .lmt-form-group input{font-size:16px;}
      .is-checkout .consent-checkbox{align-items:flex-start;}
      .is-checkout .consent-checkbox input{flex-shrink:0;margin-top:3px;}
      .lmt-password-hint{margin:6px 0 0;font-size:14px;color:#64748b;}
      .lmt-checkout-forgot{display:block;margin:16px auto 0;border:0;background:none;color:#0f6b5f;text-decoration:underline;font-size:14px;cursor:pointer;}
      .lmt-checkout-payment h3{margin:0 0 12px;font-size:20px;color:#0f172a;}
      .lmt-checkout-payment p{margin:0 0 16px;font-size:16px;line-height:1.55;color:#475569;}
      .lmt-checkout-payment a{text-decoration:none;display:block;text-align:center;box-sizing:border-box;}
      .is-checkout-payment .lmt-modal-tabs,.is-checkout-payment .lmt-modal-form,.is-checkout-payment .lmt-checkout-explanation{display:none!important;}
      .lmt-checkout-summary[hidden],.lmt-checkout-payment[hidden],.lmt-checkout-payment [hidden],.lmt-checkout-forgot[hidden]{display:none!important;}
      .is-checkout button:focus-visible,.is-checkout a:focus-visible{outline:3px solid #2867ed;outline-offset:3px;}
      @media(max-width:600px){.is-checkout .lmt-modal-form-container{padding:24px 20px;}.lmt-checkout-summary h2{font-size:21px;}}
      
      /* Toast уведомления */
      .lmt-toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 999999;
        display: flex;
        flex-direction: column;
        gap: 10px;
      }
      .lmt-toast {
        background: white;
        border-radius: 12px;
        padding: 16px 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 500;
        font-size: 14px;
        min-width: 280px;
        transform: translateX(120%);
        transition: transform 0.3s ease;
        border-left: 4px solid #2867ed;
      }
      .lmt-toast.show {
        transform: translateX(0);
      }
      .lmt-toast.error {
        border-left-color: #ef4444;
        color: #991b1b;
      }
      .lmt-toast.success {
        border-left-color: #10b981;
        color: #065f46;
      }
      .lmt-toast .toast-icon {
        font-size: 20px;
        flex-shrink: 0;
      }
      @media(max-width: 1500px){
        :root{
          --container-w: 1140px;
        }
      }
      /* Адаптив для планшетов и мобильных */
      @media (max-width: 900px) {
        .lmt-modal {
          flex-direction: column;
        }
        .lmt-modal-image {
          display: none;
        }
        .lmt-modal-form-container {
          padding: 182px 20px;
          flex: auto;
          justify-content: flex-start;
        }
        .lmt-modal-close {
          top: 16px;
          right: 16px;
          width: 40px;
          height: 40px;
        }
      }

      
.app { display:flex; flex-direction:column; min-height:100vh; }
.main { flex:1; width:100%; max-width:100%; margin-left:0; padding-top:var(--topbar-h); }
.main.ig-home { padding-top:0; }
html { scroll-padding-top:104px; }
p { margin-bottom:1rem; }
@media(max-width:600px){:root{--topbar-h:72px}html{scroll-padding-top:88px}}
