/* ===================================================
   ampm.by — Школа управления Алексея Минкевича
   Stylesheet v1.0
   =================================================== */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a2540;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a.link-blue { color: #1a0dab; text-decoration: underline; }
a.link-blue:visited { color: #551a8b; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ----- CSS Variables ----- */
:root {
  --blue-hero:   #0A3FA0;
  --blue-stats:  #1566E8;
  --blue-light:  #E8F1FD;
  --blue-pale:   #D0E4FB;
  --blue-mid:    #185FA5;
  --blue-footer: #071F50;
  --text-dark:   #1a2540;
  --text-muted:  #5c6878;
  --white:       #ffffff;
  --radius:      10px;
  --radius-sm:   6px;
  --max-w:       1100px;
  --px:          clamp(20px, 5vw, 60px);
}

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

/* ===================================================
   NAVIGATION
   =================================================== */
.nav {
  background: var(--blue-hero);
  position: sticky; top: 0; z-index: 200;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img { height: 42px; width: auto; flex-shrink: 0; display: block; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a {
  color: rgba(255,255,255,0.85); font-size: 14px;
  transition: color .2s;
}
.nav__menu a:hover { color: var(--white); }
.nav__btn {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  transition: background .2s;
}
.nav__btn:hover { background: rgba(255,255,255,0.25); }
.nav__hamburger {
  display: none;
  background: none; border: none;
  color: var(--white); font-size: 26px;
  line-height: 1; padding: 4px;
}

/* ===================================================
   HERO
   =================================================== */
.hero { background: var(--blue-hero); padding: 64px 0 60px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 13px; padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.22);
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600; line-height: 1.2;
  max-width: 660px; margin-bottom: 18px;
}
.hero__lead {
  color: rgba(255,255,255,0.82);
  font-size: 16px; max-width: 540px;
  line-height: 1.75; margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero__price {
  margin-top: 18px;
  color: rgba(255,255,255,0.70);
  font-size: 14px;
}
.hero__price strong { color: rgba(255,255,255,0.95); font-weight: 600; }
.btn-primary {
  background: var(--white); color: var(--blue-hero);
  border: none; padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .92; }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* ===================================================
   STATS STRIP
   =================================================== */
.stats { background: var(--blue-stats); }
.stats__inner { display: flex; }
.stat {
  flex: 1; padding: 22px 28px;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.stat:last-child { border-right: none; }
.stat__n { color: var(--white); font-size: 26px; font-weight: 600; line-height: 1; }
.stat__l { color: rgba(255,255,255,0.72); font-size: 13px; margin-top: 5px; }

/* ===================================================
   SECTIONS
   =================================================== */
.section { padding: 64px 0; }
.section--grey { background: #f5f8ff; }
.section__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600; color: var(--blue-hero);
  margin-bottom: 10px;
}
.section__lead {
  color: var(--text-muted); font-size: 16px;
  margin-bottom: 36px; max-width: 560px;
}

/* ===================================================
   FOR WHOM — cards
   =================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.card {
  background: var(--white);
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius);
  padding: 22px;
}
.card__icon {
  width: 44px; height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 22px;
}
.card h3 { font-size: 15px; font-weight: 600; color: var(--blue-hero); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ===================================================
   RESULTS — checklist grid
   =================================================== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}
.result-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: var(--blue-light);
  border-radius: var(--radius);
  border: 1px solid var(--blue-pale);
}
.result-item svg { flex-shrink: 0; margin-top: 3px; }
.result-item p { font-size: 14px; color: var(--blue-hero); line-height: 1.65; }

/* ===================================================
   HOW IT WORKS
   =================================================== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.how-item {
  padding: 20px 22px;
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius);
  background: var(--white);
}
.how-item__num {
  color: var(--blue-stats);
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 8px;
}
.how-item h3 { font-size: 14px; font-weight: 600; color: var(--blue-hero); margin-bottom: 6px; }
.how-item p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ===================================================
   PROGRAM PREVIEW
   =================================================== */
.program-box {
  background: var(--blue-light);
  border-radius: var(--radius); padding: 32px;
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-bottom: 24px;
}
.module {
  background: var(--white);
  border: 1px solid var(--blue-pale);
  border-radius: 8px; padding: 14px 16px;
}
.module__num { color: var(--blue-stats); font-size: 11px; font-weight: 600; margin-bottom: 5px; }
.module__title { font-size: 13px; font-weight: 500; color: var(--blue-hero); line-height: 1.45; }
.program-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-stats); font-size: 14px; font-weight: 500;
  background: var(--white);
  border: 1px solid var(--blue-pale);
  padding: 10px 20px; border-radius: var(--radius-sm);
  transition: background .2s;
}
.program-link:hover { background: var(--blue-pale); }

/* ===================================================
   TEACHER BLOCK
   =================================================== */
.teacher-block {
  display: flex; gap: 28px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius); padding: 30px;
}
.teacher-photo {
  width: 180px; height: 220px; border-radius: 12px;
  object-fit: cover; object-position: top center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(10,63,160,0.12);
}
.teacher-body h2 { font-size: 20px; font-weight: 600; color: var(--blue-hero); margin-bottom: 4px; }
.teacher-body .teacher-role { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.teacher-body p { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag {
  background: var(--blue-light); color: var(--blue-mid);
  font-size: 12px; padding: 4px 10px; border-radius: 4px;
}
.teacher-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-stats); font-size: 14px; font-weight: 500;
  margin-top: 16px;
  border-bottom: 1px solid var(--blue-pale);
  padding-bottom: 2px;
}

/* ===================================================
   REVIEWS
   =================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.review {
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius); padding: 22px;
  background: var(--white);
  display: flex; flex-direction: column;
}
.review__course {
  font-size: 11px; font-weight: 600; color: var(--blue-stats);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 10px;
}
.review__text {
  font-size: 14px; color: #333;
  line-height: 1.75; margin-bottom: 16px;
  font-style: italic; flex: 1;
}
.review__author { font-size: 13px; font-weight: 600; color: var(--blue-hero); }
.review__company { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section { background: var(--blue-hero); padding: 72px 0; }
.cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-inner h2 {
  color: var(--white);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600; margin-bottom: 14px;
}
.cta-inner p { color: rgba(255,255,255,0.78); font-size: 16px; margin-bottom: 30px; }

/* ===================================================
   MODAL / FORM
   =================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7,31,80,0.65);
  z-index: 500;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%; max-width: 480px;
  position: relative;
  animation: fadeUp .25s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal__close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  font-size: 24px; color: var(--text-muted);
  line-height: 1;
}
.modal h2 { font-size: 20px; font-weight: 600; color: var(--blue-hero); margin-bottom: 6px; }
.modal__desc { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--blue-hero); margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px;
  color: var(--text-dark); outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue-stats); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-required { color: var(--blue-stats); }
.form-submit {
  width: 100%;
  background: var(--blue-stats); color: var(--white);
  border: none; padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  transition: opacity .2s;
}
.form-submit:hover { opacity: .9; }
.form-submit:disabled { opacity: .6; cursor: default; }
.form-notice {
  font-size: 12px; color: var(--text-muted);
  text-align: center; margin-top: 10px;
}
.form-success { display: none; text-align: center; padding: 16px 0; }
.form-success__icon { font-size: 40px; margin-bottom: 12px; }
.form-success h3 { font-size: 18px; font-weight: 600; color: var(--blue-hero); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 14px; }
.form-error {
  color: #c0392b; font-size: 13px;
  margin-top: 10px; text-align: center; display: none;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer { background: var(--blue-footer); padding: 30px 0; }
.footer__inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 14px;
}
.footer__copy { color: rgba(255,255,255,0.45); font-size: 13px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a {
  color: rgba(255,255,255,0.4); font-size: 13px;
  transition: color .2s;
}
.footer__links a:hover { color: rgba(255,255,255,0.78); }

/* ===================================================
   INNER PAGES — breadcrumb + page hero
   =================================================== */
.page-hero { background: var(--blue-hero); padding: 14px 0 44px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb__sep { color: rgba(255,255,255,0.3); }
.breadcrumb__current { color: rgba(255,255,255,0.85); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 600;
}
.page-hero__lead {
  color: rgba(255,255,255,0.8);
  font-size: 16px; margin-top: 12px;
  max-width: 560px; line-height: 1.7;
}

/* ===================================================
   CREDENTIALS — names list
   =================================================== */
.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.name-item {
  font-size: 14px; color: var(--text-dark);
  padding: 9px 13px;
  border-radius: 6px;
  border: 1px solid var(--blue-pale);
  background: var(--white);
}
.credentials-count {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 28px;
}
.credentials-nda {
  margin-top: 32px;
  padding: 16px 20px;
  background: #f5f7fa;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
}
.credentials-nda__text {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================================
   BLOG
   =================================================== */
.blog-grid { display: grid; gap: 18px; }
.blog-card {
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius); padding: 26px;
  background: var(--white);
  transition: border-color .2s;
}
.blog-card:hover { border-color: var(--blue-mid); }
.blog-card__date {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 8px;
}
.blog-card h2 { font-size: 17px; font-weight: 600; color: var(--blue-hero); margin-bottom: 10px; }
.blog-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.blog-card__read {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-stats); font-size: 14px; font-weight: 500;
  margin-top: 14px;
}

/* Blog authors */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; margin-top: 10px;
}
.author-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius); background: var(--white);
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-hero);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 14px; font-weight: 600;
  flex-shrink: 0;
}
.author-name { font-size: 13px; font-weight: 600; color: var(--blue-hero); }
.author-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===================================================
   MISSION
   =================================================== */
