:root {
  --bg-base: #ffffff;
  --bg-overlay-1: rgba(255, 255, 255, 0.9);
  --bg-overlay-2: rgba(255, 255, 255, 0.68);
  --bg-overlay-3: rgba(255, 255, 255, 0.34);
  --text-main: #111111;
  --text-subtle: #2f2f2f;
  --ink: #131313;
  --accent: #111111;
  --accent-hover: #2a2a2a;
  --pill-bg: rgba(255, 255, 255, 0.95);
  --card-bg: rgba(255, 255, 255, 0.92);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.12);
  --radius-pill: 999px;
  --radius-lg: 14px;
  --container-max: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--text-main);
}

.container {
  width: min(var(--container-max), calc(100% - 64px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background-image: url("assets/hero-optimized.jpg?v=20260213-4");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-color: #f4f6f5;
  overflow: hidden;
}

.hero-overlay,
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay {
  z-index: -2;
  display: none;
}

.hero-grain {
  z-index: -1;
  display: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.3) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.hero-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 98px 0 28px;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container-max), calc(100% - 64px));
  top: 14px;
  z-index: 1000;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.08) 42%,
      rgba(255, 255, 255, 0.14) 100%
    );
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: clamp(30px, 2.2vw, 42px);
  width: auto;
  transform: translateY(-2px);
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  min-width: 0;
}

.main-nav a {
  color: #111111;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 400;
  position: relative;
  line-height: 1;
}

.main-nav a.active {
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #111111;
  text-decoration: none;
}

.lang-link:hover {
  background: rgba(0, 0, 0, 0.08);
}

.lang-link.is-active {
  background: #111111;
  color: #ffffff;
}

.phone-picker {
  position: relative;
}

.phone-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
  min-width: 158px;
  box-sizing: border-box;
}

.phone-trigger::-webkit-details-marker {
  display: none;
}

.phone-picker[open] .phone-trigger {
  background: #efefef;
}

.phone-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.phone-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.phone-label {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.phone-list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(247, 247, 245, 0.98);
  box-shadow: var(--shadow-soft);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  color: #111111;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
}

.phone-link:hover {
  background: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 0;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 150ms ease, background-color 150ms ease;
}

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

.btn-primary {
  background: #ffffff;
  color: #111111;
  border: 1px solid #111111;
  padding: 14px 28px;
}

.btn-primary:hover {
  background: #efefef;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  border: 1px solid #111111;
  padding: 14px 28px;
}

.header-cta {
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.22);
  min-height: 44px;
  min-width: 158px;
  box-sizing: border-box;
}

.header-cta:hover {
  background: #efefef;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #212121;
  border-radius: 2px;
}

.hero-content {
  margin-top: clamp(32px, 6vh, 72px);
  max-width: min(635px, 100%);
  animation: hero-rise 600ms ease-out both;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(4.1rem, 6.5vw, 7.8rem);
  line-height: 0.97;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.hero-content h1 span {
  display: block;
}

.hero-content p {
  margin: 24px 0 0;
  max-width: 640px;
  color: #111111;
  font-size: clamp(1.55rem, 1.65vw, 2.15rem);
  line-height: 1.45;
  font-weight: 300;
}

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

.hero-feature {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #111111;
  display: inline-grid;
  place-items: center;
}

.feature-icon svg {
  width: 19px;
  height: 19px;
  fill: #ffffff;
}

.hero-feature h2 {
  margin: 0;
  font-size: clamp(2rem, 1.8vw, 2.7rem);
  line-height: 1.15;
  font-weight: 500;
}

.hero-feature p {
  margin: 6px 0 0;
  font-size: clamp(1.35rem, 1.1vw, 1.65rem);
  line-height: 1.4;
  color: #111111;
  max-width: 460px;
}

.about {
  background: #f4f6f5;
  padding: clamp(38px, 5.2vw, 68px) 0 clamp(46px, 6.2vw, 90px);
}

.about-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.2vw, 40px);
}

.about-top {
  display: grid;
  grid-template-columns: minmax(140px, 33%) 1fr;
  gap: 24px;
  align-items: start;
}

.about-kicker {
  font-size: 1.8rem;
  line-height: 1.2;
  color: #111111;
  border-top: 1px solid rgba(17, 17, 17, 0.2);
  padding-top: 18px;
}

.about-top h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(3.4rem, 4vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.about-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 2.5vw, 34px);
  align-items: center;
}

.about-media {
  border-radius: 22px;
  overflow: hidden;
}

.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 30vw, 430px);
  object-fit: cover;
}

.about-copy {
  max-width: 50ch;
}

.about-copy p {
  margin: 0;
  color: rgba(17, 17, 17, 0.72);
  font-size: clamp(1.55rem, 1.1vw, 2.2rem);
  line-height: 1.55;
  font-weight: 400;
}

.about-copy p + p {
  margin-top: clamp(18px, 2vw, 30px);
}

.about-btn {
  margin-top: clamp(16px, 2.2vw, 28px);
  background: #b8ef58;
  color: #111111;
  border: 1px solid transparent;
  padding: 14px 30px;
}

.about-btn:hover {
  background: #ace348;
}

