:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --dark: #171717;
  --dark-2: #232323;
  --text: #242424;
  --muted: #6c6c6c;
  --accent: #e97818;
  --accent-dark: #bf5700;
  --line: #dfdfdc;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.hero {
  min-height: 720px;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.28)),
    url("images/gate-installation.jpg") center 48% / cover no-repeat;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.30), transparent 32%, rgba(0,0,0,.35));
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.28);
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  padding: 7px 12px;
  backdrop-filter: blur(4px);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.65);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.active {
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 80px 110px;
}

.hero-box {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  line-height: 1.01;
  letter-spacing: -.045em;
  margin-bottom: 24px;
}

.hero-text {
  max-width: 670px;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 34px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

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

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

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

.btn-secondary {
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  background: rgba(0,0,0,.18);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.12);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.section {
  padding-block: 90px;
}

.section h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 42px;
}

.services {
  background: var(--surface);
}

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

.service-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fafaf8;
  border-radius: 14px;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

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

.service-card p {
  color: var(--muted);
}

.gallery-section {
  background: var(--bg);
}

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

.gallery-item {
  min-height: 330px;
  overflow: hidden;
  border-radius: 14px;
  background: #ddd;
}

.gallery-large {
  grid-column: 1 / -1;
  min-height: 500px;
}

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

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

.why-us {
  background: var(--dark);
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: start;
}

.section-kicker.light {
  color: #ffa552;
}

.why-us h2 {
  margin-bottom: 0;
}

.benefits {
  display: grid;
  gap: 12px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: 1.08rem;
}

.benefit span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 900;
}

.contact-section {
  background: var(--surface);
}

.contact-box {
  text-align: center;
}

.contact-box .section-kicker,
.contact-box h2 {
  margin-left: auto;
  margin-right: auto;
}

.contact-box p:not(.section-kicker) {
  max-width: 650px;
  margin: -22px auto 20px;
  color: var(--muted);
  font-size: 1.08rem;
}

.phone-number {
  display: block;
  width: fit-content;
  margin: 24px auto 28px;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
}

.contact-actions {
  justify-content: center;
}

footer {
  background: #0e0e0e;
  color: #fff;
  padding: 34px 0 85px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.footer-content p {
  color: rgba(255,255,255,.62);
  margin-top: 4px;
}

.footer-content > a {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ff9b42;
}

.mobile-call-bar {
  display: none;
}

@media (max-width: 850px) {
  .hero {
    min-height: 650px;
    background-position: 60% center;
  }

  .service-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    gap: 28px;
  }

  .gallery-large {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .topbar {
    min-height: 72px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-block: 60px 80px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding-block: 65px;
  }

  .section h2 {
    margin-bottom: 30px;
  }

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

  .gallery-large {
    grid-column: auto;
  }

  .gallery-item,
  .gallery-large {
    min-height: 290px;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    padding-bottom: 95px;
  }

  .mobile-call-bar {
    display: block;
    position: fixed;
    z-index: 20;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .mobile-call-bar a {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--accent);
    color: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
}
