:root {
  --bg: #090908;
  --bg-soft: #15120f;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(244, 218, 157, 0.24);
  --line-soft: rgba(255, 255, 255, 0.13);
  --text: #f8f2e7;
  --muted: #bdb4a5;
  --accent: #d9b86c;
  --accent-strong: #f1d68c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --max: 1180px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 184, 108, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 24%, rgba(70, 112, 180, 0.14), transparent 24rem),
    linear-gradient(180deg, #090908 0%, var(--bg) 42%, #12100d 100%);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-wrap: break-word;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin: 18px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(9, 9, 8, 0.74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(9, 9, 8, 0.92);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: max-content;
}

.brand__name {
  font-weight: 800;
  line-height: 1.05;
}

.brand__tagline {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

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

.header-cta {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: rgba(241, 214, 140, 0.5);
  background: rgba(217, 184, 108, 0.1);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: end;
  min-height: 720px;
  width: 100%;
  max-width: none;
  padding: 160px max(20px, calc((100vw - var(--max)) / 2)) 64px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 30, 0.46) 0%, rgba(5, 12, 30, 0.24) 38%, rgba(5, 12, 30, 0.04) 66%, rgba(5, 12, 30, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 12, 30, 0.02), rgba(9, 9, 8, 0.52));
  pointer-events: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/hero/sergey-stage-hero-clean.png");
  background-position: center 58%;
  background-size: cover;
  transform: scale(1.02);
  filter: brightness(1.04) saturate(1.02);
}

.hero__content,
.hero__aside {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 740px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.44);
}

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

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

h1,
h2 {
  font-family: var(--serif);
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.8vw, 78px);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
  text-wrap: balance;
}

.hero__lead {
  max-width: 660px;
  color: #ded5c7;
  font-size: clamp(18px, 1.7vw, 22px);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.hero__badges span,
.media-list span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.hero__badges span {
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 700;
}

.hero__actions,
.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, #f0d487, #b98d3f);
  color: #17110a;
  box-shadow: 0 18px 52px rgba(217, 184, 108, 0.23);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-strong);
}

.hero__aside {
  display: grid;
  gap: 8px;
  justify-self: end;
  width: min(100%, 210px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 12, 20, 0.34);
  backdrop-filter: blur(10px);
  opacity: 0.82;
}

.hero__aside span {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  color: #eee4d6;
  font-size: 13px;
  font-weight: 700;
}

.hero__aside span:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.section__heading {
  display: block;
  max-width: 760px;
  margin-bottom: 36px;
}

.section__heading--center {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 0.95fr) minmax(260px, 0.74fr);
  gap: 32px;
  align-items: start;
}

.intro__heading {
  max-width: 360px;
}

.intro__heading h2 {
  font-size: clamp(32px, 3.6vw, 48px);
}

.intro__copy {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
}

.intro__copy p {
  margin-bottom: 16px;
}

.intro__portrait {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.intro__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(9, 9, 8, 0.34));
  pointer-events: none;
}

.intro__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 48% center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stats div,
.event-card,
.video-card,
.review-card,
.extra,
.contact-form {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stats div {
  padding: 18px;
}

.stats strong {
  display: block;
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-grid,
.reviews-grid,
.video-grid {
  display: grid;
  gap: 16px;
}

.card-grid--events {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-card {
  position: relative;
  min-height: 210px;
  padding: 22px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: var(--panel-strong);
}

.event-card span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.event-card--photo {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  background: #15120f;
}

.event-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 9, 8, 0.02) 0%, rgba(9, 9, 8, 0.24) 38%, rgba(9, 9, 8, 0.86) 100%),
    linear-gradient(90deg, rgba(9, 9, 8, 0.34), transparent 68%);
  pointer-events: none;
}

.event-card--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.event-card--photo:hover img {
  transform: scale(1.04);
}

.event-card--photo span,
.event-card--photo h3,
.event-card--photo p {
  position: relative;
  z-index: 1;
  margin-right: 24px;
  margin-left: 24px;
}

.event-card--photo span {
  margin-top: 24px;
  margin-bottom: 42px;
}

.event-card--photo p {
  margin-bottom: 24px;
  color: #ded5c7;
}

.event-card--photo h3 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
}

.event-card p,
.review-card p,
.contacts__content p,
.extra p {
  color: var(--muted);
}

.event-card p,
.review-card p,
.video-card h3,
.contact-form input,
.contact-form textarea {
  overflow-wrap: anywhere;
}

.event-card--wide {
  grid-column: span 2;
}

.video-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(180deg, rgba(217, 184, 108, 0.05), transparent 44%),
    #0c0b0a;
}

.video-grid {
  grid-template-columns: repeat(4, 1fr);
}

.video-card {
  position: relative;
  min-height: 250px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(241, 214, 140, 0.14), rgba(255, 255, 255, 0.04) 42%, rgba(0, 0, 0, 0.34)),
    var(--panel);
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: radial-gradient(circle at 68% 22%, rgba(241, 214, 140, 0.18), transparent 34%);
  pointer-events: none;
}

