:root {
  --bg: #f6f2ed;
  --surface: #fffdf9;
  --surface-2: #e8efe8;
  --surface-3: #16372d;
  --ink: #1d3128;
  --muted: #61746a;
  --line: rgba(34, 48, 40, 0.12);
  --primary: #1f6b57;
  --primary-strong: #123f33;
  --accent: #b68a57;
  --white: #ffffff;
  --shadow: 0 16px 44px rgba(34, 48, 40, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(182, 138, 87, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 107, 87, 0.16), transparent 32%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

svg {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255, 253, 247, 0.86);
  border-bottom: 1px solid rgba(28, 36, 29, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: 215px;
  max-width: 100%;
  height: auto;
}

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

.nav a {
  text-decoration: none;
  font-weight: 700;
  color: rgba(28, 36, 29, 0.84);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  padding: 86px 0 52px;
  background:
    linear-gradient(90deg, rgba(251, 247, 241, 0.7) 0%, rgba(251, 247, 241, 0.48) 36%, rgba(22, 55, 45, 0.24) 100%),
    linear-gradient(180deg, rgba(18, 63, 51, 0.16), rgba(18, 63, 51, 0.03)),
    url("https://images.unsplash.com/photo-1516862523118-a3724eb136d7?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.simple-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-copy h1,
.section-head h2 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-text {
  max-width: 42ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: var(--shadow);
}

.btn-secondary {
  color: var(--primary-strong);
  background: linear-gradient(135deg, #eef7f2, #dcece5);
  border-color: rgba(31, 107, 87, 0.18);
  box-shadow: 0 12px 28px rgba(18, 63, 51, 0.08);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(34, 48, 40, 0.08);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.visual-card {
  position: absolute;
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-card.large {
  inset: 40px 40px 40px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(19, 55, 44, 0.82), rgba(31, 107, 87, 0.54));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.visual-card.small {
  width: 170px;
  height: 140px;
  right: 0;
  background: linear-gradient(135deg, rgba(182, 138, 87, 0.84), rgba(31, 107, 87, 0.9));
}

.visual-card.top {
  top: 0;
}

.visual-card.bottom {
  bottom: 0;
}

.motion-scene {
  position: absolute;
  inset: 0;
}

.motion-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 96px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 12%),
    linear-gradient(180deg, #48514f 0%, #2b3230 48%, #1a1e1d 100%);
  box-shadow: inset 0 8px 20px rgba(255,255,255,0.05);
}

.motion-lane {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18% + 44px);
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,245,219,0) 0 34px,
    rgba(255,245,219,0.96) 34px 66px
  );
  animation: laneSlide 1.8s linear infinite;
}

.motion-car {
  position: absolute;
  left: -32%;
  bottom: calc(18% + 34px);
  width: 178px;
  height: 54px;
  border-radius: 18px 26px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.3), transparent 18%),
    linear-gradient(135deg, #d09b52 0%, #b7782e 56%, #8f5520 100%);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
  overflow: visible;
  animation: carDrive 8s ease-in-out infinite, carCelebrate 8s ease-in-out infinite;
}

.motion-car::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -12px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  filter: blur(9px);
}

.motion-top {
  position: absolute;
  left: 36px;
  top: -18px;
  width: 92px;
  height: 32px;
  border-radius: 24px 28px 8px 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), transparent 26%),
    linear-gradient(135deg, #c88a3d, #9e5e22);
}

.car-plate {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  z-index: 2;
  transform: translate(-50%, -50%);
}

.car-plate.learner {
  color: #c61f2c;
  border: 2px solid #c61f2c;
  animation: learnerPlateSwap 8s ease-in-out infinite;
}

.car-plate.pass {
  color: #1f6b57;
  border: 2px solid #1f6b57;
  opacity: 0;
  transform: translate(-50%, calc(-50% - 10px)) scale(0.9);
  animation: passPlateSwap 8s ease-in-out infinite;
}

.motion-window {
  position: absolute;
  top: -9px;
  height: 18px;
  background: linear-gradient(180deg, rgba(241, 248, 252, 0.94), rgba(168, 192, 205, 0.82));
  border: 1px solid rgba(255,255,255,0.24);
}

.motion-window.back {
  left: 48px;
  width: 28px;
  border-radius: 10px 6px 4px 4px;
}

.motion-window.front {
  left: 82px;
  width: 28px;
  border-radius: 6px 10px 4px 4px;
}

.motion-wheel {
  position: absolute;
  bottom: -12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #9aa39f 0 20%, #343a38 21% 42%, #111413 43% 100%);
  animation: wheelTurn 0.75s linear infinite;
}

.motion-wheel.back {
  left: 22px;
}

.motion-wheel.front {
  right: 24px;
}

@keyframes carDrive {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(212%) translateY(-2px);
  }
  100% {
    transform: translateX(424%) translateY(0);
  }
}

@keyframes carCelebrate {
  0%,
  62% {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.3), transparent 18%),
      linear-gradient(135deg, #d09b52 0%, #b7782e 56%, #8f5520 100%);
  }
  70%,
  100% {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.3), transparent 18%),
      linear-gradient(135deg, #e9f7ef 0%, #59a07c 54%, #1f6b57 100%);
  }
}

@keyframes learnerPlateSwap {
  0%,
  42% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50%,
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 10px)) scale(0.9);
  }
}

