/*
 * bundled demo site-package — публичный CSS демо-сайта.
 * Источник устанавливается в theme/main командой php ky6 site-package:install @demo.
 */

:root {
  --chalk: #f6f7f8;
  --paper: #fffdf8;
  --paper-soft: #fbfaf5;
  --sea: #0d7dba;
  --sea-dark: #0569a8;
  --deep: #2e4e66;
  --forest: #2e7d42;
  --sage: #a7c7b2;
  --pebble: #e6dcc6;
  --ink: #12304a;
  --muted: #5f7181;
  --line: rgba(46, 78, 102, .13);
  --glow: 0 18px 70px rgba(46, 78, 102, .13), 0 5px 22px rgba(46, 78, 102, .08);
  --glow-soft: 0 12px 46px rgba(46, 78, 102, .11), 0 2px 14px rgba(46, 78, 102, .06);
  --radius-card: 22px;
  --radius-large: 30px;
  --radius-small: 14px;
  --container: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Совместимость со старыми шаблонами demo-темы. */
  --c-indigo: var(--sea);
  --c-rose: var(--forest);
  --c-slate: var(--ink);
  --c-surface: var(--chalk);
  --c-white: #fff;
  --c-bg: var(--chalk);
  --c-border: var(--line);
  --c-text: var(--ink);
  --c-text-muted: var(--muted);
  --c-gradient: linear-gradient(135deg, var(--sea), var(--forest));
  --font-base: var(--sans);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: var(--radius-card);
  --r-full: 9999px;
  --shadow-sm: 0 6px 22px rgba(46, 78, 102, .09);
  --shadow-md: var(--glow-soft);
  --shadow-lg: var(--glow);
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(13, 125, 186, .08), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(46, 125, 66, .075), transparent 30rem),
    linear-gradient(180deg, #fff 0%, var(--chalk) 34%, #fff 100%);
  line-height: 1.55;
  overflow-x: hidden;
}
body > main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 48px 0; }
.section--light { background: transparent; }
.section--features { background: transparent; }
.section--cta { padding: 48px 0 56px; }
.section-pad { padding: 48px 0; }
.section-pad.compact { padding: 34px 0; }

