/* Page-specific editorial overrides. Load after the shared desktop stylesheet. */
body.desktop-refresh.page-polezno .guide-card-copy { display: contents; }
body.desktop-refresh.page-polezno .guides-heading { margin: 0 0 24px; }
body.desktop-refresh.page-polezno .blog-proposal-note { margin: -6px 0 26px; }
body.desktop-refresh.page-polezno .proposed-topic-grid { display: grid; gap: 18px; margin-bottom: 24px; }
body.desktop-refresh.page-polezno .proposed-topic-grid:last-child { margin-bottom: 0; }
body.desktop-refresh.page-polezno .proposed-topic-card { min-width: 0; overflow: hidden; border: 1.5px solid #b5c79d; border-radius: 12px; background: #fff; box-shadow: none; }
body.desktop-refresh.page-polezno .topic-media { position: relative; height: 180px; overflow: hidden; }
body.desktop-refresh.page-polezno .topic-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.desktop-refresh.page-polezno .topic-copy { padding: 18px; }
body.desktop-refresh.page-polezno .topic-copy .eyebrow { margin: 0 0 8px; color: #4d6d38; font-size: 11px; }
body.desktop-refresh.page-polezno .topic-copy h3 { margin: 0 0 10px; color: #243d30; font-size: 22px; line-height: 1.25; }
body.desktop-refresh.page-polezno .topic-copy p { margin: 0; color: #405345; font-size: 15px; line-height: 1.45; }
@media (min-width: 901px) {
  /* Reviews: retain the existing gallery, pagination and full-review dialogs. */
  body.desktop-refresh.page-otzyvy #reviews {
    background: #fff;
    border: 0;
  }

  body.desktop-refresh.page-otzyvy :is(.real-photos, .real-documents) {
    background: #fff;
  }

  body.desktop-refresh.page-otzyvy .reviews-theme-icons > div {
    padding: 16px 20px;
    background: #eef3e5;
    color: #243d30;
    border: 1.5px solid #b5c79d;
    border-left: 4px solid #678842;
    border-radius: 12px;
    box-shadow: none;
  }

  body.desktop-refresh.page-otzyvy .reviews-theme-icons svg {
    width: 30px;
    height: 30px;
    padding: 8px;
    background: #dce9c5;
    color: #4d6d38;
    border-radius: 10px;
  }

  body.desktop-refresh.page-otzyvy .reviews-source-row .lead {
    padding: 0;
    background: transparent;
    border: 0;
    color: #405345;
    font-size: 17px;
    font-weight: 500;
  }

  body.desktop-refresh.page-otzyvy .gallery-heading { margin-bottom: 14px; }
  body.desktop-refresh.page-otzyvy .gallery-heading h2 { margin: 0; }

  body.desktop-refresh.page-otzyvy .gallery-arrows button {
    width: 46px;
    height: 46px;
    border: 1.5px solid #a1b97b;
    border-radius: 8px;
    background: #eef3e5;
    color: #284737;
    box-shadow: none;
  }

  body.desktop-refresh.page-otzyvy .gallery-arrows button:hover {
    background: #dce9c5;
    border-color: #678842;
  }

  body.desktop-refresh.page-otzyvy .photo-strip {
    gap: 20px;
    padding: 6px 4px 18px;
    scrollbar-color: #91a871 #eef3e5;
  }

  body.desktop-refresh.page-otzyvy .gallery-item {
    flex: 0 0 clamp(300px, 29vw, 380px);
    height: 270px;
    border: 1.5px solid #b5c79d;
    border-radius: 12px;
    background: #f5f4ee;
    box-shadow: none;
  }

  body.desktop-refresh.page-otzyvy .review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
    margin-top: 28px;
  }

  body.desktop-refresh.page-otzyvy .review-card {
    min-width: 0;
    height: auto;
    min-height: 390px;
    padding: 22px 22px 20px;
    gap: 14px;
    background: #e1ebd0;
    color: #243d30;
    border: 1.5px solid #9bb57a;
    border-left: 6px solid #678842;
    border-radius: 12px;
    box-shadow: none;
  }

  body.desktop-refresh.page-otzyvy .review-card:hover {
    border-color: #8fa96a;
    border-left-color: #678842;
    box-shadow: none;
  }

  body.desktop-refresh.page-otzyvy .review-card figcaption {
    align-items: flex-start;
    gap: 12px;
  }

  body.desktop-refresh.page-otzyvy .review-card figcaption > div { min-width: 0; }
  body.desktop-refresh.page-otzyvy .review-card figcaption b {
    color: #243d30;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body.desktop-refresh.page-otzyvy .review-avatar {
    background: #cbdcb3;
    color: #284737;
  }

  body.desktop-refresh.page-otzyvy .review-card time {
    margin-top: 4px;
    color: #4b604b;
    font-size: 14px;
  }

  body.desktop-refresh.page-otzyvy .review-stars {
    color: #4f702e;
    font-size: 21px;
    line-height: 1;
    letter-spacing: 2px;
    white-space: nowrap;
  }

  body.desktop-refresh.page-otzyvy .review-card blockquote {
    display: -webkit-box;
    height: 9.6em;
    max-height: 9.6em;
    margin: 0;
    overflow: hidden;
    color: #243d30;
    font-size: 18px;
    line-height: 1.6;
    flex: none;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
  }

  body.desktop-refresh.page-otzyvy .review-read-more {
    color: #365521;
    font-size: 16px;
    font-weight: 700;
    text-underline-offset: 4px;
  }

  body.desktop-refresh.page-otzyvy .review-source {
    color: #405a30;
    font-size: 14px;
    text-underline-offset: 4px;
  }

  body.desktop-refresh.page-otzyvy .reviews-more { margin-top: 28px; }
  body.desktop-refresh.page-otzyvy :is(.review-card, .review-read-more, .reviews-more)[hidden] { display: none; }

  body.desktop-refresh.page-otzyvy .review-dialog {
    width: min(720px, calc(100% - 80px));
    max-width: 720px;
    padding: 30px;
    background: #f5f4ee;
    color: #243d30;
    border: 1.5px solid #9bb57a;
    border-radius: 14px;
    box-shadow: none;
  }

  body.desktop-refresh.page-otzyvy .review-dialog h2 { padding-right: 38px; }
  body.desktop-refresh.page-otzyvy .review-dialog p { color: #243d30; font-size: 18px; line-height: 1.65; }
  body.desktop-refresh.page-otzyvy .review-dialog time { color: #59675c; }
  body.desktop-refresh.page-otzyvy .review-dialog-close { width: 40px; height: 40px; color: #284737; }

  body.desktop-refresh.page-otzyvy .document-grid { gap: 22px; }
  body.desktop-refresh.page-otzyvy .document-item {
    min-width: 0;
    padding: 18px 20px;
    background: #eef3e5;
    color: #243d30;
    border: 1.5px solid #b5c79d;
    border-left: 4px solid #678842;
    border-radius: 12px;
    box-shadow: none;
    line-height: 1.45;
  }

  body.desktop-refresh.page-otzyvy .document-item:hover { border-color: #678842; box-shadow: none; }
  body.desktop-refresh.page-otzyvy .document-item img { border-radius: 4px; box-shadow: none; }
  body.desktop-refresh.page-otzyvy .gallery-dialog { border: 1px solid #cdd5c5; border-radius: 12px; box-shadow: none; }

  /* Questions stay native details/summary controls. */
  body.desktop-refresh.page-voprosy main > .muted { background: #f5f4ee; }
  body.desktop-refresh.page-voprosy main > .muted > .wrap { max-width: 1080px; }
  body.desktop-refresh.page-voprosy main details {
    padding: 0;
    background: #eef3e5;
    border: 1.5px solid #b5c79d;
    border-radius: 12px;
    box-shadow: none;
  }

  body.desktop-refresh.page-voprosy main details + details { margin-top: 12px; }
  body.desktop-refresh.page-voprosy main details[open] { background: #e1ebd0; border-color: #8fa96a; }
  body.desktop-refresh.page-voprosy main summary {
    padding: 20px 64px 20px 22px;
    color: #243d30;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.35;
  }

  body.desktop-refresh.page-voprosy main summary::after {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    right: 20px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #d5e4bb;
    color: #365521;
    font-size: 23px;
    line-height: 1;
  }

  body.desktop-refresh.page-voprosy main details p {
    max-width: 920px;
    margin: 0;
    padding: 0 22px 22px;
    color: #405345;
    font-size: 18px;
    line-height: 1.65;
  }

  /* Article catalogue retains the existing image frames and linked cards. */
  body.desktop-refresh.page-polezno .article-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  body.desktop-refresh.page-polezno .article-item {
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 1.5px solid #b5c79d;
    border-radius: 12px;
    box-shadow: none;
  }

  body.desktop-refresh.page-polezno .article-item:hover { border-color: #678842; box-shadow: none; }
  body.desktop-refresh.page-polezno .article-item-media { margin: -24px -24px 22px; }
  body.desktop-refresh.page-polezno .article-item-media .article-item-picture { height: 210px; }
  body.desktop-refresh.page-polezno .article-item .eyebrow { margin: 0 0 10px; color: #4d6d38; font-size: 12px; }
  body.desktop-refresh.page-polezno .article-item h2 { margin: 0 0 14px; color: #243d30; font-size: 27px; line-height: 1.2; }
  body.desktop-refresh.page-polezno .article-item p { margin: 0 0 22px; color: #405345; font-size: 17px; line-height: 1.55; }
  body.desktop-refresh.page-polezno .article-item-more { color: #4d6d38; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

  /* The real guides remain links; proposed blog topics are separate, inert cards. */
  body.desktop-refresh.page-polezno main > .page-hero:first-child {
    background: linear-gradient(to bottom, #b6cd83 0%, #d2e1ad 44%, #f0f5e5 76%, #fff 100%);
  }
  body.desktop-refresh.page-polezno :is(.guide-cards-grid, .proposed-topic-grid) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
  }
  body.desktop-refresh.page-polezno .proposed-topic-grid { margin-bottom: 28px; }
  body.desktop-refresh.page-polezno .proposed-topic-grid:last-child { margin-bottom: 0; }
  body.desktop-refresh.page-polezno .guide-cards-grid > .article-item,
  body.desktop-refresh.page-polezno .proposed-topic-grid > .proposed-topic-card {
    padding: 0;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid #b5c79d;
    border-radius: 12px;
    box-shadow: none;
  }
  body.desktop-refresh.page-polezno :is(.guide-cards-grid, .proposed-topic-grid) > :first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
  }
  body.desktop-refresh.page-polezno :is(.guide-cards-grid, .proposed-topic-grid) > :nth-child(n + 2) {
    grid-column: 2;
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
    align-items: stretch;
  }
  body.desktop-refresh.page-polezno .guide-cards-grid .article-item-media,
  body.desktop-refresh.page-polezno .proposed-topic-grid .topic-media {
    position: relative;
    min-width: 0;
    min-height: 210px;
    height: auto;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
  }
  body.desktop-refresh.page-polezno .guide-cards-grid .article-item-media .article-item-picture,
  body.desktop-refresh.page-polezno .proposed-topic-grid .topic-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
  }
  body.desktop-refresh.page-polezno .guide-cards-grid > :first-child .article-item-media,
  body.desktop-refresh.page-polezno .proposed-topic-grid > :first-child .topic-media { flex: 0 0 265px; height: 265px; }
  body.desktop-refresh.page-polezno .guide-cards-grid .guide-card-copy,
  body.desktop-refresh.page-polezno .proposed-topic-grid .topic-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
  }
  body.desktop-refresh.page-polezno .guide-cards-grid .eyebrow,
  body.desktop-refresh.page-polezno .proposed-topic-grid .eyebrow { margin: 0 0 9px; font-size: 12px; line-height: 1.35; }
  body.desktop-refresh.page-polezno .guide-cards-grid h2,
  body.desktop-refresh.page-polezno .proposed-topic-grid h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.2; }
  body.desktop-refresh.page-polezno .guide-cards-grid > :first-child h2,
  body.desktop-refresh.page-polezno .proposed-topic-grid > :first-child h3 { font-size: 29px; }
  body.desktop-refresh.page-polezno .guide-cards-grid p,
  body.desktop-refresh.page-polezno .proposed-topic-grid p { margin: 0 0 16px; font-size: 16px; line-height: 1.45; }
  body.desktop-refresh.page-polezno .proposed-topic-grid p:last-child { margin-bottom: 0; }
  body.desktop-refresh.page-polezno .guide-cards-grid .article-item-more { margin-top: auto; }

  /* The three guides share one comfortable reading measure. */
  body.desktop-refresh.page-article .article-body { width: 100%; max-width: 820px; margin-inline: auto; }
  body.desktop-refresh.page-article .article-body h2 { margin: 34px 0 12px; color: #243d30; font-size: 30px; line-height: 1.22; }
  body.desktop-refresh.page-article .article-body p,
  body.desktop-refresh.page-article .article-body li { color: #405345; font-size: 18px; line-height: 1.65; }
  body.desktop-refresh.page-article .article-body p { margin: 0 0 16px; }
  body.desktop-refresh.page-article .article-body ul { margin: 18px 0 26px; padding-left: 25px; }
  body.desktop-refresh.page-article .article-body li { margin: 10px 0; padding-left: 4px; }
  body.desktop-refresh.page-article .article-body li::marker { color: #678842; }
  body.desktop-refresh.page-article .article-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
  body.desktop-refresh.page-article .article-strip > div {
    padding: 16px 14px;
    gap: 10px;
    background: #eef3e5;
    color: #284737;
    border: 1.5px solid #b5c79d;
    border-radius: 12px;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 650;
  }

  body.desktop-refresh.page-article .article-strip .ui-icon { width: 30px; height: 30px; color: #4d6d38; }
  body.desktop-refresh.page-article .article-body .info-band {
    margin: 30px 0 0;
    padding: 22px 24px;
    background: #e1ebd0;
    border: 1.5px solid #9bb57a;
    border-left: 5px solid #678842;
    border-radius: 12px;
    box-shadow: none;
  }

  body.desktop-refresh.page-article .info-band b { color: #243d30; font-size: 19px; }
  body.desktop-refresh.page-article .info-band p { margin: 8px 0 0; }
  body.desktop-refresh.page-article .measure-diagram { margin: 26px 0; padding: 16px; background: #fff; border: 1px solid #cdd5c5; border-radius: 12px; }
  body.desktop-refresh.page-article .measure-diagram img { filter: none; }

  /* About: a readable story alongside the existing owner photograph. */
  body.desktop-refresh.page-o-sluzhbe .about-details .content-grid { grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr); gap: 38px; }
  body.desktop-refresh.page-o-sluzhbe .about-story { max-width: none; gap: 28px; }
  body.desktop-refresh.page-o-sluzhbe .about-text { padding-bottom: 26px; border-bottom: 1px solid #cdd5c5; }
  body.desktop-refresh.page-o-sluzhbe .about-text:first-child { padding: 26px; background: #eef3e5; border: 1.5px solid #b5c79d; border-left: 4px solid #678842; border-radius: 12px; }
  body.desktop-refresh.page-o-sluzhbe .about-story h2 { margin: 0 0 14px; color: #243d30; font-size: 29px; line-height: 1.22; }
  body.desktop-refresh.page-o-sluzhbe .about-story h2:not(:first-child) { margin-top: 28px; }
  body.desktop-refresh.page-o-sluzhbe .about-story :is(p, li) { color: #405345; font-size: 18px; line-height: 1.65; }
  body.desktop-refresh.page-o-sluzhbe .about-story ol { padding-left: 25px; }
  body.desktop-refresh.page-o-sluzhbe .about-story li::marker { color: #4d6d38; font-weight: 700; }
  body.desktop-refresh.page-o-sluzhbe .about-sidebar { display: grid; gap: 22px; }
  body.desktop-refresh.page-o-sluzhbe .about-owner { width: 100%; background: #fff; border: 1.5px solid #b5c79d; border-radius: 12px; box-shadow: none; }
  body.desktop-refresh.page-o-sluzhbe .about-owner figcaption { padding: 16px 18px; }
  body.desktop-refresh.page-o-sluzhbe .about-owner figcaption strong { color: #243d30; font-size: 20px; }
  body.desktop-refresh.page-o-sluzhbe .about-owner figcaption span { color: #59675c; font-size: 16px; }
  body.desktop-refresh.page-o-sluzhbe .about-reviews { padding: 24px; background: #e1ebd0; border: 1.5px solid #9bb57a; border-left: 4px solid #678842; border-radius: 12px; box-shadow: none; }
  body.desktop-refresh.page-o-sluzhbe .about-sidebar .side-note { position: static; }

  /* Contact information is immediately distinguishable from preparation notes. */
  body.desktop-refresh.page-kontakty main > .page-hero {
    background: linear-gradient(to bottom, #b6cd83 0%, #d2e1ad 44%, #f0f5e5 76%, #fff 100%);
  }
  body.desktop-refresh.page-kontakty .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  body.desktop-refresh.page-kontakty .contact-card {
    min-width: 0;
    padding: 28px;
    background: #eef3e5;
    border: 1.5px solid #b5c79d;
    border-radius: 12px;
    box-shadow: none;
  }

  body.desktop-refresh.page-kontakty .contact-card:first-child { background: #e1ebd0; border-color: #9bb57a; border-left: 5px solid #678842; }
  body.desktop-refresh.page-kontakty .contact-card h2 { margin: 0 0 18px; color: #243d30; font-size: 29px; }
  body.desktop-refresh.page-kontakty .contact-card .phone { margin: 10px 0; color: #284737; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.3; font-weight: 750; white-space: nowrap; }
  body.desktop-refresh.page-kontakty .contact-card :is(p, li) { color: #405345; font-size: 18px; line-height: 1.6; }
  body.desktop-refresh.page-kontakty .contact-card p { margin: 20px 0 0; }
  body.desktop-refresh.page-kontakty .contact-card ul { margin: 0 0 20px; padding-left: 23px; }
  body.desktop-refresh.page-kontakty .contact-card li { margin: 7px 0; }
  body.desktop-refresh.page-kontakty .contact-card li::marker { color: #678842; }
  body.desktop-refresh.page-kontakty .prose { max-width: 760px; }
  body.desktop-refresh.page-kontakty .prose h2 { margin-top: 28px; font-size: 29px; }
  body.desktop-refresh.page-kontakty .prose h2:first-child { margin-top: 0; }
  body.desktop-refresh.page-kontakty .prose p { color: #405345; font-size: 18px; line-height: 1.65; }
  body.desktop-refresh.page-kontakty .coverage-panel { padding: 28px; background: #fff; border: 1.5px solid #b5c79d; border-radius: 12px; box-shadow: none; }
  body.desktop-refresh.page-kontakty .coverage-list .ui-icon { background: #dce9c5; color: #4d6d38; border-radius: 12px; }
  body.desktop-refresh.page-kontakty .prep-grid > a { background: #eef3e5; border: 1.5px solid #b5c79d; border-radius: 12px; box-shadow: none; }
  body.desktop-refresh.page-kontakty .prep-grid > a:hover { background: #e1ebd0; border-color: #8fa96a; box-shadow: none; }

  body.desktop-refresh:is(.page-o-sluzhbe, .page-kontakty) .side-note {
    padding: 24px;
    background: #eef3e5;
    border: 1.5px solid #b5c79d;
    border-left: 4px solid #678842;
    border-radius: 12px;
    box-shadow: none;
  }

  body.desktop-refresh:is(.page-o-sluzhbe, .page-kontakty) .side-note h2 { margin: 0 0 14px; color: #243d30; font-size: 25px; line-height: 1.25; }
  body.desktop-refresh:is(.page-o-sluzhbe, .page-kontakty) .side-note p { color: #405345; font-size: 16px; line-height: 1.6; }
}
