:root {
  --eco-deep: #14532d;
  --eco-mid: #15803d;
  --eco-bright: #4ade80;
  --eco-sky: #0ea5e9;
  --cream: #f0fdf4;
  --sand: #ecfdf5;
  --text: #0f172a;
  --text-soft: #475569;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(20, 83, 45, 0.14);
  --radius: 18px;
  --header-h: 72px;
  --gutter: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --gutter-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body.landing {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

.container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter-inline);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(21, 128, 61, 0.12);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  width: auto;
  height: auto;
}

.logo-img--header-icon {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.logo-wordmark strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--eco-deep);
  letter-spacing: -0.02em;
}

.logo-wordmark-sub {
  display: block;
  margin: 2px 0 0;
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 500;
}

.logo-wordmark--header .logo-wordmark-sub {
  font-size: 0.62rem;
  line-height: 1.15;
  color: var(--eco-mid);
  letter-spacing: 0.01em;
}

.logo-img--footer-icon {
  height: 34px;
  width: auto;
}

.logo-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 12px;
  padding: 3px;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--eco-mid);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  min-height: 48px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--eco-mid), #166534);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(21, 128, 61, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn-outline {
  background: transparent;
  color: var(--eco-mid);
  border-color: rgba(21, 128, 61, 0.35);
}

.btn-outline:hover {
  background: rgba(21, 128, 61, 0.06);
}

.btn-header {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  /* --hero-shift-x: -7%; */
}

/* .hero-visual,
.hero-overlay,
.hero-inner {
  transform: translateX(var(--hero-shift-x));
} */

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-film {
  --film-slides: 3;
  --film-slide-duration: 10s;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-film-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.hero-film-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.hero-film-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.06);
}

.hero-automat {
  position: absolute;
  right: 8em;
  bottom: 8em;
  z-index: 2;
  width: min(58vw, 760px);
  margin: 0;
  pointer-events: none;
  scale: 1.5;
}

.hero-automat-img {
  display: block;
  width: 100%;
  height: auto;
  filter: blur(0.3px) brightness(1.18);
  transform: translateY(6%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    108deg,
    rgba(0, 0, 0, 0.73) 0%,
    rgba(0, 0, 0, 0.62) 32%,
    rgba(0, 0, 0, 0.35) 52%,
    rgba(0, 0, 0, 0) 78%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  padding:
    calc(var(--header-h) + 48px)
    max(24px, env(safe-area-inset-right, 0px))
    max(64px, env(safe-area-inset-bottom, 0px))
    max(48px, env(safe-area-inset-left, 0px));
}

.hero-content {
  position: relative;
  width: min(620px, 100%);
  color: var(--white);
  pointer-events: auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.45);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 0 12px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  opacity: 0.92;
  margin: 0 0 28px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.2;
}

.hero-stats span {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Mobile inline automat + film (hidden on desktop) */
.hero-showcase {
  display: none;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: var(--white);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--eco-deep);
}

.section-head p {
  color: var(--text-soft);
  margin: 0;
  font-size: 1.05rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(20, 83, 45, 0.07);
  border: 1px solid rgba(21, 128, 61, 0.1);
}

.section-how {
  background: var(--sand);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--eco-bright), var(--eco-mid));
  color: var(--eco-deep);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--eco-deep);
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
}

.step-card-accent {
  background: linear-gradient(160deg, var(--eco-deep), #166534);
  color: var(--white);
  border-color: transparent;
}

.step-card-accent h3,
.step-card-accent p {
  color: inherit;
}

.step-card-accent .step-num {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Problem */
.problem-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.problem-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--eco-deep);
  margin: 0 0 20px;
}

.problem-text .lead {
  font-size: 1.1rem;
  color: var(--text);
}

.problem-text p {
  color: var(--text-soft);
}

