/* ============================================================
    MandelayBHO Landing — style.css
    Tasks 2.1 (CSS variables) & 2.2 (Reset + base styles)
    ============================================================ */

/* ============================================================
    1. DESIGN TOKENS
    ============================================================ */
:root {
   /* Colors — Premium palette */
   --color-bg-dark:      #0a1f1d;
   --color-bg-light:     #faf9f5;
   --color-accent:       #00897b;
   --color-accent-hover: #00695c;
   --color-accent-secondary: #5c6bc0;
   --color-accent-tertiary: #ec407a;
   --color-white:        #ffffff;
   --color-text-dark:    #1a1a1a;
   --color-text-muted:   #5a6b68;
   --color-border:       #e2e8e5;
   --color-success:      #26a69a;
   --color-warning:      #ffa726;
   --color-surface:      rgba(255, 255, 255, 0.08);
   --color-surface-hover: rgba(255, 255, 255, 0.14);

   /* Typography — Enhanced for premium feel */
   --font-family:         'Inter', sans-serif;
   --font-family-heading: 'Syne', sans-serif;
   --font-family-ui:      'Inter', sans-serif;

   /* Larger base size for readability */
   --font-size-base: 20px;
   --font-size-h1:   clamp(2.8rem, 6vw, 5rem);
   --font-size-h2:   clamp(2rem, 4vw, 3rem);
   --font-size-h3:   1.5rem;
   --font-size-h4:   1.25rem;
   --font-size-sm:   0.9rem;
   --font-size-xs:   0.8rem;

   /* Spacing — More generous for premium feel */
   --spacing-section: 4rem;
   --spacing-section-sm: 3rem;
   --spacing-card:    2.5rem;
   --spacing-gutter:  2rem;
   --spacing-element: 1.5rem;
   --container-max:   1320px;

   /* Effects */
   --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
   --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   --border-radius:   1rem;
   --border-radius-lg: 1.5rem;
   --border-radius-sm: 0.5rem;

   /* Premium shadows */
   --shadow-card:     0 8px 40px rgba(0, 0, 0, 0.12);
   --shadow-glow:     0 0 60px rgba(0, 137, 123, 0.25);
   --shadow-inner:    inset 0 2px 4px rgba(0,0,0,0.06);
   --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.2);
   --shadow-glass:    0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ============================================================
   2. CSS RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

h1, h2 {
  font-family: var(--font-family-heading);
}

h3, h4 {
  font-family: var(--font-family-ui);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 400;
}

li {
  font-size: 1.05rem;
  line-height: 1.75;
}

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

ul {
  list-style: none;
}

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

/* ============================================================
   3. LAYOUT — CONTAINER
   ============================================================ */
.container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 2.5rem;
  border-radius: 3rem;
  font-family: var(--font-family-ui);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base),
              filter var(--transition-base);
  white-space: nowrap;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before {
  opacity: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 137, 123, 0.2);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 137, 123, 0.25);
}

.btn--primary:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 137, 123, 0.3);
}

.btn--accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #00796b 100%);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 137, 123, 0.25);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 137, 123, 0.3);
}

.btn--accent:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 137, 123, 0.35);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 137, 123, 0.25);
}

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

/* ============================================================
   5. SECTIONS — BASE
   ============================================================ */
.section {
  padding: var(--spacing-section) 0;
}

.section--dark {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  position: relative;
  padding-top: 6rem;
}

