/* Landing page styling. Colours and sizes were taken from the original pages on
   main-experts.ru (Elementor) so that the move does not change how the ad looks. */

@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/lp/a/pt-sans-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/lp/a/pt-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 {
  --bg: #f5f4f3;
  --ink: #172433;
  --ink-soft: #323d49;
  --muted: #7a7a7a;
  --kicker-bg: #88827c;
  --kicker-ink: #fffdfa;
  --accent: #ceb58c;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  /* The top offset is aligned with the original page: its header sits higher there,
     and the extra 8px here noticeably pushed the first screen down. */
  padding: 24px 24px 48px;
}

.logo {
  display: inline-block;
}

.logo img {
  display: block;
  height: 30px;
  width: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  /* 36px is the distance between the header and the first screen on the original page
     (Elementor container `--gap:36px`). It was 48px, and the first screen scrolled away. */
  margin-top: 36px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  /* The heading line must not stretch across the whole column: on a wide screen it goes
     beyond a comfortable ~14 words and reads worse than the original page. */
  max-width: 640px;
}

.kicker {
  margin: 0;
  /* Sizes taken from the original page: the font there is the same 18px, but the padding
     is 8px/20px against our 14px/28px — that is why the badge looked larger than the
     original. */
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--kicker-bg);
  color: var(--kicker-ink);
  font-size: 18px;
  line-height: 1.3;
}

.title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.3;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
  width: 100%;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  /* Padding as on the original page (16px 20px 16px 16px); it was 32px on the right. */
  padding: 16px 20px 16px 16px;
  border-radius: 60px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
  text-decoration: none;
  /* The button shares a line with the caption "First step of career diagnostics" and in a
     640-pixel column it shrank, breaking the label onto two lines. The font has nothing to
     do with it — it already matches the original (20px); the cause was that flex let the
     button shrink. We neither shrink nor wrap it. */
  flex: 0 0 auto;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cta:hover {
  filter: brightness(1.04);
}

.cta:active {
  transform: translateY(1px);
}

.cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 38px is the icon size on the original page (`--icon-font-size:38px`).
     It was 48px: the button came out 10px taller than the original and ate the width
     that made the label want to spread onto two lines. */
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  flex: 0 0 auto;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.3;
  max-width: 22ch;
}

.hero__illustration {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  justify-self: end;
}

.footer {
  display: flex;
  justify-content: flex-end;
  gap: 48px;
  margin-top: 64px;
  color: var(--muted);
  font-size: 16px;
  text-align: right;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--muted);
  text-decoration: underline;
}

.footer a:hover {
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 32px;
  }

  .hero__illustration {
    justify-self: center;
    max-width: 100%;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cta {
    justify-content: center;
    /* On a phone only the SIDE padding is cut (owner, 08-14): vertically it stays at
       16px, as on the original page, otherwise the button ends up noticeably lower than
       the original. With the previous 16px/24px the label did not fit on one line even on
       a 390-pixel screen — width was missing, not height.
       Wrapping is deliberately ALLOWED here: on a 320-pixel screen the text will not fit
       under any padding, and forbidding it would give horizontal scrolling of the whole
       page instead of a second line. */
    padding: 16px 10px;
    white-space: normal;
  }

  .note {
    max-width: none;
  }

  .footer {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
