:root {
  --black: #030509;
  --ink: #070a10;
  --panel: #0d111a;
  --panel-strong: #111724;
  --blue: #0c66ff;
  --blue-bright: #27a8ff;
  --silver: #d9dde6;
  --white: #ffffff;
  --muted: #9aa5b7;
  --line: rgba(217, 221, 230, 0.18);
  --line-strong: rgba(217, 221, 230, 0.32);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background:
    linear-gradient(180deg, #030509 0%, #070a10 38%, #030509 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(217, 221, 230, 0.1);
  background: rgba(3, 5, 9, 0.74);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(39, 168, 255, 0.22);
  background: rgba(3, 5, 9, 0.92);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max-width));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-width: 214px;
  height: 64px;
}

.brand-link img {
  width: 72px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(39, 168, 255, 0.16));
}

.brand-link span {
  color: var(--silver);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--silver));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.hero {
  position: relative;
  min-height: 92svh;
  padding: 118px 0 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 5, 9, 0.98) 0%, rgba(3, 5, 9, 0.9) 34%, rgba(3, 5, 9, 0.45) 70%, rgba(3, 5, 9, 0.86) 100%),
    linear-gradient(180deg, rgba(3, 5, 9, 0.12) 0%, rgba(3, 5, 9, 0.96) 100%),
    url("assets/hero-studio.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background:
    linear-gradient(180deg, rgba(3, 5, 9, 0), rgba(3, 5, 9, 0.95)),
    repeating-linear-gradient(
      90deg,
      rgba(217, 221, 230, 0.14) 0 1px,
      transparent 1px 72px
    );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: calc(92svh - 172px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 4.35rem;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 850;
}

.hero p {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  padding: 13px 18px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.1;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border: 1px solid rgba(39, 168, 255, 0.74);
  color: var(--white);
  background: linear-gradient(135deg, #0a45bd 0%, var(--blue) 48%, var(--blue-bright) 100%);
  box-shadow: 0 20px 45px rgba(12, 102, 255, 0.24);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  color: var(--silver);
  background: rgba(255, 255, 255, 0.045);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(39, 168, 255, 0.58);
  color: var(--white);
  background: rgba(39, 168, 255, 0.1);
}

.hero-brand {
  justify-self: end;
  width: min(100%, 480px);
  padding: 14px;
  border: 1px solid rgba(217, 221, 230, 0.18);
  border-radius: 8px;
  background: rgba(3, 5, 9, 0.62);
  box-shadow: var(--shadow);
}

.hero-brand img {
  width: 100%;
  border-radius: 6px;
}

.studio-strip {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid rgba(217, 221, 230, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(7, 10, 16, 0.78);
  box-shadow: var(--shadow);
}

.studio-strip span {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(217, 221, 230, 0.12);
  padding: 12px 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
}

.studio-strip span:last-child {
  border-right: 0;
}

.section {
  padding: 96px 0;
}

.section-grid,
.section-header,
.service-grid,
.project-grid,
.why-layout,
.partnership-panel,
.contact-grid,
.footer-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  gap: 68px;
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 830;
}

.section-body p,
.section-header p,
.partnership-copy p,
.contact-grid p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-body p {
  font-size: 1.22rem;
  color: rgba(255, 255, 255, 0.8);
}

.about-section {
  border-top: 1px solid rgba(217, 221, 230, 0.1);
  background:
    linear-gradient(180deg, rgba(17, 23, 36, 0.74), rgba(7, 10, 16, 0.34)),
    linear-gradient(90deg, rgba(12, 102, 255, 0.12), transparent 42%);
}

.services-section {
  background: var(--black);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.split-header p {
  max-width: 440px;
}

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

.service-card {
  position: relative;
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(17, 23, 36, 0.92), rgba(7, 10, 16, 0.74)),
    linear-gradient(90deg, rgba(12, 102, 255, 0.16), transparent);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-bright), rgba(217, 221, 230, 0.36));
}

.service-number {
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 42px 0 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

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

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.service-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(39, 168, 255, 0.42);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--blue-bright);
  background: rgba(12, 102, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.service-links a:hover,
.service-links a:focus-visible {
  border-color: rgba(39, 168, 255, 0.76);
  color: var(--white);
  background: rgba(12, 102, 255, 0.18);
}

.projects-section {
  background:
    linear-gradient(180deg, #070a10 0%, #0b111c 48%, #030509 100%);
}

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

.project-card {
  position: relative;
  display: block;
  min-height: 488px;
  border: 1px solid rgba(217, 221, 230, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: #070a10;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 488px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 360ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 9, 0.08) 0%, rgba(3, 5, 9, 0.25) 42%, rgba(3, 5, 9, 0.94) 100%),
    linear-gradient(90deg, rgba(12, 102, 255, 0.2), transparent 58%);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-link:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 4px;
}

.project-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 24px;
}

.project-content h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.03;
  font-weight: 700;
}

.project-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.project-action {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue-bright);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.why-section {
  background:
    linear-gradient(90deg, rgba(12, 102, 255, 0.15), transparent 48%),
    linear-gradient(180deg, #030509, #0d111a);
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: start;
  padding: 46px;
  border: 1px solid rgba(217, 221, 230, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.why-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  position: relative;
  padding: 16px 16px 16px 46px;
  border-bottom: 1px solid rgba(217, 221, 230, 0.12);
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.03rem;
}

.why-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--blue-bright);
  background: var(--blue);
  box-shadow: 0 0 16px rgba(39, 168, 255, 0.42);
}

.partnerships-section {
  background:
    linear-gradient(180deg, rgba(3, 5, 9, 0.9), rgba(7, 10, 16, 0.96)),
    repeating-linear-gradient(90deg, rgba(217, 221, 230, 0.08) 0 1px, transparent 1px 88px);
}

.partnership-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: 42px;
  border: 1px solid rgba(217, 221, 230, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 23, 36, 0.94), rgba(3, 5, 9, 0.84)),
    linear-gradient(90deg, rgba(12, 102, 255, 0.12), transparent);
  box-shadow: var(--shadow);
}

