/*
  WebCraft KZ shared layout rules
  - Use .container for section content.
  - Use .wc-grid for repeating card/tool/portfolio grids.
  - Use CSS variables from :root; avoid random one-off values.
  - Do not introduce fixed content widths; use max-width + minmax().
  - Test every layout at 375px and 1440px before publishing.
*/
:root{
  --navy:#0B1629;
  --navy-2:#081225;
  --blue:#2563EB;
  --blue-2:#1D4ED8;
  --slate:#94A3B8;
  --light:#F0F4FF;
  --white:#FFFFFF;
  --border:rgba(255,255,255,.08);
  --border-strong:rgba(255,255,255,.13);
  --surface:rgba(255,255,255,.025);
  --header-height:76px;
  --section-pad:80px;
  --container-max:1100px;
  --container-pad:20px;
  --gap:24px;
  --radius:14px;
  --font-display:'Space Grotesk',sans-serif;
  --font-body:'Inter',sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--header-height)}
body.webcraft-site{margin:0;min-width:0;max-width:100%;overflow-x:hidden;background:var(--navy);color:var(--white);font-family:var(--font-body);line-height:1.6;-webkit-font-smoothing:antialiased}
img,svg,video{max-width:100%;height:auto}
.container{width:100%;max-width:var(--container-max);margin:0 auto;padding-left:var(--container-pad);padding-right:var(--container-pad)}
section[id]{scroll-margin-top:var(--header-height)}
.wc-header{position:sticky;top:0;z-index:1000;width:100%;background:var(--navy);border-bottom:1px solid var(--border)}
.wc-nav{min-height:var(--header-height);display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:24px}
.wc-logo{font-family:var(--font-display);font-size:1.25rem;font-weight:700;letter-spacing:-.02em;color:var(--white);text-decoration:none;white-space:nowrap}
.wc-logo span{color:var(--blue)}
.wc-links{display:flex;align-items:center;justify-content:center;gap:clamp(16px,2.4vw,28px);list-style:none;margin:0;padding:0;min-width:0}
.wc-links a{font-size:.875rem;color:var(--slate);text-decoration:none;white-space:nowrap;transition:color .2s}
.wc-links a:hover,.wc-links a:focus-visible{color:var(--white)}
.wc-cta{background:var(--blue);color:var(--white)!important;border-radius:8px;padding:10px 18px;font-weight:600}
.wc-cta:hover,.wc-cta:focus-visible{background:var(--blue-2)}
.wc-lang{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--border-strong);border-radius:9px;background:rgba(255,255,255,.035);white-space:nowrap}
.wc-lang a{border:0;background:transparent;color:var(--slate);font:600 12px var(--font-body);padding:6px 8px;border-radius:6px;min-width:32px;text-align:center;text-decoration:none}
.wc-lang a.active,.wc-lang a:hover,.wc-lang a:focus-visible{background:var(--blue);color:var(--white)}
.wc-toggle{display:none;border:1px solid var(--border-strong);background:var(--surface);color:var(--white);border-radius:9px;min-width:44px;min-height:44px;font-size:20px;cursor:pointer}
body.webcraft-site section{padding:var(--section-pad) var(--container-pad)}
body.webcraft-site .hero{min-height:calc(100vh - var(--header-height));padding-top:80px;padding-bottom:80px}
.wc-grid,.services-grid,.pricing-grid,.portfolio-grid,.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--gap)}
.services-grid,.pricing-grid,.portfolio-grid,.tools-grid{background:transparent;border:0;overflow:visible}
.service-card,.price-card,.portfolio-card,.tool-chip{height:100%}
.service-card,.price-card{display:flex;flex-direction:column}
.price-btn{margin-top:auto}
.price-card.featured{border-color:rgba(37,99,235,.55);background:rgba(37,99,235,.08)}
.quote-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.quote-field{min-width:0}
.quote-field.full{grid-column:1/-1}
.quote-field label{display:block;margin-bottom:8px;color:var(--white);font-size:.9rem;font-weight:600}
.quote-field input,.quote-field select,.quote-field textarea{width:100%;min-width:0;height:48px;border:1px solid var(--border-strong);border-radius:10px;background:rgba(255,255,255,.035);color:var(--white);padding:0 14px;font:16px var(--font-body);outline:none}
.quote-field textarea{height:auto;min-height:140px;padding:12px 14px;resize:vertical}
.quote-field input:focus,.quote-field select:focus,.quote-field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.18)}
.legal-consent label{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.legal-consent input[type=checkbox]{width:20px;height:20px;min-width:20px;margin:2px 0 0;accent-color:var(--blue)}
.wc-footer{padding:56px var(--container-pad) 28px;border-top:1px solid var(--border);background:rgba(0,0,0,.12)}
.wc-footer-grid{width:100%;max-width:var(--container-max);margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.wc-footer-column{min-width:0;display:flex;flex-direction:column;gap:9px}
.wc-footer-column h3{margin:0 0 6px;font:600 1rem var(--font-display)}
.wc-footer-column a{color:var(--slate);text-decoration:none;font-size:.875rem;overflow-wrap:anywhere}
.wc-footer-column a:hover{color:var(--white)}
.wc-footer-bottom{width:100%;max-width:var(--container-max);margin:34px auto 0;display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}
.wc-footer-bottom a{color:var(--slate);text-decoration:none}
.wc-footer-copy{color:var(--slate);font-size:.8rem}
.wc-pricing-links{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:24px}
.wc-pricing-links a{color:var(--slate);text-decoration:none;font-size:.9rem}
.wc-pricing-links a:hover{color:var(--white)}
@media(max-width:900px){
  :root{--header-height:68px}
  .wc-nav{grid-template-columns:auto auto auto;justify-content:space-between;gap:12px}
  .wc-links{display:none;position:absolute;top:100%;left:0;right:0;padding:12px 20px 18px;background:var(--navy);border-bottom:1px solid var(--border);box-shadow:0 18px 40px rgba(0,0,0,.28);flex-direction:column;align-items:stretch;gap:4px}
  .wc-links.mobile-open{display:flex}
  .wc-links li{width:100%}
  .wc-links a{display:block;padding:13px 12px;border-radius:8px}
  .wc-links a:hover,.wc-links a:focus-visible{background:rgba(255,255,255,.04)}
  .wc-links .wc-cta{margin-top:6px;text-align:center}
  .wc-lang{justify-self:end}
  .wc-toggle{display:inline-flex;align-items:center;justify-content:center;justify-self:end}
  .wc-nav>.wc-cta{display:none}
  body.webcraft-site .hero{min-height:auto;padding-top:56px;padding-bottom:56px}
  .wc-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
  :root{--section-pad:48px;--container-pad:16px;--gap:24px}
  body.webcraft-site section{padding:var(--section-pad) var(--container-pad)}
  body.webcraft-site .hero{padding-top:48px;padding-bottom:48px}
  .container{padding-left:16px;padding-right:16px}
  .wc-grid,.services-grid,.pricing-grid,.portfolio-grid,.tools-grid{grid-template-columns:1fr}
  .quote-grid{grid-template-columns:1fr}
  .quote-field.full{grid-column:auto}
  .wc-footer{padding:40px 16px 24px}
  .wc-footer-grid{grid-template-columns:1fr;gap:26px}
  .wc-footer-bottom{margin-top:28px;align-items:flex-start;flex-direction:column}
}
@media(max-width:380px){
  .wc-nav{gap:7px}
  .wc-logo{font-size:1.05rem}
  .wc-lang a{padding:6px 5px;min-width:27px}
}
/* Final layout corrections */
.webcraft-site .hero-placeholder-blocks{display:flex;flex-direction:column;gap:10px;margin:18px 0 22px;max-width:360px}
.webcraft-site .hero-placeholder-blocks span{display:block;height:10px;border-radius:999px;background:rgba(255,255,255,.08)}
.webcraft-site .hero-placeholder-blocks span:nth-child(2){width:78%}
.webcraft-site .hero-placeholder-blocks span:nth-child(3){width:58%}
.webcraft-site .process-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--gap);max-width:none}
.webcraft-site .process-item{height:100%;border:1px solid var(--border);border-radius:var(--radius);padding:24px;background:var(--surface);display:flex}
.webcraft-site .services-grid,.webcraft-site .pricing-grid,.webcraft-site .portfolio-grid,.webcraft-site .tools-grid{align-items:stretch}
.webcraft-site .service-card,.webcraft-site .price-card,.webcraft-site .portfolio-card,.webcraft-site .tool-chip{min-width:0}
.webcraft-site .service-price{white-space:nowrap}
@media(max-width:767px){.webcraft-site .process-list{grid-template-columns:1fr}.webcraft-site .process-item{padding:22px 18px}}
.webcraft-site .hero>.container{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:center;gap:clamp(40px,6vw,72px);position:relative}
@media(max-width:900px){.webcraft-site .hero>.container{grid-template-columns:1fr;gap:40px}.webcraft-site .hero-content{max-width:none}.webcraft-site .hero-visual{min-height:0}}
.webcraft-site .hero-premium{padding-top:80px;padding-bottom:80px}
@media(max-width:900px){.webcraft-site .hero-premium{padding-top:56px;padding-bottom:56px}}
@media(max-width:767px){.webcraft-site .hero-premium{padding-top:48px;padding-bottom:48px}}

