/* ==========================================================================
   Коррекционная педагогика — Акиншин В.А.
   Общие стили сайта. Цвета вынесены в переменные — легко перекрасить.
   ========================================================================== */

:root {
  --bg:        #f7f9fb;
  --surface:   #ffffff;
  --ink:       #1d2b36;   /* основной текст */
  --ink-soft:  #4a5b68;   /* второстепенный текст */
  --brand:     #2f6f8f;   /* спокойный сине-бирюзовый */
  --brand-dk:  #1f4e66;
  --accent:    #e08a4b;   /* тёплый акцент */
  --line:      #e2e8ee;
  --radius:    14px;
  --shadow:    0 6px 24px rgba(31, 78, 102, .08);
  --wrap:      1080px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ------------------------------ Шапка ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px; max-width: var(--wrap); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-dk));
  color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 800;
}
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-soft); }

.menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.menu a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink-soft); font-size: 16px; font-weight: 500;
}
.menu a:hover { background: var(--bg); color: var(--brand-dk); text-decoration: none; }
.menu a.active { background: var(--brand); color: #fff; }

.nav-toggle { display: none; }

/* ------------------------------ Герой ----------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2f6f8f 0%, #1f4e66 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(224,138,75,.35), transparent 60%),
    radial-gradient(500px 260px at 10% 120%, rgba(255,255,255,.14), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 84px 24px 92px; max-width: var(--wrap); margin: 0 auto; }
.hero .eyebrow {
  display: inline-block; letter-spacing: .08em; text-transform: uppercase;
  font-size: 13px; font-weight: 600; color: #cfe6f0;
  border: 1px solid rgba(255,255,255,.3); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.12; margin: 0 0 18px; max-width: 20ch; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: #e6f1f6; max-width: 60ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------ Кнопки ---------------------------------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: 16px; cursor: pointer; border: 1px solid transparent;
  transition: transform .05s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #cf7938; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-line { background: var(--surface); color: var(--brand-dk); border-color: var(--line); }
.btn-line:hover { border-color: var(--brand); }

/* ------------------------------ Секции ---------------------------------- */
.section { padding: 68px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; color: var(--ink); }
.section-head p { color: var(--ink-soft); margin: 0; }
.kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: 13px; }

/* ------------------------------ Карточки -------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #eaf3f7; color: var(--brand-dk); font-size: 22px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card.link-card:hover { border-color: var(--brand); transform: translateY(-2px); transition: .15s; }

/* ------------------------------ Список материалов ----------------------- */
.material {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.material h3 { margin: 0 0 6px; font-size: 19px; }
.material .meta { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.material .tag {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand-dk);
  background: #eaf3f7; padding: 3px 10px; border-radius: 999px; margin-right: 6px;
}
.material p.desc { margin: 8px 0 0; color: var(--ink-soft); font-size: 16px; }

/* ------------------------------ Об авторе ------------------------------- */
.author { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.author .photo {
  width: 240px; height: 240px; border-radius: 20px; background: linear-gradient(135deg,#eaf3f7,#d5e6ee);
  display: grid; place-items: center; color: var(--brand-dk); font-size: 64px; font-weight: 800;
  border: 1px solid var(--line);
}
.author ul.facts { list-style: none; padding: 0; margin: 18px 0 0; }
.author ul.facts li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.author ul.facts li b { color: var(--ink); }

/* ------------------------------ Контакты -------------------------------- */
.contact-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; background: var(--bg);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ------------------------------ Подвал ---------------------------------- */
.site-footer { background: #17323f; color: #cbd8df; padding: 40px 0 30px; margin-top: 60px; }
.site-footer a { color: #eaf3f7; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer .copyright { margin-top: 26px; font-size: 14px; color: #93a7b1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }

/* ------------------------------ Прочее ---------------------------------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 54px 0; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); }
.page-head p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.breadcrumb { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }

.prose p { color: var(--ink-soft); }
.prose h3 { margin-top: 30px; }

/* ------------------------------ Адаптив --------------------------------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .author { grid-template-columns: 1fr; }
  .author .photo { width: 160px; height: 160px; font-size: 44px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .menu {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px 16px; gap: 2px;
  }
  .menu.open { display: flex; }
  .nav-toggle {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
    font-size: 20px; cursor: pointer;
  }
}
