:root {
  --ink: #161412;
  --muted: #6d645b;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --line: #ded6cc;
  --accent: #1d5a4d;
  --accent-dark: #133b34;
  --warm: #c7924f;
  --white: #ffffff;
  --transition-duration: 380ms;
  --transition-logo-size: 70px;
  --transition-overlay: 0.62;
  --transition-blur: 4px;
  --transition-logo-image: url("/assets/my-logo.png");
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: opacity 220ms ease, transform 220ms ease;
}

body.page-leaving {
  cursor: progress;
}

body.page-leaving main,
body.page-leaving .site-header,
body.page-leaving footer,
body.page-leaving .whatsapp-float,
body.page-leaving .ad-bubble {
  opacity: 0.58;
  transform: translateY(3px) scale(0.992);
  transition: opacity 260ms ease, transform 260ms ease;
}

body.page-leaving::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at 50% 47%, rgba(214, 165, 79, 0.16), transparent 30%),
    rgba(17, 24, 39, var(--transition-overlay));
  backdrop-filter: blur(var(--transition-blur));
  animation: pageVeil var(--transition-duration) ease both;
}

body.page-leaving::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10000;
  display: grid;
  width: var(--transition-logo-size);
  height: var(--transition-logo-size);
  margin: calc(var(--transition-logo-size) / -2) 0 0 calc(var(--transition-logo-size) / -2);
  place-items: center;
  border: 1px solid rgba(214, 165, 79, 0.48);
  border-radius: 20px;
  background:
    var(--transition-logo-image) center / cover no-repeat,
    rgba(17, 24, 39, 0.95);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.22), 0 0 30px rgba(214, 165, 79, 0.18);
  animation: loaderBadge calc(var(--transition-duration) * 2) cubic-bezier(.22,.61,.36,1) infinite alternate;
}

body.transition-fade.page-leaving::after {
  display: none;
}

body.transition-logo-stamp.page-leaving::after {
  border-radius: 999px;
  animation: loaderStamp var(--transition-duration) cubic-bezier(.2,.8,.2,1) both;
}

body.transition-logo-curtain.page-leaving::before {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, var(--transition-overlay))),
    radial-gradient(circle at 50% 42%, rgba(214, 165, 79, 0.18), transparent 32%);
  animation: curtainDrop var(--transition-duration) cubic-bezier(.2,.8,.2,1) both;
}

body.transition-logo-curtain.page-leaving::after {
  animation: curtainLogo var(--transition-duration) cubic-bezier(.2,.8,.2,1) both;
}

body.transition-logo-slide.page-leaving::before {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, var(--transition-overlay))),
    radial-gradient(circle at 28% 50%, rgba(214, 165, 79, 0.2), transparent 34%);
  animation: slideVeil var(--transition-duration) cubic-bezier(.2,.8,.2,1) both;
}

body.transition-logo-slide.page-leaving::after {
  animation: slideLogo var(--transition-duration) cubic-bezier(.2,.8,.2,1) both;
}

body.transition-logo-flip.page-leaving::after {
  transform-style: preserve-3d;
  animation: flipLogo calc(var(--transition-duration) * 1.15) cubic-bezier(.2,.8,.2,1) both;
}

body.transition-logo-pulse.page-leaving::after {
  animation: loaderBadge calc(var(--transition-duration) * 2) cubic-bezier(.22,.61,.36,1) infinite alternate;
}

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

main {
  animation: pageEnter 420ms ease both;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(33, 27, 22, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.solid { position: sticky; background: var(--paper); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--warm);
  background: #151515;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(199, 146, 79, 0.42);
}

.brand-mark.image-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  margin-left: auto;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

nav a,
.header-action,
.button,
.product-card a {
  text-decoration: none;
}

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

.header-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 15px;
  color: var(--white);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 800;
  margin-left: 24px;
}

button.header-action {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.lang-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--accent-dark);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 112px clamp(20px, 5vw, 72px) 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 820ms ease, transform 1400ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 15, 12, 0.78), rgba(18, 15, 12, 0.28) 48%, rgba(18, 15, 12, 0.05)),
    linear-gradient(0deg, rgba(18, 15, 12, 0.44), transparent 45%);
}

.hero-content {
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.9;
}

.page-hero h1 {
  max-width: 1040px;
  font-size: clamp(2.35rem, 5.4vw, 4.7rem);
  line-height: 0.98;
}

