:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#5b6475;
  --line:#e6eaf2;
  --primary:#c6e2ff;
  --primary-2:#b7d8fb;
  --header-bg:#c6e2ff;
  --footer-bg:#c6e2ff;
  --radius:18px;
  --header-h:76px;
  --danger:#d62839;
  --danger-2:#be2131;
}

*{box-sizing:border-box;margin:0;padding:0;}
html,body{width:100%;overflow-x:hidden;}

body{
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}

.container{
  width:100%;
  max-width:1380px;
  padding:0 28px;
  margin:0 auto;
}

@media (max-width:520px){
  .container{padding:0 16px;}
}

.mt-16{margin-top:16px;}
.mt-24{margin-top:24px;}
.mt-32{margin-top:32px;}
.muted{color:var(--muted);}
.text-center{text-align:center;}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--header-bg);
  border-bottom:1px solid rgba(0,0,0,.08);
}

.header-inner{
  min-height:var(--header-h);
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
  padding:10px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand img{
  width:44px;
  height:44px;
  object-fit:contain;
}

.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width:0;
}

.brand-title strong{
  font-size:16px;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brand-title span{
  font-size:12px;
  color:rgba(11,18,32,.70);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-evenly;
  gap:12px;
  width:100%;
}

.nav a{
  padding:8px 6px;
  color:#0b1220;
  font-weight:800;
  transition:color .15s ease;
}

.nav a:hover{
  color:#ffffff;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}

.nav a.active{
  color:#0b1220;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:6px;
}

.burger{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:none;
  border-radius:12px;
  background:rgba(255,255,255,.35);
  cursor:pointer;
}

.burger-lines{
  width:18px;
  height:12px;
  position:relative;
}

.burger-lines span{
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:#0b1220;
  border-radius:999px;
}

.burger-lines span:nth-child(1){top:0;}
.burger-lines span:nth-child(2){top:5px;opacity:.75;}
.burger-lines span:nth-child(3){bottom:0;}

.mobile-drawer{
  display:none;
  padding:10px 0 16px 0;
}

.mobile-drawer a{
  display:block;
  padding:12px 6px;
  border:none;
  background:transparent;
  margin-top:10px;
  font-weight:900;
  color:#0b1220;
}

.mobile-drawer a:hover{
  color:#ffffff;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}

.mobile-drawer.show{display:block;}

.btn,
.auth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:12px 18px;
  border-radius:0;
  border:1px solid #9fc7ef;
  background:var(--header-bg);
  color:var(--text);
  cursor:pointer;
  font-weight:800;
  font-size:15px;
  transition:none;
  box-shadow:none;
}

.btn:hover,
.auth-btn:hover{
  background:var(--header-bg);
  border-color:#9fc7ef;
  transform:none;
  opacity:1;
}

.btn-primary{
  border:1px solid #9fc7ef;
  background:var(--header-bg);
  color:var(--text);
}

.btn-outline{
  background:#fff;
  border:1px solid var(--line);
}

.btn-danger{
  background:var(--danger);
  border:1px solid var(--danger);
  color:#fff;
}

.btn-danger:hover{
  background:var(--danger);
  border-color:var(--danger);
}

.icon-btn{
  width:44px;
  min-width:44px;
  height:44px;
  padding:0;
  font-size:18px;
  line-height:1;
}

.home-banner{
  width:100%;
  min-height:calc(100vh - var(--header-h));
  position:relative;
  background:
    linear-gradient(90deg, rgba(11,18,32,.72), rgba(11,18,32,.14)),
    url("../assets/images/home_banner.jpg");
  background-size:cover;
  background-position:center;
}

.home-banner .container{
  min-height:calc(100vh - var(--header-h));
  display:flex;
  align-items:flex-end;
  padding-bottom:40px;
}

.banner-content{
  max-width:860px;
  color:#fff;
}

.banner-content h1{
  font-size:clamp(30px,3.5vw,56px);
  line-height:1.05;
}

.banner-content p{
  margin-top:12px;
  font-size:16px;
  color:rgba(255,255,255,.9);
}

.services{padding:70px 0 40px 0;}

.services-title{
  text-align:center;
  font-size:clamp(28px,2.8vw,38px);
  font-weight:900;
  letter-spacing:-0.35px;
  margin-bottom:44px;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:44px;
  align-items:start;
}

.service-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
}

.service-media{
  width:100%;
  max-width:340px;
  height:180px;
  margin:0 auto;
  border-radius:18px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
}

.service-media img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.service-image-large{
  transform:scale(1.18);
  transform-origin:center center;
}

.service-card h3{
  font-size:20px;
  font-weight:900;
  letter-spacing:-0.2px;
  margin-top:4px;
  max-width:560px;
}

.service-card p{
  color:var(--muted);
  max-width:560px;
}

.service-link{
  margin-top:10px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  border-bottom:2px solid rgba(11,18,32,.18);
  padding-bottom:4px;
  transition:opacity .2s ease, border-color .2s ease;
  max-width:560px;
}

.service-link:hover{
  opacity:.7;
  border-color:rgba(11,18,32,.35);
}

.about-page{padding:0 0 30px 0;}

.about-intro{
  padding:80px 0 34px 0;
  text-align:center;
}

.about-intro h1{
  font-size:clamp(34px,3.3vw,54px);
  font-weight:900;
  letter-spacing:-0.4px;
}

.about-intro p{
  max-width:980px;
  margin:20px auto 0 auto;
  font-size:18px;
  line-height:1.85;
  color:var(--muted);
}

.about-layout{padding:20px 0 90px 0;}

.about-layout-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:28px;
  align-items:stretch;
}