/* Final hero spacing fix — keeps the existing design, only tightens the first viewport. */
.webcraft-site .hero-premium > .container{
  min-height:0;
  width:100%;
}
.webcraft-site .hero-premium .hero-content{
  max-width:620px;
  padding:0;
}
.webcraft-site .hero-premium .hero-content h1{
  max-width:620px;
  font-size:clamp(3rem,5.2vw,4.5rem);
  line-height:1.02;
  margin-bottom:20px;
}
.webcraft-site .hero-premium .hero-visual{
  min-height:0;
  width:100%;
  max-width:520px;
  justify-self:end;
}
.webcraft-site .hero-premium .hero-window{
  width:100%;
}
.webcraft-site .hero-premium{
  min-height:calc(100vh - var(--header-height));
  padding-top:42px;
  padding-bottom:54px;
}
@media(max-width:1100px) and (min-width:901px){
  .webcraft-site .hero-premium > .container{
    gap:42px;
  }
  .webcraft-site .hero-premium .hero-content h1{
    font-size:clamp(2.8rem,5vw,4rem);
  }
}
@media(max-width:900px){
  .webcraft-site .hero-premium{
    min-height:auto;
    padding-top:40px;
    padding-bottom:48px;
  }
  .webcraft-site .hero-premium .hero-visual{
    max-width:620px;
    justify-self:center;
  }
}
@media(max-width:767px){
  .webcraft-site .hero-premium{
    padding-top:32px;
    padding-bottom:44px;
  }
  .webcraft-site .hero-premium .hero-content h1{
    font-size:clamp(2.45rem,11vw,3.45rem);
    line-height:1.03;
  }
}