.about-stats {
  margin-top: clamp(14px, 1.8vw, 24px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.about-stats h3 {
  margin: 0;
  font-size: clamp(3.8rem, 3.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.about-stats p {
  margin: 14px 0 0;
  font-size: clamp(1.45rem, 1.05vw, 1.8rem);
  line-height: 1.3;
  color: rgba(17, 17, 17, 0.65);
}

.services {
  background: #fbfcfb;
  padding: clamp(40px, 5vw, 70px) 0 clamp(54px, 6.5vw, 95px);
}

.services-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.services-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.services-head h2 {
  margin: 0;
  font-size: clamp(3.4rem, 3.8vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.services-top-btn,
.service-btn {
  background: #b8ef58;
  color: #111111;
  border: 1px solid transparent;
  padding: 14px 30px;
}

.services-top-btn:hover,
.service-btn:hover {
  background: #ace348;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(240px, 31%) minmax(180px, 24%) 1fr;
  gap: clamp(18px, 2vw, 34px);
  align-items: center;
  padding: clamp(18px, 1.8vw, 28px) 0;
  border-top: 1px solid rgba(17, 17, 17, 0.16);
}

.service-image {
  border-radius: 12px;
  overflow: hidden;
  min-height: clamp(220px, 20vw, 290px);
}

.service-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-meta h3 {
  margin: 0;
  font-size: clamp(3.8rem, 3.2vw, 5rem);
  line-height: 1;
  font-weight: 500;
}

.service-meta ul {
  margin: 14px 0 0;
  padding-left: 0;
  list-style: none;
}

.service-meta li {
  position: relative;
  padding-left: 14px;
  font-size: clamp(1.45rem, 1vw, 1.7rem);
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.66);
}

.service-meta li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(17, 17, 17, 0.9);
}

.service-meta li + li {
  margin-top: 6px;
}

.service-content h4 {
  margin: 0;
  font-size: clamp(3.6rem, 3.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.service-content p {
  margin: 16px 0 0;
  max-width: 43ch;
  font-size: clamp(1.55rem, 1.08vw, 1.95rem);
  line-height: 1.52;
  color: rgba(17, 17, 17, 0.68);
}

.service-content .service-btn {
  margin-top: 16px;
}

.testimonials {
  background: #f4f6f5;
  padding: clamp(44px, 5.2vw, 78px) 0 clamp(68px, 7vw, 112px);
}

.testimonials-shell {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.testimonials-kicker {
  font-size: 1.6rem;
  line-height: 1.2;
  color: #111111;
  border-top: 1px solid rgba(17, 17, 17, 0.2);
  padding-top: 16px;
}

.testimonials-head {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(34px, 4vw, 74px);
  align-items: start;
}

.testimonials-head h2 {
  margin: 0;
  font-size: clamp(3.3rem, 3.3vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 14ch;
}

.testimonials-head p {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(1.3rem, 0.9vw, 1.6rem);
  line-height: 1.68;
  color: rgba(17, 17, 17, 0.65);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
  margin-top: clamp(12px, 1.8vw, 30px);
}

.testimonial-card {
  background: #f7f8f7;
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: clamp(18px, 1.8vw, 26px);
  display: flex;
  flex-direction: column;
  min-height: clamp(400px, 35vw, 520px);
}

.testimonial-card h3 {
  margin: 0;
  font-size: clamp(1.9rem, 1.5vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.testimonial-card p {
  margin: 20px 0 0;
  font-size: clamp(1.2rem, 0.85vw, 1.4rem);
  line-height: 1.66;
  color: rgba(17, 17, 17, 0.66);
}

.testimonial-meta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 17, 17, 0.16);
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-meta img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 26%;
  display: block;
}

.testimonial-meta h4 {
  margin: 0;
  font-size: clamp(1.6rem, 1.1vw, 1.95rem);
  line-height: 1.2;
  font-weight: 500;
}

.testimonial-meta span {
  display: block;
  margin-top: 3px;
  font-size: clamp(1.2rem, 0.8vw, 1.35rem);
  line-height: 1.25;
  color: rgba(17, 17, 17, 0.66);
}

.team {
  background: #f4f6f5;
  padding: clamp(34px, 4.3vw, 62px) 0 clamp(56px, 6.2vw, 96px);
}

.team-shell {
  width: min(1320px, calc(100vw - 64px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.team-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 17, 17, 0.16);
}

.team-top h2 {
  margin: 0;
  font-size: clamp(3.2rem, 3.3vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.team-view-btn {
  background: #b8ef58;
  color: #111111;
  border: 1px solid transparent;
  padding: 11px 22px;
  font-size: 1.28rem;
}

.team-view-btn:hover {
  background: #ace348;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 410px));
  justify-content: space-between;
  gap: 16px;
}

.team-card {
  border-radius: 18px;
  overflow: hidden;
  background: #f7f8f7;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.team-photo {
  background: #daeae2;
  aspect-ratio: 1 / 1.07;
}

.team-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
}

.team-body {
  padding: clamp(10px, 1vw, 14px);
}

.team-body h3 {
  margin: 0;
  font-size: clamp(2.3rem, 1.9vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.team-role {
  margin: 7px 0 0;
  font-size: clamp(1.22rem, 0.82vw, 1.5rem);
  line-height: 1.35;
  color: rgba(17, 17, 17, 0.68);
}

.team-meta {
  margin-top: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.team-phone {
  margin: 0;
  font-size: clamp(1.16rem, 0.78vw, 1.38rem);
  line-height: 1.2;
  color: rgba(17, 17, 17, 0.72);
}

.team-social {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.team-social a {
  text-decoration: none;
  color: rgba(17, 17, 17, 0.64);
  font-size: 1.2rem;
  line-height: 1;
}

.team-book-btn {
  margin-top: 12px;
  width: 100%;
  background: #b8ef58;
  color: #111111;
  border: 1px solid transparent;
  padding: 11px 14px;
  font-size: 1.35rem;
}

.team-book-btn:hover {
  background: #ace348;
}

.contact-card {
  background: #f4f6f5;
  padding: 0 0 clamp(56px, 6.2vw, 92px);
}

.contact-shell {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  padding: clamp(28px, 2.8vw, 42px);
  display: grid;
  grid-template-columns: minmax(300px, 0.98fr) minmax(340px, 1.08fr);
  gap: clamp(22px, 2.2vw, 34px);
  background:
    linear-gradient(120deg, rgba(0, 37, 32, 0.92), rgba(4, 43, 48, 0.88)),
    url("assets/hero-optimized.jpg?v=20260213-4");
  background-size: cover;
  background-position: center;
}

.contact-form-card {
  background: #f3f4f3;
  border-radius: 18px;
  padding: clamp(17px, 1.7vw, 24px);
}

.contact-form-card h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.7rem, 3.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #0d1f19;
  font-weight: 500;
}

.js-heading-reveal .heading-reveal {
  white-space: normal;
}

.js-heading-reveal .heading-reveal .heading-reveal-char {
  display: inline-block;
  opacity: 0;
  filter: blur(11px);
  transform: translateX(-0.26em) scale(1.015);
  will-change: transform, filter, opacity;
}

.js-heading-reveal .heading-reveal.is-revealed .heading-reveal-char {
  animation: heading-char-reveal 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--char-index) * 28ms);
}

.js-heading-reveal .heading-reveal.is-revealed .heading-reveal-char.space-char {
  animation-duration: 1ms;
}

.contact-form {
  margin-top: clamp(14px, 1.5vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-size: 1.3rem;
  line-height: 1.2;
  color: #1a2220;
  font-weight: 500;
}

.contact-form input,
.contact-form select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #e6e8e6;
  color: #1a2220;
  font-family: inherit;
  font-size: 1.3rem;
  line-height: 1.2;
  padding: 12px 13px;
  outline: 0;
}

.contact-form input::placeholder {
  color: rgba(26, 34, 32, 0.47);
}

.contact-form select {
  cursor: pointer;
  color: rgba(26, 34, 32, 0.47);
}

.contact-form-grid {
  margin-top: 2px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contact-form-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-submit {
  margin-top: 8px;
  width: 100%;
  background: #cbe89f;
  color: rgba(17, 17, 17, 0.5);
  border: 1px solid transparent;
  padding: 12px 16px;
  font-size: 1.3rem;
  font-weight: 400;
}

.contact-submit:hover {
  background: #c2e38f;
}

.contact-content {
  color: #ecf4ed;
  padding-top: 4px;
}

.contact-kicker {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  color: rgba(236, 244, 237, 0.95);
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(236, 244, 237, 0.28);
}

.contact-content h3 {
  margin: 16px 0 0;
  font-size: clamp(3.9rem, 3.9vw, 5.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.contact-lead {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: clamp(1.55rem, 1.12vw, 2.1rem);
  line-height: 1.46;
  color: rgba(236, 244, 237, 0.92);
}

.contact-divider {
  margin-top: clamp(76px, 7.8vw, 128px);
  width: 100%;
  border-top: 1px solid rgba(236, 244, 237, 0.28);
}

.contact-points {
  margin-top: clamp(22px, 2.3vw, 32px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 24px);
}

.contact-point-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #b8ef58;
}

.contact-point-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-points h4 {
  margin: 9px 0 0;
  font-size: clamp(3.2rem, 2.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #edf4ee;
}

.contact-points p {
  margin: 11px 0 0;
  max-width: 24ch;
  font-size: clamp(1.35rem, 0.92vw, 1.65rem);
  line-height: 1.5;
  color: rgba(235, 243, 236, 0.84);
}

.gallery {
  position: relative;
  background: #f4f6f5;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gallery-shell {
  position: relative;
  z-index: 2;
  max-width: 860px;
  height: 335px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.gallery-kicker {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #111111;
}

.gallery-shell h2 {
  margin: 12px 0 0;
  font-size: clamp(3rem, 3.2vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0e1f18;
  font-weight: 600;
}

.gallery-shell p {
  margin: 14px auto 0;
  max-width: 42ch;
  font-size: clamp(1.35rem, 0.95vw, 1.65rem);
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.78);
}

.gallery-btn {
  margin-top: 14px;
  background: #b8ef58;
  color: #111111;
  border: 1px solid transparent;
  padding: 10px 22px;
  font-size: 1.35rem;
}

.gallery-btn:hover {
  background: #ace348;
}

.gallery-row {
  position: absolute;
  left: 0;
  width: 100%;
  height: 273px;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}

.gallery-row-top {
  top: -22px;
}

.gallery-row-bottom {
  bottom: -22px;
}

.gallery-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 16px;
}

.gallery-track img {
  flex: 0 0 auto;
  width: 114px;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
}

.gallery-row-top .gallery-track img:nth-child(4n + 1) {
  transform: translateY(-72px);
}

.gallery-row-top .gallery-track img:nth-child(4n + 2) {
  transform: translateY(88px);
}

.gallery-row-top .gallery-track img:nth-child(4n + 3) {
  transform: translateY(-30px);
}

.gallery-row-top .gallery-track img:nth-child(4n + 4) {
  transform: translateY(118px);
}

.gallery-row-bottom .gallery-track img:nth-child(4n + 1) {
  transform: translateY(72px);
}

.gallery-row-bottom .gallery-track img:nth-child(4n + 2) {
  transform: translateY(-88px);
}

.gallery-row-bottom .gallery-track img:nth-child(4n + 3) {
  transform: translateY(30px);
}

.gallery-row-bottom .gallery-track img:nth-child(4n + 4) {
  transform: translateY(-118px);
}

.gallery-row-top .gallery-track {
  animation: gallery-left 48s linear infinite;
}

.gallery-row-bottom .gallery-track {
  animation: gallery-right 48s linear infinite;
}

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

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

.gallery-reference {
  background: #f5f4f7;
  min-height: 100svh;
  padding: 0;
}

.gallery-reference .gallery-shell {
  max-width: 820px;
  height: auto;
}

.gallery-reference .gallery-kicker {
  font-size: clamp(1.6rem, 0.95vw, 2rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.gallery-reference .gallery-shell h2 {
  margin-top: 14px;
  max-width: 20ch;
  font-size: clamp(3.8rem, 3.35vw, 5.9rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.gallery-reference .gallery-shell p {
  margin-top: 12px;
  max-width: 44ch;
  font-size: clamp(1.45rem, 0.92vw, 1.95rem);
  line-height: 1.42;
}

.gallery-reference .gallery-btn {
  margin-top: 20px;
  background: #b8ec58;
  padding: 14px 30px;
  font-size: clamp(1.55rem, 0.92vw, 1.95rem);
}

.gallery-reference .gallery-row {
  left: 16px;
  width: calc(100% - 32px);
  height: 174px;
  mask-image: none;
  padding-inline: 2px;
}

.gallery-reference .gallery-row-top {
  top: 16px;
}

.gallery-reference .gallery-row-bottom {
  bottom: 16px;
}

.gallery-reference .gallery-track {
  gap: 14px;
}

.gallery-reference .gallery-row .gallery-track img {
  transform: translateY(0);
}

.gallery-reference .gallery-track img {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 1) {
  transform: translateY(0);
}

.gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 2) {
  transform: translateY(18px);
}

.gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 3) {
  transform: translateY(34px);
}

.gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 4) {
  transform: translateY(8px);
}

.gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 5) {
  transform: translateY(22px);
}

.gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 6) {
  transform: translateY(4px);
}

.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 1) {
  transform: translateY(0);
}

.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 2) {
  transform: translateY(-14px);
}

.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 3) {
  transform: translateY(-30px);
}

.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 4) {
  transform: translateY(-8px);
}

.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 5) {
  transform: translateY(-20px);
}

.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 6) {
  transform: translateY(-4px);
}

.gallery-reference .gallery-row-top .gallery-track,
.gallery-reference .gallery-row-bottom .gallery-track {
  animation: none;
  transform: translateX(0);
}

.gallery-reference .gallery-row-top .gallery-track {
  align-items: flex-start;
}

.gallery-reference .gallery-row-bottom .gallery-track {
  align-items: flex-end;
}

@media (max-width: 1023px) {
  .gallery-reference {
    min-height: 100svh;
    padding: 0;
  }

  .gallery-reference .gallery-shell h2 {
    font-size: clamp(3.4rem, 6.3vw, 4.8rem);
  }

  .gallery-reference .gallery-shell p {
    max-width: 34ch;
    font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  }

  .gallery-reference .gallery-btn {
    margin-top: 18px;
    padding: 12px 24px;
    font-size: clamp(1.45rem, 2vw, 1.85rem);
  }

  .gallery-reference .gallery-row {
    left: 10px;
    width: calc(100% - 20px);
    height: 142px;
    padding-inline: 1px;
  }

  .gallery-reference .gallery-track {
    gap: 10px;
  }

  .gallery-reference .gallery-track img {
    width: 84px;
    height: 84px;
    border-radius: 12px;
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 1) {
    transform: translateY(0);
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 2) {
    transform: translateY(14px);
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 3) {
    transform: translateY(24px);
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 4) {
    transform: translateY(6px);
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 5) {
    transform: translateY(16px);
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 6) {
    transform: translateY(2px);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 1) {
    transform: translateY(0);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 2) {
    transform: translateY(-10px);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 3) {
    transform: translateY(-22px);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 4) {
    transform: translateY(-6px);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 5) {
    transform: translateY(-14px);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 6) {
    transform: translateY(-2px);
  }

  .gallery-reference .gallery-row-top .gallery-track {
    align-items: flex-start;
  }

  .gallery-reference .gallery-row-bottom .gallery-track {
    align-items: flex-end;
  }
}

@media (max-width: 767px) {
  .gallery-reference {
    min-height: 96svh;
    padding: 0;
  }

  .gallery-reference .gallery-shell {
    max-width: 90vw;
  }

  .gallery-reference .gallery-kicker {
    font-size: 1.5rem;
  }

  .gallery-reference .gallery-shell h2 {
    margin-top: 12px;
    max-width: 15ch;
    font-size: clamp(2.9rem, 7.8vw, 4rem);
  }

  .gallery-reference .gallery-shell p {
    margin-top: 10px;
    max-width: 30ch;
    font-size: clamp(1.45rem, 3.7vw, 1.8rem);
  }

  .gallery-reference .gallery-btn {
    margin-top: 14px;
    padding: 10px 22px;
    font-size: 1.6rem;
  }

  .gallery-reference .gallery-row {
    left: 8px;
    width: calc(100% - 16px);
    height: 114px;
    padding-inline: 0;
  }

  .gallery-reference .gallery-row-top {
    top: 10px;
  }

  .gallery-reference .gallery-row-bottom {
    bottom: 10px;
  }

  .gallery-reference .gallery-track {
    gap: 7px;
  }

  .gallery-reference .gallery-track img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 1) {
    transform: translateY(0);
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 2) {
    transform: translateY(10px);
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 3) {
    transform: translateY(16px);
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 4) {
    transform: translateY(4px);
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 5) {
    transform: translateY(10px);
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(6n + 6) {
    transform: translateY(0);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 1) {
    transform: translateY(0);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 2) {
    transform: translateY(-8px);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 3) {
    transform: translateY(-14px);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 4) {
    transform: translateY(-4px);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 5) {
    transform: translateY(-8px);
  }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(6n + 6) {
    transform: translateY(0);
  }

  .gallery-reference .gallery-row-top .gallery-track {
    align-items: flex-start;
  }

  .gallery-reference .gallery-row-bottom .gallery-track {
    align-items: flex-end;
  }
}

.site-footer {
  background:
    radial-gradient(circle at 22% 22%, rgba(8, 58, 48, 0.22), transparent 48%),
    radial-gradient(circle at 78% 78%, rgba(7, 54, 44, 0.18), transparent 52%),
    #021812;
  padding: clamp(84px, 8.5vw, 126px) 0 clamp(22px, 2.4vw, 34px);
}

.footer-shell {
  border: 1px solid rgba(235, 243, 236, 0.07);
  border-radius: 20px;
  padding: clamp(24px, 2.6vw, 34px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 460px);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding-bottom: clamp(30px, 3.6vw, 48px);
  border-bottom: 1px solid rgba(235, 243, 236, 0.14);
}

.footer-top h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(3.2rem, 3.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  word-break: normal;
  color: #eef6f0;
  font-weight: 500;
}

.footer-top p {
  margin: 14px 0 0;
  font-size: clamp(1.6rem, 1vw, 1.9rem);
  line-height: 1.55;
  color: rgba(235, 243, 236, 0.9);
}

.footer-contact {
  width: min(100%, 460px);
  justify-self: end;
  text-align: left;
}

.footer-contact span {
  display: block;
  margin: 0;
  font-size: clamp(1.5rem, 0.9vw, 1.7rem);
  line-height: 1.2;
  color: rgba(235, 243, 236, 0.82);
}

.footer-contact a {
  display: block;
  margin-top: 8px;
  text-decoration: none;
  color: #eef6f0;
  font-size: clamp(1.8rem, 1.05vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-weight: 500;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: clamp(20px, 3.8vw, 60px);
  padding: clamp(34px, 4.1vw, 56px) 0;
  border-bottom: 1px solid rgba(235, 243, 236, 0.14);
}

.footer-map {
  padding: clamp(30px, 3.5vw, 48px) 0;
  border-bottom: 1px solid rgba(235, 243, 236, 0.14);
}

.footer-map h3 {
  margin: 0;
  font-size: clamp(2.1rem, 1.35vw, 2.8rem);
  line-height: 1.16;
  color: #eef6f0;
  font-weight: 500;
}

.footer-map p {
  margin: 10px 0 0;
  font-size: clamp(1.55rem, 0.95vw, 1.85rem);
  line-height: 1.45;
  color: rgba(235, 243, 236, 0.82);
}

.footer-map-frame {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(235, 243, 236, 0.2);
  background: #0e2a22;
}

.footer-map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 30vw, 380px);
  border: 0;
}

.footer-map-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(184, 239, 88, 0.45);
  background: rgba(184, 239, 88, 0.12);
  color: #d4f67f;
  text-decoration: none;
  font-size: clamp(1.55rem, 1vw, 1.85rem);
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.footer-map-link:hover {
  background: rgba(184, 239, 88, 0.2);
  border-color: rgba(184, 239, 88, 0.68);
  color: #e6ffad;
}

.footer-links h3 {
  margin: 0;
  font-size: clamp(1.9rem, 1.15vw, 2.3rem);
  line-height: 1.2;
  color: rgba(235, 243, 236, 0.82);
  font-weight: 400;
}

.footer-links ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #eef6f0;
  font-size: clamp(1.9rem, 1.15vw, 2.3rem);
  line-height: 1.2;
}

.footer-links a.is-active {
  color: #b8ef58;
}

.footer-bottom {
  padding-top: clamp(28px, 3.1vw, 44px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: clamp(1.6rem, 1vw, 1.9rem);
  line-height: 1.3;
  color: rgba(235, 243, 236, 0.86);
}

.footer-bottom img {
  width: clamp(210px, 20vw, 300px);
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.process {
  background: #f4f6f5;
  padding: clamp(34px, 4.4vw, 62px) 0 clamp(48px, 5.2vw, 80px);
}

.process-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-kicker {
  font-size: 1.8rem;
  line-height: 1.2;
  color: #111111;
  border-top: 1px solid rgba(17, 17, 17, 0.2);
  padding-top: 16px;
}

.process-intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: start;
}

.process-intro h2 {
  margin: 0;
  font-size: clamp(3.4rem, 3.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.process-intro p {
  margin: 0;
  max-width: 45ch;
  font-size: clamp(1.45rem, 1vw, 1.75rem);
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.7);
}

.process-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-item {
  border-radius: 34px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: transparent;
  overflow: hidden;
  transition: background-color 320ms ease, border-color 320ms ease;
}

.process-item.is-open {
  background: #001e18;
  border-color: transparent;
}

.process-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: clamp(14px, 1.4vw, 20px) clamp(18px, 1.6vw, 28px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  color: #111111;
  text-align: left;
  font-family: inherit;
}

.process-step {
  width: clamp(48px, 3.9vw, 62px);
  height: clamp(48px, 3.9vw, 62px);
  border-radius: 50%;
  border: 2px solid rgba(17, 17, 17, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.6rem, 1vw, 2rem);
  line-height: 1;
}

.process-title {
  font-size: clamp(3.2rem, 2.7vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.process-icon {
  width: clamp(56px, 4.4vw, 72px);
  height: clamp(56px, 4.4vw, 72px);
  border-radius: 50%;
  background: #b8ef58;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.process-icon::before {
  content: "+";
  font-size: clamp(2.7rem, 2vw, 3.4rem);
  line-height: 1;
  color: #111111;
  font-weight: 400;
}

.process-item.is-open .process-trigger {
  color: #eef5ef;
}

.process-item.is-open .process-step {
  border-color: rgba(238, 245, 239, 0.9);
}

.process-item.is-open .process-icon {
  background: #f2f2f0;
}

.process-item.is-open .process-icon::before {
  content: "×";
}

.process-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.process-panel-inner {
  display: grid;
  grid-template-columns: minmax(270px, 36%) 1fr;
  gap: clamp(16px, 1.8vw, 28px);
  padding: 0 clamp(18px, 1.6vw, 28px) clamp(18px, 2vw, 28px);
}

.process-media {
  border-radius: 28px;
  overflow: hidden;
  min-height: clamp(200px, 16vw, 250px);
}

.process-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.process-content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.process-item.is-open .process-content {
  opacity: 1;
  transform: translateY(0);
}

.process-content p {
  margin: 0;
  max-width: 43ch;
  font-size: clamp(1.45rem, 1vw, 1.75rem);
  line-height: 1.55;
  color: rgba(240, 246, 241, 0.92);
}

.process-content h3 {
  margin: 22px 0 0;
  font-size: clamp(1.9rem, 1.25vw, 2.35rem);
  line-height: 1.15;
  color: #f2f6f2;
  font-weight: 500;
}

.process-tags {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.process-tags li {
  background: rgba(242, 244, 241, 0.96);
  color: #111111;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: clamp(1.3rem, 0.9vw, 1.55rem);
  line-height: 1;
}

.process-btn {
  margin-top: 16px;
  background: #b8ef58;
  color: #111111;
  border: 1px solid transparent;
  padding: 12px 24px;
}

.process-btn:hover {
  background: #ace348;
}

.why-us {
  background: #f4f6f5;
  padding: clamp(36px, 4.4vw, 62px) 0 clamp(56px, 6vw, 92px);
}

.why-shell {
  display: grid;
  grid-template-columns: minmax(280px, 45%) 1fr;
  gap: clamp(24px, 2.8vw, 44px);
  align-items: start;
}

.why-kicker {
  font-size: 1.7rem;
  line-height: 1.2;
  color: #111111;
  border-top: 1px solid rgba(17, 17, 17, 0.2);
  padding-top: 16px;
}

.why-content h2 {
  margin: 22px 0 0;
  font-size: clamp(3.4rem, 3.3vw, 4.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0e1f18;
  font-weight: 600;
}

.why-lead {
  margin: 40px 0 0;
  max-width: 41ch;
  font-size: clamp(1.45rem, 0.98vw, 1.65rem);
  line-height: 1.84;
  color: rgba(17, 17, 17, 0.64);
}

.why-points {
  list-style: none;
  margin: 50px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.why-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.32);
}

.why-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #0f1f18;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-points h3 {
  margin: 0;
  font-size: clamp(1.9rem, 1.45vw, 2.5rem);
  line-height: 1.15;
  color: #0e1f18;
  font-weight: 600;
}

.why-points p {
  margin: 16px 0 0;
  max-width: 42ch;
  font-size: clamp(1.4rem, 0.98vw, 1.6rem);
  line-height: 1.82;
  color: rgba(17, 17, 17, 0.66);
}

.why-btn {
  margin-top: 48px;
  background: #b8ef58;
  color: #111111;
  border: 1px solid transparent;
  padding: 12px 26px;
  font-weight: 400;
}

.why-btn:hover {
  background: #ace348;
}

.before-after {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: clamp(360px, 44vw, 640px);
  user-select: none;
  background: #e0e0de;
  cursor: ew-resize;
}

.before-after-base,
.before-after-top {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.before-after-top {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  z-index: 2;
}

.before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 3;
}

.before-after-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(17, 17, 17, 0.24);
  background: #f6f6f5;
  color: rgba(17, 17, 17, 0.78);
  display: inline-grid;
  place-items: center;
  font-size: 1.7rem;
  line-height: 1;
}

.before-after-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 4;
  cursor: ew-resize;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heading-char-reveal {
  0% {
    opacity: 0;
    filter: blur(11px);
    transform: translateX(-0.26em) scale(1.015);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-heading-reveal .heading-reveal .heading-reveal-char {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}

@media (max-width: 1260px) {
  html {
    font-size: 9px;
  }

  .container {
    width: min(var(--container-max), calc(100% - 40px));
  }

  .site-header {
    width: min(var(--container-max), calc(100% - 40px));
    gap: 22px;
    grid-template-columns: auto 1fr auto auto;
    padding: 9px 14px;
  }

  .main-nav {
    gap: 26px;
  }

  .team-shell {
    width: min(1320px, calc(100vw - 40px));
  }
}

@media (max-width: 1023px) {
  html {
    font-size: 8px;
  }

  .hero {
    background-size: cover;
    background-position: 70% center;
  }

  .hero-content {
    max-width: min(560px, 100%);
  }

  .about-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-kicker {
    width: max-content;
    min-width: 180px;
  }

  .about-top h2 {
    max-width: 100%;
  }

  .about-body {
    grid-template-columns: 1fr;
  }

  .about-copy {
    max-width: 100%;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }

  .service-row {
    grid-template-columns: minmax(220px, 36%) 1fr;
    align-items: start;
  }

  .service-content {
    grid-column: 1 / -1;
  }

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

  .testimonials-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .testimonials-head h2 {
    max-width: 100%;
  }

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

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form-card h2 {
    max-width: 100%;
  }

  .contact-lead {
    max-width: 100%;
  }

  .contact-divider {
    margin-top: 38px;
  }

  .gallery {
    min-height: 100svh;
    padding: 0;
  }

  .gallery-shell h2 {
    font-size: clamp(3.8rem, 5.2vw, 5.8rem);
  }

  .gallery-shell p {
    font-size: clamp(1.65rem, 1.7vw, 2rem);
  }

  .gallery-track img {
    width: 114px;
    height: 110px;
    border-radius: 14px;
  }

  .gallery-row {
    height: 236px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

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

  .footer-map-frame iframe {
    height: clamp(230px, 44vw, 320px);
  }

  .gallery-row-top .gallery-track img:nth-child(4n + 1) {
    transform: translateY(-44px);
  }

  .gallery-row-top .gallery-track img:nth-child(4n + 2) {
    transform: translateY(52px);
  }

  .gallery-row-top .gallery-track img:nth-child(4n + 3) {
    transform: translateY(-18px);
  }

  .gallery-row-top .gallery-track img:nth-child(4n + 4) {
    transform: translateY(68px);
  }

  .gallery-row-bottom .gallery-track img:nth-child(4n + 1) {
    transform: translateY(44px);
  }

  .gallery-row-bottom .gallery-track img:nth-child(4n + 2) {
    transform: translateY(-52px);
  }

  .gallery-row-bottom .gallery-track img:nth-child(4n + 3) {
    transform: translateY(18px);
  }

  .gallery-row-bottom .gallery-track img:nth-child(4n + 4) {
    transform: translateY(-68px);
  }

  .process-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-panel-inner {
    grid-template-columns: 1fr;
    padding-top: 2px;
  }

  .process-content p {
    max-width: 100%;
  }

  .why-shell {
    grid-template-columns: 1fr;
  }

  .before-after {
    height: clamp(320px, 56vw, 520px);
  }
}

@media (min-width: 768px) and (max-height: 860px) {
  .hero-shell {
    padding: 84px 0 18px;
  }

  .hero-content {
    margin-top: 20px;
  }

  .hero-content h1 {
    font-size: clamp(3.6rem, 5.6vw, 6.4rem);
  }

  .hero-content p {
    margin-top: 16px;
    font-size: clamp(1.35rem, 1.35vw, 1.85rem);
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-feature {
    margin-top: auto;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 7px;
  }

  .container {
    width: calc(100% - 30px);
  }

  .team-shell {
    width: calc(100% - 30px);
  }

  .hero {
    background-image: url("assets/hero-optimized-mobile.jpg?v=20260213-4");
    background-size: cover;
    background-position: 74% center;
  }

  .hero-overlay {
    display: none;
  }

  .hero-shell {
    position: relative;
    z-index: 1;
    padding: 84px 0 36px;
  }

  .site-header {
    width: calc(100% - 30px);
    grid-template-columns: 1fr auto auto;
    grid-template-rows: 44px;
    grid-auto-rows: 44px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    min-height: 64px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    max-width: 56vw;
  }

  .brand-logo {
    height: 30px;
    width: auto;
    max-width: 100%;
  }

  .menu-toggle {
    display: inline-block;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }

  .header-cta {
    display: none;
  }

  .header-phone {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    margin: 0;
  }

  .phone-trigger {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    gap: 0;
  }

  .phone-label {
    display: none;
  }

  .phone-list {
    top: calc(100% + 8px);
    right: 0;
    min-width: 192px;
  }

  .phone-link {
    width: 100%;
    font-size: 1.45rem;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(247, 247, 245, 0.98);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.nav-open .main-nav {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    font-size: 1.6rem;
    border-radius: 9px;
    padding: 12px;
  }

  .lang-switch {
    width: 100%;
    margin: 6px 0 0;
    padding: 4px;
  }

  .lang-link {
    flex: 1;
    min-width: 0;
  }

  .main-nav a::before,
  .main-nav a.active::before {
    content: none;
  }

  .main-nav a.active {
    padding: 12px;
  }

  .hero-content {
    margin-top: 62px;
    max-width: min(92%, 420px);
    padding: 14px 14px 12px;
    border-radius: 18px;
    background: rgba(248, 249, 249, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.58);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .hero-content h1 {
    font-size: clamp(4.6rem, 12vw, 7.2rem);
    line-height: 0.98;
    color: #09120f;
  }

  .hero-content p {
    margin-top: 14px;
    font-size: clamp(1.9rem, 4.2vw, 2.2rem);
    line-height: 1.5;
    color: rgba(9, 18, 15, 0.9);
    font-weight: 400;
  }

  .hero-actions {
    margin-top: 26px;
    gap: 12px;
  }

  .btn {
    font-size: 1.7rem;
    padding: 14px 22px;
  }

  .hero-feature {
    margin-top: auto;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(248, 249, 249, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .feature-icon svg {
    width: 18px;
    height: 18px;
  }

  .hero-feature h2 {
    font-size: clamp(2rem, 5vw, 2.6rem);
    color: #09120f;
  }

  .hero-feature p {
    margin-top: 6px;
    font-size: clamp(1.5rem, 3.4vw, 1.8rem);
    max-width: 290px;
    color: rgba(9, 18, 15, 0.88);
  }

  .about {
    padding: 34px 0 48px;
  }

  .about-shell {
    gap: 24px;
  }

  .about-kicker {
    font-size: 1.8rem;
    padding-top: 14px;
    min-width: 130px;
  }

  .about-top h2 {
    font-size: clamp(4.2rem, 10vw, 6.1rem);
    line-height: 1.08;
  }

  .about-media {
    border-radius: 16px;
  }

  .about-media img {
    min-height: 250px;
  }

  .about-copy p {
    font-size: clamp(2rem, 4.4vw, 2.5rem);
    line-height: 1.5;
  }

  .about-btn {
    margin-top: 20px;
    width: max-content;
  }

  .about-stats {
    grid-template-columns: 1fr;
    row-gap: 22px;
    margin-top: 10px;
  }

  .about-stats h3 {
    font-size: clamp(4.2rem, 10vw, 6rem);
  }

  .about-stats p {
    margin-top: 8px;
    font-size: clamp(1.9rem, 4.2vw, 2.2rem);
  }

  .services {
    padding: 36px 0 52px;
  }

  .services-shell {
    gap: 18px;
  }

  .services-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-head h2 {
    font-size: clamp(4.2rem, 10vw, 6.2rem);
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0 26px;
  }

  .service-image {
    min-height: 220px;
  }

  .service-meta h3 {
    font-size: clamp(4.2rem, 10vw, 5.8rem);
  }

  .service-meta ul {
    margin-top: 12px;
  }

  .service-meta li {
    font-size: clamp(2rem, 4.4vw, 2.4rem);
  }

  .service-content h4 {
    font-size: clamp(4.1rem, 9vw, 5.8rem);
  }

  .service-content p {
    font-size: clamp(2rem, 4.4vw, 2.45rem);
    margin-top: 12px;
  }

  .service-content .service-btn {
    margin-top: 16px;
  }

  .testimonials {
    padding: 38px 0 60px;
  }

  .testimonials-kicker {
    font-size: 1.6rem;
    padding-top: 14px;
  }

  .testimonials-head h2 {
    font-size: clamp(3.5rem, 8vw, 4.8rem);
  }

  .testimonials-head p {
    font-size: clamp(1.75rem, 3.8vw, 2.1rem);
    line-height: 1.5;
  }

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

  .testimonial-card {
    min-height: auto;
    padding: 18px;
  }

  .testimonial-card h3 {
    font-size: clamp(3rem, 6.8vw, 4.2rem);
  }

  .testimonial-card p {
    margin-top: 16px;
    font-size: clamp(1.7rem, 3.7vw, 2rem);
    line-height: 1.58;
  }

  .testimonial-meta h4 {
    font-size: clamp(1.8rem, 4vw, 2.1rem);
  }

  .testimonial-meta span {
    font-size: clamp(1.5rem, 3.4vw, 1.8rem);
  }

  .team {
    padding: 32px 0 50px;
  }

  .team-top {
    padding-top: 12px;
  }

  .team-top h2 {
    font-size: clamp(3.7rem, 8.8vw, 5.4rem);
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .team-body h3 {
    font-size: clamp(3.6rem, 8vw, 5rem);
  }

  .team-role {
    font-size: clamp(1.75rem, 3.9vw, 2.1rem);
  }

  .team-phone {
    font-size: clamp(1.75rem, 3.9vw, 2.1rem);
  }

  .team-social a {
    font-size: 1.8rem;
  }

  .contact-card {
    padding-bottom: 52px;
  }

  .contact-shell {
    border-radius: 22px;
    padding: 16px;
    gap: 16px;
  }

  .contact-form-card {
    border-radius: 16px;
    padding: 14px;
  }

  .contact-form-card h2 {
    font-size: clamp(3.6rem, 8.2vw, 5.2rem);
    line-height: 1.04;
  }

  .contact-form {
    margin-top: 14px;
    gap: 8px;
  }

  .contact-form label {
    font-size: 1.7rem;
  }

  .contact-form input,
  .contact-form select {
    font-size: 1.7rem;
    padding: 12px 14px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-form-grid > div {
    gap: 8px;
  }

  .contact-submit {
    margin-top: 8px;
    font-size: 1.7rem;
    padding: 13px 16px;
  }

  .contact-content {
    padding: 2px 2px 4px;
  }

  .contact-kicker {
    font-size: 1.65rem;
    padding-bottom: 12px;
  }

  .contact-content h3 {
    margin-top: 14px;
    font-size: clamp(3.8rem, 8.8vw, 5.5rem);
    line-height: 1.04;
  }

  .contact-lead {
    margin-top: 12px;
    font-size: clamp(1.75rem, 3.8vw, 2.1rem);
    line-height: 1.52;
  }

  .contact-divider {
    margin-top: 22px;
  }

  .contact-points {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-point-icon {
    width: 24px;
    height: 24px;
  }

  .contact-points h4 {
    margin-top: 8px;
    font-size: clamp(3.2rem, 7.2vw, 4.3rem);
  }

  .contact-points p {
    margin-top: 8px;
    max-width: 100%;
    font-size: clamp(1.7rem, 3.6vw, 2rem);
    line-height: 1.5;
  }

  .gallery {
    min-height: 100svh;
    padding: 0;
  }

  .gallery-kicker {
    font-size: 1.8rem;
  }

  .gallery-shell h2 {
    margin-top: 18px;
    font-size: clamp(3.7rem, 9vw, 5.6rem);
    line-height: 1.08;
  }

  .gallery-shell p {
    margin-top: 16px;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    line-height: 1.5;
  }

  .gallery-btn {
    margin-top: 20px;
  }

  .gallery-row-top {
    top: -6px;
  }

  .gallery-row-bottom {
    bottom: -6px;
  }

  .gallery-track {
    gap: 10px;
  }

  .gallery-track img {
    width: 114px;
    height: 110px;
    border-radius: 10px;
  }

  .gallery-row {
    height: 198px;
  }

  .gallery-row-top .gallery-track img:nth-child(4n + 1) {
    transform: translateY(-30px);
  }

  .gallery-row-top .gallery-track img:nth-child(4n + 2) {
    transform: translateY(36px);
  }

  .gallery-row-top .gallery-track img:nth-child(4n + 3) {
    transform: translateY(-12px);
  }

  .gallery-row-top .gallery-track img:nth-child(4n + 4) {
    transform: translateY(44px);
  }

  .gallery-row-bottom .gallery-track img:nth-child(4n + 1) {
    transform: translateY(30px);
  }

  .gallery-row-bottom .gallery-track img:nth-child(4n + 2) {
    transform: translateY(-36px);
  }

  .gallery-row-bottom .gallery-track img:nth-child(4n + 3) {
    transform: translateY(12px);
  }

  .gallery-row-bottom .gallery-track img:nth-child(4n + 4) {
    transform: translateY(-44px);
  }

  .gallery-row-top .gallery-track,
  .gallery-row-bottom .gallery-track {
    animation-duration: 40s;
  }

  .site-footer {
    padding: 18px 0 16px;
  }

  .footer-shell {
    border-radius: 16px;
    padding: 16px;
  }

  .footer-top h2 {
    font-size: clamp(3.4rem, 8.5vw, 4.8rem);
  }

  .footer-top p {
    margin-top: 12px;
    font-size: clamp(1.7rem, 4vw, 2rem);
  }

  .footer-contact span {
    font-size: clamp(1.6rem, 3.6vw, 1.9rem);
  }

  .footer-contact a {
    margin-top: 8px;
    font-size: clamp(1.7rem, 4.4vw, 2.1rem);
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 0;
  }

  .footer-map {
    padding: 20px 0;
  }

  .footer-map h3 {
    font-size: clamp(2rem, 4.4vw, 2.5rem);
  }

  .footer-map p {
    font-size: clamp(1.55rem, 3.8vw, 1.9rem);
  }

  .footer-map-frame {
    margin-top: 12px;
    border-radius: 12px;
  }

  .footer-map-frame iframe {
    height: clamp(200px, 52vw, 260px);
  }

  .footer-map-link {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    font-size: clamp(1.6rem, 3.9vw, 1.9rem);
  }

  .footer-links h3 {
    font-size: clamp(1.9rem, 4.2vw, 2.3rem);
  }

  .footer-links ul {
    margin-top: 12px;
    gap: 8px;
  }

  .footer-links a {
    font-size: clamp(1.9rem, 4.1vw, 2.2rem);
  }

  .footer-bottom {
    padding-top: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom p {
    font-size: clamp(1.7rem, 3.8vw, 2rem);
  }

  .footer-bottom img {
    width: clamp(180px, 54vw, 280px);
  }

  .process {
    padding: 34px 0 52px;
  }

  .process-shell {
    gap: 18px;
  }

  .process-kicker {
    font-size: 1.8rem;
    padding-top: 14px;
  }

  .process-intro h2 {
    font-size: clamp(4.2rem, 10vw, 6.1rem);
  }

  .process-intro p {
    font-size: clamp(2rem, 4.4vw, 2.45rem);
    line-height: 1.5;
  }

  .process-item {
    border-radius: 22px;
  }

  .process-trigger {
    gap: 12px;
    padding: 14px 16px;
  }

  .process-step {
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    border-width: 1.5px;
  }

  .process-title {
    font-size: clamp(3.3rem, 7.4vw, 4.4rem);
  }

  .process-icon {
    width: 52px;
    height: 52px;
  }

  .process-icon::before {
    font-size: 3rem;
  }

  .process-panel-inner {
    gap: 12px;
    padding: 0 16px 18px;
  }

  .process-media {
    border-radius: 14px;
    min-height: 200px;
  }

  .process-content h3 {
    margin-top: 16px;
  }

  .process-tags {
    gap: 8px;
  }

  .process-tags li {
    font-size: clamp(1.7rem, 4vw, 2rem);
    padding: 8px 14px;
  }

  .process-btn {
    margin-top: 16px;
    width: max-content;
  }

  .why-us {
    padding: 34px 0 54px;
  }

  .why-content h2 {
    margin-top: 16px;
    font-size: clamp(4.2rem, 10vw, 6.1rem);
  }

  .why-lead {
    font-size: clamp(1.95rem, 4.3vw, 2.4rem);
    line-height: 1.56;
    margin-top: 22px;
  }

  .why-points {
    margin-top: 28px;
    gap: 22px;
  }

  .why-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .why-icon svg {
    width: 22px;
    height: 22px;
  }

  .why-points h3 {
    font-size: clamp(2.9rem, 7vw, 3.8rem);
  }

  .why-points p {
    margin-top: 10px;
    font-size: clamp(1.9rem, 4.1vw, 2.2rem);
    line-height: 1.54;
  }

  .why-btn {
    margin-top: 24px;
    width: max-content;
  }

  .before-after {
    height: 300px;
  }

  .before-after-handle {
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
  }
}

/* Framer-style gallery override (based on reference template metrics) */
.gallery.gallery-reference {
  --gallery-gap: 16px;
  --gallery-loop-duration: 110s;
  display: grid;
  grid-template-areas:
    "top"
    "text"
    "bottom";
  grid-template-rows: 324px minmax(340px, auto) 324px;
  align-items: center;
  min-height: 990px;
  padding: 0;
  background: #f5f4f7;
  overflow: hidden;
}

.gallery-reference .gallery-shell {
  grid-area: text;
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin-inline: auto;
  padding: 24px 0;
  text-align: center;
}

.gallery-reference .gallery-kicker {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
}

.gallery-reference .gallery-shell h2 {
  margin: 18px auto 0;
  max-width: 17ch;
  font-size: clamp(4.2rem, 3.9vw, 6rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #0d1b15;
}

.gallery-reference .gallery-shell p {
  margin: 24px auto 0;
  max-width: 42ch;
  font-size: clamp(1.4rem, 1.08vw, 1.7rem);
  line-height: 1.5;
  color: rgba(13, 27, 21, 0.86);
}

.gallery-reference .gallery-btn {
  margin-top: 34px;
  padding: 12px 22px;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 100px;
  background: #d1fc71;
  color: #0d1b15;
}

.gallery-reference .gallery-row {
  position: relative;
  width: 100%;
  height: 324px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.gallery-reference .gallery-row-top {
  grid-area: top;
}

.gallery-reference .gallery-row-bottom {
  grid-area: bottom;
}

.gallery-reference .gallery-track {
  display: flex;
  align-items: flex-start;
  gap: var(--gallery-gap);
  width: max-content;
  padding: 0;
  will-change: transform;
}

.gallery-reference .gallery-track img {
  width: 115px;
  height: 115px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 1) { transform: translateY(148px); }
.gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 2) { transform: translateY(102px); }
.gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 3) { transform: translateY(68px); }
.gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 4) { transform: translateY(34px); }
.gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 5) { transform: translateY(0); }
.gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 6) { transform: translateY(44px); }
.gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 7) { transform: translateY(88px); }
.gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 8) { transform: translateY(132px); }

.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 1) { transform: translateY(0); }
.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 2) { transform: translateY(34px); }
.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 3) { transform: translateY(68px); }
.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 4) { transform: translateY(102px); }
.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 5) { transform: translateY(136px); }
.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 6) { transform: translateY(90px); }
.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 7) { transform: translateY(50px); }
.gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 8) { transform: translateY(14px); }

.gallery-reference .gallery-row-top .gallery-track {
  animation: gallery-left-seamless var(--gallery-loop-duration) linear infinite;
}

.gallery-reference .gallery-row-bottom .gallery-track {
  animation: gallery-right-seamless var(--gallery-loop-duration) linear infinite;
}

@keyframes gallery-left-seamless {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--loop-shift, 50%)));
  }
}

@keyframes gallery-right-seamless {
  from {
    transform: translateX(calc(-1 * var(--loop-shift, 50%)));
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 1023px) {
  .gallery.gallery-reference {
    grid-template-rows: 264px minmax(286px, auto) 264px;
    min-height: 840px;
  }

  .gallery-reference .gallery-kicker {
    font-size: 1.7rem;
  }

  .gallery-reference .gallery-shell h2 {
    font-size: clamp(3.5rem, 5vw, 4.5rem);
    max-width: 18ch;
  }

  .gallery-reference .gallery-shell p {
    margin-top: 16px;
    font-size: clamp(1.35rem, 1.9vw, 1.58rem);
    max-width: 34ch;
  }

  .gallery-reference .gallery-btn {
    margin-top: 24px;
    font-size: 1.6rem;
  }

  .gallery-reference .gallery-row {
    height: 264px;
  }

  .gallery-reference .gallery-track img {
    width: 92px;
    height: 92px;
    border-radius: 10px;
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 1) { transform: translateY(118px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 2) { transform: translateY(84px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 3) { transform: translateY(56px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 4) { transform: translateY(28px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 5) { transform: translateY(0); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 6) { transform: translateY(36px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 7) { transform: translateY(70px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 8) { transform: translateY(104px); }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 1) { transform: translateY(0); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 2) { transform: translateY(28px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 3) { transform: translateY(56px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 4) { transform: translateY(84px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 5) { transform: translateY(112px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 6) { transform: translateY(74px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 7) { transform: translateY(42px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 8) { transform: translateY(12px); }
}

@media (max-width: 767px) {
  .gallery-reference {
    min-height: 640px;
  }

  .gallery.gallery-reference {
    --gallery-gap: 10px;
    --gallery-loop-duration: 140s;
    grid-template-rows: 220px minmax(232px, auto) 220px;
    min-height: 700px;
  }

  .gallery-reference .gallery-kicker {
    font-size: 1.5rem;
  }

  .gallery-reference .gallery-shell h2 {
    margin-top: 10px;
    font-size: clamp(2.9rem, 7.4vw, 3.6rem);
    max-width: 16ch;
  }

  .gallery-reference .gallery-shell p {
    margin-top: 10px;
    font-size: clamp(1.28rem, 3.3vw, 1.52rem);
    max-width: 30ch;
  }

  .gallery-reference .gallery-btn {
    margin-top: 16px;
    font-size: 1.5rem;
  }

  .gallery-reference .gallery-row {
    height: 220px;
  }

  .gallery-reference .gallery-track {
    gap: var(--gallery-gap);
  }

  .gallery-reference .gallery-track img {
    width: 78px;
    height: 78px;
    border-radius: 9px;
  }

  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 1) { transform: translateY(102px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 2) { transform: translateY(74px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 3) { transform: translateY(50px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 4) { transform: translateY(26px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 5) { transform: translateY(0); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 6) { transform: translateY(32px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 7) { transform: translateY(60px); }
  .gallery-reference .gallery-row-top .gallery-track img:nth-child(8n + 8) { transform: translateY(88px); }

  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 1) { transform: translateY(0); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 2) { transform: translateY(22px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 3) { transform: translateY(44px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 4) { transform: translateY(66px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 5) { transform: translateY(90px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 6) { transform: translateY(58px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 7) { transform: translateY(34px); }
  .gallery-reference .gallery-row-bottom .gallery-track img:nth-child(8n + 8) { transform: translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-heading-reveal .heading-reveal .heading-reveal-char {
    opacity: 0;
    filter: blur(11px);
    transform: translateX(-0.26em) scale(1.015);
  }

  .js-heading-reveal .heading-reveal.is-revealed .heading-reveal-char {
    animation: heading-char-reveal 640ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
    animation-delay: calc(var(--char-index) * 28ms) !important;
  }
}
