:root {
  --red: #e11d12;
  --navy: #1b2330;
  --ink: #1c1c1c;
  --r: 10px;
  --page-inner: min(1400px, 96%);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  overflow-x: hidden;
}
body {
  font-family:
    Poppins,
    system-ui,
    Segoe UI,
    Arial,
    sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: min(1100px, 92%);
  margin: auto;
}
h2.t {
  color: var(--red);
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
p.sub {
  text-align: center;
  max-width: 720px;
  margin: 0.4rem auto 1.6rem;
}
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: 15px;
  padding-bottom: 5px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px #0002;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--page-inner);
  margin-inline: auto;
  min-height: 60px;
  height: auto;
}
.bar img.logo {
  height: clamp(30px, 5vw, 70px);
  width: auto;
  max-width: min(240px, 48vw);
  object-fit: contain;
}
nav {
  display: flex;
  gap: clamp(0.8rem, 2vw, 2rem);
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  padding-top: 0;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  white-space: nowrap;
}
nav a:hover {
  color: var(--red);
}
.lang {
  display: flex;
  gap: 0.5rem;
}
.lang button {
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
  line-height: 0;
  opacity: 0.55;
}
.lang button.on {
  opacity: 1;
  border-color: var(--red);
}
.lang img {
  width: 28px;
  height: 19px;
  object-fit: cover;
}
.burger {
  display: none;
  background: none;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
}
.hero {
  min-height: 100vh;
  min-height: 100svh;
  scroll-margin-top: 0;
  background:
    linear-gradient(#0000 40%, #0006),
    url(assets/hero.jpg) center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.hero .wrap {
  width: 100%;
  margin: 0;
}
.hero .box {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(-10px);
  padding: 1.2rem 4%;
  margin: 0;
  max-width: none;
  border-radius: 0;
}
.hero h1 {
  color: var(--red);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  margin-bottom: 0.6rem;
}
.hero p {
  text-align: justify;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  max-width: 680px;
}
.btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--red);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.btn:hover {
  background: #b8150c;
}
.btn.wa {
  padding: 0;
  background: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.btn.wa:hover {
  background: none;
}
.btn.wa:active {
  cursor: grabbing;
}
.btn.wa img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.sec {
  padding: 0.92rem 0;
}
body[data-page="home"] {
  scroll-snap-type: y proximity;
}
.hero,
#services {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
#services {
  --header-h: 98px;
  background:
    linear-gradient(#fffffff2 45%, #fff0 78%),
    url(assets/bg-flag.jpg) bottom center / 100% auto no-repeat;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  padding: var(--header-h) 0 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  scroll-margin-top: 0;
  text-align: center;
  overflow: hidden;
}
#services > .btn {
  display: table;
  margin: 1rem auto 0;
}
.slider {
  overflow: hidden;
  flex: 0 1 auto;
  min-height: 0;
  padding: 0.35rem 0 0.7rem;
  mask: linear-gradient(90deg, #0000, #000 6%, #000 94%, #0000);
}
.track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: slide 45s linear infinite;
}
.slider:hover .track {
  animation-play-state: paused;
}
@keyframes slide {
  to {
    transform: translateX(calc(-50% - 0.6rem));
  }
}
.card {
  width: clamp(220px, 25vw, 250px);
  flex: none;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  padding: 0;
  overflow: hidden;
  transition: 0.25s;
}
.card img {
  width: 100%;
  height: auto;
  max-height: calc(100svh - 22rem);
  display: block;
  object-fit: contain;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px #0004;
}
.hint {
  text-align: center;
  font-size: 0.85rem;
  color:white;
  font-weight: 900;
}

#clients {
  background: #fff;
  scroll-margin-top: 90px;
}
.contact-page {
  --header-h: 98px;
  margin-top: 150px;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  scroll-margin-top: 0;
}
.clients-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) 0 1.2rem;
  min-height: 0;
}
.clients-block .wrap {
  width: min(1180px, 94%);
}
.client-slider {
  display: grid;
  gap: 0.4rem;
}
.client-row {
  overflow: hidden;
  padding: 12px 0;
  mask: linear-gradient(90deg, #0000, #000 7%, #000 93%, #0000);
}
.client-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.client-track--left {
  animation: client-left 36s linear infinite;
}
.client-track--right {
  animation: client-right 36s linear infinite;
}
.client-row:hover .client-track {
  animation-play-state: paused;
}
.client-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
}
.client-card {
  width: clamp(120px, 38vw, 200px);
  height: clamp(72px, 22vw, 96px);
  flex: none;
  background: none;
  border: 0;
  outline: 0;
  border-radius: 8px;
  box-shadow: none;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}