.lead,
.page-hero p,
.section-copy {
  color: inherit;
  font-size: clamp(1.04rem, 2vw, 1.32rem);
  line-height: 1.6;
}

.hero .lead { color: var(--white); max-width: 640px; }

.hero-actions,
.cta,
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.button.primary { color: var(--white); background: var(--accent); }
.button.secondary { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.68); }

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.intro-strip div {
  padding: 26px clamp(20px, 4vw, 44px);
  background: var(--paper);
}

.intro-strip strong,
.intro-strip span {
  display: block;
}

.intro-strip strong { margin-bottom: 8px; }
.intro-strip span { color: var(--muted); line-height: 1.5; }

.page {
  padding-top: 34px;
}

.page-hero,
.section,
.service-band,
.preview-grid,
.catalog-grid,
.reference-grid,
.toolbar,
.contact-layout,
.map-wrap {
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
}

.page-hero {
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: clamp(48px, 8vw, 92px);
}

.page-hero.compact { padding-bottom: 42px; }

.contact-hero {
  max-width: 1180px;
  padding-bottom: clamp(24px, 5vw, 48px);
}

.contact-hero h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 4.5vw, 4.05rem);
}

.contact-hero p {
  max-width: 720px;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
}

.section {
  padding-top: clamp(64px, 10vw, 112px);
  padding-bottom: 36px;
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1;
}

.preview-grid,
.catalog-grid,
.reference-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: clamp(64px, 10vw, 112px);
}

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

.process-grid {
  padding: 0 clamp(20px, 5vw, 72px) clamp(64px, 10vw, 112px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.product-card,
.reference-card,
.process-grid article,
.contact-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.product-card,
.reference-card,
.process-grid article {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover,
.reference-card:hover,
.process-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 111, 99, 0.34);
  box-shadow: 0 18px 48px rgba(33, 27, 22, 0.1);
}

.product-card img,
.reference-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-card div,
.reference-card div,
.process-grid article {
  padding: 24px;
}

.process-grid article {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.process-grid article img {
  width: 148px;
  height: 112px;
  border-radius: 6px;
  object-fit: cover;
}

.product-card span,
.reference-card span,
.process-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
}

.product-card h2,
.reference-card h2,
.process-grid h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.process-grid article h2 {
  font-size: 1rem;
}

.process-grid article p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.product-card p,
.reference-card p,
.process-grid p {
  color: var(--muted);
  line-height: 1.62;
}

.product-card a,
.catalog-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent-dark);
  font-weight: 850;
}

.catalog-link.disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.65;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 28px;
}

.filter {
  min-height: 40px;
  padding: 0 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.filter.active {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.service-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 48px;
  padding-top: clamp(64px, 10vw, 112px);
  padding-bottom: clamp(64px, 10vw, 112px);
  color: var(--white);
  background: var(--accent-dark);
}

.service-band .eyebrow { color: #ffc28b; }

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.steps li::before {
  content: counter(step);
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--accent-dark);
  background: #ffc28b;
  border-radius: 999px;
  font-weight: 900;
}

.cta {
  justify-content: space-between;
  background: var(--surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(320px, 1.22fr);
  align-items: stretch;
  gap: 16px;
  padding-bottom: 28px;
}

.contact-panel,
.contact-form {
  padding: clamp(20px, 3vw, 30px);
}

.contact-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-row span { color: var(--muted); font-size: 0.82rem; font-weight: 850; text-transform: uppercase; }
.contact-row a { color: var(--accent-dark); font-weight: 850; }
.contact-row p { margin: 0; line-height: 1.55; }
#contactHours { white-space: pre-line; }

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.map-wrap {
  padding-bottom: clamp(64px, 10vw, 112px);
}

.map-wrap iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 8px;
}

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(22, 18, 14, 0.58);
}

