:root {
  --navy: #061b3a;
  --navy-2: #08162b;
  --navy-3: #10284c;
  --red: #f81824;
  --red-2: #d91431;
  --soft-red: #fff0f1;
  --paper: #f7f8fb;
  --line: rgba(6, 27, 58, 0.12);
  --line-dark: rgba(255, 255, 255, 0.13);
  --ink: #0f172a;
  --muted: #5f6f86;
  --white: #ffffff;
  --shadow: 0 26px 70px rgba(6, 27, 58, 0.16);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(248, 24, 36, 0.45);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem max(1.2rem, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid rgba(6, 27, 58, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand img {
  width: clamp(180px, 20vw, 270px);
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.nav a,
.nav-cta {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav a {
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid transparent;
  color: var(--red);
}

.nav svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.nav a:hover {
  border-color: rgba(248, 24, 36, 0.28);
  background: rgba(248, 24, 36, 0.08);
  transform: translateY(-1px);
}

.nav a::after,
.nav-cta::after {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  z-index: 60;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  content: attr(data-tooltip);
  font-size: 0.72rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.3rem);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav-cta:hover::after,
.nav-cta:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-cta {
  justify-self: end;
  min-height: 3rem;
  padding: 0 1.1rem;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(248, 24, 36, 0.2);
}

.nav-cta::after {
  content: "Kontakt";
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(248, 24, 36, 0.24);
}

.legal-nav {
  gap: 1rem;
}

.legal-nav a {
  width: auto;
  height: auto;
  padding: 0.4rem 0;
  border: 0;
  border-radius: 0;
  color: var(--navy);
  font-weight: 750;
}

.legal-nav a::after {
  display: none;
}

.section {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) max(1.2rem, calc((100% - var(--max)) / 2));
}

.section-dark {
  background:
    radial-gradient(circle at 82% 12%, rgba(248, 24, 36, 0.25), transparent 28rem),
    linear-gradient(135deg, var(--navy) 0%, #0a1429 58%, #111827 100%);
  color: var(--white);
}

.section-light {
  background: var(--paper);
}

.section-red {
  background: linear-gradient(135deg, #fff4f5 0%, #ffe9ec 100%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(220px, 0.42fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: calc(100svh - 97px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 27, 58, 0.96) 0%, rgba(6, 27, 58, 0.9) 37%, rgba(6, 27, 58, 0.45) 68%, rgba(6, 27, 58, 0.22) 100%),
    url("assets/hero-mmc-wide.png") center right / cover no-repeat,
    var(--navy);
}

.hero::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.08), transparent 24rem);
  content: "";
  pointer-events: none;
}

.hero-copy,
.trust-strip,
.section-heading,
.offer-card,
.segment-card,
.case-card,
.method-list,
.seo-card,
.contact-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: #ff6b72;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-size: clamp(3.3rem, 7vw, 6.9rem);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

h2 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 740;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

h3 {
  color: var(--navy);
  font-size: 1.22rem;
  font-weight: 780;
  line-height: 1.2;
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.16rem, 1.7vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(248, 24, 36, 0.24);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.section-light .button-secondary,
.section-red .button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(6, 27, 58, 0.18);
}

.trust-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 750;
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-red .section-heading p:not(.eyebrow) {
  color: #52637b;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.offer-card,
.segment-card,
.case-card,
.seo-card,
.legal-card {
  border: 1px solid rgba(6, 27, 58, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(6, 27, 58, 0.06);
}

.offer-card {
  min-height: 340px;
  padding: 1.45rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.offer-card.featured {
  border-color: rgba(248, 24, 36, 0.32);
  box-shadow: 0 22px 60px rgba(248, 24, 36, 0.12);
}

.offer-card:hover,
.segment-card:hover,
.case-card:hover {
  border-color: rgba(248, 24, 36, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  margin-bottom: 2.2rem;
  border-radius: 50%;
  background: var(--soft-red);
  color: var(--red);
}

.card-icon svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.offer-card p,
.segment-card p,
.case-body p,
.seo-card p,
.legal-card p {
  color: var(--muted);
}

.offer-card strong {
  display: block;
  margin: 1.2rem 0 0.25rem;
  color: var(--red);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.segment-card {
  padding: 1.25rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.segment-card p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.segment-card strong {
  color: var(--navy);
}

.portfolio-heading {
  max-width: 920px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 680px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.case-card img {
  width: 100%;
  height: 300px;
  padding: 0.75rem;
  background: #f2f5f9;
  object-fit: contain;
  transition: transform 420ms ease;
}

.case-card:hover img {
  transform: scale(1.02);
}

.text-case {
  min-height: 500px;
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 24, 36, 0.14), transparent 16rem),
    #ffffff;
}

.text-case::before {
  display: grid;
  place-items: center;
  height: 180px;
  color: rgba(248, 24, 36, 0.18);
  content: "MMC";
  font-size: clamp(4rem, 11vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.05rem;
}

.case-body span {
  margin-bottom: 0.45rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-body h3 {
  margin-bottom: 0.8rem;
}

.case-body p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.43;
}

.case-body b {
  color: var(--navy);
}

.case-body em {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--navy);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 850;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--line-dark);
  list-style: none;
  overflow: hidden;
}

.method-list li {
  min-height: 270px;
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.07);
}

.method-list span {
  display: block;
  margin-bottom: 3rem;
  color: #ff6b72;
  font-weight: 850;
}

.method-list p {
  color: rgba(255, 255, 255, 0.72);
}

.seo-section {
  display: grid;
  place-items: center;
}

.seo-card {
  max-width: 980px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.seo-card p {
  font-size: 1.08rem;
}

.contact {
  overflow: hidden;
}

.contact::before {
  position: absolute;
  right: -8rem;
  bottom: -8rem;
  width: min(64vw, 760px);
  height: min(64vw, 760px);
  background: url("assets/mediaconsults-logo.png") center / contain no-repeat;
  content: "";
  opacity: 0.075;
  pointer-events: none;
}

.contact-inner {
  max-width: 860px;
}

.contact h2 {
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.contact p {
  max-width: 680px;
  color: #4e617a;
  font-size: 1.12rem;
}

.contact-reasons {
  display: grid;
  gap: 0.65rem;
  max-width: 760px;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.contact-reasons li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.7rem;
  border: 1px solid rgba(6, 27, 58, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  font-weight: 720;
}

.contact-reasons li::before {
  position: absolute;
  left: 1rem;
  color: var(--red);
  content: "↗";
  font-weight: 900;
}

.mail-note {
  margin-top: 1rem;
  font-size: 0.98rem !important;
}

.mail-note a,
.footer a,
.legal-card a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(248, 24, 36, 0.35);
  text-underline-offset: 0.18em;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem max(1.2rem, calc((100% - var(--max)) / 2));
  border-top: 1px solid rgba(6, 27, 58, 0.08);
  background: var(--white);
  color: var(--muted);
}

.footer img {
  width: 220px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-arrow,
.up-arrow {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(6, 27, 58, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.section-dark .section-arrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.section-arrow {
  position: absolute;
  right: max(1.2rem, calc((100% - var(--max)) / 2));
  bottom: 1.4rem;
  width: 3rem;
  height: 3rem;
}

.up-arrow {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 50;
  width: 3.15rem;
  height: 3.15rem;
  box-shadow: 0 14px 36px rgba(6, 27, 58, 0.14);
}

.section-arrow:hover,
.up-arrow:hover {
  border-color: rgba(248, 24, 36, 0.44);
  color: var(--red);
  transform: translateY(-2px);
}

.legal-page {
  min-height: 100svh;
  padding: clamp(5rem, 9vw, 8rem) max(1.2rem, calc((100% - var(--max)) / 2));
  background: var(--paper);
}

.legal-hero {
  max-width: 860px;
  margin-bottom: 2.5rem;
}

.legal-hero h1 {
  color: var(--navy);
  font-size: clamp(3rem, 7vw, 6rem);
}

.legal-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legal-card {
  padding: 1.35rem;
}

.legal-card h2 {
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
}

.legal-card p {
  margin-bottom: 0.65rem;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .hero,
  .offer-grid,
  .segment-grid,
  .case-grid,
  .method-list,
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    align-items: start;
    background-position: 62% center;
  }

  .trust-strip {
    grid-column: auto;
  }
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .offer-grid,
  .segment-grid,
  .case-grid,
  .method-list,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(6, 27, 58, 0.97) 0%, rgba(6, 27, 58, 0.92) 46%, rgba(6, 27, 58, 0.7) 100%),
      url("assets/hero-mmc-wide.png") 62% center / cover no-repeat,
      var(--navy);
  }

  .case-card {
    min-height: 0;
  }

  .case-card img {
    height: auto;
    max-height: 360px;
  }

  .method-list li {
    min-height: auto;
  }

  .method-list span {
    margin-bottom: 1rem;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .brand img {
    width: 190px;
    height: 54px;
  }

  .nav-cta {
    min-height: 2.7rem;
    padding: 0 0.85rem;
    font-size: 0.86rem;
  }

  .section {
    padding: 4.5rem 1rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.9rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-strip span {
    width: 100%;
    justify-content: center;
  }

  .case-body {
    padding: 1rem;
  }
}
