:root {
  --color-bg: #0e0e10;
  --color-bg-alt: #17171a;
  --color-surface: #1f1f23;
  --color-border: #2c2c30;
  --color-text: #f2f1ed;
  --color-text-muted: #a8a8ad;
  --color-accent: #7a7e85;
  --color-accent-light: #d7dade;
  --gradient-metal: linear-gradient(135deg, #4b4e53, #9a9ea4);
  --gradient-metal-hover: linear-gradient(135deg, #63666b, #c2c5c9);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --max-width: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
}

.logo__img--small { height: 36px; width: 36px; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

.nav__cta {
  color: #fff !important;
  background: var(--gradient-metal);
  padding: 8px 18px;
  border-radius: 4px;
}

.nav__cta:hover { background: var(--gradient-metal-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200, 203, 209, 0.12), transparent 60%),
    linear-gradient(180deg, #0e0e10 0%, #17171a 100%);
  z-index: -1;
}

.hero__content { max-width: 780px; }

.hero__eyebrow {
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--gradient-metal);
  color: #fff;
}

.btn--primary:hover {
  background: var(--gradient-metal-hover);
  transform: translateY(-1px);
}

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

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

.btn--lg { padding: 18px 36px; font-size: 16px; }

/* Sections */
.section {
  padding: 100px 0;
}

.section--dark { background: var(--color-bg-alt); }

.section__eyebrow {
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  font-size: 16px;
}

.about__text p:last-child { margin-bottom: 0; }

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-left: 2px solid var(--color-accent);
  padding-left: 28px;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--color-accent-light);
  line-height: 1;
}

.stat__label {
  display: block;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 6px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.service-card {
  background: var(--color-bg);
  padding: 36px 28px;
  transition: background 0.2s ease;
}

.service-card:hover { background: var(--color-surface); }

.service-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '“';
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.testimonial-card p {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-card footer {
  font-size: 14px;
  color: var(--color-accent-light);
  font-weight: 600;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-surface);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}

/* Contact */
.contact__inner {
  text-align: center;
  max-width: 560px;
}

.contact__text {
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-bottom: 28px;
}

.contact-form__row {
  display: flex;
  gap: 16px;
}

.contact-form__row input { flex: 1; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted);
}

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

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.contact-form__consent input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--color-accent-light);
}

.contact-form__consent a {
  color: var(--color-text);
  text-decoration: underline;
}

.contact-form .btn {
  align-self: flex-start;
}

.contact-form__status {
  font-size: 14px;
  min-height: 20px;
}

.contact-form__status.is-success { color: #8fd6a8; }
.contact-form__status.is-error { color: #e08a8a; }

.contact__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer__inner a:hover { color: var(--color-accent-light); }

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Legal pages */
.legal {
  padding-top: 152px;
}

.legal-content {
  max-width: 760px;
}

.legal-content .section__title {
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 20px;
  margin: 36px 0 12px;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-content li { margin-bottom: 6px; }

.legal-content a {
  color: var(--color-text);
  text-decoration: underline;
}

.legal-updated {
  margin-top: 48px;
  font-size: 13px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form__row { flex-direction: column; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    display: none;
    gap: 20px;
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }

  .hero__actions,
  .contact__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn,
  .contact__actions .btn,
  .contact-form .btn {
    width: 100%;
    text-align: center;
  }

  .contact-form .btn {
    align-self: stretch;
  }
}