.about-visual-panel,
.about-content-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:28px;
  min-height:100%;
}

.about-visual-panel{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:24px;
}

.about-layout-image{
  border:1px solid var(--line);
  overflow:hidden;
  background:#f8fbff;
}

.about-layout-image-square{
  border-radius:0;
}

.about-layout-image-square img{
  width:100%;
  height:100%;
  min-height:420px;
  object-fit:cover;
}

.about-content-panel{
  display:flex;
  flex-direction:column;
}

.about-content-panel h2{
  font-size:38px;
  font-weight:900;
  letter-spacing:-0.35px;
  margin-bottom:20px;
  line-height:1.05;
}

.about-items{
  display:grid;
  gap:18px;
  height:100%;
}

.about-item{
  border:1px solid var(--line);
  background:#f8fbff;
  padding:20px 22px;
}

.about-item h3{
  font-size:22px;
  font-weight:900;
  margin-bottom:8px;
}

.about-item p{
  font-size:17px;
  line-height:1.75;
  color:var(--muted);
}

.about-summary-box{
  margin-top:auto;
  padding:20px 22px;
  border-left:4px solid #9fc7ef;
  background:#f8fbff;
  color:var(--text);
  line-height:1.8;
}

.weather-page{padding:90px 0;}

.weather-center{
  text-align:center;
  max-width:1200px;
  margin:0 auto;
}

.weather-center h1{
  font-size:42px;
  font-weight:900;
  margin-bottom:16px;
}

.weather-text{
  font-size:18px;
  color:var(--muted);
  margin:0 auto 36px auto;
  max-width:860px;
  line-height:1.8;
}

.weather-widget-frame{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
}

.weather-widget-frame iframe{
  width:100%;
  height:600px;
  border:0;
  display:block;
}

.weather-widget-tall iframe{
  height:650px;
}

.auth-page{
  min-height:calc(100vh - var(--header-h));
  display:flex;
  align-items:stretch;
}

.auth-container{
  display:grid;
  grid-template-columns:1fr 1fr;
  width:100%;
  max-width:1400px;
  margin:0 auto;
  min-height:calc(100vh - var(--header-h));
  align-items:stretch;
}

.auth-left{
  padding:110px 80px 40px 80px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-self:start;
  position:sticky;
  top:calc(var(--header-h) + 6px);
}

