:root {
  --navy: #0e253b;
  --navy-2: #16324d;
  --ink: #14283c;
  --muted: #5d6e80;
  --gold: #179cd8;
  --gold-hover: #127eae;
  --cream: #f7f4ef;
  --soft: #f4f6f8;
  --line: #e4e9ef;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(14, 37, 59, 0.08);
  --header: 62px;
  --container: 1180px;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Roobert", "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }

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

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(14, 37, 59, 0.06);
  backdrop-filter: blur(12px);
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(14, 37, 59, 0.06);
}

.header-inner {
  height: 100%;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.brand img {
  height: 42px;
  width: auto;
  max-height: calc(var(--header) - 12px);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a,
.nav-drop > button {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
  color: #2d4154;
  background: none;
  border: 0;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav a:hover,
.nav-drop > button:hover,
.nav a.active {
  color: var(--navy);
}

.nav-drop { position: relative; display: flex; align-items: stretch; }

.nav-drop > button { position: relative; }

.nav-drop svg {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.nav-drop.open > button svg,
.nav-drop:hover > button svg { transform: rotate(180deg); }

@media (min-width: 861px) {
  .nav { height: 100%; align-items: center; }
  .nav > a:not(.btn-cliente),
  .nav-drop {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
  }
  .nav-drop > button {
    height: 100%;
    padding: 8px 0;
    line-height: 1.55;
  }
  .nav > a:not(.btn-cliente)::after,
  .nav-drop::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% + 11px);
    height: 2px;
    background: transparent;
    pointer-events: none;
  }
  .nav > a:not(.btn-cliente):hover::after,
  .nav > a.active::after,
  .nav-drop.open::after,
  .nav-drop:hover::after {
    background: var(--navy);
  }
  .nav a.btn-cliente { align-self: center; height: auto; }
}

.nav-panel {
  position: fixed;
  top: var(--header);
  left: 0;
  right: 0;
  width: auto;
  transform: none;
  background: #fff;
  border: 0;
  border-top: 1px solid rgba(14, 37, 59, 0.08);
  border-radius: 0;
  box-shadow: 0 18px 28px rgba(14, 37, 59, 0.06);
  padding: 28px 0 36px;
  display: none;
  z-index: 30;
}

.nav-drop.open .nav-panel,
.nav-drop:hover .nav-panel { display: block; }

.nav-menu {
  width: min(980px, calc(100% - 80px));
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 72px;
  align-items: start;
}

.nav-panel a {
  display: flex;
  align-items: center;
  gap: 16px;
  width: auto;
  padding: 16px 0;
  border-radius: 0;
  color: var(--navy);
  text-align: left;
  background: none;
}

.nav-panel a img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.nav-panel a span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nav-panel a strong { font-size: 18px; font-weight: 600; line-height: 1.2; color: #1a1a1a; }
.nav-panel a small { font-size: 15px; line-height: 1.3; color: #6b7280; font-weight: 400; }
.nav-panel a:hover { background: none; }
.nav-panel a:hover strong { color: var(--navy); }

.nav a.btn-cliente {
  background: var(--gold);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.2s ease;
}

.nav a.btn-cliente img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.nav a.btn-cliente:hover { background: var(--gold-hover); color: #fff; }

.menu-toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--navy);
  transform-origin: center;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) { transform: translateY(-6.5px); }
.menu-toggle span:nth-child(3) { transform: translateY(6.5px); }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(460px, 1.08fr);
  align-items: stretch;
  background: #f7f4ef;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: auto;
  margin: 0;
  padding: 64px 48px 64px 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #12283f;
  max-width: 11em;
}

.hero-lead {
  margin-top: 18px;
  max-width: 420px;
  color: #4d6173;
  font-size: 16.5px;
  line-height: 1.65;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 15px 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-gold:hover { background: var(--gold-hover); }

.hero .btn-gold { margin-top: 28px; }

.hero-visual {
  position: relative;
  min-height: 580px;
  background: #efe8dc url("media/home/hero-original.jpg") center 18% / cover no-repeat;
}

.hero-note {
  position: relative;
  left: auto;
  bottom: auto;
  margin-top: 26px;
  z-index: 2;
  width: 230px;
  transform: rotate(-5deg);
  transform-origin: left center;
  font-family: var(--script);
  font-size: 28px;
  line-height: 1.15;
  color: #1d3348;
}

.hero-note svg {
  display: block;
  margin-bottom: 4px;
  margin-left: -18px;
}

/* ========== FAIXA ========== */
.trust {
  background: #fff;
  border-bottom: 1px solid rgba(14, 37, 59, 0.08);
}

.trust ul {
  list-style: none;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
}

.trust li {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  border-left: 1px solid rgba(14, 37, 59, 0.12);
  color: #1c3348;
  font-size: 14.5px;
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.25;
}

.trust li:first-child { border-left: 0; padding-left: 0; }

.trust img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* ========== SOLUÇÕES ========== */
.solutions {
  padding: 88px 0 72px;
  background: #fff;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.25;
  text-align: left;
  color: #14283c;
  letter-spacing: -0.02em;
}

.solutions .section-title { max-width: 640px; margin: 0 0 36px; }

.carousel {
  position: relative;
}

.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 2px 18px;
}

.track::-webkit-scrollbar { display: none; }

.sol-card {
  scroll-snap-align: start;
  background: #f4f6f8;
  border-radius: 18px;
  min-width: 0;
  height: 100%;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.sol-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 12px;
}

.sol-card h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
}

.sol-card p {
  margin-top: 6px;
  min-height: 3.9em;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

.saiba-mais {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 13.5px;
  font-weight: 700;
}

.saiba-mais iconify-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.arrow.is-hidden { display: none; }

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #d5dce4;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(14, 37, 59, 0.06);
  z-index: 2;
}

.arrow svg {
  width: 28px;
  height: 28px;
}

.arrow.prev { left: 0; }
.arrow.next { right: 0; }
.arrow:hover { border-color: var(--gold); color: var(--gold); }

/* ========== SOBRE ========== */
.about {
  padding: 72px 0 72px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px;
  background: #d7dee6 url("media/home/escritorio-ial.jpg") 68% center / cover no-repeat;
}

.about h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 460px;
}

