:root {
  --bg: #0c1118;
  --bg-elevated: #141b26;
  --text: #e8edf4;
  --muted: #9aa8bc;
  --accent: #c9a227;
  --accent-dim: rgba(201, 162, 39, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: 'Manrope', system-ui, sans-serif;
  --slot-pattern: repeating-linear-gradient(
    -12deg,
    rgba(255, 255, 255, 0.03) 0 2px,
    transparent 2px 14px
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-glow {
  0%,
  100% {
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.45),
      0 0 0 0 rgba(201, 162, 39, 0);
  }
  50% {
    box-shadow:
      0 28px 64px rgba(0, 0, 0, 0.5),
      0 0 48px rgba(201, 162, 39, 0.06);
  }
}

.anim-fade-up {
  opacity: 0;
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--anim-delay, 0s);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 17, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.header.is-scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo--muted {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent) !important;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.nav__cta:hover {
  text-decoration: none;
  background: rgba(201, 162, 39, 0.25);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.35rem;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(80, 120, 200, 0.08), transparent 50%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
}

.lead {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #1a1408;
}

.btn--primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--muted);
  text-decoration: none;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.photo-slot {
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: var(--bg-elevated) var(--slot-pattern);
  min-height: 220px;
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot--hero {
  min-height: 340px;
}

.photo-slot--square {
  min-height: 180px;
  aspect-ratio: 4 / 3;
}

.photo-slot--portrait {
  aspect-ratio: 3 / 4;
  min-height: 200px;
}

.hero__photo {
  animation: hero-glow 5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.team-slider {
  --team-slide-spacing: 16px;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  outline: none;
}

.team-slider:focus-visible {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent);
  border-radius: var(--radius);
}

.team-slider__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-slider__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: manipulation;
}

/* Ленту и transform управляет Embla Carousel; зазор между слайдами — по гайду Embla */
.team-slider__track {
  display: flex;
  margin-left: calc(var(--team-slide-spacing) * -1);
}

/* 1 слайд — мобилка; 2 — планшет; 4 — ПК */
.team-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding-left: var(--team-slide-spacing);
}

@media (min-width: 768px) {
  .team-slider__slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .team-slider__slide {
    flex: 0 0 25%;
  }
}

.team-slider__slide .photo-slot {
  min-height: 260px;
}

.team-slider__slide .photo-slot.photo-slot--has-img {
  position: relative;
  padding: 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-elevated);
  overflow: hidden;
}

.team-slider__slide .photo-slot.photo-slot--has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 1024px) {
  .team-slider__slide .photo-slot {
    min-height: 220px;
  }
}

.team-slider__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: var(--accent-dim);
  color: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    border-color 0.2s,
    opacity 0.2s,
    transform 0.2s;
}

.team-slider__btn:hover:not(:disabled) {
  background: rgba(201, 162, 39, 0.25);
  border-color: rgba(201, 162, 39, 0.65);
}

.team-slider__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.team-slider__chev {
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
}

.team-slider__chev--next {
  transform: rotate(-135deg);
  margin-left: 0;
  margin-right: 4px;
}

.team-slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.team-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}

.team-slider__dot:hover {
  background: rgba(255, 255, 255, 0.35);
}

.team-slider__dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

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

