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

:root {
  /* Теплая индустриальная палитра (Techno-Heritage) */
  --bg: #110e0c;
  --panel: #181512;
  --line: #2a241e;
  --text: #c4baa9;
  --soft: #968c7e;
  --muted: #8b8070;
  --dim: #756a5c;
  --bright: #f2e7d3;
  --accent: #b5835a;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(181, 131, 90, .05), transparent 30%),
    radial-gradient(circle at bottom right, rgba(140, 110, 80, .05), transparent 30%);
  pointer-events: none;
  z-index: -1;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
  opacity: .15;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

header {
  width: 100%;
  padding: 32px max(60px, calc((100% - 1440px) / 2));
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bright);
  font-size: 14px;
  flex-shrink: 0;
}

.logo-name {
  font-family: 'Oswald', sans-serif;
  letter-spacing: .18em;
  font-weight: 400;
  font-size: 22px;
  color: var(--bright);
}

.logo-sub {
  display: block;
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--soft);
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 42px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .3s ease;
}

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

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

.burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--bright);
  transition: transform .3s ease, opacity .3s ease;
}

.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--soft);
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  letter-spacing: .25em;
  text-transform: uppercase;
  transition: color .3s ease;
}

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

main {
  display: contents;
}

.hero {
  min-height: 100vh;
  padding: 180px max(60px, calc((100% - 1440px) / 2)) 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--soft);
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 81px;
  line-height: 1.17;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bright);
  max-width: 700px;
  margin-bottom: 36px;
}

.hero p {
  max-width: 520px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  padding: 18px 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bright);
  text-decoration: none;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 11px;
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
  font-family: inherit;
  cursor: pointer;
}

.btn:hover {
  background: rgba(255, 255, 255, .04);
  transform: translateY(-2px);
}

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

.btn.primary {
  background: rgba(181, 131, 90, 0.1);
  border-color: rgba(181, 131, 90, 0.3);
}

.btn.primary:hover {
  background: rgba(181, 131, 90, 0.2);
}

.hero-visual {
  position: relative;
  height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 131, 90, .05), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.star-map {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(181, 131, 90, .08) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .5;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  pointer-events: none;
}

.rings {
  position: absolute;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  border: 1px solid var(--line);
  pointer-events: none;
}

.rings::before,
.rings::after {
  content: "";
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.rings::after {
  inset: 180px;
}

.skull {
  position: relative;
  /* 1. МЕНЯЕМ РАЗМЕР ЗДЕСЬ */
  width: 370px; /* Сделай больше или меньше по вкусу (было 520px) */
  max-width: 100%;
  height: auto;
  z-index: 3;
  
  /* 2. ДВИГАЕМ КАРТИНКУ ЗДЕСЬ */
  /* первое число (X) — вправо/влево, второе (Y) — вниз/вверх */
  transform: translate(-30px, -100px); 
  
  filter: drop-shadow(0 0 80px rgba(0,0,0,.7)) drop-shadow(0 0 40px rgba(181, 131, 90, .1));
}

.capabilities {
  padding: 100px max(60px, calc((100% - 1440px) / 2));
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: 48px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  padding: 32px;
  min-height: 220px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .01), transparent);
  transition: transform .4s ease, border-color .4s ease, background .4s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(181, 131, 90, .3);
  background: rgba(181, 131, 90, .02);
}

.card .num {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .2em;
  margin-bottom: 28px;
}

.card h2,
.card h3 {
  font-family: 'Oswald', sans-serif;
  line-height: 1.1;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .08em;
  margin-bottom: 18px;
  color: var(--bright);
}

.card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.works {
  padding: 100px max(60px, calc((100% - 1440px) / 2));
  border-bottom: 1px solid var(--line);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.work {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}

.work img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(.85);
  transition: transform .5s ease;
}

.work:hover img {
  transform: scale(1.05);
}

.work-info {
  padding: 22px;
}

.work-info h3,
.work-info h4 {
  color: var(--bright);
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: .06em;
}

.work-info span {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

footer {
  padding: 80px max(60px, calc((100% - 1440px) / 2)) 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
}

.footer-title {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: 24px;
}

footer p {
  line-height: 1.8;
  color: var(--muted);
}

nav.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-links a {
  color: var(--soft);
  text-decoration: none;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  transition: color .3s ease;
}

.footer-links a:hover {
  color: var(--bright);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.newsletter {
  display: flex;
  margin-top: 22px;
  max-width: 100%;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-right: none;
  padding: 18px;
  color: var(--bright);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .3s ease;
}

.newsletter input:focus {
  border-color: var(--accent);
}

.newsletter input::placeholder {
  color: var(--dim);
}

.newsletter button {
  width: 70px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--bright);
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  transition: background .3s ease, border-color .3s ease;
}

.newsletter button:hover {
  background: var(--panel);
  border-color: var(--accent);
}

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

.newsletter-success {
  display: none;
  margin-top: 12px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Стили для сноски в сетке футера */
.legal-notice-grid {
  font-size: 11px;
  color: var(--dim); /* Приглушенный цвет, чтобы не перетягивать внимание */
  line-height: 1.6;
  letter-spacing: 0.05em;
  padding-top: 4px; /* Небольшое выравнивание относительно верхнего края соседних колонок */
}

/* Возвращаем классический копирайт */
.copyright {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.copyright a {
  color: var(--soft);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Стили для страницы В разработке / 404 */
.construction-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
}

.construction-title {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  color: var(--bright);
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.construction-desc {
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Адаптивность */
@media(max-width: 1400px) {
  .cards,
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 68px; }
  .hero-visual { height: auto; min-height: 500px; }
  .skull { 
    width: 370px; /* Размер для ноутбуков */
    transform: translate(0, 0); /* Сбрасываем сдвиг, чтобы она не уехала за экран */
  }
}

@media(max-width: 900px) {
  .cards,
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 768px) {
  header { padding: 24px; }
  nav { display: none; }
  .burger { display: flex; }
  .hero, .capabilities, .works, footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero { padding-top: 140px; }
  .hero h1 { font-size: 46px; }
  .cards, .works-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 40px; }
  .skull { 
    width: 100%; 
    max-width: 300px; /* Максимальный размер для телефонов */
    transform: translate(60, 0);
  }
}
  .copyright { flex-direction: column; gap: 10px; margin-top: 40px; }
}