:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --ink: #17212b;
  --muted: #667586;
  --line: #dbe3ec;
  --navy: #10263d;
  --navy-2: #183958;
  --blue: #1468c9;
  --blue-2: #0b4ea2;
  --red: #c9252d;
  --red-2: #9f1821;
  --cyan: #49b7d8;
  --gold: #c8a154;
  --whatsapp: #20c267;
  --shadow: 0 22px 60px rgba(16, 38, 61, 0.14);
  --shadow-soft: 0 14px 34px rgba(16, 38, 61, 0.09);
  --radius: 8px;
  --container: 1180px;
  --header: 82px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header);
  background: rgba(246, 248, 251, 0.82);
  border-bottom: 1px solid rgba(219, 227, 236, 0.9);
  backdrop-filter: blur(18px);
}

.navbar {
  position: relative;
  min-height: var(--header);
  display: grid;
  grid-template-columns: 260px 1fr 190px;
  align-items: center;
  gap: 18px;
}

.logo-link {
  width: 238px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
}

.site-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-logo.is-missing {
  display: none;
}

.site-logo--header {
  max-height: 68px;
}

.nav-menu {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 7px;
  list-style: none;
  border: 1px solid rgba(219, 227, 236, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(16, 38, 61, 0.08);
}

.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: #34465a;
  font-size: 0.91rem;
  font-weight: 820;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--blue));
  transform: translateY(-1px);
}

.header-call {
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--blue));
  box-shadow: 0 14px 30px rgba(20, 104, 201, 0.26);
  font-weight: 900;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  overflow: hidden;
  background: linear-gradient(90deg, #071b31 0%, #12385e 34%, #1769d2 72%, #9bd4ff 100%);
}

.hero__media,
.hero__mesh {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.06) contrast(1) brightness(1.02);
  animation: heroDrift 16s ease-in-out infinite alternate;
  object-position: center 48%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 27, 49, 0.82) 0%,
      rgba(18, 56, 94, 0.7) 34%,
      rgba(23, 105, 210, 0.46) 72%,
      rgba(155, 212, 255, 0.22) 100%
    ),
    linear-gradient(90deg, rgba(2, 10, 20, 0.22), rgba(18, 56, 94, 0.08) 58%, rgba(155, 212, 255, 0)),
    radial-gradient(circle at 84% 20%, rgba(175, 224, 255, 0.14), transparent 38%);
}

.hero__mesh {
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 76%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 64px;
  align-items: end;
  padding: 112px 0 84px;
}

.hero__content {
  max-width: 820px;
  padding: 22px 24px 24px 0;
  border-radius: var(--radius);
  background: transparent;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .section-kicker {
  color: #ffe2a0;
  font-size: 0.88rem;
  text-shadow: 0 2px 8px rgba(39, 20, 38, 0.32);
}

.brand-word--red,
.brand-word--blue {
  display: inline;
}

.brand-word--red {
  color: #ff4a52;
}

.brand-word--blue {
  color: #58a8ff;
}

.hero .brand-word--red,
.hero .brand-word--blue {
  color: #ffffff;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

.hero h1,
.section-heading h2,
.intro-grid h2,
.process-panel h2,
.cta-inner h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 900px;
  color: #ffffff;
  font-size: clamp(2.65rem, 5.6vw, 5.2rem);
  text-shadow: 0 3px 14px rgba(8, 18, 34, 0.48);
}

.hero__text {
  max-width: 720px;
  margin: 24px 0 0;
  color: #f2f7fc;
  font-size: 1.13rem;
  text-shadow: 0 2px 12px rgba(8, 18, 34, 0.42);
}

.hero__actions,
.hero-board__phones,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin-top: 34px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

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

.btn--glass {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 24px rgba(20, 48, 96, 0.18);
  backdrop-filter: blur(14px);
}

.btn--outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(16, 38, 61, 0.42);
  backdrop-filter: blur(10px);
}

.btn--blue {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 16px 34px rgba(20, 104, 201, 0.26);
}

.btn--red {
  color: #ffffff;
  background: linear-gradient(135deg, #e0182b, #a71928);
  box-shadow: 0 12px 26px rgba(166, 24, 38, 0.24);
}

.btn--whatsapp {
  color: #ffffff;
  background: var(--whatsapp);
  box-shadow: 0 16px 34px rgba(32, 194, 103, 0.24);
}

.hero-board {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(145deg, rgba(18, 56, 94, 0.34), rgba(31, 95, 174, 0.22));
  box-shadow: 0 20px 48px rgba(16, 38, 80, 0.22);
  backdrop-filter: blur(16px);
}

.hero-board__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px 6px;
}

.hero-board__top span {
  color: #d8e3ee;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-board__top strong {
  font-size: 0.9rem;
}

