:root {
  --bg: #fdf9f1;
  --bg-2: #f6eee2;
  --text: #0e3d36;
  --muted: #53706b;
  --brand: #0e3d36;
  --brand-2: #18a092;
  --accent: #f2c94c;
  --ok: #1b7f55;
  --err: #c4473d;
  --card: #ffffff;
  --border: #d8d1c6;
  --radius: 18px;
  --max: 1200px;
  --shadow: 0 22px 48px rgba(14, 61, 54, 0.12);
  --hero-poster: url('../media/hero-poster.jpg');
  --hero-ambient-1: radial-gradient(circle at 20% 25%, rgba(24, 160, 146, 0.16) 0%, rgba(253, 249, 241, 0) 55%);
  --hero-ambient-2: radial-gradient(circle at 82% 30%, rgba(242, 201, 76, 0.21) 0%, rgba(253, 249, 241, 0) 50%);
  --hero-overlay: linear-gradient(180deg, rgba(24, 160, 146, 0.22) 0%, #fdf9f1 100%);
  --header-height: clamp(68px, 14vw, 112px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: 'Montserrat', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-home {
  padding-top: 0;
}

body.page-home main {
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--header-height);
}

body.page-home section {
  scroll-snap-align: start;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  display: block;
}

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

ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
}

ul li {
  margin-bottom: 6px;
}

.text-center {
  text-align: center;
}

header {
  position: fixed;
  inset: 0 0 auto 0;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(253, 249, 241, 0.82);
  border-bottom: 1px solid rgba(216, 209, 198, 0.8);
  z-index: 50;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(14, 61, 54, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 238, 226, 0.95));
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 28px rgba(14, 61, 54, 0.12);
}

.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(14, 61, 54, 0.16);
}

.menu-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle__icon span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active .menu-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  display: block;
  height: clamp(30px, 4.5vw, 40px);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: conic-gradient(from 180deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2), var(--shadow);
}

#home,
#services,
#clients {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.cta-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

.cta-grid article {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(24, 160, 146, 0.08);
  color: var(--text);
}

.cta-grid h2 {
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nav a.btn {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav a.btn:hover {
  color: var(--brand);
  border-color: rgba(14, 61, 54, 0.18);
  background: rgba(24, 160, 146, 0.06);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lang-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.lang-btn:hover {
  border-color: rgba(14, 61, 54, 0.2);
  background: rgba(24, 160, 146, 0.08);
}

.lang-btn.is-active {
  border-color: rgba(14, 61, 54, 0.3);
  box-shadow: inset 0 0 0 1px rgba(14, 61, 54, 0.2);
  background: rgba(24, 160, 146, 0.12);
}

.nav a[aria-current='page'] {
  border-color: rgba(14, 61, 54, 0.2);
  color: var(--brand);
  background: rgba(24, 160, 146, 0.08);
  box-shadow: inset 0 0 0 1px rgba(14, 61, 54, 0.1);
}

.hero {
  padding: 0;
}

.hero-min {
  position: relative;
  min-height: clamp(560px, 78vh, 840px);
  display: grid;
  justify-items: center;
  align-content: start;
  padding: clamp(48px, 12vh, 112px) 24px clamp(32px, 8vh, 88px);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-ambient-1), var(--hero-ambient-2), var(--hero-poster) center/cover no-repeat;
  filter: grayscale(12%) saturate(120%) brightness(95%);
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(125%) contrast(104%) brightness(100%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  padding: 0;
  display: grid;
  gap: 18px;
  justify-items: start;
}

.h1 {
  font-size: clamp(36px, 5.8vw, 60px);
  line-height: 1.04;
  margin: 0;
  color: var(--brand);
}

.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  margin: 0;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(14, 61, 54, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 238, 226, 0.95));
  color: var(--brand);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 14px 34px rgba(14, 61, 54, 0.12);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(14, 61, 54, 0.18);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fdf9f1;
  border: none;
}

.section {
  padding: 64px 24px;
}

.section h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  margin: 0 0 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

@media (max-width: 900px) {
  .hero-min {
    min-height: auto;
    padding: 64px 24px 48px;
  }

  .hero-teasers {
    margin-top: -72px;
    padding: 40px 24px 56px;
  }
}

@media (max-width: 900px) {
  .nav {
    position: relative;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-actions {
    position: absolute;
    top: calc(100% + 12px);
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px;
    border-radius: calc(var(--radius) + 6px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 235, 220, 0.98));
    border: 1px solid rgba(216, 209, 198, 0.95);
    box-shadow: var(--shadow);
    z-index: 90;
    max-height: calc(100vh - var(--header-height) - 32px);
    overflow-y: auto;
  }

  .nav-actions.is-open {
    display: flex;
  }

  .nav-actions nav {
    display: grid;
    gap: 10px;
  }

  .nav-actions nav a.btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .nav-actions .lang-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .nav-actions .lang-switcher .lang-btn {
    width: 100%;
  }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 237, 225, 0.96));
  border: 1px solid rgba(216, 209, 198, 0.8);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 61, 54, 0.35);
}

