/* Go4Pro демо. Размерите са измерени от модела (dokumenti/referencia), цветовете са от логото. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0c2459;       /* тъмното от логото: заглавия, кръгъл бутон, стрелка */
  --blue: #1b5cf0;       /* синьото от логото: само действие и акцент */
  --blue-hover: #1549c4;
  --text: rgb(63, 71, 73);
  --shape: #eef3fe;
  --ink: #0a1a3d;        /* тъмният тон на първия екран */
  /* плавна стойност между 320 и 1200 px, както при модела */
  --fluid: clamp(0px, calc((100vw - 320px) / 880), 1px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html { background: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #000;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  /* обикновена кирилица, без българските форми на буквите */
  font-feature-settings: "locl" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1 0 auto; background: #fff; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Хедър */

/* стои върху видеото, скролира се със страницата */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }

.header__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 15px;
}

.header__cont {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
}

.logo {
  flex: 0 0 144px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 33.6px;
  text-decoration: none;
  color: #fff;
}

.logo__mark {
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.6px;
}
.logo__mark b { font-weight: 600; color: #7da6ff; }

.header__call {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  transform: translateY(-50%);
  transition: background-color 0.25s cubic-bezier(0.65, 0.05, 0.36, 1), color 0.25s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.header__call::after { content: ""; position: absolute; inset: -10px; } /* цел за пръст 46 px */
.header__call svg { width: 14px; height: 14px; }
.header__call:hover { background: var(--blue); color: #fff; }

/* Първи екран: видео от падел корт на цял екран. Добавен по искане на Емануил, при модела няма такава част. */

.hero { margin-bottom: 50px; }

.hero__box {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--ink) url("video/padel-poster-telefon.jpg") center / cover no-repeat;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* тъмен слой, за да се четат логото горе и белият текст долу */
.hero__box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 26, 61, 0.55), rgba(10, 26, 61, 0.12) 28%, rgba(10, 26, 61, 0.2) 50%, rgba(10, 26, 61, 0.8));
}

.hero__text {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 20px 56px;
  color: #fff;
  text-align: center;
}

/* iPhone: видеото продължава зад долната лента на Safari, а текстът и бутонът остават над нея */
@media (max-width: 767px) and (pointer: coarse) {
  .hero__box { height: calc(100lvh + 84px); }
  .hero__text { padding-bottom: calc(100lvh + 84px - 100svh + 28px + env(safe-area-inset-bottom)); }
}

.hero__label {
  display: block;
  margin-bottom: 8px;
  font-size: calc(14px + 2 * var(--fluid));
  font-weight: 700;
  line-height: 1.13;
  text-transform: uppercase;
}

.hero__title {
  font-size: calc(30px + 22 * var(--fluid));
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.1px;
  text-transform: uppercase;
}

.hero .card__btn { margin-top: 26px; }

.btn.btn--light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 126 74' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M34 1.500H30A28.500 28.500 0 0 0 1.500 30v3A28.500 28.500 0 0 0 30 61.500h93'/%3E%3Cpath d='M113.500 52l9.500 9.500-9.500 9.500'/%3E%3C/svg%3E");
}

/* Двете карти */

.cards { padding-bottom: calc(50px + 44 * var(--fluid)); }

.cards__grid {
  display: grid;
  grid-template-columns: minmax(0, 600px);
  gap: 50px 16px;
  justify-content: center;
  max-width: 1670px;
  margin: 0 auto;
  padding: 0 25px;
}

.card { display: flex; flex-direction: column; scroll-margin-top: 20px; }

.card__img picture {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 453 / 280;
  border-radius: 60px;
  overflow: hidden;
  background: var(--shape);
}
.card__img img { width: 100%; height: 100%; object-fit: cover; }

.card__info {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  margin-top: -64px;
  padding: 100px 20px 50px;
  border-radius: 60px;
  background: #fff;
  box-shadow: 0 11px 34px 0 rgba(3, 3, 0, 0.09);
}

.card__wrap { width: 100%; max-width: 433px; text-align: center; }

.card__label {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: calc(14px + 2 * var(--fluid));
  font-weight: 700;
  line-height: 1.13;
  text-transform: uppercase;
}