.section--light {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

.section__title {
  font-size: var(--font-size-h2);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.2;
  position: relative;
  padding-bottom: 1rem;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
}

.section__title::after {
  content: '';
  display: block;
  width: 6rem;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
  border-radius: 2px;
  margin: 1rem auto 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section__title--highlight {
  display: inline-block;
  text-align: center;
  padding: 0.6rem 2.5rem;
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  color: #00695c;
  border-radius: 0.5rem;
  margin-bottom: 0;
  box-shadow: 0 2px 12px rgba(0, 137, 123, 0.12);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.section__title--highlight::before {
  display: none;
}

/* Left-aligned variant (Schulung, Konferenzen) */
.section__title--highlight[style*="text-align:left"] {
  left: 0;
  transform: none;
}

.section__title--highlight::after {
  display: none;
}

/* Clean section title — no green bg, centered, accent underline */
.section__title--section {
  display: block;
  text-align: center;
  background: none;
  color: var(--color-text-dark);
  padding: 0 0 1rem 0;
  margin-bottom: 2rem;
  position: relative;
  left: auto;
  transform: none;
  box-shadow: none;
}

.section__title--section::after {
  content: '';
  display: block;
  width: 5rem;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
  border-radius: 2px;
  margin: 0.75rem auto 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .section__title--section {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
  }
}

/* ============================================================
   6. UTILITIES
   ============================================================ */
.text-center {
  text-align: center;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  font-weight: 400;
}

@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about__text p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
  }

  .about__benefits-title {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
  }

  .benefits-list {
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .benefits-list li {
    font-size: 1rem;
  }

  .disclaimer {
    padding: 1rem;
    font-size: 0.95rem;
    margin-top: 1.25rem;
  }

  .about__image {
    order: -1;
  }
}

/* Override muted color on dark backgrounds */
.section--dark .section-subtitle {
  color: var(--color-text-muted);
}

.section--dark .section__title {
  color: var(--color-text-dark);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(250, 249, 245, 0.98);
  border-bottom: 1px solid rgba(0, 137, 123, 0.08);
  transition: box-shadow var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

.navbar--scrolled {
  box-shadow: 0 2px 20px rgba(0, 137, 123, 0.1);
  background-color: rgba(250, 249, 245, 0.98);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 0.75rem;
  height: 56px;
  box-sizing: border-box;
}

.navbar--scrolled {
  box-shadow: 0 4px 30px rgba(0, 137, 123, 0.12);
  background-color: rgba(250, 249, 245, 0.98);
  border-bottom: 1px solid rgba(0, 137, 123, 0.15);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-left: auto;
  margin-right: 3.5rem;
  flex-shrink: 0;
}

.navbar__logo-text {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  font-family: var(--font-family-heading);
  background: none;
  -webkit-text-fill-color: var(--color-accent);
  transition: color 0.3s ease;
}

.navbar__logo-text:hover {
  color: var(--color-accent-hover);
}

/* Logo image (replaces text) */
.navbar__logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.navbar__logo:hover .navbar__logo-img {
  opacity: 0.9;
  transform: scale(1.03);
}

.navbar__list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.navbar__link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-text-dark);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-family-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0.5rem;
  transition: color var(--transition-base), background-color var(--transition-base);
  white-space: nowrap;
}

.navbar__link:hover {
  color: var(--color-accent);
  background-color: rgba(0, 137, 123, 0.08);
}

.navbar__link--cta {
  margin-left: 1rem;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  background-color: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 2rem;
  font-weight: 600;
}

.navbar__link--cta:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
}

/* Hamburger button */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color var(--transition-base);
}

.navbar__hamburger:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-dark);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Hamburger open state */
.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  :root {
    --font-size-base: 18px;
  }

  /* Global text scale-up — overrides all the tiny rem values below */
  body {
    font-size: var(--font-size-base);
  }

  p, li {
    font-size: 1rem;
    line-height: 1.75;
  }

  .navbar__hamburger {
    display: flex;
    width: 36px;
    height: 36px;
    padding: 0.4rem;
  }

  .navbar__container {
    padding: 0 0.5rem;
    height: 52px;
  }

  .navbar__logo-img {
    height: 40px;
  }

  .navbar__logo {
    margin-left: 0;
    margin-right: 0;
  }

  .navbar__logo-text {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
  }

  .navbar__nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(250, 249, 245, 0.99);
    border-bottom: 1px solid rgba(0, 137, 123, 0.1);
    padding: 0.5rem 0.75rem 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 52px);
    overflow-y: auto;
  }

  .navbar__nav.navbar__nav--open {
    display: block;
  }

  .navbar__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .navbar__link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    border-radius: 0.4rem;
  }

  .navbar__link--cta {
    margin-left: 0;
    margin-top: 0.3rem;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  main {
    padding-top: 52px;
  }

  html {
    scroll-padding-top: 60px;
  }
}

main {
  padding-top: 72px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.hero > .hero__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero > .hero__bg-overlay {
  display: none;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__visual {
  display: none;
}

.hero__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/placeholder-hero.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.hero__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg-video {
    display: none;
  }
}

.hero__bg-overlay {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 137, 123, 0.2), rgba(92, 107, 192, 0.15));
  border: 1px solid rgba(0, 137, 123, 0.4);
  border-radius: 3rem;
  color: #4db6ac;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: var(--font-family-ui);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.hero__tagline {
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.25rem;
  line-height: 1.4;
  font-family: var(--font-family-heading);
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 700px;
}

.hero__actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: var(--font-family-heading);
}

.hero__stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--font-family-ui);
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(0, 137, 123, 0.2), rgba(92, 107, 192, 0.15));
  border: 1px solid rgba(0, 137, 123, 0.4);
  border-radius: 2rem;
  color: #4db6ac;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: var(--font-family-ui);
}

.hero__title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__tagline {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  line-height: 1.4;
  font-family: var(--font-family-heading);
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 100%;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero__cta-secondary {
  color: rgba(255, 255, 255, 0.9);
  border-color: var(--color-accent);
}

.hero__cta-secondary:hover {
  background-color: rgba(0, 137, 123, 0.15);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
}
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero__stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: var(--font-family-heading);
}

.hero__stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--font-family-ui);
}

.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.03em;
  font-family: var(--font-family-ui);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-indicator span::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    align-items: center;
    padding: 0;
  }

  .hero > .hero__bg-video {
    display: block;
  }

  .hero__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3rem 1rem;
    min-height: 100vh;
    box-sizing: border-box;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero__visual {
    display: none;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__actions {
    align-items: center;
  }

  .hero__badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
  }

  .hero__title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-wrap: break-word;
  }

  .hero__tagline {
    font-size: 1.4rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    word-wrap: break-word;
  }

  .hero__subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 2rem;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.95);
  }

  .hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .hero__stat {
    min-width: 70px;
  }

  .hero__stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
  }

  .hero__stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 280px;
  }

  .hero__actions .btn {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }

  .hero__scroll-indicator {
    display: none;
  }
}