/* ============================================================
   FINAL HERO LAYOUT FIX — 2026-10-01
   Keeps the existing design; only restores the intended
   two-column hero and removes conflicting legacy spacing.
   ============================================================ */
.webcraft-site .hero.hero-premium{
  display:block !important;
  width:100%;
  min-height:calc(100svh - var(--header-height)) !important;
  margin-top:0 !important;
  padding:40px 20px 54px !important;
  overflow:hidden;
}
.webcraft-site .hero.hero-premium > .container{
  width:100% !important;
  max-width:1100px !important;
  margin:0 auto !important;
  padding:0 20px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr) !important;
  align-items:center !important;
  gap:clamp(40px,6vw,72px) !important;
}
.webcraft-site .hero.hero-premium .hero-content{
  display:block !important;
  width:100% !important;
  max-width:620px !important;
  min-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  text-align:left !important;
}
.webcraft-site .hero.hero-premium .hero-label{
  display:inline-flex !important;
  width:auto !important;
  max-width:100% !important;
  margin:0 0 24px !important;
  align-items:center !important;
  flex-wrap:wrap !important;
}
.webcraft-site .hero.hero-premium .hero-proof-row{
  display:inline-flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:8px !important;
}
.webcraft-site .hero.hero-premium h1{
  display:block !important;
  width:100% !important;
  max-width:620px !important;
  margin:0 0 20px !important;
  padding:0 !important;
  text-align:left !important;
  font-size:clamp(3.1rem,5.3vw,4.5rem) !important;
  line-height:1.02 !important;
}
.webcraft-site .hero.hero-premium p{
  display:block !important;
  width:100% !important;
  max-width:560px !important;
  margin:0 0 30px !important;
  padding:0 !important;
  text-align:left !important;
}
.webcraft-site .hero.hero-premium .hero-btns{
  display:flex !important;
  width:100% !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  margin:0 !important;
}
.webcraft-site .hero.hero-premium .hero-stats{
  display:flex !important;
  width:100% !important;
  max-width:620px !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:32px !important;
  margin:38px 0 0 !important;
  padding:26px 0 0 !important;
}
.webcraft-site .hero.hero-premium .hero-visual{
  display:flex !important;
  position:relative !important;
  width:100% !important;
  max-width:520px !important;
  min-height:430px !important;
  margin:0 !important;
  padding:0 !important;
  align-items:center !important;
  justify-content:center !important;
  justify-self:end !important;
}
.webcraft-site .hero.hero-premium .hero-window{
  display:block !important;
  width:min(100%,520px) !important;
  max-width:520px !important;
  margin:0 !important;
}
.webcraft-site .hero.hero-premium .hero-float.one{top:18px !important;right:-10px !important}
.webcraft-site .hero.hero-premium .hero-float.two{bottom:22px !important;left:-22px !important}