/* Иконки темы берутся из штатного SVG-спрайта ui-kit через icons_url(). */
.icon { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: middle; fill: currentColor; flex-shrink: 0; }
.icon--sm { width: 1em; height: 1em; }
.icon--md { width: 1.5em; height: 1.5em; }
.btn .icon, .teaser-link .icon, .recipe-meta .icon, .hero-badge .icon { margin-left: .28em; vertical-align: -0.16em; }
.recipe-meta .icon, .hero-badge .icon { margin-left: 0; margin-right: .35em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, .84);
  border-bottom: 1px solid rgba(46, 78, 102, .08);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 34px;
  min-width: 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 270px; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sea);
  border: 1px solid rgba(13, 125, 186, .25);
  background: linear-gradient(145deg, #fff, #eff8fb);
  font-size: 24px;
  box-shadow: 0 7px 18px rgba(46, 78, 102, .12);
}
.brand strong { display: block; font-family: var(--serif); font-size: 25px; line-height: 1.05; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.main-nav { display: flex; gap: 26px; align-items: center; flex: 1; justify-content: center; min-width: 0; }
.main-nav a { font-size: 15px; color: #243a4f; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--sea); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.75);
  color: var(--ink);
  box-shadow: 0 6px 22px rgba(46,78,102,.09);
  cursor: pointer;
  font-size: 22px;
  display: inline-grid;
  place-items: center;
}

/* Buttons */
.btn {
  --btn-bg: #fff;
  --btn-text: var(--ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 48px;
  padding: 13px 29px 13px 24px;
  font-weight: 800;
  color: var(--btn-text);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-border);
  border-radius: 18px 24px 56px 18px;
  box-shadow: 0 9px 22px rgba(46,78,102,.11);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 15px 32px rgba(46,78,102,.18); }
.btn:active { transform: translateY(1px); box-shadow: 0 6px 16px rgba(46,78,102,.12); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary, .btn-cta { --btn-bg: linear-gradient(135deg, #0e82c0, #0569a8); --btn-text: #fff; }
.btn-secondary, .btn-outline { --btn-bg: rgba(255,255,255,.75); --btn-text: var(--forest); --btn-border: rgba(46,125,66,.55); box-shadow: none; }
.btn-neutral, .btn-ghost { --btn-bg: rgba(167,199,178,.23); --btn-text: var(--forest); --btn-border: rgba(46,125,66,.18); box-shadow: none; }
.btn-contact { --btn-bg: rgba(255,255,255,.75); --btn-text: var(--sea); --btn-border: rgba(13,125,186,.28); }
.btn-compact { min-height: 42px; padding: 9px 23px 9px 18px; font-size: 14px; }
.btn-lg { min-height: 52px; }
.btn .hi { width: 18px; height: 18px; }

.glow-card,
.teaser-card,
.ck-card,
.content-kit-card,
.feedback-panel,
.auth-panel__card,
.demo-user-profile,
.demo-user-detail,
.recipe-panel,
.article-detail-card,
.legal-page,
.page-content,
.suggest-recipe-page__aside,
.seasonal-page__notes,
.contact-item,
.about-visual {
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--glow-soft);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-card);
}

/* Typography */
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.08; }
h1, h2, h3, .section-title, .hero-title, .recipe-card__title, .teaser-title, .letopis-demo__title { font-family: var(--serif); letter-spacing: -.035em; }
h1, .hero-title { font-size: clamp(42px, 6vw, 74px); max-width: 760px; }
h2, .section-title { font-size: clamp(32px, 4vw, 48px); }
h3, .recipe-card__title, .teaser-title { font-size: 25px; }
.gradient, .text-gradient { color: var(--forest); }
.section-label,
.eyebrow,
.hero-badge,
.recipe-badge,
.letopis-demo__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--sea);
  font-size: 12px;
}
.section-label { display: block; text-align: center; }
.section-label--left { text-align: left; }
.section-title { text-align: center; margin-bottom: 14px; }
.section-title--left { text-align: left; }
.section-subtitle { text-align: center; color: var(--muted); font-size: 18px; max-width: 660px; margin: 0 auto 32px; }
.section-subtitle--left { text-align: left; margin-left: 0; }
.ck-section-heading { margin-bottom: 24px; }
.ck-section-heading--with-actions { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.ck-section-heading__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.section-heading-inline { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }

/* Home hero */
.demo-hero { padding: 48px 0; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: stretch; }
.hero-card,
.simple-slider {
  min-height: 520px;
  border-radius: var(--radius-large);
  overflow: hidden;
  position: relative;
  background: rgba(255,253,248,.92);
  box-shadow: var(--glow-soft);
  border: 1px solid rgba(255,255,255,.72);
}
.simple-slider-track { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.simple-slider-track::-webkit-scrollbar { display: none; }
.simple-slide {
  min-width: 100%;
  min-height: 520px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--paper);
  background-position: center right;
  background-size: cover;
}
.simple-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(255,253,248,.93) 35%, rgba(255,253,248,.20) 68%, rgba(255,253,248,0));
  z-index: 1;
}
.simple-slide > .container { position: relative; z-index: 2; width: min(100%, calc(100% - 80px)); margin-left: 56px; }
.simple-slide-overlay, .simple-slide-parallax { display: none; }
.hero-subtitle { font-size: 19px; max-width: 560px; color: #405768; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.simple-slider-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--deep);
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 24px rgba(46,78,102,.13);
  cursor: pointer;
}
.simple-slider-arrow svg { width: 22px; height: 22px; }
.simple-slider-arrow--prev { left: 18px; }
.simple-slider-arrow--next { right: 18px; }
.simple-slider-dots { position: absolute; z-index: 3; left: 56px; bottom: 30px; display: flex; gap: 8px; }
.simple-slider-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(46,78,102,.24); cursor: pointer; }
.simple-slider-dot.is-active { width: 26px; border-radius: 99px; background: var(--sea); }
.season-card {
  border-radius: var(--radius-large);
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255,253,248,.95), rgba(246,247,248,.88)),
    url('/theme/main/assets/demo/design/dv-texture-pebbles.jpg') center/cover;
}
.season-card h2 { font-size: 32px; }
.season-card p:not(.eyebrow) { color: var(--muted); }
.mini-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.mini-list span, .chip {
  padding: 8px 13px;
  border-radius: 99px;
  color: var(--forest);
  background: rgba(167, 199, 178, .28);
  border: 1px solid rgba(46, 125, 66, .14);
  font-weight: 700;
  font-size: 12px;
}

/* Cards and content-kit components */
.teasers-grid,
.ck-cards-grid,
.recipe-grid,
.letopis-demo__grid,
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.teasers-grid--1, .ck-cards-grid--1 { grid-template-columns: 1fr; }
.teasers-grid--2, .ck-cards-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.teasers-grid--4, .ck-cards-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teaser-card,
.ck-card,
.letopis-demo__card {
  padding: 28px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.teaser-image, .ck-card__image { margin: -28px -28px 22px; height: 170px; overflow: hidden; }
.teaser-image img, .ck-card__image img { width: 100%; height: 100%; object-fit: cover; }
.teaser-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--forest); background: rgba(167,199,178,.25); margin-bottom: 18px; }
.teaser-body, .ck-card p, .letopis-demo__excerpt { color: var(--muted); }
.teaser-link,
.text-link,
.letopis-demo__link,
.recipe-card__link,
.article-detail-card__backlink {
  margin-top: auto;
  color: var(--sea);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(13,125,186,.36);
  padding-bottom: 3px;
  width: fit-content;
}
.content-kit-showcase__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }
.content-kit-card { padding: 30px; }
.content-kit-card h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 12px; }
.content-kit-card > p:not(.section-label) { color: var(--muted); max-width: 620px; }
.content-kit-card .ky6-countdown { margin-top: 22px; }