.auth-left h1{
  font-size:48px;
  font-weight:900;
  margin-bottom:24px;
}

.auth-left p{
  font-size:18px;
  line-height:1.7;
  color:var(--muted);
  max-width:520px;
}

.auth-right{
  padding:80px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  max-width:560px;
  width:100%;
  margin:0 auto;
  border-left:1px solid var(--line);
}

.auth-right-inner{
  width:100%;
}

.auth-title{
  font-size:28px;
  font-weight:900;
  margin-bottom:32px;
}

.auth-notice{
  margin-bottom:18px;
}

.auth-switch{
  display:flex;
  gap:14px;
  width:100%;
  margin-bottom:28px;
}

.auth-switch button{
  flex:1;
  padding:12px 18px;
  border:1px solid var(--header-bg);
  background:#fff;
  cursor:pointer;
  font-weight:800;
  font-size:15px;
  border-radius:0;
  color:var(--text);
}

.auth-switch button.active{background:var(--header-bg);}

.auth-forms-stage{
  min-height:560px;
}

.auth-right form{width:100%;}

.auth-right label,
.form-label,
.file-label,
.checkbox-label{
  display:block;
  margin-bottom:6px;
  font-weight:700;
  color:var(--text);
}

.auth-right input,
.auth-right select,
.input,
select,
textarea{
  width:100%;
  padding:14px 14px;
  border:1px solid #d7e2ef;
  background:#fff;
  color:var(--text);
  outline:none;
  border-radius:0;
  font:inherit;
}

.auth-right input{margin-bottom:18px;}

.auth-right input:focus,
.auth-right select:focus,
.input:focus,
select:focus,
textarea:focus{
  border-color:#9fc7ef;
}

textarea{
  min-height:140px;
  resize:vertical;
}

.auth-grid-2,
.form-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.form-grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.captcha-real-wrap{
  display:flex;
  justify-content:flex-start;
  margin:6px 0 20px 0;
}

.hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

.manager-checkbox-wrap{
  margin:-2px 0 18px 0;
}

.manager-checkbox-label{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  color:var(--text);
}

.manager-checkbox-label input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0;
  accent-color:#9fc7ef;
  flex:0 0 auto;
}

.site-footer{
  margin-top:54px;
  padding:30px 0 36px 0;
  border-top:1px solid rgba(0,0,0,.08);
  background:var(--footer-bg);
}

.footer-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px;
  align-items:stretch;
}

.footer-left{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:220px;
  padding:8px 0;
}

.footer-contacts{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-title{
  font-weight:900;
  letter-spacing:-0.2px;
  font-size:16px;
}

.footer-muted{color:rgba(11,18,32,.78);}
.footer-muted strong{font-weight:900;}

.footer-copy{
  margin-top:18px;
  font-weight:900;
  color:#0b1220;
}

.footer-map iframe{
  width:100%;
  height:220px;
  border:0;
  border-radius:var(--radius);
}

.page-wrap{padding:80px 0 70px 0;}

.page-intro{
  text-align:center;
  margin-bottom:54px;
}

.page-intro h1{
  font-size:clamp(32px,3vw,50px);
  font-weight:900;
  letter-spacing:-0.4px;
  margin-bottom:14px;
}

.page-intro p{
  max-width:920px;
  margin:0 auto;
  font-size:18px;
  line-height:1.8;
  color:var(--muted);
}

.page-block{margin-bottom:52px;}

.page-block h2{
  font-size:28px;
  font-weight:900;
  margin-bottom:18px;
  letter-spacing:-0.25px;
}

.clean-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px;
}

.page-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}

.page-actions.centered{
  justify-content:center;
  align-items:center;
}

.clean-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.clean-grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.data-card{
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}

.data-card h3{
  font-size:20px;
  font-weight:900;
  margin-bottom:12px;
}

.data-card p,
.data-card li{
  color:var(--muted);
  line-height:1.7;
}

.notice-success,
.notice-error{
  margin-bottom:24px;
  font-weight:700;
}

