/* ========================================================
   ПЕРЕМЕННЫЕ
   ======================================================== */
:root {
  --green: #5CB83A;
  --green-light: #EBF7E4;
  --green-mid: #C8EDB8;
  --black: #0F1010;
  --grey-text: #5A5A5A;
  --grey-bg: #F4F4F0;
  --white: #FFFFFF;
  --card-radius: 16px;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================
   СБРОС И БАЗА
   ======================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* ========================================================
   КОНТЕЙНЕРЫ
   ======================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

/* ========================================================
   ОБЩИЕ ЭЛЕМЕНТЫ
   ======================================================== */
.section { padding: 96px 0; }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--grey-text);
  margin-bottom: 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  padding: 6px 16px;
  border-radius: 100px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  background: var(--grey-bg);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid #E0E0DA;
}

/* ========================================================
   НАВИГАЦИЯ
   ======================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav__links a:hover { color: var(--green); }
.nav__links a:hover::after { width: 100%; }

/* ========================================================
   HERO
   ======================================================== */
.hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--black);
}

.hero__title-accent { color: var(--green); }

.hero__desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--grey-text);
  max-width: 540px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__right { display: flex; justify-content: flex-end; }

.hero__photo-wrap {
  position: relative;
  width: 380px;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--green-light);
  flex-shrink: 0;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Заглушка, если фото не загружено */
.hero__photo-wrap:not(:has(img[src="assets/photo.jpg"])) {
  background: var(--green-light);
}

.hero__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.hero__badge-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.hero__badge-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--grey-text);
  transition: color var(--transition);
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll:hover { color: var(--green); }

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

/* ========================================================
   СТАТИСТИКА
   ======================================================== */
.stats {
  background: var(--green);
  padding: 48px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid rgba(255,255,255,0.25);
}

.stats__item:last-child { border-right: none; }

.stats__num {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}

.stats__label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

/* ========================================================
   ОБО МНЕ
   ======================================================== */
.about { text-align: center; }

.about__text {
  font-size: 18px;
  line-height: 1.75;
  color: var(--grey-text);
  margin-bottom: 20px;
}

.about__text:last-child { margin-bottom: 0; }

/* ========================================================
   ДОСТИЖЕНИЯ
   ======================================================== */
.achievements { background: var(--white); text-align: center; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

/* Пятая карточка — растягивается на 1.5 колонки, центрируем через отступ */
.cards-grid .card:nth-child(4) { grid-column: 1 / 2; }
.cards-grid .card:nth-child(5) { grid-column: 2 / 3; }

.card {
  background: var(--white);
  border: 1px solid #E8E8E2;
  border-radius: var(--card-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(92, 184, 58, 0.12);
  border-color: var(--green-mid);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--grey-text);
  flex: 1;
}

.card__result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--green-light);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--black);
  margin-top: 4px;
}

.card__result svg { flex-shrink: 0; margin-top: 2px; }

/* ========================================================
   ТЕХНОЛОГИИ
   ======================================================== */
.tech { background: var(--grey-bg); text-align: center; }

.tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.tech__col {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 28px;
  border: 1px solid #E8E8E2;
  transition: transform var(--transition), box-shadow var(--transition);
}

.tech__col:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.tech__col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EEEDE8;
}

.tech__col-icon {
  width: 40px;
  height: 40px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech__col-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
}

.tech__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech__list li {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  background: var(--grey-bg);
  border-radius: 8px;
  padding: 9px 14px;
  transition: background var(--transition), color var(--transition);
}

.tech__list li:hover {
  background: var(--green-light);
  color: var(--green);
}

/* ========================================================
   ОПЫТ — ТАЙМЛАЙН
   ======================================================== */
.experience { background: var(--grey-bg); text-align: center; }

.timeline {
  position: relative;
  margin-top: 56px;
  padding: 0 0 24px;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green-mid);
  transform: translateX(-50%);
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}

.timeline__item--right {
  flex-direction: row-reverse;
  padding-left: calc(50% + 36px);
}

.timeline__item--left {
  flex-direction: row;
  padding-right: calc(50% + 36px);
  justify-content: flex-end;
}

.timeline__dot {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--green);
  z-index: 1;
  transition: transform var(--transition);
}

.timeline__item:hover .timeline__dot { transform: translateX(-50%) scale(1.4); }

.timeline__card {
  background: white;
  border-radius: var(--card-radius);
  padding: 24px 28px;
  border: 1px solid #E8E8E2;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
  max-width: 420px;
  width: 100%;
}

.timeline__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(92, 184, 58, 0.1);
}

.timeline__period {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}

.timeline__role {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.timeline__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--grey-text);
}

/* ========================================================
   ЛУК И СТРЕЛЫ
   ======================================================== */
.archery {
  background: var(--green);
  padding: 96px 0;
  text-align: center;
}

.archery__icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.archery__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  font-style: italic;
}

.archery__text {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  margin: 0 auto 16px;
}

.archery__text:last-child { margin-bottom: 0; }

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
  background: var(--black);
  padding: 32px 0;
  display: flex;
  align-items: center;
}

.footer .nav__logo { color: var(--green); }

/* ========================================================
   АНИМАЦИИ — ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ
   ======================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Задержки для staggered-эффекта на карточках */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ========================================================
   АДАПТИВНОСТЬ
   ======================================================== */
@media (max-width: 960px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__right { justify-content: center; }

  .hero__photo-wrap {
    width: 320px;
    height: 380px;
  }

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

  .cards-grid .card:nth-child(4),
  .cards-grid .card:nth-child(5) {
    grid-column: auto;
  }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
  .stats__item:nth-child(2n) { border-right: none; }

  .timeline__item--right { padding-left: calc(50% + 20px); }
  .timeline__item--left { padding-right: calc(50% + 20px); }
}

@media (max-width: 640px) {
  .container, .container--narrow { padding: 0 20px; }

  .nav__inner { padding: 0 20px; }
  .nav__links { display: none; }

  .hero { padding-top: calc(var(--nav-h) + 40px); }

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

  .timeline__line { left: 24px; }

  .timeline__item--right,
  .timeline__item--left {
    flex-direction: column;
    padding-left: 56px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline__dot { left: 24px; }

  .timeline__card { max-width: 100%; }
}