/* Recipe catalog */
.recipe-card {
  border-radius: var(--radius-card);
  min-height: 410px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper) 0%, #fff 72%);
  box-shadow: var(--glow-soft);
  border: 1px solid rgba(255,255,255,.72);
}
.recipe-card__image {
  position: absolute;
  inset: 0 0 auto auto;
  width: 62%;
  height: 52%;
  overflow: hidden;
  pointer-events: none;
}
.recipe-card__image img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.82) 22%, rgba(255,255,255,.2) 54%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 30%, #fff 100%);
}
.recipe-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--sea); background: rgba(13,125,186,.08); }
.recipe-card__body { min-height: 410px; padding: 36px 30px 28px; display: flex; flex-direction: column; position: relative; z-index: 2; }
.recipe-card__title { max-width: 320px; margin-bottom: 16px; }
.recipe-card__text { color: #506779; max-width: 320px; margin: 0; }
.recipe-meta { margin: auto 0 20px; display: flex; gap: 12px; flex-wrap: wrap; color: #4e6274; font-size: 13px; }
.recipe-badge { color: var(--forest); }
.collection-caption { color: var(--muted); font-size: 13px; margin: 8px 0; }
.collection-caption__copyright { display: block; opacity: .75; }

.recipe-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 34px; }
.recipe-category { display: grid; grid-template-columns: 108px 1fr; gap: 16px; padding: 16px; border-radius: var(--radius-card); background: rgba(255,253,248,.88); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--glow-soft); }
.recipe-category--all { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, rgba(13,125,186,.10), rgba(167,199,178,.22)); }
.recipe-category__image { border-radius: 16px; overflow: hidden; min-height: 92px; }
.recipe-category__image img { width: 100%; height: 100%; object-fit: cover; }
.recipe-category__title { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.1; }
.recipe-category__text { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.recipe-intro__grid,
.recipe-category-page__grid,
.about-grid,
.suggest-recipe-page__grid,
.seasonal-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: stretch; }
.recipe-intro__note,
.recipe-category-page__image { border-radius: var(--radius-card); padding: 28px; background: rgba(255,253,248,.92); box-shadow: var(--glow-soft); border: 1px solid rgba(255,255,255,.72); }
.recipe-intro__note span { display: block; color: var(--muted); margin-top: 10px; }
.recipe-intro__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* Recipe detail */
.recipe-detail { padding: 0 0 30px; }
.recipe-detail__hero { display: grid; grid-template-columns: minmax(0, 1fr) 43%; gap: 26px; align-items: stretch; margin: 0 0 34px; }
.recipe-detail__content, .recipe-detail__media { border-radius: var(--radius-large); overflow: hidden; background: rgba(255,253,248,.92); box-shadow: var(--glow-soft); border: 1px solid rgba(255,255,255,.72); }
.recipe-detail__content { padding: 46px; }
.recipe-detail__crumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.recipe-detail__title { margin: 10px 0 18px; }
.recipe-detail__lead { color: var(--muted); font-size: 18px; }
.recipe-detail__facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.recipe-detail__facts div { padding: 12px 14px; border-radius: 16px; background: rgba(167,199,178,.22); min-width: 110px; }
.recipe-detail__facts b { display: block; color: var(--ink); }
.recipe-detail__facts span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.recipe-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.recipe-detail__main { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; }
.recipe-panel { padding: 30px; }
.recipe-panel__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.recipe-panel__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--forest); background: rgba(167,199,178,.28); font-weight: 900; }
.recipe-ingredients, .recipe-steps { margin: 0; padding: 0; list-style: none; }
.recipe-ingredients li, .recipe-steps li { padding: 12px 0; border-top: 1px solid var(--line); }
.recipe-ingredients li { display: flex; justify-content: space-between; gap: 16px; }
.recipe-ingredients__amount { color: var(--muted); }
.recipe-steps li { display: flex; gap: 14px; }
.recipe-steps__number { color: var(--sea); font-weight: 900; }
.recipe-share, .recipe-detail__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.recipe-related { margin-top: 40px; }

