/* Новогодний раздел (home2026/ny/page.php). Шрифт и ширина — как на всём сайте, палитра — из макета */
#wrapper.erk-ny { --ny-green: #17552f; --ny-green-d: #0f3f22; --ny-ink: #14231a; --ny-text: #4a554d; --ny-red: #c4322e; --ny-cream: #faf5ee; --ny-line: #ece8e1; max-width: none; width: auto; margin: 0; padding: 18px 0 56px; background: #fdfdfc; color: var(--ny-text); }
body.erk-inner:has(#wrapper.erk-ny) { background: #fdfdfc; }
#wrapper.erk-ny #content { margin: 0; }
#wrapper.erk-ny #middle::after { display: none; }
.erk-ny :is(h1, h2, h3) { padding: 0; border: 0; background: none; text-shadow: none; font-family: Montserrat, "Segoe UI", Arial, sans-serif; color: var(--ny-ink); }
.erk-ny a { color: var(--ny-green); }
.erk-ny a:hover { color: var(--ny-green-d); }
.erk-ny img { display: block; }
.erk-ny .ny-i { width: 18px; height: 18px; flex: none; }

/* Хлебные крошки */
.ny-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 16px; font-size: 13.5px; }
.erk-ny .ny-crumbs a { display: inline-flex; align-items: center; gap: 12px; color: var(--ny-text); }
.erk-ny .ny-crumbs a:hover { color: var(--ny-green); }
.erk-ny .ny-crumbs .ny-i { width: 21px; height: 21px; color: var(--ny-green); }
.ny-crumbs span { color: #a9b0aa; }
.ny-crumbs b { font-weight: 600; color: var(--ny-ink); }

/* Баннер */
.ny-hero { position: relative; display: flex; align-items: center; min-height: 328px; overflow: hidden; border-radius: 22px; background: linear-gradient(100deg, #f8f3eb 0%, #f4ece1 60%, #efe6da 100%); }
.erk-ny .ny-hero__art { position: absolute; top: 0; right: 0; width: auto; max-width: 52%; height: 100%; object-fit: cover; object-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%); }
.ny-hero__text { position: relative; z-index: 1; width: 60%; max-width: 780px; padding: 34px 0 34px 62px; }
.erk-ny .ny-hero h1 { margin: 0; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; color: var(--ny-green-d); }
.ny-hero h1::after { content: ""; display: block; width: 48px; height: 4px; margin: 16px 0 14px; border-radius: 2px; background: var(--ny-red); }
.erk-ny .ny-hero p { max-width: 560px; margin: 0; font-size: 19px; line-height: 1.45; color: #3d463f; }
.ny-search { display: flex; align-items: center; gap: 12px; max-width: 640px; margin-top: 24px; padding: 5px 5px 5px 20px; border-radius: 14px; background: #fff; box-shadow: 0 6px 22px rgba(60, 40, 20, .08); }
.erk-ny .ny-search .ny-i { width: 24px; height: 24px; color: #6b746d; }
.erk-ny .ny-search input { flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; font-size: 16px; color: var(--ny-ink); -webkit-appearance: none; appearance: none; }
.ny-search:focus-within { box-shadow: 0 0 0 2px var(--ny-green), 0 6px 22px rgba(60, 40, 20, .08); }
.erk-ny .ny-search button { flex: none; height: 44px; padding: 0 40px; border: 0; border-radius: 10px; background: var(--ny-green); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.erk-ny .ny-search button:hover { background: var(--ny-green-d); }
.ny-hero--sub { min-height: 250px; }
.erk-ny .ny-hero--sub h1 { font-size: clamp(28px, 3.2vw, 42px); }

/* Кнопки */
.erk-ny .ny-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 30px; border: 1.5px solid var(--ny-green); border-radius: 10px; background: var(--ny-green); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center; }
.erk-ny .ny-btn:hover { background: var(--ny-green-d); border-color: var(--ny-green-d); color: #fff; }
.erk-ny .ny-btn--line { background: transparent; color: var(--ny-green); }
.erk-ny .ny-hero__btn { margin-top: 20px; }

/* Плитки направлений */
.ny-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; margin-top: 28px; padding: 0; }
.erk-ny .ny-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 6px 16px; border: 1.5px solid transparent; border-radius: 16px; background: var(--ny-cream); transition: transform .2s, box-shadow .2s, border-color .2s; }
.erk-ny .ny-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(60, 40, 20, .1); }
.erk-ny .ny-tile.is-active { border-color: var(--ny-green); }
.ny-tile__pic { display: flex; align-items: center; justify-content: center; width: 100%; height: 84px; }
.erk-ny .ny-tile__pic img { width: auto; height: auto; max-width: min(100%, 114px); max-height: 82px; }
.ny-tile__name { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 40px; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center; color: var(--ny-ink); }
.ny-tile__name span span { white-space: nowrap; }
.erk-ny .ny-tile__name .ny-i { display: inline-block; width: 15px; height: 15px; margin-left: 2px; vertical-align: -2px; }

/* Возраст */
.ny-ages { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.ny-ages > b { font-size: 17px; color: var(--ny-ink); }
.ny-ages > div { display: flex; flex-wrap: wrap; gap: 12px; }
.erk-ny .ny-ages a { display: inline-flex; align-items: center; height: 40px; padding: 0 28px; border: 1.5px solid #cfdfcf; border-radius: 20px; background: #f1f7f1; color: var(--ny-ink); font-size: 15px; font-weight: 500; }
.erk-ny .ny-ages a:hover { border-color: var(--ny-green); }
.erk-ny .ny-ages a.is-active { border-color: var(--ny-green); background: var(--ny-green); color: #fff; }

/* Секции */
.ny-sec { margin-top: 36px; scroll-margin-top: 20px; }
.ny-sec__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.erk-ny .ny-sec__head h2 { position: relative; margin: 0; padding-left: 22px; font-size: 28px; line-height: 1.25; font-weight: 800; }
.ny-sec__head h2::before { content: ""; position: absolute; left: 0; top: .12em; width: 7px; height: 1em; border-radius: 4px; background: var(--ny-green); }
.erk-ny .ny-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.erk-ny .ny-more .ny-i { width: 15px; height: 15px; }

/* Метки на карточках */
.ny-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ny-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 13px; border-radius: 9px; background: #eef0ef; color: var(--ny-text); font-size: 13px; font-style: normal; font-weight: 600; }
.ny-tag.is-red { background: #fde4e2; color: #a9231f; }
.ny-tag.is-green { background: #e4f2dc; color: #205426; }

/* Избранные материалы */
.erk-ny .ny-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.erk-ny .ny-card { margin: 0; padding: 0; list-style: none; }
.erk-ny .ny-card > a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--ny-line); border-radius: 18px; background: #fff; color: var(--ny-text); transition: transform .2s, box-shadow .2s; }
.erk-ny .ny-card > a:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(30, 40, 30, .11); }
/* фото вынуто из потока: высота рамки задаётся только пропорцией, а не самой картинкой */
.ny-card__pic { position: relative; display: block; flex: none; aspect-ratio: 371 / 147; overflow: hidden; background: var(--ny-cream); }
.erk-ny .ny-card__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ny-card__pic .ny-tags { position: absolute; top: 15px; left: 18px; right: 12px; }
.ny-card__body { display: flex; flex: 1; flex-direction: column; padding: 16px 24px 18px; }
.erk-ny .ny-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.ny-card__text { font-size: 14.5px; line-height: 1.55; }
.ny-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; font-size: 14px; }
.ny-card__foot > span { display: inline-flex; align-items: center; gap: 10px; }
.erk-ny .ny-card__foot > span .ny-i { width: 21px; height: 21px; }
.ny-card__foot b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ny-green); }
.erk-ny .ny-card__foot b .ny-i { width: 14px; height: 14px; }

/* Список материалов */
.erk-ny .ny-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.erk-ny .ny-item { margin: 0; padding: 0; list-style: none; }
.erk-ny .ny-item > a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--ny-line); border-radius: 16px; background: #fff; color: var(--ny-text); transition: transform .2s, box-shadow .2s; }
.erk-ny .ny-item > a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30, 40, 30, .1); }
.ny-item__pic { position: relative; display: block; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ny-cream); }
.erk-ny .ny-item__pic:not(.is-icon) img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ny-item__pic.is-icon { display: flex; align-items: center; justify-content: center; }
.erk-ny .ny-item__pic.is-icon img { width: auto; height: 62%; object-fit: contain; }
.ny-item__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 9px; padding: 14px 20px 18px; }
.ny-item__body > b { font-size: 17px; line-height: 1.35; color: var(--ny-ink); }
.ny-item__text { font-size: 14px; line-height: 1.5; }
.ny-item__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14.5px; font-weight: 700; color: var(--ny-green); }
.erk-ny .ny-item__go .ny-i { width: 14px; height: 14px; }
.ny-empty { padding: 36px 24px; border: 1.5px dashed #d9d2c6; border-radius: 16px; background: var(--ny-cream); text-align: center; }
.erk-ny .ny-empty p { margin: 0 0 16px; font-size: 16px; }

/* Шаги письма */
.erk-ny .ny-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: ny; }
.erk-ny .ny-steps li { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 22px; border-radius: 16px; background: var(--ny-cream); list-style: none; counter-increment: ny; }
.ny-steps li::before { content: counter(ny); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ny-green); color: #fff; font-weight: 700; }
.ny-steps b { font-size: 16px; color: var(--ny-ink); }
.ny-steps span { font-size: 14px; line-height: 1.55; }

