:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-400: #f6a06b;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --brand-blue-light: #5CB2E8;
  --brand-blue-dark: #1D6FB8;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Inter', system-ui, sans-serif;

  --space-2: 8.8px;
  --space-3: 13.2px;

  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(46, 43, 37, 0.14);
  --shadow-md: 0 3px 10px rgba(46, 43, 37, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }

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

a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-800); }

:focus-visible { outline: 2px solid var(--brand-blue-dark); outline-offset: 2px; }

.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 14px; line-height: 1.2; color: var(--color-bg);
  border: 1px solid transparent; border-radius: 999px;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue-light), var(--brand-blue-dark));
  border-width: 0;
}
.btn-primary:hover { background: linear-gradient(135deg, #4AA0D8, #155A96); }
.btn-primary:active { background: linear-gradient(135deg, #3A8FC6, #0F477A); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* — page background texture — */
.page {
  position: relative;
  background-color: var(--color-bg);
  background-image: radial-gradient(var(--color-accent-2-300) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  overflow-x: clip;
}

.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute; border-radius: 50%; opacity: 0.85;
}
.blob--accent {
  top: -160px; right: -140px; width: 520px; height: 520px;
  background: radial-gradient(circle at 35% 35%, var(--color-accent-200), transparent 68%);
}
.blob--sage {
  top: 340px; left: -200px; width: 460px; height: 460px; opacity: 0.8;
  background: radial-gradient(circle at 60% 40%, var(--color-accent-2-200), transparent 70%);
}

.decor {
  position: absolute; pointer-events: none; z-index: 0;
  opacity: 0.14; width: auto;
}
.decor-tram { top: 0; right: -40px; height: clamp(320px, 40vw, 560px); }
.decor-velo { top: 460px; left: -40px; height: clamp(260px, 32vw, 440px); }
.decor-lion { bottom: 20px; right: -30px; height: clamp(240px, 30vw, 400px); }

@media (max-width: 900px) {
  .decor { display: none; }
}

/* — nav — */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(245, 234, 216, 0.88);
  backdrop-filter: blur(10px);
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 20px; font-weight: 700;
}
.nav-brand img { height: 36px; width: auto; }

/* — sections — */
section { position: relative; z-index: 1; }

.hero {
  padding: 48px clamp(20px, 5vw, 64px) 88px;
  max-width: 1200px; margin: 0 auto;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--color-accent-2-200); color: var(--color-accent-2-900);
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  max-width: 17ch; margin: 20px 0; text-wrap: pretty;
}
.hero p { font-size: 18px; line-height: 1.65; max-width: 52ch; text-wrap: pretty; }
.hero .cta-row { margin-top: 32px; }

.section-firmen {
  max-width: 1200px; margin: 0 auto 88px; padding: 56px clamp(24px, 4vw, 56px);
  background: var(--color-accent-2-100); border-radius: var(--radius-lg);
}
.section-firmen h2 { max-width: 22ch; margin-bottom: 16px; }
.section-firmen > p { font-size: 17px; line-height: 1.65; max-width: 64ch; }

.card-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 40px;
}
.card-dark {
  background: var(--color-accent-2-800); color: var(--color-accent-2-100);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md);
}
.card-dark h3 { font-size: 19px; margin-bottom: 10px; }
.card-dark p { margin: 0; font-size: 15px; line-height: 1.6; }

.step-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; margin-top: 20px;
}
.step {
  background: var(--color-bg); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-accent-2-200); color: var(--color-accent-2-900);
  font-size: 14px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14px; line-height: 1.6; opacity: 0.8; }

.section-triad {
  padding: 0 clamp(20px, 5vw, 64px) 88px; max-width: 1200px; margin: 0 auto;
}
.section-triad > p { font-size: 17px; line-height: 1.7; max-width: 52ch; margin: 8px 0 36px; }
.triad-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 56px; align-items: start;
}
.triad-list { display: flex; flex-direction: column; gap: 24px; }
.triad-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-items: start; }
.triad-item .num {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.triad-item:nth-child(odd) .num { background: var(--color-accent-200); color: var(--color-accent-800); }
.triad-item:nth-child(even) .num { background: var(--color-accent-2-200); color: var(--color-accent-2-900); }
.triad-item p { margin: 0; font-size: 17px; line-height: 1.7; }

.vivendra-figure {
  margin: 0; border-radius: 50%; width: 100%; max-width: 320px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; justify-self: end;
  box-shadow: var(--shadow-sm); background-color: #FFFFFF;
}
.vivendra-figure img { width: 62%; height: 62%; object-fit: contain; }

.section-manufaktur {
  background: var(--color-surface); border-radius: var(--radius-lg);
  max-width: 1200px; margin: 0 auto 88px; padding: 56px clamp(24px, 4vw, 56px);
}
.section-manufaktur h2 { margin-bottom: 16px; }
.section-manufaktur > p { font-size: 17px; line-height: 1.65; max-width: 60ch; }

.tile-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px; margin-top: 36px;
}
.tile {
  display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--color-bg); border-radius: var(--radius-lg); padding: 20px 22px;
}
.tile .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; }
.tile:nth-child(odd) .dot { background: var(--color-accent-400); }
.tile:nth-child(even) .dot { background: var(--color-accent-2-400); }
.tile h3 { font-size: 16px; margin-bottom: 4px; }
.tile p { margin: 0; font-size: 14px; line-height: 1.55; opacity: 0.8; }
.tile--more { background: var(--color-accent-2-200); }
.tile--more .dot { background: #8fa073; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; margin-top: 40px;
}
.gallery-figure {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; background: var(--color-bg);
}
.gallery-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 900ms ease;
}
.gallery-note { margin: 32px 0 0; font-size: 15px; font-style: italic; opacity: 0.85; }

.section-kontakt {
  max-width: 1200px; margin: 0 auto 40px; padding: 56px clamp(24px, 4vw, 56px);
  background: rgba(255, 242, 235, 0.86); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.kontakt-figure {
  margin: 0; border-radius: 50%; overflow: hidden; width: 100%; max-width: 260px;
  aspect-ratio: 1; box-shadow: var(--shadow-md); position: relative; z-index: 1;
}
.kontakt-figure img { width: 100%; height: 100%; object-fit: cover; }
.section-kontakt h2 { margin-bottom: 16px; }
.section-kontakt p { font-size: 17px; line-height: 1.65; max-width: 56ch; text-wrap: pretty; }
.section-kontakt .cta-row { margin-top: 28px; }

.site-footer {
  padding: 24px clamp(20px, 5vw, 64px) 64px; max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 32px 64px;
  font-size: 14px; line-height: 1.7; opacity: 0.85;
}

@media (max-width: 760px) {
  .triad-layout, .section-kontakt { grid-template-columns: 1fr; }
  .vivendra-figure { justify-self: start; max-width: 200px; }
  .section-kontakt { text-align: left; }
  .kontakt-figure { max-width: 180px; }
  .gallery-grid { grid-template-columns: 1fr; }
}
