/* Макет сайта «Наставление сёстрам» (задание № 1493). Основа — карточка «Помощник семьи» (№ 1185): лиловый #7255A8,
   мягкие объёмные картинки без лиц, Nunito + Lora. Только макет: сайт строим после «да» владельца. */
@font-face { font-family: "Nunito"; src: url("shrifty/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Lora"; src: url("shrifty/lora-cyrillic.woff2") format("woff2"); font-weight: 400 700; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "Lora"; src: url("shrifty/lora-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; font-style: italic; src: url("shrifty/lora-cyrillic-it.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("shrifty/cormorant.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Salyavat"; src: url("shrifty/salyavat.woff2") format("woff2"); unicode-range: U+FDFA; font-display: swap; }

:root {
  --lil: #7255A8;        /* главный лиловый — кнопки, ссылки, знак */
  --lil-t: #3F2B63;      /* тёмная слива канала — заголовки */
  --lil-n: #2F2346;      /* ночь — подвал */
  --lav: #B9A3DD;        /* лаванда — линии, метки */
  --lav-s: #E6DBF5;      /* светлая лаванда — плашки */
  --fon: #FBF7FE;        /* фон страницы */
  --fon-2: #F3ECFB;      /* фон полос */
  --krem: #FFFCF7;       /* карточки */
  --zol: #D9A441;        /* тёплое золото фонаря — точечно */
  --tekst: #3B3150;
  --tekst-2: #6E6283;
  --ten: 0 1px 2px rgba(78,58,120,.06), 0 10px 30px -12px rgba(78,58,120,.22);
  --r: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fon); color: var(--tekst); font: 17px/1.6 "Nunito", "Salyavat", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lil); text-underline-offset: .18em; }
h1, h2, h3 { font-family: "Cormorant Garamond", "Lora", Georgia, serif; color: var(--lil-t); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.obertka { width: min(1200px, 100% - 48px); margin-inline: auto; }
.metka { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lil); }
.metka img { width: 22px; height: 22px; }
.knopka { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--lil); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px -8px rgba(114,85,168,.7); transition: transform .2s, background .2s; }
.knopka:hover { background: var(--lil-t); transform: translateY(-1px); }
.knopka--2 { background: var(--krem); color: var(--lil-t); box-shadow: inset 0 0 0 1.5px var(--lav); }
.knopka--2:hover { background: #fff; }
.knopka svg { width: 20px; height: 20px; }

/* шапка */
.shapka { position: sticky; top: 0; z-index: 5; background: rgba(251,247,254,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--lav-s); }
.shapka .obertka { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--lil-t); }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo b { display: block; font-family: "Cormorant Garamond", serif; font-size: 24px; font-weight: 600; line-height: 1.1; }
.logo i { display: block; font-style: normal; font-size: 12.5px; color: var(--tekst-2); letter-spacing: .02em; }
.menyu { display: flex; gap: 26px; margin-left: auto; }
.menyu a { color: var(--tekst); text-decoration: none; font-weight: 700; font-size: 15.5px; }
.menyu a:hover, .menyu a[aria-current] { color: var(--lil); }
.shapka .knopka { padding: 10px 18px; font-size: 15px; }
.poisk { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--lil-t); background: var(--fon-2); }
.poisk svg { width: 20px; height: 20px; }

/* первый экран */
.geroy { position: relative; overflow: hidden; background: #E9E0F6; }
.geroy__fon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.geroy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240,233,250,.97) 0%, rgba(240,233,250,.9) 36%, rgba(240,233,250,0) 62%); }
.geroy .obertka { position: relative; z-index: 1; min-height: 600px; display: flex; flex-direction: column; justify-content: center; padding-block: 64px; }
.geroy__t { max-width: 560px; }
.geroy h1 { font-size: clamp(44px, 5.6vw, 72px); margin: 18px 0 20px; }
.geroy h1 em { font-style: italic; color: var(--lil); }
.geroy__vvod { font-size: 19.5px; color: var(--tekst-2); max-width: 30em; }
.geroy__knopki { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.geroy__temy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.geroy__temy a { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--lil-t); text-decoration: none; font-size: 14.5px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--lav-s); }