@media (max-width:1100px) and (min-width:901px){
  .webcraft-site .hero.hero-premium > .container{
    grid-template-columns:minmax(0,1fr) minmax(340px,.9fr) !important;
    gap:40px !important;
  }
  .webcraft-site .hero.hero-premium h1{
    font-size:clamp(2.8rem,5vw,4rem) !important;
  }
}

@media (max-width:900px){
  .webcraft-site .hero.hero-premium{
    min-height:auto !important;
    padding:40px 16px 52px !important;
  }
  .webcraft-site .hero.hero-premium > .container{
    max-width:720px !important;
    grid-template-columns:1fr !important;
    gap:42px !important;
  }
  .webcraft-site .hero.hero-premium .hero-content{
    max-width:none !important;
  }
  .webcraft-site .hero.hero-premium .hero-visual{
    max-width:620px !important;
    min-height:0 !important;
    justify-self:center !important;
  }
  .webcraft-site .hero.hero-premium .hero-window{
    width:100% !important;
    max-width:620px !important;
  }
}

@media (max-width:767px){
  .webcraft-site .hero.hero-premium{
    padding:32px 16px 44px !important;
  }
  .webcraft-site .hero.hero-premium > .container{
    padding:0 !important;
    gap:34px !important;
  }
  .webcraft-site .hero.hero-premium h1{
    font-size:clamp(2.45rem,11vw,3.45rem) !important;
  }
  .webcraft-site .hero.hero-premium .hero-stats{
    flex-wrap:wrap !important;
    gap:22px 28px !important;
  }
  .webcraft-site .hero.hero-premium .hero-visual{
    width:100% !important;
  }
  .webcraft-site .hero.hero-premium .hero-float.one{
    right:0 !important;
  }
  .webcraft-site .hero.hero-premium .hero-float.two{
    left:0 !important;
  }
}

/* ============================================================
   FINAL HERO REPAIR — 2026-10-01
   Layout-only override. Keep the existing visual language.
   ============================================================ */
.webcraft-site .hero.hero-premium {
  position: relative;
  isolation: isolate;
  display: block !important;
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: calc(var(--header-height) + 48px) 20px 64px !important;
  overflow: visible !important;
}

.webcraft-site .hero.hero-premium > .container {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  min-width: 0;
}

.webcraft-site .hero.hero-premium .hero-card {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) !important;
  gap: 48px !important;
  align-items: center !important;
  min-width: 0;
  padding: 56px !important;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17,34,58,.82), rgba(8,19,36,.72));
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.webcraft-site .hero.hero-premium .hero-content,
.webcraft-site .hero.hero-premium .hero-visual {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.webcraft-site .hero.hero-premium .hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 24px !important;
  position: relative;
  z-index: 2;
}

.webcraft-site .hero.hero-premium .hero-label {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  white-space: normal;
}

.webcraft-site .hero.hero-premium .hero-proof-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0;
  margin-top: -10px;
  color: var(--slate);
  font-size: .82rem;
}

