/*
Theme Name: Palma Ads
Description: Простая одностраничная тема Palma Ads с поддержкой ACF.
Version: 1.2.0
Text Domain: palma-ads
*/

:root {
  --bg: #050d16;
  --panel: #091725;
  --blue: #079cf0;
  --text: #f7f9fc;
  --muted: #a7b1bd;
  --line: rgba(102, 167, 215, 0.25);
  --wrap: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #050d16;
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: min(calc(100% - 48px), var(--wrap));
  margin: auto;
}

.header {
  height: 82px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #060d15;
}

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

.logo img {
  display: block;
  width: 164px;
  height: 40px;
  object-fit: contain;
}

.links {
  display: flex;
  align-items: center;
  gap: 38px;
  color: #c8d0d9;
  font-size: 14px;
}

.links a:hover {
  color: #fff;
}

.header-btn {
  padding: 14px 20px;
  border: 1px solid #0088cc;
  border-radius: 9px;
  color: #72caff;
  font-size: 11px;
  font-weight: 700;
  transition: 0.25s;
}

.header-btn:hover {
  background: #0088cc;
  color: #fff;
}

.hero {
  position: relative;
  min-height: 775px;
  text-align: center;
  overflow: hidden;
  background: #06101b;
}

.hero-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 435px;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 14, 0) 64%, #06101b 100%),
    url("assets/images/hero.webp");
  background-size: cover;
  background-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 38%,
    rgba(6, 16, 27, 0.38) 54%,
    #06101b 78%
  );
}

.hero-content {
  position: relative;
  padding-top: 390px;
}

.hero h1 {
  margin: 0 auto 25px;
  max-width: 790px;
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero p {
  margin: 0 auto 34px;
  color: #b7c1cd;
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 285px;
  min-height: 62px;
  padding: 0 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #08a8ff, #078fe5);
  box-shadow: 0 14px 42px rgba(0, 145, 230, 0.25);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.035em;
  transition: 0.25s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 145, 230, 0.4);
}

.btn svg {
  width: 20px;
  fill: #fff;
}

.arrow {
  width: 22px;
  height: 22px;
  margin: 62px auto 0;
  border-right: 2px solid #9da9b5;
  border-bottom: 2px solid #9da9b5;
  transform: rotate(45deg);
}

.trust {
  background: #0a1828;
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.trust-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #aeb8c4;
  font-size: 13px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.trust-item svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #139ff0;
  stroke-width: 1.7;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8ba0b4;
}

.metrics-section {
  padding: 62px 0 78px;
  background:
    radial-gradient(circle at 50% 5%, rgba(0, 136, 204, 0.08), transparent 30%),
    #050d16;
}

.head {
  text-align: center;
  margin-bottom: 42px;
}

.eyebrow {
  color: #0ba5fa;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.head h2 {
  margin: 14px auto 0;
  max-width: 600px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  min-height: 350px;
  padding: 40px 25px 30px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #0d223a 0%, #08192c 55%, #040d19 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.icon {
  height: 80px;
  margin-bottom: 24px;
  color: #079cf0;
}

.icon svg {
  width: 78px;
  height: 78px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.number {
  display: block;
  font-size: 62px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.label {
  display: block;
  margin: 13px 0 18px;
  color: #0ba5fa;
  font-size: 13px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: #aab4c0;
  font-size: 14px;
  line-height: 1.55;
}

.cta-box {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #0088cc;
  border-radius: 8px 8px 0 0;
  background:
    radial-gradient(circle at 50% 0, rgba(0, 136, 204, 0.11), transparent 42%),
    linear-gradient(145deg, #081a2d, #040c16);
}

.cta h2 {
  margin: 0 0 28px;
  max-width: 570px;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.cta .btn {
  min-height: 58px;
  min-width: 294px;
}

.footer {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050c14;
  color: #9ba6b2;
  font-size: 13px;
}

@media (max-width: 900px) {
  .links {
    display: none;
  }

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

  .hero h1 {
    font-size: 58px;
  }
}

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

  .header {
    height: 68px;
  }

  .logo img {
    width: 135px;
  }

  .header-btn {
    padding: 11px 12px;
    font-size: 9px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-bg {
    height: 320px;
    background-position: center top;
  }

  .hero-content {
    padding-top: 292px;
  }

  .hero h1 {
    font-size: 42px;
    max-width: 390px;
  }

  .hero p {
    max-width: 350px;
    font-size: 15px;
    line-height: 1.5;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .arrow {
    margin-top: 44px;
  }

  .trust-row {
    padding: 23px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .dot {
    display: none;
  }

  .metrics-section {
    padding-top: 54px;
  }

  .head h2 {
    font-size: 34px;
  }

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

  .card {
    min-height: 320px;
  }

  .cta-box {
    padding: 55px 20px;
  }

  .cta h2 {
    font-size: 32px;
  }

  .footer {
    text-align: center;
  }
}

/* Scroll animations */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

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

.js .card.reveal-on-scroll:nth-child(2) {
  transition-delay: 0.08s;
}

.js .card.reveal-on-scroll:nth-child(3) {
  transition-delay: 0.16s;
}

.js .card.reveal-on-scroll:nth-child(4) {
  transition-delay: 0.24s;
}

.card {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(7, 156, 240, 0.65);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

.clock-icon circle,
.clock-icon path {
  vector-effect: non-scaling-stroke;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal-on-scroll,
  .card,
  .btn {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