.about-text {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
}

.stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat {
  background: var(--soft);
  border-radius: 14px;
  padding: 18px 16px 16px;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  color: var(--navy);
  line-height: 1.15;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ========== PARCEIROS ========== */
.partners {
  padding: 72px 0 72px;
}

.partners .section-title {
  font-size: 28px;
  margin-bottom: 28px;
}

.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 36s linear infinite;
}

.logo-track:hover { animation-play-state: paused; }

.logo-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 48px;
  padding-right: 48px;
}

.logo-row img {
  height: 128px;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex: 0 0 auto;
}

@keyframes logo-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ========== BENEFÍCIOS ========== */
.benefits {
  padding: 72px 0 72px;
}

.benefits .section-title { margin-bottom: 40px; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.benefit {
  text-align: left;
  background: #f6f4f0;
  border-radius: 22px;
  padding: 30px 20px 26px;
}

.benefit-icon {
  width: 84px;
  height: 84px;
  margin: 0 0 16px;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.benefit-icon img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
}

.benefit h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.benefit p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.45;
  text-align: left;
  text-wrap: pretty;
}

@media (min-width: 1101px) {
  .benefits .container {
    width: min(1400px, calc(100% - 40px));
  }
}

/* ========== DEPOIMENTOS ========== */
.stories {
  padding: 72px 0 72px;
  background: linear-gradient(#fff, #fafbfc);
}

.stories-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.stories-head .section-title { text-align: left; }

.story-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.story-track::-webkit-scrollbar { display: none; }

.story {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: none;
}

.stars { color: var(--gold); letter-spacing: 3px; font-size: 20px; line-height: 1; }

.story p {
  margin: 12px 0 18px;
  color: #3d5164;
  font-size: 15px;
  line-height: 1.55;
}

.who { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.who img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.who strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.15; }
.who span { display: block; margin-top: 1px; font-size: 13px; line-height: 1.15; color: var(--muted); }

/* ========== CONTATO ========== */
.contact {
  background: #f5f6f8;
  padding: 72px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.25;
  max-width: 640px;
}

.contact-lead {
  margin: 14px 0 28px;
  color: var(--muted);
  max-width: 560px;
}

.contact-visual {
  border-radius: 18px;
  overflow: hidden;
  background: #e8edf2;
  height: 520px;
}

.contact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.form-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 26px 24px;
  height: auto;
  align-self: center;
}

