/* ═══════════════════════════════════════════════════════════════
   КТС Одеса — дизайн-система (етап 9).
   Підключається ПІСЛЯ style.css і перевизначає його.

   Логіка кольорів (брендбук Одеси):
   · Темно-синій #1A2650 — «каркас»: текст, шапка, підвал, один темний блок.
   · Білий і світло-сірий #EEF1F6 — фон; кольори дають фотографії міста.
   · Золотий #E7AA30 — єдиний колір дії: головні кнопки, фокус, дрібні позначки.
   · Червоний #CD2829 — лише у смужці прапора (червоний-білий-золотий).
   · Синій UNESCO #4272B6 — лише позначка UNESCO.
   Шрифти: Lora — заголовки, Mulish — текст та інтерфейс.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --brand-navy:   #1A2650;
  --brand-red:    #CD2829;
  --brand-gold:   #E7AA30;
  --brand-unesco: #4272B6;
  --brand-white:  #FFFFFF;

  --ktc-navy-deep: #121A3A;   /* підвал */
  --ktc-ink:   #161C33;       /* основний текст */
  --ktc-muted: #5D6479;       /* другорядний текст */
  --ktc-tint:  #EEF1F6;       /* світлий фон панелей */
  --ktc-tint-2:#E3E8F1;
  --ktc-line:  #DCE1EA;
  --ktc-text:  var(--ktc-ink);

  --ktc-radius: 16px;
  --ktc-radius-lg: 22px;
  --ktc-header-h: 79px;       /* 3px смужка + 76px рядок */
  --ktc-ease: cubic-bezier(.2, .7, .2, 1);

  /* змінні старого style.css */
  --main-dark: var(--brand-navy);
  --main-red: var(--brand-red);
  --main-yellow: var(--brand-gold);
  --main-blue: var(--brand-unesco);
  --main-bg: #FFFFFF;
  --main-black: var(--ktc-ink);
  --font-header: 'Lora', Georgia, serif;
}

/* ── База ── */
.section-bg, .bg-wrap { display: none !important; }
body { font-family: 'Mulish', system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ktc-ink); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .h2, .section-title { font-family: var(--font-header); font-weight: 400; color: var(--brand-navy); letter-spacing: -.01em; }
a { transition: color .2s; }
.container-fluid { max-width: 1320px; padding-left: 32px; padding-right: 32px; }
@media (max-width: 575px) { .container-fluid { padding-left: 20px; padding-right: 20px; } }
:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 2px; }
img { max-width: 100%; }

