:root {
  --bg: #07090e;
  --bg-2: #0d121b;
  --navy: #162033;
  --line: rgba(212, 175, 55, 0.22);
  --gold: #d4af37;
  --gold-2: #f0d78c;
  --cream: #f4ead7;
  --muted: #9aa4b8;
  --telegram: #2aabee;
  --radius: 22px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: Manrope, system-ui, sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

p, li {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  pointer-events: none;
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.28;
}

.glow-a {
  top: -12vw;
  right: -8vw;
  background: #1c3a6e;
}

.glow-b {
  bottom: 10vh;
  left: -12vw;
  background: #3b2d12;
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw;
  background: rgba(7, 9, 14, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.88rem;
}

.nav-links a:not(.nav-cta) {
  color: var(--muted);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--cream);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-cta {
  padding: 10px 18px;
  background: var(--telegram);
  color: #fff;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--cream);
}

.hero {
  width: min(var(--max), 100%);
  margin: 0 auto;
  min-height: calc(100svh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
  padding: 48px clamp(22px, 6vw, 72px) 72px;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  margin-bottom: 22px;
}

h1 em {
  font-style: italic;
  color: var(--gold-2);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 18px;
  max-width: 14ch;
}

.lead,
.about-copy > p,
.section-head p,
.cta-box p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-copy,
.about-copy,
.office-copy,
.section-head {
  width: 100%;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 40px;
}

.btn {
  padding: 14px 22px;
  border: 1px solid transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1406;
}

.btn-gold:hover,
.nav-cta:hover,
.float-tg:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.78rem;
}

.portrait-frame {
  position: relative;
}

.portrait-frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.portrait-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 14px 18px;
  background: rgba(7, 9, 14, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.portrait-badge span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.portrait-badge b {
  color: var(--gold);
}

.strip {
  border-block: 1px solid var(--line);
  padding: 18px 6vw;
  overflow: hidden;
}

.strip p {
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(8%);
  }
  to {
    transform: translateX(-60%);
  }
}

.about,
.channel,
.office,
.gallery,
.cta {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 96px clamp(22px, 6vw, 72px);
}

.about,
.office {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.about-photo img,
.office-frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.office-frame img {
  aspect-ratio: 5 / 4;
  object-position: 50% 40%;
}

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

.facts li {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.facts span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hero-copy,
.about-copy,
.office-copy,
.hero-visual,
.about-photo,
.office-frame {
  min-width: 0;
}

.card {
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.7), rgba(13, 18, 27, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 18px;
  min-height: 240px;
}

.card:hover {
  border-color: var(--gold);
}

.card-num {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.55rem;
  margin: 18px 0 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  list-style: none;
  margin: 28px 0 36px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
}

.steps strong {
  display: block;
}

.steps span {
  color: var(--muted);
  font-size: 0.92rem;
}

.office-frame figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: 280px 280px;
  gap: 16px;
}

.gallery-grid figure:first-child {
  grid-row: 1 / span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.cta-box {
  text-align: center;
  padding: 72px 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.16), transparent 55%),
    linear-gradient(180deg, #121826, #0b0f16);
}

.cta-box p,
.cta-box h2 {
  margin-left: auto;
  margin-right: auto;
}

.cta-box a:not(.btn) {
  color: var(--gold-2);
  border-bottom: 1px solid var(--gold);
}

.cta-box .btn {
  margin-top: 28px;
}

.footer {
  width: min(var(--max), 100%);
  margin: 0 auto 40px;
  padding: 28px clamp(22px, 6vw, 72px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.footer span,
.disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer > a {
  color: var(--telegram);
}

.float-tg {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--telegram);
  color: #fff;
  box-shadow: 0 12px 30px rgba(42, 171, 238, 0.35);
}

.float-tg svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 980px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 6vw 24px;
    background: #0b1018;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .about,
  .office,
  .cards,
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-rows: none;
  }

  .gallery-grid figure:first-child {
    grid-row: auto;
  }

  .gallery-grid img {
    height: 260px;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero,
  .about,
  .channel,
  .office,
  .gallery,
  .cta {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2,
  .lead,
  .about-copy > p,
  .section-head p,
  .cta-box p {
    max-width: none;
  }
}
