/* Жизнь на Кубани — тёплый travel-стиль по макету */
:root {
  --paper: #f3efe6;
  --surface: #ffffff;
  --ink: #2c241c;
  --muted: #6d645a;
  --brand: #3f4a2e;
  --brand-soft: #e7ecdc;
  --line: #ddd4c6;
  --chip: #3f4a2e;
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1180px;
  --font: "Golos Text", Arial, sans-serif;
  --display: "Montserrat", "Golos Text", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 10px 28px rgba(44, 36, 28, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: #2f3722; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1em; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header — floating pill */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border: 0;
  padding: 0.85rem 1rem 0;
}

/* Homepage: menu over hero photo */
body.home .site-header,
body.front-page .site-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
}

body.home .site-header.is-scrolled,
body.front-page .site-header.is-scrolled {
  position: fixed;
}

.site-header__shell {
  width: min(100%, calc(var(--max) + 2rem));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(44, 36, 28, 0.08);
  padding: 0 0.85rem 0 1.35rem;
  backdrop-filter: blur(10px);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
}

.site-branding {
  min-width: 0;
  margin-right: auto;
}

.site-title { margin: 0; line-height: 1; }

.site-logo {
  display: inline-grid;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.site-logo:hover { text-decoration: none; color: inherit; }

.site-logo__full,
.site-logo__short {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.site-logo__full {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  grid-area: 1 / 1;
  color: var(--brand);
}

.site-logo__short {
  font-size: 1.15rem;
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(0.75);
  pointer-events: none;
}

.site-logo__dark,
.site-logo__accent { color: var(--brand); }

.site-logo__mark {
  color: var(--brand);
  flex-shrink: 0;
  margin-left: 0.15rem;
}

.site-header.is-scrolled .site-header__shell {
  box-shadow: 0 12px 28px rgba(44, 36, 28, 0.12);
}

.site-header.is-scrolled .site-header__row {
  min-height: 56px;
}

.site-header.is-scrolled .site-logo__full {
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
}

.site-header.is-scrolled .site-logo__short {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.nav-wrap {
  display: flex;
  justify-content: center;
  flex: 1;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.05rem;
}

/* Desktop: only core rubrics */
.primary-nav .menu-item--more {
  display: none;
}

.primary-nav a {
  display: block;
  padding: 0.45rem 0.65rem;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: #2a3320; }

.nav-toggle,
.search-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
  font-family: inherit;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.search-toggle {
  gap: 0.4rem;
  min-height: 42px;
  padding: 0 1rem 0 0.85rem;
  border-left: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.search-toggle__text { line-height: 1; }

.search-panel {
  display: none;
  padding: 0 1rem 1rem;
}

.search-panel.is-open { display: block; }

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  background: var(--paper);
}

.search-form button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 0 1.1rem;
  cursor: pointer;
  font-family: inherit;
}

/* Ads / РСЯ */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
  width: 100%;
}

.ad-slot__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot--band {
  margin: 1.5rem 0 0;
  padding: 0 1rem;
}

.ad-slot--band .ad-slot__placeholder,
.ad-slot--band .ad-slot__inner {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.ad-slot--header {
  margin: 0;
  min-height: 90px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #ebe6da;
}

.ad-slot--home_after_hero,
.ad-slot--home_after_news,
.ad-slot--home_mid,
.ad-slot--home_bottom,
.ad-slot--before_footer,
.ad-slot--archive_mid,
.ad-slot--below_title,
.ad-slot--in-article,
.ad-slot--after_post {
  min-height: 120px;
}

.ad-slot--sidebar,
.ad-slot--sidebar-top {
  min-height: 280px;
  margin: 0 0 1rem;
}

.ad-slot--sticky_mobile {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  margin: 0;
  min-height: 52px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.35rem;
}

.ad-slot__placeholder {
  width: 100%;
  max-width: 960px;
  border: 1px dashed #b7b09f;
  border-radius: var(--radius-sm);
  padding: 1.15rem 1rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}

.ad-slot__badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ad-slot__placeholder strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.ad-slot__size {
  font-size: 0.78rem;
  font-weight: 600;
}

.ad-slot__hint {
  font-size: 0.72rem;
  max-width: 36ch;
  line-height: 1.35;
}

/* Sections */
.section { padding: 2.5rem 0 0; }
.section:last-of-type { padding-bottom: 2.5rem; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.section__head--compact { margin-bottom: 0.85rem; }

.section__title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section__more {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

/* Hero — full bleed under floating header */
.section--feature {
  padding: 0;
}

body.home .section--feature,
body.front-page .section--feature {
  margin-top: 0;
}

.feature-main {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: clamp(520px, 78vh, 820px);
  background: #e8e2d6;
  color: var(--brand);
  isolation: isolate;
}

.feature-main__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.feature-main__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.feature-main__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(243, 239, 230, 0.96) 0%, rgba(243, 239, 230, 0.88) 28%, rgba(243, 239, 230, 0.35) 52%, transparent 72%);
  pointer-events: none;
}

.feature-main__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  min-height: inherit;
  box-sizing: border-box;
  width: min(560px, calc(100% - 2rem));
  max-width: 100%;
  margin: 0;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  padding: clamp(5.5rem, 12vh, 7rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font);
}

.chip::before,
.chip::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.feature-main__title {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.14;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  max-width: 18ch;
  color: var(--brand);
  margin: 0;
  text-wrap: balance;
}

.feature-main__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 40ch;
  width: 100%;
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 0;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  width: auto;
  min-height: 48px;
  box-sizing: border-box;
}

.btn-hero:hover {
  background: #2f3722;
  color: #fff;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-card {
  padding: 1.35rem 1.4rem 1.5rem;
  border-right: 1px solid var(--line);
}

.news-card:last-child { border-right: 0; }

.news-card__tag {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.news-card__title {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.news-card__title a { color: var(--ink); }
.news-card__title a:hover { color: var(--brand); }

.news-card__excerpt {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-card__date {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Routes */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Tourism Swiper — 3 full + ~1/4 of 4th */
.routes-swiper {
  position: relative;
  overflow: hidden;
  padding: 0.15rem 0 0.35rem;
}

.routes-swiper .swiper-slide {
  height: auto;
}

.routes-swiper .route-card {
  width: 100%;
  height: auto;
  min-height: 0;
  /* Matches typical vertical city covers (~2:3) */
  aspect-ratio: 2 / 3;
}

/* Keep full photo inside the card — no crop / stretch */
.routes-swiper .route-card__media img {
  object-fit: contain;
  object-position: center center;
}

.routes-swiper .route-card:hover .route-card__media img {
  transform: scale(1.02);
}

.routes-swiper .swiper-button-prev,
.routes-swiper .swiper-button-next {
  width: 46px;
  height: 46px;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand);
  box-shadow: 0 8px 22px rgba(44, 36, 28, 0.14);
}

.routes-swiper .swiper-button-prev::after,
.routes-swiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

.routes-swiper .swiper-button-prev { left: 0.15rem; }
.routes-swiper .swiper-button-next { right: 0.15rem; }

.routes-swiper .swiper-button-disabled {
  opacity: 0.35;
}

.route-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  background: #2c241c;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.route-card:hover { color: #fff; }

.route-card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}

.route-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.route-card:hover .route-card__media img { transform: scale(1.04); }

.route-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 16, 12, 0.82) 100%);
}

