/* Точка Роста — базовый стиль */
:root {
  --brand-green: #1f8a2b;
  --brand-green-dark: #0a5b1a;
  --brand-gold: #b08122;
  --brand-gold-light: #e2c26d;

  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #121826;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, .08);

  --radius: 18px;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(31, 138, 43, .12), transparent 60%),
    radial-gradient(1200px 700px at 120% 10%, rgba(176, 129, 34, .14), transparent 55%),
    var(--bg);
  color: var(--text);
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 244, 246, .75);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain
}

.brand .title {
  font-weight: 800;
  letter-spacing: .2px
}

.brand .subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px
}

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

.menu a {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
  opacity: .9;
  white-space: nowrap;
  font-size: 14px;
}

.menu a:hover {
  background: rgba(17, 24, 39, .04)
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(31, 138, 43, .22);
  white-space: nowrap;
  flex-shrink: 0;
}

.cta:hover {
  transform: translateY(-1px)
}

.hero {
  padding: 48px 0 18px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(31, 138, 43, .10), rgba(176, 129, 34, .10)), var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 700;
}

.btn:hover {
  background: rgba(17, 24, 39, .03)
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 138, 43, .10);
  border: 1px solid rgba(31, 138, 43, .20);
  color: var(--brand-green-dark);
  font-weight: 700;
  font-size: 12px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 54px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5
}

.card .link {
  margin-top: 12px;
  display: inline-flex;
  gap: 8px;
  color: var(--brand-green-dark);
  font-weight: 800
}

.page {
  padding: 22px 0 56px;
}

.page h1 {
  margin: 0 0 8px;
  font-size: 34px
}

.page .lead {
  color: var(--muted);
  margin: 0 0 18px
}

.richtext {
  line-height: 1.75
}

.richtext h2 {
  margin-top: 22px
}

.richtext a {
  color: var(--brand-green-dark);
  text-decoration: underline
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
  padding: 26px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}

.small strong {
  color: var(--text);
  font-weight: 700;
}

.small a {
  color: var(--brand-green-dark);
  text-decoration: underline;
  font-weight: 700;
}

.small a:hover {
  color: var(--brand-green);
}

.list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.item-title {
  font-weight: 900
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px
}

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr
  }

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

  .list {
    grid-template-columns: 1fr
  }

  .menu {
    display: none
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ====== FORM / MODAL (Course Lead) ====== */
.form-label {
  font-size: 13px;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .75);
  color: var(--text);
  outline: none;
}

.input:focus {
  border-color: rgba(31, 138, 43, .35);
  box-shadow: 0 0 0 4px rgba(31, 138, 43, .10);
}

.textarea {
  resize: vertical;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .55);
  z-index: 9999;
  padding: 18px;
}

.modal {
  width: min(560px, 96vw);
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 18px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-kicker {
  font-size: 12px;
  color: var(--muted);
}

.modal-title {
  font-size: 18px;
  font-weight: 900;
  margin-top: 2px;
}

.modal-close {
  padding: 8px 10px;
}

.modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.modal-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.notice {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, .03);
  color: var(--text);
}

.notice.success {
  border-color: rgba(31, 138, 43, .22);
  background: rgba(31, 138, 43, .08);
}

@media (max-width: 900px) {
  .modal-form {
    grid-template-columns: 1fr;
  }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9999;
  padding: 20px;
  display: none;
}

.modal {
  max-width: 560px;
  margin: 50px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 18px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-kicker {
  font-size: 12px;
  color: var(--muted)
}

.modal-title {
  font-size: 18px;
  font-weight: 900;
  margin-top: 4px
}

.modal-close {
  padding: 8px 10px
}

.modal-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.form-label {
  font-size: 12px;
  color: var(--muted)
}

.input {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
}

.input:focus {
  border-color: rgba(31, 138, 43, .35);
  box-shadow: 0 0 0 4px rgba(31, 138, 43, .10);
}

.textarea {
  min-height: 92px;
  resize: vertical
}

.modal-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, .02);
}

.notice.success {
  border-color: rgba(31, 138, 43, .25);
  background: rgba(31, 138, 43, .08);
}

.notice .link {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 800;
  color: var(--brand-green-dark);
}

@media (max-width: 720px) {
  .modal-form {
    grid-template-columns: 1fr
  }
}