/* ============================================================
   ABOUT — ÜBER BIOFEEDBACK
   ============================================================ */
.about__lead-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-dark);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.about__grid {
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  margin-bottom: 1.75rem;
  color: var(--color-text-dark);
  line-height: 1.85;
  font-size: 1.15rem;
}

.about__benefits-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin: 2.5rem 0 1.5rem;
  letter-spacing: -0.02em;
  font-family: var(--font-family-heading);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.1rem;
  color: var(--color-text-dark);
  line-height: 1.6;
}

.benefits-list__icon {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.disclaimer {
  background: none;
  border-left: none;
  border-radius: 0;
  padding: 0;
  font-size: 1.1rem;
  font-style: normal;
  color: var(--color-text-dark);
  line-height: 1.75;
  margin-top: 2.5rem;
}

.disclaimer strong {
  color: var(--color-accent);
  font-style: normal;
}

.about__image {
  position: sticky;
  top: 100px;
}

.about__image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card-hover);
}

.about__image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__text p {
    font-size: 1rem;
  }

  .about__benefits-title {
    font-size: 1.4rem;
  }

  .benefits-list li {
    font-size: 1rem;
  }

  .about__image {
    position: static;
    order: -1;
  }
}

/* ============================================================
   DEVICES — GERÄTE
   ============================================================ */
.devices__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.device-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
}

.device-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
}

.device-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--color-accent);
}

.device-card__image-wrap {
  position: relative;
  overflow: hidden;
}

.device-card__image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.device-card:hover .device-card__image-wrap img {
  transform: scale(1.04);
}

.device-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.4rem 1rem;
  border-radius: 2.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.device-card__badge--new {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(0, 137, 123, 0.4);
}

.device-card__badge--classic {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.device-card__body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.device-card__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  font-family: var(--font-family-heading);
}

.device-card__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.specs-table__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4db6ac;
  margin-bottom: 1rem;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--color-bg-light);
}

.specs-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
}

.specs-list__item:last-child {
  border-bottom: none;
}

.specs-list__item:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.specs-list__label {
  color: var(--color-text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.specs-list__value {
  color: var(--color-text-dark);
  text-align: right;
  font-weight: 500;
}

.cert-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.cert-badge span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: rgba(92, 107, 192, 0.15);
  border: 1px solid rgba(92, 107, 192, 0.35);
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9fa8da;
}

.device-card__cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

@media (max-width: 768px) {
  .devices__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .device-card {
    border-radius: 0.75rem;
  }

  .device-card__image-wrap img {
    aspect-ratio: 2 / 1;
  }

  .device-card__body {
    padding: 1.25rem;
  }

  .device-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .device-card__desc {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .specs-table__title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .specs-list {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
  }

  .specs-list__item {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .specs-list__label {
    font-size: 0.85rem;
  }

  .specs-list__value {
    font-size: 0.95rem;
    text-align: left;
  }

  .cert-badge {
    gap: 0.3rem;
    margin-bottom: 1rem;
  }

  .cert-badge span {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }

  .device-card__cta {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  .software__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .software-card {
    padding: 1.25rem;
    border-radius: 0.75rem;
  }

  .software-card__header {
    margin-bottom: 1rem;
  }

  .software-card__icon {
    font-size: 1.75rem;
  }

  .trial-badge {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
  }

  .software-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .software-card__desc {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .software-card__features {
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .software-card__features li {
    font-size: 1rem;
  }

  .software-card__cta {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
}

/* ============================================================
   CERTIFICATES — ZERTIFIKATE CAROUSEL
   ============================================================ */
.cert-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cert-carousel__track-wrap {
  overflow: hidden;
  flex: 1;
  border-radius: var(--border-radius);
}

.cert-carousel__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.cert-carousel__item {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
}

@media (max-width: 1024px) {
  .cert-carousel__item {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 768px) {
  .cert-carousel__item {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 480px) {
  .cert-carousel__item {
    flex: 0 0 calc(100% - 0rem);
  }
}

.cert-card {
  display: block;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.cert-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f5f5f5;
}

.cert-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.cert-card__overlay {
  display: none;
}

.cert-card__label {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: center;
  font-family: var(--font-family-ui);
  background: var(--color-white);
}

/* Nav buttons */
.cert-carousel__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cert-carousel__btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 137, 123, 0.3);
}

.cert-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* Dots */
.cert-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.cert-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
  padding: 0;
}

.cert-carousel__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* Certificate Details */
.cert-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.cert-detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.cert-detail-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cert-detail-badge {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.cert-detail-content {
  flex: 1;
}

.cert-detail-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
  font-family: var(--font-family-heading);
}

.cert-detail-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .cert-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .cert-detail-item {
    padding: 1.5rem 1rem;
  }

  .cert-detail-badge {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .cert-detail-title {
    font-size: 1.1rem;
  }

  .cert-detail-desc {
    font-size: 0.95rem;
  }
}

/* ============================================================
   SOFTWARE — CLASP PORTAL
   ============================================================ */
.software__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.software-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.software-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
}

.software-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.software-card--portal {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(0, 137, 123, 0.15), 0 10px 40px rgba(0, 137, 123, 0.1);
}

.software-card--portal::before {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary), var(--color-accent-tertiary));
}

.software-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.software-card__icon {
  font-size: 2.5rem;
  line-height: 1;
}

.trial-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  color: white;
  border-radius: 2.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 15px rgba(0, 137, 123, 0.3);
}

.software-card__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  font-family: var(--font-family-heading);
}

.software-card__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.software-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex: 1;
}

