@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --bg: #051772;
  --bg-deep: #030f4d;
  --panel: rgba(3, 15, 77, 0.72);
  --accent: #0099ff;
  --accent-soft: #0299fd;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 40px rgba(1, 7, 32, 0.45);
  --site-max: 1480px;
  --reading-measure: 54ch;
  --reading-measure-tight: 48ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  background: radial-gradient(circle at 20% 20%, rgba(2, 153, 253, 0.2), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(0, 153, 255, 0.2), transparent 40%),
              var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

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

p {
  margin: 0 0 16px;
}

.hero-header {
  position: relative;
  min-height: 78vh;
  padding: 32px 6vw 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.header-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(3, 8, 38, 0.85), rgba(5, 23, 114, 0.55) 60%, rgba(5, 23, 114, 0.25));
  z-index: 1;
}

.top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
}

.text-logo {
  height: 24px;
  width: auto;
  display: block;
  opacity: 0.9;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 200px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 1rem;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #fff;
}

.main-nav a.active {
  color: #fff;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}


.main-nav a:hover::after,
.main-nav a:focus::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.lang-switch a {
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a:focus,
.lang-switch a.is-active {
  color: #fff;
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding-top: 40px;
  animation: fadeUp 0.9s ease both;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-text {
  max-width: 700px;
  width: 100%;
}

.hero-logo {
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-logo img {
  width: clamp(312px, 43vw, 490px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.2rem;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin: 0 0 16px;
  line-height: 1.05;
}

h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.95rem, 3.3vw, 2.9rem);
  margin: 0 0 12px;
  line-height: 1.2;
}

h3 {
  font-size: 1.15rem;
  margin: 20px 0 8px;
}

.hero-copy {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 560px;
}

.value-props {
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.value-props li {
  position: relative;
  padding-left: 14px;
}

.value-props li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  align-items: center;
}

.btn.primary.hero-cta {
  background: linear-gradient(120deg, #14b2ff, #1b6bff 70%);
  box-shadow: 0 16px 34px rgba(0, 153, 255, 0.42);
  position: relative;
  overflow: hidden;
}

.btn.primary.hero-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.btn.primary.hero-cta:hover::after,
.btn.primary.hero-cta:focus::after {
  opacity: 1;
}

.text-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.text-link:hover::after,
.text-link:focus::after {
  transform: scaleX(1);
  transform-origin: left;
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator::after {
  content: "↓";
  font-size: 0.9rem;
  animation: scrollBounce 1.4s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 153, 255, 0.35);
}

.btn.primary.portfolio-cta {
  background: linear-gradient(120deg, #14b2ff, #1b6bff 70%);
  box-shadow: 0 16px 34px rgba(0, 153, 255, 0.42);
  position: relative;
  overflow: hidden;
}

.btn.primary.portfolio-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.btn.primary.portfolio-cta:hover::after,
.btn.primary.portfolio-cta:focus::after {
  opacity: 1;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 22px;
}

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

.portfolio-cta-block {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 17, 80, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.portfolio-cta-block--top {
  display: none;
}

#webdesign.section {
  background: linear-gradient(160deg, rgba(7, 24, 104, 0.9), rgba(5, 17, 80, 0.82));
  border: 1px solid rgba(20, 178, 255, 0.24);
  box-shadow: 0 26px 56px rgba(3, 11, 44, 0.5), 0 0 0 1px rgba(20, 178, 255, 0.12);
}

#webdesign .split-content {
  display: flex;
  flex-direction: column;
}

#webdesign .webdesign-value-prop {
  margin: 0 0 16px;
  font-size: clamp(1.02rem, 1.8vw, 1.26rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.98);
  text-wrap: balance;
}

@media (min-width: 960px) {
  #webdesign {
    position: relative;
  }

  #webdesign .portfolio-cta-block--desktop {
    position: absolute;
    right: clamp(20px, 4vw, 44px);
    top: 50%;
    transform: translate(12%, -50%);
    margin-top: 0;
    padding: 20px 22px;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(140deg, rgba(8, 22, 92, 0.9), rgba(10, 42, 120, 0.65));
    box-shadow: 0 26px 60px rgba(4, 12, 40, 0.45), 0 0 0 1px rgba(20, 178, 255, 0.25);
    backdrop-filter: blur(8px);
    z-index: 2;
  }

  #webdesign .portfolio-cta-block--top {
    display: none;
  }

  #webdesign .split-media {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 959px) {
  #webdesign .webdesign-value-prop {
    margin-bottom: 14px;
    font-size: clamp(1rem, 2.2vw, 1.16rem);
  }

  #webdesign .portfolio-cta-block--top {
    display: flex;
    margin: 8px 0 20px;
    border: 1px solid rgba(20, 178, 255, 0.42);
    background: linear-gradient(140deg, rgba(8, 22, 92, 0.9), rgba(10, 42, 120, 0.65));
    box-shadow: 0 18px 36px rgba(4, 12, 40, 0.4), 0 0 0 1px rgba(20, 178, 255, 0.22);
  }

  #webdesign .portfolio-cta-block--desktop {
    display: none;
  }
}

