:root {
  --bg: #080807;
  --bg-elevated: #121110;
  --card: #161514;
  --line: rgba(201, 169, 98, 0.2);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f4efe6;
  --muted: #a89f92;
  --gold: #c9a962;
  --gold-light: #e8d4a8;
  --gold-dim: rgba(201, 169, 98, 0.15);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1200px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* фон */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  top: -15%;
  left: -10%;
  background: rgba(201, 169, 98, 0.12);
}

.bg-glow-2 {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  bottom: 10%;
  right: -5%;
  background: rgba(120, 90, 50, 0.1);
}

/* шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 8, 7, 0.82);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 12px rgba(201, 169, 98, 0.6);
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  box-shadow: 0 8px 28px rgba(201, 169, 98, 0.35);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-sm {
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
}

.btn-wide {
  width: 100%;
}

/* hero */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0.5rem 0 1.25rem;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  max-width: 14ch;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-lead {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--text);
  max-width: 52ch;
}

.hero-text {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-metrics strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold-light);
  text-transform: lowercase;
}

.hero-metrics span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 7, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}

.hero-badge span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-badge strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

/* секции */
.section {
  padding: 4.5rem 0;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-intro h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cards-grid .card {
  min-height: 220px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.cards-grid .card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}

.card-num {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.cards-grid h3 {
  margin: 2.5rem 0 0.6rem;
  font-size: 1.5rem;
}

.cards-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* about */
.section-about {
  background: linear-gradient(180deg, transparent, var(--gold-dim) 50%, transparent);
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.about-block h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}

.about-details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about-details p:last-child {
  margin-bottom: 0;
}

/* карусель */
.carousel-empty {
  margin: 0;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.carousel {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-elevated);
  margin-bottom: 2rem;
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 380px;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  cursor: zoom-in;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
  background:
    linear-gradient(105deg, rgba(8, 8, 7, 0.55) 0%, rgba(8, 8, 7, 0.15) 45%, rgba(8, 8, 7, 0.75) 100%),
    var(--slide-image) center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  text-align: left;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-zoom-hint {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(8, 8, 7, 0.65);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.carousel-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 2.5rem 3rem;
  max-width: 560px;
}

.carousel-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.12;
  color: var(--text);
}

.carousel-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.25);
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s, border-color 0.25s;
}

.carousel-arrow:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.carousel-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.carousel-counter {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s;
}

.carousel-dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--gold);
}

/* лайтбокс */
.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 5, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-figure {
  margin: 0;
  text-align: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  object-fit: contain;
}

.lightbox-figure figcaption {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  color: var(--gold-light);
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

body.no-scroll {
  overflow: hidden;
}

/* мобильное меню */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* процесс */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.timeline-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--card);
}

.timeline-item span {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.timeline-item h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.35rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* values */
.values-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
}

.values-main h2 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.values-main p {
  margin: 0;
  color: var(--muted);
}

.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.values-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.values-list strong {
  font-weight: 600;
}

.values-list span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* форма */
.section-cta {
  padding-bottom: 5rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}

.cta-form h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.cta-form label {
  display: block;
  margin-top: 1rem;
}

.cta-form label span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.cta-form .btn {
  margin-top: 1.25rem;
}

.form-status {
  min-height: 1.25em;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.cta-contacts h3 {
  margin: 0.35rem 0 1rem;
  font-size: 2rem;
}

.contact-line {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-phone {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-decoration: none;
  color: var(--gold-light);
  transition: color 0.2s;
}

.contact-phone:hover {
  color: var(--gold);
}

.contact-tg {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-tg:hover {
  color: var(--gold-light);
}

.contact-legal {
  margin: 2rem 0 0;
  font-size: 0.75rem;
  color: rgba(168, 159, 146, 0.65);
}

/* футер */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.float-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1408;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--ease);
}

.float-cta:hover {
  transform: scale(1.03);
}

/* анимации появления */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* адаптив */
@media (max-width: 1024px) {
  .hero-grid,
  .about-block,
  .values-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(8, 8, 7, 0.98);
    border-bottom: 1px solid var(--line-soft);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .header-actions .btn-ghost {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-metrics {
    gap: 1.25rem;
  }

  .cards-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .carousel-caption {
    padding: 1.25rem 1rem 1.5rem;
  }

  .carousel-zoom-hint {
    display: none;
  }

  .carousel-viewport {
    min-height: 52vw;
  }

  .lightbox-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    width: calc(100% - 1rem);
  }

  .lightbox-arrow {
    position: absolute;
    bottom: 0.5rem;
    z-index: 2;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .float-cta {
    left: 1rem;
    right: 1rem;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
