:root {
  --navy: #1a2e5f;
  --navy-soft: #243a73;
  --bg: #f2f2f7;
  --bg-white: #ffffff;
  --text: #1a2e5f;
  --text-muted: #5a6a8a;
  --hero-from: #7eb8e8;
  --hero-to: #b9d9f2;
  --form: #e8a090;
  --form-deep: #df907e;
  --accent-pink: #e85a8c;
  --line: rgba(26, 46, 95, 0.18);
  --radius-pill: 50px;
  --header-h: 72px;
  --max: 1280px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Top banner */
.top-banner {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.top-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 40px;
  padding: 8px 0;
  text-align: center;
}

.top-banner a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}

.top-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 17px;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-banner a:hover .top-banner__cta {
  background: var(--navy-soft);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(126, 184, 232, 0.92);
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(242, 242, 247, 0.94);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo__mark {
  height: 34px;
  width: 34px;
}

.logo__word {
  height: 28px;
  width: auto;
}

.logo__text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--navy);
}

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

.nav__link,
.nav__btn {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 12px;
  transition: background 0.2s ease;
}

.nav__link:hover,
.nav__btn:hover,
.nav__item:hover > .nav__btn {
  background: rgba(255, 255, 255, 0.45);
}

.nav__item {
  position: relative;
}

.nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__btn svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}

.nav__item:hover .nav__btn svg,
.nav__item.is-open .nav__btn svg {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 720px;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(26, 46, 95, 0.18);
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
}

.nav__item:hover .mega,
.nav__item.is-open .mega {
  display: grid;
}

.mega a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.mega a:hover {
  background: var(--bg);
}

.mega__title {
  font-weight: 800;
  margin-bottom: 2px;
}

.mega__desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border: 1px solid var(--navy);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--navy);
  color: #fff;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 55%, var(--bg) 100%);
  overflow: hidden;
  padding: 56px 0 40px;
}

.hero__glow {
  position: absolute;
  inset: auto -10% -20% auto;
  width: 55%;
  height: 80%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(26, 46, 95, 0.12), transparent 50%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 14ch;
}

.hero p {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--navy-soft);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--navy);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.45);
}

.hero__visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero__orb {
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), transparent 45%),
    linear-gradient(145deg, #9fd0f5, #6aa8df 45%, #1a2e5f);
  box-shadow: 0 30px 80px rgba(26, 46, 95, 0.25);
  animation: morph 10s ease-in-out infinite;
  display: grid;
  place-items: center;
}

.hero__orb img {
  width: 46%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  animation: float 5s ease-in-out infinite;
}

@keyframes morph {
  0%,
  100% {
    border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  }
  50% {
    border-radius: 55% 45% 40% 60% / 50% 55% 45% 50%;
  }
}

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

/* Brands marquee */
.brands {
  background: #fff;
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
}

.brands__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 35s linear infinite;
  align-items: center;
}

.brands__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 15px;
  color: rgba(26, 46, 95, 0.55);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brands__item img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(1);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Showreel */
.showreel {
  padding: 48px 0 24px;
}

.showreel__frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: #0d1528;
  box-shadow: 0 24px 60px rgba(26, 46, 95, 0.18);
}

.showreel__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.showreel__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 21, 40, 0.15), rgba(13, 21, 40, 0.55)),
    radial-gradient(circle at 70% 40%, rgba(126, 184, 232, 0.35), transparent 45%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.showreel__overlay h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  max-width: 16ch;
  letter-spacing: -0.03em;
}

/* Projects */
.projects {
  padding: 64px 0 40px;
}

.projects h2 {
  margin: 0 0 28px;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: 45px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--navy);
  color: #fff;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 24px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease;
}

.case-card:hover {
  z-index: 2;
}

.case-card:hover .case-card__img {
  transform: scale(1.05);
}

.case-card__label {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 10px;
}

.case-card__title {
  position: relative;
  z-index: 2;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.case-card__tags {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
}

.case-card__tags span {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.case-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.45s ease;
}

.case-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.35) 0%, rgba(10, 18, 40, 0.72) 100%);
}