/* Баннеры «Печать» и «Опубликовать» */
.ny-banner { position: relative; display: flex; align-items: center; gap: 28px; min-height: 120px; margin-top: 28px; padding: 18px 340px 18px 40px; overflow: hidden; border-radius: 18px; }
.ny-banner--print { background: #ecf4ed; }
.ny-banner--publish { margin-top: 16px; background: var(--ny-cream); }
.ny-banner__icon { flex: none; color: var(--ny-green); }
.erk-ny .ny-banner__icon .ny-i { width: 62px; height: 62px; stroke-width: 1.4; }
.ny-banner__text { flex: 1; min-width: 0; }
.erk-ny .ny-banner h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; font-weight: 800; }
.erk-ny .ny-banner p { max-width: 640px; margin: 0; font-size: 14.5px; line-height: 1.55; }
.ny-banner .ny-btn { flex: none; position: relative; z-index: 1; }
.erk-ny .ny-banner__art { position: absolute; top: 0; right: 0; width: auto; max-width: none; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }

/* Значок направления в квадрате */
.ny-pic { display: flex; flex: none; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 18px; background: var(--ny-cream); }
.erk-ny .ny-pic img { width: auto; height: auto; max-width: 56px; max-height: 52px; }

/* Полезные ответы */
.ny-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ny-answers article { display: flex; align-items: flex-start; gap: 20px; padding: 24px 26px; border: 1px solid var(--ny-line); border-radius: 18px; background: #fff; }
.ny-answers article > div { display: flex; flex: 1; flex-direction: column; align-self: stretch; align-items: flex-start; gap: 10px; min-width: 0; }
.erk-ny .ny-answers h3 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 700; }
.erk-ny .ny-answers p { margin: 0; font-size: 15px; line-height: 1.65; }
.erk-ny .ny-answers a { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14.5px; font-weight: 700; }
.erk-ny .ny-answers .ny-i { width: 14px; height: 14px; }

