/*
Theme Name: 74profi v2
Theme URI: https://74profi.ru
Author: Артём Игнатович
Author URI: https://74profi.ru
Description: Тема для сайта частного мастера. Дизайн — доска объявлений + лента соцсети.
Version: 2.0
Text Domain: sevrofi
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #f3f2ee;
  color: #222;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================================
   PAGE CONTAINER
   ============================================================ */
.page {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
}

/* === ДВЕ КОЛОНКИ (десктоп) === */
.page-layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 800px) {
  .page-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #e8e7e4;
    background: #fff;
    z-index: 5;
  }

  /* В сайдбаре на десктопе скрываем хлебные крошки, H1 и мету */
  .page-sidebar .sidebar-primary { display: none; }

  .page-sidebar .listing-header { padding: 0; }

  .page-sidebar .listing-seller {
    flex-direction: column;
    align-items: stretch;
  }

  .page-sidebar .listing-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
  }
  .page-sidebar .listing-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-sidebar .avatar-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    font-size: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-sidebar .listing-seller-info {
    padding: 16px 20px 12px;
    text-align: center;
  }

  .page-sidebar .listing-phone {
    margin: 0 20px 10px;
    font-size: 18px;
    padding: 14px;
  }

  .page-sidebar .listing-secondary-links {
    padding: 0 20px 20px;
  }

  .page-sidebar .listing-breadcrumb,
  .page-sidebar .listing-meta {
    padding: 12px 20px 0;
  }

  .page-sidebar .listing-meta {
    justify-content: center;
  }

  .page-sidebar .listing-seller-info .rating {
    justify-content: center;
  }

  .page-content-area {
    flex: 1;
    min-width: 0;
  }
}

/* ============================================================
   LISTING HEADER (ШАПКА-ОБЪЯВЛЕНИЕ)
   ============================================================ */
.listing-header {
  padding: 20px 20px 16px;
  border-bottom: none;
}

@media (max-width: 799px) {
  .listing-header {
    border-bottom: 1px solid #e8e7e4;
  }

  .listing-seller .listing-avatar {
    width: 144px;
    height: 144px;
  }
}

/* ============================================================
   CONTENT HERO (десктоп: хлебные крошки + H1 над табами)
   ============================================================ */
.content-hero { display: none; }

@media (min-width: 800px) {
  .content-hero {
    display: block;
    padding: 24px 24px 0;
  }
  .content-hero-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
  }
  .content-hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .content-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .content-hero-meta .status {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
  }
}