.case-card--more {
  background: var(--navy);
  align-items: flex-start;
  justify-content: space-between;
}

.case-card--more .case-card__title {
  font-size: clamp(32px, 3vw, 48px);
  max-width: none;
}

.case-card--more .arrow {
  font-size: 28px;
  margin-top: auto;
}

.case-card.is-hidden {
  display: none;
}

/* Materials */
.materials {
  padding: 72px 0;
}

.materials__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.materials h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
}

.materials__link {
  font-weight: 700;
  white-space: nowrap;
}

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

.materials__list,
.materials__articles {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
}

.materials__list h3,
.materials__articles h3 {
  margin: 0 0 20px;
  font-size: 22px;
}

.material-item,
.article-item {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  transition: color 0.2s ease;
}

.material-item:first-of-type,
.article-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.material-item:hover,
.article-item:hover {
  color: var(--navy-soft);
}

.material-item__meta,
.article-item__meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.material-item__title,
.article-item__title {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.article-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Contact / Form */
.contact {
  background: var(--form);
  padding: 72px 0 64px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.contact h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.contact__lead {
  margin: 0 0 28px;
  font-size: 18px;
  max-width: 34ch;
  font-weight: 500;
}

.contact__notes {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  font-weight: 600;
}

.contact__channels {
  display: grid;
  gap: 14px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.channel__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.channel__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-form {
  display: grid;
  gap: 14px;
}

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

.field {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: #fff;
  outline: none;
}

.field:focus {
  box-shadow: 0 0 0 3px rgba(26, 46, 95, 0.2);
}

textarea.field {
  min-height: 110px;
  padding: 16px 20px;
  border-radius: 24px;
  resize: vertical;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-pill {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
}

.service-pill.is-active {
  background: #fff;
  border-color: var(--navy);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  width: fit-content;
  transition: background 0.2s ease, transform 0.2s ease;
}

.form-submit:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
}

.form-note {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(26, 46, 95, 0.75);
}

.form-success {
  display: none;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.form-success.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 40px 0 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 36px;
  font-weight: 600;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.footer-brand__word {
  font-size: clamp(64px, 14vw, 180px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-transform: lowercase;
}

.footer-brand__logo {
  height: clamp(48px, 8vw, 96px);
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-docs a:hover {
  color: #fff;
}

.footer-legal {
  max-width: 720px;
}

/* Cookie */
.cookie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(26, 46, 95, 0.22);
}

.cookie p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #334;
  line-height: 1.45;
}

.cookie__actions {
  display: flex;
  gap: 8px;
}

.cookie__accept,
.cookie__decline {
  flex: 1;
  min-height: 42px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cookie__accept {
  background: var(--accent-pink);
  color: #fff;
}

.cookie__decline {
  background: var(--bg);
  border: 1px solid var(--line);
}

.cookie.is-hidden {
  display: none;
}

/* Legal pages */
.page-hero {
  background: linear-gradient(180deg, var(--hero-from), var(--bg));
  padding: 48px 0 24px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.legal {
  padding: 24px 0 72px;
}

.legal-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
}

.legal-card h2 {
  margin: 32px 0 12px;
  font-size: 22px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #334;
  font-size: 15px;
}

.legal-card ul {
  padding-left: 18px;
}

.legal-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}

.legal-card th,
.legal-card td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-card th {
  background: var(--bg);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.contact-tile {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
}

.contact-tile h3 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-tile a,
.contact-tile p {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(26, 46, 95, 0.35);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 100%);
  height: 100%;
  background: #fff;
  padding: 24px;
  overflow: auto;
}

.mobile-nav__close {
  margin-left: auto;
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 16px;
}

.mobile-nav a,
.mobile-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 18px;
}

@media (max-width: 1100px) {
  .hero__grid,
  .materials__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

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

  .mega {
    min-width: 560px;
  }

  .hero__visual {
    min-height: 280px;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

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

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

  .site-header {
    background: rgba(242, 242, 247, 0.95);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

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

  .case-card {
    min-height: 360px;
  }

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

  .showreel__frame {
    aspect-ratio: 4 / 5;
  }
}