.webcraft-site .hero.hero-premium .hero-proof-row span {
  white-space: nowrap;
}

.webcraft-site .hero.hero-premium .hero-proof-row i {
  display: block;
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
}

.webcraft-site .hero.hero-premium h1 {
  width: 100%;
  max-width: 720px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(2.4rem, 5vw, 4.2rem) !important;
  line-height: 1.08 !important;
  overflow-wrap: break-word;
  word-break: normal;
}

.webcraft-site .hero.hero-premium .hero-content > p {
  width: 100%;
  max-width: 560px !important;
  margin: 0 !important;
  font-size: 1.1rem;
  line-height: 1.7;
}

.webcraft-site .hero.hero-premium .hero-btns {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100%;
  margin: 0 !important;
}

.webcraft-site .hero.hero-premium .hero-btns a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 14px 28px !important;
}

.webcraft-site .hero.hero-premium .hero-visual {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 20px !important;
  position: relative !important;
  z-index: 2;
}

.webcraft-site .hero.hero-premium .hero-window {
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  transform: none;
}

.webcraft-site .hero.hero-premium .hero-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
}

.webcraft-site .hero.hero-premium .hero-stats > div {
  min-width: 0 !important;
  min-height: 112px;
  padding: 20px !important;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.webcraft-site .hero.hero-premium .stat-num {
  font-size: 1.7rem;
  line-height: 1.1;
  white-space: nowrap;
}

.webcraft-site .hero.hero-premium .stat-label {
  margin-top: 7px;
  font-size: .75rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.webcraft-site .hero.hero-premium .hero-glow,
.webcraft-site .hero.hero-premium .hero-glow2 {
  z-index: 0;
  pointer-events: none;
}

.webcraft-site .hero.hero-premium .hero-glow {
  right: 4%;
  top: 2%;
  opacity: .55;
}

.webcraft-site .hero.hero-premium .hero-glow2 {
  left: 4%;
  bottom: -80px;
  opacity: .45;
}

.webcraft-site .hero.hero-premium .hero-float {
  display: none !important;
}

@media (max-width: 1023px) {
  .webcraft-site .hero.hero-premium {
    padding-top: calc(var(--header-height) + 40px) !important;
  }

  .webcraft-site .hero.hero-premium .hero-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 40px !important;
    padding: 44px !important;
  }

  .webcraft-site .hero.hero-premium .hero-visual {
    max-width: 760px !important;
    margin: 0 auto !important;
  }

  .webcraft-site .hero.hero-premium .hero-window,
  .webcraft-site .hero.hero-premium .hero-stats {
    max-width: 760px !important;
  }
}

@media (max-width: 599px) {
  .webcraft-site .hero.hero-premium {
    padding: calc(var(--header-height) + 28px) 16px 48px !important;
  }

  .webcraft-site .hero.hero-premium > .container {
    padding: 0 !important;
  }

  .webcraft-site .hero.hero-premium .hero-card {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 24px !important;
    border-radius: 22px;
  }

  .webcraft-site .hero.hero-premium .hero-content {
    gap: 20px !important;
  }

  .webcraft-site .hero.hero-premium .hero-proof-row {
    gap: 8px !important;
    font-size: .76rem;
  }

  .webcraft-site .hero.hero-premium h1 {
    font-size: clamp(2.4rem, 11vw, 3.3rem) !important;
    line-height: 1.08 !important;
  }

  .webcraft-site .hero.hero-premium .hero-content > p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .webcraft-site .hero.hero-premium .hero-btns {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }

  .webcraft-site .hero.hero-premium .hero-btns a {
    width: 100%;
    text-align: center;
  }

  .webcraft-site .hero.hero-premium .hero-stats {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }

  .webcraft-site .hero.hero-premium .hero-stats > div {
    min-height: 88px;
    padding: 16px !important;
  }

  .webcraft-site .hero.hero-premium .stat-num {
    font-size: 1.45rem;
  }

  .webcraft-site .hero.hero-premium .stat-label {
    font-size: .74rem;
  }

  .webcraft-site .hero.hero-premium .hero-window-body {
    padding: 26px 20px 22px;
  }
}
