/* ==================== Variables ==================== */
:root {
  --bg: #121417;
  --bg-alt: #1a1d22;
  --surface: #1f2328;
  --surface-2: #262b32;
  --border: #313740;
  --steel: #4a5561;
  --steel-light: #8b96a3;
  --text: #eef1f4;
  --text-muted: #9aa3ad;
  --accent: #ff7a1a;
  --accent-dark: #d9640d;
  --accent-light: #ffa85c;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --container: 1180px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--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;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

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

section {
  padding: 88px 0;
}

@media (max-width: 720px) {
  section {
    padding: 56px 0;
  }
}

/* ==================== Utility ==================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #141414;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

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

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

.btn-block {
  width: 100%;
}

/* ==================== Header ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 20, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

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

.logo small {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: var(--accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-phone {
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 0.02em;
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

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

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .header-phone {
    display: block;
  }
}

@media (max-width: 899px) {
  .nav-links {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
  }

  .nav .btn {
    display: none;
  }

  .burger {
    display: flex;
  }
}

/* ==================== Hero ==================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 11, 13, 0.96) 0%, rgba(10, 11, 13, 0.55) 45%, rgba(10, 11, 13, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 72px;
  max-width: 760px;
}

.hero-content h1 {
  font-size: clamp(34px, 6vw, 64px);
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

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

.hero-stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 56px;
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
}

.hero-stats .num {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--accent);
}

.hero-stats .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 720px) {
  .hero {
    min-height: 76vh;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Page (inner) hero — smaller, for services/about/portfolio/contacts */
.page-hero {
  position: relative;
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
}

.breadcrumbs {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
}

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

.breadcrumbs .sep {
  margin: 0 8px;
  color: var(--border);
}

.page-hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin-top: 14px;
  font-size: 17px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

@media (max-width: 620px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(255, 122, 26, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  font-family: var(--font-head);
}

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

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

.card .num {
  font-family: var(--font-head);
  color: var(--steel-light);
  font-size: 13px;
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}

/* Service card with link */
.card-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* ==================== About teaser / split ==================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.split-body .section-head {
  margin-bottom: 24px;
}

.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ==================== Process steps ==================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

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

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding-top: 8px;
}

.step .step-num {
  font-family: var(--font-head);
  font-size: 42px;
  color: transparent;
  -webkit-text-stroke: 1px var(--steel-light);
  margin-bottom: 12px;
  display: block;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==================== Portfolio ==================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--steel-light);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #141414;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}

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

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

.gallery-item .tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(18, 20, 23, 0.85);
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%);
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 11, 13, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--border);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: border-color 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next {
    width: 40px;
    height: 40px;
  }
}

/* ==================== CTA band ==================== */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(22px, 3vw, 30px);
  max-width: 520px;
}

.cta-band-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==================== Contacts ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:first-child {
  padding-top: 0;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(255, 122, 26, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-info-item h4 {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-info-item p, .contact-info-item a {
  font-size: 17px;
}

.map-placeholder {
  margin-top: 32px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
}

.map-embed {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
}

.map-embed iframe {
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-head);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
}

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

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.form-success {
  display: none;
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  font-size: 15px;
}

.form-success.is-visible {
  display: block;
}

/* ==================== Footer ==================== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ==================== Misc ==================== */
.tag-line {
  color: var(--steel-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-head);
}