/* Articles */
.letopis-demo { padding: 0; background: transparent; }
.letopis-demo > .container { width: 100%; }
.letopis-demo .section-label,
.letopis-demo .section-title,
.letopis-demo .section-subtitle { display: none; }
.letopis-demo__card { min-height: 300px; background: #fff; }
.letopis-demo__meta { color: var(--muted); font-size: 13px; margin: 10px 0; }
.article-detail-card { padding: 42px; }
.article-detail-card__topline, .article-detail-card__meta, .article-detail-card__tags { color: var(--muted); }
.article-detail-card__title { font-size: clamp(36px, 5vw, 64px); margin: 10px 0 18px; }
.article-detail-card__lead { color: var(--muted); font-size: 19px; }
.article-prose { margin-top: 30px; color: #31495d; }
.article-prose p { margin: 0 0 1.1em; }

/* Forms, auth, profile */
.feedback-panel { padding: 30px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 28px; align-items: start; }
.feedback-form { display: flex; flex-direction: column; gap: 18px; }
.feedback-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feedback-form__field { display: flex; flex-direction: column; gap: 7px; color: var(--deep); font-weight: 750; }
.feedback-form__field span em { color: var(--sea); font-style: normal; }
.feedback-form input:not([type="checkbox"]),
.feedback-form textarea,
.feedback-form select,
.auth-form input,
.auth-form textarea,
.auth-form select,
.subscribe-form input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 0 0 1px rgba(46,78,102,.14);
}
.feedback-form textarea { min-height: 128px; padding-top: 14px; resize: vertical; }
.feedback-form__check, .auth-form__check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.feedback-form__success, .auth-panel__notice { padding: 14px 16px; border-radius: 16px; background: rgba(46,125,66,.12); color: var(--forest); }
.feedback-form__error, .auth-panel__alert { padding: 14px 16px; border-radius: 16px; background: rgba(186,70,45,.10); color: #9b341f; }
.feedback-form__hp { position: absolute; left: -9999px; }
.feedback-form__submit { align-self: flex-start; }
.auth-panel { max-width: 620px; margin: 48px auto; }
.auth-panel__card { padding: 34px; }
.auth-panel__text { color: var(--muted); }
.auth-panel__label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-weight: 750; }
.auth-panel__footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; color: var(--muted); }
.demo-user-card--compact { display: flex; align-items: center; min-width: 0; }
.demo-user-card__identity, .demo-user-card__login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.78);
  box-shadow: 0 6px 22px rgba(46,78,102,.09);
}
.demo-user-card__avatar, .demo-user-detail__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(167,199,178,.28); color: var(--forest); font-weight: 900; overflow: hidden; }
.demo-user-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.demo-user-card__body { display: grid; gap: 1px; line-height: 1.05; }
.demo-user-card__label { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.demo-user-card__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 900; }
.demo-user-profile, .demo-user-detail, .demo-user-empty { padding: 30px; }
.demo-user-profile__grid, .demo-user-detail__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.demo-user-profile__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Inner pages */
.about-grid { align-items: center; }
.about-text { padding: 24px 0; }
.about-text p { color: var(--muted); }
.about-visual { min-height: 420px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg, rgba(255,253,248,.20), rgba(255,253,248,.78)), url('/theme/main/assets/demo/design/dv-sea-mist.jpg') center/cover; }
.about-visual span { width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; color: var(--sea); background: rgba(255,255,255,.72); font-family: var(--serif); font-size: 40px; box-shadow: var(--glow-soft); }
.contacts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.contact-item { padding: 22px; }
.contact-item span { display: block; color: var(--muted); font-size: 13px; }
.contact-item a { color: var(--sea); font-weight: 800; }
.ck-image-text__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
.ck-image-text__content, .ck-image-text__aside { padding: 30px; border-radius: var(--radius-card); background: rgba(255,253,248,.92); box-shadow: var(--glow-soft); border: 1px solid rgba(255,255,255,.72); }
.ck-rich-text, .rich-text { color: #31495d; }
.ck-rich-text__body > *:first-child { margin-top: 0; }
.legal-page, .page-content, .seasonal-page__notes, .suggest-recipe-page__aside { padding: 34px; }
.ck-breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.ck-pagination { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.profile-page { padding: 48px 0; }

/* CTA and footer */
.cta-card,
.section--cta > .container {
  border-radius: var(--radius-large);
  padding: 38px 42px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(246,247,248,.96), rgba(255,255,255,.90));
  box-shadow: var(--glow-soft);
  border: 1px solid rgba(255,255,255,.72);
}
.cta-card::before,
.section--cta > .container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/theme/main/assets/demo/design/dv-texture-water.jpg') center/cover no-repeat;
  opacity: .22;
  transform: scale(1.04);
}
.cta-card::after,
.section--cta > .container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246,247,248,.98) 0%, rgba(246,247,248,.86) 42%, rgba(255,255,255,.64) 100%);
}
.cta-card > *, .section--cta > .container > * { position: relative; z-index: 1; }
.site-footer { padding: 34px 0 120px; color: var(--muted); }
.site-footer .container { width: min(calc(var(--container) - 96px), calc(100% - 96px)); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-inline: 8px; }
.footer-brand { font-family: var(--serif); color: var(--ink); font-size: 22px; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner a { color: var(--sea); }
.footer-made { display: inline-flex; gap: 8px; align-items: center; }
.footer-admin-link { opacity: .45; }


/* Content-kit defaults adapted for demo theme */
.ky6-faq {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.ky6-faq__item {
  border: 1px solid rgba(46, 78, 102, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .70);
  overflow: hidden;
}
.ky6-faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 850;
  color: var(--ink);
}
.ky6-faq__summary::-webkit-details-marker { display: none; }
.ky6-faq__question { min-width: 0; }
.ky6-faq__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--sea);
  transition: transform .18s ease;
}
.ky6-faq__item[open] .ky6-faq__icon { transform: rotate(45deg); }
.ky6-faq__answer {
  padding: 0 20px 18px;
  color: var(--muted);
}