.partnership-copy p {
  margin-top: 14px;
}

.consultation-price {
  width: fit-content;
  margin-top: 22px;
  border: 1px solid rgba(39, 168, 255, 0.46);
  border-radius: 8px;
  padding: 13px 16px;
  background: rgba(12, 102, 255, 0.11);
  box-shadow: 0 18px 44px rgba(12, 102, 255, 0.14);
}

.consultation-price span,
.consultation-price strong {
  display: block;
}

.consultation-price span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.consultation-price strong {
  margin-top: 4px;
  color: var(--white);
  font-size: 1.54rem;
  line-height: 1;
}

.consultation-price.compact {
  margin-top: 18px;
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-list li {
  border: 1px solid rgba(217, 221, 230, 0.2);
  border-radius: 6px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.86rem;
  font-weight: 750;
}

.contact-section {
  background: #030509;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}

.contact-grid > div {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(217, 221, 230, 0.14);
  border-radius: 8px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.035);
}

.contact-grid h2 {
  margin-bottom: 14px;
}

.contact-email {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-panel .button {
  width: fit-content;
  margin-top: 24px;
}

.site-footer {
  border-top: 1px solid rgba(217, 221, 230, 0.14);
  background: #020308;
}

.legal-page {
  min-height: 100svh;
}

.legal-main {
  padding: 150px 0 84px;
}

.legal-content {
  width: min(calc(100% - 40px), 860px);
  margin: 0 auto;
  border: 1px solid rgba(217, 221, 230, 0.18);
  border-radius: 8px;
  padding: 44px;
  background:
    linear-gradient(160deg, rgba(17, 23, 36, 0.9), rgba(3, 5, 9, 0.88)),
    linear-gradient(90deg, rgba(12, 102, 255, 0.12), transparent);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  margin: 0 0 22px;
  font-size: 3rem;
  line-height: 1.05;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 1.2rem;
}

.legal-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.legal-content a {
  color: var(--white);
  text-decoration: underline;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  padding: 44px 0;
}

.footer-inner h2 {
  margin: 0 0 10px;
  font-size: 1.24rem;
}

.footer-inner p {
  margin: 4px 0;
  color: var(--muted);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--white);
}

@media (max-width: 1060px) {
  .site-nav {
    gap: 14px;
    font-size: 0.72rem;
  }

  .legal-nav {
    position: static;
    display: none;
  }

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

  .hero-brand {
    justify-self: start;
    max-width: 420px;
  }

  .studio-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .partnership-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(calc(100% - 28px), var(--max-width));
    height: 72px;
  }

  .brand-link,
  .brand-link img {
    width: auto;
    height: 52px;
  }

  .brand-link {
    min-width: auto;
  }

  .brand-link img {
    width: 62px;
  }

  .brand-link span {
    max-width: 142px;
    font-size: 0.76rem;
    white-space: normal;
  }

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

  .site-nav {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(217, 221, 230, 0.22);
    border-radius: 8px;
    background: #030509;
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 6px;
    border-bottom: 1px solid rgba(217, 221, 230, 0.1);
    font-size: 0.86rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

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

  .hero {
    min-height: auto;
    padding-top: 102px;
  }

  .hero-grid {
    width: min(calc(100% - 28px), var(--max-width));
    min-height: auto;
    gap: 34px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero p,
  .section-body p {
    font-size: 1.03rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-brand {
    max-width: 100%;
  }

  .studio-strip {
    width: min(calc(100% - 28px), var(--max-width));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
  }

  .section {
    padding: 70px 0;
  }

  .section-grid,
  .why-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .section-header,
  .service-grid,
  .project-grid,
  .why-layout,
  .partnership-panel,
  .contact-grid,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .section-grid {
    gap: 22px;
  }

  .section h2 {
    font-size: 2.36rem;
  }

  .section-header {
    display: block;
  }

  .section-header p {
    margin-top: 12px;
  }

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

  .service-card {
    min-height: 190px;
  }

  .project-card,
  .project-card img {
    min-height: 420px;
  }

  .why-layout,
  .partnership-panel,
  .contact-grid > div {
    padding: 26px;
  }

  .partner-list li {
    width: 100%;
  }

  .footer-inner {
    display: grid;
    align-items: start;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }

  .legal-main {
    padding: 112px 0 58px;
  }

  .legal-content {
    width: min(calc(100% - 28px), 860px);
    padding: 28px;
  }

  .legal-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.54rem;
  }

  .section h2 {
    font-size: 2.02rem;
  }

  .project-content h3 {
    font-size: 1.72rem;
  }

  .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
