:root {
  --ink: #151515;
  --muted: #68645d;
  --line: rgba(21, 21, 21, 0.12);
  --paper: #f6f1e8;
  --panel: #fffaf1;
  --sage: #6f806f;
  --gold: #c7a35a;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(19, 18, 15, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(0, 0, 0, 0.35) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

#ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  align-items: center;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 18px 46px rgba(21, 21, 21, 0.1);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand,
.nav,
.hero-actions,
.stats,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 0;
}

.nav {
  justify-content: center;
  gap: 6px;
  color: rgba(21, 21, 21, 0.72);
  font-size: 14px;
}

.nav a,
.header-cta {
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
}

.nav a:hover,
.header-cta:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav a:hover {
  background: rgba(21, 21, 21, 0.06);
}

.header-cta {
  justify-self: end;
  padding: 12px 20px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 132px 24px 76px;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(246, 241, 232, 0.96) 0%, rgba(246, 241, 232, 0.72) 42%, rgba(246, 241, 232, 0.22) 100%),
    linear-gradient(0deg, var(--paper) 0%, rgba(246, 241, 232, 0) 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 430px);
  align-items: center;
  gap: clamp(32px, 6vw, 78px);
  width: min(1180px, 100%);
  min-height: calc(92vh - 214px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: 650px;
  color: rgba(21, 21, 21, 0.74);
  font-size: clamp(18px, 2.2vw, 23px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(21, 21, 21, 0.15);
}

.btn.primary {
  color: var(--white);
  background: var(--ink);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.42);
}

.stats {
  flex-wrap: wrap;
  gap: 12px;
}

.stats div {
  min-width: 128px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.62);
  backdrop-filter: blur(14px);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 25px;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.profile-card {
  position: relative;
  align-self: end;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-card::before {
  content: "";
  position: absolute;
  right: -18px;
  bottom: 42px;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(199, 163, 90, 0.5);
  border-radius: 50%;
  background: rgba(199, 163, 90, 0.18);
  animation: float 5s ease-in-out infinite;
}

.portrait-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  aspect-ratio: 4 / 5;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  display: grid;
  gap: 4px;
  padding: 16px 6px 4px;
}

.profile-meta span {
  color: var(--sage);
  font-weight: 800;
}

.profile-meta strong {
  font-size: 20px;
  line-height: 1.1;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(28px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.documents p,
.contact-copy p {
  color: var(--muted);
  font-size: 19px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

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

.service-card,
.step,
.contact-card,
.documents {
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 18px 48px rgba(21, 21, 21, 0.08);
}

.service-card {
  position: relative;
  min-height: 280px;
  padding: 68px 24px 24px;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.service-card:hover {
  border-color: rgba(199, 163, 90, 0.65);
  transform: translateY(-8px);
}

.service-card p,
.step p {
  color: var(--muted);
}

.icon {
  position: absolute;
  top: 12px;
  right: 18px;
  color: rgba(199, 163, 90, 0.18);
  font-size: 74px;
  font-weight: 900;
  line-height: 0.9;
  pointer-events: none;
}

.icon::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: -14px;
  width: 42px;
  height: 2px;
  background: rgba(199, 163, 90, 0.5);
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(28px, 6vw, 70px);
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 1.16 / 1;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 18px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(111, 128, 111, 0.16);
}

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

.step {
  position: relative;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
}

.step span {
  display: block;
  margin-bottom: 48px;
  color: rgba(21, 21, 21, 0.14);
  font-size: 58px;
  font-weight: 900;
  line-height: 0.8;
}

.documents {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 24px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(230, 236, 226, 0.88)),
    var(--panel);
}

.document-links {
  display: grid;
  gap: 12px;
}

.document-links a,
.doc-button {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 17px;
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.document-links a:hover,
.doc-button:hover {
  border-color: rgba(199, 163, 90, 0.65);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
}

.document-links span,
.doc-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 38px;
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.contacts {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 30px;
}

.contact-card > a {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  line-height: 1.05;
  word-break: break-word;
  transition: color 0.25s ease;
}

.contact-card > a:hover {
  color: var(--sage);
}

.contact-card > a span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-main {
  font-size: clamp(28px, 4vw, 38px);
}

.contact-line {
  font-size: clamp(18px, 2.2vw, 24px);
  overflow-wrap: anywhere;
}

.requisites {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
}

.requisites p {
  margin: 0;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.site-header[data-animate],
.site-header[data-animate].is-visible {
  opacity: 1;
  transform: translateX(-50%);
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: min(720px, calc(100% - 28px));
  }

  .nav {
    display: none;
  }

  .hero-content,
  .intro,
  .split,
  .contacts,
  .documents {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 430px;
  }

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

  .document-links {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 10px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-cta {
    padding: 10px 14px;
  }

  .hero {
    min-height: auto;
    padding: 112px 16px 52px;
  }

  .hero-content {
    min-height: 0;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(246, 241, 232, 0.98), rgba(246, 241, 232, 0.64)),
      linear-gradient(0deg, var(--paper), rgba(246, 241, 232, 0) 42%);
  }

  .hero-actions,
  .stats {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .stats div {
    width: 100%;
  }

  .section {
    width: calc(100% - 28px);
    padding: 58px 0;
  }

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

  .service-card,
  .step {
    min-height: auto;
  }

  .documents {
    padding: 24px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 28px);
  }
}