.ktc-flagline { display: block; height: 3px; background: linear-gradient(90deg, var(--brand-red) 0 33.333%, #fff 33.333% 66.666%, var(--brand-gold) 66.666% 100%); }
.ktc-flagline--short { width: 72px; height: 4px; border-radius: 2px; }

/* ── Шапка ── */
header.header.ktc-header { background: var(--brand-navy); box-shadow: none; transition: background-color .3s, box-shadow .3s; }
header.header.ktc-header::before { display: none; }
header.header.ktc-header .ktc-flagline { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
header.header.ktc-header .header-wrap { height: 76px; margin-top: 3px; padding: 0; gap: 20px; }
header.header.ktc-header .header-wrap a.logo, header.header.ktc-header .header-wrap a.logo img { height: 40px; }
header.header.ktc-header .header-wrap .header-menu-btn { margin-right: 4px; width: 32px; min-width: 32px; }

header.header.ktc-header .header-wrap .header-menu ul.menu.ktc-menu { gap: 4px; }
header.header.ktc-header .header-wrap .header-menu ul.menu.ktc-menu > li { position: relative; display: block; }
header.header.ktc-header .header-wrap .header-menu ul.menu.ktc-menu > li > a {
  position: relative; font-size: .97rem; font-weight: 600; padding: 12px 14px; white-space: nowrap; color: #fff; border: 0;
}
header.header.ktc-header .header-wrap .header-menu ul.menu.ktc-menu > li > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--brand-gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ktc-ease);
}
header.header.ktc-header .header-wrap .header-menu ul.menu.ktc-menu > li:hover > a::after,
header.header.ktc-header .header-wrap .header-menu ul.menu.ktc-menu > li:focus-within > a::after { transform: scaleX(1); }

header.header.ktc-header .ktc-menu .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; margin: 0; padding: 10px; list-style: none;
  background: #fff; border-radius: var(--ktc-radius); box-shadow: 0 24px 60px rgba(18,26,58,.22);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
header.header.ktc-header .ktc-menu .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
header.header.ktc-header .ktc-menu li:hover > .sub-menu,
header.header.ktc-header .ktc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
header.header.ktc-header .ktc-menu .sub-menu li { display: block; }
header.header.ktc-header .header-wrap .header-menu ul.menu.ktc-menu .sub-menu li a {
  display: block; color: var(--brand-navy); font-size: .97rem; font-weight: 600; padding: 11px 14px; border-radius: 10px;
}
header.header.ktc-header .header-wrap .header-menu ul.menu.ktc-menu .sub-menu li a:hover { background: var(--ktc-tint); }

header.header.ktc-header .header-wrap .search-menu { margin: 0 0 0 auto; }
header.header.ktc-header .header-wrap .search-menu .search-form-btn { width: 40px; min-width: 40px; height: 40px; background-size: 50% 50%; }
header.header.ktc-header .header-wrap .search-menu .search-form-btn:hover { background-color: rgba(255,255,255,.12); }
header.header.ktc-header .header-wrap .login-menu a.login-btn {
  font-size: .92rem; font-weight: 600; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: 10px 18px;
}
header.header.ktc-header .header-wrap .login-menu a.login-btn:hover { background: #fff; color: var(--brand-navy); }
header.header.ktc-header .header-wrap .add-event-menu { margin: 0; }
header.header.ktc-header .header-wrap .add-event-menu .add-event-btn { font-size: .92rem; font-weight: 600; }
header.header.ktc-header .header-wrap .language-menu { margin: 0; }
header.header.ktc-header .header-wrap .language-menu ul.menu li a { font-size: .92rem; font-weight: 700; letter-spacing: .02em; }

@media (min-width: 1200px) { header.header.ktc-header .header-wrap .header-menu-btn { display: none; } }
@media (max-width: 1199px) { header.header.ktc-header .header-wrap .header-menu { display: none; } }
@media (max-width: 1399px) { header.header.ktc-header .header-wrap .add-event-menu { display: none; } }
@media (max-width: 575px) { header.header.ktc-header .header-wrap .login-menu { display: none; } header.header.ktc-header .header-wrap { gap: 12px; } }

/* Головна: шапка прозора поверх фото, поки сторінку не прокрутили */
.ktc-is-home main { margin-top: calc(var(--ktc-header-h) * -1); }
.ktc-is-home header.header.ktc-header:not(.is-scrolled):not(.side-open):not(.search-open) { background: transparent; }
header.header.ktc-header.is-scrolled { box-shadow: 0 8px 30px rgba(18,26,58,.18); }

/* ── Мобільне меню ── */
.mobile-menu { top: var(--ktc-header-h); height: calc(100% - var(--ktc-header-h)); }
.mobile-menu .ktc-side-menu { gap: 2px; }
.mobile-menu .ktc-side-menu > .menu-item { display: block; width: 100%; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu .ktc-side-menu details summary {
  list-style: none; cursor: pointer; color: #fff; font-family: var(--font-header); font-size: 1.5rem; padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu .ktc-side-menu > .menu-item > a { font-family: var(--font-header); font-size: 1.5rem; padding: 14px 0; display: block; }
.mobile-menu .ktc-side-menu details summary::-webkit-details-marker { display: none; }
.mobile-menu .ktc-side-menu details summary::after { content: '+'; font-family: 'Mulish', sans-serif; font-weight: 300; font-size: 1.6rem; color: var(--brand-gold); }
.mobile-menu .ktc-side-menu details[open] summary::after { content: '–'; }
.mobile-menu .ktc-side-menu details ul { list-style: none; padding: 0 0 16px; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu .ktc-side-menu details ul a { font-size: 1.05rem; font-weight: 600; padding: 8px 0; display: block; opacity: .85; }

/* ── Типографіка й секції ── */
.ktc-section { padding: clamp(72px, 8vw, 120px) 0; }
.ktc-section--tint { background: var(--ktc-tint); }
.ktc-h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; margin: 0; letter-spacing: -.015em; }
.ktc-h3 { font-size: 1.5rem; margin: 32px 0 12px; }
.ktc-eyebrow { font-size: .92rem; font-weight: 600; color: var(--ktc-muted); margin: 0 0 14px; }
.ktc-eyebrow a { color: inherit; }
.ktc-head, .ktc-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.ktc-head__side { display: flex; align-items: center; gap: 24px; }
.ktc-more, .ktc-link {
  color: var(--brand-navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--brand-gold);
  text-decoration-thickness: 2px; text-underline-offset: 6px; white-space: nowrap; border: 0;
}
.ktc-more:hover, .ktc-link:hover { color: var(--brand-navy); text-decoration-color: var(--brand-navy); }

/* Кнопки */
.ktc-btn {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; gap: 8px;
  padding: 14px 26px; border: 0; border-radius: 999px; background: var(--brand-navy); color: #fff;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.ktc-btn:hover { background: #2A3A73; color: #fff; }
.ktc-btn--gold, .ktc-btn--light { background: var(--brand-gold); color: var(--brand-navy); }
.ktc-btn--gold:hover, .ktc-btn--light:hover { background: #F2BD52; color: var(--brand-navy); }
.ktc-btn--sm { padding: 9px 18px; font-size: .9rem; }

/* ── Банер головної ── */
.ktc-hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; color: #fff;
  min-height: max(640px, min(100svh, 920px)); background: #0F1530;
}
.ktc-hero__media { position: absolute; inset: 0; animation: ktc-settle 2.6s var(--ktc-ease) both; }
.ktc-hero__media img, .ktc-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ktc-hero__slide { opacity: 0; transition: opacity 1.4s ease; }
.ktc-hero__slide.is-active { opacity: 1; }
.ktc-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,15,35,.55) 0%, rgba(10,15,35,0) 24%),
    linear-gradient(90deg, rgba(10,15,35,.62) 0%, rgba(10,15,35,.30) 45%, rgba(10,15,35,0) 70%),
    linear-gradient(180deg, rgba(10,15,35,0) 35%, rgba(10,15,35,.72) 100%);
}
.ktc-hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 140px; padding-bottom: clamp(48px, 7vw, 88px); }
.ktc-hero__tagline { margin: 0 0 18px; font-size: 1rem; font-weight: 600; opacity: .9; }
.ktc-hero__title {
  margin: 0 0 36px; max-width: 16ch; color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.9rem); line-height: 1.02; letter-spacing: -.022em;
  text-wrap: balance; text-shadow: 0 2px 24px rgba(10,15,35,.35); animation: ktc-rise 1s .25s var(--ktc-ease) both;
}
.ktc-hero__search {
  display: flex; align-items: center; gap: 8px; max-width: 640px; height: 64px; padding: 6px 6px 6px 26px;
  background: #fff; border-radius: 999px; box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.ktc-hero__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ktc-ink); }
.ktc-hero__search input::placeholder { color: #8A90A2; }
.ktc-hero__search button {
  height: 100%; padding: 0 30px; border: 0; border-radius: 999px; background: var(--brand-gold); color: var(--brand-navy);
  font-weight: 800; font-size: 1rem; cursor: pointer; transition: background .2s;
}
.ktc-hero__search button:hover { background: #F2BD52; }
.ktc-hero__quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ktc-hero__quick a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .92rem; font-weight: 600;
  text-decoration: none; backdrop-filter: blur(6px); background: rgba(255,255,255,.08); transition: background .2s, color .2s;
}
.ktc-hero__quick a:hover { background: #fff; color: var(--brand-navy); }
@keyframes ktc-settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes ktc-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) {
  .ktc-hero__search { height: 56px; padding-left: 20px; }
  .ktc-hero__search button { padding: 0 20px; }
}

/* ── Три напрями ── */
.ktc-doors { padding: 24px 0 0; }
.ktc-doors__grid { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, minmax(380px, auto)); gap: 24px; }
.ktc-door { position: relative; overflow: hidden; display: flex; align-items: flex-end; border-radius: var(--ktc-radius-lg); background: var(--brand-navy); color: #fff; isolation: isolate; }
.ktc-door:first-child { grid-row: span 2; }
.ktc-door__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ktc-ease); }
.ktc-door::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,15,35,0) 15%, rgba(10,15,35,.5) 50%, rgba(10,15,35,.88) 100%); }
.ktc-door--tourism .ktc-door__img { filter: saturate(.8); }
.ktc-door:hover .ktc-door__img { transform: scale(1.035); }
.ktc-door__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.ktc-door__title { margin: 0; color: #fff; font-size: clamp(1.9rem, 2.8vw, 2.75rem); line-height: 1.05; letter-spacing: -.015em; }
.ktc-door:first-child .ktc-door__title { font-size: clamp(2.2rem, 3.8vw, 3.6rem); }
.ktc-door__title a { color: inherit; text-decoration: none; }
.ktc-door__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ktc-door__text { margin: 0; max-width: 42ch; font-size: 1.02rem; opacity: .88; }
.ktc-door__badge { align-self: flex-start; margin: 0; padding: 4px 10px; border-radius: 6px; background: var(--brand-unesco); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .06em; }
.ktc-door__items { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.ktc-door__items a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff;
  font-size: .88rem; font-weight: 600; text-decoration: none; backdrop-filter: blur(8px); transition: background .2s, color .2s;
}
.ktc-door__items a:hover { background: #fff; color: var(--brand-navy); }
@media (max-width: 991px) {
  .ktc-doors__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .ktc-door { min-height: 400px; }
  .ktc-door:first-child { grid-row: auto; min-height: 460px; }
}

/* ── Стрічка подій ── */
.ktc-railnav { display: flex; gap: 8px; }
.ktc-railnav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ktc-line); background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s;
}
.ktc-railnav button:hover { background: var(--brand-navy); border-color: var(--brand-navy); }
.ktc-railnav svg { width: 20px; height: 20px; fill: none; stroke: var(--brand-navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ktc-railnav button:hover svg { stroke: #fff; }
.ktc-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3.25); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.ktc-rail::-webkit-scrollbar { display: none; }
.ktc-ecard { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; color: var(--ktc-ink); text-decoration: none; min-width: 0; }
.ktc-ecard__img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--ktc-radius); overflow: hidden; background: var(--ktc-tint); margin-bottom: 8px; }
.ktc-ecard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ktc-ease); }
.ktc-ecard:hover .ktc-ecard__img img { transform: scale(1.04); }
.ktc-ecard__date {
  position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; align-items: center; min-width: 64px;
  padding: 8px 10px 7px; border-radius: 12px; background: #fff; color: var(--brand-navy); line-height: 1;
}
.ktc-ecard__date b { font-family: var(--font-header); font-weight: 400; font-size: 1.75rem; }
.ktc-ecard__date span { margin-top: 4px; font-size: .74rem; font-weight: 700; color: var(--ktc-muted); }
.ktc-ecard__name {
  font-family: var(--font-header); font-size: 1.32rem; line-height: 1.2; color: var(--brand-navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ktc-ecard:hover .ktc-ecard__name { text-decoration: underline; text-decoration-color: var(--brand-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ktc-ecard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ktc-muted); font-size: .92rem; }
.ktc-ecard__price { font-size: .92rem; font-weight: 700; color: var(--brand-navy); }
@media (max-width: 991px) { .ktc-rail { grid-auto-columns: calc((100% - 24px) / 2.2); } }
@media (max-width: 575px) {
  .ktc-rail { grid-auto-columns: 80%; gap: 16px; }
  .ktc-railnav { display: none; }
}

/* ── Новини ── */
.ktc-section--news { padding-top: 0; }
.ktc-news { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.ktc-news__main { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--brand-navy); }
.ktc-news__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--ktc-radius-lg); overflow: hidden; background: var(--ktc-tint); margin-bottom: 10px; }
.ktc-news__img img, .ktc-news__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ktc-ease); }
.ktc-news__main:hover .ktc-news__img img, .ktc-news__row:hover .ktc-news__thumb img { transform: scale(1.04); }
.ktc-news__date { font-size: .9rem; color: var(--ktc-muted); }
.ktc-news__title { font-family: var(--font-header); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.15; max-width: 28ch; }
.ktc-news__list { display: flex; flex-direction: column; }
.ktc-news__row { display: grid; grid-template-columns: 148px 1fr; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--ktc-line); text-decoration: none; color: var(--brand-navy); }
.ktc-news__row:first-child { padding-top: 0; }
.ktc-news__thumb { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--ktc-tint); }
.ktc-news__rowtext { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ktc-news__rowtitle { font-family: var(--font-header); font-size: 1.22rem; line-height: 1.25; }
.ktc-news__main:hover .ktc-news__title, .ktc-news__row:hover .ktc-news__rowtitle { text-decoration: underline; text-decoration-color: var(--brand-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 991px) { .ktc-news { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 575px) { .ktc-news__row { grid-template-columns: 112px 1fr; gap: 16px; } }

/* ── Безпека та навігація (єдиний темний блок) ── */
.ktc-safety { background: var(--brand-navy); color: #fff; padding: clamp(72px, 8vw, 112px) 0; }
.ktc-safety__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ktc-safety .ktc-h2 { color: #fff; margin-bottom: 18px; }
.ktc-safety__intro p { margin: 0 0 32px; max-width: 44ch; font-size: 1.08rem; opacity: .82; }
.ktc-safety__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ktc-safety__links a, .ktc-safety__links span {
  display: flex; flex-direction: column; gap: 36px; height: 100%; padding: 26px; border-radius: var(--ktc-radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 1.12rem; font-weight: 700;
  text-decoration: none; transition: background .2s, border-color .2s;
}
.ktc-safety__links a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.ktc-safety__links svg { width: 34px; height: 34px; fill: none; stroke: var(--brand-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 991px) { .ktc-safety__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ktc-safety__links { grid-template-columns: 1fr; } .ktc-safety__links a, .ktc-safety__links span { flex-direction: row; align-items: center; gap: 16px; } }

/* ── Обкладинка сторінки розділу ── */
.ktc-cover { position: relative; display: flex; align-items: flex-end; min-height: clamp(420px, 56vh, 600px); overflow: hidden; color: #fff; background: var(--brand-navy); isolation: isolate; }
.ktc-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ktc-cover::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,15,35,.15) 20%, rgba(10,15,35,.8) 100%); }
.ktc-cover--plain { min-height: 340px; }
.ktc-cover__inner { padding-top: 96px; padding-bottom: clamp(40px, 6vw, 72px); }
.ktc-cover__crumb { margin: 0 0 16px; font-size: .95rem; font-weight: 600; }
.ktc-cover__crumb a { color: #fff; opacity: .85; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); }
.ktc-cover__title { margin: 0 0 16px; color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.02em; max-width: 18ch; text-wrap: balance; }
.ktc-cover__lead { margin: 0; max-width: 48ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); opacity: .9; }

/* Перелік підрозділів */
.ktc-section--index { padding-top: clamp(40px, 5vw, 64px); }
.ktc-index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ktc-line); }
.ktc-index__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--ktc-line); color: var(--brand-navy); text-decoration: none; }
.ktc-index__title { font-family: var(--font-header); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; transition: transform .3s var(--ktc-ease); }
.ktc-index__icon { flex: none; width: 52px; height: 52px; padding: 13px; border-radius: 50%; border: 1px solid var(--ktc-line); fill: none; stroke: var(--brand-navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: background .25s, stroke .25s, border-color .25s; }
a.ktc-index__row:hover { color: var(--brand-navy); }
a.ktc-index__row:hover .ktc-index__title { transform: translateX(10px); }
a.ktc-index__row:hover .ktc-index__icon { background: var(--brand-gold); border-color: var(--brand-gold); }
.ktc-index__row.is-soon .ktc-index__title { color: #9AA0B0; }
.ktc-index__soon { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--ktc-tint); color: var(--ktc-muted); font-size: .85rem; font-weight: 700; }

/* ── Заголовок внутрішніх сторінок (заклади, календар, маршрути тощо) ── */
.ktc-pagehead { position: relative; background: #fff; color: var(--brand-navy); padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.ktc-pagehead::after { display: none; }
.ktc-pagehead h1 { margin: 0 0 16px; color: var(--brand-navy); font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.03; letter-spacing: -.02em; max-width: 20ch; text-wrap: balance; }
.ktc-pagehead__lead { margin: 0; max-width: 60ch; color: var(--ktc-muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); opacity: 1; }
.ktc-pagehead + .ktc-section { padding-top: clamp(16px, 2vw, 24px); }

/* ── Сітки й загальні картки ── */
.ktc-grid { display: grid; gap: 24px; }
.ktc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ktc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ktc-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ktc-card { display: flex; flex-direction: column; border-radius: var(--ktc-radius); text-decoration: none; color: var(--brand-navy); }
.ktc-card--rubric { position: relative; padding: 28px; gap: 12px; background: var(--ktc-tint); border-radius: var(--ktc-radius-lg); transition: background .2s; }
.ktc-card--rubric:hover { background: var(--ktc-tint-2); color: var(--brand-navy); }
.ktc-card--rubric.is-soon { opacity: .6; }
.ktc-card--rubric.is-soon:hover { background: var(--ktc-tint); }
.ktc-card--plain { padding: 32px; border: 1px solid var(--ktc-line); border-radius: var(--ktc-radius-lg); }
.ktc-card__num { font-weight: 700; color: var(--ktc-muted); font-size: .95rem; }
.ktc-card__title { font-family: var(--font-header); font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin: 0; }
.ktc-card__title--sm { font-size: 1.3rem; }
.ktc-card__text { color: var(--ktc-muted); margin: 0; flex: 1; }
.ktc-card__more { font-weight: 700; margin-top: auto; color: var(--brand-navy); text-decoration: underline; text-decoration-color: var(--brand-gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ktc-badge { align-self: flex-start; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ktc-muted); }

.ktc-card--news { gap: 12px; }
.ktc-card__img { display: block; aspect-ratio: 4 / 3; border-radius: var(--ktc-radius); overflow: hidden; background: var(--ktc-tint); }
.ktc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ktc-ease); }
.ktc-card--news:hover .ktc-card__img img { transform: scale(1.04); }
.ktc-card__body { display: flex; flex-direction: column; gap: 6px; }
.ktc-card__date { font-size: .9rem; color: var(--ktc-muted); }

.ktc-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ktc-list li { padding-left: 22px; position: relative; }
.ktc-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gold); }