.problem-card {
  background: var(--eco-deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.problem-stat {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.problem-stat:last-of-type {
  border-bottom: none;
}

.problem-stat strong {
  display: block;
  font-size: 2rem;
  color: var(--eco-bright);
}

.problem-stat span {
  font-size: 0.9rem;
  opacity: 0.85;
}

.problem-card-note {
  margin: 20px 0 0;
  font-size: 0.92rem;
  opacity: 0.9;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 8px 30px rgba(20, 83, 45, 0.08);
  border: 1px solid rgba(21, 128, 61, 0.08);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.why-card h3 {
  color: var(--eco-deep);
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.why-card p {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.95rem;
}

.why-tagline {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--eco-mid);
  margin: 40px 0 0;
}

/* Catalog */
.section-catalog {
  background: var(--white);
}

.catalog-page-main {
  padding-top: var(--header-h);
}

.catalog-page .section-catalog--full {
  padding-top: 48px;
}

.catalog-page .section-catalog--full .section-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--eco-deep);
}

.nav .nav-current {
  color: var(--eco-mid);
  font-weight: 700;
}

.catalog-preview-viewport {
  position: relative;
  max-height: min(560px, 68vh);
  overflow: hidden;
}

.catalog-preview-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  pointer-events: none;
  z-index: 2;
}

.catalog-preview-fade::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 100%);
}

.catalog-preview-fade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 45%,
    var(--white) 100%
  );
}

.catalog-preview-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.catalog-preview-cta .btn {
  min-width: 220px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-filter {
  border: 1px solid rgba(21, 128, 61, 0.2);
  background: var(--cream);
  color: var(--eco-deep);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.catalog-filter:hover {
  border-color: var(--eco-mid);
}

.catalog-filter.is-active {
  background: var(--eco-mid);
  border-color: var(--eco-mid);
  color: var(--white);
}

.catalog-view-toggle {
  display: none;
}

.catalog-status {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.catalog-status.is-error {
  color: #b91c1c;
}

.catalog-status.is-empty {
  color: var(--text-soft);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

.catalog-card {
  appearance: none;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(21, 128, 61, 0.12);
  display: flex;
  flex-direction: column;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.catalog-card:hover,
.catalog-card.is-active {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(21, 128, 61, 0.28);
}

.catalog-card.is-active {
  outline: 2px solid rgba(21, 128, 61, 0.35);
  outline-offset: 2px;
}

.catalog-card-media {
  position: relative;
  background: var(--sand);
  aspect-ratio: 1 / 1;
}

.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.catalog-card-media-empty {
  width: 100%;
  height: 100%;
  background: var(--sand);
}

.catalog-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(180, 83, 9, 0.92);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}

.catalog-card-title {
  display: block;
  padding: 12px 14px 14px;
  color: var(--eco-deep);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.catalog-details {
  display: none;
}

.catalog-product-detail--inline {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.catalog-product-detail:not(.catalog-product-detail--inline) {
  display: none;
}

.catalog-product-detail {
  scroll-margin-top: calc(var(--header-h) + 16px);
  border: 1px solid rgba(21, 128, 61, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  display: none;
}

.catalog-product-detail.is-open {
  display: block;
  box-shadow: 0 16px 40px rgba(20, 83, 45, 0.1);
  border-color: rgba(21, 128, 61, 0.22);
}

.catalog-product-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--sand) 0%, var(--cream) 100%);
  border-bottom: 1px solid rgba(21, 128, 61, 0.1);
}

.catalog-product-detail-type {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--eco-mid);
}

.catalog-product-detail-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--eco-deep);
}

.catalog-product-detail-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.1);
  color: var(--eco-deep);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.catalog-product-detail-close:hover {
  background: var(--eco-mid);
  color: var(--white);
}

.catalog-product-detail-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-product-detail-hero {
  margin: 0;
  align-self: center;
  width: min(100%, calc(220px * 1.5));
  background: linear-gradient(160deg, var(--sand) 0%, var(--cream) 100%);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(21, 128, 61, 0.1);
}

.catalog-product-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.catalog-product-detail-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-info-card {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid rgba(21, 128, 61, 0.1);
}