.reviews-slider-wrap {
  width: 100%;
  overflow: hidden;
  margin-top: 28px;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.reviews-track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: reviews-scroll 42s linear infinite;
}
.reviews-slider-wrap:hover .reviews-track { animation-play-state: paused; }
.review-card {
  width: min(380px, calc(100vw - 64px));
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 253, 248, .94);
  box-shadow: var(--glow-soft);
}
.review-body {
  margin: 0;
  color: #253d51;
  font-size: 17px;
  line-height: 1.62;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(13, 125, 186, .12);
  color: var(--sea);
  font-weight: 900;
}
.review-name { font-weight: 900; color: var(--ink); }
.review-role { color: var(--muted); font-size: 14px; }
@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ky6-cookie {
  position: fixed;
  z-index: 40;
  width: min(900px, calc(100% - 44px));
  display: none;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 253, 248, .96);
  box-shadow: var(--glow);
  border: 1px solid rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
}
.ky6-cookie--visible { display: flex; }
.ky6-cookie--bottom-left,
.ky6-cookie--bottom,
.ky6-cookie--bottom-right { bottom: 24px; }
.ky6-cookie--bottom-left { left: 24px; }
.ky6-cookie--bottom { left: 50%; transform: translateX(-50%); }
.ky6-cookie--bottom-right { right: 24px; }
.ky6-cookie__text {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.ky6-cookie__text a { color: var(--sea); font-weight: 850; }
.ky6-cookie__actions,
.ky6-cookie-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ky6-cookie__btn {
  min-height: 42px;
  border: 0;
  border-radius: 15px 20px 42px 15px;
  padding: 9px 18px;
  font-weight: 850;
  cursor: pointer;
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 6px 18px rgba(46, 78, 102, .10);
}
.ky6-cookie__btn--accept {
  color: #fff;
  background: linear-gradient(135deg, #0e82c0, #0569a8);
}
.ky6-cookie__btn--decline,
.ky6-cookie__btn--settings {
  color: var(--forest);
  background: rgba(167, 199, 178, .20);
}
.ky6-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: none;
  place-items: center;
  padding: 24px;
}
.ky6-cookie-modal--visible,
.ky6-cookie-modal.is-open,
.ky6-cookie-modal[aria-hidden="false"] { display: grid; }
.ky6-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 48, 74, .36);
  backdrop-filter: blur(6px);
}
.ky6-cookie-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  border-radius: var(--radius-card);
  padding: 28px;
  background: var(--paper);
  box-shadow: var(--glow);
}
.ky6-cookie-modal__title { font-size: clamp(28px, 4vw, 40px); }
.ky6-cookie-modal__list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}
.ky6-cookie-modal__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.ky6-cookie-modal__label { font-weight: 850; }
.ky6-cookie-modal__badge { margin-left: 8px; color: var(--muted); font-size: 13px; }
.ky6-cookie-modal__toggle input { position: absolute; opacity: 0; }
.ky6-cookie-modal__toggle-slider {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  display: block;
  position: relative;
  background: rgba(46, 78, 102, .18);
}
.ky6-cookie-modal__toggle-slider::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(46, 78, 102, .18);
  transition: transform .18s ease;
}
.ky6-cookie-modal__toggle input:checked + .ky6-cookie-modal__toggle-slider { background: var(--sea); }
.ky6-cookie-modal__toggle input:checked + .ky6-cookie-modal__toggle-slider::after { transform: translateX(20px); }

