:root{
  --background:#f9fafb;
  --foreground:#12161f;
  --card:#fff;
  --card-foreground:#12161f;
  --primary:#d64c29;
  --primary-foreground:#f7f8fc;
  --secondary:#ffe5de;
  --secondary-foreground:#43241c;
  --muted:#e6ebf9;
  --muted-foreground:#586280;
  --accent:#ffe0d7;
  --accent-foreground:#43241c;
  --destructive:#d40924;
  --border:#d0d7ec;
  --input:#d0d7ec;
  --ring:#d64c29;
  --radius:.75rem;
  --font-sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark){
  :root{
    --background:#080b14;
    --foreground:#eceef5;
    --card:#111524;
    --card-foreground:#eceef5;
    --primary:#e75c3a;
    --primary-foreground:#080b14;
    --secondary:#361810;
    --secondary-foreground:#ebdad5;
    --muted:#18203a;
    --muted-foreground:#838eae;
    --accent:#361810;
    --accent-foreground:#ebdad5;
    --destructive:#e62b34;
    --border:#ffffff1a;
    --input:#ffffff26;
    --ring:#e75c3a;
  }
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

html{-webkit-font-smoothing:antialiased}

body{
  font-family:var(--font-sans);
  background:var(--background);
  color:var(--foreground);
  line-height:1.5;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

a{color:inherit;text-decoration:none}

.container{
  width:100%;
  max-width:1152px;
  margin-inline:auto;
  padding-inline:1rem;
}

.icon{width:24px;height:24px}
.icon-sm{width:16px;height:16px}
.icon-xs{width:14px;height:14px}
.icon-quote{width:32px;height:32px;color:var(--primary);opacity:.3;margin-inline:auto;display:block}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  width:100%;
  border-bottom:1px solid var(--border);
  background:color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter:blur(8px);
}

.header-inner{
  height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  display:flex;
  align-items:center;
  gap:.5rem;
  font-size:1.125rem;
  font-weight:600;
  letter-spacing:-0.01em;
}

.logo-badge{
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:var(--radius);
  background:var(--primary);
  color:var(--primary-foreground);
  font-size:.75rem;
  font-weight:700;
  flex-shrink:0;
}

.logo-badge-sm{width:28px;height:28px}

.logo-tagline{
  display:none;
  font-size:.875rem;
  font-weight:400;
  color:var(--foreground);
}

@media (min-width:768px){
  .logo-tagline{display:inline}
}

.header-actions{
  display:flex;
  align-items:center;
  gap:1rem;
}

.header-phone{
  display:flex;
  align-items:center;
  gap:.375rem;
  font-size:.875rem;
  color:var(--muted-foreground);
  transition:color .15s;
}
.header-phone:hover{color:var(--foreground)}

.phone-text{display:none}
@media (min-width:640px){.phone-text{display:inline}}

.icon-link{color:var(--muted-foreground);transition:color .15s}
.icon-link:hover{color:var(--foreground)}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.375rem;
  border:1px solid transparent;
  border-radius:var(--radius);
  font-size:.875rem;
  font-weight:500;
  white-space:nowrap;
  cursor:pointer;
  transition:all .15s;
}

.btn-primary{
  background:var(--primary);
  color:var(--primary-foreground);
}
.btn-primary:hover:not(:disabled){background:color-mix(in srgb, var(--primary) 80%, transparent)}
.btn-primary:disabled{opacity:.5;cursor:not-allowed}

.btn-outline{
  border-color:var(--border);
  background:var(--background);
  color:var(--foreground);
}
.btn-outline:hover{background:var(--muted)}

.btn-lg{height:44px;padding-inline:1.5rem}
.btn-sm{height:36px;padding-inline:.75rem}
.btn-block{width:100%}

/* Hero */
.hero{position:relative;overflow:hidden}