.catalog-info-card-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eco-mid);
}

.catalog-info-card-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  vertical-align: middle;
  transform: translateY(-1px);
}

.catalog-info-card-text {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.catalog-info-card--desc {
  background: linear-gradient(180deg, #f0fdf4 0%, var(--cream) 100%);
  border-color: rgba(21, 128, 61, 0.16);
}

.catalog-info-card--desc .catalog-info-card-text {
  font-size: 1rem;
  color: var(--eco-deep);
}

.catalog-info-card--composition {
  background: var(--white);
}

.catalog-info-card--manufacturer {
  background: var(--white);
}

.catalog-info-card--manufacturer .catalog-info-card-text {
  font-weight: 600;
  color: var(--eco-deep);
}

.catalog-info-card--caution {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(217, 119, 6, 0.25);
}

.catalog-info-card--caution .catalog-info-card-label {
  color: #b45309;
}

.catalog-info-card--caution .catalog-info-card-label::before {
  background: #d97706;
}

.catalog-info-card--caution .catalog-info-card-text {
  color: #78350f;
}

/* Legacy detail aliases */
.catalog-product-detail-layout,
.catalog-product-detail-fields,
.catalog-product-field {
  display: contents;
}

.catalog-product-detail-media {
  margin: 0;
  background: var(--sand);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.catalog-product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* Legacy table styles removed from UI */
@media (max-width: 799px) {
  .catalog-page .section-catalog--full {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .catalog-page .section-catalog--full .section-head {
    margin-bottom: 24px;
  }

  .catalog-page .section-catalog--full .section-head h1 {
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
  }

  .catalog-page .section-catalog--full .section-head p {
    font-size: 0.95rem;
  }

  .catalog-page .header-inner .nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin-left: auto;
    max-height: none;
    overflow: visible;
  }

  .catalog-page .header-inner .nav a {
    padding: 8px 12px;
    border: 0;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .catalog-page .nav-toggle {
    display: none;
  }

  .catalog-page .catalog-toolbar {
    margin-bottom: 20px;
  }

  .catalog-page .catalog-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
    margin-inline: 0;
    padding-inline: 0;
  }

  .catalog-page .catalog-filter {
    width: 100%;
    min-height: 44px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .catalog-page .catalog-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .catalog-page .catalog-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
  }

  .catalog-page .catalog-card-media {
    aspect-ratio: 1;
    width: 100%;
  }

  .catalog-page .catalog-card-media img {
    padding: 8px;
  }

  .catalog-page .catalog-card:hover,
  .catalog-page .catalog-card.is-active {
    transform: none;
  }

  .catalog-page .catalog-card.is-active {
    outline-width: 2px;
    outline-offset: 1px;
  }

  .catalog-page .catalog-card-title {
    padding: 14px 16px;
    font-size: calc(1.84rem / 1.5);
    line-height: 1.25;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .catalog-page .catalog-product-detail--inline {
    margin-top: 2px;
    margin-bottom: 4px;
    scroll-margin-top: calc(var(--header-h) + 12px);
  }

  .catalog-page .catalog-product-detail-head {
    padding: 16px;
    align-items: flex-start;
  }

  .catalog-page .catalog-product-detail-type {
    font-size: calc(0.7rem * 1.5);
  }

  .catalog-page .catalog-product-detail-title {
    font-size: calc(1.05rem * 1.5);
  }

  .catalog-page .catalog-product-detail-close {
    width: 44px;
    height: 44px;
  }

  .catalog-page .catalog-product-detail-body {
    padding: 16px;
    gap: 16px;
  }

  .catalog-page .catalog-product-detail-hero {
    width: min(100%, calc(110px * 1.5));
  }

  .catalog-page .catalog-info-card {
    padding: 14px 16px;
  }

  .catalog-page .catalog-info-card-label {
    font-size: calc(0.72rem * 1.5);
  }

  .catalog-page .catalog-info-card-text {
    font-size: calc(0.95rem * 1.5);
  }

  .catalog-page .catalog-info-card--desc .catalog-info-card-text {
    font-size: calc(1rem * 1.5);
  }
}

/* Catalog page — smartphones */
@media (max-width: 479px) {
  .catalog-page .section-catalog--full {
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .catalog-page .section-catalog--full .section-head h1 {
    font-size: 1.45rem;
  }

  .catalog-page .section-catalog--full .section-head p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .catalog-page .logo-wordmark--header strong {
    font-size: 0.95rem;
  }

  .catalog-page .logo-wordmark--header .logo-wordmark-sub {
    display: none;
  }

  .catalog-page .header-inner .nav a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .catalog-page .catalog-filters {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .catalog-page .catalog-filter {
    padding: 11px 14px;
    font-size: 0.88rem;
  }

  .catalog-page .catalog-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .catalog-page .catalog-card {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-page .catalog-card-media img {
    padding: 6px;
  }

  .catalog-page .catalog-card-title {
    padding: 12px 14px;
    font-size: calc(1.84rem / 1.5);
    line-height: 1.2;
  }

  .catalog-page .catalog-status {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }

  .catalog-page .catalog-product-detail-head {
    padding: 14px;
    gap: 12px;
  }

  .catalog-page .catalog-product-detail-type {
    font-size: calc(0.7rem * 1.5);
  }

  .catalog-page .catalog-product-detail-title {
    font-size: calc(0.98rem * 1.5);
    line-height: 1.35;
  }

  .catalog-page .catalog-product-detail-body {
    padding: 14px;
    gap: 14px;
  }

  .catalog-page .catalog-product-detail-hero {
    width: min(100%, calc(90px * 1.5));
  }

  .catalog-page .catalog-info-card {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .catalog-page .catalog-info-card-label {
    font-size: calc(0.68rem * 1.5);
    margin-bottom: 8px;
  }

  .catalog-page .catalog-info-card-text {
    font-size: calc(0.88rem * 1.5);
  }

  .catalog-page .catalog-info-card--desc .catalog-info-card-text {
    font-size: calc(0.92rem * 1.5);
  }

  .catalog-page .site-footer {
    padding: 36px 0 28px;
  }

  .catalog-page .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}

.catalog-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(21, 128, 61, 0.12);
  background: var(--white);
}

.catalog-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.catalog-table th,
.catalog-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(21, 128, 61, 0.08);
}

.catalog-table th {
  background: var(--sand);
  color: var(--eco-deep);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog-table tbody tr:hover {
  background: rgba(240, 253, 244, 0.7);
}

.catalog-table-photo {
  width: 72px;
}

.catalog-table-photo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--sand);
}

.catalog-table-title {
  font-weight: 700;
  color: var(--eco-deep);
  margin-bottom: 4px;
}

.catalog-table-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--eco-mid);
}

/* Products (legacy) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(21, 128, 61, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card h3,
.product-card p {
  padding: 0 20px;
}

.product-card h3 {
  margin: 16px 0 8px;
  color: var(--eco-deep);
}

.product-card p {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* Tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-item {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--eco-mid);
}

.tech-item h3 {
  margin: 0 0 10px;
  color: var(--eco-deep);
  font-size: 1.05rem;
}

.tech-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Timeline */
.section-timeline {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 55%, var(--cream) 100%);
}

.section-timeline .section-head {
  margin-bottom: 32px;
}

.timeline {
  position: relative;
  max-width: 100%;
  min-height: 300px;
  padding: 4px 0;
}

.timeline-snake {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.timeline-snake-path {
  vector-effect: non-scaling-stroke;
}

.timeline-snake-dot {
  fill: var(--white);
  stroke: var(--eco-mid);
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 0 rgba(74, 222, 128, 0.35));
}

.timeline-snake-dot--current {
  fill: var(--eco-mid);
  stroke: var(--eco-bright);
  stroke-width: 4.5;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.55));
}