.portfolio-cta-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 420px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: min(var(--site-max), 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4.5vw, 68px) clamp(64px, 6vw, 96px);
}

.section {
  background: var(--panel);
  border-radius: 28px;
  padding: clamp(40px, 4.6vw, 60px) clamp(22px, 4.2vw, 60px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-intro {
  margin-top: -40px;
}

.section-header {
  max-width: 720px;
}

.service-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(5, 23, 114, 0.75);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 26px rgba(3, 12, 52, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  grid-column: span 2;
}

.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.service-card img {
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container {
  overflow: hidden;
  border-radius: 12px;
}

.image-container img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px var(--accent), 0 0 16px rgba(0, 153, 255, 0.35);
}

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

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.45);
}

.service-card:hover img {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px var(--accent), 0 0 16px rgba(0, 153, 255, 0.35);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(24px, 3vw, 38px);
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse .split-content {
  direction: ltr;
}

.split-media img {
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(2, 12, 50, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  max-height: clamp(340px, 32vw, 560px);
}

.split-media img:hover {
  transform: scale(1.028);
  box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(0, 153, 255, 0.35), 0 16px 32px rgba(2, 12, 50, 0.4);
}

.split-content p {
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.74;
}

.split-content {
  width: 100%;
  max-width: var(--reading-measure);
}

.split-content h2 {
  margin-bottom: 18px;
}

.split-content .eyebrow {
  margin-bottom: 10px;
}

.split-content ul.arrow-list {
  margin-bottom: 18px;
}

.split-content ul.arrow-list li {
  margin-bottom: 10px;
}

#corporate .split-media img {
  object-position: 50% 45%;
}

#webdesign .split-media img {
  object-position: 50% 36%;
}

#print .split-media img {
  object-position: 50% 42%;
}

#verpackung .split-media img {
  object-position: 50% 40%;
}

#bekleidung .split-media img {
  object-position: 50% 35%;
}

#about .split-media img {
  object-position: 50% 24%;
}

.stack-line {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.pull-quote {
  font-family: 'Source Serif 4', serif;
  font-size: 1.2rem;
  color: #fff;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin: 6px 0 18px;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  color: var(--muted);
}

.profile-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.profile-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 6px;
}

ul.arrow-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

ul.arrow-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

ul.arrow-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-weight: 700;
}

.contact {
  display: grid;
  gap: 32px;
}

.form-messages {
  position: relative;
  min-height: 64px;
}

