/*
 * СТИЛИ САЙТА (все блоки плагина). Адаптивные: телефон, планшет, компьютер.
 * Оглавление:
 *  1. Основа и переменные цветов
 *  2. Ярлычки секций (badge)
 *  3. Баннер на всю ширину
 *  4. Список поездок (карточки, фильтр)
 *  5. Страница поездки
 *  6. Окно записи (dialog)
 *  7. Календарь (месячная сетка)
 *  8. Списки календаря (как на плакате) и легенда
 *  9. Relacje (баннер, карточки, галерея, увеличение фото)
 * 10. Адаптивность (мобильные экраны)
 * Цвета можно поменять в блоке «Основа» (переменные --g, --y и т.д.).
 */

/* ===== 1. Основа и переменные ===== */
.pttk{--g:#1F4D3A;--y:#F2B705;--bg:#F6F4EC;--ink:#17231D;--mu:#4A5A52;--bd:#DAD6C6;
  color:var(--ink);font-size:18px;line-height:1.6;-webkit-text-size-adjust:100%}
.pttk *,.pttk *::before,.pttk *::after,.pttk-modal *,.pttk-lb *{box-sizing:border-box}
.pttk-wrap{max-width:1160px;margin:0 auto;padding:32px 24px 64px}
.pttk-narrow{max-width:860px}
.pttk h1,.pttk h2,.pttk h3{color:var(--ink);line-height:1.2}
.pttk h1{font-size:clamp(30px,5vw,46px);margin:0 0 24px}
.pttk h2{font-size:24px;margin:0 0 12px}
.pttk .pttk-h2{font-size:30px;margin:8px 0 20px}
.pttk .pttk-h2-past{margin-top:56px}
.pttk a{color:var(--g)}
.pttk img{max-width:100%;height:auto}
.pttk-tag{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mu);margin:0 0 8px}
.pttk-muted{color:var(--mu);font-size:16px}
.pttk-inline{margin:0 0 12px}
.pttk-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap} /* только для читалок экрана */
.pttk-svg{display:inline-block;vertical-align:middle;flex:none}
.pttk-alert{margin:12px 0 0;padding:10px 14px;border-left:4px solid var(--y);background:#FFF6D6;font-weight:600}
.pttk-account{word-break:break-word}
.pttk-prices{list-style:none;margin:0 0 8px;padding:0;font-size:20px}
.pttk-prices li{padding:4px 0}
.pttk-btn{display:inline-block;padding:12px 20px;min-height:44px;border:2px solid var(--g);border-radius:6px;background:#fff;color:var(--g);font-weight:600;text-decoration:none}
.pttk-btn:hover,.pttk-btn:focus{background:var(--g);color:#fff}
.pttk-msg{padding:12px 14px;border-radius:6px;margin:0 0 20px;font-size:16px}
.pttk-msg-ok{background:#E3F1E8;color:#14452B}
.pttk-msg-err{background:#FBE6E2;color:#7A1C10}

/* ===== 2. Ярлычки секций ===== */
/* Цвет фона и текста приходят из секции через переменные --pttk-c и --pttk-t. */
.pttk-badges{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.pttk-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 12px 4px 8px;border-radius:99px;
  background:var(--pttk-c,#1F4D3A);color:var(--pttk-t,#fff);font-size:13px;font-weight:600;line-height:1.3;white-space:nowrap}
.pttk-ico-img{width:16px;height:16px;object-fit:contain;flex:none}

/* ===== 3. Баннер ===== */
.pttk-hero{position:relative;width:100%;background:var(--g,#1F4D3A);color:#F6F4EC;overflow:hidden;min-height:420px;display:flex;align-items:center;background-size:cover;background-position:center}
.pttk-hero-small{min-height:260px}
/* Для шорткода: растянуть на весь экран, даже если вставлен в узкий блок темы. */
.pttk-fullbleed{position:relative;left:50%;right:50%;width:100vw;max-width:100vw;margin-left:-50vw;margin-right:-50vw}
.pttk-hero.has-img::before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg,rgba(15,35,25,.82) 0%,rgba(15,35,25,.45) 60%,rgba(15,35,25,.15) 100%)}
.pttk-hero-art{position:absolute;left:0;bottom:0;width:100%;height:100%}
.pttk-hero-in{position:relative;width:100%;max-width:1160px;margin:0 auto;padding:72px 24px 88px}
.pttk .pttk-hero h1{color:#F6F4EC;font-size:clamp(34px,6vw,62px);max-width:760px;margin:0 0 16px}
.pttk-tag-light{color:#F2D98A}
.pttk-lead{font-size:clamp(18px,2.2vw,22px);max-width:620px;margin:0 0 28px}
.pttk .pttk-next{display:inline-flex;flex-direction:column;gap:6px;max-width:520px;padding:18px 22px;border-radius:10px;background:rgba(246,244,236,.96);color:var(--ink);text-decoration:none;box-shadow:0 6px 24px rgba(0,0,0,.25)}
.pttk .pttk-next strong{font-size:22px}
.pttk .pttk-next .pttk-tag{margin:0}
.pttk .pttk-next .pttk-badges{margin:0}
.pttk-next-cta{color:var(--g);font-weight:600}

/* ===== 4. Список поездок ===== */
.pttk-chips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}
.pttk-chip{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;min-height:44px;border-radius:99px;border:1.5px solid var(--pttk-c,var(--g));background:transparent;color:var(--pttk-c,var(--g));font-size:15px;font-weight:600;cursor:pointer;font-family:inherit}
.pttk-chip.is-active{background:var(--pttk-c,var(--g));color:var(--pttk-t,#fff)}
.pttk-chip:not([style]).is-active{background:var(--g);color:#fff}
.pttk-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.pttk-card{background:#fff;border:1px solid var(--bd);border-radius:10px;padding:22px;display:flex;flex-direction:column;gap:10px}
.pttk-card-img img{width:calc(100% + 44px);max-width:none;margin:-22px -22px 4px;height:170px;object-fit:cover;border-radius:10px 10px 0 0;display:block}
.pttk-card h3{font-size:21px;margin:0}
.pttk-card h3 a{text-decoration:none}
.pttk-card p{margin:0}
.pttk-card .pttk-badges{margin:0}
.pttk-card .pttk-btn{align-self:flex-start;margin-top:auto}
.pttk-card[hidden]{display:none}

/* ===== 5. Страница поездки ===== */
.pttk-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:40px;align-items:start}
.pttk-main{display:flex;flex-direction:column;gap:24px;min-width:0}
.pttk-side{display:flex;flex-direction:column;gap:20px;position:-webkit-sticky;position:sticky;top:24px}
.pttk-box{background:#fff;border:1px solid var(--bd);border-radius:10px;padding:24px}
.pttk-box ol,.pttk-box ul{margin:0;padding-left:22px;line-height:1.9}
.pttk-box ul.pttk-contact{list-style:none;padding:0;line-height:1.7}
.pttk-hero-img img{width:100%;height:auto;border-radius:10px;display:block}
.pttk-map{position:relative;width:100%;height:0;padding-bottom:75%;border-radius:8px;overflow:hidden;border:1px solid var(--bd);margin-bottom:10px} /* 4:3 без aspect-ratio (старые браузеры) */
.pttk-map iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
.pttk-facts{margin:0}
.pttk-facts div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #E6E2D2}
.pttk-facts div:last-child{border-bottom:0}
.pttk-facts dt{color:var(--mu)}
.pttk-facts dd{margin:0;text-align:right;font-weight:600}
.pttk-signup{border:2px solid var(--g)}
.pttk-submit{display:block;width:100%;min-height:48px;margin:0 0 14px;border:0;border-radius:6px;background:var(--y);color:var(--ink);font-size:18px;font-weight:600;cursor:pointer;font-family:inherit}
.pttk-submit:hover,.pttk-submit:focus{filter:brightness(.95)}
.pttk-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden} /* «ловушка» для ботов */

/* ===== 6. Окно записи ===== */
.pttk-modal{border:0;border-radius:12px;padding:0;width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;color:#17231D;font-size:17px;font-family:inherit}
.pttk-modal::backdrop{background:rgba(15,35,25,.6)}
.pttk-modal:not([open]){display:none}
.pttk-modal form{position:relative;padding:28px 24px 24px}
.pttk-modal h2{margin:0 0 4px;font-size:24px}
.pttk-close{position:absolute;top:8px;right:8px;width:44px;height:44px;border:0;background:transparent;font-size:30px;line-height:1;cursor:pointer;color:var(--g,#1F4D3A)}
.pttk-fld{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:15px;margin-bottom:14px}
.pttk-fld input{height:46px;border:1.5px solid #6B7A72;border-radius:6px;padding:0 12px;font-size:17px;width:100%;font-family:inherit}
.pttk-check{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px}
.pttk-check input{width:22px;height:22px;flex:none;margin-top:3px}
.pttk-small{font-size:14px;color:#4A5A52}

/* ===== 7. Календарь (месяц) ===== */
.pttk-cal{background:#fff;border:1px solid var(--bd);border-radius:12px;padding:16px;margin-bottom:32px}
.pttk-cal-bar{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.pttk .pttk-cal-title{flex:1;text-align:center;margin:0;font-size:22px;text-transform:capitalize}
.pttk-cal-nav,.pttk-cal-today{min-width:44px;min-height:44px;padding:0 12px;border:1.5px solid var(--g);background:#fff;color:var(--g);border-radius:8px;font-size:20px;cursor:pointer;font-family:inherit}
.pttk-cal-today{font-size:15px;font-weight:600}
.pttk-cal-nav[disabled]{opacity:.35;cursor:default}
.pttk-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.pttk-cdow{text-align:center;font-size:13px;font-weight:600;color:var(--mu);padding:4px 0;text-transform:uppercase}
.pttk-cday{min-height:96px;padding:6px;border:1px solid #E6E2D2;border-radius:8px;background:#fff;text-align:left;font:inherit;color:inherit;display:flex;flex-direction:column;gap:4px;overflow:hidden;min-width:0}
button.pttk-cday{cursor:pointer;width:100%}
.pttk-cday.is-other{background:#F6F4EC;color:#9AA39E}
.pttk-cday.is-today{background:#FFF6D6;border:2px solid var(--g)}   /* сегодняшний день */
.pttk-cday.is-sel{outline:3px solid var(--y);outline-offset:-3px}
.pttk-cnum{font-size:14px;font-weight:600;line-height:1;display:inline-block;min-width:24px;padding:4px 0;text-align:center}
.pttk-cday.is-today .pttk-cnum{background:var(--g);color:#fff;border-radius:99px}
.pttk-cevs{display:flex;flex-direction:column;gap:3px;min-width:0}
.pttk-pill{display:block;padding:1px 6px;border-radius:4px;font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pttk-more{font-size:12px;color:var(--mu)}
.pttk-cal-key{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;margin:16px 0 0;padding:0;font-size:15px}
.pttk-cal-key li{display:flex;align-items:center;gap:6px}
.pttk-dot{width:12px;height:12px;border-radius:50%;display:inline-block;flex:none}
.pttk-cal-day{margin-top:16px}
.pttk-cal-day h3{font-size:18px;margin:0 0 8px}
.pttk-cal-item{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid #E6E2D2}
.pttk-cal-item .pttk-dot{margin-top:8px}
.pttk-cal-item small{display:block;color:var(--mu)}

/* ===== 8. Списки календаря и легенда ===== */
.pttk-klist{margin:0 0 40px;border-radius:12px;overflow:hidden;border:1px solid var(--bd);background:#fff}
.pttk .pttk-klist-head{display:flex;align-items:center;gap:10px;margin:0;padding:14px 18px;background:var(--pttk-c,#1F4D3A);color:var(--pttk-t,#fff);font-size:22px}
.pttk .pttk-klist-head .pttk-svg{color:var(--pttk-t,#fff)}
.pttk-khead,.pttk-krow{display:grid;grid-template-columns:140px 1fr 100px;gap:16px;align-items:center;padding:12px 18px}
.pttk-khead{background:#F1EEE2;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--mu)}
.pttk-khead-in,.pttk-kpart{display:grid;grid-template-columns:1fr 130px 70px;gap:12px;align-items:center}
.pttk-krow{border-top:1px solid #E6E2D2}
.pttk-kdate{font-weight:700;white-space:nowrap}
.pttk-kparts{display:flex;flex-direction:column;gap:8px;min-width:0}
.pttk-ktext{min-width:0}
.pttk-ktitle{font-weight:700}
.pttk-ktitle a{text-decoration:none}
.pttk-hl{color:var(--pttk-c,#1F4D3A)}   /* выделенная цветом часть названия */
.pttk-kday{display:inline-block;font-size:13px;font-weight:600;color:var(--mu);margin-right:4px}
.pttk-ksub{display:block;font-size:15px;color:var(--mu)}
.pttk-kdiff,.pttk-klen{display:flex;align-items:center;gap:6px}
.pttk-kprice{text-align:right;font-weight:700;white-space:nowrap}
.pttk-kbanner{padding:12px 18px;background:#EEE9DA;border-top:1px solid #E6E2D2;color:var(--pttk-c,#1F4D3A);letter-spacing:.03em;text-transform:uppercase}
.pttk-kbanner .pttk-kdate{margin-right:8px;color:var(--ink)}
.pttk-kempty{margin:0;padding:14px 18px;color:var(--mu)}
.pttk-klist p:last-child{margin:0}
.pttk-klist>p{padding:0 18px 14px}
.pttk-ktoggle{min-height:44px;padding:8px 16px;border:1.5px solid var(--g);background:#fff;color:var(--g);border-radius:8px;font-weight:600;cursor:pointer;font-family:inherit;font-size:15px}
.pttk-klist.hide-past .is-past{display:none}   /* прошедшие скрыты, пока не нажата кнопка */
/* Цвета уровней: красный = трудная/длинная, оранжевый = средняя, зелёный = лёгкая/короткая */
.pttk-lv{display:inline-flex;align-items:center}
.pttk-lv-hard{color:#D6372B}
.pttk-lv-mid{color:#E8821A}
.pttk-lv-easy{color:#4F7A32}
.pttk-lv-neutral{color:#1F4D3A}
/* Легенда и блок «Zapisy» внизу страницы */
.pttk-kfoot{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;margin-top:8px}
.pttk-legend{background:#fff;border:1px solid var(--bd);border-radius:12px;padding:20px 22px}
.pttk .pttk-legend h3{margin:0 0 10px;font-size:18px;text-transform:uppercase;letter-spacing:.05em}
.pttk-legend-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.pttk-legend-h{margin:0 0 6px;font-weight:700;font-size:15px}
.pttk-legend ul{list-style:none;margin:0;padding:0;line-height:2;font-size:16px}
.pttk-legend li{display:flex;align-items:center;gap:8px}
.pttk-legend ul.pttk-contact{line-height:1.7}
.pttk-legend ul.pttk-contact li{display:block}

/* ===== 9. Relacje ===== */
.pttk-ribbon{display:inline-block;padding:6px 16px;background:var(--y,#F2B705);color:#17231D;font-weight:700;letter-spacing:.12em;text-transform:uppercase;font-size:14px;border-radius:4px}
.pttk-rhero{position:relative;display:flex;align-items:flex-end;width:100%;min-height:clamp(320px,52vw,520px);background:#163A2B;color:#fff;overflow:hidden}
.pttk-rhero-img{position:absolute;top:0;left:0;width:100%;height:100%;max-width:none;object-fit:cover}
.pttk-rhero::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(180deg,rgba(0,0,0,.2) 0%,rgba(10,25,18,.82) 100%)} /* затемнение фото */
.pttk-rhero-in{position:relative;z-index:1;width:100%;max-width:1160px;margin:0 auto;padding:40px 24px}
.pttk .pttk-rhero h1{color:#fff;margin:14px 0 8px;max-width:820px}
.pttk-rhero-meta{margin:0 0 10px;font-size:18px}
.pttk-rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.pttk .pttk-rcard{position:relative;display:block;height:280px;border-radius:12px;overflow:hidden;background:#163A2B;color:#fff;text-decoration:none}
.pttk-rcard-img{position:absolute;top:0;left:0;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .4s}
.pttk-rcard:hover .pttk-rcard-img{transform:scale(1.04)}
.pttk-rcard::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(180deg,rgba(0,0,0,.15) 30%,rgba(10,25,18,.85) 100%)}
.pttk-rcard .pttk-ribbon{position:absolute;top:14px;left:14px;z-index:1}
.pttk-rcard-txt{position:absolute;left:16px;right:16px;bottom:14px;z-index:1;display:flex;flex-direction:column;gap:2px}
.pttk-rcard-txt strong{font-size:20px;line-height:1.25}
.pttk-pager{margin-top:32px;display:flex;gap:8px;flex-wrap:wrap}
.pttk-pager .page-numbers{padding:8px 14px;min-height:44px;border:1.5px solid var(--g);border-radius:6px;text-decoration:none;display:inline-flex;align-items:center}
.pttk-pager .current{background:var(--g);color:#fff}
.pttk-rnav{margin-top:32px}
/* Текст и галерея внутри relacji */
.pttk-prose img{max-width:100%;height:auto;border-radius:6px}
.pttk-relacja-body .wp-block-gallery img,.pttk-relacja-body .gallery img{cursor:zoom-in}
.pttk-relacja-body .gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.pttk-relacja-body .gallery .gallery-item{width:auto!important;margin:0!important;float:none!important}
.pttk-relacja-body .gallery img{width:100%;height:180px;object-fit:cover;border:0!important}
/* Увеличение фото (lightbox) */
.pttk-lb{position:fixed;top:0;left:0;right:0;bottom:0;z-index:100000;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center}
.pttk-lb[hidden]{display:none}
.pttk-lb img{max-width:92vw;max-height:88vh;object-fit:contain;border-radius:4px}
.pttk-lb button{position:absolute;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.pttk-lb-close{top:14px;right:14px}
.pttk-lb-prev{left:12px;top:50%;margin-top:-24px}
.pttk-lb-next{right:12px;top:50%;margin-top:-24px}

/* ===== 10. Адаптивность ===== */
@media (max-width:1024px){
  .pttk-kfoot{grid-template-columns:1fr}
}
@media (max-width:860px){
  .pttk-layout{grid-template-columns:1fr}
  .pttk-side{position:static}
  .pttk-hero{min-height:360px}
  .pttk-hero-in{padding:48px 20px 64px}
}
@media (max-width:720px){
  /* Списки календаря превращаются в карточки: дата и цена в верхней строке */
  .pttk-khead{display:none}
  .pttk-krow{grid-template-columns:1fr auto;gap:6px 12px;padding:14px 16px}
  .pttk-krow .pttk-kdate{grid-column:1;grid-row:1}
  .pttk-krow .pttk-kprice{grid-column:2;grid-row:1}
  .pttk-krow .pttk-kparts{grid-column:1 / -1;grid-row:2}
  .pttk-kpart{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
  .pttk-ktext{flex:1 1 100%}
  .pttk-legend-cols{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .pttk{font-size:17px}
  .pttk-wrap{padding:24px 16px 48px}
  /* Календарь: вместо подписей – цветные точки, подробности по нажатию на день */
  .pttk-cal{padding:10px}
  .pttk-cday{min-height:54px;padding:4px 2px;align-items:center}
  .pttk-cevs{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:3px}
  .pttk-pill{width:9px;height:9px;padding:0;border-radius:50%;font-size:0;overflow:hidden}
  .pttk-more{display:none}
  .pttk .pttk-cal-title{font-size:18px}
  .pttk-chips{gap:8px}
  .pttk .pttk-rcard{height:230px}
}
@media (prefers-reduced-motion:reduce){
  .pttk-rcard-img{transition:none}
}

/* ===== 7b. Календарь: объявленные и ожидаемые поездки, кнопка «Czytaj szczegóły» ===== */
/* Ожидаемая поездка (ссылки ещё нет) – полупрозрачная, opacity 0.5. */
.pttk-pill.is-soon,.pttk-cal-item.is-soon{opacity:.5}
.pttk-dot-soon{background:#1F4D3A;opacity:.5}
.pttk-soon-note{font-style:italic}
.pttk-cday{position:relative}
.pttk-cday.has-ev{cursor:pointer}
.pttk-cday:focus{outline:3px solid var(--y);outline-offset:-3px}
/* Кнопка внутри ячейки дня: на компьютере появляется при наведении мыши. */
.pttk-cta{position:absolute;left:4px;right:4px;bottom:4px;display:flex;flex-direction:column;gap:4px;opacity:0;pointer-events:none;transition:opacity .15s}
.pttk .pttk-cta-btn{display:block;padding:7px 4px;border-radius:6px;background:var(--g);color:#fff;font-size:12px;font-weight:600;line-height:1.2;text-align:center;text-decoration:none}
.pttk .pttk-cta-btn:hover,.pttk .pttk-cta-btn:focus{background:#163A2B}
@media (hover:hover){
  .pttk-cday:hover .pttk-cta,.pttk-cday:focus-within .pttk-cta{opacity:1;pointer-events:auto}
}
/* Устройства без наведения (телефон, планшет): кнопка видна сразу. */
@media (hover:none){
  .pttk-cday.has-ev{min-height:120px}
  .pttk-cta{position:static;margin-top:auto;opacity:1;pointer-events:auto}
}
/* На маленьком экране ячейки крошечные – кнопка живёт в панели выбранного дня. */
@media (max-width:640px){
  .pttk-cta{display:none}
}
/* Кнопка в панели выбранного дня: всегда видна, крупная для пальца. */
.pttk-cal-item .pttk-btn{margin-top:8px;min-height:44px;padding:10px 18px;font-size:16px}
@media (prefers-reduced-motion:reduce){.pttk-cta{transition:none}}
@media (max-width:640px){
  .pttk-cday.has-ev{min-height:54px}
}

/* ===== 11. Версия 4.0: статусы, комментарий организатора, поиск, виджет, печать ===== */
/* Плашки статуса поездки */
.pttk-status{display:inline-block;padding:3px 10px;margin:0 0 10px 6px;border-radius:6px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;vertical-align:middle}
.pttk-status-cancelled{background:#FBE6E2;color:#7A1C10}
.pttk-status-full{background:#FFF1D6;color:#7A4B00}
.pttk-card .pttk-status{margin:0;align-self:flex-start}
.pttk-alert-red{border-left-color:#B3261E;background:#FBE6E2}
.pttk-alert-notice{border-left-color:#1F6FB5;background:#E6F0FA;margin:0 0 20px}
/* Поиск над карточками */
.pttk-searchwrap{margin:0 0 14px}
.pttk-search{width:100%;max-width:420px;height:46px;padding:0 14px;border:1.5px solid #6B7A72;border-radius:8px;font-size:16px;font-family:inherit}
/* Календарь: отменённые поездки, кнопки подписки и печати */
.pttk-pill.is-x{text-decoration:line-through;opacity:.6}
.pttk-cal-item.is-x strong{text-decoration:line-through}
.pttk-x-note{color:#B3261E;font-weight:600}
.pttk-ktools{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.pttk-ktools .pttk-btn{cursor:pointer;font-family:inherit;font-size:16px}
/* Виджет «Najbliższe wycieczki» */
.pttk-wlist{list-style:none;margin:0;padding:0}
.pttk-wlist li{padding:10px 0;border-bottom:1px solid #E6E2D2;display:flex;flex-direction:column;gap:4px}
.pttk-wlist li:last-child{border-bottom:0}
.pttk-wlist .pttk-badges{margin:0}
.pttk-wlist .pttk-tag{margin:0}
/* ПЕЧАТЬ: остаются только списки календаря (как плакат), всё лишнее скрыто */
@media print{
  .pttk-hero,.pttk-cal,.pttk-ktools,.pttk-ktoggle,.pttk-chips,.pttk-searchwrap,.pttk-modal{display:none!important}
  .pttk-klist{break-inside:avoid;page-break-inside:avoid;border:1px solid #999}
  .pttk-klist-head{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .pttk-lv{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .pttk{font-size:13px}
}

/* ===== 12. Версия 5.0: разделы главной страницы (одинаковы на странице и в шорткоде) ===== */
/* Раздел: заголовок слева, ссылка справа, содержимое ниже. */
.pttk-sec .pttk-wrap{padding-top:48px;padding-bottom:48px}
.pttk-sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:0 0 24px}
.pttk-sec-head .pttk-tag{margin:0 0 4px}
.pttk .pttk-sec-head h2{margin:0;font-size:clamp(26px,3.4vw,34px)}
.pttk-sec-link{font-weight:600;font-size:16px;white-space:nowrap}
/* Фоны разделов: jasne = светлая подложка, zielone = основной (фирменный) цвет */
.pttk-bg-jasne{background:#EFEBDD}
.pttk-bg-zielone{background:var(--g,#1F4D3A);color:#F6F4EC}
.pttk-bg-zielone .pttk-tag{color:#F2D98A}
.pttk-bg-zielone h2,.pttk-bg-zielone h3{color:#F6F4EC}
.pttk .pttk-bg-zielone a{color:#F2D98A}
/* Широкий раздел внутри узкой колонки блочной темы: убираем боковую прокрутку от 100vw */
@supports selector(:has(*)){
  body:has(.pttk-fullbleed){overflow-x:clip}
}
/* Карточка «Wkrótce» (поездка есть в календаре, страницы пока нет) */
.pttk-card.is-soon{opacity:.5}
.pttk-card.is-soon h3{margin:0}
/* Блок «Nowe wpisy»: одна большая запись слева, список справа */
.pttk-news{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;align-items:start}
.pttk-news-main,.pttk-news-item{background:#fff;border:1px solid var(--bd);border-radius:12px;overflow:hidden}
.pttk-news-img{display:block;height:240px;background:linear-gradient(135deg,#2E6B50,#1F4D3A)}
.pttk-news-img img{width:100%;height:100%;object-fit:cover;display:block;max-width:none}
.pttk-news-body{padding:22px}
.pttk-news-body .pttk-tag,.pttk-news-item .pttk-tag{margin:0 0 6px}
.pttk .pttk-news-main h3{font-size:26px;margin:0 0 10px}
.pttk-news-main h3 a,.pttk-news-item h3 a{color:inherit;text-decoration:none}
.pttk-news-body .pttk-muted{margin:0}
.pttk-news-list{display:flex;flex-direction:column;gap:12px}
.pttk-news-item{padding:16px 18px}
.pttk .pttk-news-item h3{font-size:18px;margin:0}
/* Карточка relacji (главная и /relacje/): фото с плашкой и числом фото + текст снизу */
.pttk .pttk-rc{display:flex;flex-direction:column;border:1px solid var(--bd);border-radius:12px;overflow:hidden;background:#fff;color:var(--ink);text-decoration:none}
.pttk-rc-img{position:relative;display:block;height:170px;background:linear-gradient(135deg,#2E6B50,#163A2B)}
.pttk-rc-img img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;max-width:none;transition:transform .4s}
.pttk-rc:hover .pttk-rc-img img{transform:scale(1.04)}
.pttk-rc-img::after{content:"";position:absolute;left:0;right:0;bottom:0;height:60%;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.62))}
.pttk-rc-img .pttk-ribbon{position:absolute;top:10px;left:10px;z-index:1;font-size:12px;padding:4px 10px}
.pttk-rc-count{position:absolute;left:12px;bottom:10px;z-index:1;color:#fff;font-size:13px}
.pttk-rc-body{display:flex;flex-direction:column;gap:4px;padding:14px 16px 16px}
.pttk-rc-sec{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--pttk-c,var(--g))}
.pttk-rc-body strong{font-size:18px;line-height:1.25}
.pttk-rc-sub{font-size:14px;color:var(--mu)}
/* На зелёной подложке карточки полупрозрачные, текст светлый */
.pttk-bg-zielone .pttk-rc{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:#fff}
.pttk-bg-zielone .pttk-rc-sec{color:#F2D98A}
.pttk-bg-zielone .pttk-rc-sub{color:rgba(255,255,255,.75)}
/* Таблица «Książeczka GOT PTTK» в relacji – как страница книжки */
.pttk-got{margin:0 0 32px}
.pttk .pttk-got h2{font-size:28px;margin:0 0 12px;padding-bottom:12px;border-bottom:2px solid var(--bd)}
.pttk-got-scroll{overflow-x:auto}
.pttk-got-table{width:100%;border-collapse:collapse;background:#F8F8F8;border:2px solid #DADADA;font-size:17px;line-height:1.4;margin:0}
.pttk-got-table th{background:#DDDDDD;text-align:center;padding:12px 10px;font-weight:700;border:2px solid #F8F8F8;color:#444}
.pttk-got-table td{padding:14px 10px;text-align:center;border:1px solid #E2E2E2;color:#444;vertical-align:middle}
.pttk-got-day + .pttk-got-day td{border-top:3px solid #CFCFCF}
.pttk-got-date{white-space:nowrap;font-weight:600}
.pttk-got-total td{background:#EDEDED;font-weight:700;border-top:3px solid #CFCFCF}
.pttk-got-total td:first-child{text-align:right}

/* ===== 13. Тёмная тема (класс pttk-dark на <body>; включается в настройках) ===== */
.pttk-dark .pttk{--ink:#E8EDE9;--mu:#A9B6AE;--bd:#2C3831;color:var(--ink)}
.pttk-dark .pttk h2,.pttk-dark .pttk h3{color:#EEF3EF}
.pttk-dark .pttk a{color:#9ED8B6}
.pttk-dark .pttk-bg-zielone a,.pttk-dark .pttk-bg-zielone .pttk-sec-link{color:#F2D98A}
.pttk-dark .pttk-box,.pttk-dark .pttk-card,.pttk-dark .pttk-cal,.pttk-dark .pttk-klist,.pttk-dark .pttk-legend,
.pttk-dark .pttk-news-main,.pttk-dark .pttk-news-item,.pttk-dark .pttk-rc,.pttk-dark .pttk-cday,.pttk-dark .pttk-modal{background:#161D19;border-color:var(--bd);color:var(--ink)}
.pttk-dark .pttk-bg-zielone .pttk-rc{background:rgba(255,255,255,.08)}
.pttk-dark .pttk-bg-jasne{background:#111A15}
.pttk-dark .pttk-btn,.pttk-dark .pttk-cal-nav,.pttk-dark .pttk-cal-today,.pttk-dark .pttk-ktoggle{background:transparent;color:#9ED8B6;border-color:#9ED8B6}
.pttk-dark .pttk-btn:hover,.pttk-dark .pttk-btn:focus{background:#9ED8B6;color:#0F1612}
.pttk-dark .pttk-chip{color:#9ED8B6;border-color:#9ED8B6}
.pttk-dark .pttk-chip.is-active{background:#9ED8B6;color:#0F1612}
.pttk-dark .pttk-cday.is-other{background:#111713;color:#5F6D65}
.pttk-dark .pttk-cday.is-today{background:#26331F;border-color:#9ED8B6}
.pttk-dark .pttk-cday.is-today .pttk-cnum{background:#9ED8B6;color:#0F1612}
.pttk-dark .pttk-khead,.pttk-dark .pttk-kbanner{background:#1B2520;color:var(--mu)}
.pttk-dark .pttk-krow,.pttk-dark .pttk-kbanner,.pttk-dark .pttk-facts div,.pttk-dark .pttk-cal-item,.pttk-dark .pttk-wlist li{border-color:var(--bd)}
.pttk-dark .pttk-kbanner .pttk-kdate{color:var(--ink)}
.pttk-dark .pttk-alert{background:#2A2610;color:#F2E3A2}
.pttk-dark .pttk-alert-red{background:#3A1814;color:#F3C1BA}
.pttk-dark .pttk-alert-notice{background:#14283A;color:#BFD9F2}
.pttk-dark .pttk-msg-ok{background:#16301F;color:#BFE5CC}
.pttk-dark .pttk-msg-err{background:#3A1814;color:#F3C1BA}
.pttk-dark .pttk-status-cancelled{background:#3A1814;color:#F3C1BA}
.pttk-dark .pttk-status-full{background:#3A2C10;color:#F2D79A}
.pttk-dark .pttk-fld input,.pttk-dark .pttk-search{background:#0F1612;color:var(--ink);border-color:#4B5A51}
.pttk-dark .pttk-close{color:#9ED8B6}
.pttk-dark .pttk-got-table{background:#161D19;border-color:#2C3831}
.pttk-dark .pttk-got-table th{background:#26322B;color:#E8EDE9;border-color:#161D19}
.pttk-dark .pttk-got-table td{color:#E8EDE9;border-color:#2C3831}
.pttk-dark .pttk-got-total td{background:#1E2923}
.pttk-dark .pttk-got-day + .pttk-got-day td{border-top-color:#41524A}

/* ===== 14. Адаптивность версии 5.0 ===== */
@media (max-width:860px){
  .pttk-news{grid-template-columns:1fr}
  .pttk-sec .pttk-wrap{padding-top:36px;padding-bottom:36px}
}
@media (max-width:640px){
  .pttk-sec-head{flex-direction:column;align-items:flex-start;gap:8px}
  .pttk-news-img{height:190px}
  .pttk .pttk-news-main h3{font-size:22px}
  /* Таблица GOT превращается в карточки: подписи столбцов берутся из data-label */
  .pttk-got-table,.pttk-got-table tbody,.pttk-got-table tfoot,.pttk-got-table tr,.pttk-got-table td{display:block;width:100%}
  .pttk-got-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .pttk-got-table td{text-align:left;padding:8px 14px;border:0}
  .pttk-got-table td::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#777}
  .pttk-got-table tr{border-bottom:1px solid #E2E2E2;padding:6px 0}
  .pttk-got-table .pttk-got-date{background:#DDDDDD;font-weight:700;color:#333}
  .pttk-got-total td:first-child{display:none}
  .pttk-got-total td{text-align:left;font-size:18px}
  .pttk-dark .pttk-got-table .pttk-got-date{background:#26322B;color:#E8EDE9}
  .pttk-dark .pttk-got-table tr{border-color:#2C3831}
  .pttk-dark .pttk-got-table td::before{color:#9CABA2}
}
@media print{
  .pttk-news,.pttk-rgrid{display:none}
}