.mission-text {
  font-size: 20px; font-weight: 500; color: var(--blue-hero);
  line-height: 1.75; max-width: 700px;
  border-left: 4px solid var(--blue-stats);
  padding-left: 24px;
}
.mission-story p {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.8; max-width: 720px;
  margin-bottom: 16px;
}
.mission-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.mission-stat {
  background: var(--white);
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.mission-stat__n {
  font-size: 28px; font-weight: 600;
  color: var(--blue-stats); line-height: 1;
  margin-bottom: 6px;
}
.mission-stat__l {
  font-size: 14px; color: var(--text-muted); line-height: 1.5;
}

/* ===================================================
   PROGRAM PAGE
   =================================================== */
.program-modules { display: grid; gap: 14px; }
.prog-module {
  border: 1px solid var(--blue-pale);
  border-radius: var(--radius); overflow: hidden;
  background: var(--white);
}
.prog-module__head {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: var(--blue-light);
}
.prog-module__num {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--blue-hero);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 14px; font-weight: 600;
  flex-shrink: 0;
}
.prog-module__title { font-size: 16px; font-weight: 600; color: var(--blue-hero); }
.prog-module__body { padding: 18px 22px; }
.prog-module__body p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===================================================
   PROGRAM — topic lists inside modules
   =================================================== */