/* разделы */
.razdel { padding-block: 88px; }
.razdel--fon { background: var(--fon-2); }
.razdel__z { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.razdel__z h2 { font-size: clamp(36px, 4vw, 50px); margin-top: 10px; }
.razdel__z p { color: var(--tekst-2); max-width: 34em; margin-top: 10px; }
.vse { font-weight: 800; text-decoration: none; white-space: nowrap; }

/* рубрики */
.rubriki { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rubrika { position: relative; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 18px; padding: 16px 22px 16px 16px; border-radius: var(--r); background: var(--krem); box-shadow: var(--ten); text-decoration: none; color: inherit; transition: transform .25s; }
.rubrika:hover { transform: translateY(-3px); }
.rubrika > img { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; background: var(--fon-2); }
.rubrika h3 { font-size: 25px; }
.rubrika p { font-size: 15px; color: var(--tekst-2); margin-top: 6px; line-height: 1.45; }
.rubrika small { display: block; margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--lil); }

/* статьи */
.stati { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; }
.glavnaya-st { border-radius: var(--r); overflow: hidden; background: var(--krem); box-shadow: var(--ten); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.glavnaya-st > img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.glavnaya-st__t { padding: 28px 32px 32px; }
.glavnaya-st h3 { font-size: 36px; margin: 12px 0 12px; }
.glavnaya-st p { color: var(--tekst-2); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 14px; color: var(--tekst-2); }
.meta b { color: var(--lil); }
.spisok-st { display: grid; gap: 18px; align-content: start; }
.st { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: 18px; background: var(--krem); box-shadow: var(--ten); text-decoration: none; color: inherit; }
.st > img { width: 150px; height: 112px; object-fit: cover; border-radius: 12px; }
.st h3 { font-size: 22px; margin: 6px 0 6px; }
.st .meta { margin-top: 0; font-size: 13px; }
.st .metka { font-size: 11.5px; }

/* наставление дня */
.den { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; border-radius: 30px; overflow: hidden; background: var(--lil-t); color: #F3ECFB; box-shadow: 0 30px 60px -30px rgba(47,35,70,.6); }
.den__obraz { position: relative; min-height: 420px; }
.den__obraz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.den__t { padding: 56px 56px 52px; display: flex; flex-direction: column; justify-content: center; }
.den .metka { color: var(--lav); }
.den__ar { font-family: "Amiri", "Noto Naskh Arabic", serif; font-size: 30px; line-height: 1.9; direction: rtl; text-align: right; color: #fff; margin: 20px 0 14px; }
.den blockquote { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 30px; line-height: 1.5; color: #fff; }
.den cite { display: block; margin-top: 18px; font-style: normal; font-size: 14.5px; color: var(--lav); }
.den__knopki { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.den .knopka { background: #fff; color: var(--lil-t); box-shadow: none; }
.den .knopka--2 { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }

/* открытки */
.otkrytki { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.otkrytka { margin: 0; border-radius: 20px; overflow: hidden; background: var(--krem); box-shadow: var(--ten); }
.otkrytka img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.otkrytka figcaption { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--lil-t); }
.otkrytka figcaption span { color: var(--lil); font-weight: 800; font-size: 13px; }

/* эмодзи-ряд */
.znachki { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.znachki img { width: 44px; height: 44px; object-fit: contain; }

/* канал */
.kanal { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding: 48px 56px; border-radius: 30px; background: linear-gradient(135deg, #EDE3FA, #F8F2FF); box-shadow: inset 0 0 0 1px var(--lav-s); }
.kanal h2 { font-size: 44px; margin: 12px 0 14px; }
.kanal p { color: var(--tekst-2); font-size: 18px; }
.kanal ul { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.kanal li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.kanal li img { width: 28px; height: 28px; }
.kanal li .krug { width: 28px; height: 28px; border-radius: 50%; background: var(--lil); color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
.kanal__obraz img { width: 100%; max-width: 440px; margin-left: auto; border-radius: 24px; }

/* подвал — по единому образцу цеха (№ 1461) */
.podval { background: var(--lil-n); color: #CFC3E6; padding: 72px 0 28px; margin-top: 88px; }
.podval-v { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.podval .logo { color: #fff; }
.podval .logo i { color: #B9A9D6; }
.podval-o p { margin: 18px 0 22px; max-width: 30em; font-size: 15px; }
.podval-z { font-weight: 800; color: #fff; margin-bottom: 14px; font-size: 15px; }
.podval ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.podval ul a { color: #CFC3E6; text-decoration: none; font-size: 15px; }
.podval ul a:hover { color: #fff; }
.podval .knopka--2 { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.podval-niz { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #9F92BB; }
.podval-niz a { color: #CFC3E6; }

/* ---------- страница статьи ---------- */
.kroshki { font-size: 14px; color: var(--tekst-2); padding-top: 28px; }
.kroshki a { color: var(--tekst-2); text-decoration: none; }
.kroshki span { margin: 0 8px; color: var(--lav); }
.st-shapka { max-width: 820px; margin: 28px auto 0; text-align: center; }
.st-shapka h1 { font-size: clamp(40px, 5vw, 62px); margin: 16px 0 18px; }
.st-shapka .vvod { font-size: 20px; color: var(--tekst-2); max-width: 36em; margin-inline: auto; }
.st-shapka .meta { justify-content: center; margin-top: 22px; }
.oblozhka { width: min(1100px, 100% - 48px); margin: 40px auto 0; border-radius: 28px; overflow: hidden; box-shadow: var(--ten); }
.oblozhka img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.st-telo-v { display: grid; grid-template-columns: 1fr minmax(0, 700px) 1fr; gap: 40px; margin-top: 56px; }
.st-bok { position: sticky; top: 110px; align-self: start; justify-self: end; display: grid; gap: 10px; }
.st-bok a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--krem); box-shadow: var(--ten); color: var(--lil-t); }
.st-bok a svg { width: 20px; height: 20px; }
.st-bok small { font-size: 12px; color: var(--tekst-2); text-align: center; }
.telo { font-family: "Lora", Georgia, serif; font-size: 19.5px; line-height: 1.75; color: #33294A; }
.telo > * + * { margin-top: 1.1em; }
.telo h2 { font-size: 36px; margin-top: 1.8em; }
.telo .bukvica::first-letter { float: left; font-size: 4.1em; line-height: .82; padding: 8px 12px 0 0; color: var(--lil); font-weight: 600; }
.citata { margin: 2em 0; padding: 30px 34px; border-radius: 22px; background: var(--fon-2); border-left: 5px solid var(--lil); }
.citata .ar { font-family: "Amiri", "Noto Naskh Arabic", serif; direction: rtl; text-align: right; font-size: 28px; line-height: 1.9; color: var(--lil-t); }
.citata p.ru { font-style: italic; margin-top: 12px; }
.citata cite { display: block; margin-top: 14px; font-family: "Nunito", sans-serif; font-style: normal; font-size: 14.5px; color: var(--tekst-2); }
.shagi { list-style: none; padding: 0; counter-reset: sh; display: grid; gap: 16px; }
.shagi li { counter-increment: sh; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.shagi li::before { content: counter(sh); width: 44px; height: 44px; border-radius: 50%; background: var(--lil); color: #fff; display: grid; place-items: center; font: 800 18px "Nunito", sans-serif; box-shadow: 0 6px 14px -6px rgba(114,85,168,.8); }
.shagi b { font-family: "Nunito", sans-serif; color: var(--lil-t); }
.ill { margin: 2.2em -60px; }
.ill img { width: 100%; border-radius: 22px; }
.ill figcaption { font: 14px "Nunito", sans-serif; color: var(--tekst-2); text-align: center; margin-top: 10px; }
.pamyatka { font-family: "Nunito", sans-serif; font-size: 17px; margin-top: 2.2em; padding: 28px 30px; border-radius: 22px; background: var(--krem); box-shadow: var(--ten), inset 0 0 0 1px var(--lav-s); }
.pamyatka h3 { display: flex; align-items: center; gap: 10px; font-size: 26px; margin-bottom: 14px; }
.pamyatka h3 img { width: 30px; height: 30px; }
.pamyatka ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.pamyatka li { display: flex; gap: 10px; }
.pamyatka li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lav); margin-top: 9px; }
.istochniki { font: 14.5px/1.6 "Nunito", sans-serif; color: var(--tekst-2); border-top: 1px solid var(--lav-s); padding-top: 18px; margin-top: 2.4em; }
.istochniki ol { padding-left: 20px; margin: 8px 0 0; }
.podpis { display: flex; align-items: center; gap: 14px; font-family: "Nunito", sans-serif; margin-top: 2em; padding: 18px 20px; border-radius: 18px; background: var(--fon-2); }
.podpis > svg { width: 46px; height: 46px; flex: none; }
.podpis b { color: var(--lil-t); display: block; }
.podpis span { font-size: 14.5px; color: var(--tekst-2); }
.podpis .knopka { margin-left: auto; padding: 10px 18px; font-size: 14.5px; }

@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .obertka { width: calc(100% - 36px); }
  .menyu, .shapka .knopka { display: none; }
  .poisk { margin-left: auto; }
  .geroy .obertka { min-height: 0; padding-block: 36px 300px; justify-content: start; }
  .geroy::after { background: linear-gradient(180deg, rgba(240,233,250,.98) 0%, rgba(240,233,250,.92) 52%, rgba(240,233,250,0) 74%); }
  .geroy__fon { object-position: 72% bottom; }
  .geroy h1 { font-size: 46px; }
  .geroy__vvod { font-size: 17.5px; }
  .razdel { padding-block: 60px; }
  .razdel__z { flex-direction: column; align-items: start; }
  .rubriki, .stati, .otkrytki, .den, .kanal, .podval-v { grid-template-columns: 1fr; }
  .otkrytki { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rubrika { grid-template-columns: 92px 1fr; }
  .rubrika > img { width: 92px; height: 92px; }
  .st { grid-template-columns: 110px 1fr; }
  .st > img { width: 110px; height: 96px; }
  .glavnaya-st__t { padding: 22px; }
  .glavnaya-st h3 { font-size: 24px; }
  .den__obraz { min-height: 240px; }
  .den__t { padding: 32px 26px; }
  .den blockquote { font-size: 20px; }
  .kanal { padding: 32px 24px; }
  .kanal h2 { font-size: 30px; }
  .st-telo-v { grid-template-columns: 1fr; margin-top: 36px; }
  .st-bok { display: none; }
  .oblozhka { width: calc(100% - 36px); border-radius: 20px; }
  .oblozhka img { aspect-ratio: 4/3; }
  .telo { font-size: 18px; }
  .ill { margin-inline: 0; }
  .podpis { flex-wrap: wrap; }
  .podpis .knopka { margin-left: 0; }
}
.otkrytka.shir { grid-column: span 2; }
.otkrytka.shir img { aspect-ratio: 16/9; }
@media (max-width: 900px) { .otkrytka.shir { grid-column: span 2; } }