.hero-board__rows {
  display: grid;
  gap: 8px;
}

.hero-board__rows div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(18, 56, 94, 0.36);
}

.hero-board__rows span,
.service-card span,
.process-item span {
  color: #ffcc74;
  font-weight: 950;
}

.hero-board__rows p {
  margin: 0;
  font-weight: 850;
}

.hero-board__phones {
  padding-top: 4px;
}

.hero-board__phones a {
  flex: 1 1 150px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.intro-grid h2,
.process-panel h2,
.cta-inner h2 {
  color: var(--navy);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.section-heading p,
.intro-card,
.process-panel p,
.process-item p {
  color: var(--muted);
}

.section-heading p {
  margin: 12px 0 0;
}

.intro-section {
  background: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.intro-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, #f4f7fb);
  box-shadow: var(--shadow-soft);
}

.intro-card p:first-child {
  margin-top: 0;
}

.services-section,
.gallery-section,
.references-section,
.certificate-section {
  background:
    linear-gradient(180deg, #f6f8fb, #eef3f8);
}

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

.service-grid--final {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  min-height: 430px;
  display: grid;
  grid-template-rows: 190px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-card div {
  padding: 22px;
}

.service-card h3 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.18;
}

.references-section {
  border-top: 1px solid var(--line);
}

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

.reference-item {
  min-height: 82px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.reference-item span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--red), var(--blue));
}

.reference-item span::before {
  content: "";
  width: 15px;
  height: 18px;
  display: block;
  background:
    linear-gradient(#fff 0 0) 2px 4px / 3px 3px no-repeat,
    linear-gradient(#fff 0 0) 8px 4px / 3px 3px no-repeat,
    linear-gradient(#fff 0 0) 2px 10px / 3px 3px no-repeat,
    linear-gradient(#fff 0 0) 8px 10px / 3px 3px no-repeat,
    rgba(255, 255, 255, 0.24);
  border: 2px solid #fff;
}

.reference-item strong {
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.2;
}

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

.process-section {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(16, 38, 61, 0.98), rgba(14, 57, 93, 0.94));
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.process-panel h2,
.process-panel p {
  color: #ffffff;
}

.process-panel p {
  max-width: 560px;
  color: #d8e3ee;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.process-item p {
  grid-column: 2;
  margin: -6px 0 0;
  color: #d8e3ee;
}

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

.gallery-grid figure {
  position: relative;
  min-height: 250px;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dbe3ec;
  box-shadow: var(--shadow-soft);
}

.gallery-grid button,
.certificate-card {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.42s ease, filter 0.42s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-grid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(16, 38, 61, 0.82);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.cta-strip {
  padding: 76px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #071b31 0%, #12385e 34%, #1769d2 72%, #9bd4ff 100%);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.cta-inner h2 {
  max-width: 820px;
  color: #ffffff;
}

.cta-inner p:not(.section-kicker) {
  max-width: 660px;
  margin: 12px 0 0;
  color: #d8e3ee;
}

.certificate-grid,
.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  gap: 34px;
  align-items: center;
}

.certificate-grid p,
.video-grid p {
  color: var(--muted);
}

.certificate-card {
  max-width: 340px;
  justify-self: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.certificate-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.video-section {
  background: #ffffff;
}

.video-card {
  width: min(100%, 560px);
  justify-self: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  background: #000;
}

.contact-section {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: stretch;
}

.contact-card,
.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.contact-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.contact-row .icon-svg {
  width: 27px;
  height: 27px;
  color: var(--blue);
}

.contact-row .icon-svg--whatsapp {
  color: #25d366;
}

.contact-row .icon-svg--pin {
  color: var(--red);
}

.contact-socials,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-socials a,
.footer-socials a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--blue));
  font-weight: 900;
}

.contact-socials a svg,
.footer-socials a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.contact-socials .social-link--facebook {
  background: #1877f2;
}

.contact-socials .social-link--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af 72%, #515bd4);
}

.contact-row span {
  display: grid;
  gap: 2px;
  color: var(--muted);
}

.contact-row strong {
  color: var(--ink);
}

.contact-map-link {
  width: 100%;
}

.map-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #dbe3ec;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  border: 0;
}

.map-card__overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  max-width: 520px;
  padding: 16px;
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(16, 38, 61, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.map-card__overlay span {
  color: var(--gold);
  font-weight: 900;
}

.map-card__overlay strong {
  line-height: 1.25;
}

.map-card__overlay a {
  width: max-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--navy);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(16, 38, 61, 0.24);
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

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

.floating-btn svg {
  width: 27px;
  height: 27px;
}

.floating-btn--phone {
  background: var(--blue);
}

.floating-btn--whatsapp {
  background: var(--whatsapp);
}

.floating-btn--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 46%, #8134af 74%, #515bd4);
}

.floating-btn--facebook {
  background: #1877f2;
}

.floating-btn--top {
  opacity: 0;
  pointer-events: none;
  background: var(--navy);
}

.floating-btn--top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.site-footer {
  padding: 56px 0 24px;
  color: #d8e3ee;
  background:
    linear-gradient(135deg, #081725, #0d2236 58%, #10263d);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(180px, 0.55fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.footer-brand-panel,
.footer-column,
.footer-contact {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.footer-brand-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 20px;
}

.footer-brand-panel.is-missing {
  display: none;
}

.site-logo--footer {
  width: min(100%, 330px);
  max-height: 108px;
  justify-self: start;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #edf3f8);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.footer-brand-panel p,
.footer-contact span {
  margin: 0;
  color: #cbd7e3;
}

.footer-brand-panel strong {
  color: #ffffff;
  font-size: 1.04rem;
}

.footer-column,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
}

.footer-column h3,
.footer-contact h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a,
.footer-contact a {
  color: #ffffff;
  font-weight: 850;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(5, 15, 25, 0.86);
}

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

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-bottom a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aebdca;
  font-size: 0.92rem;
  line-height: 1.45;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #ffffff;
  font-weight: 900;
}

.reveal {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes heroDrift {
  from { transform: scale(1); }
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .navbar {
    grid-template-columns: 210px 1fr 170px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    grid-template-rows: 260px auto;
  }

  .reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__inner,
  .intro-grid,
  .process-grid,
  .contact-grid,
  .cta-inner,
  .certificate-grid,
  .video-grid,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .hero-board {
    max-width: 680px;
  }
}

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

  .logo-link {
    width: 178px;
    min-height: 58px;
  }

  .site-logo--header {
    max-height: 58px;
  }

  .header-call {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: var(--header);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: var(--radius);
  }

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

  .nav-link {
    width: 100%;
    border-radius: var(--radius);
  }

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

  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root { --header: 70px; }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero {
    min-height: auto;
  }

  .hero__media img {
    object-position: 54% center;
  }

  .hero__media::after {
    background:
      linear-gradient(
        92deg,
        rgba(7, 27, 49, 0.84) 0%,
        rgba(18, 56, 94, 0.72) 36%,
        rgba(23, 105, 210, 0.48) 74%,
        rgba(155, 212, 255, 0.24) 100%
      ),
      linear-gradient(90deg, rgba(2, 10, 20, 0.26), rgba(18, 56, 94, 0.1) 62%, rgba(155, 212, 255, 0)),
      radial-gradient(circle at 84% 18%, rgba(175, 224, 255, 0.12), transparent 36%);
  }

  .hero__inner {
    padding: 34px 0 24px;
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.45rem);
    line-height: 1.02;
  }

  .hero__content {
    padding: 0;
    background: transparent;
  }

  .hero__text {
    margin-top: 14px;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .hero .section-kicker {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .hero__actions,
  .cta-actions {
    flex-direction: column;
  }

  .hero__actions {
    margin-top: 18px;
  }

  .btn {
    width: 100%;
  }

  .hero .btn {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 0.86rem;
  }

  .hero-board {
    gap: 8px;
    padding: 8px;
  }

  .hero-board__top {
    padding: 8px 8px 2px;
  }

  .hero-board__rows div {
    grid-template-columns: 34px 1fr;
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .hero-board__phones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-board__phones a {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.78rem;
  }

  .section {
    padding: 64px 0;
  }

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

  .service-card {
    min-height: 0;
    grid-template-rows: 230px auto;
  }

  .gallery-grid figure {
    min-height: 210px;
  }

  .process-item {
    grid-template-columns: 42px 1fr;
  }

  .contact-card {
    padding: 16px;
  }

  .map-card,
  .map-card iframe {
    min-height: 340px;
  }

  .map-card__overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
  }

  .map-card__overlay a {
    width: 100%;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
  }

  .floating-btn {
    width: 46px;
    height: 46px;
  }

  .floating-btn svg {
    width: 22px;
    height: 22px;
  }

  .certificate-card {
    max-width: 270px;
  }

  .video-card {
    width: min(100%, 330px);
    padding: 8px;
  }

  .reference-item {
    min-height: 64px;
    padding: 12px;
  }

  .footer-brand-panel {
    padding: 18px;
  }

  .site-logo--footer {
    width: min(100%, 280px);
    max-height: 120px;
    justify-self: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .footer-bottom p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .footer-bottom a {
    font-weight: 800;
  }
}

@media (max-width: 390px) {
  .logo-link {
    width: 160px;
  }
}
