/* ===== Reset & design tokens ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #ff5722;
  --orange-dark: #e64a19;
  --orange-light: #ff8a65;
  --blue: #2962ff;
  --blue-dark: #1e53e5;
  --bg: #ececec;
  --bg-soft: #e8e8e8;
  --bg-steps: #e0e0e0;
  --white: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --border: rgba(0, 0, 0, .08);
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, .14);
  --serif: 'PT Serif', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --header-h: 72px;
  --transition: .25s ease;

  /* Spacing scale (8px) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;

  /* Typography */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 34px;
  --lh: 1.5;
  --lh-tight: 1.25;

  --container: 1120px;
  --gutter: 24px;
  --section-y: var(--s6);
  --title-gap: var(--s4);
  --card-gap: var(--s3);
  --card-pad: var(--s4);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  padding-top: var(--header-h);
  overflow-x: clip;
}

.page {
  width: 100%;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-width: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--transition), transform .15s, box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: scale(.98); }
.btn--lg {
  padding: 16px 32px;
  font-size: var(--fs-md);
  width: 100%;
  max-width: 360px;
}
.btn--orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 87, 34, .35);
}
.btn--orange:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 20px rgba(255, 87, 34, .45);
}
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(236, 236, 236, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  height: var(--header-h);
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.header__cta {
  flex-shrink: 0;
  padding: 12px 22px;
}

/* ===== Hero ===== */
.hero {
  padding: var(--s4) 0 var(--section-y);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: var(--s5);
  align-items: start;
  min-width: 0;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
  min-width: 0;
}

.hero__title {
  font-family: var(--serif);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.hero__bullet {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 11px;
}

.hero__cta,
.hero__content > .btn {
  margin: 0;
}

.benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  width: 100%;
}

.benefits li {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.35;
  padding-left: 22px;
  position: relative;
}

.benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.hero__visual {
  position: sticky;
  top: calc(var(--header-h) + var(--s3));
  min-width: 0;
}

.hero__visual-frame {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s2);
  box-shadow: var(--shadow);
}

.hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* ===== Sections ===== */
.section {
  padding: var(--section-y) 0;
  scroll-margin-top: calc(var(--header-h) + var(--s2));
}

.section--white { background: var(--white); }

.section__title {
  font-family: var(--serif);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  text-align: center;
  margin: 0 0 var(--title-gap);
}

/* ===== Stats ===== */
.stats {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
}

.stat-card {
  text-align: center;
  padding: var(--card-pad) var(--s2);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 87, 34, .12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s2);
}

.stat-card__icon svg {
  width: 28px;
  height: 28px;
}

.stat-card__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
  margin: 0 0 var(--s1);
}

.stat-card__text {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* ===== Audience ===== */
.audience-card {
  padding: var(--card-pad);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.audience-card--single {
  max-width: 520px;
  margin: 0 auto;
}

.audience-card__num {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--orange);
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.audience-card__title {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0 0 var(--s2);
}

.audience-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audience-card__list li {
  font-size: var(--fs-md);
  line-height: 1.4;
  padding-left: 18px;
  position: relative;
}

.audience-card__list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ===== What we don't do ===== */
.no-do {
  background: var(--white);
  text-align: center;
}

.no-do .section__title {
  text-align: center;
  margin-bottom: var(--s2);
}

.no-do .container {
  max-width: 760px;
}

.no-do__headline {
  font-family: var(--serif);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--text);
  line-height: var(--lh-tight);
  text-align: center;
  margin: 0;
}

/* ===== Scheme / steps ===== */
.steps-block {
  background: var(--bg-steps);
  border-radius: var(--radius-lg);
  padding: var(--s4) var(--s3);
  max-width: 820px;
  margin: 0 auto;
}

.steps {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: var(--s2);
}

.steps::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, .18);
  z-index: 0;
}

.steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
  z-index: 1;
  text-align: center;
}

.steps__item--bottom { flex-direction: column-reverse; }

.steps__num {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: var(--fs-base);
  font-weight: 700;
  background: var(--bg-steps);
}

.steps__label {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  line-height: 1.3;
  max-width: 130px;
  color: var(--text);
}

.steps--three .steps__label {
  font-size: var(--fs-sm);
  max-width: 140px;
}