/* Cookie consent: общие классы штатного компонента и публичной темы. */
.cookie-bar,
.cookie-consent,
.cookie-consent__inner {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(900px, calc(100% - 44px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,253,248,.95);
  box-shadow: var(--glow);
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(18px);
}
.cookie-consent__inner { position: static; transform: none; width: 100%; box-shadow: none; border: 0; background: transparent; padding: 0; }
.cookie-bar div, .cookie-consent__text { flex: 1; }
.cookie-bar strong { display: block; }
.cookie-bar span, .cookie-consent__text { color: var(--muted); font-size: 14px; }
.cookie-bar.is-hidden, .cookie-consent.is-hidden { display: none; }

@media (max-width: 1100px) {
  .hero-layout,
  .recipe-intro__grid,
  .recipe-category-page__grid,
  .about-grid,
  .suggest-recipe-page__grid,
  .seasonal-page__grid,
  .ck-image-text__grid,
  .feedback-panel,
  .recipe-detail__hero,
  .recipe-detail__main { grid-template-columns: 1fr; }
  .season-card { display: none; }
  .recipe-grid,
  .article-grid,
  .letopis-demo__grid,
  .teasers-grid,
  .ck-cards-grid,
  .recipe-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-actions .btn-compact { display: none; }
  .main-nav { justify-content: flex-end; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section, .section-pad { padding: 30px 0; }
  .header-inner { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 16px; }
  .brand { min-width: 0; max-width: calc(100% - 58px); }
  .brand strong { font-size: 21px; }
  .brand small { font-size: 12px; }
  .header-actions { margin-left: auto; }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 6px;
    white-space: nowrap;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: 0 0 auto; max-width: 8ch; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; padding-bottom: 3px; }
  h1, .hero-title { font-size: clamp(36px, 11vw, 56px); overflow-wrap: anywhere; }
  .simple-slide { min-height: 520px; background-position: center; }
  .simple-slide::before { background: linear-gradient(180deg, rgba(255,253,248,.92) 0%, rgba(255,253,248,.86) 54%, rgba(255,253,248,.70)); }
  .simple-slide > .container { width: min(100% - 48px, var(--container)); margin: 0 auto; }
  .simple-slider-dots { left: 24px; }
  .recipe-grid,
  .article-grid,
  .letopis-demo__grid,
  .teasers-grid,
  .ck-cards-grid,
  .recipe-categories,
  .content-kit-showcase__grid,
  .contacts-grid,
  .feedback-form__grid,
  .demo-user-profile__grid,
  .demo-user-detail__grid { grid-template-columns: 1fr; }
  .recipe-category { grid-template-columns: 92px 1fr; }
  .recipe-card__image { width: 70%; height: 46%; }
  .recipe-card__body { padding: 28px 22px 24px; }
  .ck-section-heading--with-actions,
  .section-heading-inline,
  .footer-inner,
  .cookie-bar,
  .cookie-consent,
  .cookie-consent__inner,
  .ky6-cookie { flex-direction: column; align-items: stretch; }
  .ky6-cookie { left: 14px; right: 14px; bottom: 14px; width: auto; transform: none; }
  .ky6-cookie__actions { width: 100%; }
  .ky6-cookie__btn { flex: 1; }
  .site-footer .container { width: min(100% - 40px, var(--container)); }
  .cta-card, .section--cta > .container, .article-detail-card, .legal-page, .page-content { padding: 26px 22px; }
  .btn { white-space: normal; text-align: center; }
}


/* Auth pages and compact header profile */
.ck-breadcrumbs { display: none; }
.auth-page {
  padding-top: clamp(46px, 7vw, 88px);
  padding-bottom: clamp(72px, 10vw, 120px);
}
.auth-page .auth-panel {
  max-width: 620px;
  margin: 0 auto;
}
.auth-page .auth-panel__card {
  padding: clamp(30px, 4vw, 48px);
}
.auth-page .auth-panel h1 {
  margin: 8px 0 12px;
  max-width: none;
}
.auth-page .auth-panel__text {
  max-width: 520px;
  margin: 0 0 26px;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.45;
}
.auth-page .auth-panel__notice,
.auth-page .auth-panel__alert {
  margin: 0 0 28px;
}
.auth-page .auth-form {
  display: grid;
  gap: 20px;
}
.auth-page .auth-form > label:not(.auth-form__check) {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}
.auth-page .auth-form > label:not(.auth-form__check) > span {
  line-height: 1.2;
}
.auth-page .auth-form__check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 4px 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}
.auth-page .auth-form__check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 7px;
  accent-color: var(--forest);
  box-shadow: none;
}
.auth-page .auth-form .ky6-captcha,
.auth-page .auth-form .ky6-captcha-wrap,
.auth-page .auth-form .ky6-captcha-simple,
.auth-page .auth-form .captcha-simple {
  grid-column: 1 / -1;
  width: 100%;
  margin: 8px 0 6px;
}
.auth-page .auth-form .ky6-captcha-wrap-yandex {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.auth-page .auth-form .smart-captcha {
  width: 100%;
  max-width: 100%;
}
.auth-page .auth-form button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 12px 0 0;
}
.auth-page .auth-panel__footer {
  margin-top: 28px;
}
.demo-user-card--compact { display: grid; place-items: center; }
.demo-user-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: rgba(167,199,178,.28);
  box-shadow: 0 10px 28px rgba(46,78,102,.08);
}
.demo-user-card__icon:hover { transform: translateY(-1px); }
.demo-user-card__icon .demo-user-card__avatar {
  width: 48px;
  height: 48px;
  background: transparent;
  box-shadow: none;
}
.demo-user-card__icon .hi { width: 23px; height: 23px; }
.demo-user-card__identity,
.demo-user-card__login,
.demo-user-card__body,
.demo-user-card__label,
.demo-user-card__name { display: none; }
@media (max-width: 720px) {
  .auth-page { padding-top: 28px; }
  .auth-page .auth-form > label:not(.auth-form__check) {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .auth-page .auth-form__check,
  .auth-page .auth-form .ky6-captcha,
  .auth-page .auth-form .ky6-captcha-wrap,
  .auth-page .auth-form .ky6-captcha-simple,
  .auth-page .auth-form .captcha-simple,
  .auth-page .auth-form button[type="submit"] {
    margin-left: 0;
  }
  .auth-page .auth-form button[type="submit"] {
    margin-top: 8px;
  }
}

/* TASK-0048 v006: polish breadcrumbs, article prose, buttons and header actions. */
.ck-breadcrumbs {
  display: block;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.ck-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ck-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.ck-breadcrumbs li + li::before {
  content: '/';
  color: rgba(92, 112, 130, .48);
}
.ck-breadcrumbs a {
  color: var(--muted);
  border-bottom: 1px solid rgba(92, 112, 130, .22);
}
.ck-breadcrumbs a:hover { color: var(--sea); border-color: rgba(13,125,186,.38); }
.ck-breadcrumbs span { color: rgba(92, 112, 130, .78); }

.header-actions { gap: 0; }
.header-actions .icon-btn { display: none; }

.recipe-intro__actions,
.hero-actions,
.recipe-detail__actions,
.recipe-share,
.ck-section-heading__actions,
.section--cta .container,
.cta-card,
.ck-image-text__actions,
.content-actions,
.action-row {
  gap: 14px;
}
.btn + .btn { margin-left: 0; }
.recipe-intro__actions .btn,
.hero-actions .btn,
.recipe-detail__actions .btn,
.ck-image-text__actions .btn,
.cta-card .btn,
.section--cta .btn {
  min-width: 0;
}

.news-page .ck-section-heading,
.news-page .section-label,
.news-page .section-title,
.news-page .section-subtitle,
.recipe-category-page .ck-section-heading,
.recipe-category-page .section-label,
.recipe-category-page .section-title,
.recipe-category-page .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.news-page .section-title,
.recipe-category-page .section-title { max-width: 900px; }

.article-detail-card { max-width: 1120px; margin: 0 auto; }
.article-detail-card__title { max-width: 980px; }
.article-detail-card__body,
.article-prose,
.rich-text,
.ck-rich-text {
  font-size: 18px;
  line-height: 1.78;
  color: #26384d;
}
.article-prose p,
.rich-text p,
.ck-rich-text p,
.article-detail-card__body p {
  margin: 0 0 1.35em;
}
.article-prose p + p,
.rich-text p + p,
.ck-rich-text p + p,
.article-detail-card__body p + p {
  margin-top: .2em;
}
.article-prose ul,
.article-prose ol,
.rich-text ul,
.rich-text ol,
.ck-rich-text ul,
.ck-rich-text ol {
  margin: 0 0 1.35em 1.25em;
  padding: 0;
}
.article-prose li + li,
.rich-text li + li,
.ck-rich-text li + li { margin-top: .45em; }

@media (max-width: 760px) {
  .ck-breadcrumbs { margin: 16px 0 22px; font-size: 13px; }
  .recipe-intro__actions,
  .hero-actions,
  .recipe-detail__actions,
  .recipe-share,
  .ck-image-text__actions,
  .cta-card,
  .section--cta .container { gap: 10px; }
  .article-detail-card__body,
  .article-prose,
  .rich-text,
  .ck-rich-text { font-size: 16px; line-height: 1.68; }
}
.ck-image-text__actions,
.content-actions,
.action-row { display: flex; flex-wrap: wrap; align-items: center; margin-top: 28px; }

/* TASK-0048 v007: restore designed breadcrumbs, profile forms and stable buttons. */
.page-crumbs { padding-top: 22px; }
.ck-breadcrumbs {
  display: block !important;
  margin: 0 0 22px !important;
  color: var(--muted);
  font-size: 14px;
}
.ck-breadcrumbs ol {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none !important;
}
.ck-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  line-height: 1.35;
}
.ck-breadcrumbs li + li::before {
  content: '/';
  color: rgba(92, 112, 130, .48);
}
.ck-breadcrumbs a,
.ck-breadcrumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  text-decoration: none;
}
.ck-breadcrumbs a {
  color: var(--muted);
  border-bottom: 0;
}
.ck-breadcrumbs a:hover { color: var(--sea); }
.ck-breadcrumbs span { color: rgba(92, 112, 130, .78); }
.auth-page .ck-breadcrumbs { display: none !important; }

