:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --accent-ochre: #c4701f;
  --accent-dark: #8b4a0f;
  --text-primary: #eaeaea;
  --text-secondary: #8a8a8a;
  --text-muted: #555555;
  --border-color: #2a2a2a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.section {
  padding: 140px 0;
}

.font-display {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.font-heading {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.font-nav {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.font-caption {
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.4;
}

.text-accent {
  color: var(--accent-ochre);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.section-title {
  font-size: clamp(28px, 5vw, 64px);
  margin: 16px 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary,
.btn-secondary {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--accent-ochre);
  color: var(--bg-primary);
  padding: 16px 32px;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-ochre);
  padding: 14px 30px;
  border: 2px solid var(--accent-ochre);
}

.btn-secondary:hover {
  background: rgba(196, 112, 31, 0.1);
  transform: translateY(-2px);
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input {
  height: 48px;
  padding: 0 16px;
}

.form-textarea {
  padding: 12px 16px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-ochre);
}

.form-alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid;
  font-size: 14px;
}

.form-alert--success {
  border-color: var(--accent-ochre);
  color: var(--accent-ochre);
  background: rgba(196, 112, 31, 0.08);
}

.form-alert--error {
  border-color: #8b2e2e;
  color: #e88;
  background: rgba(139, 46, 46, 0.15);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: #1a1a1a;
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 48px;
}

.nav__logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-ochre);
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--accent-ochre);
}

.nav__cta {
  font-size: 12px;
  padding: 12px 24px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__burger.open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s, opacity 0.3s;
  background: var(--bg-primary);
  border-top: 1px solid #1a1a1a;
}

.nav__mobile.open {
  max-height: 320px;
  opacity: 1;
}

.nav__mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 24px;
}

.nav__mobile-inner a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(196, 112, 31, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 112, 31, 0.3) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 128px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 120px 48px 80px;
}

.hero__title {
  font-size: clamp(48px, 10vw, 120px);
  margin: 0;
  animation: heroFadeUp 0.8s ease 0.3s both;
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 28px);
  line-height: 1.15;
  color: var(--text-secondary);
  margin: 24px 0 0;
  max-width: 600px;
  animation: heroFadeUp 0.6s ease 0.6s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  animation: heroFadeUp 0.5s ease 0.9s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.product-card:hover {
  border-color: var(--accent-ochre);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-card__body {
  padding: 20px;
}

.product-card__title {
  font-size: 18px;
  margin: 0 0 8px;
}

.product-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Advantages */
.advantages {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.advantages__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: repeating-linear-gradient(
    45deg,
    var(--accent-ochre),
    var(--accent-ochre) 2px,
    transparent 2px,
    transparent 12px
  );
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
  position: relative;
  z-index: 1;
}

.advantage-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 40px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
  border-color: var(--accent-ochre);
  box-shadow: 0 0 20px rgba(196, 112, 31, 0.1);
}

.advantage-card h3 {
  font-size: clamp(20px, 2vw, 28px);
  margin: 24px 0 12px;
  line-height: 1.15;
}

.advantage-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.advantage-icon {
  width: 32px;
  height: 32px;
}

/* Process */
.process-step {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 0;
}

.process-step__number {
  font-weight: 900;
  font-size: 72px;
  line-height: 1;
  color: var(--accent-ochre);
  opacity: 0.3;
}

.process-step h3 {
  font-size: clamp(20px, 2vw, 28px);
  margin: 0 0 12px;
}

.process-step p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.process-divider {
  height: 2px;
  background: var(--border-color);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.process-divider.revealed {
  transform: scaleX(1);
}

/* Contact */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}

.contact-info__label {
  display: block;
  margin-bottom: 4px;
}

.contact-form-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-ochre);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 64px 0;
}

.footer__brand {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-ochre);
}

.footer__tagline {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.footer__copy {
  margin: 32px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .container,
  .nav__inner,
  .hero__content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding: 64px 0;
  }

  .nav__inner {
    height: 64px;
  }

  .nav__links,
  .nav__cta-desktop {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__mobile {
    display: block;
  }

  .advantages-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form-box {
    padding: 32px 24px;
  }

  .process-step {
    padding: 32px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero__title,
  .hero__subtitle,
  .hero__actions {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
