/* ==========================================================================
   raspisanie-autobusov.ru — редизайн 2026-08-27
   Собственная дизайн-система поверх Bootstrap-сетки (сетка/утилиты
   импортируются из ../newsbox/css/bootstrap.min.css — сама тема "newsbox"
   больше не используется, только её grid-классы, уже расставленные во
   вьюхах). Всё визуальное оформление ниже написано с нуля.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");
@import url("../newsbox/css/bootstrap.min.css");
@import url("../newsbox/css/font-awesome.min.css");

:root {
  --color-primary: #0f7a4c;
  --color-primary-dark: #0b5c39;
  --color-primary-light: #e6f5ec;
  --color-accent: #ff7a45;
  --color-accent-dark: #e35f2b;
  --color-ink: #12211b;
  --color-body: #3f4b45;
  --color-muted: #7c8b83;
  --color-bg: #f6f8f5;
  --color-surface: #ffffff;
  --color-border: #e3e9e1;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(18, 33, 27, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 33, 27, 0.1);
  --shadow-lg: 0 24px 60px rgba(18, 33, 27, 0.16);
  --container-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: var(--color-ink);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 20px;
}

h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; }

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--color-accent-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container-max);
}

hr { border: 0; border-top: 1px solid var(--color-border); margin: 40px 0; }

/* --------------------------------------------------------------------
   Header / навигация
   -------------------------------------------------------------------- */

.header-area {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.newsbox-main-menu .container-fluid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.classy-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}
.nav-brand img {
  height: 44px;
  width: auto;
}

.classy-navbar-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}
.classy-navbar-toggler span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.classy-navbar-toggler.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.classy-navbar-toggler.is-active span:nth-child(2) { opacity: 0; }
.classy-navbar-toggler.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.classy-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.classynav > ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.classynav > ul > li > a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 15px;
}
.classynav > ul > li > a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.header-add-area ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-add-area a {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.header-add-area a:hover { background: var(--color-primary-dark); color: #fff; }

.classycloseIcon { display: none; }

@media (max-width: 991px) {
  .classy-navbar-toggler { display: flex; }
  .classy-menu {
    position: fixed;
    inset: 76px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .classy-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .classynav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .classynav > ul > li > a { display: block; padding: 12px 14px; }
  .header-add-area { margin-top: 8px; }
  .header-add-area a { display: block; text-align: center; }
}

/* --------------------------------------------------------------------
   Hero / блок расписаний и городов на главной
   -------------------------------------------------------------------- */

.top-news-area {
  background:
    radial-gradient(circle at 12% 20%, rgba(15, 122, 76, 0.16), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(255, 122, 69, 0.14), transparent 40%),
    var(--color-bg);
  padding: 88px 0;
}

.top-news-area h2 {
  position: relative;
  padding-left: 18px;
  margin-top: 40px;
}
.top-news-area h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 4px;
  background: var(--color-accent);
}
.top-news-area h2:first-of-type { margin-top: 0; }

.section-padding-100 { padding-top: 20px; padding-bottom: 20px; }

.site-hero {
  padding: 8px 0 0;
}
.site-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.site-hero h1 { max-width: 720px; }
.site-hero p.lead {
  max-width: 640px;
  font-size: 18px;
  color: var(--color-body);
}

/* --------------------------------------------------------------------
   Карточки (расписания / города)
   -------------------------------------------------------------------- */

.top-news-area .row {
  row-gap: 16px;
}

.single-blog-post {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 64px !important;
}
.single-blog-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-thumbnail { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.blog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.single-blog-post:hover .blog-thumbnail img { transform: scale(1.06); }

.blog-content { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-content .post-date {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.blog-content .post-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--color-ink);
  line-height: 1.4;
}
.blog-content .post-title:hover { color: var(--color-accent-dark); }
.blog-content .post-author {
  margin-top: auto;
  font-size: 14px;
  color: var(--color-muted);
}
.blog-content .post-author:hover { color: var(--color-muted); cursor: default; }

/* Компактный вариант карточки для сайдбара (.d-flex.style-4) */
.single-blog-post.style-4 {
  flex-direction: row;
  align-items: stretch;
  margin-bottom: 14px !important;
  box-shadow: none;
  border: 1px solid var(--color-border);
}
.single-blog-post.style-4:hover { transform: none; box-shadow: var(--shadow-sm); }
.single-blog-post.style-4 .blog-thumbnail {
  width: 92px;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.single-blog-post.style-4 .blog-content {
  padding: 10px 14px;
  gap: 4px;
}
.single-blog-post.style-4 .post-date {
  font-size: 11px;
  padding: 2px 8px;
}
.single-blog-post.style-4 .post-title {
  font-size: 14px;
  line-height: 1.35;
}

.single-widget-area h4 {
  font-size: 18px;
  margin-bottom: 18px;
}
.sidebar-area { position: sticky; top: 92px; }

/* --------------------------------------------------------------------
   Контент страницы / карточка-обёртка
   -------------------------------------------------------------------- */

.post-preview,
.post-details-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px clamp(18px, 4vw, 44px);
  margin: 32px 0;
}

.post-news-area { padding-bottom: 40px; }

/* --------------------------------------------------------------------
   "Шапка" карточки расписания (ink-image / dark1-3)
   -------------------------------------------------------------------- */

.ink-image {
  margin: 0 0 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-ink);
}
.ink-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.ink-image figcaption {
  padding: 0 clamp(18px, 4vw, 44px);
}
.ink-image figcaption.dark1 {
  background: var(--color-ink);
  padding-top: 26px;
}
.ink-image figcaption.dark1 h1 {
  color: #fff !important;
  margin: 0;
  font-size: clamp(22px, 3vw, 30px) !important;
  font-weight: 700 !important;
}
.ink-image figcaption.dark2 {
  background: var(--color-ink);
  padding-bottom: 24px;
}
.ink-image figcaption.dark2 p { margin: 8px 0 0; opacity: .75; font-size: 14px !important; }
.ink-image figcaption.dark3 {
  background: var(--color-surface);
  padding: 14px clamp(18px, 4vw, 44px);
}
.ink-image figcaption.dark3 br { display: none; }

/* --------------------------------------------------------------------
   Баннер заголовка страницы (city/index, schedule-en и т.п.) —
   .post-details-title-area с background-image через inline style
   -------------------------------------------------------------------- */

.post-details-title-area {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin-bottom: 36px;
}
.post-details-title-area.bg-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 33, 23, .35) 0%, rgba(11, 33, 23, .82) 100%);
}
.post-details-title-area .container-fluid {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px 20px;
}
.post-details-title-area .post-content .tag {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
.post-details-title-area .post-title {
  color: #fff !important;
  margin: 6px 0 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .3);
}
.post-details-title-area .post-date {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------
   Таблицы расписаний
   -------------------------------------------------------------------- */

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table th, .table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.table th {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--color-bg); }

