:root {
  --bg: #1a1d24;
  --text: #e5e7eb;
  --accent: #f97316;
  --card: #242a33;
  --muted: #a3adba;
  --border: #313845;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

.section-divider {
  width: min(100% - 48px, 1200px);
  height: 1px;
  margin: 4px auto;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0), rgba(249, 115, 22, 0.34), rgba(249, 115, 22, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.08);
  opacity: 0.9;
}

h2 {
  position: relative;
  margin-bottom: 30px;
  font-size: 36px;
  text-align: center;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 15px auto 0;
  border-radius: 2px;
  background: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-56px);
}

.reveal-right {
  transform: translateX(56px);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  transform: translateX(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 5%;
  border-bottom: 1px solid var(--border);
  background: rgba(26, 29, 36, 0.92);
  backdrop-filter: blur(6px);
  transition: padding 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}

.site-header.is-compact {
  padding: 10px 5%;
  background: rgba(20, 23, 30, 0.96);
  border-bottom-color: rgba(249, 115, 22, 0.14);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform 0.28s ease, color 0.28s ease;
}

.site-header.is-compact .logo {
  transform: scale(0.96);
}

.logo:hover {
  color: #fff3eb;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav a {
  position: relative;
  margin-left: 25px;
  color: var(--text);
  transition: color 0.3s, opacity 0.28s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0.95));
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

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

.site-nav a.is-active {
  color: var(--accent);
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.28s ease;
}

.site-header.is-compact .menu-toggle {
  transform: scale(0.94);
}

.hero-3 {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 120px 5% 80px;
  overflow: hidden;
}

.hero-3::before,
.hero-3::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-3::before {
  top: 70px;
  right: 6%;
  width: 220px;
  height: 220px;
  border-radius: 28px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

.hero-3::after {
  top: 110px;
  right: 12%;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0) 72%);
  filter: blur(10px);
}

.hero-text {
  flex: 1 1 500px;
  position: relative;
  z-index: 1;
}

.hero-text::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -32px;
  width: 360px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0.07) 36%, rgba(249, 115, 22, 0) 74%);
  filter: blur(16px);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  color: #ffd6bd;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.hero-3 h1 {
  font-size: 48px;
}

.hero-3 p {
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 18px;
}

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

.btn,
.btn-alt,
.contact-3 button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  transition: 0.3s;
}

.btn,
.contact-3 button {
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.btn:hover,
.contact-3 button:hover {
  opacity: 0.85;
}

.btn-alt {
  border: 1px solid #3a4351;
  background: #1f2530;
  color: var(--text);
}

.btn-alt:hover {
  border-color: var(--accent);
  color: #fff;
}

.hero-image {
  position: relative;
  flex: 1 1 450px;
  z-index: 1;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: auto 10% -20px 10%;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, rgba(249, 115, 22, 0) 72%);
  filter: blur(14px);
  pointer-events: none;
}

.hero-image::after {
  content: "";
  position: absolute;
  top: 16%;
  left: 50%;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0.04) 36%, rgba(249, 115, 22, 0) 72%);
  transform: translateX(-50%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-image img {
  width: min(100%, 480px);
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s;
}

.hero-image img:hover {
  transform: scale(1.03);
}

.about-3,
.contact-3 {
  padding: 80px 5%;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
}

.about-3 {
  position: relative;
  max-width: 1100px;
  margin: 60px auto;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.about-3::before,
.about-3::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.about-3::before {
  top: 18px;
  right: 18px;
  width: 150px;
  height: 150px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.32;
}

.about-3::after {
  left: -40px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0) 70%);
  filter: blur(6px);
}

.about-3 p {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 20px;
}

.about-3 p span {
  color: var(--accent);
  font-weight: 600;
}

.why-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.why-item,
.service-card,
.contact-panel {
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  transition: transform 0.3s;
}

.why-item:hover {
  transform: translateY(-5px);
}

.why-icon {
  min-width: 40px;
  color: var(--accent);
  font-size: 28px;
}

.why-item h3 {
  margin-bottom: 6px;
}

.why-item p,
.service-card p,
.gallery-caption,
.footer-brand p {
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  position: relative;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0), rgba(249, 115, 22, 0.75), rgba(249, 115, 22, 0));
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-card h3 {
  margin-bottom: 15px;
}

.projects-3 {
  position: relative;
  padding: 80px 5%;
  overflow: hidden;
}