/* ===== Projects ===== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0 0 var(--s4);
  align-items: stretch;
}

.project-card {
  margin: 0;
  background: var(--bg-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: var(--bg-soft);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.projects__cta {
  display: flex;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--s5) 0 var(--s3);
  padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s4);
  margin-bottom: var(--s4);
  align-items: start;
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: var(--s2);
  opacity: .9;
}

.footer__legal,
.footer__hours {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.footer__legal + .footer__legal {
  margin-top: var(--s1);
}

.footer__legal--accent {
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-base);
}

.footer__heading {
  font-size: var(--fs-base);
  font-weight: 600;
  margin: 0 0 var(--s1);
  color: var(--text);
}

.footer__link {
  display: block;
  background: none;
  border: none;
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--blue);
  cursor: pointer;
  text-align: left;
  margin: 0 0 10px;
  font-family: inherit;
  line-height: 1.4;
}

.footer__link:hover { text-decoration: underline; }
.footer__link:last-child { margin-bottom: 0; }

.footer__disclaimer {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}

/* ===== Mobile bar ===== */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px var(--gutter);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
}

.mobile-bar__cta {
  flex: 1;
  padding: 14px 16px;
  font-size: var(--fs-base);
  max-width: none;
  width: 100%;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s3);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px) scale(.98);
  transition: transform var(--transition);
}

.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__dialog--wide { max-width: 680px; }

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  z-index: 1;
  padding: 4px;
}

.modal__close:hover { color: var(--text); }

.modal__body { padding: var(--s5) var(--s4) var(--s4); }

.modal__title {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0 0 var(--s3);
  line-height: var(--lh-tight);
}

.modal__subtitle {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0 0 var(--s3);
  line-height: var(--lh);
}

.modal__success { text-align: center; padding: var(--s5) var(--s4); }

.modal__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s3);
}

.modal__text-content h2 {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  margin: 0 0 var(--s2);
}

.modal__text-content h3 {
  font-size: var(--fs-md);
  margin: var(--s3) 0 var(--s1);
}

.modal__text-content p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 10px;
}

/* ===== Form ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}

.form__input {
  padding: 13px var(--s2);
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: var(--fs-base);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.form__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 98, 255, .12);
}

.form__input.is-error { border-color: #e53935; }

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}

.form__checkbox input {
  margin-top: 3px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.form__link {
  background: none;
  border: none;
  padding: 0;
  color: var(--blue);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.form__submit {
  max-width: 100%;
  margin-top: var(--s1);
}

.form__note {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
  margin: 0;
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .1);
  padding: var(--s2) var(--gutter);
  padding-bottom: calc(var(--s2) + env(safe-area-inset-bottom));
}

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.cookie-banner__text {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
  margin: 0;
}

.cookie-banner__link {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 10px 28px;
}

body.has-cookie-bar .mobile-bar { bottom: 72px; }
body.has-cookie-bar .footer { padding-bottom: 88px; }

/* ===== Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(12px);
  transition: transform .45s ease;
}

.reveal.is-visible { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (min-width: 1100px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: var(--s5);
  }
}

@media (max-width: 960px) {
  :root {
    --section-y: var(--s5);
    --fs-3xl: 28px;
    --fs-2xl: 24px;
  }

  .hero__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hero__visual {
    order: -1;
    position: static;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--links { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --section-y: var(--s5);
    --title-gap: var(--s3);
    --card-gap: var(--s2);
    --card-pad: var(--s3);
    --header-h: 64px;
    --fs-3xl: 24px;
    --fs-2xl: 22px;
    --fs-xl: 20px;
    --fs-lg: 16px;
  }

  .header { height: auto; min-height: var(--header-h); }
  body { padding-top: var(--header-h); }

  .header__inner {
    gap: var(--s2);
    height: auto;
    min-height: var(--header-h);
    padding: 10px 0;
  }

  .logo img {
    height: 36px;
    max-width: 140px;
    object-fit: contain;
    object-position: left center;
  }

  .header__cta {
    padding: 10px 12px;
    font-size: var(--fs-xs);
    white-space: normal;
    line-height: 1.2;
    max-width: 148px;
    text-align: center;
  }

  .hero { padding-top: var(--s2); }
  .hero__title { gap: 10px; }
  .hero__bullet { width: 10px; height: 10px; margin-top: 8px; }
  .benefits li { padding-left: 20px; }
  .benefits li::before { width: 8px; height: 8px; top: 6px; }
  .btn--lg { max-width: 100%; }

  .steps-block { padding: var(--s3) var(--s2); }
  .steps { gap: var(--s1); }
  .steps::before { left: 8%; right: 8%; }
  .steps__num { width: 36px; height: 36px; font-size: var(--fs-sm); }
  .steps__label { font-size: 11px; max-width: 96px; }

  .stats__grid { grid-template-columns: 1fr; }
  .projects__grid { max-width: 100%; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--s3); }

  .mobile-bar {
    display: flex;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .footer, body { padding-bottom: 72px; }

  .cookie-banner {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .modal__body { padding: var(--s4) var(--s3) var(--s3); }
}

@media (max-width: 400px) {
  .steps {
    flex-wrap: wrap;
    justify-content: center;
  }
  .steps::before { display: none; }
  .steps__item { flex: 0 0 45%; }
  .steps__item--bottom { flex-direction: column; }
}
