:root {
  --ink: #20252b;
  --muted: #727b88;
  --line: #e9ecef;
  --paper: #fcfcfb;
  --soft: #f2f5f5;
  --accent: #12ada6;
  --accent-dark: #087e7a;
  --accent-pale: #d7f2ef;
  --shadow: 0 14px 30px rgba(29, 38, 45, 0.1);
}

* {
  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", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-shell,
.site-header {
  width: min(100% - 112px, 1440px);
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  gap: 32px;
}

.brand {
  justify-self: start;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand span,
.projects h2 span,
.footer-dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent-dark);
}

.contact-icon {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-icon:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.contact-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.85fr);
  align-items: start;
  min-height: min(730px, calc(100vh - 92px));
  padding-top: 44px;
  padding-bottom: 76px;
  gap: 70px;
}

.hero-copy {
  padding-left: clamp(0px, 4vw, 58px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  letter-spacing: -0.04em;
}

.eyebrow span {
  display: inline-block;
  margin-left: 4px;
  transform: rotate(-8deg);
}

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

h1,
h2 {
  letter-spacing: -0.085em;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 4.8vw, 5rem);
  font-weight: 800;
  line-height: 0.91;
}

h1 span {
  color: var(--accent);
}

.hero-label {
  margin: -8px 0 20px;
  color: var(--accent-dark);
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 600px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  background: var(--accent-dark);
}

.button-light {
  background: var(--soft);
  color: var(--ink);
}

.button-large {
  min-height: 60px;
  padding: 0 25px;
  font-size: 0.95rem;
}

.back-to-top {
  position: fixed;
  z-index: 20;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 32px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.back-to-top span {
  margin-top: -3px;
  font-size: 1.45rem;
  line-height: 1;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 580px);
  aspect-ratio: 1;
  margin: 34px auto 0;
}

.art-orbit,
.art-core {
  position: absolute;
  border-radius: 50%;
}

.art-orbit-one {
  inset: 6%;
  border: 1.5px solid rgba(18, 173, 166, 0.42);
  animation: float 8s ease-in-out infinite;
}

.art-orbit-two {
  inset: 16%;
  border: 20px solid rgba(215, 242, 239, 0.75);
}

.art-core {
  inset: 23%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e9eeec;
  box-shadow: inset 22px -24px 50px rgba(0, 78, 77, 0.2), 0 22px 60px rgba(18, 173, 166, 0.2);
}

.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
  filter: grayscale(100%) contrast(1.04);
}

.art-core::before,
.art-core::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.art-core::before {
  width: 66%;
  height: 66%;
  top: -18%;
  right: -14%;
}

.art-core::after {
  width: 35%;
  height: 35%;
  bottom: 9%;
  left: 8%;
  background: rgba(0, 75, 73, 0.13);
}

.art-core i {
  position: absolute;
  z-index: 2;
  right: 25%;
  bottom: 22%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.intro,
.projects,
.process,
.contact {
  padding-top: 130px;
  padding-bottom: 130px;
}

.intro {
  border-top: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 80px;
  align-items: end;
}

h2 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 6.1rem);
  font-weight: 800;
  line-height: 0.94;
}

h2 em {
  color: var(--accent);
  font-style: normal;
}

.intro-grid p,
.section-note,
.process-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.03em;
}

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

.section-heading h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.section-note {
  max-width: 280px;
  margin-bottom: 5px;
}

.project-placeholder {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 170px;
  padding: 30px 34px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: background 180ms ease, padding 180ms ease;
}

.project-placeholder:hover {
  padding-left: 42px;
  background: var(--accent-pale);
}