.listing-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}
.listing-breadcrumb a { color: #888; }
.listing-breadcrumb span { color: #222; }
/* Yoast breadcrumbs compatibility */
.listing-breadcrumb span { color: #222; }
.listing-breadcrumb .breadcrumb_last { color: #222; }

.listing-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.listing-meta .status {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.listing-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.listing-seller {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.listing-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e0dcd5;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-placeholder {
  font-size: 32px;
  font-weight: 700;
  color: #8a8070;
}

.listing-seller-info .name {
  font-size: 18px;
  font-weight: 600;
}
.listing-seller-info .note {
  font-size: 13px;
  color: #888;
  margin-top: 1px;
}
.listing-seller-info .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #f59e0b;
  margin-top: 2px;
}
.listing-seller-info .rating .num {
  color: #888;
  font-weight: 500;
}

.listing-phone {
  display: block;
  background: #ff6b35;
  color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  transition: background .15s;
}
.listing-phone:hover { background: #e55a28; }

.listing-secondary-links {
  display: flex;
  gap: 10px;
}
.listing-secondary-links a {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1da851; }
.btn-tg { background: #2AABEE; color: #fff; }
.btn-tg:hover { background: #229ed9; }
.btn-gray { background: #f0efeb; color: #333; }
.btn-gray:hover { background: #e5e4df; }
.btn-max { background: #0a3787; color: #fff; }
.btn-max:hover { background: #082b6b; }

.btn-tg-full { flex: 1 1 100%; text-align: center; justify-content: center; padding: 16px; }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  border-bottom: 1px solid #e8e7e4;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.tabs a {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: .15s;
}
.tabs a.active {
  color: #222;
  border-bottom-color: #ff6b35;
}
.tabs a:hover { color: #444; }

/* ============================================================
   FEED — ЛЕНТА РАБОТ
   ============================================================ */
.feed { padding: 0 0 80px; }

.post {
  padding: 16px 20px;
  border-bottom: 1px solid #f0efeb;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0dcd5;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-placeholder-sm {
  font-size: 16px;
  font-weight: 700;
  color: #8a8070;
}

.post-author {
  font-weight: 600;
  font-size: 14px;
}
.post-time {
  font-size: 12px;
  color: #aaa;
  margin-left: auto;
}

.post-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #f0efeb;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-image img { width: 100%; height: 100%; object-fit: cover; }
.post-image-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.post-image img { width: 100%; display: block; }

.post-text {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.post-text .tag {
  color: #ff6b35;
  font-weight: 500;
}
.post-text p { margin-bottom: 8px; }
.post-text p:last-child { margin-bottom: 0; }

.post-footer-link {
  margin-top: 10px;
  font-size: 13px;
}
.post-footer-link a {
  color: #888;
  font-weight: 500;
  transition: color .15s;
}
.post-footer-link a:hover { color: #ff6b35; }

/* ============================================================
   WORK LIST COMPACT — компактный список работ на главной
   ============================================================ */
.post-compact { padding: 16px 20px; border-bottom: 1px solid #f0efeb; }
.post-compact:last-child { border-bottom: none; }

.post-compact-layout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.post-compact-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f0efeb;
  display: block;
}
.post-compact-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-compact-body { flex: 1; min-width: 0; }

.post-compact-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 4px;
  color: #222;
}
.post-compact-title a { color: inherit; text-decoration: none; }
.post-compact-title a:hover { color: #ff6b35; }

.post-compact-body .post-text {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 6px;
}

.post-compact-body .post-footer-link {
  margin-top: 0;
}

@media (max-width: 400px) {
  .post-compact-thumb { width: 60px; height: 60px; }
}

.feed-empty {
  padding: 40px 20px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

.archive-footer-link { text-align: center; padding: 20px 0 40px; display: block; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.sevrofi-breadcrumbs { margin-bottom: 6px; }
.sevrofi-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sevrofi-breadcrumbs li { font-size: 13px; color: #888; }
.sevrofi-breadcrumbs li a { color: #888; text-decoration: none; }
.sevrofi-breadcrumbs li a:hover { color: #ff6b35; }
.sevrofi-breadcrumbs li.sep { color: #ccc; font-size: 11px; }

.works-archive-list .post-compact { padding: 12px 0; border-bottom: 1px solid #f0efeb; }
.works-archive-list .post-compact:last-child { border-bottom: none; }
.works-archive-list .post-compact-layout { text-decoration: none; }
.works-archive-list .read-more-link { color: #ff6b35; font-size: 13px; font-weight: 500; }

/* ============================================================
   SERVICES — УСЛУГИ
   ============================================================ */
.services-panel {
  padding: 0 20px 80px;
}

.section-label {
  font-size: 13px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 20px 20px 12px;
  margin: 0 -20px;
  border-bottom: 1px solid #f0efeb;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #f0efeb;
  gap: 16px;
}
.service-item:last-child { border: none; }

.service-item-link { text-decoration: none; display: block; border-bottom: 1px solid #f0efeb; }
.service-item-link:last-child { border: none; }
.service-item-link:hover .service-name { color: #ff6b35; }
.service-item-link .service-item { transition: background .15s; }
.service-item-link:hover .service-item { background: #f9f7f4; }

.service-name { font-size: 15px; font-weight: 500; margin: 0; }
.service-price {
  font-size: 16px;
  font-weight: 700;
  color: #ff6b35;
  white-space: nowrap;
  flex-shrink: 0;
}
.service-desc {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}
.service-subtle {
  font-size: 12px;
  color: #999;
  font-style: italic;
}
.service-value {
  text-align: right;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  flex-shrink: 0;
}

.service-note {
  padding: 20px 0;
  font-size: 13px;
  color: #888;
  text-align: center;
  line-height: 1.8;
  border-top: 1px solid #f0efeb;
  margin-top: 10px;
}

.brand-links {
  padding: 16px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #888;
}
.brand-links span,
.brand-links a {
  background: #f0efeb;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  color: #444;
  transition: .15s;
}
.brand-links a:hover { background: #e5e4df; }

.service-single-price {
  font-size: 24px;
  font-weight: 700;
  color: #ff6b35;
  margin-bottom: 12px;
}

.service-single-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.service-cat-tag {
  background: #f0efeb;
  color: #555;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.service-back-mobile { display: none; }

/* ============================================================
   WORK SLIDER — галерея в работе
   ============================================================ */
.work-slider {
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0efeb;
}

.work-slider-viewport {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.work-slider-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-slider-prev,
.work-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #333;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.work-slider-prev:hover,
.work-slider-next:hover {
  background: #fff;
}

.work-slider-prev { left: 12px; }
.work-slider-next { right: 12px; }

@media (max-width: 600px) {
  .work-slider-prev { left: 8px; }
  .work-slider-next { right: 8px; }
}

.work-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.work-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background .15s;
}

.work-slider-dot.active {
  background: #fff;
}

.work-slider-dot:hover {
  background: rgba(255,255,255,0.8);
}

@media (max-width: 799px) {
  .service-back-mobile {
    display: block;
    text-align: center;
    padding: 20px 0 40px;
  }
  .service-back-top {
    display: block;
    margin-bottom: 16px;
  }
}

/* ============================================================
   REVIEWS — ОТЗЫВЫ
   ============================================================ */
.reviews-panel {
  padding: 0 20px 80px;
}

.review-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0efeb;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0dcd5;
  flex-shrink: 0;
}
.review-author .name { font-weight: 600; font-size: 14px; }
.review-stars { color: #f59e0b; font-size: 14px; margin-top: 1px; }
.review-text { font-size: 14px; color: #444; line-height: 1.5; }
.review-date { font-size: 12px; color: #aaa; margin-top: 4px; }

.myreviews-wrapper {
  padding: 16px 0;
}

.show-all {
  text-align: center;
  padding: 20px 0;
}
.show-all a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.show-all a:hover { text-decoration: underline; }

/* ============================================================
   ABOUT — ОБЪЯВЛЕНИЕ
   ============================================================ */
.about-why-me {
  padding: 24px 0;
  border-top: 1px solid #f0efeb;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}
.about-why-me p { margin-bottom: 8px; }
.about-why-me p:last-child { margin-bottom: 0; }
.about-signoff {
  margin-top: 16px !important;
  font-size: 13px;
  color: #888;
}

/* ============================================================
   FOOTER PANEL — НИЖНЯЯ ПЛАШКА
   ============================================================ */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  max-width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid #e8e7e4;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  z-index: 20;
}

@media (min-width: 800px) {
  .footer-bar { display: none; }
}

.footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.footer-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.footer-btn:active {
  transform: scale(0.95);
}

.footer-btn-phone {
  background: #ff6b35;
  color: #fff;
}

.footer-btn-tg {
  background: #2AABEE;
  color: #fff;
}

.footer-btn-max {
  background: #0a3787;
  color: #fff;
}

.footer-info {
  padding: 20px 20px 90px;
  font-size: 12px;
  color: #aaa;
  text-align: center;
  line-height: 1.8;
}
.footer-info a { color: #888; text-decoration: none; }
.footer-info a:hover { color: #555; }

.footer-menu { display: flex; gap: 24px; justify-content: center; margin-bottom: 8px; }
.footer-menu a { color: #888; text-decoration: none; font-size: 12px; }
.footer-menu a:hover { color: #ff6b35; }

/* ============================================================
   WORK SINGLE — отдельная страница работы
   ============================================================ */
.work-back-link {
  margin-bottom: 16px;
  font-size: 14px;
}
.work-back-link a { color: #888; font-weight: 500; }
.work-back-link a:hover { color: #ff6b35; }

.work-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}
.work-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #f0efeb;
}
.work-image img { width: 100%; display: block; }

.work-cta {
  margin-top: 40px;
  padding: 24px;
  background: #f9f7f4;
  border-radius: 16px;
  text-align: center;
}
.work-cta p { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #333; }
.work-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.back-to-main {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  background: #f0efeb;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}
.back-to-main:hover { background: #e5e4df; }
.cta-phone {
  display: inline-block;
  background: #ff6b35;
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.cta-phone:hover { background: #e55a28; }
.cta-wa {
  display: inline-block;
  background: #25d366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.cta-wa:hover { background: #1da851; }
.cta-max { background: #0a3787; }
.cta-max:hover { background: #082b6b; }

/* ============================================================
   PAGE CONTENT (page.php, single.php, archive.php)
   ============================================================ */
.page-content {
  padding: 24px 20px 100px;
  max-width: 680px;
  margin: 0 auto;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.entry-content {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
.entry-content p { margin-bottom: 16px; }
.entry-content h2 { font-size: 22px; margin: 28px 0 12px; }
.entry-content h3 { font-size: 18px; margin: 24px 0 10px; }
.entry-content ul, .entry-content ol {
  margin: 0 0 16px 20px;
}
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: 12px; margin: 20px 0; }

/* Single post */
.post-single-header { margin-bottom: 20px; }
.post-single-category { font-size: 13px; color: #ff6b35; margin-bottom: 6px; }
.post-single-category a { color: #ff6b35; font-weight: 500; }
.post-single-meta { font-size: 13px; color: #888; margin-top: 6px; }
.post-single-thumb { margin-bottom: 20px; }
.post-single-thumb img { border-radius: 12px; width: 100%; }
.post-single-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #f0efeb;
  font-size: 14px;
}
.post-single-nav a { color: #ff6b35; font-weight: 500; }

.post-single-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}
.post-single-close a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0efeb;
  color: #888;
  font-size: 24px;
  font-weight: 300;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.post-single-close a:hover {
  background: #ff6b35;
  color: #fff;
}

.post-single-back {
  text-align: center;
  padding: 20px 0 40px;
}
.post-single-back a {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  background: #f0efeb;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}
.post-single-back a:hover { background: #e5e4df; }

.page-content {
  position: relative;
}

/* Archive list */
.archive-list { margin-top: 20px; }
.archive-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0efeb;
  align-items: flex-start;
}
.archive-item-img {
  width: 150px;
  flex-shrink: 0;
}
.archive-item-img img { border-radius: 10px; width: 100%; height: auto; }
.archive-item-text h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.archive-item-text h2 a { color: #222; }
.archive-item-text h2 a:hover { color: #ff6b35; }
.archive-item-meta { font-size: 12px; color: #aaa; margin-bottom: 8px; }
.archive-item-text p { font-size: 14px; color: #555; line-height: 1.5; }
.read-more-link { color: #ff6b35; font-weight: 500; font-size: 14px; display: inline-block; margin-top: 6px; }

.pagination {
  text-align: center;
  padding: 30px 0;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 3px;
  border-radius: 8px;
  font-size: 14px;
}
.pagination a { color: #ff6b35; background: #f0efeb; }
.pagination a:hover { background: #e5e4df; }
.pagination .current { background: #ff6b35; color: #fff; }

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 720px) {
  .page { border-radius: 0; }
  .listing-title { font-size: 22px; }
  .listing-phone { font-size: 18px; padding: 14px; }
  .listing-secondary-links a { font-size: 13px; padding: 10px 6px; }
  .footer-bar {
    left: 0;
    transform: none;
    border-radius: 0;
  }
  .archive-item { flex-direction: column; }
  .archive-item-img { width: 100%; }
  .service-item { flex-direction: column; gap: 4px; }
  .service-price { align-self: flex-start; }
  .service-value { text-align: left; }
}

@media (max-width: 380px) {
  .listing-header { padding: 16px 14px; }
  .listing-avatar { width: 56px; height: 56px; }
  .listing-seller-info .name { font-size: 16px; }
  .post { padding: 14px; }
  .footer-bar { padding: 8px 10px; }
  .footer-bar a { padding: 10px; font-size: 13px; }
}

/* ============================================================
   ARTICLES LIST — список статей в табе
   ============================================================ */
.articles-list { padding: 0 0 80px; }

.articles-list-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0efeb;
  align-items: flex-start;
}

.articles-list-item-img {
  width: 120px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f0efeb;
}
.articles-list-item-img img { width: 100%; height: auto; display: block; }

.articles-list-item-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.articles-list-item-text h4 a { color: #222; }
.articles-list-item-text h4 a:hover { color: #ff6b35; }
.articles-list-item-date {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
}
.articles-list-item-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 6px;
}

@media (max-width: 500px) {
  .articles-list-item { flex-direction: column; }
  .articles-list-item-img { width: 100%; }
}