.card p {
  color: var(--muted);
  margin: 8px 0 0;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

blockquote {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 229, 210, 0.98));
  border: 1px solid rgba(216, 209, 198, 0.9);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0;
}

blockquote p {
  margin: 0 0 10px;
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

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

form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border: 1px solid rgba(216, 209, 198, 0.9);
  border-radius: 12px;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(24, 160, 146, 0.25);
}

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

.small {
  color: var(--muted);
  font-size: 12px;
}

.status {
  display: none;
  font-size: 14px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(216, 209, 198, 0.9);
}

.status.ok {
  display: block;
  background: rgba(27, 127, 85, 0.08);
  color: var(--ok);
}

.status.err {
  display: block;
  background: rgba(196, 71, 61, 0.08);
  color: var(--err);
}

.policy {
  background: linear-gradient(180deg, rgba(253, 249, 241, 0.9), rgba(246, 236, 223, 0.96));
  border-top: 1px solid rgba(216, 209, 198, 0.9);
  border-bottom: 1px solid rgba(216, 209, 198, 0.9);
}

.policy .card {
  background: transparent;
  box-shadow: none;
}

.policy h3 {
  margin: 10px 0 4px;
}

.kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
}

footer {
  padding: 28px 24px;
  border-top: 1px solid rgba(216, 209, 198, 0.9);
  color: var(--muted);
  text-align: center;
}

.cookiebar {
  position: fixed;
  inset: auto 16px 16px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(216, 209, 198, 0.9);
  border-radius: 14px;
  padding: 14px;
  display: none;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}

.cookiebar.show {
  display: flex;
}

.cookiebar p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.cookiebar .actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.page-header {
  padding: 120px 24px 64px;
  text-align: center;
  background: rgba(9, 14, 24, 0.45);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 46px);
}

.page-header p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.hero-teasers {
  position: relative;
  z-index: 2;
  margin-top: clamp(-168px, -18vh, -72px);
  padding: clamp(40px, 7vw, 64px) 24px 80px;
}

.hero-teasers .grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.hero-teasers .card {
  display: grid;
  gap: 12px;
}

.hero-teasers .card a {
  justify-self: flex-start;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  .section {
    padding: 48px 20px;
  }

  .hero-min {
    padding: 48px 20px 40px;
  }

  .hero-wrap {
    padding: 0;
  }

  .hero-teasers {
    margin-top: 0;
    padding: 48px 20px 64px;
  }

  .nav-actions {
    left: 20px;
    right: 20px;
  }

  .cookiebar {
    inset: auto 12px 12px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cookiebar .actions {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .cookiebar .actions .btn {
    flex: 1 1 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  .hero-media {
    background: var(--hero-ambient-1), var(--hero-ambient-2), var(--hero-poster) center/cover no-repeat;
  }
}

.user-tabbing .btn:focus {
  box-shadow: 0 0 0 3px rgba(24, 160, 146, 0.35);
}