.prog-topics {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px;
}
.prog-topics li {
  font-size: 13px; color: var(--text-muted);
  background: var(--blue-light);
  border: 1px solid var(--blue-pale);
  border-radius: 4px;
  padding: 3px 10px;
  line-height: 1.5;
}

/* ===================================================
   COURSE PHOTOS
   =================================================== */
.course-photo-block {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(10,63,160,0.10);
}
.course-photo-block img {
  width: 100%; height: 420px;
  object-fit: cover; object-position: center 30%;
  display: block;
}
.prog-photo {
  margin: 16px 0 4px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--blue-pale);
  box-shadow: 0 3px 12px rgba(10,63,160,0.08);
}
.prog-photo img {
  width: 100%; height: auto;
  display: block;
  max-height: 360px;
  object-fit: cover; object-position: center top;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .teacher-block { flex-direction: column; }
  .teacher-photo { width: 100%; height: 240px; }
}

@media (max-width: 768px) {
  .nav__menu { display: none; flex-direction: column; align-items: flex-start; gap: 0; }
  .nav__menu.is-open {
    display: flex;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--blue-hero);
    padding: 16px 20px 24px; gap: 0;
    z-index: 199;
  }
  .nav__menu.is-open a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; }
  .nav__menu.is-open .nav__btn { margin-top: 12px; display: inline-block; }
  .nav__hamburger { display: block; }

  .stats__inner { flex-wrap: wrap; }
  .stat { min-width: 48%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.18); }
  .stat:last-child, .stat:nth-child(even) { border-right: none; }

  .hero__actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; width: 100%; }

  .footer__inner { flex-direction: column; align-items: flex-start; }

  .section { padding: 44px 0; }
  .cta-section { padding: 52px 0; }
}

@media (max-width: 480px) {
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .names-grid { grid-template-columns: 1fr; }
}
