/* Цвета взяты с логотипа «Продвижение» */
:root {
  --blue: #5b9cc1;        /* круг логотипа */
  --blue-dark: #2c5873;   /* надписи */
  --blue-ink: #1d3c50;
  --sky: #a9d3ea;         /* мальчик-пингвин */
  --sky-soft: #e8f4fa;
  --pink: #c8457f;        /* бантик, цифра 5 */
  --pink-soft: #f6dbe8;   /* девочка-пингвин */
  --cream: #fbf3e6;       /* животики пингвинов */
  --beak: #f2b33d;
  --text: #22333f;
  --muted: #6a7d89;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(44, 88, 115, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Nunito", system-ui, sans-serif; color: var(--text); background: var(--cream); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { color: var(--blue-ink); line-height: 1.2; font-weight: 900; }
h1 { font-size: clamp(28px, 4.2vw, 46px); margin: .3em 0; }
h2 { font-size: clamp(22px, 3vw, 30px); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 16px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section__head a { font-weight: 700; text-decoration: none; }
.lead { font-size: 18px; color: var(--muted); max-width: 760px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 22px;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--pink); color: var(--white); box-shadow: 0 6px 0 #9c2f61; }
.btn--soft { background: var(--white); color: var(--blue-dark); box-shadow: 0 6px 0 var(--sky); }
.btn--tg { background: var(--blue); color: var(--white); }
.btn--big { padding: 15px 30px; font-size: 18px; }

/* Шапка */
.header { background: var(--white); box-shadow: 0 2px 0 var(--sky-soft); position: sticky; top: 0; z-index: 10; }
.header__inner { display: flex; align-items: center; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-dark); }
.brand img { border-radius: 50%; }
.brand b { display: block; font-size: 20px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.brand small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nav { display: flex; gap: 18px; }
.nav a { text-decoration: none; font-weight: 800; }
.nav a:hover { color: var(--pink); }
.search { flex: 1; }
.search input { width: 100%; border: 2px solid var(--sky-soft); background: var(--sky-soft); border-radius: 999px; padding: 10px 18px; font: inherit; }
.search input:focus { outline: none; border-color: var(--blue); background: var(--white); }

/* Главный экран */
.hero { position: relative; background: radial-gradient(circle at 78% 45%, var(--sky) 0, var(--blue) 62%); color: var(--white); overflow: hidden; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 90px; }
.hero h1 { color: var(--white); text-shadow: 0 3px 0 rgba(29, 60, 80, .18); }
.hero p { font-size: 19px; max-width: 560px; }
.hero__kicker { display: inline-block; background: rgba(255,255,255,.2); border-radius: 999px; padding: 5px 14px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-weight: 700; opacity: .95; }
.hero__facts li::before { content: "✓ "; color: var(--beak); font-weight: 900; }
.hero__facts b { font-size: 20px; }
.hero__art { position: relative; height: 380px; }
.hero__circle { position: absolute; inset: 8% 10%; border-radius: 50%; background: rgba(255,255,255,.18); box-shadow: 0 0 0 26px rgba(255,255,255,.08); }
.hero__art img { position: absolute; height: 310px; width: auto; filter: drop-shadow(0 16px 22px rgba(0,0,0,.2)); }
.hero__girl { left: 2%; bottom: 0; transform: rotate(-6deg); animation: bob 4s ease-in-out infinite; }
.hero__boy { right: 2%; top: 0; transform: rotate(6deg); animation: bob 4s ease-in-out infinite 2s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.hero__doodles span { position: absolute; font-weight: 900; font-size: clamp(34px, 5vw, 64px); color: rgba(255,255,255,.13); transform: rotate(-12deg); user-select: none; }
.hero__doodles span:nth-child(even) { transform: rotate(14deg); color: rgba(255,255,255,.1); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--cream); }
@media (prefers-reduced-motion: reduce) { .hero__girl, .hero__boy { animation: none; } }

/* Разделы */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: -30px; position: relative; }
.cat { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: var(--radius); padding: 22px 18px 22px 28px; min-height: 170px; text-decoration: none; color: var(--blue-ink); box-shadow: var(--shadow); transition: transform .15s; overflow: hidden; }
.cat:hover { transform: translateY(-4px); }
.cat:hover img { transform: rotate(0) scale(1.05); }
.cat--1 { background: linear-gradient(135deg, #fbe7f0, var(--pink-soft)); }
.cat--2 { background: linear-gradient(135deg, #d6ecf7, var(--sky)); }
.cat img { height: 140px; width: auto; transform: rotate(8deg); transition: transform .25s; }
.cat b { display: block; font-size: 26px; font-weight: 900; }
.cat small { display: block; color: var(--blue-dark); font-weight: 700; margin: 4px 0 12px; }
.cat__go { display: inline-block; background: var(--white); border-radius: 999px; padding: 5px 14px; font-weight: 800; font-size: 14px; }
.section--tight { padding-top: 8px; padding-bottom: 8px; }
.center { text-align: center; }

/* Как это работает */
.steps-wrap { background: var(--white); margin: 24px 0; }
.steps { list-style: none; padding: 0; margin: 24px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.steps li { text-align: center; padding: 0 10px; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -26px; width: 40px; border-top: 3px dashed var(--sky); }
.steps__num { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); font-size: 30px; font-weight: 900; }
.steps li:nth-child(2) .steps__num { background: var(--sky-soft); color: var(--blue-dark); }
.steps li:nth-child(3) .steps__num { background: #fdf0d3; color: #b07a07; }
.steps b { font-size: 19px; color: var(--blue-ink); }
.steps p { color: var(--muted); margin: 6px 0 0; }

/* Подборки */
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.collection { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 18px; padding: 16px 18px; text-decoration: none; color: var(--blue-ink); box-shadow: 0 4px 0 var(--sky); transition: transform .15s; }
.collection:hover { transform: translateY(-3px); }
.collection span { font-size: 30px; }

/* Для кого */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.audience__item { border-radius: var(--radius); padding: 24px; }
.audience__item span { font-size: 40px; }
.audience__item b { display: block; font-size: 20px; color: var(--blue-ink); margin-top: 6px; }
.audience__item p { margin: 6px 0 0; color: var(--text); }
.audience__item--pink { background: var(--pink-soft); }
.audience__item--sky { background: var(--sky-soft); }
.audience__item--cream { background: #fdf0d3; }

/* Об авторе */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.about img { border-radius: 50%; box-shadow: 0 0 0 8px var(--sky-soft); }
.about h2 { margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.chip { background: var(--white); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 800; box-shadow: 0 3px 0 var(--sky); }
.chip:hover { background: var(--sky-soft); }

/* Карточки */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(44,88,115,.18); }
.card__img { position: relative; aspect-ratio: 3/4; background: var(--sky-soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card__placeholder { display: grid; place-items: center; height: 100%; font-size: 60px; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card__cat { color: var(--blue); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.card h3 { font-size: 17px; margin: 4px 0 6px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--beak); color: var(--blue-ink); font-weight: 900; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.tag--static { position: static; display: inline-block; }
.price { font-weight: 900; color: var(--pink); font-size: 17px; }
.price s { color: var(--muted); font-weight: 600; font-size: .8em; }
.price--free { color: #2f9a62; }
.price--big { font-size: 30px; }

/* Каталог */
.crumbs { color: var(--muted); font-size: 14px; }
.crumbs a { text-decoration: none; }
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin-top: 20px; align-items: start; }
.filters { background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.filters h4 { margin: 14px 0 6px; color: var(--blue-ink); }
.filters h4:first-of-type { margin-top: 0; }
.filters label { display: block; padding: 3px 0; cursor: pointer; }
.filters select { width: 100%; padding: 8px; border-radius: 12px; border: 2px solid var(--sky-soft); font: inherit; }
.filters .btn { width: 100%; margin-top: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.empty { text-align: center; padding: 40px 0; color: var(--muted); font-size: 18px; }
.empty img { margin: 0 auto 10px; width: auto; }

/* Страница материала */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 16px; }
.gallery__main { background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.gallery__main img { border-radius: 12px; margin: 0 auto; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery__thumbs button { border: 3px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; background: var(--white); cursor: pointer; flex: 0 0 80px; }
.gallery__thumbs button:hover, .gallery__thumbs button:focus { border-color: var(--pink); }
.info h1 { margin-top: 8px; }
.buy { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 18px 0; }
.buy .btn { margin-top: 10px; width: 100%; }
.hint { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.inside { display: grid; gap: 10px; margin: 0; }
.inside div { display: grid; grid-template-columns: 110px 1fr; }
.inside dt { color: var(--muted); font-weight: 700; }
.inside dd { margin: 0; font-weight: 700; }
.skill { display: inline-block; background: var(--sky-soft); border-radius: 999px; padding: 2px 10px; margin: 0 6px 6px 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.share span { font-weight: 800; color: var(--muted); }
.share a, .share button { background: var(--white); border: 2px solid var(--sky-soft); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 800; font-size: 14px; color: var(--blue-dark); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--blue); }
.desc { background: var(--white); border-radius: var(--radius); padding: 8px 26px 18px; margin: 30px 0; box-shadow: var(--shadow); }
.soon { background: var(--sky-soft); box-shadow: none; color: var(--muted); }

/* Telegram-баннер */
.tg-banner { display: flex; align-items: center; gap: 24px; background: var(--white); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow); border: 3px dashed var(--sky); }
.tg-banner h2 { margin: 0 0 4px; }
.tg-banner p { margin: 0; color: var(--muted); }
.tg-banner img { border-radius: 50%; flex: none; }
.tg-banner .btn { margin-left: auto; flex: none; }

.flash { background: var(--sky-soft); border-radius: 14px; padding: 12px 18px; margin-top: 14px; font-weight: 700; }

/* Подвал */
.footer { background: var(--blue-dark); color: var(--sky-soft); margin-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { width: auto; }
.footer__links { display: flex; flex-direction: column; gap: 6px; }
.footer a { color: var(--white); font-weight: 700; text-decoration: none; }

/* Телефоны и планшеты */
@media (max-width: 900px) {
  .header__inner { flex-wrap: wrap; gap: 10px 16px; }
  .search { order: 5; flex-basis: 100%; }
  .nav { order: 4; }
  .header .btn--tg { margin-left: auto; padding: 8px 14px; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 20px; }
  .hero__art { height: 220px; }
  .hero__art img { height: 200px; }
  .catalog, .product { grid-template-columns: 1fr; }
  .filters { position: static; }
  .tg-banner { flex-direction: column; text-align: center; }
  .tg-banner .btn { margin: 0; }
}
@media (max-width: 520px) {
  .header { position: static; }
  .brand small { display: none; }
  .brand b { font-size: 17px; }
  .brand img { width: 40px; height: 40px; }
  .header .btn--tg { font-size: 14px; padding: 7px 12px; }
  .nav { gap: 12px; font-size: 14px; overflow-x: auto; }
  .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card h3 { font-size: 15px; }
  .card p { display: none; }
  .footer__brand img { display: none; }
}

/* Кабинет и вход */
.account { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; background: var(--sky-soft); border-radius: 999px; padding: 9px 16px; white-space: nowrap; }
.account:hover { background: var(--sky); }
.auth { max-width: 460px; margin: 10px auto; background: var(--white); border-radius: var(--radius); padding: 30px 32px 34px; box-shadow: var(--shadow); position: relative; }
.auth__penguin { position: absolute; right: -60px; top: -40px; width: auto; transform: rotate(8deg); }
.auth h1 { margin-top: 0; font-size: 32px; }
.muted { color: var(--muted); }
.form { display: grid; gap: 14px; margin-top: 18px; }
.form--card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 520px; }
.field { display: grid; gap: 6px; font-weight: 800; }
.field input { font: inherit; font-weight: 600; padding: 13px 16px; border-radius: 14px; border: 2px solid var(--sky-soft); background: var(--sky-soft); }
.field input:focus { outline: none; border-color: var(--blue); background: var(--white); }
.field input[name="code"] { font-size: 28px; letter-spacing: 10px; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--pink); flex: none; }
.form__error { background: #fde7ee; color: #a32a5c; border-radius: 12px; padding: 9px 14px; font-weight: 700; font-size: 14px; }
.auth__or { text-align: center; margin: 22px 0 14px; color: var(--muted); position: relative; }
.auth__or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--sky-soft); }
.auth__or span { background: var(--white); padding: 0 12px; position: relative; font-weight: 700; }
.auth__tg { display: flex; justify-content: center; }
.auth__links { display: flex; justify-content: space-between; margin-top: 18px; font-weight: 700; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-dark); text-decoration: underline; cursor: pointer; }
.cabinet__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; margin: 10px 0 24px; flex-wrap: wrap; }
.tabs a { text-decoration: none; font-weight: 800; padding: 9px 18px; border-radius: 999px; background: var(--white); }
.tabs a.active { background: var(--blue); color: var(--white); }
.empty .btn { margin-top: 10px; }

/* Избранное */
.card-wrap { position: relative; display: flex; }
.card-wrap .card { flex: 1; }
.fav button { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--pink-soft); background: var(--white); color: var(--pink); border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .15s; }
.fav button:hover { transform: scale(1.05); }
.fav__icon { font-size: 18px; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--pink); }
.fav button.is-on { background: var(--pink-soft); }
.fav button.is-on .fav__icon { color: var(--pink); }
.fav--card { position: absolute; top: 10px; right: 10px; }
.fav--card button { width: 40px; height: 40px; padding: 0; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.12); }

@media (max-width: 900px) {
  .auth__penguin { display: none; }
}
@media (max-width: 520px) {
  .account { padding: 7px 10px; }
  .account__label { display: none; }
  .auth { padding: 24px 20px; }
}

/* Средние экраны: поиск переносим на отдельную строку, чтобы не сжимался */
@media (max-width: 1100px) {
  .header__inner { flex-wrap: wrap; row-gap: 10px; }
  .search { order: 5; flex-basis: 100%; }
  .header .btn--tg { margin-left: auto; }
}

/* Звёзды, отзывы, вопросы */
.stars { display: inline-flex; gap: 1px; color: #d9e3ea; font-size: 15px; letter-spacing: 0; vertical-align: middle; }
.stars i { font-style: normal; }
.stars i.on { color: var(--beak); }
.stars--big { font-size: 24px; }
.rating-link { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--muted); margin-bottom: 10px; }
.card__rating { display: flex; align-items: center; gap: 6px; margin: -2px 0 6px; color: var(--muted); }
.talk { background: var(--white); border-radius: var(--radius); padding: 10px 26px 24px; margin: 30px 0; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.talk__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.talk__head h2 small { background: var(--sky-soft); color: var(--blue-dark); border-radius: 999px; padding: 2px 10px; font-size: 16px; vertical-align: middle; }
.talk__score { display: flex; align-items: center; gap: 10px; }
.talk__score b { font-size: 34px; color: var(--blue-ink); font-weight: 900; }
.talk__form { display: grid; gap: 12px; background: var(--cream); border-radius: 18px; padding: 18px; margin-bottom: 18px; }
.talk__form textarea, .mod textarea { width: 100%; font: inherit; border: 2px solid var(--sky-soft); border-radius: 14px; padding: 12px 14px; resize: vertical; background: var(--white); }
.talk__form textarea:focus, .mod textarea:focus { outline: none; border-color: var(--blue); }
.talk__form .btn { justify-self: start; }
.talk__hint { background: var(--sky-soft); border-radius: 14px; padding: 12px 16px; font-weight: 700; }
.talk__empty { color: var(--muted); }
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label { font-size: 34px; color: #d9e3ea; cursor: pointer; transition: transform .1s; line-height: 1; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: var(--beak); }
.rate label:hover { transform: scale(1.15); }
.rate input:focus-visible + label { outline: 2px solid var(--blue); border-radius: 6px; }
.msg { border-top: 2px dashed var(--sky-soft); padding: 16px 0 6px; scroll-margin-top: 90px; }
.msg header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.msg header time { color: var(--muted); font-size: 13px; margin-left: auto; }
.msg > p { margin: 8px 0; }
.msg--pending { opacity: .75; }
.msg__answer { display: flex; gap: 12px; background: var(--pink-soft); border-radius: 16px; padding: 12px 16px; margin: 10px 0 6px 24px; }
.msg__answer img { border-radius: 50%; flex: none; }
.msg__answer b { color: var(--pink); }
.msg__answer p { margin: 2px 0 0; }
.mod { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; padding: 10px 12px; border-radius: 14px; background: #fff8e8; border: 2px dashed var(--beak); font-size: 14px; }
.mod form { display: flex; gap: 6px; }
.mod__badge { font-weight: 800; color: #9a6b00; }
.mod__btn { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 5px 14px; cursor: pointer; background: var(--white); color: var(--muted); }
.mod__btn--ok { background: #2f9a62; color: var(--white); }
.mod__answer { flex-basis: 100%; }
.mod__answer summary { cursor: pointer; font-weight: 800; color: var(--blue-dark); }
.mod__answer form { flex-direction: column; margin-top: 8px; }
.mod__answer .btn { align-self: flex-start; padding: 8px 18px; }
@media (max-width: 520px) {
  .talk { padding: 6px 16px 18px; }
  .msg__answer { margin-left: 0; }
}

/* Объявление и плашки для автора */
.announce { background: var(--pink); color: var(--white); text-align: center; font-weight: 800; padding: 9px 16px; font-size: 15px; }
.announce a { color: var(--white); text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.draft-bar { background: #fff8e8; border: 2px dashed var(--beak); border-radius: 14px; padding: 10px 16px; margin-bottom: 12px; font-weight: 700; }
.draft-bar--ok { background: var(--sky-soft); border-color: var(--sky); padding: 6px 14px; display: inline-block; }
.draft-bar a { font-weight: 800; }

/* Галерея: увеличение страниц */
.gallery__zoom { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; position: relative; }
.gallery__hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(29,60,80,.75); color: var(--white); font: inherit; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 5px 12px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.gallery__zoom:hover .gallery__hint, .gallery__zoom:focus-visible .gallery__hint { opacity: 1; }
.gallery__thumbs button.is-active { border-color: var(--pink); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 40, 55, .88); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; justify-items: center; }
.lightbox img { max-height: 88vh; max-width: min(92vw, 900px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); grid-column: 2; }
.lightbox__close { position: fixed; top: 14px; right: 18px; font-size: 40px; line-height: 1; }
.lightbox__close, .lightbox__nav { background: rgba(255,255,255,.15); color: var(--white); border: 0; border-radius: 50%; width: 52px; height: 52px; cursor: pointer; }
.lightbox__nav { font-size: 36px; margin: 0 12px; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,.3); }
.lightbox__count { position: fixed; bottom: 10px; left: 0; right: 0; text-align: center; color: var(--white); font-weight: 700; margin: 0; }

/* Нижняя панель «Скачать» — только на телефоне */
.buybar { display: none; }

/* Каталог: заголовок и фильтры */
.list-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.list-count { color: var(--muted); font-weight: 700; }
.filters-wrap > summary { display: none; }
.filters__reset { display: block; text-align: center; margin-top: 10px; font-weight: 700; }

/* Страница 404 */
.oops { display: flex; align-items: center; gap: 40px; justify-content: center; padding: 30px 0; }
.oops img { width: 200px; height: auto; transform: rotate(-8deg); }
.oops__search { display: flex; gap: 10px; margin: 18px 0; max-width: 460px; }
.oops__search input { flex: 1; font: inherit; border: 2px solid var(--sky); border-radius: 999px; padding: 10px 18px; }

/* Доступность: видимый фокус для клавиатуры */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--beak); outline-offset: 2px; }

@media (max-width: 900px) {
  .hero__inner { padding-bottom: 70px; }
  .hero__art { height: 240px; }
  .hero__art img { height: 210px; }
  .hero__circle { inset: 4% 22%; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .steps li::after { display: none; }
  .audience { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about img { margin: 0 auto; width: 160px; height: 160px; }
  .filters-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
  .filters-wrap > summary { display: block; padding: 14px 20px; font-weight: 800; cursor: pointer; list-style: none; }
  .filters-wrap > summary::after { content: " ▾"; color: var(--blue); }
  .filters-wrap[open] > summary::after { content: " ▴"; }
  .filters-wrap .filters { box-shadow: none; padding-top: 0; }
  .oops { flex-direction: column; text-align: center; }
  .oops__search { margin-left: auto; margin-right: auto; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--white); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(44,88,115,.15); }
  .buybar b { display: block; font-size: 18px; color: var(--pink); }
  .buybar small { color: var(--muted); }
  body:has(.buybar) .footer { padding-bottom: 70px; }
  .lightbox__nav { position: fixed; bottom: 40px; margin: 0; }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
  .lightbox img { max-width: 96vw; max-height: 78vh; }
}
@media (max-width: 520px) {
  .cat { min-height: 140px; padding-left: 20px; }
  .cat img { height: 110px; }
  .cat b { font-size: 22px; }
  .hero__facts { gap: 6px 16px; font-size: 14px; }
}
@media (max-width: 520px) {
  .header .btn--tg { display: none; }
  .account { margin-left: auto; }
}

/* Плашка про cookie */
.cookies { position: fixed; left: 16px; bottom: 16px; z-index: 30; max-width: 420px; display: flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: 18px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(29,60,80,.22); font-size: 14px; }
.cookies p { margin: 0; }
.cookies .btn { padding: 8px 16px; flex: none; }
.cookies[hidden] { display: none; }
@media (max-width: 900px) { .cookies { left: 10px; right: 10px; bottom: 84px; max-width: none; } }

/* Постраничная навигация */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px 0 10px; }
.pager a, .pager span { min-width: 42px; text-align: center; padding: 9px 14px; border-radius: 999px; font-weight: 800; text-decoration: none; background: var(--white); }
.pager a:hover { background: var(--sky-soft); }
.pager .is-current { background: var(--blue); color: var(--white); }

/* Документы в подвале */
.footer__docs { font-size: 14px; }
.footer__docs a { font-weight: 600; opacity: .85; }
.license-note { margin-top: 16px; }

/* Документы: страница и модальное окно */
.doc-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; margin-top: 12px; }
.doc-layout:not(:has(.doc-nav)) { grid-template-columns: 1fr; }
.doc { background: var(--white); border-radius: var(--radius); padding: 10px 34px 30px; box-shadow: var(--shadow); max-width: 860px; }
.doc h1 { font-size: clamp(26px, 3.4vw, 36px); }
.doc h2 { font-size: 20px; margin: 26px 0 8px; }
.doc h3 { font-size: 17px; margin: 18px 0 6px; }
.doc p, .doc li { line-height: 1.65; }
.doc ul, .doc ol { padding-left: 22px; }
.doc table { border-collapse: collapse; width: 100%; }
.doc td, .doc th { border: 1px solid var(--sky-soft); padding: 6px 10px; text-align: left; }
.doc-nav { display: flex; flex-direction: column; gap: 4px; background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.doc-nav b { margin-bottom: 6px; color: var(--blue-ink); }
.doc-nav a { text-decoration: none; padding: 7px 12px; border-radius: 12px; font-weight: 700; }
.doc-nav a.active, .doc-nav a:hover { background: var(--sky-soft); }
.doc-modal { border: 0; padding: 0; border-radius: var(--radius); width: min(760px, 94vw); max-height: 86vh; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.doc-modal::backdrop { background: rgba(20, 40, 55, .6); }
.doc-modal__body { overflow-y: auto; max-height: 86vh; }
.doc-modal__body .doc { box-shadow: none; max-width: none; }
.doc-modal__close { position: sticky; float: right; top: 10px; margin: 10px 10px 0 0; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sky-soft); font-size: 26px; line-height: 1; cursor: pointer; color: var(--blue-dark); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc { padding: 6px 20px 22px; }
  .doc-nav { position: static; }
}