.software-card__features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  color: var(--color-text-dark);
  line-height: 1.6;
}

.software-card__features li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.software-card__cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

@media (max-width: 768px) {
  .software__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TRAINING — SCHULUNG
   ============================================================ */
.training__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

#training .section__title--section {
  text-align: center;
}

.training__desc {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.training__formats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.training__format {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  text-align: left;
  transition: all var(--transition-base);
}

.training__format:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card);
}

.training__format-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.training__format strong {
  display: block;
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.training__format p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.training__image {
  position: relative;
}

.training__image::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  border-radius: var(--border-radius-lg);
  opacity: 0.2;
  z-index: -1;
}

.training__image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   SUPPORT — TECHNISCHER SUPPORT
   ============================================================ */
.support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.support-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.support-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 137, 123, 0.15);
  border-color: rgba(0, 137, 123, 0.25);
}

.support-card:hover::before {
  opacity: 1;
}

.support-card__icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.support-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.85rem;
  font-family: var(--font-family-heading);
}

.support-card p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.support__cta {
  text-align: center;
}

/* ============================================================
   EVENTS — Konferenzen
   ============================================================ */
.events__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.events__image {
  position: relative;
}

.events__image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--color-accent-secondary), var(--color-accent-tertiary));
  border-radius: var(--border-radius-lg);
  opacity: 0.15;
  z-index: -1;
}

.events__image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  display: block;
  object-fit: cover;
  object-position: center bottom;
}

.events__image-crop {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.events__image-crop img {
  display: block;
  width: 100%;
  margin-top: -30%;
  box-shadow: none;
  border-radius: 0;
}

.events__desc {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.events__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.events__highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-dark);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-base);
}

.events__highlight:hover {
  border-color: var(--color-accent);
}

.events__highlight-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .training__grid,
  .events__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .training__content,
  .events__content {
    order: 2;
    grid-column: 1;
  }

  .training__image,
  .events__image {
    order: 1;
    grid-column: 1;
  }

  .training__image::before,
  .events__image::before {
    display: none;
  }

  .training__desc,
  .events__desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .training__formats {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .training__format {
    padding: 0.75rem;
    gap: 0.75rem;
    border-radius: 0.5rem;
  }

  .training__format-icon {
    font-size: 1.25rem;
  }

  .training__format strong {
    font-size: 1rem;
  }

  .training__format p {
    font-size: 0.9rem;
  }

  .training__image img,
  .events__image img {
    border-radius: 0.5rem;
  }

  .support__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .support-card {
    padding: 1.25rem;
    border-radius: 0.75rem;
  }

  .support-card__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .support-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .support-card p {
    font-size: 1rem;
  }

  .events__highlights {
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .events__highlight {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    gap: 0.6rem;
    border-radius: 0.4rem;
  }

  .events__highlight-icon {
    font-size: 1rem;
  }
}

/* ============================================================
   CONTACTS — KONTAKT
   ============================================================ */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: #1f2937;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  font-size: 0.95rem;
  color: #ef5350;
  min-height: 1.3em;
  display: block;
  font-weight: 600;
}

.form-success {
  background: linear-gradient(135deg, rgba(0, 137, 123, 0.1) 0%, rgba(0, 137, 123, 0.05) 100%);
  border: 1px solid var(--color-accent);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

.contact-form__submit {
  align-self: flex-start;
}

.contacts__info-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
  font-family: var(--font-family-heading);
  letter-spacing: -0.02em;
}

.contacts__info-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contacts__info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
}

.contacts__info-item:hover {
  border-color: var(--color-accent);
}

.contacts__info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contacts__info-item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contacts__info-item a {
  color: var(--color-accent);
  font-size: 0.95rem;
  transition: color var(--transition-base);
}

.contacts__info-item a:hover {
  color: var(--color-accent-hover);
}

.contacts__social-title {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.contacts__social-links {
  display: flex;
  gap: 0.75rem;
}

.contacts__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-dark);
  transition: all var(--transition-base);
}

.contacts__social-link svg {
  transition: transform 0.3s ease;
}

.contacts__social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 137, 123, 0.3);
}