/* ── Список подій (календар) ── */
.ktc-events { display: grid; gap: 12px; }
.ktc-event {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 24px; padding: 16px 24px 16px 16px;
  background: #fff; border: 1px solid var(--ktc-line); border-radius: var(--ktc-radius); text-decoration: none; color: var(--brand-navy);
  transition: border-color .2s, box-shadow .2s;
}
.ktc-event:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.ktc-event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; min-width: 0; padding: 12px 4px; border-radius: 12px; background: var(--ktc-tint); }
.ktc-event__date b { font-family: var(--font-header); font-size: 1.9rem; font-weight: 400; }
.ktc-event__date i { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ktc-muted); margin-top: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ktc-event__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ktc-event__name { font-family: var(--font-header); font-size: 1.25rem; line-height: 1.25; }
.ktc-event__place { color: var(--ktc-muted); font-size: .92rem; }
.ktc-event__price { font-weight: 700; white-space: nowrap; color: var(--brand-navy); }

/* ── Підсумкова частина: FAQ, передплата, підвал ── */
section.faq { background: #fff; padding: clamp(72px, 8vw, 112px) 0; }
section.faq .faq-text h2.section-title { font-weight: 400; color: var(--brand-navy); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1; }

section.subscribe.ktc-subscribe { background: var(--ktc-navy-deep); background-image: none; padding: clamp(56px, 6vw, 80px) 0 48px; color: #fff; }
section.subscribe .subscribe-wrap { gap: 48px; align-items: flex-end; }
section.subscribe .subscribe-wrap h2.section-title { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; margin: 0 0 10px; }
.ktc-subscribe__text p { margin: 0; opacity: .7; max-width: 46ch; }
section.subscribe .subscribe-wrap form { width: min(46%, 560px); }
section.subscribe .subscribe-wrap form .subscribe-form { gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
section.subscribe .subscribe-wrap form .subscribe-form input[type="email"] { background: transparent; color: #fff; font-size: 1rem; padding: 12px 18px; border-radius: 999px; }
section.subscribe .subscribe-wrap form .subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,.55); }
section.subscribe .subscribe-wrap form .subscribe-form input[type="submit"] { background: var(--brand-gold); color: var(--brand-navy); font-size: .98rem; font-weight: 800; text-transform: none; border-radius: 999px; padding: 14px 26px; cursor: pointer; }
section.subscribe .subscribe-wrap form .subscribe-form input[type="submit"]:hover { background: #F2BD52; }
@media (max-width: 991px) {
  section.subscribe .subscribe-wrap { flex-direction: column; align-items: stretch; gap: 24px; }
  section.subscribe .subscribe-wrap form { width: 100%; }
}

footer.footer.ktc-footer { background: var(--ktc-navy-deep); background-image: none; color: #fff; padding: 0 0 32px; margin: 0; border-radius: 0; }
footer.footer.ktc-footer::before { display: none; }
.ktc-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; border-top: 1px solid rgba(255,255,255,.12); }
.ktc-footer__brand .logo img { height: 44px; width: auto; }
.ktc-footer__brand p { margin: 20px 0 0; max-width: 30ch; opacity: .7; }
.ktc-footer__col h3 { margin: 0 0 16px; font-family: 'Mulish', sans-serif; font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.55); letter-spacing: 0; }
.ktc-footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ktc-footer__col a { color: #fff; text-decoration: none; opacity: .9; }
.ktc-footer__col a:hover { color: #fff; opacity: 1; text-decoration: underline; text-decoration-color: var(--brand-gold); text-underline-offset: 4px; }
.ktc-footer__col address { font-style: normal; display: grid; gap: 10px; margin: 0 0 20px; opacity: .8; }
.ktc-footer__social { display: flex !important; flex-wrap: wrap; gap: 10px 18px !important; }
.ktc-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; opacity: .65; }
@media (max-width: 991px) { .ktc-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .ktc-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Адаптивність загальних сіток ── */
@media (max-width: 1199px) { .ktc-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991px) { .ktc-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .ktc-grid--2, .ktc-grid--4 { grid-template-columns: 1fr; }
  .ktc-head, .ktc-section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ktc-head__side { width: 100%; justify-content: space-between; }
  .ktc-event { grid-template-columns: 64px 1fr; gap: 16px; padding: 14px; }
  .ktc-event__price { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ktc-hero__media, .ktc-hero__title { animation: none; }
  .ktc-hero__slide, .ktc-door__img, .ktc-ecard__img img, .ktc-news__img img, .ktc-card__img img { transition: none; }
}

/* ═══ Компоненти каталогів (етапи 2–6) ═══ */
.ktc-btn { display: inline-block; align-self: flex-start; padding: 11px 22px; border: 0; border-radius: var(--ktc-radius); background: var(--brand-navy); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s; }
.ktc-btn:hover { background: var(--brand-unesco); color: #fff; }
.ktc-h3 { font-size: 1.4rem; margin: 28px 0 12px; }
.ktc-empty { color: var(--ktc-muted); padding: 24px 0; }
.ktc-pager { margin-top: 32px; display: flex; justify-content: center; }
.ktc-prose { line-height: 1.7; }
.ktc-prose img { max-width: 100%; height: auto; border-radius: var(--ktc-radius); }

.ktc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ktc-tab { padding: 8px 18px; border-radius: 999px; background: var(--ktc-tint); color: var(--brand-navy); text-decoration: none; font-weight: 600; font-size: .95rem; border: 2px solid transparent; }
.ktc-tab span { color: var(--ktc-muted); font-weight: 500; margin-left: 4px; }
.ktc-tab:hover { border-color: var(--brand-gold); color: var(--brand-navy); }
.ktc-tab.is-active { background: var(--brand-navy); color: #fff; }
.ktc-tab.is-active span { color: var(--brand-gold); }

.ktc-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 32px; }
.ktc-filters select, .ktc-filters input[type=search] { height: 44px; padding: 0 14px; border: 1px solid #cfd6e6; border-radius: var(--ktc-radius); background: #fff; color: var(--brand-navy); font: inherit; min-width: 200px; }
.ktc-filters input[type=search] { flex: 1 1 240px; }

.ktc-inst { display: flex; flex-direction: column; background: #fff; border-radius: var(--ktc-radius); overflow: hidden; text-decoration: none; color: var(--brand-navy); border: 1px solid #e3e8f2; transition: box-shadow .2s, transform .2s; }
.ktc-inst:hover { box-shadow: 0 10px 26px rgba(26,38,80,.14); transform: translateY(-2px); color: var(--brand-navy); }
.ktc-inst__img { display: block; aspect-ratio: 16 / 10; background: var(--ktc-tint); border-bottom: 4px solid var(--brand-gold); }
.ktc-inst__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ktc-inst__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--ktc-tint), #fff); }
.ktc-inst__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.ktc-inst__type { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-red); }
.ktc-inst__name { font-family: var(--font-header); font-size: 1.25rem; line-height: 1.25; }
.ktc-inst__addr { color: var(--ktc-muted); font-size: .92rem; }
.ktc-inst__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ktc-inst__tags i { font-style: normal; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--ktc-tint); color: var(--brand-unesco); }

.ktc-inst-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.ktc-inst-page__main > .ktc-h2 { margin: 40px 0 16px; }
.ktc-inst-page__main > .ktc-h2:first-child, .ktc-inst-page__cover + .ktc-h2 { margin-top: 28px; }
.ktc-inst-page__cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--ktc-radius); display: block; }
.ktc-inst-page__side { display: grid; gap: 20px; position: sticky; top: 24px; }
.ktc-panel { background: var(--ktc-tint); border-radius: var(--ktc-radius); padding: 24px; border-top: 4px solid var(--brand-gold); display: flex; flex-direction: column; gap: 14px; }
.ktc-panel__title { font-family: var(--font-header); font-size: 1.3rem; margin: 0; }
.ktc-dl { margin: 0; display: grid; gap: 4px; }
.ktc-dl dt { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ktc-muted); margin-top: 10px; }
.ktc-dl dt:first-child { margin-top: 0; }
.ktc-dl dd { margin: 0; }
.ktc-dl a { color: var(--brand-unesco); }
.ktc-map { width: 100%; height: 220px; border: 0; border-radius: var(--ktc-radius); }
.ktc-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ktc-checks li { padding-left: 28px; position: relative; }
.ktc-checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-unesco); color: #fff; font-size: .75rem; text-align: center; line-height: 20px; }
.ktc-note { margin: 0; color: var(--ktc-muted); font-size: .92rem; }
.ktc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ktc-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ktc-radius); }