.client-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.55rem 0.7rem;
}
@keyframes client-left {
  to {
    transform: translateX(-50%);
  }
}
@keyframes client-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
.contact-page footer {
  flex: 0 0 auto;
  padding: clamp(1rem, 2.4vh, 1.8rem) 0 0.6rem;
}
.contact-page footer .wrap {
  width: var(--page-inner);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.contact-page .copy {
  margin-top: 0.9rem;
  padding-bottom: 0.2rem;
}
#price {
  background:
    linear-gradient(#fffa, #fff8),
    url(assets/bg-price.jpg) center / cover no-repeat;
  min-height: 80vh;
}
body[data-page="price"] #price {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 3rem;
}
form {
  max-width: 640px;
  margin: auto;
  background: transparent;
  padding: 1.4rem;
  border-radius: var(--r);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
form .full {
  grid-column: 1/-1;
}
input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
  background: #fffd;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--red);
  border-color: transparent;
}
form button {
  background: #2b2f36;
}
.note {
  color: var(--red);
  font-size: 0.85rem;
}
footer {
  background:
    linear-gradient(#1b2330ea, #1b2330ea),
    url(assets/bg-footer.jpg) center / cover no-repeat;
  color: #fff;
  padding: 1rem 0 1rem;
}
footer > .wrap {
  width: var(--page-inner);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.fgrid {
  display: grid;
  grid-template-columns: max-content 1fr 1.3fr max-content;
  column-gap: clamp(1.2rem, 3vw, 2.8rem);
  row-gap: 1.2rem;
  align-items: start;
}
.fgrid > div:nth-child(1) {
  justify-self: start;
}
.fgrid > div:nth-child(2) {
  justify-self: center;
}
.fgrid > div:nth-child(3) {
  justify-self: center;
  max-width: none;
}
footer h4 {
  color: #ff3b30;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
footer li {
  list-style: none;
  font-size: 0.92rem;
}
footer .qr {
  width: clamp(100px, 30vw, 150px);
  height: auto;
  background: #fff;
  padding: 6px;
  border-radius: 10px;
  justify-self: end;
}
footer a:hover {
  color: #ff3b30;
}
.copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 2rem;
}
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: none;
  box-shadow: none;
  transition: 0.2s;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.fab:active {
  cursor: grabbing;
}
.fab img {
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.fab:hover {
  transform: scale(1.1);
}
body[data-page="certs"] .fab {
  display: none;
}

/* Certificates page */
.cert-page {
  margin-top: 20px;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 108px 0 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.cert-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  z-index: 0;
}

.cert-page > .wrap {
  position: relative;
  z-index: 1;
  width: min(2000px, 100%);
  margin: 0 auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.panel {
  background: linear-gradient(
    rgba(247, 250, 252, 0.96) 0%,
    rgba(247, 250, 252, 0.94) 72%,
    rgba(247, 250, 252, 0.72) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin: 0 auto;
  width:80%;
  transform: translateX(-63%);
  left: 50%;
  position: relative;
}

.panel h1 {
  background: #c8e0eb;
  text-align: center;
  padding: 0.95rem 1.2rem;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: #16324a;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.pick {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 2rem 0.15rem;
  flex-wrap: wrap;
  background: transparent;
  color: #1b2b3a;
}

.pick img {
  width: clamp(36px, 10vw, 44px);
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 4px #0002;
  object-fit: contain;
}

.pick select {
  max-width: 260px;
  flex: 1 1 180px;
  background: #fff;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 2rem;
  padding: 0.45rem 2rem 1.4rem;
  background: transparent;
}

.cols h3 {
  font-size: 0.98rem;
  margin: 0.65rem 0 0.35rem;
  color: #12293c;
  font-weight: 700;
}

.cols h3:first-child {
  margin-top: 0;
}

.cols label {
  display: flex;
  gap: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 0.1rem 0;
  cursor: pointer;
  align-items: flex-start;
  color: #243746;
}

.cols label:hover {
  color: #0f2436;
}

.cols input {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  min-width: 15px;
  padding: 0;
  flex-shrink: 0;
  margin: 0.15rem 0 0;
  border: 1.5px solid #8b9bab;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
}

.cols input:focus {
  outline: 2px solid #16324a;
  outline-offset: 1px;
  border-color: #16324a;
}

.cols input:checked {
  background-color: #16324a;
  border-color: #16324a;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='white' stroke-width='2' d='M2 6l3 3 5-6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.cert-wa {
  position: absolute;
  right: clamp(16px, 3.5vw, 40px);
  bottom: clamp(16px, 4vh, 36px);
  z-index: 2;
  margin: 0;
}

.cert-wa img {
  width: clamp(52px, 8vw, 64px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
}

.back {
  color: #16324a;
  display: block;
  width: 80%;
  margin: 0 auto 0.55rem;
  font-weight: 600;
  text-shadow: 0 1px 0 #fff8;
  position: relative;
  left: 50%;
  transform: translateX(-63%);
}

@media (max-width: 1100px) {
  :root {
    --page-inner: min(1400px, 94%);
  }
}

@media (max-width: 900px) {
  .burger {
    display: block;
  }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 8px 12px #0002;
    display: none;
  }
  nav.open {
    display: flex;
  }
  nav a {
    padding: 0.7rem 0;
    font-size: 1rem;
  }
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
  footer .qr {
    grid-column: 2;
    justify-self: end;
  }
  .cols {
    grid-template-columns: 1fr 1fr;
  }
  .contact-page {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
}

@media (max-width: 768px) {
  header {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .hero {
    min-height: 100svh;
    background-position: center 30%;
  }
  .hero .box {
    padding: 1.1rem 5%;
  }
  .sec {
    padding: 2.4rem 0;
  }
  #services {
    --header-h: 84px;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: var(--header-h) 0 1.6rem;
    background-size: auto, 100% auto;
    background-position: center, bottom center;
    scroll-snap-align: none;
  }
  body[data-page="home"] {
    scroll-snap-type: none;
  }
  #clients {
    padding-bottom: 2rem;
  }
  h2.t {
    font-size: 1.25rem;
  }
  p.sub {
    max-width: 92%;
    font-size: 0.92rem;
  }
  .card {
    width: clamp(128px, 36vw, 168px);
  }
  .client-card {
    width: clamp(118px, 42vw, 160px);
    height: clamp(70px, 22vw, 88px);
  }
  .client-group {
    gap: 0.9rem;
    padding-right: 0.9rem;
  }
  .track {
    animation-duration: 35s;
  }
  form {
    grid-template-columns: 1fr;
    padding: 0.8rem 0;
  }
  body[data-page="price"] #price {
    padding: 110px 0 2rem;
    min-height: auto;
  }
  footer {
    padding: 2rem 0 1rem;
    background-position: center bottom;
  }
  footer .qr {
    width: 96px;
  }
  .fab {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 14px;
  }
  .cert-page {
    padding: 92px 0 0;
    overflow: auto;
    min-height: 100svh;
  }
  .cert-bg {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .cert-page > .wrap {
    width: min(1200px, 94%);
  }
  .cols {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.6rem 1.1rem 1.2rem;
  }
  .pick {
    padding: 0.7rem 1.1rem 0.15rem;
  }
  .cert-wa {
    position: fixed;
  }
}

@media (max-width: 700px) {
  .fgrid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(1100px, 94%);
  }
  .hero h1 {
    font-size: 1.15rem;
  }
  .hero p {
    font-size: 0.86rem;
  }
  .hint {
    font-size: 0.75rem;
    padding: 0 0.8rem;
  }
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.92rem;
  }
  .cols {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0.5rem 1rem 1.1rem;
  }
  .panel h1 {
    font-size: 1.05rem;
    padding: 0.8rem;
  }
  .cols label {
    font-size: 0.86rem;
  }
  .pick select {
    max-width: none;
  }
  .copy {
    margin-bottom: 1.2rem;
    margin-top:0.19rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track {
    animation: none;
  }
  .client-track {
    animation: none;
  }
  .slider {
    overflow-x: auto;
  }
}


/* ========================================
   FIX 2: CLIENTS + FOOTER - SHOW ALL CONTENT
======================================== */

.contact-page {
  padding-top: 1rem;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
  box-sizing: border-box;
}

.contact-page .clients-block {
  flex: 0 0 auto;
  min-height: 0;
}

