/* V5.2 responsive layout. All business rules and form names unchanged. */
:root{--page-width:1200px;--gutter:clamp(12px,3vw,32px);--panel-pad:clamp(14px,2.4vw,28px)}
html{min-width:0;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0;overflow-wrap:break-word}
header{padding-inline:max(var(--gutter),calc((100% - var(--page-width))/2 + 16px));gap:12px;flex-wrap:wrap}
header .brand{min-width:0;max-width:100%;white-space:normal;line-height:1.35}
header .brand span{min-width:0} header nav{flex-wrap:wrap;gap:8px 16px;min-width:0}
header nav a,.lang{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;text-align:center}
main{width:100%;max-width:var(--page-width);padding-inline:var(--gutter);padding-bottom:max(12px,env(safe-area-inset-bottom));min-width:0}
main[data-page=admin],main[data-page=detail],main[data-page=deadlines]{--page-width:1440px}
.panel{padding:var(--panel-pad);min-width:0;max-width:100%}
.narrow{width:100%;max-width:560px}
.hero{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);padding:clamp(20px,4vw,44px);gap:16px}
.hero>* ,.grid>*,.dash-grid>*,.detail-grid>*,.package-grid>*,.plan-preview>*,.steps>*,.intro>*{min-width:0}
.hero h1{font-size:clamp(30px,4.8vw,58px);overflow-wrap:anywhere}
img,svg,video,canvas,iframe{max-width:100%}
.hero .house-art img{display:block;width:100%;height:auto;max-height:350px}
.grid,.dash-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,1.6vw,18px)}
.detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}
.package-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
label,form,fieldset,textarea,select,input,details,summary{min-width:0;max-width:100%}
fieldset{margin-inline:0}
input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;max-width:100%;min-height:48px}
input[type=date],input[type=datetime-local],input[type=time]{appearance:none;-webkit-appearance:none;min-width:0;width:100%;max-width:100%}
input[type=file]{padding:9px;overflow:hidden;white-space:normal;font-size:14px}
input::file-selector-button{max-width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#293a4c;color:#f1f4f8;white-space:normal;margin-inline-end:8px;font:inherit;cursor:pointer}
textarea{resize:vertical;min-height:100px}
button,.primary,.secondary,.link{max-width:100%;white-space:normal;overflow-wrap:anywhere}
button,.primary,.secondary{min-height:44px}
a.primary,a.secondary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;text-align:center;padding:12px 16px;border-radius:10px;vertical-align:middle}
.actions,.subnav,.section-head,.feature-strip,.metric,.service,.summary-line,footer{min-width:0;flex-wrap:wrap}
.actions{align-items:center;gap:10px}
.subnav{gap:6px 12px;align-items:center}
.subnav a{padding:9px 5px;min-height:44px;display:inline-flex;align-items:center}
.subnav form{margin-inline-start:auto;margin-inline-end:0}
.service{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px}
.service b{white-space:normal;text-align:end;overflow-wrap:anywhere}
.check{flex-wrap:nowrap;align-items:flex-start}
.check input,.service input{margin-block-start:4px}
.summary-line{gap:6px 14px;align-items:baseline}
.summary-line>*{min-width:0;overflow-wrap:anywhere}
.summary-line small{white-space:normal}
.summary-line b,.summary-line strong{flex-shrink:0;max-width:100%}
.request-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.8fr);gap:10px;overflow-wrap:anywhere}
.request-row>*{min-width:0}
.account,.key,.file,.detail-grid,.map-verified,.notice,.alert,.success{overflow-wrap:anywhere}
.countdown{width:100%;font-size:clamp(16px,3.2vw,34px);padding:clamp(10px,2vw,20px);line-height:1.5;overflow-wrap:anywhere;text-align:start}
.report-view{padding:clamp(8px,1.5vw,12px);max-width:100%;min-width:0}
.report-view iframe{max-width:100%;height:clamp(280px,65vh,760px)}
.map-image{height:auto;max-width:100%;object-fit:contain}
.feature-strip>div{flex:1;min-width:0}
.intro.with-art{grid-template-columns:minmax(0,1fr) minmax(0,30%)}
footer>*{min-width:0;overflow-wrap:anywhere}
html[dir=rtl] .hero h1{font-size:clamp(27px,4vw,46px);line-height:1.9;letter-spacing:0}
html[dir=rtl] .countdown{direction:ltr;unicode-bidi:isolate;text-align:start}
html[dir=rtl] label,html[dir=rtl] button{letter-spacing:0}
@media(min-width:641px) and (max-width:1023px){
  header{padding-inline:var(--gutter)}
  .hero{gap:12px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
  .hero h1{font-size:clamp(32px,5vw,48px)}
  .package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .intro.with-art{gap:12px}
}
@media(max-width:640px){
  header{padding:10px var(--gutter);display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
  header .brand{font-size:14px;gap:9px}
  header .brand-logo{width:42px;height:42px}
  header nav{width:100%;display:flex;justify-content:space-between;gap:4px;border-top:1px solid var(--line);padding-top:4px}
  header nav a,.lang{font-size:13px;padding:6px 8px;min-height:44px}
  main{padding-top:14px}
  .hero{grid-template-columns:minmax(0,1fr);gap:12px;padding:20px;border-radius:18px}
  .hero h1{font-size:clamp(30px,8vw,43px)}
  .hero .house-art img{max-height:210px}
  .hero p{font-size:15px}
  .grid,.dash-grid,.plan-preview{grid-template-columns:minmax(0,1fr);gap:10px}
  .package-grid,.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .package{padding:12px;margin-bottom:0}
  .steps{gap:6px;margin-bottom:14px}
  .steps div{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:6px 3px;font-size:12px;line-height:1.4}
  .steps b{width:26px;height:26px}
  html[dir=rtl] .steps div{line-height:1.8}
  h2{font-size:21px}
  .actions{flex-direction:column-reverse;align-items:stretch}
  .actions>*{width:100%;text-align:center}
  .panel>button.primary,.panel>button.secondary,.map-form>button{width:100%}
  .subnav form{margin-inline-start:0}
  .subnav a{padding:6px 8px}
  .request-row{grid-template-columns:repeat(2,minmax(0,1fr));font-size:13px}
  .request-row>:first-child{grid-column:1/-1}
  .feature-strip{padding:12px;gap:10px;flex-wrap:nowrap}
  .feature-strip img{width:27%;max-width:95px;flex:none}
  .feature-strip h2{font-size:19px}
  .intro.with-art{grid-template-columns:minmax(0,1fr) minmax(0,25%);gap:8px;min-height:0}
  .intro-art{height:clamp(65px,24vw,125px)}
  .intro.with-art h1{font-size:clamp(26px,7vw,36px)}
  .map-workflow .map-form{padding:12px}
  footer{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
}
@media(max-width:360px){
  .detail-grid,.request-row{grid-template-columns:minmax(0,1fr)}
  .service{grid-template-columns:auto minmax(0,1fr)}
  .service b{grid-column:2;text-align:start}
  .intro.with-art{grid-template-columns:minmax(0,1fr)}
  .intro-art{height:90px;justify-self:center}
  .feature-strip{align-items:flex-start}
  .metric strong{font-size:19px}
}
@media(pointer:coarse){a,button,input,select,textarea{-webkit-tap-highlight-color:#c6def133}}
