:root {
  --bg: #0c0f12;
  --bg-elevated: #141a20;
  --text: #f4f6f8;
  --text-muted: #9aa5b1;
  --accent: #e8a838;
  --accent-hover: #f0bc5c;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --font: "Manrope", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 15, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.header__phone {
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

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

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

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

.btn--primary {
  background: var(--accent);
  color: #1a1408;
  box-shadow: 0 8px 24px rgba(232, 168, 56, 0.35);
}

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

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

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12, 15, 18, 0.92) 0%, rgba(12, 15, 18, 0.55) 50%, rgba(12, 15, 18, 0.85) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80") center / cover no-repeat;
  z-index: -1;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(232, 168, 56, 0.12), transparent 60%);
}

.hero__content {
  max-width: 720px;
}

.hero__region {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero__stats strong {
  color: var(--text);
  font-weight: 700;
}

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

/* Sections */
.section {
  padding: 5rem 0;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* Projects */
.projects {
  background: var(--bg-elevated);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card__info {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.project-card__info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.project-card__info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Advantages */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.advantage {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.2s, transform 0.2s;
}

.advantage:hover {
  border-color: rgba(232, 168, 56, 0.35);
  transform: translateY(-4px);
}

.advantage__num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(232, 168, 56, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.advantage h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.advantage p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contacts */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contacts__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.2s, background 0.2s;
}

a.contact-card:hover {
  border-color: rgba(232, 168, 56, 0.4);
  background: rgba(232, 168, 56, 0.06);
}

.contact-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-card__value {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact-card--phone .contact-card__value {
  font-size: 1.35rem;
  color: var(--accent);
}

.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  min-height: 320px;
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

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

.footer__phone {
  font-weight: 600;
  color: var(--accent);
}

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

/* FAB */
.fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.2s, background 0.2s;
}

.fab:hover {
  transform: scale(1.08);
  background: var(--accent-hover);
}

/* Mobile */
@media (max-width: 900px) {
  .nav,
  .header__cta,
  .header__phone {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

  .header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    margin-left: 0;
    gap: 1rem;
  }

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

@media (max-width: 600px) {
  .hero__stats {
    flex-direction: column;
    gap: 0.5rem;
  }

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