/*
Theme Name: Семицветик
Theme URI: https://margo29.ru/
Author: Hermes для Курниковой Р. С.
Description: Тёплая пастельная тема для персонального сайта воспитателя. Мягкие «лепестки» фона, портрет в арке, карточки разделов, методическая копилка и галерея документов.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: semicvetik
*/

:root {
  --cream: #fdfaf5;
  --ink: #35322c;
  --ink-soft: #6b6659;
  --accent: #c1784a;
  --peach: #ffd6a5;
  --mint: #b5e48c;
  --lav: #cdb4db;
  --sky: #8ecae6;
  --card: #ffffff;
  --line: #f3ece1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

html { overflow-x: hidden; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ——— фон: мягкие «лепестки» ——— */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100vw; overflow: hidden; pointer-events: none; z-index: 0; }
@media (max-width: 640px) { .petals { display: none; } }
.petal { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .45; }
.petal-a { width: 460px; height: 460px; background: var(--peach); top: -120px; left: -140px; }
.petal-b { width: 380px; height: 380px; background: var(--mint); top: 100px; right: -120px; }
.petal-c { width: 320px; height: 320px; background: var(--lav); bottom: -60px; left: 28%; }
.petal-d { width: 280px; height: 280px; background: var(--sky); top: 42%; left: -80px; }

/* ——— шапка ——— */
.site-header {
  position: relative; z-index: 5;
  background: rgba(253, 250, 245, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(193, 120, 74, .10);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.flower {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px;
  background: conic-gradient(#ff9aa2 0 51deg, #ffb7b2 51deg 102deg, #ffdac1 102deg 153deg, #e2f0cb 153deg 204deg, #b5ead7 204deg 255deg, #c7ceea 255deg 306deg, #ff9aa2 306deg 360deg);
  box-shadow: 0 6px 16px rgba(193,120,74,.20);
}
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-soft); font-size: 15px; }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--ink); font-weight: 600; }