.timeline-snake--stack {
  display: none;
}

.timeline-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 72px 18px;
  padding: 38px 0 10px;
}

.timeline-item {
  min-width: 0;
}

.timeline-item:nth-child(-n + 3) {
  margin-top: 0;
}

.timeline-item:nth-child(n + 4) {
  margin-top: 4px;
}

.timeline-card {
  background: var(--white);
  border-radius: 14px;
  padding: 14px 16px 16px;
  box-shadow: 0 12px 32px rgba(20, 83, 45, 0.1);
  border: 1px solid rgba(21, 128, 61, 0.1);
  border-top: 3px solid var(--eco-mid);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  min-height: 132px;
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(20, 83, 45, 0.16);
}

.timeline-item--current .timeline-card {
  border-top-color: var(--eco-bright);
  background: linear-gradient(180deg, #f0fdf4 0%, var(--white) 100%);
}

.timeline-year {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eco-mid);
}

.timeline-item--current .timeline-year {
  color: var(--eco-deep);
}

.timeline-card h3 {
  margin: 0 0 6px;
  color: var(--eco-deep);
  font-size: 0.95rem;
  line-height: 1.25;
}

.timeline-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* About */
.about-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.about-split h2 {
  color: var(--eco-deep);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 20px;
}

.about-split p {
  color: var(--text-soft);
}