.contacts__social-link:hover svg {
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    gap: 1rem;
  }

  .form-group label {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    border-radius: 0.5rem;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .form-error {
    font-size: 0.9rem;
  }

  .form-success {
    padding: 1rem;
    font-size: 1rem;
  }

  .contact-form__submit {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .contacts__info-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .contacts__info-items {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .contacts__info-item {
    padding: 0.75rem;
    gap: 0.75rem;
    border-radius: 0.5rem;
  }

  .contacts__info-icon {
    font-size: 1rem;
  }

  .contacts__info-item strong {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }

  .contacts__info-item a {
    font-size: 1rem;
  }

  .contacts__social-title {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .contacts__social-links {
    gap: 0.5rem;
  }

  .contacts__social-link {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-bg-light);
  border-top: none;
  padding: 0;
  overflow: hidden;
}

.footer::before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    var(--color-accent) 25%,
    var(--color-accent-secondary) 25%,
    var(--color-accent-secondary) 50%,
    var(--color-accent-tertiary) 50%,
    var(--color-accent-tertiary) 75%,
    var(--color-accent) 75%,
    var(--color-accent) 100%
  );
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
  flex-wrap: wrap;
}

.footer__logo {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-family-heading);
  position: relative;
  transition: all 0.3s ease;
}

.footer__logo::before {
  content: '◆';
  font-size: 0.9rem;
  margin-right: 0.5rem;
  color: var(--color-accent);
  vertical-align: middle;
  transition: color 0.3s ease;
}

.footer__logo::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
  border-radius: 2px;
  margin-top: 0.5rem;
  transition: width 0.3s ease;
}

.footer__logo:hover {
  color: var(--color-accent-hover);
}

.footer__logo:hover::before {
  color: var(--color-accent-secondary);
}

/* Footer logo image */
.footer__logo-img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer__logo-img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.footer__logo:hover::after {
  width: 100%;
}

.footer__tagline {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer__tagline a {
  color: var(--color-accent);
  font-weight: 600;
  transition: color var(--transition-base);
}

.footer__tagline a:hover {
  color: var(--color-accent-hover);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2rem;
  align-items: center;
}

.footer__nav a {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family-heading);
  color: var(--color-text-dark);
  transition: color var(--transition-base);
  position: relative;
}

.footer__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.footer__nav a:hover {
  color: var(--color-accent);
}

.footer__nav a:hover::after {
  width: 100%;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(0, 137, 123, 0.12);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__bottom p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer__bottom a {
  color: var(--color-accent);
  font-weight: 500;
  transition: color var(--transition-base);
}

.footer__bottom a:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 768px) {
  .footer::before {
    height: 4px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 0;
  }

  .footer__logo {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }

  .footer__tagline {
    font-size: 0.85rem;
  }

  .footer__nav {
    justify-content: center;
    gap: 0.2rem 0.75rem;
  }

  .footer__nav a {
    font-size: 0.85rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
    padding: 1rem 0;
  }

  .footer__bottom p {
    font-size: 0.75rem;
  }
}

/* ============================================================
   RESPONSIVE — 320px (extra small mobile)
   ============================================================ */