.hero-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle,#cbd5e1 1px,transparent 1px) 0 0/24px 24px,
    linear-gradient(135deg,#fff0eb 0%,#ffe5d7 30%,#ffdad9 60%,#ffe9e3 100%);
}

@media (prefers-color-scheme: dark){
  .hero-bg{
    background:
      radial-gradient(circle,#ffffff14 1px,transparent 1px) 0 0/24px 24px,
      linear-gradient(135deg,#1a0f0c 0%,#241209 30%,#2a0f0f 60%,#1f110c 100%);
  }
}

.hero-inner{
  position:relative;
  max-width:768px;
  margin-inline:auto;
  padding-block:6rem 8rem;
  text-align:center;
}

@media (min-width:640px){.hero-inner{padding-block:8rem 8rem}}

.hero-inner h1{
  font-size:2.25rem;
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.15;
  margin-bottom:2rem;
}
@media (min-width:640px){.hero-inner h1{font-size:3rem}}
@media (min-width:1024px){.hero-inner h1{font-size:3.75rem}}

.lead{
  font-size:1.125rem;
  color:var(--muted-foreground);
  max-width:640px;
  margin:0 auto 2rem;
}
@media (min-width:640px){.lead{font-size:1.25rem}}

.hero-cta{display:flex;justify-content:center}

/* Sections */
.section{padding-block:5rem}
@media (min-width:640px){.section{padding-block:7rem}}

.section-muted{background:color-mix(in srgb, var(--muted) 50%, var(--background))}

.section-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 4rem;
}
.section-head.narrow{max-width:576px;margin-bottom:3rem}

.section-head h2{
  font-size:1.875rem;
  font-weight:700;
  letter-spacing:-0.02em;
  margin-bottom:1rem;
}
@media (min-width:640px){.section-head h2{font-size:2.25rem}}

.subtitle{font-size:1.125rem;color:var(--muted-foreground)}
.italic{font-style:italic}

/* Tools grid */
.tools-grid{
  display:grid;
  gap:1.5rem;
  max-width:960px;
  margin-inline:auto;
  grid-template-columns:1fr;
}
@media (min-width:640px){.tools-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.tools-grid{grid-template-columns:repeat(3,1fr)}}

.card{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:calc(var(--radius) + 4px);
  padding:1.5rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
}

.card-hover{transition:transform .2s,box-shadow .2s}
.card-hover:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px -8px rgba(13,20,44,.15);
}

.card-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:var(--radius);
  background:color-mix(in srgb, var(--primary) 10%, transparent);
  color:var(--primary);
}

.card h3{font-size:1rem;font-weight:600;margin-bottom:.5rem}
.card p{font-size:.875rem;color:var(--muted-foreground);line-height:1.6}

/* Testimonials */
.testimonials{
  max-width:672px;
  margin-inline:auto;
  position:relative;
}

.carousel-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--background);
  color:var(--foreground);
  cursor:pointer;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
  transition:background .15s;
}
.carousel-arrow:hover{background:var(--muted)}
.carousel-arrow-left{left:-16px}
.carousel-arrow-right{right:-16px}

.testimonial-card{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:calc(var(--radius) + 4px);
  padding:2.5rem 2rem;
  text-align:center;
}
@media (min-width:640px){.testimonial-card{padding:2.5rem}}

.stars{display:flex;align-items:center;justify-content:center;gap:.25rem;margin:1.5rem 0}
.star-filled{color:var(--primary)}

.testimonial-text{
  font-size:1rem;
  color:var(--muted-foreground);
  line-height:1.7;
  font-style:italic;
  margin-bottom:1.5rem;
}
@media (min-width:640px){.testimonial-text{font-size:1.125rem}}

.author-name{font-weight:600;margin-bottom:.25rem}
.author-role{font-size:.875rem;color:var(--muted-foreground)}

.case-toggle{padding-top:.5rem;margin-bottom:.5rem}