/* ——— кнопки ——— */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 15px 26px; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-main { background: var(--accent); color: #fff; box-shadow: 0 12px 24px rgba(193,120,74,.28); }
.btn-main:hover { text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.btn-ghost:hover { text-decoration: none; }

/* ——— герой ——— */
.hero { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding: 54px 0 30px; }
.hello { display: inline-block; background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--accent); box-shadow: 0 6px 18px rgba(193,120,74,.12); margin-bottom: 22px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: 58px; line-height: 1.05; letter-spacing: -.5px; margin: 0; color: var(--ink); }
.hero h1 span { color: var(--accent); display: block; }
.hero .role { margin-top: 18px; font-size: 19px; color: var(--ink-soft); max-width: 520px; }
.hero .role b { color: var(--ink); }
.hero .cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.photo-wrap { position: relative; display: flex; justify-content: center; }
.photo-wrap img { width: 100%; max-width: 392px; height: 470px; object-fit: cover; object-position: 50% 22%;
  border-radius: 200px 200px 26px 26px; box-shadow: 0 26px 60px rgba(120,100,80,.22); border: 8px solid #fff; }
.badge { position: absolute; bottom: 8px; left: 8px; background: #fff; border-radius: 18px; padding: 14px 20px;
  box-shadow: 0 14px 30px rgba(0,0,0,.10); font-size: 14px; line-height: 1.35; }
.badge b { display: block; font-size: 17px; color: var(--accent); }

/* ——— приветствие (контент страницы «Главная») ——— */
.intro { position: relative; z-index: 2; padding: 10px 0 40px; }
.intro .card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 32px 34px; box-shadow: 0 14px 34px rgba(160,140,110,.10); }
.intro h2 { font-family: Georgia, serif; font-size: 28px; margin: 0 0 12px; }
.intro figure, .intro .wp-block-media-text__media { display: none; }  /* фото уже в герое */
.intro .wp-block-media-text { display: block; }

/* ——— разделы ——— */
.sections { position: relative; z-index: 2; padding: 26px 0 60px; }
.sections h2.sect-title { font-family: Georgia, serif; font-size: 30px; margin: 0 0 22px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: 0 12px 30px rgba(160,140,110,.10); }
.card .ico { font-size: 30px; }
.card h3 { font-family: Georgia, serif; font-size: 22px; margin: 14px 0 8px; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.card .more { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); }
.card a.card-link { display: block; color: inherit; }
.card a.card-link:hover { text-decoration: none; transform: translateY(-3px); }

/* ——— внутренние страницы ——— */
.page-head { position: relative; z-index: 2; padding: 46px 0 12px; }
.page-head h1 { font-family: Georgia, serif; font-size: 46px; margin: 0; }
.page-head .sub { color: var(--ink-soft); margin-top: 8px; }
.page-body { position: relative; z-index: 2; padding: 26px 0 70px; }
.page-body .entry { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 34px 38px;
  box-shadow: 0 14px 34px rgba(160,140,110,.10); font-size: 17px; }
.page-body .entry h2, .page-body .entry h3 { font-family: Georgia, serif; }
.page-body .entry img { max-width: 100%; height: auto; border-radius: 14px; }
.page-body .entry video { max-width: 100%; border-radius: 20px; box-shadow: 0 18px 40px rgba(120,100,80,.18); }

/* ——— методическая копилка: карточки файлов ——— */
.page-body .entry .wp-block-file { background: #fffdf9; border: 1px solid var(--line); border-left: 5px solid var(--peach);
  border-radius: 18px; padding: 18px 20px; margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; box-shadow: 0 8px 20px rgba(160,140,110,.07); }
.page-body .entry .wp-block-file a:first-child { font-weight: 600; color: var(--ink); font-size: 16.5px; flex: 1 1 auto; }
.page-body .entry .wp-block-file a:first-child::before {
  content: "DOCX"; display: inline-block; margin-right: 12px; padding: 3px 9px; border-radius: 7px;
  background: #f2f7fb; color: #4a6b86; font-size: 11px; font-weight: 700; letter-spacing: .4px; vertical-align: 2px; }
.page-body .entry .wp-block-file a[href$=".pptx"]::before { content: "PPTX"; background: #fdf3e7; color: #a0603a; }
.page-body .entry .wp-block-file a[href$=".pdf"]::before { content: "PDF"; background: #fdeaea; color: #a8453f; }
.page-body .entry .wp-block-file__button {
  flex: 0 0 auto; background: var(--accent); color: #fff; border-radius: 999px; padding: 11px 22px; font-size: 14.5px; font-weight: 600; }
.page-body .entry .wp-block-file__button:hover { text-decoration: none; opacity: .92; }
.page-id-174 .page-body .entry { background: transparent; border: 0; box-shadow: none; padding: 6px 0; }
.page-id-174 .page-body .entry .wp-block-file:nth-child(6n+1) { border-left-color: var(--peach); }
.page-id-174 .page-body .entry .wp-block-file:nth-child(6n+2) { border-left-color: var(--mint); }
.page-id-174 .page-body .entry .wp-block-file:nth-child(6n+3) { border-left-color: var(--lav); }
.page-id-174 .page-body .entry .wp-block-file:nth-child(6n+4) { border-left-color: var(--sky); }
.page-id-174 .page-body .entry .wp-block-file:nth-child(6n+5) { border-left-color: #ffb7b2; }
.page-id-174 .page-body .entry .wp-block-file:nth-child(6n+6) { border-left-color: #e2f0cb; }

/* ——— галерея документов ——— */
.page-body .entry .wp-block-gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; }
.page-body .entry .wp-block-gallery .wp-block-image { margin: 0; }
.page-body .entry .wp-block-gallery img { border-radius: 16px; box-shadow: 0 10px 24px rgba(160,140,110,.16); border: 5px solid #fff; width: 100%; }

/* ——— подвал ——— */
.site-footer { position: relative; z-index: 2; background: var(--ink); color: #e8e2d6; margin-top: auto; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 32px 28px; font-size: 14px; }
.site-footer a { color: #f3d9c2; }

/* ——— мобильная вёрстка ——— */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .hero h1 { font-size: 44px; }
  .hero .photo-wrap { order: -1; }
  .photo-wrap img { max-width: 320px; height: 380px; }
  .cards { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 36px; }
  .page-body .entry { padding: 24px 22px; }
}
@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav ul { gap: 16px; flex-wrap: wrap; }
  .hero h1 { font-size: 34px; }
  .hello { font-size: 13px; }
  .btn { padding: 13px 20px; font-size: 15px; }
  .wrap { padding: 0 18px; }
}