.about-quote {
  margin: 0;
  padding: 32px;
  background: linear-gradient(145deg, var(--eco-deep), #166534);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1.15rem;
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.about-quote p {
  margin: 0;
  color: var(--white);
}

/* Franchise */
.section-franchise {
  background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
}

.franchise-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}

.franchise-head h2 {
  color: var(--eco-deep);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.franchise-head .lead {
  color: var(--text-soft);
  margin: 0;
  max-width: 56ch;
}

.franchise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.franchise-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(21, 128, 61, 0.1);
}

.franchise-card h3 {
  color: var(--eco-deep);
  font-size: 1rem;
  margin: 0 0 8px;
}

.franchise-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* Careers */
.careers-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.careers-list li {
  padding: 14px 18px;
  background: var(--sand);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-soft);
  border: 1px solid rgba(21, 128, 61, 0.08);
}

.careers-list li::before {
  content: "→ ";
  color: var(--eco-mid);
  font-weight: 700;
}

/* Contact */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  color: var(--eco-deep);
  margin: 0 0 24px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.contact-list li {
  margin-bottom: 16px;
}

.contact-list strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.contact-list a {
  color: var(--eco-mid);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-checks li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.contact-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--eco-mid);
  font-weight: 700;
}

.contact-form-panel {
  width: 100%;
}

.contact-form-panel.is-sent .contact-form {
  display: none;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 128, 61, 0.1);
}

.form-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  background: var(--sand);
  padding: 3px;
  border-radius: 999px;
}

.form-tab {
  flex: 1;
  padding: 7px 12px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  color: var(--text-soft);
  transition: background 0.2s, color 0.2s;
  min-height: 38px;
}

.form-tab.is-active {
  background: var(--white);
  color: var(--eco-deep);
  box-shadow: 0 2px 8px rgba(20, 83, 45, 0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 10px;
}

.contact-form label:last-of-type {
  margin-bottom: 12px;
}

.contact-form label span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(21, 128, 61, 0.2);
  border-radius: 10px;
  font: inherit;
  font-size: 0.92rem;
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.contact-form .btn {
  padding: 10px 18px;
  min-height: 42px;
  font-size: 0.9rem;
}

.form-status {
  margin: 8px 0 0;
  font-size: 0.85rem;
  min-height: 1.3em;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--eco-mid);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.form-status.success {
  color: var(--eco-mid);
}

.form-status.error {
  color: #dc2626;
}

.form-success {
  display: none;
  aspect-ratio: 1;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 128, 61, 0.12);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.form-success.is-visible {
  display: flex;
  animation: form-success-in 0.4s ease;
}

.form-success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(74, 222, 128, 0.28), rgba(21, 128, 61, 0.12));
  display: grid;
  place-items: center;
  animation: form-success-pop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.form-success-check svg {
  width: 52px;
  height: 52px;
}