.card__title {
  margin-bottom: calc(12px + 10 * var(--fluid));
  color: var(--navy);
  font-size: calc(26px + 6 * var(--fluid));
  font-weight: 700;
  line-height: 1.19;
  letter-spacing: -0.1px;
  text-transform: uppercase;
}

.card__text {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: calc(16px + 4 * var(--fluid));
  line-height: 1.29;
}

.card__btn { margin-top: 30px; }

.btn {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 60px;
  padding: 19px 15px 17px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.25s ease-in-out;
}
.btn span { min-width: 98px; }
.btn:hover { background: var(--blue-hover); }

/* линията със стрелка около бутона */
.btn::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  z-index: -1;
  width: 100%;
  height: 73px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 126 74' fill='none' stroke='%230c2459' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M34 1.500H30A28.500 28.500 0 0 0 1.500 30v3A28.500 28.500 0 0 0 30 61.500h93'/%3E%3Cpath d='M113.500 52l9.500 9.500-9.500 9.500'/%3E%3C/svg%3E") left center / 126px 74px no-repeat;
}

/* Трите предимства */

.feats { margin-bottom: calc(30px + 30 * var(--fluid)); overflow: hidden; }

.feats__wrap { max-width: 1230px; margin: 0 auto; padding: 0 15px; }

.feats__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1075px;
  margin: 0 auto;
}

.feat { display: flex; align-items: center; column-gap: 16px; }

.feat__img { flex: 0 0 auto; width: 84px; height: 84px; }
.feat__img svg { width: 100%; height: 100%; }

.feat__title { margin-bottom: 8px; font-size: 17px; font-weight: 500; line-height: 1.3; }
.feat__text { font-size: 14px; line-height: 1.29; }

/* Футър */

.footer { position: relative; z-index: 0; flex: 0 0 auto; padding: 30px 0; background: #fff; }

.footer__wrap { max-width: 1230px; margin: 0 auto; padding: 0 15px; }

.footer__menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 24px;
}
.footer__menu li { padding: 8px; text-align: center; }
.footer__menu a {
  display: inline-block;
  margin: -13px -10px;
  padding: 13px 10px; /* цел за пръст 45 px, без да мести реда */
  font-size: 14px;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.25s ease-in-out;
}
.footer__menu a:hover { text-decoration-color: transparent; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  row-gap: 10px;
  min-height: 70px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.coltcode-credit a { color: inherit; text-decoration: none; }
.coltcode-credit span { text-decoration: underline; text-underline-offset: 3px; }

/* Таблет и компютър */

@media (min-width: 768px) {
  .header__wrap { padding: 33px 15px 31px; }
  .header__cont { padding: 0 36px; }
  .logo { flex-basis: 180px; height: 42px; }
  .logo__mark { font-size: 36px; }
  .header__call { width: 34px; height: 34px; }
  .header__call svg { width: 18px; height: 18px; }

  .hero__box { background-image: url("video/padel-poster.jpg"); }
  .hero__text { padding-bottom: 88px; }

  .cards__grid { grid-template-columns: repeat(2, minmax(0, 600px)); }
  .card__info { margin-top: -108px; padding: 144px 20px 61px; }
  .card__text { line-height: 1.6; }
  .btn { padding: 19px 24px 17px; }

  .feats__list { flex-direction: row; flex-wrap: wrap; gap: 0; margin: -15px auto; }
  .feat { align-items: flex-start; width: 50%; padding: 15px; }
  .feat__img { width: 123px; height: 123px; }
  .feat__box { max-width: 179px; }

  .footer { padding-top: 110px; }
  .footer::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: -1;
    width: 100%;
    max-width: 1440px;
    height: 233px;
    transform: translateX(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 233' preserveAspectRatio='none'%3E%3Cpath fill='%23eef3fe' d='M0 233C0 110 60 0 215 2l1095 72c80 6 130 70 130 159z'/%3E%3C/svg%3E") center bottom / 100% 233px no-repeat;
  }
  .footer__menu { flex-direction: row; margin-bottom: 47px; }
  .footer__menu li { padding: 8px 30px; }
  .footer__bottom { flex-direction: row; min-height: 0; text-align: left; }
}

@media (min-width: 1025px) {
  .feats__list { max-width: 1133px; margin: -15px auto; }
  .feat { width: 33.333%; padding: 15px 29px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