.chevron{transition:transform .2s}
.case-toggle.open .chevron,
#caseToggle.open .chevron{transform:rotate(180deg)}

.case-data{
  text-align:left;
  margin-top:1.5rem;
  padding-top:1.5rem;
  border-top:1px solid var(--border);
  flex-direction:column;
  gap:1.25rem;
}
.case-data:not([hidden]){display:flex}
.case-data[hidden]{display:none}

.case-block h4{font-size:.8125rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--primary);margin-bottom:.5rem}
.case-block p{font-size:.9375rem;color:var(--muted-foreground);line-height:1.6}
.case-block ul{list-style:none;display:flex;flex-direction:column;gap:.4rem}
.case-block ul li{
  font-size:.9375rem;
  color:var(--muted-foreground);
  line-height:1.5;
  padding-left:1.25rem;
  position:relative;
}
.case-block ul li::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--primary);
}

.dots{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:1.5rem}
.dot{
  height:8px;
  width:8px;
  border-radius:999px;
  border:none;
  background:color-mix(in srgb, var(--muted-foreground) 30%, transparent);
  cursor:pointer;
  transition:all .2s;
}
.dot:hover{background:color-mix(in srgb, var(--muted-foreground) 50%, transparent)}
.dot.active{width:24px;background:var(--primary)}

/* Contact form */
.contact-form{
  max-width:512px;
  margin-inline:auto;
  display:flex;
  flex-direction:column;
  gap:1.25rem;
}

.field{display:flex;flex-direction:column;gap:.5rem}
.field label{font-size:.875rem;font-weight:500}

.field input,.field select,.field textarea{
  height:40px;
  width:100%;
  border-radius:calc(var(--radius) - 2px);
  border:1px solid var(--border);
  background:var(--background);
  padding:.5rem .75rem;
  font-size:.875rem;
  font-family:inherit;
  color:var(--foreground);
}
.field textarea{height:auto;resize:none}
.field input::placeholder,.field textarea::placeholder{color:var(--muted-foreground)}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:2px solid var(--ring);
  outline-offset:2px;
}

.field-consent{
  display:flex;
  align-items:flex-start;
  gap:.5rem;
}
.field-consent input{
  margin-top:.2rem;
  width:16px;
  height:16px;
  accent-color:var(--primary);
  flex-shrink:0;
}
.field-consent label{
  font-size:.75rem;
  color:var(--muted-foreground);
  line-height:1.6;
  cursor:pointer;
}
.field-consent a{text-decoration:underline;text-underline-offset:2px}
.field-consent a:hover{color:var(--foreground)}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  background:var(--background);
}

.footer-grid{
  display:grid;
  gap:2rem;
  grid-template-columns:1fr;
  padding-block:3rem 2rem;
}
@media (min-width:640px){.footer-grid{grid-template-columns:repeat(2,1fr)}}

.footer-logo{
  display:flex;
  align-items:center;
  gap:.5rem;
  font-weight:600;
  letter-spacing:-0.01em;
  margin-bottom:.75rem;
}

.footer-about p{font-size:.875rem;color:var(--muted-foreground)}

.footer-contacts h4{font-size:.875rem;font-weight:600;margin-bottom:.75rem}
.footer-contacts ul{list-style:none;display:flex;flex-direction:column;gap:.5rem}
.footer-contacts li{
  display:flex;
  align-items:center;
  gap:.5rem;
  font-size:.875rem;
  color:var(--muted-foreground);
}
.footer-contacts a{transition:color .15s}
.footer-contacts a:hover{color:var(--foreground)}

.footer-bottom{
  border-top:1px solid var(--border);
  padding-block:1.5rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  font-size:.75rem;
  color:var(--muted-foreground);
}
@media (min-width:640px){.footer-bottom{flex-direction:row}}
.footer-bottom a{text-decoration:underline;text-underline-offset:2px}
.footer-bottom a:hover{color:var(--foreground)}
