:root {
  --green: #5cac3b;
  --green-dark: #295716;
  --green-soft: #eaf8f1;
  --text: #2f3437;
  --muted: #667176;
  --border: #e6ece9;
  --surface: #ffffff;
  --surface-muted: #f7faf9;
  --shadow: 0 18px 45px rgba(34, 48, 43, 0.09);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

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

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
}

.brand-mark img {
  width: 124px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 0.94rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green-dark);
}

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

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.lang-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 4px 0;
}

.lang-button.is-active {
  color: var(--green-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(35, 178, 109, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-dark);
}

.button-secondary {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
}

.button-small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.section {
  padding: 68px 0;
}

.section-muted {
  background: var(--surface-muted);
}

.hero {
  display: flex;
  min-height: 650px;
  padding-top: 54px;
  padding-right: 8px;
  padding-left: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 48%, rgba(255, 255, 255, 0.42) 100%),
    url("../img/hero-image.png") center / cover no-repeat;
}

.hero-grid {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  display: grid;
  gap: 34px;
  flex: 0 1 1120px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.3rem, 12vw, 4.7rem);
}

h2 {
  font-size: clamp(1.8rem, 8vw, 3rem);
}

h3 {
  font-size: 1.16rem;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.hero-panel.is-changing .work-card {
  opacity: 0;
  transform: translateY(6px);
}

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

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 25, 0.72);
}

.demo-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100vh - 40px), calc(100vw - 40px), 720px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 22, 25, 0.34);
}

.demo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.demo-modal-header h2 {
  font-size: 1.2rem;
}

.demo-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
}

.demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
  object-fit: cover;
}

.panel-header,
.work-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-header {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-right: auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px var(--green-soft);
}

.work-card {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-muted);
  transition: opacity 220ms ease, transform 220ms ease;
}

.work-card span:not(.pill) {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.pill,
.recommended {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
}

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

.metric-grid div {
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}

.metric-grid strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.5rem;
  line-height: 1;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.8rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.cards-grid {
  display: grid;
  gap: 16px;
}

.card,
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(34, 48, 43, 0.06);
}

.card {
  padding: 22px;
}

.card p,
.step p {
  margin: 10px 0 0;
  color: var(--muted);
}

.card-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  object-fit: contain;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  padding: 22px;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 270px;
}

.pricing-card .button {
  margin-top: 0;
}

.pricing-card .price {
  margin-top: auto;
}

.pricing-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.4;
  list-style: none;
}

.pricing-features li {
  position: relative;
  padding-left: 18px;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.pricing-card-featured {
  border-color: rgba(35, 178, 109, 0.45);
  box-shadow: 0 22px 52px rgba(35, 178, 109, 0.15);
  overflow: hidden;
  position: relative;
}

.pricing-card-featured .recommended {
  position: absolute;
  top: 18px;
  right: -42px;
  z-index: 1;
  width: 168px;
  justify-content: center;
  border-radius: 0;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 20px rgba(35, 178, 109, 0.22);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  padding: 7px 12px;
  transform: rotate(35deg);
}

.price {
  display: block;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.testimonials-grid {
  grid-template-columns: 1fr;
}

.testimonial-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.testimonial-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.testimonial-copy p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1rem;
}

.testimonial-copy h3 {
  font-size: 1rem;
}

.testimonial-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.final-cta {
  padding-top: 48px;
}

.final-cta-inner {
  border-radius: 24px;
  background: var(--text);
  color: #fff;
  padding: 34px 22px;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.76);
  margin: 12px 0 24px;
}

.legal-section {
  background: var(--surface-muted);
}

.legal-content {
  max-width: 820px;
  padding: 34px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content a {
  color: var(--green-dark);
  font-weight: 800;
}

.legal-content ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-updated {
  margin: 12px 0 0;
  font-weight: 800;
}

.site-footer {
  padding: 40px 0;
  background: #22282b;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-brand .brand-mark {
  background: transparent;
  padding-left: 0;
}

.site-footer p {
  margin: 10px 0 0;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.footer-legal {
  display: grid;
  gap: 14px;
}

.anpc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.anpc-links a {
  display: inline-flex;
}

.anpc-links img {
  width: 160px;
  height: 32px;
  object-fit: contain;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  display: grid;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 55px rgba(15, 22, 25, 0.18);
  backdrop-filter: blur(14px);
}

.cookie-banner-copy strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.cookie-banner-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner-actions .button {
  min-height: 44px;
}

@media (min-width: 720px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .main-nav {
    justify-content: center;
  }

  .benefits-grid,
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .step {
    position: relative;
    min-height: 172px;
    border-radius: 0;
    padding: 24px 36px 24px 22px;
  }

  .step:not(:first-child) {
    padding-left: 64px;
  }

  .step:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .step:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding-right: 22px;
  }

  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -33px;
    z-index: 2;
    width: 64px;
    height: 64px;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
  }

  .step:not(:last-child) > * {
    position: relative;
    z-index: 3;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1.4fr;
    align-items: start;
  }

  .cookie-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .cookie-banner-actions {
    justify-content: end;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-right: 0;
    padding-left: 0;
  }

  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
    min-height: 560px;
  }

  .hero-copy {
    align-self: center;
  }

  .hero-panel {
    align-self: end;
    margin-bottom: 18px;
  }

  .section {
    padding: 86px 0;
  }

  .testimonials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 430px) {
  .header-actions,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .language-switcher {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