.notice-success{color:#135f29;}
.notice-error{color:#b00020;}

.notice-inline-document{
  max-width:100%;
  margin:0 0 24px 0;
}

.notice-success-centered{
  text-align:center;
}

.success-center-text{
  display:block;
  text-align:center;
}

.plan-form-wrap{
  max-width:1180px;
  margin:0 auto;
  padding:34px;
}

.plan-form-wrap-flat{
  padding:0;
  background:transparent;
  border:none;
  border-radius:0;
}

.document-shell{
  border:1px solid var(--line);
  background:#fcfdff;
  padding:28px;
}

.document-title{
  text-align:center;
  margin-bottom:26px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}

.document-title h2{
  font-size:30px;
  font-weight:900;
  margin-bottom:8px;
}

.document-title p{
  color:var(--muted);
  max-width:760px;
  margin:0 auto;
}

.plan-section{
  margin-bottom:24px;
  padding:24px;
  border:1px solid var(--line);
  background:#fff;
}

.plan-section h3{
  font-size:22px;
  font-weight:900;
  margin-bottom:18px;
}

.plan-note{
  margin-top:14px;
  color:var(--muted);
  font-size:14px;
  text-align:center;
}

.document-shell-view .plan-section:last-of-type{
  margin-bottom:0;
}

.detail-field{
  display:flex;
  flex-direction:column;
}

.detail-box{
  min-height:54px;
  padding:14px 14px;
  border:1px solid #d7e2ef;
  background:#fff;
  color:var(--text);
  display:flex;
  align-items:center;
  border-radius:0;
  word-break:break-word;
}

.detail-box-text{
  min-height:140px;
  align-items:flex-start;
  line-height:1.7;
  white-space:normal;
}

.view-plan-actions-bottom{
  margin-top:10px;
}

.history-list{
  display:grid;
  gap:16px;
}

.history-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:16px;
  padding:20px 22px;
  border:1px solid var(--line);
  align-items:center;
  background:#fff;
}

.history-main strong{
  display:block;
  font-size:18px;
  margin-bottom:6px;
}

.history-main span{
  color:var(--muted);
}

.history-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}

.profile-layout{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:30px;
  align-items:stretch;
}

.profile-layout-equal{
  align-items:stretch;
}

.profile-sidebar-card,
.profile-main-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px;
}

