/* ==========================================================================
   Stutt Automation — main stylesheet
   Dark, mature, engineering-grade design system
   ========================================================================== */

:root {
  --bg: #060A12;
  --bg-2: #0A101C;
  --surface: #0E1626;
  --surface-2: #131F35;
  --surface-3: #17253F;
  --line: rgba(148, 176, 224, 0.14);
  --line-strong: rgba(148, 176, 224, 0.26);
  --text: #E9EEF9;
  --muted: #9AA8C4;
  --muted-2: #6F7E9C;
  --brand: #3D8BFF;
  --brand-2: #22D3EE;
  --amber: #F5B942;
  --green: #34D399;
  --red: #F87171;
  --grad: linear-gradient(120deg, #22D3EE 0%, #3D8BFF 100%);
  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --container: 1180px;
  --header-h: 74px;
}

/* ------------------------------- base ---------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.22rem; }
h4 { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

p { margin: 0 0 1em; }

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

::selection { background: rgba(61, 139, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.container-narrow { width: min(860px, calc(100% - 48px)); }

.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }

.section-alt {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(61, 139, 255, 0.10), transparent 60%),
    radial-gradient(900px 420px at 0% 110%, rgba(34, 211, 238, 0.07), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------ buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.97rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad);
  color: #04101F;
  box-shadow: 0 12px 34px -12px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(34, 211, 238, 0.65);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(148, 176, 224, 0.45); }

.btn-light { background: #fff; color: #0A101C; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(255, 255, 255, 0.4); }

.btn-sm { padding: 11px 22px; font-size: 0.9rem; }

.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none !important; }

.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(4, 16, 31, 0.35);
  border-top-color: #04101F;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-2);
  cursor: pointer;
  transition: color 0.2s, letter-spacing 0.2s;
}
.link-btn:hover { color: #7de9fb; letter-spacing: 0.02em; }

/* ------------------------------ header --------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark { width: 38px; height: 38px; flex: none; }

.brand-text {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-text strong { font-weight: 700; color: var(--brand-2); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  min-height: min(94vh, 940px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.jpg") center 40% / cover no-repeat;
  transform: scale(1.03);
  animation: heroDrift 26s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-1.5%, -1.2%, 0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 10, 18, 0.96) 6%, rgba(6, 10, 18, 0.78) 42%, rgba(6, 10, 18, 0.35) 78%),
    linear-gradient(to top, var(--bg) 2%, transparent 30%);
}

.hero-inner { position: relative; z-index: 2; padding-block: clamp(70px, 10vh, 120px); }

.hero-copy { max-width: 660px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(14, 22, 38, 0.72);
  border: 1px solid var(--line-strong);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero .lead {
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(44px, 6vh, 64px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(24px, 4vw, 52px);
  margin: 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  width: fit-content;
}

.hero-stats dt {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ------------------------------ partners -------------------------------- */

.partners {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.partners-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}

.partners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px clamp(28px, 4.5vw, 56px);
}

.partners-list li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: rgba(154, 168, 196, 0.55);
  transition: color 0.25s;
}
.partners-list li:hover { color: rgba(233, 238, 249, 0.85); }

/* ------------------------------ services -------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(14, 22, 38, 0.6) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.service-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 22, 38, 0.9), transparent 55%);
}

.service-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.service-card:hover .service-media img { transform: scale(1.07); }

.service-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.service-no {
  position: absolute;
  top: -34px;
  right: 22px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-2);
  background: rgba(6, 10, 18, 0.75);
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.service-body h3 { margin-bottom: 10px; }

.service-body > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-points {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
  flex: 1;
}

.service-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--grad);
  opacity: 0.85;
  transform: rotate(45deg);
}

/* ------------------------------- process -------------------------------- */

.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.process-step:hover { border-color: rgba(61, 139, 255, 0.45); transform: translateY(-5px); }

.process-step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.process-step:hover::before { opacity: 1; }

.step-no {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(34, 211, 238, 0.55);
  margin-bottom: 16px;
}