.btn,
a.btn,
button.btn,
input[type="submit"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 52px;
  padding: 14px 30px 14px 26px;
  border-radius: 18px 24px 56px 18px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  border: 1.5px solid transparent;
  box-shadow: 0 12px 28px rgba(46,78,102,.13);
}
.btn.btn-primary,
.btn.btn-cta,
a.btn.btn-primary,
a.btn.btn-cta,
button.btn.btn-primary,
button.btn.btn-cta {
  color: #fff !important;
  background: linear-gradient(135deg, #0e82c0, #0569a8) !important;
  border-color: transparent !important;
}
.btn.btn-outline,
.btn.btn-secondary,
a.btn.btn-outline,
a.btn.btn-secondary,
button.btn.btn-outline,
button.btn.btn-secondary {
  color: var(--forest) !important;
  background: rgba(255,255,255,.86) !important;
  border-color: rgba(46,125,66,.58) !important;
  box-shadow: 0 10px 24px rgba(46,78,102,.08) !important;
}
.hero-actions,
.recipe-intro__actions,
.recipe-detail__actions,
.recipe-share,
.ck-section-heading__actions,
.ck-image-text__actions,
.content-actions,
.action-row,
.demo-user-profile__actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px !important;
}
.btn + .btn { margin-left: 0 !important; }
.simple-slider .hero-actions { margin-bottom: 58px; }
.simple-slider-dots { bottom: 24px !important; }