@media (max-width: 991px) {
  .ktc-inst-page { grid-template-columns: 1fr; gap: 32px; }
  .ktc-inst-page__side { position: static; }
}
@media (max-width: 575px) {
  .ktc-filters select, .ktc-filters input[type=search] { min-width: 0; width: 100%; flex: 1 1 100%; }
}

/* ===== Етап 3: календар подій ===== */
.ktc-filters--cal { align-items: flex-end; padding: 20px; background: var(--ktc-tint); border-radius: var(--ktc-radius); border-top: 4px solid var(--brand-gold); }
.ktc-field { display: flex; flex-direction: column; gap: 6px; }
.ktc-field > span { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ktc-muted); }
.ktc-field--grow { flex: 1 1 200px; }
.ktc-filters--cal input[type=date] { height: 44px; padding: 0 12px; border: 1px solid #cfd6e6; border-radius: var(--ktc-radius); background: #fff; color: var(--brand-navy); font: inherit; }
.ktc-filters--cal select { max-width: 280px; }
.ktc-count { color: var(--ktc-muted); margin: 0 0 20px; }
.ktc-day { margin-bottom: 32px; }
.ktc-day__title { font-family: var(--font-header); font-size: 1.5rem; margin: 0 0 12px; text-transform: capitalize; }
.ktc-event__cat { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-red); }
@media (max-width: 575px) { .ktc-filters--cal select { max-width: none; } .ktc-field { width: 100%; } }
.ktc-filters--cal .ktc-field input[type=search] { flex: 0 0 auto; height: 44px; width: 100%; min-width: 0; }