@media (max-width: 400px) {
  :root {
    --font-size-base: 16px;
  }

  .container,
  .navbar__container,
  .hero__content {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .hero {
    padding: 1.5rem 0 2rem;
  }

  .hero__content {
    padding: 0.5rem;
  }

  .hero__badge {
    margin-bottom: 0.75rem;
  }

  .hero__title {
    margin-bottom: 0.5rem;
  }

  .hero__tagline {
    margin-bottom: 0.5rem;
  }

  .hero__subtitle {
    margin-bottom: 1rem;
  }

  .hero__actions {
    margin-bottom: 0.75rem;
  }

  .hero__stats {
    gap: 0.5rem;
  }

  .navbar__logo-text {
    font-size: 0.9rem;
  }

  .navbar__hamburger {
    width: 28px;
    height: 28px;
  }

  .navbar__hamburger span {
    width: 16px;
    height: 1.5px;
  }

  .hero {
    padding: 1.5rem 0 2rem;
    align-items: flex-start;
  }

  .hero__content {
    margin: 0;
    padding: 0.5rem;
  }

  .hero__badge {
    font-size: 0.5rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.5rem;
  }

  .hero__title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    word-break: break-word;
  }

  .hero__tagline {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    word-break: break-word;
  }

  .hero__subtitle {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .hero__stats {
    gap: 0.35rem;
  }

  .hero__stat {
    min-width: 50px;
  }

  .hero__stat-number {
    font-size: 0.9rem;
  }

  .hero__stat-label {
    font-size: 0.5rem;
  }

  .hero__actions {
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }

  .btn {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 1.5rem;
  }

  .section {
    padding: 1.5rem 0;
  }

  .section__title {
    font-size: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.4rem;
  }

  .section__title::after {
    width: 2.5rem;
    height: 2px;
    margin-top: 0.5rem;
  }

  .section-subtitle {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .about__text p {
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
    line-height: 1.45;
  }

  .about__benefits-title {
    font-size: 0.9rem;
    margin: 0.75rem 0 0.5rem;
  }

  .benefits-list {
    gap: 0.35rem;
    margin-bottom: 1rem;
  }

  .benefits-list li {
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .benefits-list__icon {
    font-size: 0.6rem;
  }

  .disclaimer {
    padding: 0.6rem;
    font-size: 0.65rem;
    margin-top: 0.75rem;
  }

  .device-card__image-wrap img {
    aspect-ratio: 2 / 1;
  }

  .device-card__badge {
    font-size: 0.5rem;
    padding: 0.15rem 0.35rem;
    top: 0.4rem;
    right: 0.4rem;
  }

  .device-card__body {
    padding: 0.75rem;
  }

  .device-card__title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .device-card__desc {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

  .specs-table__title {
    font-size: 0.55rem;
    margin-bottom: 0.3rem;
  }

  .specs-list {
    margin-bottom: 0.5rem;
    border-radius: 0.35rem;
  }

  .specs-list__item {
    padding: 0.35rem 0.4rem;
  }

  .specs-list__label {
    font-size: 0.55rem;
  }

  .specs-list__value {
    font-size: 0.65rem;
  }

  .cert-badge {
    gap: 0.15rem;
    margin-bottom: 0.5rem;
  }

  .cert-badge span {
    font-size: 0.5rem;
    padding: 0.1rem 0.25rem;
    border-radius: 0.25rem;
  }

  .device-card__cta {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
  }

  .software-card {
    padding: 0.75rem;
    border-radius: 0.6rem;
  }

  .software-card__header {
    margin-bottom: 0.5rem;
  }

  .software-card__icon {
    font-size: 1.25rem;
  }

  .trial-badge {
    font-size: 0.5rem;
    padding: 0.15rem 0.4rem;
  }

  .software-card__title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .software-card__desc {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

  .software-card__features {
    gap: 0.25rem;
    margin-bottom: 0.75rem;
  }

  .software-card__features li {
    font-size: 0.7rem;
  }

  .training__desc,
  .events__desc {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .training__format {
    padding: 0.4rem;
    gap: 0.4rem;
    border-radius: 0.4rem;
  }

  .training__format-icon {
    font-size: 0.9rem;
  }

  .training__format strong {
    font-size: 0.8rem;
  }

  .training__format p {
    font-size: 0.65rem;
  }

  .support-card {
    padding: 0.75rem;
    border-radius: 0.6rem;
  }

  .support-card__icon {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
  }

  .support-card h3 {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .support-card p {
    font-size: 0.7rem;
  }

  .events__highlight {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
    gap: 0.35rem;
    border-radius: 0.35rem;
  }

  .events__highlight-icon {
    font-size: 0.8rem;
  }

  .form-group label {
    font-size: 0.75rem;
  }

.contact-form input,
.form-group textarea {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: #1f2937;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

  .form-group textarea {
    min-height: 80px;
  }

  .contact-form__submit {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }

  .contacts__info-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .contacts__info-items {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .contacts__info-item {
    padding: 0.4rem;
    gap: 0.4rem;
    border-radius: 0.4rem;
  }

  .contacts__info-icon {
    font-size: 0.8rem;
  }

  .contacts__info-item strong {
    font-size: 0.8rem;
  }

  .contacts__info-item a {
    font-size: 0.95rem;
  }

  .contacts__social-title {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .contacts__social-link {
    width: 28px;
    height: 28px;
    font-size: 0.6rem;
  }

  .footer::before {
    height: 3px;
  }

  .footer__inner {
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .footer__logo {
    font-size: 0.9rem;
  }

  .footer__tagline {
    font-size: 0.7rem;
  }

  .footer__nav {
    gap: 0.15rem 0.5rem;
  }

  .footer__nav a {
    font-size: 0.7rem;
  }

  .footer__bottom {
    padding: 0.75rem 0;
    gap: 0.3rem;
  }

  .footer__bottom p {
    font-size: 0.6rem;
  }
}

/* ============================================================
   RESPONSIVE — scroll-padding for fixed navbar
   ============================================================ */
html {
  scroll-padding-top: 80px;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 75px;
  }
}

/* ============================================================
   HERO — SPLIT LAYOUT (text left / portrait right)
   ============================================================ */

/* Override centered layout for split variant */
.hero__container--split {
  display: grid;
  grid-template-columns: 62% 38%;
  align-items: start;
  gap: 2rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: left;
}

/* Left column — content */
.hero__container--split .hero__content {
  align-items: flex-start;
  text-align: left;
  order: 2;
}

.hero__container--split .hero__portrait {
  order: 1;
  margin-left: -4rem;
}

/* Compact the title so it fits on 2–3 lines max in the left column */
.hero__container--split .hero__title {
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__title-firm {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #ffffff;
}

.hero__title-name {
  display: block;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-family: 'Lora', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.75);
}

/* Accent divider line under title */
.hero__container--split .hero__title::after {
  content: '';
  display: block;
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), rgba(92, 107, 192, 0.6));
  border-radius: 2px;
  margin-top: 1rem;
}

/* Bigger tagline — it's the key message */
.hero__container--split .hero__tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  line-height: 1.5;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.98);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Subtitle fills the column width nicely */
.hero__container--split .hero__subtitle {
  font-size: clamp(1.2rem, 2.8vw, 2.2rem);
  line-height: 1.75;
  max-width: 100%;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero__container--split .hero__subtitle--line1 {
  white-space: nowrap;
  margin-bottom: 0;
}

.hero__container--split .hero__subtitle--line2 {
  margin-bottom: 2rem;
  white-space: nowrap;
}

.hero__container--split .hero__subtitle br {
  display: inline;
}

.hero__container--split .hero__subtitle-secondary {
  font-size: clamp(1.2rem, 2.8vw, 2.2rem);
  line-height: 1.75;
  max-width: 100%;
  margin-bottom: 2.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

/* Stats — bigger numbers, more breathing room */
.hero__container--split .hero__stats {
  gap: 2.5rem;
  margin-top: 0.25rem;
  justify-content: center;
}

.hero__container--split .hero__stat-number {
  font-size: 2.6rem;
}

.hero__container--split .hero__stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
}

.hero__container--split .hero__actions {
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Hero Features - два прямоугольных блока */
.hero__features-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero__features {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

.hero__feature-box {
  flex: 0 1 auto;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
}

.hero__feature-box:first-child {
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.hero__feature-box:last-child {
  background: transparent;
  border: 2px solid var(--color-accent);
}

.hero__container--split .hero__stats {
  justify-content: center;
}

/* ============================================================
   PORTRAIT COLUMN
   ============================================================ */
.hero__portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient glow behind the photo */
.hero__portrait-glow {
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 137, 123, 0.25) 0%,
    rgba(92, 107, 192, 0.12) 50%,
    transparent 75%
  );
  z-index: 0;
}

@keyframes portraitPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50%       { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* Decorative spinning ring */
.hero__portrait-ring {
  position: absolute;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 38% 62% 55% 45% / 45% 45% 55% 55%;
  border: 1.5px solid rgba(0, 137, 123, 0.25);
  z-index: 1;
}

.hero__portrait-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px dashed rgba(92, 107, 192, 0.15);
}

@keyframes portraitRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Photo frame */
.hero__portrait-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 137, 123, 0.25),
    0 0 0 4px rgba(0, 137, 123, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 137, 123, 0.2);
  background: linear-gradient(135deg, rgba(0, 137, 123, 0.6), rgba(92, 107, 192, 0.4));
  padding: 3px;
}

.hero__portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0, 137, 123, 0.8) 0%,
    rgba(92, 107, 192, 0.6) 50%,
    rgba(236, 64, 122, 0.4) 100%
  );
  z-index: -1;
}

.hero__portrait-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(2rem - 3px);
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__portrait-frame:hover .hero__portrait-img {
  transform: scale(1.02);
}

/* Floating badge below the photo */
.hero__portrait-badge {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  background: rgba(10, 31, 29, 0.9);
  border: 1px solid rgba(0, 137, 123, 0.45);
  border-radius: 3rem;
  color: #4db6ac;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero__portrait-badge-icon {
  font-size: 0.7rem;
  color: var(--color-accent);
}

/* ============================================================
   HERO SPLIT — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero__container--split {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4rem 1.75rem;
  }

  .hero__container--split .hero__title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  }

  .hero__portrait-frame {
    max-width: 400px;
  }
}

/* ============================================================
   HERO SPLIT — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero__container--split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 1.25rem 3rem;
    text-align: center;
  }

  .hero__container--split .hero__content {
    align-items: center;
    text-align: center;
    order: 1;
  }

  .hero__container--split .hero__actions {
    justify-content: center;
  }

  .hero__container--split .hero__stats {
    justify-content: center;
  }

  .hero__features {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .hero__feature-box {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .hero__portrait {
    position: relative;
    order: 2;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    margin-left: auto !important;
    text-align: center;
    overflow: hidden;
  }

  .hero__portrait-img {
    margin: 0 auto;
  }

  .hero__portrait-frame {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero__portrait-ring {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);
    height: calc(100% + 20px);
    overflow: hidden;
  }

  .hero__portrait-glow {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    overflow: hidden;
  }

  .hero__portrait-badge {
    font-size: 0.7rem;
    padding: 0.45rem 1rem;
    bottom: -0.75rem;
  }
}

/* ============================================================
   HERO SPLIT — SMALL MOBILE (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero__container--split {
    padding: 3rem 0.75rem 2.5rem;
    gap: 2rem;
  }

  .hero__portrait {
    max-width: 260px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
  }

  .hero__portrait-frame {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero__portrait-badge {
    font-size: 0.6rem;
    padding: 0.35rem 0.75rem;
    letter-spacing: 0.06em;
  }
}

/* ============================================================
   SECTION DIVIDERS — removed, using section__title--highlight instead
   ============================================================ */

/* ============================================================
   SVG ICONS — sizing fixes
   ============================================================ */
.benefits-list__icon svg,
.training__format-icon svg,
.events__highlight-icon svg,
.contacts__info-icon svg {
  display: block;
  flex-shrink: 0;
}

.software-card__icon svg,
.support-card__icon svg {
  display: block;
}

.benefits-list__icon {
  display: flex;
  align-items: center;
  margin-top: 0.1rem;
}

/* ============================================================
   PARALLAX SECTION BANNER
   ============================================================ */
.section-parallax-banner {
  position: relative;
  width: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 4rem;
}

/* The parallax background layer */
.section-parallax-banner__bg {
  position: absolute;
  /* Oversized so translateY never reveals the grey background.
     300px each side covers the full parallax travel range. */
  top: -300px;
  left: 0;
  right: 0;
  bottom: -300px;
  background-attachment: scroll;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}

/* Semi-transparent overlay so text stays readable */
.section-parallax-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* Content sits on top */
.section-parallax-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 2rem;
  width: 100%;
}

.section-parallax-banner__content .section__title--highlight {
  background: none;
  box-shadow: none;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  left: auto;
  transform: none;
  position: static;
}

.section-parallax-banner__content .section-subtitle {
  margin-bottom: 0;
  color: rgba(255,255,255,0.9);
  text-align: center;
}

/* Remove top padding from section since banner handles it */
#about {
  padding-top: 0;
}

/* Mobile: no parallax, static background */
@media (max-width: 768px) {
  .section-parallax-banner__bg {
    top: 0;
    bottom: 0;
    will-change: auto;
    transform: none !important;
  }

  .section-parallax-banner {
    min-height: 180px;
    margin-bottom: 2rem;
  }

  .section-parallax-banner__content {
    padding: 2.5rem 1.25rem;
  }
}

/* ============================================================
   PARALLAX BANNERS FOR MULTIPLE SECTIONS
   ============================================================ */

/* Баннер для Geräte (Biofeedback Quantengeräte) */
#devices .section-parallax-banner {
  margin-bottom: 4rem;
}

/* Баннер для Software */
#software .section-parallax-banner {
  margin-bottom: 4rem;
}

