/*
Theme Name: Blocksy Child - Piscine Sereine
Template: blocksy
Description: Дочерняя тема piscinesereine.com (seo-8e, 2026-11-09). Раскладка «летняя открытка», левая колонка в статье.
Version: 1.0
*/

/* Палитра: бирюза бассейна, глубокий синий, песок, коралл */
:root {
	--ps-aqua: #0ea5b7;
	--ps-aqua-soft: #e0f6f8;
	--ps-deep: #0b3954;
	--ps-sand: #fbf3e4;
	--ps-coral: #ff7a59;
	--ps-ink: #12303f;
	--ps-ink2: #557080;
	--ps-line: #d9ecef;
	--ps-r: 18px;
	--ps-font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--ps-round: "Nunito", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}
body { background: #fff; color: var(--ps-ink); font-family: var(--ps-font); }
.ps-wrap { max-width: 1220px; margin: 0 auto; padding: 0 22px; }

/* Шапка Blocksy - белая, бирюзовый акцент */
#header .site-title a, #header [data-id="logo"] a { color: var(--ps-deep) !important; font-family: var(--ps-round); font-weight: 800; }
#header .ct-menu-link:hover { color: var(--ps-aqua) !important; }

/* Волна */
.ps-wave { display: block; width: 100%; height: 46px; margin-top: -1px; }
.ps-wave path { fill: #fff; }

/* Шапка ленты и статьи */
.ps-hero { background: linear-gradient(160deg, #0ea5b7 0%, #0b6f8f 55%, #0b3954 100%); color: #fff; padding-top: 50px; position: relative; overflow: hidden; }
.ps-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18) 0 2px, transparent 3px) 0 0/38px 38px; opacity: .5; pointer-events: none; }
.ps-hero .ps-wrap { position: relative; padding-bottom: 26px; }
.ps-hero__k { font-family: var(--ps-round); font-weight: 700; color: #bff3f8; margin: 0 0 8px; }
.ps-hero__h { color: #fff; font-family: var(--ps-round); font-size: clamp(30px, 4.5vw, 54px); line-height: 1.08; margin: 0 0 14px; font-weight: 800; max-width: 760px; }
.ps-hero__h--s { font-size: clamp(28px, 3.6vw, 42px); }
.ps-hero__h--art { font-size: clamp(28px, 3.6vw, 44px); max-width: 900px; }
.ps-hero__p { color: #dff6f9; font-size: 18px; max-width: 640px; margin: 0 0 26px; }
.ps-hero--art { padding-top: 30px; }
.ps-crumbs { font-size: 14px; color: #bff3f8; margin-bottom: 10px; }
.ps-crumbs a { color: #fff; }
.ps-art__m { display: flex; flex-wrap: wrap; gap: 6px 20px; color: #dff6f9; font-size: 15px; margin: 0; }
.ps-art__m span::before { content: "●"; color: var(--ps-coral); font-size: 9px; margin-right: 8px; vertical-align: middle; }

/* «Буйки» рубрик */
.ps-buoys { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 8px; }
.ps-buoys a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; width: 120px; text-align: center; }
.ps-buoys a > span { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ps-deep); border: 7px solid var(--ps-coral); box-shadow: 0 8px 20px rgba(0,0,0,.18); transition: transform .2s; }
.ps-buoys a:nth-child(even) > span { border-color: #ffd166; }
.ps-buoys a:hover > span { transform: translateY(-4px) rotate(-8deg); }

/* Лента: две колонки карточек + правая колонка */
.ps-feed__cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 18px; padding-bottom: 60px; align-items: start; }
.ps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ps-card { background: #fff; border-radius: var(--ps-r); box-shadow: 0 0 0 1px var(--ps-line), 0 8px 24px rgba(11,57,84,.06); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.ps-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--ps-aqua), 0 14px 30px rgba(11,57,84,.12); }
.ps-card__img { display: block; aspect-ratio: 16/10; background: var(--ps-aqua-soft); overflow: hidden; }
.ps-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-card__b { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ps-card__t { font-family: var(--ps-round); font-size: 21px; line-height: 1.25; margin: 10px 0 8px; font-weight: 800; }
.ps-card__t a { color: var(--ps-ink); text-decoration: none; }
.ps-card__t a:hover { color: var(--ps-aqua); }
.ps-card__ex { color: var(--ps-ink2); font-size: 15px; margin: 0 0 12px; }
.ps-card__m { color: var(--ps-ink2); font-size: 13px; margin: auto 0 0; }
.ps-card--wide { grid-column: 1 / -1; flex-direction: row; }
.ps-card--wide .ps-card__img { flex: 0 0 52%; aspect-ratio: auto; min-height: 280px; }
.ps-card--wide .ps-card__t { font-size: 28px; }
.ps-chip { align-self: flex-start; background: var(--ps-aqua-soft); color: #0a7f8e; font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 999px; text-decoration: none; }
.ps-ph { width: 100%; height: 100%; min-height: 100%; display: grid; place-items: center; color: var(--ps-aqua); background: repeating-linear-gradient(-45deg, var(--ps-aqua-soft) 0 14px, #ecfafb 14px 28px); }
.ps-ph svg { width: 54px; height: 54px; }
.ps-empty { padding: 30px 0; color: var(--ps-ink2); }
.ps-feed .nav-links { display: flex; gap: 8px; margin-top: 30px; }
.ps-feed .page-numbers { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ps-aqua-soft); text-decoration: none; color: var(--ps-deep); font-weight: 700; }
.ps-feed .page-numbers.current { background: var(--ps-deep); color: #fff; }

/* Колонка */
.ps-aside { position: sticky; top: 24px; display: grid; gap: 18px; }
.ps-box { background: var(--ps-sand); border-radius: var(--ps-r); padding: 18px 20px; }
.ps-box__h { font-family: var(--ps-round); font-weight: 800; font-size: 17px; color: var(--ps-deep); margin: 0 0 12px; }
.ps-box--s { background: var(--ps-deep); }
.ps-box--s .ps-box__h { color: #fff; }
.ps-box--month { background: linear-gradient(135deg, #fff1ec, #ffe2d8); border-left: 6px solid var(--ps-coral); }
.ps-box--month p:last-child { margin: 0; color: var(--ps-ink); }
.ps-search { display: flex; background: #fff; border-radius: 999px; padding: 4px; }
.ps-search input[type="search"] { flex: 1; border: 0 !important; background: transparent !important; padding: 8px 14px; min-width: 0; font-size: 15px; box-shadow: none !important; }
.ps-search button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ps-coral); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ps-new { list-style: none; margin: 0; padding: 0; }
.ps-new a { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--ps-ink); font-weight: 600; font-size: 14px; line-height: 1.3; }
.ps-new a:hover { color: var(--ps-aqua); }
.ps-new__img { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; display: block; }
.ps-new__img img, .ps-new__img .ps-ph { width: 100%; height: 100%; object-fit: cover; }
.ps-new__img .ps-ph svg { width: 22px; height: 22px; }
.ps-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-cats a { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 12px 6px 8px; text-decoration: none; color: var(--ps-deep); font-weight: 600; font-size: 14px; }
.ps-cats svg { width: 20px; height: 20px; color: var(--ps-aqua); }

/* Статья: колонка СЛЕВА */
.ps-art__cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; padding-top: 18px; padding-bottom: 50px; align-items: start; }
.ps-art__main { min-width: 0; max-width: 780px; }
.ps-art__img { margin: 0 0 26px; }
.ps-art__img img { width: 100%; height: auto; border-radius: var(--ps-r); display: block; }
.ps-content { font-size: 18px; line-height: 1.75; }
.ps-content h2 { font-family: var(--ps-round); font-size: 29px; line-height: 1.2; margin: 44px 0 14px; color: var(--ps-deep); font-weight: 800; }
.ps-content h2::after { content: ""; display: block; width: 56px; height: 6px; border-radius: 3px; margin-top: 10px; background: linear-gradient(90deg, var(--ps-aqua), var(--ps-coral)); }
.ps-content h3 { font-family: var(--ps-round); font-size: 21px; margin: 28px 0 10px; color: var(--ps-deep); }
.ps-content table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; margin: 22px 0; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--ps-line); }
.ps-content th { background: var(--ps-deep); color: #fff; padding: 11px 14px; text-align: left; }
.ps-content td { padding: 10px 14px; border-top: 1px solid var(--ps-line); }
.ps-content tr:nth-child(even) td { background: #f5fcfd; }
.ps-content blockquote { margin: 26px 0; padding: 16px 22px; border: 0; border-radius: 14px; background: var(--ps-sand); position: relative; font-style: normal; }
.ps-content blockquote::before { content: "💡"; position: absolute; left: -12px; top: -12px; background: #fff; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.1); font-size: 16px; }

/* Оглавление WordsPost - пилюли */
.wppub-toc { margin: 0 0 30px; padding: 0; background: none; border: 0; }
.wppub-toc__title { font-family: var(--ps-round); font-weight: 800; font-size: 15px !important; color: var(--ps-ink2); margin: 0 0 10px !important; }
.wppub-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wppub-toc__list > li { margin: 0; }
.wppub-toc__list > li > a { display: inline-block; background: var(--ps-aqua-soft); color: #0a6f7c; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.wppub-toc__list > li > a:hover { background: var(--ps-aqua); color: #fff; }
.wppub-toc__list ul { display: none; }

/* «À lire aussi» */
.ps-tip { margin: 32px 0; position: relative; background: var(--ps-aqua-soft); border-radius: var(--ps-r); padding: 22px 20px 16px; }
.ps-tip::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 18px; background: radial-gradient(circle at 9px 0, transparent 9px, var(--ps-aqua-soft) 10px) 0 9px/18px 18px repeat-x; }
.ps-tip__l { position: absolute; top: -12px; left: 20px; background: var(--ps-coral); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; z-index: 1; }
.ps-tip a { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ps-deep); }
.ps-tip__img { width: 66px; height: 66px; border-radius: 14px; overflow: hidden; flex: none; display: block; }
.ps-tip__img img, .ps-tip__img .ps-ph { width: 100%; height: 100%; object-fit: cover; }
.ps-tip__img .ps-ph svg { width: 26px; height: 26px; }
.ps-tip__t { font-family: var(--ps-round); font-weight: 800; font-size: 19px; line-height: 1.25; }
.ps-tip a:hover .ps-tip__t { color: var(--ps-aqua); }

/* FAQ WordsPost - карточки-«капли» с номерами, две колонки */
.ps-content .wm-faq { margin: 50px 0 10px; counter-reset: fq; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ps-content .wm-faq > h2 { grid-column: 1 / -1; margin-bottom: 4px; }
.ps-content .wm-faq-item { counter-increment: fq; background: #fff; border-radius: var(--ps-r); box-shadow: 0 0 0 1px var(--ps-line), 0 6px 18px rgba(11,57,84,.05); padding: 18px 20px 16px 20px; position: relative; }
.ps-content .wm-faq-question { margin: 0 0 8px !important; font-size: 18px !important; line-height: 1.3; padding-left: 46px; min-height: 36px; }
.ps-content .wm-faq-question::before { content: counter(fq); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; background: var(--ps-aqua); color: #fff; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; font-size: 15px; font-family: var(--ps-round); }
.ps-content .wm-faq-answer { font-size: 16px; color: var(--ps-ink2); line-height: 1.6; }
.ps-content .wm-faq-answer p { margin: 0 0 6px; }

/* «Sur le même sujet» - строки с миниатюрой, две колонки */
.ps-rel { margin-top: 46px; border-top: 2px dashed var(--ps-line); padding-top: 24px; }
.ps-rel__h { font-family: var(--ps-round); font-size: 26px; font-weight: 800; color: var(--ps-deep); margin: 0 0 16px; }
.ps-rel__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ps-rel__i { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--ps-sand); text-decoration: none; color: var(--ps-ink); font-weight: 700; line-height: 1.3; transition: background .15s; }
.ps-rel__i:hover { background: var(--ps-aqua-soft); }
.ps-rel__i small { display: block; color: var(--ps-coral); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.ps-rel__img { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; display: block; }
.ps-rel__img img, .ps-rel__img .ps-ph { width: 100%; height: 100%; object-fit: cover; }
.ps-rel__img .ps-ph svg { width: 26px; height: 26px; }

/* Полоса перед подвалом */
.ps-band { background: var(--ps-deep); color: #cfe6ee; padding-bottom: 28px; margin-top: 20px; }
.ps-wave--top { transform: rotate(180deg); margin-top: 0; }
.ps-wave--top path { fill: #fff; }
.ps-band__in { max-width: 1220px; margin: 0 auto; padding: 18px 22px 0; display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px 48px; }
.ps-band strong { font-family: var(--ps-round); font-size: 26px; color: #fff; }
.ps-band__cats { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.ps-band__cats a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 7px 14px 7px 10px; font-weight: 600; }
.ps-band__cats a:hover { border-color: var(--ps-coral); }
.ps-band__cats svg { width: 20px; height: 20px; color: #7fe3ee; }
.ps-band__note { grid-column: 1 / -1; font-size: 13px; color: #8fb3c2; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; margin: 0; }

/* Узкие экраны */
@media (max-width: 1000px) {
	.ps-feed__cols, .ps-art__cols { grid-template-columns: 1fr; }
	.ps-aside { position: static; order: 2; }
	.ps-art__main { max-width: none; }
}
@media (max-width: 680px) {
	.ps-wrap { padding: 0 16px; }
	.ps-grid { grid-template-columns: 1fr; }
	.ps-card--wide { flex-direction: column; }
	.ps-card--wide .ps-card__img { min-height: 0; aspect-ratio: 16/10; }
	.ps-buoys a { width: calc(50% - 13px); }
	.ps-content { font-size: 17px; }
	.ps-content .wm-faq, .ps-rel__list { grid-template-columns: 1fr; }
	.ps-band__in { grid-template-columns: 1fr; }
}

/* Правки после проверки: белый фон под волной, номер в «капле» без поворота, свой копирайт */
body, #main-container, .site-main, main#main { background: #fff !important; }
.ps-content .wm-faq-question::before { transform: none; border-radius: 50% 0 50% 50%; }
.ct-footer [data-row="bottom"], .ct-footer-copyright { display: none !important; }

/* Фон Blocksy (palette-color-7) - белый, чтобы волна сливалась с фоном */
:root { --theme-palette-color-7: #ffffff; }