/* Вопросы и ответы: праздничная панель слева, список справа */
.ny-faqbox { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 18px; }
.ny-faqbox__aside { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: linear-gradient(165deg, #1d6a3d 0%, #0f3f22 100%); }
.erk-ny .ny-faqbox__aside h2 { margin: 0; padding: 32px 32px 0; font-size: 30px; line-height: 1.2; font-weight: 800; color: #fff; }
.ny-faqbox__aside h2::after { content: ""; display: block; width: 48px; height: 4px; margin: 16px 0 14px; border-radius: 2px; background: #e5544c; }
.erk-ny .ny-faqbox__aside p { margin: 0; padding: 0 32px 20px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.erk-ny .ny-faqbox__aside img { flex: 1 0 170px; width: 100%; height: 170px; margin-top: auto; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 42%); mask-image: linear-gradient(180deg, transparent 0, #000 42%); }
.ny-faq { display: flex; flex-direction: column; gap: 10px; counter-reset: nyq; }
.ny-faq details { border: 1.5px solid var(--ny-line); border-radius: 16px; background: #fff; transition: border-color .2s, background .2s; }
.ny-faq details:hover { border-color: #bfd8c3; }
.ny-faq details[open] { border-color: #bfd8c3; background: #f3f9f3; }
.ny-faq summary { display: flex; align-items: center; gap: 16px; padding: 16px 20px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ny-ink); cursor: pointer; list-style: none; counter-increment: nyq; }
.ny-faq summary::-webkit-details-marker { display: none; }
.ny-faq summary::before { content: counter(nyq); display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ny-cream); color: var(--ny-green); font-size: 14px; }
.ny-faq details[open] summary::before { background: var(--ny-green); color: #fff; }
.ny-faq summary span { flex: 1; min-width: 0; }
.ny-faq summary::after { content: "+"; display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ecf4ed; color: var(--ny-green); font-size: 20px; font-weight: 600; line-height: 1; }
.ny-faq details[open] summary::after { content: "−"; background: #fff; }
.erk-ny .ny-faq p { margin: 0; padding: 0 66px 20px 70px; font-size: 15px; line-height: 1.65; }
.erk-ny .ny-faq p a { text-decoration: underline; text-underline-offset: 3px; }
.ny-faq details[open] p { animation: ny-in .25s ease-out; }
@keyframes ny-in { from { opacity: 0; transform: translateY(-4px); } }

/* Тематические страницы: карточка на каждое направление */
.erk-ny .ny-about > p { max-width: 820px; margin: -6px 0 18px; font-size: 15px; line-height: 1.65; }
.erk-ny .ny-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.erk-ny .ny-topic { display: flex; flex-direction: column; margin: 0; padding: 20px 20px 18px; border: 1px solid var(--ny-line); border-radius: 18px; background: #fff; list-style: none; transition: border-color .2s, box-shadow .2s; }
.erk-ny .ny-topic:hover { border-color: #bfd8c3; box-shadow: 0 12px 28px rgba(30, 40, 30, .08); }
.erk-ny .ny-topic__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ny-topic__head > span:last-child { min-width: 0; }
.erk-ny .ny-topic h3 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 800; color: var(--ny-green-d); }
.ny-topic__head small { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: #7d877f; }
.erk-ny .ny-topic ul { margin: 0 0 12px; padding: 0; list-style: none; }
.erk-ny .ny-topic ul li { margin: 0; padding: 0; border-top: 1px solid #f0ebe3; list-style: none; }
.erk-ny .ny-topic ul a { position: relative; display: block; padding: 10px 0 10px 16px; font-size: 13.5px; line-height: 1.45; color: var(--ny-text); }
.ny-topic ul a::before { content: ""; position: absolute; left: 1px; top: calc(10px + .72em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--ny-red); }
.erk-ny .ny-topic ul a:hover { color: var(--ny-green); }
.ny-topic i { color: #8a928c; font-size: 12px; }
.erk-ny .ny-topic p { margin: 0 0 14px; padding-top: 12px; border-top: 1px solid #f0ebe3; font-size: 13.5px; line-height: 1.6; }
.erk-ny .ny-topic__more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; font-size: 14px; font-weight: 700; }
.erk-ny .ny-topic__more .ny-i { width: 14px; height: 14px; }
.ny-text { margin-top: 28px; padding: 28px 32px; border: 1px solid var(--ny-line); border-radius: 16px; background: #fff; }

/* на средних экранах фото уже и растворяется дальше, чтобы не заезжать под текст */
@media (max-width: 1320px) {
	.erk-ny .ny-hero__art { max-width: 45%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
	.erk-ny .ny-hero p { max-width: 450px; }
	.ny-search { max-width: 540px; }
}
@media (max-width: 1180px) {
	.ny-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.erk-ny .ny-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ny-answers { grid-template-columns: minmax(0, 1fr); }
	.ny-banner { padding-right: 40px; }
	.erk-ny .ny-banner__art { display: none; }
}
@media (max-width: 960px) {
	.erk-ny .ny-cards, .erk-ny .ny-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.erk-ny .ny-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ny-hero { flex-direction: column; align-items: stretch; }
	.ny-faqbox { grid-template-columns: minmax(0, 1fr); }
	.erk-ny .ny-faqbox__aside img { display: none; }
	.erk-ny .ny-faqbox__aside h2 { padding: 24px 24px 0; font-size: 24px; }
	.erk-ny .ny-faqbox__aside p { padding: 0 24px 22px; }
	.erk-ny .ny-hero__art { position: static; order: -1; width: 100%; max-width: none; height: 190px; object-position: center; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
	.ny-hero__text { width: auto; max-width: none; padding: 8px 28px 28px; }
	.ny-banner { flex-wrap: wrap; gap: 16px 20px; padding: 22px 24px; }
	.ny-banner__text { flex-basis: calc(100% - 100px); }
}
@media (max-width: 620px) {
	#wrapper.erk-ny { padding: 12px 0 40px; }
	.ny-hero { border-radius: 18px; }
	.erk-ny .ny-hero__art { height: 150px; }
	.ny-hero__text { padding: 4px 16px 20px; }
	.erk-ny .ny-hero p { font-size: 15.5px; }
	.ny-search { flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; padding: 6px 6px 6px 14px; }
	.erk-ny .ny-search button { flex-basis: calc(100% + 8px); margin-left: -8px; }
	.erk-ny .ny-hero__btn { width: 100%; padding: 10px 14px; }
	.ny-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
	.erk-ny .ny-tile { gap: 6px; padding: 10px 6px 8px; }
	.ny-tile__pic { height: 66px; }
	.erk-ny .ny-tile__pic img { max-height: 64px; }
	.ny-tile__name { font-size: 14px; }
	.ny-ages { margin-top: 20px; }
	.ny-ages > b { flex-basis: 100%; }
	.ny-ages > div { gap: 8px; }
	.erk-ny .ny-ages a { padding: 0 16px; font-size: 14px; }
	.ny-sec { margin-top: 28px; }
	.erk-ny .ny-sec__head h2 { padding-left: 17px; font-size: 22px; }
	.ny-sec__head h2::before { width: 5px; }
	.erk-ny .ny-cards, .erk-ny .ny-list, .erk-ny .ny-steps, .ny-answers, .erk-ny .ny-index { grid-template-columns: minmax(0, 1fr); }
	.ny-banner__text { flex-basis: 100%; }
	.ny-banner__icon { display: none; }
	.erk-ny .ny-banner h2 { font-size: 19px; }
	.erk-ny .ny-banner .ny-btn { width: 100%; }
	.ny-answers article { flex-direction: column; gap: 14px; padding: 20px 18px; }
	.ny-faq summary { gap: 12px; padding: 14px; font-size: 14.5px; }
	.erk-ny .ny-faq p { padding: 0 16px 16px; }
}