@keyframes passPlateSwap {
  0%,
  42% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 10px)) scale(0.9);
  }
  50%,
  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes laneSlide {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -80px 0;
  }
}

@keyframes wheelTurn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.section {
  padding: 68px 0;
}

.compact-section {
  padding: 56px 0;
}

.section-tinted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(232, 239, 232, 0.72));
}

.section-head {
  max-width: 56ch;
  margin: 0 auto 28px;
  text-align: center;
}

.section-head.compact h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-head p {
  margin: 12px auto 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 18px;
}

.area-inline {
  color: var(--ink);
  font-weight: 700;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.compact-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  max-width: 760px;
  margin: 0 auto;
  justify-content: center;
}

.feature,
.contact-form,
.side-card,
.gallery-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.84);
  box-shadow: var(--shadow);
}

.feature {
  padding: 24px;
  text-align: center;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.faq-item {
  text-align: left;
}

.feature-grid.compact-grid.faq-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  max-width: 1120px;
  width: 100%;
}

.faq-grid .faq-item {
  flex: 1 1 0;
  max-width: 350px;
}

.faq-item h3 {
  font-size: 1.08rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 190px));
  justify-content: center;
  gap: 14px;
}

.gallery-card {
  min-height: 182px;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.9);
  transform: translateY(0) scale(1);
  transition: transform 0.45s ease, box-shadow 0.45s ease, opacity 0.6s ease;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 182px;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.65s ease, filter 0.65s ease;
}

.gallery-card:hover,
.gallery-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 22px 42px rgba(18, 63, 51, 0.16);
}

.gallery-card:hover img,
.gallery-card:focus-within img {
  transform: scale(1.05);
  filter: saturate(1.04) contrast(1.02);
}

.reveal-card {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-card:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-card:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal-card:nth-child(4) {
  transition-delay: 0.24s;
}

.contact-grid {
  display: grid;
  gap: 22px;
}

.simplified-contact {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.contact-form {
  padding: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

label {
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(28, 36, 29, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 107, 79, 0.12);
}

textarea {
  resize: vertical;
}

.small,
.form-msg {
  color: var(--muted);
}

.hp {
  position: absolute !important;
  left: -9999px !important;
}

.single-card {
  display: block;
}

.side-card {
  padding: 28px;
}

.side-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.side-link {
  display: block;
  margin-bottom: 18px;
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  background: var(--surface-3);
  color: rgba(255, 255, 255, 0.84);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 28px;
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f6b57, #123f33);
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(18, 63, 51, 0.28);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 32px rgba(18, 63, 51, 0.34);
}

@media (max-width: 920px) {
  .simple-hero,
  .simplified-contact,
  .compact-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .simple-hero,
  .simplified-contact {
    grid-template-columns: 1fr;
  }

  .feature-grid.compact-grid {
    max-width: 100%;
  }

  .feature-grid.compact-grid.faq-grid {
    flex-wrap: wrap;
    gap: 18px;
  }

  .faq-grid .faq-item {
    flex: 1 1 calc(50% - 9px);
    max-width: none;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .nav.open {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 253, 247, 0.97);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-toggle {
    display: block;
  }

  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .brand-logo {
    width: 192px;
  }

  .hero-copy h1 {
    max-width: 13ch;
    font-size: clamp(1.9rem, 8vw, 3.1rem);
    line-height: 1.02;
  }

  .compact-grid,
  .gallery-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
  }

  .feature-grid.compact-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid.compact-grid.faq-grid {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .faq-grid .faq-item {
    flex: none;
    width: 100%;
  }

  .section,
  .compact-section {
    padding: 48px 0;
  }

  .contact-form,
  .side-card {
    padding: 22px;
  }

  .side-link {
    font-size: 1.28rem;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .visual-card.large {
    inset: 30px 24px 24px 0;
  }

  .visual-card.small {
    width: 120px;
    height: 100px;
  }

  .motion-road {
    height: 80px;
  }

  .motion-lane {
    bottom: calc(18% + 36px);
  }

  .motion-car {
    width: 140px;
    height: 42px;
    bottom: calc(18% + 28px);
  }

  .motion-top {
    left: 28px;
    top: -14px;
    width: 74px;
    height: 24px;
  }

  .car-plate {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }

  .motion-window.back,
  .motion-window.front {
    width: 22px;
  }

  .motion-window.back {
    left: 36px;
  }

  .motion-window.front {
    left: 64px;
  }

  .motion-wheel {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 520px) {
  .nav-wrap {
    gap: 12px;
    padding: 14px 0;
  }

  .brand-logo {
    width: 166px;
  }

  .section-head.compact h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .hero {
    padding: 72px 0 40px;
  }

  .hero-text,
  .section-head p,
  .feature p,
  .faq-item p,
  .small,
  .form-msg {
    font-size: 0.98rem;
  }

  .feature,
  .gallery-card,
  .contact-form,
  .side-card {
    border-radius: 24px;
  }

  .gallery-card,
  .gallery-card img {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .motion-car,
  .motion-lane,
  .motion-wheel {
    animation: none !important;
  }

  .car-plate.learner,
  .car-plate.pass {
    animation: none !important;
  }

  .car-plate.learner {
    opacity: 1;
    transform: none;
  }

  .car-plate.pass {
    opacity: 0;
  }
}