/* ===== Modal / Form ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9999;
  padding: 20px;
}

.modal {
  max-width: 520px;
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-kicker {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700
}

.modal-title {
  font-size: 18px;
  font-weight: 900;
  margin-top: 2px
}

.modal-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.form-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
}

.input:focus {
  border-color: rgba(31, 138, 43, .35);
  box-shadow: 0 0 0 4px rgba(31, 138, 43, .10);
}

.textarea {
  resize: vertical;
  min-height: 90px
}

.modal-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(31, 138, 43, .08);
}

.notice.success {
  border-color: rgba(31, 138, 43, .22)
}

.speaker-photo {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(17, 24, 39, .10);
  box-shadow: 0 10px 25px rgba(17, 24, 39, .10);
}

/* ===========================
   BRAND TITLE: darker + volume
   =========================== */

:root {
  /* базовый зелёный */
  --brand: #2bb673;

  /* темнее (под “кнопку записаться”) */
  --brand-dark: #167a4a;
  --brand-darker: #0f5f39;
}

/* контейнер бренда */
.topbar .brand {
  text-decoration: none;
}

/* Точка Роста — темнее + объём */
.topbar .brand .title {
  color: var(--brand-dark) !important;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.05;

  /* “объём”: мягкая тень + псевдо-обводка */
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    /* лёгкий хайлайт сверху */
    0 2px 6px rgba(0, 0, 0, 0.18),
    /* мягкая тень */
    1px 0 0 rgba(15, 95, 57, 0.18),
    /* псевдо-обводка */
    -1px 0 0 rgba(15, 95, 57, 0.18),
    0 1px 0 rgba(15, 95, 57, 0.18),
    0 -1px 0 rgba(15, 95, 57, 0.18);
}

/* подзаголовок — спокойнее */
.topbar .brand .subtitle {
  color: rgba(15, 95, 57, 0.75) !important;
  font-weight: 600;
}

/* при наведении — ещё чуть темнее */
.topbar .brand:hover .title {
  color: var(--brand-darker) !important;
}

/* ===========================
   HOMEPAGE STYLES (hp-*)
   =========================== */

.hp {
  padding: 24px 0 56px;
}

/* HERO SECTION */
.hp-hero {
  margin-bottom: 48px;
}

.hp-hero-card {
  background: linear-gradient(135deg, rgba(31, 138, 43, .08), rgba(176, 129, 34, .06)), var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  overflow: hidden;
}

.hp-hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hp-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 138, 43, .12);
  border: 1px solid rgba(31, 138, 43, .22);
  color: var(--brand-green-dark);
  font-weight: 700;
  font-size: 13px;
  width: fit-content;
}

.hp-hero-media {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .12);
}

.hp-hero-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hp-title {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--brand-green-dark);
  letter-spacing: -0.5px;
}

.hp-subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 600px;
}

.hp-hero-notes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hp-note {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(31, 138, 43, .08);
  color: var(--brand-green-dark);
  font-size: 13px;
  font-weight: 600;
}

.hp-hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}

.hp-metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.hp-metric-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(17, 24, 39, .1);
  border-color: rgba(31, 138, 43, .3);
}

.hp-metric-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand-green-dark);
  margin-bottom: 4px;
}

.hp-metric-txt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* SERVICES SECTION */
.hp-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}

.hp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(17, 24, 39, .12);
  border-color: rgba(31, 138, 43, .3);
}

.hp-card-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
}

.hp-card-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  flex-grow: 1;
  margin: 0;
}

.hp-card-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-green-dark);
  margin-top: 4px;
}

/* SECTION HEADERS */
.hp-section {
  margin-bottom: 56px;
}

.hp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.hp-h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.3px;
}

.hp-more {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-green-dark);
  text-decoration: none;
  white-space: nowrap;
}

.hp-more:hover {
  text-decoration: underline;
}

/* GRID FOR EVENTS/COURSES */
.hp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hp-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.hp-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(17, 24, 39, .12);
  border-color: rgba(31, 138, 43, .3);
}

.hp-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.hp-item-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.hp-item-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hp-item-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.hp-item-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .hp-hero-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .hp-services {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .hp-title {
    font-size: 32px;
  }

  .hp-h2 {
    font-size: 26px;
  }

  .hp-hero-right {
    grid-template-columns: 1fr;
  }

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

  .hp-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}