.team-slider__slide .photo-slot:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* Появление секций при скролле */
[data-reveal] > .container > .section__title,
[data-reveal] > .container > .section__subtitle {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible > .container > .section__title,
[data-reveal].is-visible > .container > .section__subtitle {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-reveal].is-visible > .container > .section__title {
  transition-delay: 0.04s;
}

[data-reveal].is-visible > .container > .section__subtitle {
  transition-delay: 0.1s;
}

[data-reveal] .card {
  opacity: 0;
  transform: translateY(20px);
}

[data-reveal].is-visible .card {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

[data-reveal].is-visible .card:nth-child(1) {
  transition-delay: 0.06s;
}

[data-reveal].is-visible .card:nth-child(2) {
  transition-delay: 0.14s;
}

[data-reveal].is-visible .card:nth-child(3) {
  transition-delay: 0.22s;
}

[data-reveal] .split__text,
[data-reveal] .split__media {
  opacity: 0;
  transform: translateY(20px);
}

[data-reveal].is-visible .split__text,
[data-reveal].is-visible .split__media {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-reveal].is-visible .split__text {
  transition-delay: 0.06s;
}

[data-reveal].is-visible .split__media {
  transition-delay: 0.14s;
}

[data-reveal] .team-slider {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible .team-slider {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  transition-delay: 0.08s;
}

[data-reveal] .contact > div:first-child,
[data-reveal] .contact .form {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible .contact > div:first-child,
[data-reveal].is-visible .contact .form {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

[data-reveal].is-visible .contact > div:first-child {
  transition-delay: 0.05s;
}

[data-reveal].is-visible .contact .form {
  transition-delay: 0.12s;
}

.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  font-weight: 800;
}

.section__subtitle {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 40rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.55s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.section:not(.section--alt) .card {
  background: rgba(20, 27, 38, 0.6);
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split__text p {
  color: var(--muted);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.checks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
}

.section--contact {
  background: linear-gradient(180deg, var(--bg) 0%, #0a0e14 100%);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (max-width: 800px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.contact__info {
  color: var(--muted);
}

.contact__info p {
  margin: 0.5rem 0;
}

.form {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(201, 162, 39, 0.45);
  outline-offset: 1px;
}

.form__status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
}

.form__status--ok {
  color: #7dcea0;
}

.form__status--err {
  color: #f1948a;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__inner p {
  margin: 0;
}

.footer__brand .logo {
  display: inline-block;
}

.footer__brand p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
}

.footer__legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer__legal a[aria-current='page'] {
  color: var(--accent);
  font-weight: 600;
}

/* Юридические страницы */
.legal-main {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 5rem);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.legal-nav a {
  color: var(--muted);
}

.legal-nav a[aria-current='page'] {
  color: var(--accent);
  font-weight: 700;
}

.legal-article {
  max-width: 46rem;
}

.legal-article h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal-article h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal-article h2:first-of-type {
  margin-top: 1.5rem;
}

.legal-article h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.35rem 0 0.5rem;
  color: var(--text);
}

.legal-article p,
.legal-article li {
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.legal-article ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-article li {
  margin-bottom: 0.4rem;
}

.legal-note {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.header--legal .burger {
  display: none !important;
}

.header--legal .nav--legal {
  display: flex !important;
  position: static !important;
  inset: auto !important;
  flex-direction: row !important;
  align-items: center;
  gap: 1rem;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  border: none !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.header--legal .nav--legal a {
  color: var(--muted);
}

/* Баннер cookie */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(12, 17, 24, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-banner__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.cookie-banner__text {
  flex: 1;
  min-width: min(100%, 280px);
  max-width: 40rem;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner__actions .btn {
  font-size: 0.88rem;
  padding: 0.65rem 1.1rem;
}

body.cookie-banner-visible {
  padding-bottom: clamp(5.5rem, 22vw, 9rem);
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 56px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(12, 17, 24, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.25s,
      opacity 0.25s;
  }

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

  .nav a {
    padding: 0.5rem 0;
  }
}

@media (scripting: none) {
  [data-reveal] > .container > .section__title,
  [data-reveal] > .container > .section__subtitle,
  [data-reveal] .card,
  [data-reveal] .split__text,
  [data-reveal] .split__media,
  [data-reveal] .team-slider,
  [data-reveal] .contact > div:first-child,
  [data-reveal] .contact .form {
    opacity: 1 !important;
    transform: none !important;
  }
}

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

  .anim-fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__photo {
    animation: none;
  }

  [data-reveal] > .container > .section__title,
  [data-reveal] > .container > .section__subtitle,
  [data-reveal] .card,
  [data-reveal] .split__text,
  [data-reveal] .split__media,
  [data-reveal] .team-slider,
  [data-reveal] .contact > div:first-child,
  [data-reveal] .contact .form {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn:hover:not(:disabled),
  .card:hover,
  .team-slider__slide .photo-slot:hover {
    transform: none;
  }
}