.form-success-check-circle {
  stroke: var(--eco-mid);
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: form-check-draw 0.55s ease forwards;
}

.form-success-check-mark {
  stroke: var(--eco-deep);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: form-check-draw 0.35s 0.45s ease forwards;
}

.form-success-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--eco-deep);
  max-width: 16em;
}

@keyframes form-success-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes form-success-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes form-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field-message.is-hidden {
  display: none;
}

/* Footer */
.site-footer {
  background: var(--eco-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand strong {
  display: block;
  font-size: 1.1rem;
}

.footer-brand .logo-wordmark-sub {
  margin-top: 4px;
  opacity: 0.75;
}

.footer-nav {
  display: flex;
  gap: 20px;
  grid-column: 1;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--eco-bright);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Mobile nav open */
.site-header.nav-open .nav {
  display: flex;
}

/* Responsive */
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
    --gutter-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head p {
    font-size: 1rem;
  }

  /* Header & nav */
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid rgba(21, 128, 61, 0.12);
    box-shadow: var(--shadow);
    margin-left: 0;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(21, 128, 61, 0.08);
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
    margin-right: max(0px, env(safe-area-inset-right, 0px));
  }

  .btn-header {
    display: none;
  }

  /* Hero — полноэкранный тёмный оверлей, контент с нормальными отступами */
  .hero {
    display: grid;
    grid-template: 1fr / 1fr;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-visual,
  .hero-overlay,
  .hero-inner {
    grid-area: 1 / 1;
  }

  .hero-visual,
  .hero-overlay {
    min-height: 100%;
  }

  .hero-inner {
    position: relative;
    inset: auto;
    z-index: 3;
    align-self: stretch;
    align-items: stretch;
    justify-content: flex-start;
    min-height: min(100dvh, 100%);
    padding:
      calc(var(--header-h) + 16px)
      max(20px, env(safe-area-inset-right, 0px))
      max(24px, env(safe-area-inset-bottom, 0px))
      max(20px, env(safe-area-inset-left, 0px));
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.78) 50%,
        rgba(0, 0, 0, 0.62) 72%,
        rgba(0, 0, 0, 0.5) 100%
      );
  }

  .hero-content {
    width: 100%;
    max-width: none;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
    margin-bottom: 12px;
  }

  .hero-tagline {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 7.2vw, 2.35rem);
    line-height: 1.18;
    margin-bottom: 14px;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 16px;
    max-width: none;
  }

  .hero-showcase {
    display: block;
    position: relative;
    margin: 0 0 20px;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
  }

  .hero-showcase-film {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
  }

  .hero-showcase-film .hero-film {
    position: absolute;
    inset: 0;
  }

  .hero-showcase-film .hero-film-slide img {
    filter: none;
  }

  .hero-showcase-film::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.08) 100%);
    pointer-events: none;
  }

  .hero-showcase-automat {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 8px 12px 0;
    pointer-events: none;
  }

  .hero-showcase-automat-img {
    display: block;
    width: min(92%, 320px);
    margin: 0 auto;
    height: auto;
    filter: brightness(1.1);
    transform: translateY(4%);
  }

  .hero-visual .hero-film,
  .hero-visual > .hero-automat {
    display: none;
  }

  .hero-film-slide img {
    filter: none;
  }

  .hero-actions {
    margin-bottom: 24px;
  }

  .hero-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 18px;
    border-top-color: rgba(255, 255, 255, 0.25);
  }

  .hero-stats > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
  }

  .hero-stats strong {
    flex-shrink: 0;
    font-size: 1.2rem;
    min-width: 3.5rem;
  }

  .hero-stats span {
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0.95;
  }

  /* Grids */
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .step-card {
    padding: 20px 16px;
  }

  .problem-split,
  .about-split,
  .contact-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .problem-card {
    padding: 24px;
  }

  .why-grid,
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .catalog-preview-viewport {
    max-height: min(440px, 62vh);
  }

  .catalog-preview-fade {
    height: 120px;
  }

  .catalog-preview-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-filters {
    justify-content: flex-start;
  }

  .why-card {
    padding: 24px 20px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tech-item {
    padding: 22px 20px;
  }

  .franchise-head {
    flex-direction: column;
    gap: 16px;
  }

  .franchise-head .btn {
    width: 100%;
  }

  .franchise-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .careers-list {
    grid-template-columns: 1fr;
  }

  .about-quote {
    padding: 24px;
    font-size: 1.05rem;
  }

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

  .form-tab {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .timeline-snake:not(.timeline-snake--stack) {
    display: none;
  }

  .timeline-snake--stack {
    display: block;
    width: 24px;
    left: 0;
    right: auto;
  }

  .timeline {
    padding-left: 36px;
    min-height: 0;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 0;
  }

  .timeline-item {
    padding-top: 0;
  }

  .timeline-card {
    min-height: 0;
    padding: 12px 14px;
  }
}

@media (max-width: 520px) {
  :root {
    --header-h: 60px;
    --gutter-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  }

  .section {
    padding: 48px 0;
  }

  .logo-img--header-icon {
    height: 26px;
  }

  .logo-wordmark--header strong {
    font-size: 0.95rem;
  }

  .logo-wordmark--header .logo-wordmark-sub {
    font-size: 0.56rem;
  }

  .hero-inner {
    padding-top: calc(var(--header-h) + 12px);
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 8.5vw, 2rem);
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-showcase {
    margin-bottom: 18px;
    border-radius: 16px;
  }

  .hero-showcase-automat {
    padding: 4px 8px 0;
  }

  .hero-showcase-automat-img {
    width: min(96%, 280px);
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats > div {
    flex-direction: column;
    gap: 4px;
    padding: 12px;
  }

  .hero-stats strong {
    min-width: 0;
    font-size: 1.35rem;
  }

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

  .step-card h3 {
    font-size: 0.95rem;
  }

  .problem-text h2,
  .about-split h2,
  .franchise-head h2 {
    font-size: clamp(1.45rem, 6vw, 1.75rem);
  }

  .why-tagline {
    font-size: 1.1rem;
    margin-top: 28px;
  }

  .form-success {
    max-width: none;
    aspect-ratio: auto;
    min-height: 280px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Presentation fullscreen viewer */
.presentation-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
}

.presentation-viewer[hidden] {
  display: none;
}

body.presentation-open {
  overflow: hidden;
}

.presentation-viewer-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

.presentation-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid rgba(21, 128, 61, 0.12);
}

.presentation-viewer-title {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: var(--eco-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presentation-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.presentation-viewer-download {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--eco-mid);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(21, 128, 61, 0.25);
  white-space: nowrap;
}

.presentation-viewer-download:hover {
  background: var(--sand);
}

.presentation-viewer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.presentation-viewer-close:hover {
  background: var(--sand);
  color: var(--eco-deep);
}

.presentation-viewer-body {
  flex: 1;
  min-height: 0;
  padding: 0 16px 16px;
}

.presentation-viewer-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
}

@media (max-width: 768px) {
  .presentation-viewer-panel {
    max-width: none;
  }

  .presentation-viewer-header {
    padding: 10px 12px;
  }

  .presentation-viewer-body {
    padding: 0 8px 8px;
  }

  .presentation-viewer-frame {
    border-radius: 12px;
  }
}

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

  .hero-film-track .hero-film-slide:not(:first-child) {
    display: none;
  }

  .btn:hover,
  .product-card:hover {
    transform: none;
  }

  .form-success.is-visible,
  .form-success-check,
  .form-success-check-circle,
  .form-success-check-mark {
    animation: none;
  }

  .form-success-check-circle,
  .form-success-check-mark {
    stroke-dashoffset: 0;
  }
}
