/* ============================================================
   OtklikJobs Landing — style.css
   Тема: белый фон + зелёный акцент #22C55E
   Шрифт: Inter (Google Fonts)
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #22C55E;
  --green-dark:  #16A34A;
  --green-light: #DCFCE7;
  --text:        #111827;
  --text-2:      #6B7280;
  --border:      #E5E7EB;
  --bg:          #FFFFFF;
  --bg-alt:      #F9FAFB;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,.07);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.12);
  --transition:  .2s ease;
  --max-w:       1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34,197,94,.35);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.btn--white {
  background: #fff;
  color: var(--green-dark);
  border-color: #fff;
}
.btn--white:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 12px;
}

/* ---- SECTION TITLES ---- */
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-2);
  margin-top: 8px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar__logo-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.logo-dot { color: var(--green); }

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.navbar__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
}

.navbar__link:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.navbar__cta { margin-left: 8px; }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.hero__accent { color: var(--green); }

.hero__subtitle {
  font-size: 17px;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__perk {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

.perk-icon {
  color: var(--green);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__mockup-img {
  max-height: 580px;
  object-fit: contain;
}

.mockup--placeholder::after {
  content: '📱';
  font-size: 120px;
  display: block;
  text-align: center;
  padding: 60px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.mockup__glow {
  display: none;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 80px 0;
  background: var(--bg-alt);
  text-align: center;
}

.how > .container > .section-title,
.how > .container > .section-subtitle {
  text-align: center;
}

.how__steps {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.how__step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.how__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step__icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.how__arrow {
  font-size: 24px;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   VACANCIES PREVIEW
   ============================================================ */
.vacancies-preview {
  padding: 80px 0;
}

.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Vacancy card */
.vacancy-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.vacancy-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(34,197,94,.12);
  transform: translateY(-2px);
}

.vacancy-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vacancy-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-alt);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.vacancy-card__logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vacancy-card__company {
  font-size: 13px;
  color: var(--text-2);
}

.vacancy-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.vacancy-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vacancy-tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.vacancy-card__salary {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
}

/* Skeleton */
.vacancy-skeleton {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 140px;
  background: linear-gradient(90deg, var(--bg-alt) 25%, #f3f4f6 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.vacancies-preview__cta {
  text-align: center;
}

/* ============================================================
   EMPLOYERS
   ============================================================ */
.employers {
  padding: 80px 0;
  background: var(--bg-alt);
}

.employers__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.employers__badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.employers__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.employers__desc {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 28px;
  line-height: 1.7;
}

.employers__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.employers__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
}

.benefit-check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Illustration */
.employers__illustration {
  position: relative;
  height: 280px;
}

.illustration-card {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  min-width: 260px;
}

.illustration-card--1 { top: 0; left: 0; animation: cardFloat 3s ease-in-out infinite; }
.illustration-card--2 { top: 80px; right: 0; animation: cardFloat 3s ease-in-out infinite .5s; }
.illustration-card--3 { top: 165px; left: 30px; animation: cardFloat 3s ease-in-out infinite 1s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-name { font-size: 14px; font-weight: 600; }
.card-role { font-size: 12px; color: var(--text-2); }

.card-match {
  margin-left: auto;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stats__number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.stats__number::after { content: '+'; }

.stats__label {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 8px;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog {
  padding: 80px 0;
  background: var(--bg-alt);
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}

.blog-card__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
}

.blog-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
}

.blog-card__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.blog-card__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.blog-card__badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #16A34A 0%, #22C55E 60%, #4ADE80 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-banner__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-banner__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.soon-pill {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.15);
  padding: 6px 14px;
  border-radius: 100px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}

.footer__tagline {
  font-size: 14px;
  margin-top: 10px;
}

.footer__nav {
  display: flex;
  gap: 60px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__heading {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.footer__link {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer__link:hover { color: #fff; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #6caa4b;
}

.footer__tg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer__tg:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner     { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle  { margin: 0 auto 28px; }
  .hero__perks     { justify-content: center; }
  .hero__actions   { justify-content: center; }
  .hero__mockup    { order: -1; max-height: 360px; overflow: hidden; }

  .employers__inner { grid-template-columns: 1fr; }
  .employers__illustration { display: none; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__nav   { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 640px) {
  .navbar__menu  { display: none; flex-direction: column; }
  .navbar__menu.open {
    display: flex;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 16px;
    z-index: 99;
    box-shadow: var(--shadow-lg);
  }
  .navbar__menu.open .navbar__link { padding: 12px 16px; font-size: 16px; }
  .navbar__cta   { display: none; }
  .navbar__burger { display: flex; }

  .how__arrow { display: none; }
  .how__steps { flex-direction: column; align-items: stretch; }
  .how__step  { max-width: 100%; }

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

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

  .cta-banner__actions { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }

  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ---- FADE-IN ANIMATION ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