/* ===== Етап 4: маршрути та огляди ===== */
.ktc-check { display: inline-flex; align-items: center; gap: 8px; height: 44px; cursor: pointer; }
.ktc-pagehead__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.ktc-pagehead__tags span { font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; }
.ktc-prose--lead { font-size: 1.08rem; margin-top: 24px; }
.ktc-stops { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.ktc-stop { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: start; padding: 18px; background: #fff; border: 1px solid #e3e8f2; border-left: 4px solid var(--brand-gold); border-radius: var(--ktc-radius); }
.ktc-stop__n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-red); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ktc-stop__time { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ktc-muted); }
.ktc-stop__title { font-family: var(--font-header); font-size: 1.25rem; margin: 2px 0 6px; }
.ktc-stop__body p { margin: 0 0 8px; }
.ktc-stop__img { width: 140px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ktc-radius); }
.ktc-routemap { width: 100%; height: 360px; border-radius: var(--ktc-radius); z-index: 0; }
.ktc-pin span { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-red); color: #fff; font-weight: 700; font-size: .85rem; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.ktc-alert { padding: 12px 16px; border-radius: var(--ktc-radius); margin-bottom: 16px; }
.ktc-alert--ok { background: #e6f4ea; color: #1e5e2f; }
.ktc-alert--err { background: #fdecea; color: #8a1f1f; }
.ktc-error { color: var(--brand-red); font-size: .9rem; }
.ktc-review-form { display: grid; gap: 10px; margin-bottom: 28px; }
.ktc-review-form label { font-weight: 600; }
.ktc-review-form textarea { padding: 12px 14px; border: 1px solid #cfd6e6; border-radius: var(--ktc-radius); font: inherit; color: var(--brand-navy); resize: vertical; }
.ktc-review { padding: 18px 0; border-bottom: 1px solid #e3e8f2; }
.ktc-review p { margin: 6px 0 0; }
.ktc-review__head { display: flex; gap: 12px; align-items: baseline; }
.ktc-review__head span { color: var(--ktc-muted); font-size: .85rem; }
.ktc-review--reply { margin: 12px 0 0 24px; padding: 12px 16px; background: var(--ktc-tint); border: 0; border-radius: var(--ktc-radius); }
@media (max-width: 575px) { .ktc-stop { grid-template-columns: 34px 1fr; } .ktc-stop__img { grid-column: 2; width: 100%; } }
.ktc-review-form .ktc-btn { align-self: flex-start; }

/* ===== Сторінки організацій (Туристичний офіс, Парки Одеси) ===== */
.ktc-h2--gap { margin-top: 40px; }
.ktc-list--lg li { font-size: 1.05rem; }
.ktc-map--lg { height: 380px; }
.ktc-inst-page__main > .ktc-h2:first-child { margin-top: 0; }

/* ===== Етап 5: памʼятки та карта спадщини ===== */
.ktc-bigmap { width: 100%; height: 420px; border-radius: var(--ktc-radius); margin-bottom: 32px; z-index: 0; border-bottom: 4px solid var(--brand-gold); }
.ktc-bigmap--tall { height: 640px; }
.ktc-layers { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; padding: 14px 18px; background: var(--ktc-tint); border-radius: var(--ktc-radius); }
.ktc-layers label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.ktc-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.ktc-fig { margin: 0; }
.ktc-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ktc-radius); display: block; }
.ktc-fig figcaption { font-size: .85rem; color: var(--ktc-muted); margin-top: 6px; }
@media (max-width: 767px) { .ktc-bigmap { height: 320px; } .ktc-bigmap--tall { height: 480px; } }

/* ===== Етап 6: безпека та навігація ===== */
.ktc-btn--sm { padding: 8px 16px; font-size: .9rem; margin-left: auto; }
.ktc-alert--warn { background: #fff6e0; color: #6b4b00; border-left: 4px solid var(--brand-gold); }
#ktc-safety-layers { align-items: center; }
.ktc-nearest { margin-top: 24px; display: grid; gap: 10px; }
.ktc-nearest__row { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; background: #fff; border: 1px solid #e3e8f2; border-radius: var(--ktc-radius); }
.ktc-nearest__row small { color: var(--ktc-muted); }
.ktc-nearest__row a { color: var(--brand-unesco); font-weight: 600; }
.ktc-nearest__dist { font-weight: 700; white-space: nowrap; }
.ktc-navgrid { margin-top: 24px; }
@media (max-width: 575px) { .ktc-nearest__row { grid-template-columns: 14px 1fr; } .ktc-nearest__dist, .ktc-nearest__row a { grid-column: 2; } .ktc-btn--sm { margin-left: 0; } }

/* ═══ Уточнення для сторінок каталогів (етапи 2–6) у новій системі ═══ */
.ktc-btn { border-radius: 999px; padding: 14px 26px; font-weight: 700; }
.ktc-btn:hover { background: #2A3A73; color: #fff; }
.ktc-btn--gold, .ktc-btn--light { background: var(--brand-gold); color: var(--brand-navy); }
.ktc-btn--gold:hover, .ktc-btn--light:hover { background: #F2BD52; color: var(--brand-navy); }
.ktc-btn--sm { padding: 9px 18px; font-size: .9rem; }

.ktc-tabs { gap: 8px; margin-bottom: 24px; }
.ktc-tab { padding: 10px 20px; border: 0; background: var(--ktc-tint); font-weight: 700; }
.ktc-tab:hover { background: var(--ktc-tint-2); }
.ktc-tab.is-active { background: var(--brand-navy); color: #fff; }

.ktc-filters select, .ktc-filters input[type=search], .ktc-filters--cal input[type=date] {
  height: 50px; padding: 0 20px; border: 1px solid var(--ktc-line); border-radius: 999px; background: #fff;
}
.ktc-filters--cal { padding: 24px; border-top: 0; border-radius: var(--ktc-radius-lg); background: var(--ktc-tint); }
.ktc-filters--cal input[type=date], .ktc-filters--cal select, .ktc-filters--cal .ktc-field input[type=search] { border-color: transparent; height: 50px; }
.ktc-field > span { font-size: .88rem; font-weight: 700; text-transform: none; letter-spacing: 0; }

.ktc-inst { border: 0; border-radius: var(--ktc-radius-lg); background: #fff; gap: 0; overflow: visible; }
.ktc-inst:hover { transform: none; box-shadow: none; }
.ktc-inst__img { border-bottom: 0; border-radius: var(--ktc-radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.ktc-inst__img img { transition: transform .6s var(--ktc-ease); }
.ktc-inst:hover .ktc-inst__img img { transform: scale(1.04); }
.ktc-inst__ph { background: linear-gradient(135deg, var(--ktc-tint), var(--ktc-tint-2)); }
.ktc-inst__body { padding: 16px 2px 8px; gap: 6px; }
.ktc-inst__type { font-size: .88rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ktc-muted); }
.ktc-inst__name { font-size: 1.4rem; line-height: 1.2; color: var(--brand-navy); }
.ktc-inst:hover .ktc-inst__name { text-decoration: underline; text-decoration-color: var(--brand-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ktc-inst__tags i { background: var(--ktc-tint); color: var(--brand-navy); font-weight: 700; }

.ktc-inst-page { gap: clamp(32px, 5vw, 72px); }
.ktc-inst-page__cover { border-radius: var(--ktc-radius-lg); max-height: 520px; }
.ktc-panel { border-top: 0; border-radius: var(--ktc-radius-lg); padding: 28px; background: var(--ktc-tint); }
.ktc-panel__title { font-size: 1.4rem; color: var(--brand-navy); }
.ktc-dl dt { font-size: .85rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.ktc-dl a { color: var(--brand-navy); text-decoration: underline; text-decoration-color: var(--brand-gold); text-underline-offset: 3px; }
.ktc-checks li::before { background: var(--brand-navy); }
.ktc-map, .ktc-routemap { border-radius: var(--ktc-radius); }
.ktc-gallery img, .ktc-fig img, .ktc-prose img { border-radius: var(--ktc-radius); }

.ktc-stop { border: 1px solid var(--ktc-line); border-left: 1px solid var(--ktc-line); border-radius: var(--ktc-radius); padding: 20px; }
.ktc-stop__n { background: var(--brand-navy); }
.ktc-stop__time { text-transform: none; letter-spacing: 0; font-weight: 700; }
.ktc-stop__img { border-radius: 12px; }
.ktc-pin span { background: var(--brand-navy); }
.ktc-pagehead__tags span { background: var(--ktc-tint); color: var(--brand-navy); padding: 6px 14px; font-weight: 700; }

.ktc-bigmap { border-bottom: 0; border-radius: var(--ktc-radius-lg); }
.ktc-layers { border-radius: var(--ktc-radius); background: var(--ktc-tint); }

.ktc-day__title { font-size: 1.6rem; text-transform: none; }
.ktc-day__title::first-letter { text-transform: uppercase; }
.ktc-event__cat { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 700; color: var(--ktc-muted); }

.ktc-review-form textarea { border-color: var(--ktc-line); border-radius: var(--ktc-radius); }
.ktc-review--reply { border-radius: var(--ktc-radius); }
.ktc-alert { border-radius: var(--ktc-radius); }
.ktc-alert--warn { border-left: 0; background: #FDF3DD; }
.ktc-nearest__row { border-color: var(--ktc-line); border-radius: 14px; }
.ktc-nearest__row a { color: var(--brand-navy); text-decoration: underline; text-decoration-color: var(--brand-gold); text-underline-offset: 3px; }

/* ═══ Мобільні уточнення ═══ */
@media (max-width: 767px) {
  .ktc-hero::after {
    background:
      linear-gradient(180deg, rgba(10,15,35,.55) 0%, rgba(10,15,35,.25) 30%, rgba(10,15,35,.45) 55%, rgba(10,15,35,.85) 100%);
  }
  .ktc-door::before { background: linear-gradient(180deg, rgba(10,15,35,.1) 0%, rgba(10,15,35,.6) 40%, rgba(10,15,35,.9) 100%); }
}
@media (max-width: 575px) {
  .ktc-hero__quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
  .ktc-hero__quick::-webkit-scrollbar { display: none; }
  .ktc-hero__quick a { flex: none; }
  section.subscribe .subscribe-wrap form .subscribe-form { flex-direction: column; align-items: stretch; border-radius: 24px; padding: 8px; }
  section.subscribe .subscribe-wrap form .subscribe-form input[type="submit"] { width: 100%; }
}

/* ═══ Банер: відео та компактніший заголовок ═══ */
.ktc-hero__title { font-size: clamp(2.3rem, 4.9vw, 4.4rem); line-height: .98; max-width: 19ch; margin-bottom: 32px; }
.ktc-hero--video::after {
  background:
    linear-gradient(180deg, rgba(10,15,35,.55) 0%, rgba(10,15,35,.15) 22%),
    linear-gradient(90deg, rgba(10,15,35,.72) 0%, rgba(10,15,35,.45) 42%, rgba(10,15,35,.10) 72%),
    linear-gradient(180deg, rgba(10,15,35,.10) 30%, rgba(10,15,35,.70) 100%);
}
.ktc-hero--video .ktc-hero__title { text-shadow: 0 2px 30px rgba(10,15,35,.45); }
.ktc-hero--video .ktc-hero__tagline { text-shadow: 0 1px 12px rgba(10,15,35,.5); }
@media (max-width: 767px) {
  .ktc-hero__title { font-size: clamp(2.1rem, 9vw, 2.8rem); line-height: 1; }
  .ktc-hero--video::after { background: linear-gradient(180deg, rgba(10,15,35,.6) 0%, rgba(10,15,35,.4) 35%, rgba(10,15,35,.6) 60%, rgba(10,15,35,.88) 100%); }
}