@media (min-width: 1101px) {
  .contact-grid { align-items: stretch; }
  .form-card {
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #314557;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  border: 1px solid #e1e6ec;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

#tipo {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 52px;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid #d7c4a2;
  background-color: #fbf8f3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%2314283c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 28px 28px;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#tipo:hover { border-color: var(--gold); }

#tipo:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 128, 44, 0.18);
}

.field input:focus { border-color: #c4a36a; }

.form-card .btn-gold { width: 100%; margin-top: 6px; height: 50px; }

.form-error {
  display: none;
  margin-bottom: 10px;
  color: #9a3b2f;
  font-size: 13px;
}

/* ========== FOOTER ========== */
.site-footer { background: var(--navy); color: #fff; }

.footer-main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-footer h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.3;
  max-width: 560px;
}

.footer-contacts {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, #ffffff 18%, var(--navy));
  border: 1px solid color-mix(in srgb, #ffffff 34%, var(--navy));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.footer-contacts a:not(.footer-place) {
  padding: 6px 14px 6px 8px;
}

.footer-contacts a:not(.footer-place) svg {
  width: 16px;
  height: 16px;
  padding: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-sizing: content-box;
}

.footer-contacts a:hover { background: color-mix(in srgb, #ffffff 28%, var(--navy)); }

.footer-contacts a.footer-place {
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  gap: 10px;
  justify-content: flex-start;
  font-size: 18px;
}

.footer-contacts a.footer-place svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.footer-contacts a.footer-place:hover { background: none; color: #b7e4f7; }

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bar-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #fff; }
.footer-links a:hover { color: #b7e4f7; }

@media (max-width: 1100px) {
  .hero h1 { font-size: 46px; }
  .track { grid-auto-columns: calc((100% - 36px) / 3); }
  .benefit-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .benefit h3 { white-space: normal; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-visual { height: auto; }
  .about-photo { min-height: 340px; aspect-ratio: auto; background-position: 68% center; }
  .story-track { grid-auto-columns: calc((100% - 18px) / 2); }
}

@media (max-width: 860px) {
  body { overflow-x: hidden; }
  .menu-toggle { display: flex; }
  .nav {
    display: none;
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    height: auto;
    min-height: calc(100dvh - var(--header));
    padding: 8px 20px 24px;
    border-bottom: 0;
    box-shadow: none;
    overflow: auto;
  }
  .nav.open { display: flex; }
  body.menu-open { overflow: hidden; }
  .nav a, .nav-drop > button { padding: 14px 0; width: 100%; justify-content: space-between; font-size: 16px; height: auto; }
  .nav a::after,
  .nav-drop::after,
  .nav-drop > button::after,
  .nav-drop.open > button::after,
  .nav-drop:hover > button::after { display: none; }
  .nav-drop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
  }
  .nav-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    column-gap: 0;
  }
  .nav-panel {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 0 8px;
    margin: 0;
    display: none;
  }
  .nav-menu { width: 100%; margin: 0; }
  .nav-drop.open .nav-panel { display: block; }
  .nav-drop:hover .nav-panel { display: none; }
  .nav-drop.open:hover .nav-panel { display: block; }
  .nav-panel a {
    padding: 12px 0;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    width: 100%;
    min-width: 0;
  }
  .nav-panel a img { width: 36px; height: 36px; }
  .nav-panel a strong { font-size: 16px; }
  .nav-panel a small { font-size: 14px; }
  .nav a.btn-cliente { width: 100%; justify-content: center; margin-top: 8px; }
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #f7f4ef;
  }
  .hero-visual {
    order: -1;
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 2;
    background-position: center 18%;
    background-size: cover;
  }
  .hero-copy { width: calc(100% - 32px); margin: 0 auto; padding: 22px 0 28px; }
  .hero h1 { font-size: 30px; max-width: none; }
  .hero-lead { margin-top: 10px; font-size: 15px; max-width: none; }
  .hero .btn-gold { width: 100%; margin-top: 18px; }
  .hero-note { display: none; }
  .trust ul {
    width: 100%;
    max-width: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding: 16px 16px;
  }
  .trust ul::-webkit-scrollbar { display: none; }
  .trust li {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    border-left: 1px solid rgba(14, 37, 59, 0.12);
    padding: 4px 20px;
    font-size: 14.5px;
  }
  .trust li:first-child { border-left: 0; padding-left: 4px; }
  .trust img { width: 30px; height: 30px; }
  .solutions { padding: 56px 0 48px; }
  .section-title, .about h2, .contact h2, .site-footer h2 { font-size: 30px; }
  .track { grid-auto-columns: 220px; padding: 8px 0 16px; }
  .arrow.prev { left: 0; }
  .arrow.next { right: 0; }
  .story-track { grid-auto-columns: 88%; }
  .stories-head { flex-direction: column; align-items: flex-start; }
  .contact-visual { width: 100%; }
  .form-card { padding: 22px 18px 20px; }
  .footer-main, .footer-bar-inner { flex-direction: column; align-items: flex-start; }
  .footer-contacts {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
  }
  .footer-contacts li { width: auto; max-width: 100%; }
  .footer-contacts a:not(.footer-place) {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
  }
  .logo-row { gap: 40px; padding-right: 40px; }
  .logo-row img { height: 140px; max-width: none; }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .hero-copy,
  .footer-main,
  .footer-bar-inner { width: calc(100% - 32px); }
  .brand img { height: 40px; max-height: calc(var(--header) - 12px); }
  .hero-visual { aspect-ratio: 3 / 2; background-position: center 18%; background-size: cover; }
  .hero h1 { font-size: 28px; }
  .solutions .section-title { margin-bottom: 22px; }
  .sol-card img { height: 128px; object-fit: cover; object-position: center 42%; }
  .about { padding: 48px 0; }
  .partners, .benefits, .stories { padding: 48px 0; }
  .about-grid { gap: 20px; }
  .about-photo { min-height: 220px; aspect-ratio: auto; background-position: center 46%; }
  .stats { grid-template-columns: 1fr; }
  .benefit-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .benefit {
    width: 100%;
    text-align: left;
    padding: 22px 20px 20px;
  }
  .benefit h3,
  .benefit p { text-align: left; }
  .benefit-icon { margin: 0 0 14px; }
  .partners { padding-bottom: 40px; }
  .benefits, .stories { padding-bottom: 40px; }
  .contact { padding: 48px 0 56px; }
  .footer-main { padding: 36px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow: auto;
}

.quote-modal[hidden] { display: none; }

.quote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 28, 0.55);
}

.quote-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(14, 37, 59, 0.22);
  padding: 32px 32px 26px;
}

.quote-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f3efe8;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.quote-close:hover { background: #e7e0d4; }

.quote-logo {
  display: block;
  height: 54px;
  width: auto;
  margin: 0 auto 18px;
}

.quote-kicker {
  margin: 6px 0 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.quote-dialog .field input,
.quote-whats {
  height: 48px;
  border: 1.5px solid #d5dde5;
  border-radius: 8px;
  background: #fff;
}

.quote-dialog .field input:focus,
.quote-whats:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 128, 44, 0.16);
}

.quote-whats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.quote-whats svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.quote-dialog .quote-whats input {
  height: 100%;
  width: 100%;
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.quote-dialog .quote-whats input:focus { box-shadow: none; border-color: transparent; }

.quote-submit {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-submit:hover { background: var(--gold-hover); }

.quote-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #4d6173;
}

.quote-terms input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.quote-terms a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .quote-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .quote-dialog {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 56px 20px max(24px, env(safe-area-inset-bottom));
  }

  .quote-logo {
    height: 48px;
    margin-bottom: 18px;
  }

  .quote-dialog .field { margin-bottom: 14px; }

  .quote-dialog .field input {
    height: 48px;
    font-size: 16px;
  }

  .quote-submit { height: 50px; }

  .quote-terms { font-size: 13px; }
}