.process-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* -------------------------------- split --------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.split-media img { width: 100%; height: auto; object-fit: cover; }

.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(34, 211, 238, 0.12), transparent 45%, rgba(6, 10, 18, 0.45));
  pointer-events: none;
}

.split-float {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 16px;
  align-items: baseline;
  background: rgba(6, 10, 18, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px 22px;
  backdrop-filter: blur(10px);
}

.float-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.split-float strong {
  font-family: var(--font-head);
  font-size: 0.98rem;
  color: var(--brand-2);
}

.split-copy > p { color: var(--muted); }

.check-list {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 0.97rem;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000, #000);
  -webkit-mask-composite: destination-out;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 20px rgba(6, 10, 18, 0.9);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 3px; top: 7px;
  width: 14px; height: 14px;
  background: #04101F;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat;
  pointer-events: none;
}

/* ----------------------------- testimonials ----------------------------- */

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quote-card {
  margin: 0;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color 0.3s, transform 0.3s;
}
.quote-card:hover { border-color: rgba(61, 139, 255, 0.4); transform: translateY(-5px); }

.quote-card::before {
  content: "“";
  font-family: var(--font-head);
  font-size: 3.4rem;
  line-height: 0.5;
  color: var(--brand-2);
  opacity: 0.6;
}

.quote-card blockquote {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
  flex: 1;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}
.quote-card figcaption strong { display: block; color: var(--text); font-size: 0.95rem; }

.quote-avatar {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #04101F;
  background: var(--grad);
}

/* --------------------------------- FAQ ---------------------------------- */

.faq-list { display: grid; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(34, 211, 238, 0.4); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-2); }

.faq-icon {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  transition: transform 0.3s, background 0.3s;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--muted);
  transition: background 0.3s;
}
.faq-icon::before { width: 11px; height: 1.6px; }
.faq-icon::after { width: 1.6px; height: 11px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: rgba(34, 211, 238, 0.12); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--brand-2); }

.faq-answer { padding: 0 24px 22px; }
.faq-answer p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ------------------------------- contact -------------------------------- */

.split-form { align-items: start; }

.contact-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-list li svg { flex: none; color: var(--brand-2); margin-top: 3px; }
.contact-list strong { display: block; color: var(--text); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 3px; }
.contact-list a:hover { color: var(--brand-2); }

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.form-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 18px; display: flex; flex-direction: column; }

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}

.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%2322D3EE' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.18);
  background: var(--surface-2);
}

.field.error input, .field.error textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }

.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 22px;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-2);
  cursor: pointer;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
}
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* --------------------------------- CTA ---------------------------------- */

.cta-band {
  position: relative;
  padding: clamp(70px, 8vw, 110px) 0;
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: url("../img/cta.jpg") center 55% / cover no-repeat;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 10, 18, 0.92), rgba(10, 16, 28, 0.78) 55%, rgba(6, 10, 18, 0.9));
}

.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p { color: var(--muted); margin-bottom: 30px; font-size: 1.05rem; }

/* -------------------------------- footer -------------------------------- */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(52px, 6vw, 76px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 18px;
  max-width: 340px;
}

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { margin-bottom: 8px; color: var(--text); }

.footer-col a, .footer-addr {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand-2); }
.footer-addr { line-height: 1.6; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--muted-2);
}

.admin-link {
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  transition: color 0.2s;
}
.admin-link:hover { color: var(--brand-2); }

/* -------------------------------- toast --------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 140%);
  z-index: 300;
  max-width: min(480px, calc(100vw - 40px));
  padding: 15px 24px;
  border-radius: 14px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.94rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.35s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.ok { border-color: rgba(52, 211, 153, 0.5); }
.toast.err { border-color: rgba(248, 113, 113, 0.55); }

/* --------------------------- reveal animation --------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 10, 18, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.3s ease;
    pointer-events: none;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 15px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .split, .split-form { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 22px 40px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container, .container-narrow { width: calc(100% - 36px); }
  .services-grid, .quotes-grid, .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero { min-height: auto; }
  .hero-stats { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