.promo-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1fr);
  width: min(860px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.promo-dialog img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.promo-dialog > div {
  padding: clamp(26px, 5vw, 48px);
}

.promo-dialog h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.promo-dialog p {
  color: var(--muted);
  line-height: 1.6;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button.secondary.light {
  color: var(--accent-dark);
  border: 1px solid var(--line);
  background: #fff;
}

.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ad-card .ad-actions a {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0;
  white-space: nowrap;
}

.promo-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: #1f8b63;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(31, 139, 99, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(31, 139, 99, 0.35);
  border-radius: inherit;
}

.whatsapp-float span,
.whatsapp-float svg {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #1f8b63;
  background: var(--white);
  border-radius: 999px;
  font-weight: 950;
}

.whatsapp-float svg {
  padding: 7px;
  fill: currentColor;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(31, 139, 99, 0.42);
}

.ad-bubble {
  position: fixed;
  z-index: 75;
}

.ad-custom {
  transform: translate(-50%, -50%);
}

.ad-custom.ad-open-left .ad-card {
  left: auto;
  right: 50%;
}

.ad-custom.ad-open-right .ad-card {
  left: 50%;
  right: auto;
}

.ad-bottom-left { left: 22px; bottom: 22px; }
.ad-bottom-left { bottom: calc(22px + var(--ad-offset, 0px)); }
.ad-bottom-right { right: 92px; bottom: calc(22px + var(--ad-offset, 0px)); }
.ad-top-left { left: 22px; top: calc(92px + var(--ad-offset, 0px)); }
.ad-top-right { right: 22px; top: calc(92px + var(--ad-offset, 0px)); }
.ad-center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ad-top-center { left: 50%; top: 92px; transform: translateX(-50%); }

.ad-bubble-button {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: var(--white);
  background: var(--warm);
  box-shadow: 0 16px 42px rgba(197, 129, 72, 0.32);
  cursor: pointer;
  animation: adPulse 2.8s ease-in-out infinite;
}

.ad-bubble-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-bubble-button span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.ad-card {
  position: absolute;
  left: 0;
  bottom: 86px;
  width: min(292px, calc(100vw - 44px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 56px rgba(33, 27, 22, 0.2);
  animation: cardIn 180ms ease both;
}

.ad-open-left .ad-card {
  left: auto;
  right: 0;
}

.ad-open-right .ad-card {
  left: 0;
  right: auto;
}

.ad-top-left .ad-card,
.ad-top-right .ad-card,
.ad-top-center .ad-card {
  top: 86px;
  bottom: auto;
}

.ad-bottom-right .ad-card,
.ad-top-right .ad-card {
  left: auto;
  right: 0;
}

.phone-popup {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 16, 14, 0.5);
}

.phone-dialog {
  position: relative;
  width: min(500px, 100%);
  padding: 26px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.phone-dialog h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  line-height: 1.1;
  white-space: nowrap;
}

.phone-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f0ebe4;
  cursor: pointer;
  font-weight: 900;
}

.ad-card > img {
  width: 100%;
  height: 112px;
  margin-bottom: 12px;
  border-radius: 6px;
  object-fit: cover;
}

.ad-card p {
  margin-bottom: 5px;
  color: var(--warm);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-card h2 {
  margin-bottom: 8px;
  font-size: 1.14rem;
  line-height: 1.14;
}

.ad-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.ad-card a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin-top: 12px;
  padding: 0 13px;
  color: var(--white);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.ad-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  cursor: pointer;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px) scale(0.996); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageVeil {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes loaderBadge {
  from { transform: translateY(2px) scale(0.96); opacity: 0.82; }
  to { transform: translateY(-2px) scale(1.01); opacity: 1; box-shadow: 0 24px 76px rgba(0, 0, 0, 0.26), 0 0 42px rgba(214, 165, 79, 0.26); }
}

@keyframes loaderStamp {
  0% { transform: scale(1.8) rotate(-10deg); opacity: 0; filter: blur(8px); }
  45% { transform: scale(0.88) rotate(2deg); opacity: 1; filter: blur(0); box-shadow: 0 0 0 10px rgba(214, 165, 79, 0.12), 0 30px 90px rgba(0, 0, 0, 0.32); }
  100% { transform: scale(1) rotate(0); opacity: 1; box-shadow: 0 0 0 3px rgba(214, 165, 79, 0.18), 0 24px 76px rgba(0, 0, 0, 0.28); }
}

@keyframes curtainDrop {
  from { clip-path: inset(0 0 100% 0); opacity: 0.92; }
  to { clip-path: inset(0); opacity: 1; }
}

@keyframes curtainLogo {
  from { transform: translateY(-44px) scale(0.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes slideVeil {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

@keyframes slideLogo {
  from { transform: translateX(-72px) scale(0.96); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes flipLogo {
  0% { transform: rotateY(-90deg) scale(0.88); opacity: 0; }
  55% { transform: rotateY(12deg) scale(1.03); opacity: 1; }
  100% { transform: rotateY(0) scale(1); opacity: 1; box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3), 0 0 40px rgba(214, 165, 79, 0.26); }
}

@keyframes adPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.04); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

footer {
  padding: 48px clamp(20px, 5vw, 72px) 22px;
  color: rgba(255, 255, 255, 0.72);
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(160px, 0.7fr));
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-inner section {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.footer-logo img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-inner h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-inner p {
  max-width: 330px;
  margin: 0;
  line-height: 1.8;
}

.footer-inner a,
.footer-inner span {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  line-height: 1.6;
}

.footer-inner a:hover {
  color: #e0b16f;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #e0b16f;
  font-weight: 900;
  font-size: 0.76rem;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social .icon-instagram {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom-row {
  max-width: 1180px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.footer-maker {
  justify-self: start;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.footer-maker:hover {
  color: var(--warm);
}

.footer-align-left { text-align: left; }
.footer-align-center { text-align: center; }
.footer-align-right { text-align: right; }

@media (max-width: 1060px) {
  .preview-grid,
  .catalog-grid,
  .reference-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    gap: 18px;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    overflow: hidden;
    max-width: 48vw;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-action { display: none; }

  .hero {
    min-height: 76vh;
    padding-top: 72px;
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.8rem);
    line-height: 0.94;
  }

  .page {
    padding-top: 0;
  }

  .page-hero {
    padding-top: 42px;
  }

  .page-hero h1,
  .contact-hero h1 {
    font-size: clamp(2rem, 10vw, 3.15rem);
    line-height: 1.02;
  }

  .intro-strip,
  .split,
  .service-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .map-wrap iframe {
    min-height: 320px;
  }
}

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

@media (max-width: 700px) {
  .promo-popup {
    align-items: start;
    overflow-y: auto;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  .promo-dialog {
    grid-template-columns: 1fr;
    margin: auto 0;
    width: min(100%, 420px);
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
  }

  .promo-dialog img {
    min-height: 180px;
    max-height: 240px;
  }

  .promo-dialog h2 {
    font-size: clamp(1.45rem, 8vw, 2.15rem);
  }
}

@media (max-width: 580px) {
  .preview-grid,
  .catalog-grid,
  .reference-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .hero-actions,
  .promo-actions {
    width: 100%;
  }

  .hero-content {
    max-width: 100%;
  }

  .lead,
  .page-hero p,
  .section-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .intro-strip div,
  .product-card div,
  .reference-card div,
  .process-grid article,
  .contact-panel,
  .contact-form {
    padding: 18px;
  }

  .product-card img,
  .reference-card img {
    height: 210px;
  }

  .toolbar {
    gap: 8px;
  }

  .filter {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  footer {
    flex-direction: column;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
  }

  .whatsapp-float strong {
    max-width: 158px;
    font-size: 0.82rem;
  }

  .ad-bubble {
    left: 14px;
    bottom: 14px;
  }

  .ad-custom {
    left: auto !important;
    right: 14px !important;
    top: auto !important;
    bottom: calc(86px + env(safe-area-inset-bottom)) !important;
    transform: none;
  }

  .ad-custom .ad-card,
  .ad-custom.ad-open-left .ad-card,
  .ad-custom.ad-open-right .ad-card,
  .ad-bottom-right .ad-card,
  .ad-top-right .ad-card {
    left: auto;
    right: 0;
    width: min(292px, calc(100vw - 28px));
    max-height: min(420px, calc(100dvh - 150px));
    overflow-y: auto;
  }

  .ad-top-left .ad-card,
  .ad-top-right .ad-card,
  .ad-top-center .ad-card {
    top: auto;
    bottom: 72px;
  }

  .ad-bubble-button {
    width: 58px;
    height: 58px;
  }

  .ad-card .ad-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .process-grid article {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .process-grid article img {
    width: 112px;
    height: 92px;
  }

  .phone-dialog {
    padding: 22px;
  }

  .phone-dialog h2 {
    white-space: normal;
  }

  .footer-bottom {
    text-align: left;
  }

  .footer-bottom-row {
    grid-template-columns: 1fr;
  }

  .footer-maker {
    order: 2;
  }
}

@media (max-width: 400px) {
  .site-header {
    padding-inline: 12px;
  }

  .brand span {
    max-width: 42vw;
  }

  h1 {
    font-size: clamp(2.25rem, 15vw, 3.3rem);
  }

  .hero {
    min-height: 72vh;
  }

  .promo-popup {
    padding: 12px;
  }

  .promo-dialog > div {
    padding: 22px;
  }

  .ad-card {
    width: min(276px, calc(100vw - 28px));
  }
}
