/* Sons of Metal v3 — Cinematic steel / uniform grid */

:root {
  --bg: #0c0d0f;
  --bg-2: #141619;
  --bg-3: #1c1f24;
  --text: #f2f3f5;
  --muted: #9aa3ad;
  --line: #2b3038;
  --accent: #d62839;
  --accent-soft: rgba(214, 40, 57, 0.12);
  --white: #ffffff;
  --font-head: "Archivo", sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --wrap: min(1200px, 100% - 2.5rem);
  --header-h: 72px;
  --header-h-compact: 56px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

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

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: visible;
  transition: transform 0.35s ease, height 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-compact {
  height: var(--header-h-compact);
}

.site-header > .wrap {
  height: 100%;
  overflow: hidden;
}

.header-row {
  height: 100%;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  min-height: 0;
}

.header-phone {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.header-phone:hover {
  color: #ff4d5e;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  max-height: var(--header-h);
}

.logo-img {
  height: calc(var(--header-h) - 14px);
  width: auto;
  max-width: min(168px, 22vw);
  object-fit: contain;
  transition: height 0.3s ease, max-width 0.3s ease;
}

.site-header.is-compact .logo-link {
  max-height: var(--header-h-compact);
}

.site-header.is-compact .logo-img {
  height: calc(var(--header-h-compact) - 12px);
  max-width: min(145px, 20vw);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switcher {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.lang-btn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.lang-btn:last-child { border-right: none; }
.lang-btn.active { background: var(--white); color: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.25rem 1rem;
  z-index: 999;
}

.mobile-drawer a {
  padding: 0.7rem 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1.4rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover { background: #b82232; border-color: #b82232; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover { border-color: var(--white); }

.btn-lg { padding: 0.95rem 1.75rem; }
.btn-full { width: 100%; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(12, 13, 15, 0.92) 0%, rgba(12, 13, 15, 0.75) 45%, rgba(12, 13, 15, 0.35) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: calc(var(--header-h) + 2.5rem) 0 6rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--white);
  border-bottom: 3px solid var(--accent);
}

.hero-text {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.chip-row span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #c8ced6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-bar {
  position: relative;
  z-index: 2;
  margin-top: auto;
  background: rgba(20, 22, 25, 0.95);
  border-top: 1px solid var(--line);
}

.hero-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
}

.hero-bar-inner div {
  text-align: center;
  border-right: 1px solid var(--line);
}

.hero-bar-inner div:last-child { border-right: none; }

.hero-bar small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.hero-bar strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
}

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

.section-muted {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-title-left {
  text-align: left;
  margin: 0 0 2rem;
  max-width: none;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-title h2 {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Callout */
.callout {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.callout h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.callout p,
.callout li {
  color: var(--muted);
  font-size: 0.98rem;
}

.callout ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.card:hover {
  border-color: #3d4450;
  transform: translateY(-2px);
}

.card-wide {
  grid-column: span 1;
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.card ul {
  list-style: none;
  font-size: 0.85rem;
}

.card li { margin-bottom: 0.3rem; }
.card li strong { color: var(--text); font-weight: 600; }
.card li span { color: var(--muted); }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.benefits > div {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-2);
  border-radius: 6px;
  border: 1px solid var(--line);
}

.benefits strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.benefits span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: auto auto;
  gap: 2rem 3rem;
}

.about-grid .section-title-left {
  grid-column: 1;
  grid-row: 1;
}

.about-text {
  grid-column: 1;
  grid-row: 2;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
}

.stats {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-content: center;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem 1rem;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Uniform gallery — equal tiles */
.gallery-wrap {
  width: 100%;
}

.gallery-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
}

.gallery-stage {
  min-width: 0;
}

.gallery-arrow {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.gallery-arrow:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.gallery-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.gallery-page-info {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery-uniform {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-cell {
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.3s;
}

.gallery-cell:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

/* Contact */
.section-contact {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.team-member {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.team-member strong { display: block; }
.team-member span { display: block; font-size: 0.85rem; color: var(--muted); margin: 0.15rem 0 0.4rem; }
.team-member a { display: block; font-size: 0.92rem; color: var(--accent); margin-top: 0.1rem; }

.contact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-meta h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

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

.form-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
}

.form-panel > h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.form-panel > p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.85rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.file-zone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 4px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-zone:hover,
.file-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.file-zone p { color: var(--muted); font-size: 0.9rem; }
.file-zone .hint { font-size: 0.75rem; margin-top: 0.3rem; }

.file-list {
  font-size: 0.82rem;
  color: var(--accent);
  margin-top: 0.45rem;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: #ffb3bb;
  font-size: 0.9rem;
}

.form-success.show { display: block; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  width: clamp(160px, 18vw, 200px);
  height: auto;
}

.footer-copy p {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-copy a {
  color: var(--accent);
  font-size: 0.88rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: min(95vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-x {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.25rem;
  cursor: pointer;
  z-index: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lang-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--accent);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.lang-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.i18n-error {
  background: #8b0000;
  color: #fff;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-uniform { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-column: 1; grid-row: auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; --header-h-compact: 52px; }

  .header-row {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }

  .header-phone {
    font-size: 0.82rem;
    justify-self: center;
  }

  .main-nav,
  .header-tools .btn-primary { display: none; }

  .nav-toggle { display: flex; }

  .logo-img {
    height: calc(var(--header-h) - 12px);
    max-width: min(150px, 42vw);
  }

  .site-header.is-compact .logo-img {
    height: calc(var(--header-h-compact) - 10px);
    max-width: min(130px, 38vw);
  }

  .hero-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-bar-inner div:nth-child(2) { border-right: none; }
  .hero-bar-inner div:nth-child(1),
  .hero-bar-inner div:nth-child(2) {
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
  }

  .cards,
  .benefits { grid-template-columns: 1fr; }

  .gallery-uniform { grid-template-columns: repeat(2, 1fr); }

  .gallery-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .form-row,
  .contact-meta { grid-template-columns: 1fr; }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-cell img { transition: none; }
}