.projects-3::before {
  content: "";
  position: absolute;
  top: 36px;
  left: -24px;
  width: 160px;
  height: 160px;
  background-image: radial-gradient(rgba(249, 115, 22, 0.18) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.35;
  pointer-events: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.project img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 20px;
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.05) 0%, rgba(4, 8, 14, 0.82) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.project:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  color: #fff;
  font-size: 18px;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.86);
}

.gallery-modal.active {
  display: flex;
}

.gallery-content {
  width: min(1000px, 100%);
  max-height: 90vh;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #11151d;
}

.gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70vh;
  min-height: 360px;
  padding: 12px 56px;
  overflow: hidden;
  border-radius: 10px;
  background: #0b0f15;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
}

.gallery-close,
.gallery-prev,
.gallery-next {
  position: absolute;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.gallery-close {
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 28px;
}

.gallery-prev,
.gallery-next {
  top: 50%;
  width: 42px;
  height: 42px;
  font-size: 28px;
  transform: translateY(-50%);
}

.gallery-prev {
  left: 14px;
}

.gallery-next {
  right: 14px;
}

.gallery-caption {
  margin-top: 12px;
  text-align: center;
}

.contact-3 {
  max-width: 1280px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-panel {
  position: relative;
  padding: 24px;
  border: 1px solid #3a4351;
  background: #1f2530;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.7), rgba(249, 115, 22, 0));
}

.contact-panel h3 {
  margin-bottom: 16px;
  font-size: 22px;
}

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

.contact-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  line-height: 1.5;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(249, 115, 22, 0.26);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.08);
  vertical-align: middle;
}

.contact-icon svg,
.footer-link-icon svg {
  width: 13px;
  height: 13px;
  min-width: 13px;
  min-height: 13px;
  display: block;
  flex: 0 0 13px;
}

.contact-panel h3 .contact-icon svg {
  width: 13px;
  height: 13px;
  min-width: 13px;
  min-height: 13px;
  max-width: 13px;
  max-height: 13px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-3 input,
.contact-3 textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #3a4351;
  border-radius: 6px;
  background: rgba(22, 27, 35, 0.92);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.contact-3 input:focus,
.contact-3 textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.09);
  outline: none;
}

.contact-3 button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.contact-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}

.contact-status.is-success {
  color: #86efac;
}

.contact-status.is-error {
  color: #fca5a5;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.map-wrap {
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  border-radius: 10px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  padding: 36px 5%;
  border-top: 1px solid var(--border);
  background: #151922;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0.9) 35%, rgba(249, 115, 22, 0.18) 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 22px;
  width: 180px;
  height: 120px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.95) 30%);
}

.footer-grid,
.footer-bottom {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #2a313d;
  text-align: center;
}

.footer-brand h3,
.footer-contact h4,
.footer-social h4,
.footer-legal h4 {
  margin-bottom: 12px;
  color: #fff;
}

.footer-brand h3 {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a,
.footer-social a,
.footer-legal a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s, transform 0.3s;
}

.footer-contact a:hover,
.footer-social a:hover,
.footer-legal a:hover {
  color: var(--accent);
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(249, 115, 22, 0.06);
  transform: translateY(-2px);
}

.footer-social a::before {
  content: none;
}

.footer-legal a {
  width: 100%;
  justify-content: flex-start;
}

.footer-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.09);
  border: 1px solid rgba(249, 115, 22, 0.22);
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  flex: 0 0 22px;
}

