/* Sections Styles */

/* Common Section Styles */
.section {
  padding: 100px 24px;
  width: 100%;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.city-page,
.poi-page {
  background: #f5f5f5;
}

.city-hero,
.poi-hero {
  padding: 80px 24px 40px;
  background: #f9fafb;
}

.city-hero__inner,
.poi-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.city-hero__title,
.poi-hero__title {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.city-hero__lead,
.poi-hero__lead {
  font-size: 17px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.city-hero__media img,
.poi-hero__media img {
  width: 100%;
  max-height: 380px;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  object-fit: cover;
}

.city-content,
.poi-content {
  max-width: 960px;
  margin: 40px auto 80px;
  padding: 0 24px 0;
}

.section-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 60px;
}

/* Routes Section */
.routes-section {
  background: #fff;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.route-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.25s;
}

.route-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.route-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.route-content {
  padding: 24px;
}

.route-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.route-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.route-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #888;
}

.route-btn {
  background: linear-gradient(135deg, #ff9f1a, #ff5a5f);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.route-btn:hover {
  box-shadow: 0 6px 18px rgba(255, 90, 95, 0.3);
  transform: translateY(-2px);
}

/* Why Section */
.why-section {
  background: #f5f5f5;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.25s;
}

.why-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* Guides Section */
.guides-section {
  background: #fff;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.guide-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.25s;
  cursor: pointer;
}

.guide-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.guide-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.guide-content {
  padding: 20px;
}

.guide-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Homepage cities layer */
.homepage-cities-section {
  background: #fff;
}

.homepage-cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.homepage-city-card {
  display: block;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}

.homepage-city-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.homepage-city-card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.homepage-city-card__body {
  padding: 18px 20px 20px;
}

.homepage-city-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

.homepage-city-card__text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Homepage planning layer */
.homepage-planning-section {
  background: #f9fafb;
}

.homepage-planning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.homepage-service-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}

.homepage-service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.homepage-service-card__icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.homepage-service-card__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}

.homepage-service-card__text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* POI grid on city pages */
.poi-section {
  background: #fff;
}

.poi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.poi-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.25s;
}

.poi-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  transform: translateY(-4px);
}

.poi-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.poi-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.poi-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poi-card__body {
  padding: 18px 18px 20px;
}

.poi-card__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.poi-card__excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* News Section */
.news-section {
  padding-top: 40px;
  padding-bottom: 40px;
  background: #f9fafb;
}

.news-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(18, 45, 75, 0.08);
}

.news-box__title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.news-box__footer {
  margin-top: 18px;
  text-align: center;
}

.news-box__more {
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.news-box__more:hover {
  border-color: currentColor;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.news-list__item {
  border-bottom: 1px solid #eef2f6;
  padding-bottom: 12px;
}

.news-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-list__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 15px;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-list__link:hover {
  color: #ff6b3d;
}

.news-list__date {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #7a8b9a;
  min-width: 48px;
}

.news-list__title {
  flex: 1;
  line-height: 1.5;
}

.news-empty {
  font-size: 14px;
  color: #8895a7;
  margin: 0;
}

/* News archive page */
.news-archive-page {
  background: #f5f7fa;
}

.news-hero {
  padding: 80px 24px 40px;
  text-align: center;
}

.news-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.news-hero__badge {
  display: inline-block;
  background: #ecf2ff;
  color: #5174ff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}

.news-hero__title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  margin: 18px 0 10px;
}

.news-hero__desc {
  color: #536070;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto;
}

.news-featured {
  padding: 10px 24px 40px;
}

.news-featured__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-banner {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(50, 70, 120, 0.1);
}

.news-banner__figure {
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.news-banner__figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-banner--accent {
  background: linear-gradient(135deg, #ffb347, #ff5f6d);
  color: #fff;
}

.news-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: inherit;
}

.news-banner--accent .news-banner__badge {
  background: rgba(255, 255, 255, 0.2);
}

.news-banner h3 {
  font-size: 20px;
  margin: 16px 0 10px;
}

.news-banner p {
  margin: 0 0 16px;
  color: inherit;
  opacity: 0.85;
}

.news-banner__link {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.news-archive {
  padding: 20px 24px 80px;
}

.news-archive__inner {
  max-width: 960px;
  margin: 0 auto;
}

.news-archive__list {
  display: grid;
  gap: 20px;
}

.news-archive-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(27, 40, 70, 0.12);
  display: grid;
  gap: 8px;
}

.news-archive-card__meta time {
  font-size: 13px;
  color: #7e8da3;
  font-weight: 600;
}

.news-archive-card__title {
  font-size: 20px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.news-archive-card__title:hover {
  color: #ff7043;
}

.news-archive-card__excerpt {
  margin: 0;
  color: #4c5566;
  line-height: 1.6;
}

.news-archive-card__link {
  font-weight: 600;
  color: #ff7043;
  text-decoration: none;
}

.news-archive__pagination {
  margin-top: 32px;
  text-align: center;
}

.news-archive__pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #4c5566;
  text-decoration: none;
}

.news-archive__pagination .current {
  background: #1a7ffb;
  color: #fff;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #ff9f1a, #ff5a5f);
  padding: 80px 24px;
}

.cta-box {
  text-align: center;
  color: #fff;
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.cta-box .btn {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: none;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-box .btn:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 24px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #333;
  color: #888;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1100px) {
  .routes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .poi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 60px 20px;
  }

  .city-hero__inner,
  .poi-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 50px 16px;
  }
  .why-grid,
  .guides-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .poi-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 1100px) {
  .homepage-cities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .homepage-planning-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .homepage-cities-grid,
  .homepage-planning-grid {
    grid-template-columns: 1fr;
  }
}

/* Универсальные фото-карточки с округлыми углами для контента */
.kedo-photo-card {
  display: block;
  max-width: 380px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.kedo-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kedo-photo-card--center {
  margin: 24px auto;
}

/* Вариант фото-карточки справа от текста на десктопе */
.kedo-photo-card--right {
  float: right;
  margin: 8px 0 16px 24px;
}

@media (max-width: 900px) {
  .city-hero__inner,
  .poi-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: flex-start;
  }

  .kedo-photo-card--right {
    float: none;
    margin: 16px auto;
  }
/* Убираем квадратное featured-image над контентом
   на страницах городов и объектов — своё hero рисуем в шаблоне */
body.page-template-template-city-page-php .featured-image.page-header-image,
body.page-template-template-poi-page-php .featured-image.page-header-image {
  display: none !important;
}

}
/* Скрываем стандартный featured-image над контентом
   на страницах городов и объектов — своё hero рисуем в шаблоне */
body.page-template-template-city-page-php .featured-image.page-header-image,
body.page-template-template-poi-page-php .featured-image.page-header-image {
  display: none !important;
}