.route-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.15rem 1.1rem 1.25rem;
  display: block;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.route-card__label svg { display: none; }

/* Events + weather */
.split-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 1rem;
  align-items: stretch;
}

.events-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.event-card {
  position: relative;
  display: block;
  min-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #2c241c;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.event-card:hover { color: #fff; }

.event-card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 16, 12, 0.8) 100%);
}

.event-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem;
}

.event-card__title {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.25rem;
}

.event-card__meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}

.weather-panel {
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  box-shadow: var(--shadow);
}

.weather-panel .section__title {
  font-size: 1.15rem;
}

.weather-panel__city {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 900;
  color: var(--ink);
}

.weather-panel__links {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.weather-panel__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
}

.weather-panel__more:hover { background: #2f3722; }

/* Pets */
.pets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pet-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
}

.pet-card:hover { color: inherit; }

.pet-card__media {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e8e2d6;
  margin: 0;
}

.pet-card__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pet-card__title {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.pet-card:hover .pet-card__title { color: var(--brand); }

/* Tips + lifehacks */
.practical-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}

.tips-list {
  display: grid;
  gap: 0.85rem;
}

.tip-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tip-card__num {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  opacity: 0.55;
  padding-top: 0.15rem;
}

.tip-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tip-card__title a { color: var(--ink); }
.tip-card__title a:hover { color: var(--brand); }

.tip-card__excerpt {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.tip-card__more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
}

.lifehacks-list {
  display: grid;
  gap: 0.85rem;
}

.lifehack-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
  min-height: 148px;
}

.lifehack-card:hover { color: #fff; }

.lifehack-card__title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: none;
}

.lifehack-card__excerpt {
  margin-top: auto;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.82;
}

/* Recipes */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.recipe-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: #2c241c;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.recipe-card:hover { color: #fff; }

.recipe-card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}

.recipe-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.recipe-card:hover .recipe-card__media img { transform: scale(1.04); }