/* --------------------------------------------------------------------
   Разное: теги, коллаут-отзывы, breadcrumb, ссылки-кнопки
   -------------------------------------------------------------------- */

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin: 0 6px 6px 0;
}

.bd-callout {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 0 18px;
  background: var(--color-bg);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 12px 0;
  margin: 0 0 20px;
  font-size: 14px;
}
.breadcrumb-item { color: var(--color-muted); }
.breadcrumb-item a { color: var(--color-primary-dark); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 6px; color: var(--color-border); }

a.fa, i.fa {
  color: var(--color-primary-dark);
}
a:hover .fa, a:hover.fa { color: var(--color-accent-dark); }

.btn, button, input[type="submit"] {
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 22px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover, button:hover, input[type="submit"]:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

input, textarea, select {
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--color-surface);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.site-heading, .subheading { color: var(--color-ink); }

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */

.footer-area {
  margin-top: 60px;
  padding: 56px 0 32px;
  background: var(--color-ink);
  color: rgba(255, 255, 255, .78);
}

.footer-logo { text-align: center; margin-bottom: 28px !important; }
.footer-logo img {
  margin: 0 auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 0;
  margin: 0 0 24px;
}
.footer-nav a {
  color: rgba(255, 255, 255, .82);
  font-weight: 600;
  font-size: 14px;
}
.footer-nav a:hover { color: #fff; }

.footer-social-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
}
.footer-social-info a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background .15s ease;
}
.footer-social-info a:hover { background: var(--color-primary); }
.footer-social-info img { filter: brightness(0) invert(1); opacity: .9; }

.copywrite-text {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  margin: 0;
}

@media (max-width: 767px) {
  .post-preview { padding: 22px; }
  .ink-image img { height: 180px; }
}