.footer-credit {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-credit strong {
  color: var(--accent);
}

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 18px;
  }

  .site-header.is-compact {
    padding: 10px 18px;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    right: 0;
    display: none;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--card);
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav a {
    margin: 15px 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero-3 {
    flex-direction: column;
    gap: 28px;
    padding: 110px 18px 56px;
  }

  .hero-text::before {
    left: -10px;
    width: 250px;
    height: 180px;
  }

  .hero-3::before {
    right: -10px;
    width: 150px;
    height: 150px;
    opacity: 0.3;
  }

  .hero-3::after {
    right: 8%;
    width: 180px;
    height: 180px;
  }

  .hero-text,
  .hero-image {
    width: 100%;
    flex: 1 1 auto;
  }

  .hero-3 h1 {
    font-size: 34px;
    line-height: 1.15;
  }

  .hero-badge {
    align-self: flex-start;
    padding: 9px 14px;
    border-color: rgba(249, 115, 22, 0.34);
    background: rgba(249, 115, 22, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-size: 12px;
    line-height: 1.35;
  }

  .hero-3 p {
    font-size: 16px;
  }

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

  .btn,
  .btn-alt {
    width: 100%;
    text-align: center;
  }

  .container {
    width: min(100% - 36px, 1200px);
    padding: 48px 0;
  }

  h2 {
    margin-bottom: 24px;
    font-size: 30px;
  }

  .about-3,
  .projects-3,
  .contact-3 {
    padding: 56px 18px;
  }

  .about-3 p {
    font-size: 17px;
  }

  .why-wrapper,
  .services-grid,
  .projects-grid {
    gap: 18px;
  }

  .why-wrapper,
  .services-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .why-item,
  .service-card,
  .contact-panel {
    padding: 20px;
  }

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

  .project img {
    height: 240px;
  }

  .contact-panel h3 {
    font-size: 20px;
    line-height: 1.55;
  }

  .contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .contact-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    border-color: rgba(249, 115, 22, 0.34);
    background: rgba(249, 115, 22, 0.12);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.1);
  }

  .contact-panel h3 .contact-icon svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
  }

  .contact-3 button {
    width: 100%;
  }

  .map-wrap {
    min-height: 300px;
  }

  .gallery-content {
    padding: 12px;
  }

  .gallery-stage {
    height: 58vh;
    min-height: 280px;
    padding: 12px 44px;
  }

  .gallery-prev,
  .gallery-next {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .gallery-prev {
    left: 8px;
  }

  .gallery-next {
    right: 8px;
  }

  .gallery-close {
    top: 8px;
    right: 8px;
  }

  .site-footer {
    margin-top: 40px;
    padding: 32px 18px;
  }

  .site-footer::after {
    right: 18px;
    bottom: 18px;
    width: 120px;
    height: 90px;
    opacity: 0.25;
  }

  .section-divider {
    width: min(100% - 36px, 1200px);
  }

  .footer-grid {
    gap: 22px;
  }

  .footer-contact a,
  .footer-social a,
  .footer-legal a {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
  }

  .footer-link-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.12);
  }

  .footer-bottom {
    margin-top: 22px;
    padding-top: 16px;
  }
}

@media (max-width: 480px) {
  .site-nav {
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .logo {
    font-size: 18px;
  }

  .menu-toggle {
    font-size: 30px;
  }

  .hero-3 h1 {
    font-size: 29px;
  }

  .contact-line {
    gap: 8px;
  }

  .hero-badge {
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0.03em;
    border-radius: 18px;
  }

  .contact-panel h3 {
    font-size: 18px;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .contact-panel h3 .contact-icon svg {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    max-width: 12px;
    max-height: 12px;
  }

  h2 {
    font-size: 26px;
  }

  .gallery-modal {
    padding: 10px;
  }

  .projects-3::before {
    width: 110px;
    height: 110px;
    opacity: 0.24;
  }

  .gallery-stage {
    min-height: 220px;
    padding: 10px 38px;
  }

  .gallery-caption {
    font-size: 14px;
  }

  .site-footer {
    padding: 28px 14px;
  }

  .footer-contact a,
  .footer-social a,
  .footer-legal a {
    padding: 9px 12px;
  }
}

.legal-page {
  min-height: 100vh;
}

.legal-main {
  padding: 132px 0 72px;
}

.legal-card {
  width: min(100% - 36px, 960px);
  margin: 0 auto;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(36, 42, 51, 0.96), rgba(27, 31, 39, 0.98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.legal-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  color: #ffd6bd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.1;
}

.legal-lead {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
}

.legal-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-section h2 {
  margin-bottom: 16px;
  font-size: 24px;
  text-align: left;
}

.legal-section h2::after {
  margin: 12px 0 0;
}

.legal-section p,
.legal-section li {
  color: var(--text);
}

.legal-section p + p,
.legal-section ul + p,
.legal-section p + ul {
  margin-top: 12px;
}

.legal-section ul {
  padding-left: 18px;
}

.legal-muted {
  color: var(--muted);
}

@media (max-width: 768px) {
  .legal-main {
    padding: 110px 0 52px;
  }

  .legal-card {
    width: min(100% - 24px, 960px);
    padding: 24px 18px;
    border-radius: 18px;
  }

  .legal-card h1 {
    font-size: 32px;
  }

  .legal-lead {
    font-size: 16px;
  }

  .legal-section h2 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