.recipe-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(20, 16, 12, 0.86) 100%);
}

.recipe-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.15rem 1.25rem;
}

.recipe-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.recipe-card__title {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.15;
}

.recipe-card__meta {
  font-size: 0.82rem;
  opacity: 0.78;
}

/* Generic cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card__media {
  display: block;
  background: #e8e2d6;
}

.card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body { padding: 1rem 1.05rem 1.15rem; }

.card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand); }

.card__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.meta-cat {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

/* Cities */
.cities-grid {
  grid-template-columns: repeat(5, 1fr);
}

.cities-grid .route-card {
  min-height: 260px;
}

.cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.cities a {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.cities a:hover { color: var(--brand); }

/* Inner pages */
.page-shell { padding: 1.5rem 0 3rem; }

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs__current {
  color: var(--ink);
  max-width: 40ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-header {
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.entry-title {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  margin: 0.4rem 0 0.55rem;
  text-transform: none;
}

.entry-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 0;
}

.entry-thumb {
  margin: 1rem 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e2d6;
  box-shadow: var(--shadow);
}

.entry-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.entry-content h2,
.entry-content h3 { margin: 1.4em 0 0.5em; }

.entry-content blockquote {
  margin: 1.4rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.related { margin-top: 2rem; }

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.2rem;
}

.widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.widget-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.popular-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.7rem;
}

.popular-list img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.popular-list a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}

.popular-list time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.archive-header { margin-bottom: 1.25rem; }
.archive-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
}
.archive-desc { color: var(--muted); margin-top: 0.45rem; max-width: 58ch; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.65rem;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pagination .current,
.pagination a:hover {
  background: var(--brand);
  color: #fff;
}

.empty-state { text-align: center; padding: 4rem 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { background: #2f3722; color: #fff; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--brand);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.35rem 0;
}

.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
}

.footer-brand:hover { color: #fff; }

.footer-nav,
.footer-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
}

.footer-nav a,
.footer-cities a,
.footer-nav .menu-item a {
  color: #fff;
  font-size: 0.92rem;
}

.footer-cities span {
  opacity: 0.45;
}

.footer-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}

@media (max-width: 960px) {
  .news-grid,
  .routes-grid,
  .cards-grid,
  .cities-grid,
  .recipes-grid { grid-template-columns: 1fr 1fr; }
  .news-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .split-grid,
  .practical-grid { grid-template-columns: 1fr; }
  .events-list { grid-template-columns: 1fr 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }

}

@media (max-width: 900px) {
  .search-toggle__text { display: none; }
  .search-toggle {
    border-left: 0;
    width: 42px;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: 0.65rem 0.65rem 0;
  }

  .site-header__shell {
    border-radius: 22px;
    padding: 0 0.55rem 0 1rem;
  }

  .nav-toggle { display: inline-flex; order: 2; }
  .search-toggle { order: 3; }
  .site-branding { order: 1; }

  .nav-wrap {
    display: none;
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    top: calc(100% + 0.35rem);
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 0.65rem 0.85rem 0.85rem;
  }

  .nav-wrap.is-open { display: block; }
  .site-header { position: sticky; }
  body.home .site-header,
  body.front-page .site-header { position: absolute; }
  body.home .site-header.is-scrolled,
  body.front-page .site-header.is-scrolled { position: fixed; }
  .site-header__shell { position: relative; }
  .site-header__row { flex-wrap: wrap; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  /* Mobile burger: show all rubrics */
  .primary-nav .menu-item--more {
    display: list-item;
  }

  .feature-main {
    min-height: min(100svh, 720px);
  }

  .feature-main__overlay {
    width: calc(100% - 2rem);
    margin-left: 1rem;
    justify-content: flex-end;
    padding: 5.5rem 0 2.25rem;
  }

  .feature-main__media::after {
    background:
      linear-gradient(180deg, transparent 20%, rgba(243, 239, 230, 0.92) 68%, rgba(243, 239, 230, 0.98) 100%);
  }

  .feature-main__title {
    max-width: none;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .feature-main__excerpt {
    max-width: none;
  }

  .routes-swiper .swiper-button-prev,
  .routes-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .news-grid,
  .routes-grid,
  .cities-grid,
  .pets-grid,
  .cards-grid,
  .recipes-grid,
  .events-list { grid-template-columns: 1fr; }

  .recipe-card { min-height: 280px; }

  .cities-grid .route-card { min-height: 220px; }

  .route-card { min-height: 260px; }
  .pet-card { grid-template-columns: 110px 1fr; }
  .ad-slot--sticky_mobile { display: flex; }
  body.has-sticky-ad { padding-bottom: 68px; }
  .site-footer__row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