/* Баннер для Support */
#support .section-parallax-banner {
  margin-bottom: 4rem;
}

/* Баннер для Contacts */
#contacts .section-parallax-banner {
  margin-bottom: 4rem;
}

/* Общие стили для всех баннеров внутри секций */
#devices .section-parallax-banner__bg,
#software .section-parallax-banner__bg,
#support .section-parallax-banner__bg,
#contacts .section-parallax-banner__bg {
  background-attachment: scroll;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Убираем padding-top у секций с баннерами */
#devices,
#software,
#support,
#contacts {
  padding-top: 0;
}


/* ============================================================
   PERFORMANCE OPTIMIZATIONS
   ============================================================ */

/* GPU acceleration for smooth animations */
.btn,
.device-card,
.software-card,
.support-card,
.training__format,
.events__highlight,
.contacts__info-item {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Optimize section parallax */
.section-parallax-banner__bg {
  contain: style;
}

/* Optimize navbar */
.navbar {
  contain: layout style;
}

/* Optimize hero section */
.hero {
  contain: layout style;
}

/* Reduce transition overhead */
.btn {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optimize images */
img {
  content-visibility: auto;
}


/* ============================================================
   LAZY LOADING & PERFORMANCE
   ============================================================ */

/* Fade-in анимация для элементов при загрузке */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

img[loading="lazy"].in-view {
  opacity: 1;
}

/* Оптимизация для карточек */
.device-card,
.software-card,
.support-card {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.device-card.in-view,
.software-card.in-view,
.support-card.in-view {
  animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduce motion для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  img[loading="lazy"],
  .device-card,
  .software-card,
  .support-card {
    animation: none;
    opacity: 1;
  }
}

/* ============================================================
   15. CERTIFICATES SECTION
   ============================================================ */
.certificates-carousel {
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
}

.certificates-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificates-carousel__slides {
  display: flex;
  gap: 2rem;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 200px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.certificate-card img {
  width: 180px;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(0,137,123,0.1);
}

.certificate-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,137,123,0.25);
  border-color: var(--color-accent);
}

.certificate-card__title {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Кнопки навигации */
.certificates-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.9);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-dark);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-base);
}

.certificates-carousel__btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-50%) translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,137,123,0.3);
}

.certificates-carousel__btn--prev { left: 1rem; }
.certificates-carousel__btn--next { right: 1rem; }

/* Точки навигации */
.certificates-carousel__dots {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.certificates-carousel__dot {
  width: 10px;
  height: 10px;
  background: rgba(0,137,123,0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.certificates-carousel__dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* Адаптив */
@media (max-width: 768px) {
  .certificates-carousel__slides { gap: 1.5rem; }
  .certificate-card { min-width: 160px; }
  .certificate-card img { width: 140px; }
  .certificates-carousel__btn { width: 40px; height: 40px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .certificates-carousel__slides { gap: 1rem; }
  .certificate-card { min-width: 120px; }
  .certificate-card img { width: 100px; }
  .certificates-carousel__btn { width: 36px; height: 36px; font-size: 0.9rem; }
}

/* ============================================================
   NETWORK INFORMATION API (если доступно)
   Адаптивная загрузка в зависимости от скорости интернета
   ============================================================ */
@media (prefers-reduced-data: reduce) {
  /* Отключаем анимации для пользователей с ограниченным трафиком */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