.placeholder-index,
.process-grid article > span {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.placeholder-title {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.placeholder-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.placeholder-arrow {
  font-size: 1.8rem;
  transition: transform 180ms ease;
}

.project-placeholder:hover .placeholder-arrow {
  transform: translate(4px, -4px);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 44px;
}

.service-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 20px;
  padding: 25px 0 28px;
  border-top: 1px solid var(--ink);
}

.service-list article > span {
  grid-row: span 2;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.service-list h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  letter-spacing: -0.05em;
}

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.process {
  border-top: 1px solid var(--line);
}

.process > h2 {
  margin-bottom: 72px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.process-grid article {
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.process-grid h3 {
  margin: 43px 0 15px;
  font-size: 1.3rem;
  letter-spacing: -0.05em;
}

.process-grid p {
  max-width: 280px;
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.quick-contact {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-contact a {
  color: var(--accent-dark);
  font-weight: 700;
}

.contact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  background: var(--accent-pale);
  border-radius: 18px;
  padding-left: clamp(30px, 6vw, 88px);
  padding-right: clamp(30px, 6vw, 88px);
}

.contact h2 {
  font-size: clamp(2.8rem, 5.7vw, 5.8rem);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 32px 60px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 34px;
  padding-bottom: 34px;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-intro .brand {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--ink);
}

.footer-intro p {
  max-width: 250px;
  margin: 0;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: end;
  gap: 10px 24px;
  line-height: 1.5;
}

.footer-links a,
.footer-bottom a {
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 24px;
}

.legal-home-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.legal-home-link:hover {
  color: var(--accent-dark);
}

.legal-main {
  padding-top: 80px;
  padding-bottom: 120px;
}

.legal-heading {
  max-width: 980px;
  margin-bottom: 80px;
}

.legal-heading .section-kicker {
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-heading h1 {
  max-width: 1000px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
}

.legal-heading h1 span {
  color: var(--accent);
}

.legal-intro {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.55;
}

.legal-content {
  max-width: 850px;
}

.legal-content section {
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-content section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.legal-content h2 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.05;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  padding-left: 24px;
  margin: 0 0 18px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-requisites {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 9px 28px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.legal-requisites dt {
  font-weight: 700;
  color: var(--ink);
}

.legal-requisites dd {
  margin: 0;
}

@keyframes float {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 850px) {
  .section-shell,
  .site-header { width: min(100% - 40px, 680px); }

  .site-header { grid-template-columns: 1fr auto auto; min-height: 78px; }

  .menu-toggle {
    display: grid;
    place-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    z-index: 10;
    top: 70px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(252, 252, 251, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-copy { padding-left: 0; }
  .hero-art { width: min(100%, 460px); margin-top: 20px; }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-note { max-width: 400px; }
  .process-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-grid p { max-width: 420px; }
  .contact { align-items: start; flex-direction: column; }
  .contact-actions { align-items: flex-start; }
  .service-list { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 520px) {
  .section-shell,
  .site-header { width: min(100% - 32px, 480px); }
  h1 { font-size: clamp(2.9rem, 13vw, 4.2rem); }
  .hero { padding-top: 45px; padding-bottom: 55px; }
  .intro, .projects, .process, .contact { padding-top: 82px; padding-bottom: 82px; }
  .project-placeholder { grid-template-columns: 35px 1fr auto; gap: 12px; padding: 24px 0; }
  .project-placeholder:hover { padding-left: 8px; }
  .placeholder-title { font-size: 1.15rem; }
  .placeholder-arrow { font-size: 1.4rem; }
  .contact { border-radius: 14px; }
  .contact .button { width: 100%; }
  .back-to-top { width: 44px; height: 44px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { justify-content: start; }
  .footer-bottom { grid-column: auto; flex-direction: column; gap: 8px; }
  .legal-header { min-height: 78px; }
  .legal-main { padding-top: 48px; padding-bottom: 80px; }
  .legal-heading { margin-bottom: 56px; }
  .legal-content p,
  .legal-content li { font-size: 0.95rem; }
  .legal-requisites { grid-template-columns: 1fr; gap: 2px; }
  .legal-requisites dt { margin-top: 10px; }
}