.profile-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) 0 72px;
}
.profile-page .demo-user-detail,
.profile-page .demo-user-profile,
.profile-page .demo-user-empty {
  border-radius: var(--radius-large);
  background: rgba(255,253,248,.94);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--glow-soft);
  padding: clamp(30px, 4vw, 48px);
}
.profile-page .demo-user-detail { margin-bottom: 28px; }
.profile-page .demo-user-detail__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.profile-page .demo-user-detail__avatar,
.profile-page .demo-user-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: rgba(167,199,178,.28);
  font-weight: 900;
}
.profile-page .demo-user-detail h2,
.profile-page .demo-user-profile h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: .95;
  letter-spacing: -.04em;
}
.profile-page .demo-user-detail p,
.profile-page .demo-user-profile > p,
.profile-page .demo-user-profile__password > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}
.profile-page .demo-user-detail__grid,
.profile-page .demo-user-profile__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px !important;
}
.profile-page .demo-user-detail__grid > div {
  min-width: 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(167,199,178,.13);
  border: 1px solid rgba(46,78,102,.06);
}
.profile-page .demo-user-detail__grid span,
.profile-page .demo-user-profile label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.profile-page .demo-user-detail__grid b {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 18px;
}
.profile-page .demo-user-profile label {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.profile-page .demo-user-profile input,
.profile-page .demo-user-profile select,
.auth-page .auth-form input,
.auth-page .auth-form select {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 1.5px solid rgba(46,78,102,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}
.profile-page .demo-user-profile input:focus,
.profile-page .demo-user-profile select:focus,
.auth-page .auth-form input:focus,
.auth-page .auth-form select:focus {
  outline: 3px solid rgba(13,125,186,.14);
  border-color: rgba(13,125,186,.42);
}
.profile-page .demo-user-profile__password {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.profile-page .demo-user-profile__password h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}
.profile-page .demo-user-profile__actions { margin-top: 28px; }
.profile-page .demo-user-profile__logout {
  margin-top: 18px;
}
.profile-page .demo-user-profile__logout .btn { min-width: 220px; }

.article-detail-card__body p,
.article-prose p {
  margin-bottom: 1.25em !important;
}
.news-page .ck-section-heading { max-width: 980px; margin-left: auto; margin-right: auto; }

@media (max-width: 760px) {
  .profile-page .demo-user-detail__grid,
  .profile-page .demo-user-profile__grid { grid-template-columns: 1fr; }
  .profile-page .demo-user-detail__head { align-items: flex-start; }
  .simple-slider .hero-actions { margin-bottom: 46px; }
}

/* Demo cosmetics: share buttons, hero spacing and footer typography. */
.demo-hero { padding-top: clamp(58px, 6vw, 76px); }
.simple-slide {
  align-items: flex-start;
}
.simple-slide > .container {
  padding-top: clamp(54px, 5vw, 72px);
  padding-bottom: 92px;
}
.simple-slider .hero-badge { margin-top: 0; }

.ky6-share {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1;
}
.ky6-share__btn,
button.ky6-share__btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(46, 78, 102, .12);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 8px 22px rgba(46, 78, 102, .10);
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
}
.ky6-share__btn:hover,
button.ky6-share__btn:hover {
  transform: translateY(-1px);
  color: var(--sea);
  border-color: rgba(13, 125, 186, .28);
  box-shadow: 0 13px 28px rgba(46, 78, 102, .15);
}
.ky6-share__btn svg,
.ky6-share__btn img {
  width: 18px;
  height: 18px;
  display: block;
}
.ky6-share--compact .ky6-share__btn {
  width: 38px;
  height: 38px;
}
.ky6-share--icons-labels .ky6-share__btn {
  width: auto;
  min-height: 42px;
  padding: 0 15px;
  gap: 9px;
  font-weight: 800;
  font-size: 13px;
}
.ky6-share__btn-label { line-height: 1.15; }
.recipe-share {
  align-items: center !important;
  gap: 14px !important;
}
.recipe-share__label {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}
.article-detail-card__share {
  display: flex;
  justify-content: flex-start;
  margin-top: 26px;
}

.site-footer {
  padding: 42px 0 78px;
}
.site-footer .container {
  width: min(var(--container), calc(100% - 96px));
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(320px, 1.25fr) minmax(140px, auto) auto auto;
  align-items: start;
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 20px;
  padding-inline: 0;
}
.footer-brand {
  max-width: 290px;
  font-size: 23px;
  line-height: 1.24;
  letter-spacing: -.025em;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.35;
}
.footer-inner a {
  text-decoration: none;
}
.footer-inner a:hover {
  color: var(--sea-dark);
}
.footer-made {
  align-items: flex-start;
  max-width: 150px;
  color: var(--sea);
  font-weight: 800;
  line-height: 1.28;
}
.footer-made .icon {
  margin-top: .15em;
}
.footer-copy {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.3;
}
.footer-admin-link {
  justify-self: end;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sea);
  background: rgba(255, 253, 248, .58);
  border: 1px solid rgba(13, 125, 186, .12);
  opacity: .62;
}
.footer-admin-link:hover { opacity: 1; }

@media (max-width: 1020px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }
  .footer-made,
  .footer-copy,
  .footer-admin-link {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .demo-hero { padding-top: 34px; }
  .simple-slide > .container {
    padding-top: 42px;
    padding-bottom: 78px;
  }
  .recipe-share {
    align-items: flex-start !important;
  }
  .recipe-share__label { white-space: normal; }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .site-footer .container { width: min(100% - 40px, var(--container)); }
  .footer-made { max-width: none; }
}

/* Demo recipes update: сезонные карточки, статьи и локальная пагинация. */
.ck-card > .btn {
  width: 100%;
  margin-top: auto;
}
.ck-card > p,
.ck-card > div {
  margin-bottom: 22px;
}
.seasonal-idea-card {
  min-height: 430px;
}
.seasonal-idea-card__image {
  display: block;
  color: inherit;
  border-bottom: 0;
  padding-bottom: 0;
  width: auto;
}
.seasonal-idea-card__season {
  margin-top: 0;
}
.seasonal-pagination .btn[disabled] {
  opacity: .45;
  transform: none;
  cursor: not-allowed;
}
.article-detail-card {
  max-width: 1040px;
  padding: clamp(34px, 5vw, 58px);
}
.article-detail-card__header {
  max-width: 920px;
  margin-bottom: 34px;
}
.article-detail-card__title {
  max-width: 900px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  margin: 12px 0 18px;
}
.article-detail-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
  font-weight: 700;
}
.article-detail-card__lead {
  max-width: 820px;
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.62;
}
.article-detail-card__body,
.article-prose {
  max-width: 900px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.86;
}
.article-prose p,
.article-detail-card__body p {
  margin: 0 0 1.55em !important;
  text-indent: 1.65em;
}
.article-prose p:first-child,
.article-detail-card__body p:first-child {
  text-indent: 0;
}
.article-prose h2,
.article-detail-card__body h2 {
  margin: 2em 0 .75em;
  font-size: clamp(30px, 3vw, 42px);
}
.article-prose ul,
.article-prose ol,
.article-detail-card__body ul,
.article-detail-card__body ol {
  margin-bottom: 1.6em;
}

@media (max-width: 760px) {
  .seasonal-idea-card {
    min-height: 0;
  }
  .seasonal-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .article-detail-card {
    max-width: calc(100% - 40px);
    padding: 26px 20px;
  }
  .article-detail-card__body,
  .article-prose {
    font-size: 16px;
    line-height: 1.72;
  }
  .article-prose p,
  .article-detail-card__body p {
    text-indent: 1.25em;
  }
}