.profile-card-equal{
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.profile-sidebar{text-align:center;}

.profile-avatar-box{
  width:180px;
  height:180px;
  margin:0 auto 18px auto;
  border-radius:24px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#f8fafc;
  display:flex;
  align-items:center;
  justify-content:center;
}

.profile-avatar-box img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.profile-meta{
  color:var(--muted);
  line-height:1.7;
}

.profile-main-card h2{margin-bottom:18px;}

.profile-form-stretch{
  display:flex;
  flex-direction:column;
  height:100%;
}

.profile-actions-bottom{
  margin-top:auto;
}

.profile-upload-form{
  display:flex;
  flex-direction:column;
}

.custom-file-area{
  margin-top:4px;
}

.custom-file-area-inline{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.custom-file-hidden{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.custom-file-trigger{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  width:100%;
  padding:14px 16px;
  border:1px solid #d7e2ef;
  background:#fff;
  color:var(--text);
  border-radius:0;
  cursor:pointer;
  font-weight:700;
}

.custom-file-trigger-large{
  min-height:58px;
  min-width:210px;
  width:auto;
  padding:16px 26px;
  font-size:16px;
  flex:0 0 auto;
}

.custom-file-trigger:hover{
  border-color:#9fc7ef;
}

.custom-file-name{
  display:flex;
  align-items:center;
  min-height:58px;
  color:var(--muted);
  font-size:15px;
  line-height:1;
  text-align:left;
}

.file-input-wrap input[type="file"]{
  padding:11px 12px;
}

.hero-actions,
.grid{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}

.grid.grid-2 > *{
  flex:1 1 320px;
}

.section .muted > div{margin-bottom:8px;}
.sep{border:none;border-top:1px solid var(--line);margin:12px 0 14px 0;}
.help{color:var(--muted);}

@media print{
  .site-header,
  .site-footer,
  .no-print,
  .page-intro{
    display:none !important;
  }

  body{
    background:#fff;
  }

  .container{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  .page-wrap{
    padding:0 !important;
  }

  .clean-panel,
  .plan-form-wrap{
    border:none !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0 !important;
    max-width:none !important;
  }

  .document-shell{
    border:none !important;
    padding:0 !important;
    background:#fff !important;
  }

  .plan-section{
    border:none !important;
    padding:0 0 18px 0 !important;
    background:#fff !important;
    break-inside:avoid;
  }

  .detail-box{
    border:none !important;
    padding:2px 0 !important;
    min-height:auto !important;
    background:#fff !important;
  }

  .page-actions{
    display:none !important;
  }
}

/* Responsive */
@media (max-width:980px){
  .nav{display:none;}
  .burger{display:inline-flex;}

  .services-grid,
  .about-layout-grid,
  .clean-grid-2,
  .clean-grid-3,
  .profile-layout,
  .auth-container,
  .form-grid-3{
    grid-template-columns:1fr;
  }

  .service-media{
    max-width:100%;
    height:200px;
  }

  .footer-grid{grid-template-columns:1fr;}
  .footer-left{min-height:auto;}
  .home-banner .container{padding-bottom:28px;}

  .auth-left{
    text-align:center;
    padding:56px 24px 40px 24px;
    position:static;
  }

  .auth-left p{margin:0 auto;}

  .auth-right{
    border-left:none;
    padding:40px 24px 56px 24px;
    max-width:100%;
  }

  .auth-forms-stage{
    min-height:unset;
  }

  .history-row{
    grid-template-columns:1fr;
    align-items:start;
  }

  .history-actions{justify-content:flex-start;}

  .profile-sidebar{
    text-align:left;
  }

  .profile-avatar-box{margin-left:0;}

  .about-layout-image-square img{
    min-height:280px;
  }
}

@media (max-width:640px){
  .auth-grid-2,
  .form-grid-2{
    grid-template-columns:1fr;
    gap:0;
  }

  .auth-left h1{font-size:38px;}

  .document-shell,
  .plan-section,
  .profile-sidebar-card,
  .profile-main-card,
  .about-visual-panel,
  .about-content-panel,
  .clean-panel{
    padding:20px;
  }

  .weather-widget-tall iframe{
    height:560px;
  }

  .captcha-real-wrap{
    transform:scale(.94);
    transform-origin:left top;
  }

  .service-image-large{
    transform:scale(1.12);
  }

  .custom-file-area-inline{
    align-items:flex-start;
  }

  .custom-file-name{
    min-height:auto;
    line-height:1.4;
  }
}
.captcha-real-wrap{
  margin-top:16px;
  display:flex;
  justify-content:center;
}

.custom-file-area{
  width:100%;
}

.custom-file-area-inline{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.custom-file-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.custom-file-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 18px;
  border:1px solid #9fc7ef;
  background:var(--header-bg);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}

.custom-file-trigger-large{
  min-width:220px;
}

.custom-file-trigger:hover{
  background:var(--header-bg);
  border-color:#9fc7ef;
}

.custom-file-name{
  color:var(--muted);
  font-size:14px;
}

.profile-upload-file-center{
  justify-content:center;
}

.profile-upload-file-center .custom-file-trigger-large{
  min-width:240px;
}

@media (max-width:768px){
  .captcha-real-wrap{
    justify-content:flex-start;
  }

  .custom-file-area-inline{
    justify-content:center;
  }

  .custom-file-name{
    width:100%;
    text-align:center;
  }

  .profile-upload-file-center{
    justify-content:center;
  }
}
#loginForm .auth-btn,
#registerForm .auth-btn{
  display:block;
  width:100%;
  max-width:300px;
  margin:20px auto 0 auto;
  text-align:center;
}