.form-message {
  position: absolute;
  left: 0;
  right: 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(0, 153, 255, 0.18);
  border: 1px solid rgba(0, 153, 255, 0.6);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(0, 153, 255, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-message.error {
  background: rgba(255, 153, 0, 0.18);
  border-color: rgba(255, 153, 0, 0.7);
  box-shadow: 0 12px 26px rgba(255, 153, 0, 0.25);
}

.form-message.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

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

.form-loading {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.form-loading.show {
  display: inline-flex;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.form-note a {
  text-decoration: underline;
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

label {
  font-weight: 600;
}

input,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 23, 114, 0.55);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

.site-footer {
  text-align: center;
  padding: 40px 6vw 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.site-footer small {
  justify-self: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  width: 120px;
  height: auto;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  font-weight: 600;
}

.footer-links a {
  position: relative;
  padding-bottom: 4px;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.footer-links a:hover::after,
.footer-links a:focus::after {
  transform: scaleX(1);
  transform-origin: left;
}

.modal {
  border: none;
  padding: 0;
  border-radius: 18px;
  width: min(900px, 92vw);
  box-shadow: var(--shadow);
  background: #0a1d78;
  color: #fff;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.modal.open {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: block;
  max-height: 80vh;
  overflow: auto;
  z-index: 9998;
  animation: modalFlip 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal::backdrop {
  background: rgba(3, 10, 40, 0.85);
}

.modal[open] {
  animation: modalFlip 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal[open]::backdrop {
  animation: backdropFade 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes modalFlip {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(-12deg) translateY(12px);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) translateY(0);
  }
}

@keyframes backdropFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  padding: 28px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-body {
  margin-top: 16px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.modal-body p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: var(--muted);
}

.modal-body h3 {
  margin: 18px 0 8px;
}

.modal-body h4 {
  margin: 14px 0 6px;
}

.modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(5, 23, 114, 0.75);
  color: #fff;
  font-size: 0.85rem;
  padding: 14px 16px;
  border-radius: 14px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
  max-width: 320px;
  border: 1px solid rgba(0, 153, 255, 0.35);
  box-shadow: 0 12px 28px rgba(1, 10, 46, 0.4);
  backdrop-filter: blur(8px);
}

.cookie-banner.show {
  display: block;
  opacity: 1;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cookie-link {
  margin-top: 6px;
}

.cookie-text::before {
  content: "🍪";
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 1px;
}

.cookie-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-actions button {
  background-color: var(--accent);
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-actions button:hover {
  background-color: #007acc;
  transform: translateY(-1px);
}

#decline-cookies {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

#decline-cookies:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 96px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 153, 255, 0.4);
  background: rgba(5, 23, 114, 0.75);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(1, 10, 46, 0.35);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  z-index: 9998;
}

.to-top.show {
  display: flex;
  opacity: 1;
}

.to-top:hover {
  transform: translateY(-2px);
}

.to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .to-top {
    width: 42px;
    height: 42px;
  }
}

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

@media (max-width: 900px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-logo {
    justify-self: center;
    justify-content: center;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero-logo img {
    width: clamp(200px, 42vw, 300px);
  }

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

  .service-card {
    grid-column: auto;
  }

  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-content {
    max-width: 62ch;
  }

  .split-content p {
    line-height: 1.7;
  }
}

@media (max-width: 768px) {
  .hero-header {
    padding: 24px 6vw 56px;
  }

  .main-nav {
    justify-content: center;
    gap: 16px;
  }

  .top-bar {
    align-items: center;
  }

  .text-logo {
    height: 20px;
    margin: 0 auto;
  }

  .hero-logo {
    justify-self: center;
    justify-content: center;
  }

  .section {
    padding: 40px 20px;
  }

  .section.split .split-media {
    aspect-ratio: 4 / 3;
    max-height: clamp(260px, 74vw, 360px);
  }

  .section.split .split-media img {
    object-position: center;
  }

  .split-content h2 {
    margin-bottom: 14px;
  }

  .split-content p {
    margin-bottom: 13px;
    line-height: 1.68;
  }

  .split-content ul.arrow-list li {
    margin-bottom: 8px;
  }

  .service-card {
    padding: 16px;
  }

  .value-props {
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.85rem;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 899px) {
  .split {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section.split .split-media {
    aspect-ratio: 4 / 3;
    max-height: clamp(320px, 58vw, 440px);
  }

  .split-content {
    max-width: 62ch;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .section {
    padding: clamp(40px, 4vw, 52px) clamp(22px, 3.2vw, 42px);
  }

  .split {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(22px, 2.6vw, 32px);
    align-items: center;
  }

  .section.split .split-media {
    aspect-ratio: 4 / 3;
    max-height: clamp(360px, 42vw, 500px);
  }

  .section.split .split-media img {
    object-position: center;
  }

  .split-content {
    max-width: var(--reading-measure-tight);
  }

  .split-content p {
    font-size: 0.98rem;
  }
}

@media (min-width: 1200px) {
  .split-content {
    max-width: 52ch;
  }

  .section.split .split-media {
    max-height: clamp(380px, 34vw, 560px);
  }

  .split-content p {
    font-size: 1.01rem;
  }
}

@media (min-width: 1600px) {
  main {
    width: min(1540px, 100%);
  }

  .split {
    gap: 42px;
  }
}

@media (hover: none) {
  .split-media img:hover {
    transform: none;
    box-shadow: 0 16px 32px rgba(2, 12, 50, 0.4);
  }

  .service-card:hover img {
    transform: none;
    box-shadow: none;
  }
}
