:root {
  --espresso: #1f1410;
  --roast: #2d1f18;
  --cream: #f7efe6;
  --latte: #e8d5c4;
  --caramel: #c4793f;
  --mocha: #8b5a3c;
  --text: #2a1e17;
  --muted: #6b5346;
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(139, 90, 60, 0.2);
  --shadow: 0 20px 60px rgba(31, 20, 16, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(165deg, var(--cream) 0%, #fff9f2 40%, var(--latte) 100%);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--mocha);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--caramel);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 239, 230, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
}

.brand {
  display: flex;
  justify-content: center;
}

.brand img {
  height: 48px;
  width: auto;
  margin: 0 auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
  justify-content: center;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--caramel);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  text-align: center;
}

.hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin: 0 auto 2.5rem;
  max-width: 1100px;
  min-height: clamp(260px, 42vw, 420px);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 20, 16, 0.05) 0%, rgba(31, 20, 16, 0.72) 100%);
}

.hero-banner .hero-banner-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 1.75rem;
  text-align: left;
  max-width: 36rem;
}

.hero-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
  color: #fff;
  line-height: 1.12;
}

.hero-banner .lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.75rem auto 0;
  max-width: 960px;
}

.photo-mosaic img {
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(31, 20, 16, 0.08);
}

.split-feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: center;
  margin: 2rem auto;
  max-width: 960px;
  text-align: left;
}

.split-feature img {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--espresso);
  line-height: 1.15;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--mocha);
  max-width: 40rem;
  margin: 0 auto 1rem;
}

.hero .badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem auto;
  max-width: 960px;
  text-align: center;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-card img {
  border-radius: 12px;
  margin-bottom: 1rem;
}

.hero-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 auto 1rem;
  color: var(--espresso);
  text-align: center;
}

.prose {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose strong {
  color: var(--text);
}

.feature-img {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 1.5rem auto;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.logo-row img {
  max-height: 72px;
  width: auto;
}

.partner-logos-block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  text-align: center;
}

.partner-logos-lead {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32rem;
  margin: -0.25rem auto 1.75rem;
}

.partner-logos-block .partner-logo-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0.35rem 0.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.15rem;
  max-width: 100%;
}

@media (min-width: 720px) {
  .partner-logos-block .partner-logo-grid {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.5rem 0;
  }
}

.partner-logo-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(7.5rem, 14vw, 9.25rem);
  min-height: 6.75rem;
  padding: 1rem 0.85rem;
  margin: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 239, 230, 0.88) 100%);
  border: 1px solid rgba(139, 90, 60, 0.18);
  border-radius: 20px;
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.65) inset,
    0 14px 36px rgba(31, 20, 16, 0.09);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  animation: partner-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.09s * var(--i, 0));
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
  overflow: hidden;
  isolation: isolate;
}

.partner-logo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(196, 121, 63, 0.35) 50%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 0.3s ease;
}

.partner-logo-card:hover::after {
  opacity: 1;
  animation: partner-border-sweep 1.1s ease forwards;
}

.partner-logo-card--wide {
  width: clamp(9rem, 20vw, 12.5rem);
}

.partner-logo-card img {
  position: relative;
  z-index: 1;
  max-height: 52px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.02);
  transition: filter 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: partner-logo-bob 3.8s ease-in-out infinite;
  animation-delay: calc(0.75s + 0.12s * var(--i, 0));
}

.partner-logo-card--wide img {
  max-height: 44px;
  max-width: 10.5rem;
}

.partner-logo-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(196, 121, 63, 0.42);
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.7) inset,
    0 22px 48px rgba(196, 121, 63, 0.18);
}

.partner-logo-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.06);
  animation: none;
}

@keyframes partner-card-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes partner-logo-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes partner-border-sweep {
  to {
    transform: translateX(120%);
  }
}

@media (max-width: 719px) {
  .partner-logos-block .partner-logo-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    gap: 0.85rem;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .partner-logo-card {
    scroll-snap-align: center;
    width: 7.25rem;
    min-height: 6.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-logo-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .partner-logo-card img {
    animation: none;
  }

  .partner-logo-card::after {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--caramel), var(--mocha));
  color: #fff;
  box-shadow: 0 10px 28px rgba(196, 121, 63, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
}

.contact-block {
  max-width: 28rem;
  margin: 1.5rem auto 0;
  width: 100%;
}

.contact-form {
  text-align: left;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .partner-marquee-inner {
    animation-duration: 40s;
  }

  .hero-banner .hero-banner-inner {
    padding: 1.5rem 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
    background: rgba(247, 239, 230, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open {
    display: flex;
    align-items: center;
  }

  .header-inner {
    position: relative;
  }
}

main > p {
  text-align: center;
}

.contact-form .btn-primary {
  width: 100%;
}

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

.form-alert {
  max-width: var(--max);
  margin: 0 auto 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.form-alert ul {
  margin: 0;
  padding-left: 1.2rem;
}

.form-alert-ok {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #2e5c32;
}

.form-alert-err {
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.3);
  color: #8b1e1e;
}

.robot-check-section {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.55);
  text-align: left;
}

.robot-check-section input,
.robot-check-section select {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.contact-modal-panel {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.contact-modal-panel button {
  background: linear-gradient(135deg, var(--caramel), var(--mocha));
  color: #fff;
}
