/* KyKing UI Kit: order is part of the cascade contract. */
@import url("ui-tokens.css");
@import url("ui-primitives.css");
@import url("ui-layout.css");
@import url("ui-cards.css");
@import url("ui-recipe.css");
@import url("ui-forms.css");
.site-footer {
  background: var(--kk-footer);
  color: var(--kk-surface-warm);
  padding-block: 36px 24px;
  font-size: 13px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-cols > div > a:not(.brand) {
  display: block;
  margin-bottom: 6px;
}
.footer-cols h2 {
  font: 600 11px/1.5 var(--kk-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kk-gold);
  margin-bottom: 16px;
}
.footer-brand .brand {
  padding: 8px 12px;
  width: 190px;
  margin-bottom: 16px;
}
.footer-brand p {
  max-width: 260px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #65554a;
  margin-top: 28px;
  padding-top: 20px;
  font-size: 12px;
}
.site-footer a:hover {
  color: var(--kk-gold);
}
.site-menu {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  max-height: 100dvh;
  height: 100dvh;
  width: min(90vw, 380px);
  max-width: 100%;
  padding: 24px;
  border: 0;
  background: var(--kk-bg);
  color: var(--kk-text);
  overflow: auto;
}
.site-menu::backdrop {
  background: rgb(46 34 29 / 45%);
}
body:has(.site-menu[open]) {
  overflow: hidden;
}
.menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.menu-heading h2 {
  font-size: 24px;
  margin: 0;
}
.site-menu nav {
  display: grid;
  margin-block: 24px;
}
.site-menu nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--kk-line);
}
/* PWA-блок «Приложение KyKing» внутри бургер-меню (на мобильных он больше не полоса под шапкой) */
.site-menu .pwa-menu-nav {
  display: none;
  margin-block: 0 24px;
}
.site-menu .pwa-menu-nav:not([hidden]) {
  display: grid;
}
.site-menu .pwa-menu-nav .pwa-button {
  margin-top: 12px;
}
.site-menu #account h2 {
  font-size: 24px;
}
.site-menu .ub-login {
  display: block;
}
.site-menu .ub-drop-form {
  position: static;
  width: 100%;
  margin-top: 12px;
}
.site-menu .ub-login > .dot {
  display: none;
}
.kk-status {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  max-width: calc(100% - 32px);
  border-radius: var(--kk-radius-control);
  background: var(--kk-footer);
  color: var(--kk-surface);
  z-index: var(--kk-layer-status);
  font-size: 14px;
  box-shadow: var(--kk-shadow-card);
}
.kk-status:empty {
  display: none;
}
@media (max-width: 1199px) {
  .header-inner {
    gap: 20px;
    grid-template-columns: minmax(170px, 1fr) minmax(0, 540px) minmax(
        170px,
        1fr
      );
  }
  .header-inner:has(.header-add) {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 540px) minmax(
        260px,
        1fr
      );
  }
  .brand {
    width: 170px;
  }
  .header-add {
    font-size: 12px;
    padding-inline: 16px;
  }
  .primary-nav {
    gap: 24px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .daily-grid {
    grid-template-columns: 1fr;
  }
  .daily-main .featured-photo img {
    max-height: 350px;
  }
  .daily-side-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .daily-side .featured-photo img {
    aspect-ratio: 1.2;
  }
  .fullstory-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .ingr-side {
    grid-column: 1;
    grid-row: 1;
  }
  .recipe-hero {
    gap: 20px 28px;
  }
  .recipe-step-content:has(.recipe-step-image) {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .rh-photo img {
    min-height: 320px;
  }
}
@media (max-width: 767px) {
  .shell {
    padding-inline: 16px;
  }
  .utility-bar,
  .primary-nav,
  .desktop-account,
  .header-add {
    display: none;
  }
  .header-inner {
    display: flex;
    min-height: 76px;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .header-inner > .brand {
    width: 145px;
    margin-inline: auto;
  }
  .mobile-menu,
  .mobile-search {
    display: inline-flex;
  }
  .header-actions .header-add-m {
    display: inline-flex;
  }
  .header-actions {
    gap: 0;
    margin: 0;
  }
  .header-actions .iconbtn {
    width: 40px;
    padding: 8px;
  }
  .mobile-menu {
    width: 40px;
    font-size: 24px;
  }
  .site-search {
    display: none;
    flex-basis: 100%;
    max-width: none;
    margin-bottom: 12px;
    order: 5;
  }
  .site-search.is-open {
    display: flex;
  }
  .site-search input {
    font-size: 16px;
  }
  .page-body {
    padding-top: 16px;
  }
  .breadcrumbs {
    font-size: 12px;
    margin-bottom: 16px;
  }
  .home-intro {
    gap: 0;
  }
  .category-section {
    order: -1;
    margin-bottom: 28px;
    margin-inline: -16px;
  }
  .category-section > .section-heading {
    display: none;
  }
  .category-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 0 16px 8px;
    scroll-snap-type: x proximity;
  }
  .category-card {
    flex: 0 0 88px;
    padding: 4px 4px 10px;
    font-family: var(--kk-sans);
    font-size: 12px;
    line-height: 1.4;
    scroll-snap-align: start;
    min-height: 104px;
  }
  .category-icon {
    width: 76px;
    height: 70px;
  }
  .section-heading {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .accent::after {
    width: 36px;
  }
  .daily-grid {
    display: block;
  }
  .featured-card {
    display: block;
  }
  .daily-main .featured-photo img {
    aspect-ratio: 2/1;
    width: 100%;
    max-height: none;
  }
  .featured-body {
    padding: 16px;
  }
  .featured-body .eyebrow {
    display: none;
  }
  .featured-body h3 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .featured-body .btn-k {
    margin-top: 16px;
  }
  .daily-side {
    margin-block: 28px;
  }
  .mobile-only {
    display: flex;
  }
  .daily-side-grid {
    gap: 12px;
  }
  .daily-side .featured-card {
    display: block;
  }
  .daily-side .featured-photo img {
    aspect-ratio: 3/2;
    width: 100%;
    height: auto;
  }
  .daily-side .featured-body {
    padding: 12px;
  }
  .daily-side h3 {
    font-size: 18px;
    line-height: 1.3;
  }
  .daily-side .btn-k {
    display: none;
  }
  .daily-side .rc-meta {
    font-size: 12px;
    gap: 4px;
  }
  .daily-side .rc-meta > span + span {
    display: none;
  }
  .section-heading-row {
    align-items: center;
    margin-bottom: 16px;
  }
  .section-heading-row h2 {
    font-size: 28px;
  }
  .section-heading-row > a {
    font-size: 12px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rc {
    display: grid;
    grid-template-columns: 32% minmax(0, 1fr);
  }
  .rc-photo {
    height: 100%;
    min-height: 136px;
    aspect-ratio: auto;
  }
  .rc-body {
    padding: 12px 40px 12px 12px;
  }
  .rc-title {
    font-size: 19px;
    margin: 8px 0;
    line-height: 1.25;
  }
  .rc-cat {
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .rc-meta {
    font-size: 12px;
    gap: 8px;
  }
  .rc-save {
    right: 2px;
    top: 2px;
  }
  .rc-save .save-control {
    padding: 10px;
    min-width: 40px;
    min-height: 44px;
    background: transparent;
    border: 0;
  }
  .rc-meta > span {
    gap: 4px;
  }
  .navigation {
    margin: 24px 0;
  }
  .pages {
    gap: 6px;
  }
  .pages a,
  .pages span {
    min-width: 32px;
    min-height: 32px;
  }
  .today-panel {
    padding: 24px 20px;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  .today-panel h2 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .today-panel p {
    display: none;
  }
  .today-links {
    gap: 10px;
  }
  .today-links a {
    font-size: 12px;
    padding: 12px;
  }
  .recipe-hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  .rh-lead {
    order: 0;
    padding: 0;
    align-self: stretch;
  }
  .rh-lead .eyebrow {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .rh-lead h1 {
    font-size: 32px;
    margin-bottom: 12px;
  }
  .rh-lead h1::after {
    display: none;
  }
  .recipe-summary {
    font-size: 16px;
  }
  .rh-photo {
    order: 1;
  }
  .rh-photo img {
    aspect-ratio: 3/2;
    min-height: 0;
    width: 100%;
  }
  .recipe-meta {
    order: 2;
    font-size: 12px;
    gap: 12px 16px;
  }
  .recipe-meta .icon {
    width: 19px;
    height: 19px;
  }
  .compact-top {
    order: 3;
    padding: 0;
    gap: 8px;
  }
  .compact-top .save-control {
    font-size: 13px;
    padding-inline: 12px;
  }
  .fullstory-grid {
    gap: 24px;
  }
  .ingr-card {
    padding: 20px 16px;
  }
  .ingredients-heading h2 {
    font-size: 27px;
    margin-bottom: 12px;
  }
  .servings-row {
    margin-bottom: 8px;
  }
  .ingr-list li {
    font-size: 14px;
    padding: 8px 0;
  }
  .ingr-list label {
    min-height: 28px;
    gap: 8px;
  }
  .recipe-body h2 {
    font-size: 28px;
  }
  .recipe-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }
  .recipe-step-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .recipe-step-content:has(.recipe-step-image) {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .recipe-step-title {
    font-size: 18px;
    line-height: 1.3;
  }
  .recipe-step-description {
    font-size: 14px;
    line-height: 1.6;
  }
  .recipe-step-image {
    aspect-ratio: 1;
    height: auto;
    grid-row: 1/3;
  }
  .recipe-step-content:has(.recipe-step-image) > .recipe-step-tip {
    grid-column: 1/-1;
  }
  .recipe-step-tip {
    font-size: 13px;
    padding: 12px;
  }
  .recipe-after {
    padding: 20px 16px;
    border: 1px solid var(--kk-line);
    border-radius: var(--kk-radius-card);
    background: var(--kk-surface);
    margin-top: 24px;
  }
  .recipe-after h2 {
    font-size: 24px;
  }
  .recipe-after p {
    font-size: 13px;
  }
  .expanded-bottom {
    gap: 8px;
  }
  .expanded-bottom .recipe-save {
    width: 100%;
  }
  .expanded-bottom .recipe-save .save-control {
    padding-inline: 16px;
  }
  .share-label {
    margin-left: 0;
  }
  .expanded-bottom .iconbtn {
    font-size: 12px;
  }
  .author-strip {
    font-size: 11px;
  }
  .related-section,
  .comments-section {
    margin-top: 28px;
  }
  .related-section h2,
  .comments-section h2 {
    font-size: 28px;
  }
  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-cols > div:nth-child(3) {
    display: none;
  }
  .footer-brand .brand {
    width: 170px;
  }
  .footer-brand p {
    font-size: 12px;
    max-width: none;
  }
  .footer-bottom {
    flex-wrap: wrap;
    margin-top: 24px;
  }
  .site-footer {
    padding-block: 28px 20px;
  }
  .ub-login {
    font-size: 13px;
  }
  .box {
    padding: 16px;
  }
  .addcomment .btn-k {
    font-size: 13px;
  }
}
@media (max-width: 359px) {
  .header-inner > .brand {
    width: 122px;
  }
  .rc-body {
    padding-right: 32px;
  }
  .rc-title {
    font-size: 18px;
  }
  .rc-meta > span:nth-child(2) {
    display: none;
  }
  .recipe-step-content:has(.recipe-step-image) {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .share-label {
    width: 100%;
  }
  .section-heading-row {
    flex-wrap: wrap;
  }
  .il-qty {
    white-space: normal;
    text-align: right;
    max-width: 40%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  .btn-k,
  .save-control,
  .iconbtn {
    border: 1px solid ButtonText;
  }
}
@media print {
  :root {
    --kk-bg: #fff;
    --kk-text: #000;
    --kk-muted: #333;
  }
  body {
    background: white;
    color: black;
    font:
      11pt/1.5 Georgia,
      serif;
  }
  .site-header,
  .utility-bar,
  .site-footer,
  .breadcrumbs,
  .skip-link,
  .recipe-actions,
  .recipe-after,
  .author-strip,
  .related-section,
  .comments-section,
  .recipe-tags,
  .shop-add,
  .shop-status,
  .kk-status,
  .site-menu,
  .navigation {
    display: none !important;
  }
  .shell {
    padding: 0;
    max-width: none;
  }
  .page-body {
    padding: 0;
  }
  .recipe-hero {
    display: block;
  }
  .rh-lead {
    padding: 0;
  }
  .rh-lead h1 {
    font-size: 26pt;
  }
  .rh-lead h1::after,
  .rh-photo,
  .recipe-summary {
    display: none;
  }
  .recipe-meta {
    margin-bottom: 16px;
  }
  .fullstory-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .ingr-side {
    order: -1;
    width: 100%;
  }
  .ingr-card {
    padding: 0;
    border: 0;
  }
  .ingr-list li {
    display: block !important;
  }
  .ps-btn {
    display: none;
  }
  .servings-row {
    justify-content: flex-start;
  }
  .recipe-step {
    break-inside: avoid;
  }
  .recipe-step-image {
    max-width: 120px;
  }
  .recipe-step-number {
    color: black;
    background: white;
    border: 1px solid black;
  }
  .recipe-step-title {
    font-size: 14pt;
  }
  .recipe-step-description {
    font-size: 11pt;
  }
  .recipe-step-content:has(.recipe-step-image) {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

.big-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.big-search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--kk-line);
  border-radius: var(--kk-radius-control);
}
.search-hero-block {
  margin-bottom: 24px;
}
.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--kk-surface-warm);
  border-radius: 999px;
  font-size: 13px;
}
.search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.search-results > *:not(.rc) {
  grid-column: 1/-1;
}
@media (max-width: 1199px) {
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .search-results {
    grid-template-columns: 1fr;
  }
  .big-search-form {
    flex-wrap: wrap;
  }
  .big-search-form > svg {
    display: none;
  }
}

.featured-card {
  position: relative;
}
.daily-main .rc-save {
  right: auto;
  left: 8px;
}
.daily-side .rc-save {
  top: 4px;
  right: 4px;
}
.daily-side .rc-save .save-control {
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
}
.featured-body {
  padding-top: 40px;
}
@media (max-width: 767px) {
  .featured-body {
    padding-top: 16px;
  }
  .daily-main .rc-save {
    left: auto;
    right: 8px;
  }
  .daily-side .rc-save .save-control {
    min-width: 44px;
    min-height: 44px;
  }
}

.mobile-only {
  display: none;
}
.recipe-notes {
  margin: 0 0 20px;
  border-bottom: 1px solid var(--kk-line);
  font-size: 14px;
}
.recipe-notes > summary {
  padding: 12px 0;
  cursor: pointer;
  color: var(--kk-muted);
}
.recipe-notes .recipe-original {
  padding-top: 16px;
}
.daily-side .featured-photo img {
  aspect-ratio: auto;
  min-height: 150px;
}
.daily-side .featured-body h3 {
  padding-right: 16px;
}
.today-panel {
  margin-top: 24px;
}
@media (max-width: 767px) {
  .mobile-only {
    display: flex;
  }
  .daily-side .featured-photo img {
    aspect-ratio: 3/2;
    min-height: 0;
  }
  .recipe-notes {
    font-size: 14px;
  }
}
@media print {
  .recipe-notes::details-content {
    display: block !important;
    content-visibility: visible !important;
  }
  .recipe-notes > .recipe-original {
    display: block !important;
  }
  .recipe-notes > summary {
    display: none;
  }
}
.daily-main .featured-photo img {
  aspect-ratio: 4/3;
}
@media (max-width: 767px) {
  .daily-main .featured-photo img {
    aspect-ratio: 2/1;
  }
}

.category-grid {
  scroll-padding-inline: 16px;
}
/* Home composition aligned with the approved reference; data still belongs to DLE. */
h1,
h2,
h3,
h4 {
  font-weight: var(--kk-heading-weight);
}
.utility-links {
  display: flex;
  gap: 24px;
}
.site-search {
  padding-inline: 8px;
}
.site-search > button[type="submit"] {
  order: -1;
}
.header-inner > .brand {
  width: 235px;
}
.home-intro {
  gap: 32px;
}
.daily-section {
  position: relative;
  padding-bottom: 28px;
  isolation: isolate;
}
.daily-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -28px -32px 0;
  background: var(--kk-surface-warm);
  box-shadow: 0 0 0 100vmax var(--kk-surface-warm);
  clip-path: inset(0 -100vmax);
}
.featured-card {
  grid-template-columns: 58% 42%;
}
.daily-main .featured-card {
  min-height: 330px;
}
.featured-card .featured-photo {
  position: relative;
}
.featured-card .featured-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}
.featured-body {
  padding: 26px;
}
.featured-label {
  display: table;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--kk-feature-label);
  color: var(--kk-surface);
  font: 700 10px/1.4 var(--kk-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.featured-body h3 {
  font-size: 32px;
  line-height: 1.16;
  margin-bottom: 12px;
}
.featured-description {
  font-size: 16px;
  line-height: 1.5;
  color: var(--kk-muted);
  margin: 0 0 18px;
}
.featured-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.featured-actions .btn-k {
  margin: 0;
  min-height: 48px;
  padding: 10px 20px;
  gap: 14px;
  white-space: nowrap;
  font-weight: 500;
}
.featured-actions .btn-k .icon {
  width: 18px;
  height: 18px;
}
.daily-main .rc-save {
  position: static;
  flex-shrink: 0;
}
.daily-main .rc-save .save-control {
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: var(--kk-surface);
}
.daily-side-grid {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.daily-side .featured-card {
  grid-template-columns: 42% 58%;
  min-height: 154px;
}
.daily-side .featured-body {
  padding: 16px 52px 16px 16px;
}
.daily-side .featured-body h3 {
  font-size: 18px;
  line-height: 1.3;
  padding-right: 0;
  margin-bottom: 8px;
}
.daily-side .featured-label,
.daily-side .featured-description {
  display: none;
}
.daily-side .rc-meta {
  gap: 6px 10px;
  font-size: 12px;
}
.daily-side .rc-meta .icon {
  width: 15px;
  height: 15px;
}
.daily-side .featured-actions {
  margin: 0;
}
.daily-side .btn-k {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  gap: 0;
}
.daily-side .btn-k .featured-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.daily-side .rc-save {
  top: 12px;
  right: 12px;
}
.daily-side .rc-save .save-control {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
}
.category-section {
  margin-bottom: 44px;
}
.category-section > .section-heading {
  margin-bottom: 24px;
}
.category-card {
  padding-block: 16px;
  min-height: 196px;
  font-weight: 500;
}
.category-icon {
  width: 144px;
  height: 128px;
}
.cards-grid > .rc .rc-body {
  padding: 0 20px 20px;
}
.cards-grid > .rc .rc-cat {
  position: relative;
  margin-top: -13px;
  margin-bottom: 8px;
  min-height: 24px;
}
.cards-grid > .rc .rc-cat a {
  border: 2px solid var(--kk-surface);
  padding: 3px 9px;
}
.cards-grid > .rc .rc-title {
  margin: 8px 0 16px;
  font-size: 22px;
}
.cards-grid > .rc .rc-meta {
  margin-top: auto;
}
.section-heading-row > a {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.navigation {
  margin: 24px 0;
}
.navigation .pages {
  margin-top: 16px;
}
[data-list-navigation].is-enhanced .pages {
  display: none;
}
.list-status:empty {
  display: none;
}
.today-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 270px;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  padding: 32px 28% 32px 28px;
  margin-top: 28px;
}
.today-art {
  position: absolute;
  z-index: -1;
  right: 0;
  top: 0;
  height: 100%;
  width: 30%;
  mask-image: linear-gradient(to right, transparent, #000 22%);
}
.today-panel h2 {
  font-size: 36px;
  margin-bottom: 20px;
  max-width: 330px;
}
.today-panel h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--kk-gold);
  margin-top: 16px;
}
.today-panel p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
}
.today-links {
  gap: 16px;
  position: relative;
  z-index: 1;
}
.today-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 14px 16px;
  font-size: 13px;
  white-space: nowrap;
}
.today-links .icon {
  color: var(--kk-primary);
  width: 26px;
  height: 26px;
}
.site-footer {
  margin-top: 0;
  padding-block: 44px 36px;
}
.footer-cols {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 64px;
}
.footer-brand .brand {
  width: 220px;
  padding: 0;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  max-width: 260px;
}
.footer-cols h2 {
  margin-top: 12px;
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
}
@media (min-width: 768px) and (max-width: 1199px) {
  .header-inner > .brand {
    width: 170px;
  }
  .daily-grid {
    grid-template-columns: 1fr;
  }
  .daily-main .featured-card {
    min-height: 320px;
  }
  .daily-side-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .daily-side .featured-card {
    min-height: 170px;
  }
  .daily-side .featured-body {
    padding: 16px 48px 16px 16px;
  }
  .daily-side .featured-body h3 {
    font-size: 18px;
  }
  .category-card {
    min-height: 160px;
    font-size: 15px;
  }
  .category-icon {
    width: 110px;
    height: 100px;
  }
  .today-panel {
    grid-template-columns: 1fr 1.2fr;
    padding-right: 20%;
  }
  .today-panel h2 {
    font-size: 32px;
  }
  .today-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .today-art {
    width: 26%;
  }
  .footer-cols {
    gap: 28px;
  }
}
@media (max-width: 767px) {
  .header-inner > .brand {
    width: 145px;
  }
  .home-intro {
    gap: 0;
  }
  .daily-section {
    padding-bottom: 0;
  }
  .daily-section::before {
    display: none;
  }
  .daily-main .featured-card {
    min-height: 0;
  }
  .featured-card .featured-photo img {
    position: static;
    height: auto;
    aspect-ratio: 2/1;
  }
  .featured-body {
    padding: 16px;
  }
  .featured-label,
  .featured-description {
    display: none;
  }
  .featured-body h3 {
    font-size: 23px;
    margin-bottom: 12px;
  }
  .featured-actions {
    margin-top: 16px;
    gap: 8px;
  }
  .featured-actions .btn-k {
    min-height: 44px;
    font-size: 13px;
    padding: 10px 16px;
  }
  .daily-main .rc-save {
    display: block;
  }
  .daily-main .rc-save .save-control {
    border: 1px solid var(--kk-line);
  }
  .daily-side-grid {
    height: auto;
    grid-template-rows: auto;
  }
  .daily-side .featured-card {
    min-height: 0;
  }
  .daily-side .featured-body {
    padding: 12px;
  }
  .daily-side .featured-body h3 {
    font-size: 18px;
    padding-right: 0;
  }
  .daily-side .featured-card .featured-photo img {
    aspect-ratio: 3/2;
  }
  .daily-side .btn-k {
    display: none;
  }
  .daily-side .rc-save {
    top: 6px;
    right: 6px;
  }
  .daily-side .rc-save .save-control {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: var(--kk-surface);
  }
  .category-section {
    margin-bottom: 28px;
  }
  .category-card {
    padding: 4px 4px 10px;
    min-height: 104px;
    font-size: 12px;
    font-weight: 400;
  }
  .category-icon {
    width: 76px;
    height: 70px;
  }
  .cards-grid > .rc .rc-body {
    padding: 12px 40px 12px 12px;
  }
  .cards-grid > .rc .rc-cat {
    margin: 0 0 6px;
    min-height: 0;
  }
  .cards-grid > .rc .rc-cat a {
    border: 0;
    padding: 4px 9px;
  }
  .cards-grid > .rc .rc-title {
    font-size: 19px;
    margin: 8px 0;
  }
  .today-panel {
    min-height: 220px;
    padding: 24px 16px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .today-art {
    width: 45%;
    opacity: 0.8;
  }
  .today-panel h2 {
    font-size: 28px;
    max-width: 240px;
    margin-bottom: 0;
  }
  .today-panel h2::after {
    display: none;
  }
  .today-links {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-right: 15%;
  }
  .today-links a {
    padding: 12px 10px;
    gap: 8px;
    font-size: 11px;
    white-space: normal;
    justify-content: flex-start;
  }
  .today-links .icon {
    width: 22px;
    height: 22px;
  }
  .site-footer {
    padding-block: 28px 24px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand .brand {
    width: 190px;
  }
  .footer-brand p {
    font-size: 12px;
  }
  .footer-cols h2 {
    margin-top: 0;
  }
}
@media (max-width: 359px) {
  .header-inner > .brand {
    width: 122px;
  }
  .featured-actions .btn-k {
    gap: 8px;
    padding-inline: 12px;
    font-size: 12px;
  }
  .cards-grid > .rc .rc-title {
    font-size: 18px;
  }
  .today-links {
    padding-right: 0;
  }
}

/* Light treatment uses the original logo alpha; the red King and jester hat stay intact. */
.footer-brand .brand {
  position: relative;
}
.footer-brand .brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--kk-surface);
  pointer-events: none;
  mask: url("../assets/kyking-logo.png") center / contain no-repeat;
  clip-path: polygon(0 0, 37% 0, 37% 82%, 100% 82%, 100% 100%, 0 100%);
}

/* ================================================================
   FIX 2026-10-28: восстановление функционала после обновления дизайна
   (плавающие ингредиенты, скрытие кнопок, дубли картинок, сетка)
   ================================================================ */

/* Главная: контент full-width (сайдбар удалён из шаблона) */
.layout-grid { display: block; }

/* Карточки: картинка из short_story не дублируется в описании */
.rc-desc img, .deck img { display: none !important; }

/* Полоса чипов: центр при любом количестве */
.meal-strip .row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
}
.meal-strip .meal-chip { flex: 0 1 130px; }

/* Десктоп: карточка ингредиентов едет вместе с колонкой шагов */
.ingr-side { position: sticky; top: 24px; align-self: start; }

/* Список покупок отключён; раскрытие ингредиентов принадлежит kyking.js. */
.shop-add { display: none !important; }
.ingr-float { display: none; }

@media (max-width: 767px) {
  .ingr-side { position: static; }
  .ingr-float {
    position: fixed; right: 16px; bottom: 92px; z-index: var(--kk-layer-floating);
    width: max-content; max-width: calc(100vw - 32px); display: none;
  }
  .ingr-float.show { display: block; }
  .ingr-float-bar { display: flex; }
  .ingr-float-btn {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    width: 100%;
    background: var(--terracotta, #B85440); color: #fff;
    border: none; border-radius: var(--kk-radius-pill); padding: 11px 12px;
    font: inherit; font-size: 13px; font-weight: 500;
    box-shadow: var(--kk-shadow-popover); cursor: pointer;
    white-space: nowrap;
    min-height: var(--kk-control);
  }
  .ingr-float-panel {
    position: absolute; bottom: calc(100% + 10px); right: 0;
    width: max-content; min-width: 230px; max-width: calc(100vw - 20px);
    max-height: 60vh; overflow-y: auto; overflow-x: hidden;
    background: var(--kk-bg); border: 1px solid var(--kk-line); border-radius: var(--kk-radius-card);
    box-shadow: var(--kk-shadow-popover);
  }
  .ingr-float-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; position: sticky; top: 0; background: var(--kk-bg);
    border-bottom: 1px solid var(--rule, #E4D9C6); cursor: pointer;
    font-family: var(--serif, Georgia); font-size: 18px;
    width: 100%; min-height: var(--kk-control); text-align: left;
  }
  .ingr-float-head .chev-ind { color: var(--terracotta, #B85440); font-weight: 700; }
  .ingr-float-body { padding: 6px 16px 12px; }
  .ingr-float-body .ingr-list { list-style: none; margin: 0; padding: 0; }
  .ingr-float-body .ingr-list li {
    padding: 8px 0; border-bottom: 1px dashed var(--rule, #E4D9C6);
    display: flex; justify-content: space-between; gap: 12px; font-size: 14px;
  }
  .ingr-float-body .ingr-list li:last-child { border-bottom: none; }
  .ingr-float-body .ingr-list label {
    display: flex; justify-content: space-between; gap: 12px; width: 100%;
  }
}
/* Похожие рецепты: полные стандартные карточки */
.related-card .rc-photo { aspect-ratio: 3 / 2; }
.related-card .rc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-card .rc-body { padding: 16px 18px 18px; }
.related-card .rc-desc {
  font-size: 14px; line-height: 1.55; color: var(--kk-muted, #6b6357);
  margin: 10px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* Related: мобильные карточки — ровно как карточки на главной (горизонтальные) */
@media (max-width: 767px) {
  .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .related-card { display: grid; grid-template-columns: 32% minmax(0, 1fr); }
  .related-card .rc-photo { height: 100%; min-height: 136px; aspect-ratio: auto; }
  .related-card .rc-body { padding: 12px; }
  .related-card .rc-title { font-size: 16px; margin: 6px 0; line-height: 1.3; }
  .related-card .rc-desc {
    font-size: 13px; line-height: 1.45; margin-top: 4px;
    -webkit-line-clamp: 3;
  }
}

/* Бар категорий: мобильный, только не-главные страницы (рецепт, категории) */
.cat-strip { display: none; }
@media (max-width: 767px) {
  .cat-strip {
    display: flex; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 10px 16px 12px;
    background: var(--kk-bg);
    border-bottom: 1px solid var(--kk-line);
    scrollbar-width: none;
  }
  .cat-strip::-webkit-scrollbar { display: none; }
  .cat-strip a {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1px solid var(--kk-line);
    border-radius: 999px;
    background: var(--kk-surface);
    color: var(--kk-text);
    font-size: 13px; font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
  }
  .cat-strip a:hover { border-color: var(--terracotta, #B85440); color: var(--terracotta, #B85440); }
}

/* ===== Страница добавления рецепта (addnews) ===== */
.addnews-page { max-width: 760px; margin: 0 auto; }
.addnews-head { margin-bottom: 24px; }
.addnews-head .eyebrow { margin-bottom: 8px; }
.addnews-title { font-size: 32px; margin: 0; letter-spacing: -0.01em; }
.addnews-sub { margin: 8px 0 0; color: var(--kk-muted, #6b6357); font-size: 15px; }
.form-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  padding: 24px;
  background: var(--kk-surface);
  border: 1px solid var(--kk-line);
  border-radius: var(--kk-radius-card, 12px);
}
.form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.form-row > label, .ri-label { font-size: 14px; font-weight: 600; }
.form-row label.imp::after { content: " *"; color: var(--terracotta, #B85440); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row textarea,
.form-row select,
.xfields input[type="text"],
.xfields textarea,
.xfields select { width: 100%; }
.form-row textarea { resize: vertical; }
.form-row .xfgtitle, .xfields .xfgtitle { font-size: 14px; font-weight: 600; }
.form-check-label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.form-check-input { accent-color: var(--terracotta, #B85440); }
.admin_checkboxs {
  display: grid; gap: 8px; font-size: 14px;
  border-top: 1px dashed var(--kk-line);
  padding-top: 16px;
}
.admin_checkboxs label { display: flex; gap: 8px; align-items: center; }
.admin_checkboxs input { accent-color: var(--terracotta, #B85440); }
.addnews-note { margin: 0; font-size: 13px; color: var(--kk-muted, #6b6357); }
.addnews-note .req { color: var(--terracotta, #B85440); }
.form-submit-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-submit-row .btn-k { min-width: 180px; }
.form-captcha { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-captcha input { flex: 1 1 180px; }

/* ===== Редактор ингредиентов (форма добавления) ===== */
.ri-editor { display: grid; gap: 12px; }
.ri-rows { display: grid; gap: 12px; }
.ri-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 100px auto;
  gap: 10px;
  align-items: start;
}
.ri-choose { display: grid; gap: 4px; }
.ri-field { display: grid; gap: 4px; align-content: start; }
.ri-field-label { font-size: 11px; color: var(--kk-muted, #6b6357); white-space: nowrap; }
.ri-row .ri-select,
.ri-row .ri-amount,
.ri-row .ri-unit,
.ri-row .ri-newtitle { width: 100%; }
.ri-choose .ri-newtitle { display: none; }
.ri-editor.is-new .ri-select { display: none; }
.ri-editor.is-new .ri-choose .ri-newtitle { display: block; }
.ri-mode-global { font-size: 13px; }
.ri-mode-global a { color: var(--terracotta, #B85440); text-decoration: none; }
.ri-mode-global a:hover { text-decoration: underline; }
.ri-mode-global .ri-to-select { display: none; }
.ri-editor.is-new .ri-mode-global .ri-to-new { display: none; }
.ri-editor.is-new .ri-mode-global .ri-to-select { display: inline; }
.ri-cal-hint { font-size: 13px; color: var(--kk-muted, #6b6357); min-height: 1em; }
.ri-del {
  width: 36px; height: 36px;
  border: 1px solid var(--kk-line);
  border-radius: 999px;
  background: var(--kk-surface);
  color: var(--kk-muted, #6b6357);
  font-size: 18px; line-height: 1;
}
.ri-del:hover { border-color: var(--terracotta, #B85440); color: var(--terracotta, #B85440); }
.ri-add {
  width: 40px; height: 40px;
  border: 1px solid var(--terracotta, #B85440);
  border-radius: 999px;
  background: var(--kk-surface);
  color: var(--terracotta, #B85440);
  font-size: 22px; line-height: 1;
}
.ri-add:hover { background: var(--terracotta, #B85440); color: var(--kk-surface); }
.ri-help { margin: 0; font-size: 13px; color: var(--kk-muted, #6b6357); }

/* Кнопка добавления рецепта: иконка «+» в мобильной шапке */
.header-add-m { display: none; }
.menu-add-link {
  color: var(--kk-primary) !important;
  font-weight: 700;
}

/* ===== Аккаунт: регистрация, вход, профиль, PM, сообщения ===== */
.auth-page { max-width: 480px; margin: 0 auto; }
.auth-page .eyebrow { margin-bottom: 6px; }
.auth-title { font-size: 30px; margin: 0; letter-spacing: -0.01em; }
.auth-sub { margin: 8px 0 20px; color: var(--kk-muted, #6c6966); font-size: 15px; }
.auth-page .form-card { margin-top: 4px; }
.auth-note { margin: 0; font-size: 13px; color: var(--kk-muted, #6c6966); }
.auth-note a { color: var(--kk-primary); }
.notice-card { border-left: 3px solid var(--kk-primary); max-width: 760px; margin: 0 auto 20px; }
.notice-title { display: block; margin-bottom: 6px; font-size: 16px; }
.notice-text { font-size: 14px; line-height: 1.55; }

/* Профиль */
.profile-page { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-avatar img {
  width: 72px; height: 72px;
  border-radius: 999px;
  border: 1px solid var(--kk-line);
  object-fit: cover;
  background: var(--kk-surface-warm);
}
.profile-name { font-size: 26px; margin: 0; letter-spacing: -0.01em; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.profile-badges .badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--kk-line);
  border-radius: 999px;
  background: var(--kk-surface);
  font-size: 12px; font-weight: 600;
  color: var(--kk-muted, #6c6966);
}
.profile-badges .badge-link { color: var(--kk-primary); border-color: var(--kk-primary); }
.profile-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.stat-card {
  padding: 14px 16px;
  background: var(--kk-surface);
  border: 1px solid var(--kk-line);
  border-radius: var(--kk-radius-card, 14px);
  display: grid; gap: 2px;
  min-width: 0;
}
.stat-num { font-size: 22px; font-weight: 700; color: var(--kk-ink, #2e221d); }
.stat-lbl { font-size: 12px; color: var(--kk-muted, #6c6966); overflow-wrap: break-word; }
.stat-link { margin-top: 4px; font-size: 11px; line-height: 1.3; overflow-wrap: break-word; }
.stat-link a { color: var(--kk-primary); text-decoration: none; }
.stat-link a:hover { text-decoration: underline; }
.profile-fav .btn-k { margin-top: 12px; }
.profile-sec-title { font-size: 18px; margin: 0 0 10px; }
.profile-info .profile-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--kk-line);
  font-size: 14px;
}
.profile-info .profile-row:last-child { border-bottom: none; }
.profile-info .profile-row span { color: var(--kk-muted, #6c6966); }
.profile-about { font-size: 14px; line-height: 1.6; color: var(--kk-text, #403a35); }
.form-sep { height: 1px; background: var(--kk-line); border: 0; margin: 4px 0; }
.soc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.soc-pill {
  padding: 6px 14px;
  border: 1px solid var(--kk-line);
  border-radius: 999px;
  background: var(--kk-surface);
  font-size: 13px; font-weight: 600;
  color: var(--kk-text, #403a35);
  text-decoration: none;
}
.soc-pill:hover { border-color: var(--kk-primary); color: var(--kk-primary); }
.soc-list { font-size: 13px; color: var(--kk-muted, #6c6966); }
.profile-delete { color: var(--kk-error, #a93630); font-size: 14px; font-weight: 600; }
.badge-link a { color: inherit; }
a.self_delete_link {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid var(--kk-error, #a93630);
  border-radius: 999px;
  background: var(--kk-surface);
  color: var(--kk-error, #a93630);
  font-size: 14px; font-weight: 600;
  text-shadow: none;
  box-shadow: none;
  text-decoration: none;
}
a.self_delete_link:hover { background: var(--kk-error, #a93630); color: var(--kk-surface); }
a.self_delete_link .profile-delete { color: inherit; font-weight: inherit; }
.form-submit-row a.self_delete_link { flex: 1 1 180px; max-width: 100%; }

/* PM */
.pm-page { max-width: 760px; margin: 0 auto; }
.pm-head { margin-bottom: 16px; }
.pm-head .auth-title { margin-bottom: 8px; }
.pm-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--kk-muted, #6c6966); }
.pm-status .pm-progress-bar, .pm-status progress { flex: 1 1 180px; max-width: 320px; }
.pm-read-head { margin-bottom: 8px; }
.pm-with { margin: 0 0 4px; font-size: 13px; color: var(--kk-muted, #6c6966); }
.pm-reply { margin-top: 16px; display: grid; gap: 10px; }
.pm-reply .form-submit-row { margin-top: 4px; }
.pm-reply textarea.pmeditor {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--kk-line);
  background: var(--kk-surface);
  border-radius: var(--kk-radius-control, 12px);
  padding: 10px 12px;
  color: var(--kk-text, #403a35);
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
}

/* Вход в бургер-меню: гость — форма (дубли скрыты), залогиненный — строки с иконками */
.site-menu .ub-drop summary { display: none; }
.site-menu .ub-dup { display: none; }
.site-menu .ub-login > .dot { display: none; }
.site-menu .ub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--kk-line);
  font-size: 15px;
  font-weight: 600;
  color: var(--kk-text, #403a35);
  max-width: 100%;
}
.site-menu .ub-row:hover { color: var(--kk-primary); }
.site-menu .ub-row .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--kk-primary);
}
.site-menu .ub-row b { font-weight: 700; }
.utility-bar .ub-row {
  display: inline;
  padding: 0;
  border: 0;
  font-size: inherit;
  font-weight: inherit;
}
.utility-bar .ub-row .icon { display: none; }
.utility-bar .ub-fav { display: none; }
.site-menu .ub-drop-form {
  position: static;
  width: 100%;
  display: grid; gap: 10px;
  margin-top: 4px;
}
.site-menu .ub-drop-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--kk-line);
  border-radius: var(--kk-radius-control, 12px);
  background: var(--kk-surface);
}
.site-menu .ub-drop-form .btn-k {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.utility-bar .ub-drop-form .btn-k {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.site-menu .ub-drop-links {
  display: flex; gap: 14px;
  font-size: 13px;
}
.site-menu .ub-drop-links a { color: var(--kk-primary); }
.site-menu #account {
  border-top: 1px solid var(--kk-line);
  margin-top: 8px;
  padding-top: 16px;
}
.site-menu #account h2 { font-size: 18px; margin: 0 0 12px; }
.site-menu .ub-login {
  display: block;
  color: var(--kk-text, #403a35);
}
@media (max-width: 767px) {
  .auth-title { font-size: 26px; }
  .profile-head { flex-direction: column; align-items: flex-start; }
  .profile-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .form-submit-row .btn-k { flex: 1 1 100%; }
  .form-submit-row a.self_delete_link { flex: 1 1 100%; width: 100%; }
  .form-captcha input { flex: 1 1 140px; }
}

/* ===== Редактор шагов (форма добавления) ===== */
.rs-editor { display: grid; gap: 12px; }
.rs-rows { display: grid; gap: 12px; }
.rs-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.rs-number {
  width: 36px; height: 36px;
  border: 1px solid var(--kk-line);
  border-radius: 999px;
  background: var(--kk-surface-warm, #f6f1e9);
  color: var(--terracotta, #B85440);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rs-fields { display: grid; gap: 8px; }
.rs-row .rs-title,
.rs-row .rs-description { width: 100%; }
.rs-row .rs-description { resize: vertical; min-height: 88px; }
.rs-remove {
  width: 36px; height: 36px;
  border: 1px solid var(--kk-line);
  border-radius: 999px;
  background: var(--kk-surface);
  color: var(--kk-muted, #6b6357);
  font-size: 18px; line-height: 1;
}
.rs-remove:hover { border-color: var(--terracotta, #B85440); color: var(--terracotta, #B85440); }
.rs-label { font-size: 14px; font-weight: 600; }
@media (max-width: 767px) {
  .rs-row { grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* ===== Предпросмотр публикации ===== */
.preview-card {
  max-width: 760px; margin: 0 auto 20px;
  padding: 24px;
  background: var(--kk-surface);
  border: 1px solid var(--kk-line);
  border-radius: var(--kk-radius-card, 12px);
}
.preview-card .eyebrow { margin-bottom: 4px; }
.preview-title { font-size: 30px; margin: 8px 0 0; letter-spacing: -0.01em; line-height: 1.2; }
.preview-meta {
  margin-top: 10px;
  font-size: 13px; color: var(--kk-muted, #6b6357);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.preview-body { margin-top: 16px; line-height: 1.65; }
.preview-body p { margin: 0 0 12px; }
@media (max-width: 767px) {
  .preview-card { padding: 16px; }
  .preview-title { font-size: 24px; }
}
@media (max-width: 767px) {
  .form-card { padding: 16px; }
  .addnews-title { font-size: 26px; }
  .form-submit-row .btn-k { flex: 1 1 100%; }
  .ri-row {
    grid-template-columns: 1fr auto auto auto;
    grid-template-areas:
      "choose choose choose choose"
      "amount unit unit del";
    gap: 8px;
  }
  .ri-choose { grid-area: choose; }
  .ri-field-amount { grid-area: amount; width: 90px; }
  .ri-field-unit { grid-area: unit; width: 84px; }
  .ri-field-del { grid-area: del; }
  .ri-add { width: 36px; height: 36px; }
}

/* Кнопка избранного на карточке: без белой подложки поверх фото */
.rc-save .save-control,
.daily-main .rc-save .save-control,
.daily-side .rc-save .save-control {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.rc-save .save-control:hover,
.rc-save .save-control:focus-visible {
  background: rgba(255, 255, 255, 0.85);
  border-color: transparent;
}

/* Журнальные статьи: мини-карточки ссылок на рецепты — одна линия со скроллом */
.journal-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 14px 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--kk-line) transparent;
  -webkit-overflow-scrolling: touch;
}
.journal-cards::-webkit-scrollbar { height: 6px; }
.journal-cards::-webkit-scrollbar-track { background: transparent; }
.journal-cards::-webkit-scrollbar-thumb {
  background: var(--kk-line);
  border-radius: 999px;
}
.journal-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 140px;
  border: 1px solid var(--kk-line);
  border-radius: var(--kk-radius-card, 14px);
  overflow: hidden;
  background: var(--kk-surface);
  text-decoration: none;
  transition: border-color 0.15s;
}
.journal-card:hover { border-color: var(--kk-primary); }
.journal-card .jc-photo {
  aspect-ratio: 3 / 2;
  background: var(--kk-surface-warm, #f6f1e9);
  overflow: hidden;
}
.journal-card .jc-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.journal-card .jc-title {
  padding: 8px 10px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--kk-text, #403a35);
}
.journal-card:hover .jc-title { color: var(--kk-primary); }

/* Карточка рецепта: клик по любой части карточки открывает рецепт */
.rc-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.rc-save { z-index: 2; }
.rc-cat,
.rc-rating,
.rc-meta > .rc-rating {
  position: relative;
  z-index: 2;
}

/* ===== Комментарии (рецепты, lastcomments, поиск, PM) ===== */
.comments-section { margin-top: 32px; }
.comments-section h2 {
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.empty-comments {
  margin: 0;
  padding: 20px;
  color: var(--kk-muted, #6c6966);
  background: var(--kk-surface-warm, #f6f1e9);
  border-radius: var(--kk-radius-card, 14px);
}
.com_list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}
.comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--kk-surface);
  border: 1px solid var(--kk-line);
  border-radius: var(--kk-radius-card, 14px);
}
.com-avatar {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--kk-surface-warm, #f6f1e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
  color: var(--kk-muted, #6c6966);
}
.com-avatar img,
.com-avatar .cover {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 999px;
}
.comment > div:last-child { flex: 1 1 auto; min-width: 0; }
.com-head {
  display: flex; flex-wrap: wrap;
  gap: 8px; align-items: center;
  margin-bottom: 8px;
}
.com-name {
  font-size: 15px; font-weight: 700;
  color: var(--kk-ink, #2e221d);
}
.com-name a { color: inherit; text-decoration: none; }
.com-name a:hover { color: var(--kk-primary); }
.com-online {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px;
  color: var(--kk-olive, #657744);
}
.com-online::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--kk-olive, #657744);
}
.com-date { font-size: 13px; color: var(--kk-muted, #6c6966); }
.com-rating { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.com-news-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.com-news-title a { color: var(--kk-ink, #2e221d); text-decoration: none; }
.com-news-title a:hover { color: var(--kk-primary); }
.com-body { font-size: 15px; line-height: 1.6; color: var(--kk-text, #403a35); }
.com-body .text img { max-width: 100%; border-radius: var(--kk-radius-card, 14px); }
.com-images { margin-top: 12px; }
.com-signature {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--kk-line);
  font-size: 13px;
  color: var(--kk-muted, #6c6966);
}
.com-actions {
  display: flex; flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 13px;
}
.com-actions a {
  color: var(--kk-muted, #6c6966);
  text-decoration: none;
  cursor: pointer;
}
.com-actions a:hover { color: var(--kk-primary); }
.com-action-del, .com-actions a.com-action-del { color: var(--kk-error, #a93630); }
.com-actions a.com-action-del:hover { color: var(--kk-error, #a93630); }
.com-mass { display: inline-flex; align-items: center; gap: 6px; }
.com-mass input { accent-color: var(--kk-primary); }
.comments-navigation { margin-top: 16px; }
.comments-addform { margin-top: 20px; }
@media (max-width: 767px) {
  .comment { padding: 12px; gap: 10px; }
  .com-avatar { flex-basis: 36px; width: 36px; height: 36px; font-size: 13px; }
  .com-body { font-size: 14px; }
  .com-actions { gap: 6px 12px; }
  .comments-section h2 { font-size: 24px; }
}

.pm-textarea { min-height: 120px; resize: vertical; }
