/* Обучалка — Наталья Соколова */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #10b981;
  --accent2:   #34d399;
  --bg:        #0f172a;
  --surface:   #1e2f25;
  --surface2:  #162438;
  --border:    #2d4a38;
  --text:      #f0fdf4;
  --muted:     #6ee7b7;
  --muted2:    #9ca3af;
  --radius:    12px;
  --font:      'Inter', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.header-inner {
  max-width: 1140px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-icon {
  width: 36px; height: 36px; background: var(--accent);
  border-radius: 8px; display: grid; place-items: center;
}
.logo-icon svg { width: 20px; height: 20px; fill: white; }
.logo-text { font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.logo-sub { font-size: .72rem; color: var(--muted); display: block; margin-top: -4px; }

.nav { display: flex; gap: 1.8rem; align-items: center; }
.nav a { color: var(--muted); font-size: .9rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--accent2); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: .4rem 1rem; border-radius: 8px; font-size: .85rem !important;
}
.nav-cta:hover { background: var(--accent2) !important; color: #0f172a !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--muted); border-radius: 2px; }

/* ── HERO ── */
.hero {
  min-height: 88vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e2f25 60%, #0f172a 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/01-hero.jpg');
  background-size: cover; background-position: center;
  opacity: .22;
}
.hero-content { position: relative; z-index: 1; max-width: 1140px; margin: auto; padding: 4rem 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3);
  border-radius: 100px; padding: .3rem .9rem; font-size: .8rem;
  color: var(--accent2); margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15;
  max-width: 720px;
}
.hero h1 span { color: var(--accent); }
.hero p { margin: 1.5rem 0 2.5rem; max-width: 540px; color: var(--muted); font-size: 1.1rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.8rem; border-radius: 10px; font-weight: 600; font-size: .95rem; transition: all .2s; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); color: #0f172a; transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--border); color: var(--muted2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; flex-wrap: wrap; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--muted2); margin-top: .15rem; }

/* ── SECTIONS ── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1140px; margin: auto; }
.section-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; margin-bottom: .6rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.section-sub { color: var(--muted2); max-width: 580px; margin-bottom: 3rem; font-size: 1.05rem; }

/* Cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-icon { width: 48px; height: 48px; margin-bottom: 1.2rem; border-radius: 10px; overflow: hidden; background: rgba(16,185,129,.1); display: flex; align-items: center; justify-content: center; }
.card-icon img { width: 40px; height: 40px; object-fit: contain; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.card p { color: var(--muted2); font-size: .9rem; line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent2); font-size: .85rem; margin-top: 1rem; font-weight: 500; }

/* Blog card */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.tag { display: inline-block; background: rgba(16,185,129,.12); color: var(--accent2); border-radius: 6px; padding: .2rem .6rem; font-size: .75rem; font-weight: 600; margin-bottom: .8rem; }
.blog-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.4; }
.blog-card p { color: var(--muted2); font-size: .88rem; line-height: 1.6; margin-bottom: 1rem; }
.blog-meta { font-size: .78rem; color: var(--muted2); display: flex; gap: 1rem; }

/* Surface section */
.section-surface { background: var(--surface); }
.section-surface2 { background: var(--surface2); }

/* Page hero (inner pages) */
.page-hero { padding: 5rem 2rem 3rem; background: linear-gradient(to bottom, var(--surface) 0%, var(--bg) 100%); }
.page-hero-inner { max-width: 800px; margin: auto; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.page-hero p { color: var(--muted2); font-size: 1.1rem; }

/* Prose */
.prose { max-width: 740px; margin: auto; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 .8rem; color: var(--accent2); }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 .6rem; }
.prose p { color: var(--muted2); margin-bottom: 1.2rem; line-height: 1.8; }
.prose ul, .prose ol { padding-left: 1.5rem; color: var(--muted2); margin-bottom: 1.2rem; }
.prose li { margin-bottom: .5rem; line-height: 1.7; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.2rem; margin: 2rem 0; color: var(--muted); font-style: italic; }
.prose .highlight { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2); border-radius: 10px; padding: 1.2rem 1.5rem; margin: 2rem 0; }

/* About */
.author-card {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem;
  margin-bottom: 2rem;
}
.author-avatar { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); display: grid; place-items: center; font-size: 2.5rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.author-name { font-size: 1.3rem; font-weight: 700; }
.author-role { color: var(--muted); font-size: .9rem; margin: .2rem 0 .8rem; }
.author-tags { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Tools grid */
.tool-item { display: flex; align-items: flex-start; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.tool-icon { font-size: 1.8rem; flex-shrink: 0; }
.tool-name { font-weight: 600; font-size: .95rem; }
.tool-desc { color: var(--muted2); font-size: .85rem; margin-top: .2rem; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* Courses */
.course-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.course-badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .6rem; border-radius: 6px; margin-bottom: 1rem; }
.badge-beginner { background: rgba(16,185,129,.15); color: var(--accent2); }
.badge-intermediate { background: rgba(59,130,246,.15); color: #93c5fd; }
.badge-advanced { background: rgba(168,85,247,.15); color: #d8b4fe; }
.course-price { font-size: 1.4rem; font-weight: 800; color: var(--accent); margin: 1rem 0; }
.course-price span { font-size: .85rem; font-weight: 400; color: var(--muted2); }
.course-meta { display: flex; gap: 1.2rem; font-size: .82rem; color: var(--muted2); margin-top: .8rem; }

/* ── FOOTER ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
}
.footer-inner { max-width: 1140px; margin: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-logo { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.footer-about { color: var(--muted2); font-size: .88rem; line-height: 1.6; max-width: 260px; margin-top: .5rem; }
.footer-col h4 { font-size: .85rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: var(--muted2); font-size: .85rem; }
.footer-col ul li a:hover { color: var(--accent2); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; }
.footer-copy { color: var(--muted2); font-size: .8rem; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 1rem 2rem; max-width: 1140px; margin: auto; display: flex; gap: .4rem; align-items: center; font-size: .82rem; color: var(--muted2); }
.breadcrumb a { color: var(--muted2); }
.breadcrumb a:hover { color: var(--accent2); }
.breadcrumb span { color: var(--muted2); }

/* ── BLOG INDEX ── */
.blog-header { padding: 4rem 2rem 2rem; }
.blog-header-inner { max-width: 1140px; margin: auto; }
.blog-list { display: flex; flex-direction: column; gap: 1.2rem; max-width: 800px; margin: auto; }
.blog-list-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; transition: border-color .2s; }
.blog-list-item:hover { border-color: var(--accent); }
.bli-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent2); margin-bottom: .3rem; }
.bli-title { font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.bli-meta { font-size: .78rem; color: var(--muted2); }
.bli-arrow { color: var(--accent2); font-size: 1.2rem; }

/* ── 404 ── */
.not-found { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; }
.not-found-code { font-size: 8rem; font-weight: 900; color: var(--accent); line-height: 1; opacity: .3; }
.not-found h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.not-found p { color: var(--muted2); max-width: 420px; margin-bottom: 2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); padding: 2rem; gap: 1.2rem; border-bottom: 1px solid var(--border); z-index: 99; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .author-card { grid-template-columns: 1fr; text-align: center; }
  .hero-stats { gap: 1.5rem; }
  .blog-list-item { grid-template-columns: 1fr; }
}

/* Divider */
.divider { height: 1px; background: var(--border); margin: 0; }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: .6rem; color: var(--muted2); font-size: .9rem; margin-bottom: .6rem; }
.checklist li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: .05rem; }