.video-card button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 94px;
  border: 1px solid rgba(241, 214, 140, 0.42);
  border-radius: 50%;
  background: rgba(10, 9, 8, 0.72);
  color: var(--accent-strong);
  cursor: pointer;
}

.play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
}

.video-card h3 {
  position: relative;
  z-index: 1;
  max-width: 210px;
}

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

.client-card {
  display: grid;
  min-height: 172px;
  grid-template-rows: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(12, 11, 10, 0.86);
  box-shadow: var(--shadow);
}

.client-card__mark {
  display: grid;
  width: 100%;
  min-height: 86px;
  place-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
}

.client-card__mark img {
  display: block;
  max-width: min(100%, 190px);
  max-height: 54px;
  object-fit: contain;
}

.client-card span {
  display: block;
  color: #eee4d6;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.client-card--text {
  align-content: center;
}

.client-card__wordmark {
  display: grid;
  min-height: 86px;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  background: rgba(217, 184, 108, 0.08);
}

.reviews-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card {
  padding: 24px;
}

.review-card p {
  min-height: 108px;
  font-size: 17px;
}

.review-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.media {
  padding-top: 62px;
  padding-bottom: 62px;
}

.media-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.media-list span {
  padding: 14px 18px;
  color: #eee4d6;
  font-weight: 700;
}

.extra {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(300px, 1fr);
  gap: 32px;
  align-items: center;
  padding: 34px;
}

.extra h2 {
  max-width: 520px;
  font-size: clamp(30px, 3.4vw, 44px);
}

.extra p {
  margin-bottom: 0;
  font-size: 18px;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: 56px;
  align-items: start;
}

.contacts__content {
  position: sticky;
  top: 128px;
  max-width: 620px;
}

.contacts__content h2 {
  margin-bottom: 22px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin: 32px 0 22px;
}

.contact-links a {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  transition: color 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--accent-strong);
}

.messengers a {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent-strong);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

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

.contact-form span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(241, 214, 140, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 800;
}

@media (min-width: 1200px) {
  .hero__media {
    background-position: center 18%;
  }
}

@media (min-width: 1600px) {
  .hero__media {
    background-position: center 12%;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .site-nav {
    gap: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 680px;
  }

  .hero__aside {
    display: none;
  }

  .section__heading,
  .intro,
  .contacts,
  .extra {
    grid-template-columns: 1fr;
  }

  .section__heading {
    max-width: 720px;
  }

  .intro__heading,
  .intro__copy {
    max-width: 720px;
  }

  .intro__portrait {
    max-width: 720px;
  }

  .intro__portrait img {
    aspect-ratio: 16 / 9;
    object-position: center;
  }

  .contacts__content {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 24px, var(--max));
    margin-top: 12px;
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(9, 9, 8, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    padding: 14px;
    border-bottom: 1px solid var(--line-soft);
  }

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

  .header-cta {
    display: none;
  }

  .section {
    width: min(100% - 28px, var(--max));
    padding: 64px 0;
  }

  .hero {
    min-height: 660px;
    padding: 132px 14px 48px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(5, 12, 30, 0.68), rgba(5, 12, 30, 0.34)),
      linear-gradient(180deg, rgba(5, 12, 30, 0.05), rgba(9, 9, 8, 0.72));
  }

  .hero__media {
    background-position: 66% center;
    filter: brightness(1.08) saturate(1.02);
  }

  h1 {
    max-width: 620px;
    font-size: clamp(38px, 11vw, 58px);
  }

  h2,
  .intro__heading h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  h3 {
    font-size: 20px;
  }

  .hero__badges,
  .hero__actions,
  .messengers {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section__heading {
    gap: 22px;
    margin-bottom: 28px;
  }

  .stats,
  .card-grid--events,
  .video-grid,
  .reviews-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .client-card {
    min-height: 150px;
    padding: 18px;
  }

  .client-card__mark,
  .client-card__wordmark {
    min-height: 74px;
  }

  .client-card__mark img {
    max-height: 46px;
  }

  .event-card,
  .video-card {
    min-height: auto;
  }

  .event-card--photo {
    min-height: 320px;
  }

  .intro__portrait img {
    aspect-ratio: 4 / 3;
  }

  .event-card--wide {
    grid-column: auto;
  }

  .video-card button {
    margin-bottom: 54px;
  }

  .review-card p {
    min-height: auto;
  }

  .extra,
  .contact-form {
    padding: 22px;
  }

  .contact-links a {
    font-size: 18px;
  }

  .site-footer {
    width: min(100% - 28px, var(--max));
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 620px;
    padding-top: 118px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__badges span {
    width: 100%;
  }

  .stats div,
  .event-card,
  .review-card,
  .client-card {
    padding: 18px;
  }

  .event-card--photo {
    padding: 0;
  }

  .event-card--photo span,
  .event-card--photo h3,
  .event-card--photo p {
    margin-right: 18px;
    margin-left: 18px;
  }

  .event-card--photo p {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
