/* ===== Variables ===== */
@font-face {
  font-family: 'MADE Evolve Sans EVO';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/made-evolve-sans-evo-regular.woff') format('woff');
}

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --text: #e8e4df;
  --text-muted: #8a8580;
  --accent: #c9a962;
  --accent-dim: #9a7d3a;
  --border: rgba(201, 169, 98, 0.15);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --container: min(1120px, 92vw);
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #dfc87a; }

.container { width: var(--container); margin-inline: auto; }

/* ===== Typography ===== */
.section { padding: clamp(4rem, 10vw, 7rem) 0; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 520px;
}

.section__header { margin-bottom: 2.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(201, 169, 98, 0.2);
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: #dfc87a;
  color: var(--bg);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--bg);
}

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: 0.08em;
}

.nav__logo:hover { color: var(--accent); }

.nav__list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav__list a {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--bg);
  padding: calc(64px + 1.5rem) 0 4rem;
}

.hero__intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.hero__label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: 'MADE Evolve Sans EVO', var(--font-body), sans-serif;
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  margin: 0;
}

.hero__photo {
  width: 100%;
  margin: 0;
  line-height: 0;
}

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

.hero__footer {
  text-align: center;
  max-width: 720px;
  margin-top: 2rem;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 2rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== About ===== */
.about { background: var(--bg-elevated); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.about__text strong { color: var(--accent); font-weight: 500; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===== Video ===== */
.video-block { max-width: 900px; margin-inline: auto; }

.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 2rem;
  border: none;
  background:
    radial-gradient(ellipse at center, rgba(201, 169, 98, 0.12) 0%, transparent 70%),
    #000;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.video-poster:hover,
.video-poster:focus-visible {
  background:
    radial-gradient(ellipse at center, rgba(201, 169, 98, 0.2) 0%, transparent 70%),
    #0d0d0d;
  color: var(--accent);
  outline: none;
}

.video-poster__icon {
  color: var(--accent);
  transition: transform var(--transition), color var(--transition);
}

.video-poster:hover .video-poster__icon,
.video-poster:focus-visible .video-poster__icon {
  transform: scale(1.06);
  color: #dfc87a;
}

.video-poster__label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.video-block__hint {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.video-block__hint code {
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}

/* ===== Team ===== */
.team { background: var(--bg-elevated); }

.team__featured {
  max-width: 560px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.team__featured-photo {
  overflow: hidden;
  background: linear-gradient(135deg, #1a1815 0%, #0d0d0d 100%);
  border: 1px solid var(--border);
}

.team__featured-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.team__featured-caption {
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.team__featured-caption p + p {
  margin-top: 1.25rem;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.team-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1815 0%, #0d0d0d 100%);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .team-card__photo img { transform: scale(1.04); }

.team-card__photo--placeholder::after {
  content: 'Фото';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.team-card__photo { position: relative; }

.team-card__info { padding: 1.5rem; }

.team-card__info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.team-card__role {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.team-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ===== Vertical Videos ===== */
.vertical-videos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.vertical-video { text-align: center; }

.vertical-video__frame {
  width: min(280px, 80vw);
  aspect-ratio: 9 / 16;
  background: #000;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-inline: auto;
}

.vertical-video__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vertical-video__frame--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}

.vertical-video__coming {
  text-align: center;
  color: var(--text-muted);
}

.vertical-video__coming svg { margin: 0 auto 1rem; opacity: 0.4; }

.vertical-video__coming p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.vertical-video__caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ===== Gallery ===== */
.gallery { background: var(--bg); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin-inline: auto;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
  background: var(--bg-card);
  min-height: 0;
}

.gallery__item--hero {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
}

.gallery__item--pair {
  grid-column: span 3;
  aspect-ratio: 3 / 2;
}

.gallery__item--trio {
  grid-column: span 2;
  aspect-ratio: 3 / 4;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease, opacity 0.5s ease;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201, 169, 98, 0);
  transition: background var(--transition);
  pointer-events: none;
}

.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after { background: rgba(201, 169, 98, 0.1); }

.gallery__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .gallery__item--hero {
    grid-column: 1 / -1;
  }

  .gallery__item--pair {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .gallery__item--trio {
    grid-column: span 1;
    aspect-ratio: 3 / 4;
  }

  .gallery__item--trio:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gallery__item--hero,
  .gallery__item--pair {
    grid-column: 1 / -1;
    max-width: none;
    aspect-ratio: 3 / 2;
  }

  .gallery__item--trio {
    grid-column: 1 / -1;
    max-width: none;
    aspect-ratio: 3 / 4;
  }
}

/* ===== Contact ===== */
.contact { background: var(--bg-elevated); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact__info p {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.contact__links { list-style: none; }

.contact__links li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact__icon { font-size: 1.1rem; }

.contact__link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}

.contact__link-btn:hover { color: #dfc87a; }

.contact__write-btn { margin-top: 1.75rem; }

.contact-form,
.review-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
}

.contact-form__title,
.review-form__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.form-group { margin-bottom: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  text-align: center;
}

.form-error {
  margin-top: 1rem;
  color: #c96a62;
  font-size: 0.85rem;
  text-align: center;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.form-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.form-botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: min(100%, 540px);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
}

.modal__panel .contact-form {
  margin: 0;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition);
}

.modal__close:hover { color: var(--accent); }

/* ===== Reviews ===== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.75rem;
}

.review-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-card footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.review-form { max-width: 640px; }

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 2rem 3rem;
}

.footer__brand {
  min-width: 0;
}

.footer__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer__docs-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.footer__docs-link {
  display: inline-flex;
  align-items: center;
  max-width: 11rem;
  min-height: 44px;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  color: #8fa3b8;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(201, 169, 98, 0.2);
}

.footer__docs-link:hover {
  color: var(--accent);
}

.footer__top {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== Legal pages ===== */
.legal__content {
  max-width: 720px;
}

.legal__updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.legal__block {
  margin-bottom: 2rem;
}

.legal__block h2,
.legal__block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.legal__block h3 {
  font-size: 1.15rem;
}

.legal__block p,
.legal__block li {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.legal__block p {
  margin-bottom: 0.75rem;
}

.legal__block ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
}

.legal__block li {
  margin-bottom: 0.35rem;
}

.legal__back {
  margin-top: 3rem;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  line-height: 1;
  transition: color var(--transition);
  z-index: 1;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--accent); }

.lightbox__close { top: 1rem; right: 1rem; font-size: 2.5rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav__list {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .nav__list.open {
    display: flex;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .form-row { grid-template-columns: 1fr; }

  .about__stats { grid-template-columns: 1fr 1fr; }

  .hero__scroll { display: none; }
}

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