.blog-main {
  margin-top: 220px;
  padding-bottom: 110px;
}

.blog-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.blog-head > span {
  color: #7d675b;
  font-size: 15px;
  font-weight: 600;
}

.blog-head h2 {
  margin-top: 6px;
  color: #252525;
  font-family: var(--font-accent-serif);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.blog-head .liner {
  width: 120px;
  height: 15px;
  margin-top: 14px;
  background-image: url("../img/divider.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  margin-top: 54px;
  align-items: start;
}

.blog-column {
  display: grid;
  gap: 20px;
}

.blog-list {
  display: grid;
  gap: 20px;
}

.blog-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  min-height: 176px;
  padding: 12px;
  border: 1px solid rgba(155, 106, 77, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(52, 36, 30, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.blog-card.is-hidden {
  display: none;
}

.blog-card:hover {
  border-color: rgba(155, 106, 77, 0.32);
  box-shadow: 0 24px 54px rgba(52, 36, 30, 0.1);
  transform: translateY(-5px);
}

.blog-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  overflow: hidden;
  border-radius: 0;
  background: #fbf8f5;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.08);
}

.blog-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6px 0 4px;
}

.blog-card time {
  display: block;
  margin-top: 8px;
  color: #b68a63;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: uppercase;
}

.blog-copy h3 {
  margin-top: 0;
  font-family: var(--font-accent-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
}

.blog-copy h3 a {
  color: #252525;
  transition: color 0.24s ease;
}

.blog-copy h3 a:hover {
  color: #252525;
}

.blog-copy p {
  margin-top: 14px;
  color: #75645d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.72;
}

.blog-more {
  width: fit-content;
  margin-top: 28px;
  color: var(--accent-serif-color);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.24s ease;
}

.blog-more::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.24s ease;
}

.blog-more:hover {
  color: #6e4735;
}

.blog-more:hover::after {
  transform: translateX(3px);
}

.blog-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 116px;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8e3df;
  background: #fff;
  color: #9b6a4d;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.page-btn:hover {
  border-color: #d7c1b2;
  background: #fbf8f5;
  color: #6e4735;
  transform: translateY(-1px);
}

.page-btn.active {
  border-color: #9b6a4d;
  background: #9b6a4d;
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.page-prev,
.page-next {
  min-width: 86px;
}

@keyframes skeletonPulse {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.blogs-loading-shell {
  display: none;
}

body.page-loading .blog-layout > :not(.blogs-loading-shell) {
  display: none;
}

body.page-loading .blogs-loading-shell {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  width: 100%;
  align-items: start;
}

.skeleton-line,
.skeleton-media {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #f3efe9 0%, #fbf8f4 50%, #f3efe9 100%);
  background-size: 220% 100%;
  animation: skeletonPulse 1.25s ease-in-out infinite;
}

.blogs-skeleton-list {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.blog-skeleton-card,
.blogs-skeleton-side-card {
  border: 1px solid rgba(155, 106, 77, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(52, 36, 30, 0.06);
}

.blog-skeleton-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  min-height: 176px;
  padding: 12px;
  min-width: 0;
}

.blog-skeleton-card .skeleton-media {
  width: 100%;
  height: 150px;
}

.blog-skeleton-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6px 0 4px;
  min-width: 0;
}

.skeleton-date {
  width: 110px;
  height: 14px;
}

.skeleton-card-title {
  width: 82%;
  height: 26px;
  margin-top: 8px;
}

.skeleton-copy {
  width: 100%;
  height: 14px;
  margin-top: 12px;
}

.skeleton-copy.short {
  width: 70%;
}

.skeleton-link {
  width: 110px;
  height: 18px;
  margin-top: 28px;
}

.blogs-skeleton-pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.skeleton-page {
  width: 38px;
  height: 38px;
}

.skeleton-page.wide {
  width: 86px;
}

.blogs-skeleton-side {
  display: grid;
  gap: 22px;
  align-self: start;
  position: sticky;
  top: 116px;
}

.skeleton-side-title {
  width: 160px;
  height: 28px;
  margin-bottom: 16px;
}

.blogs-skeleton-side-card {
  padding: 24px;
}

.side-block {
  padding: 24px;
  border: 1px solid rgba(155, 106, 77, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(52, 36, 30, 0.06);
}

.side-block h3 {
  color: #252525;
  font-family: var(--font-accent-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.side-block a {
  display: block;
  margin-top: 16px;
  color: #4e3a32;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.24s ease, transform 0.24s ease;
}

.side-block a:hover {
  color: var(--accent-serif-color);
  transform: translateX(4px);
}

.contact-block p {
  margin-top: 14px;
  color: #75645d;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.contact-block > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  background: #9b6a4d;
  color: #fff;
}

.contact-block > a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.contact-info p {
  margin-top: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.contact-info a {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.24s ease;
}

.contact-info a:hover {
  color: #fff;
}

.contact-info {
  border-color: #ea8b2e;
  background: #ea8b2e;
  color: #fff;
  box-shadow: 0 18px 45px rgba(234, 139, 46, 0.18);
}

.contact-info h3 {
  color: #fff;
}

.contact-info p,
.contact-info a {
  color: #fff;
}

.blog-detail-main {
  margin-top: 250px;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.blog-article {
  padding: 38px 42px 46px;
  border: 1px solid rgba(155, 106, 77, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(52, 36, 30, 0.07);
}

.detail-back {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  margin-bottom: 24px;
  padding: 0 16px;
  border: 1px solid rgba(234, 139, 46, 0.32);
  background: #fff7ec;
  color: #b56d2a;
  font-family: var(--font-accent-serif);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
  text-transform: uppercase;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
}

.detail-back:hover {
  border-color: #ea8b2e;
  background: #ea8b2e;
  color: #fff;
  transform: translateY(-2px);
}

.blog-kicker {
  display: inline-block;
  color: #b68a63;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.65;
  text-transform: uppercase;
}

.blog-article h1 {
  max-width: 860px;
  margin-top: 14px;
  color: #252525;
  font-family: var(--font-accent-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e3df;
  color: #6e6e6e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.blog-meta time {
  color: #b68a63;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.blog-hero-image {
  margin-top: 34px;
  width: 100%;
  background: #fbf8f5;
}

.blog-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-body {
  margin-top: 34px;
  color: #4e3a32;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.85;
}

.blog-body p + p,
.blog-body h2 + p {
  margin-top: 18px;
}

.blog-body h2 {
  position: relative;
  margin-top: 40px;
  padding: 0 0 12px 18px;
  color: #252525;
  font-family: var(--font-accent-serif);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

.blog-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 4px;
  height: 1.08em;
  background: #b68a63;
}

.blog-body h2::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 84px;
  border-top: 1px solid rgba(182, 138, 99, 0.42);
}

.blog-body-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.blog-body-images img {
  width: 100%;
  height: auto;
  display: block;
}

.related-blogs {
  position: sticky;
  top: 116px;
  padding: 24px;
  border: 1px solid rgba(155, 106, 77, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(52, 36, 30, 0.06);
}

.related-blogs h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e3df;
  color: #252525;
  font-family: var(--font-accent-serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.related-empty {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e8e3df;
  background: #f7f5f3;
  color: #6e6e6e;
  font-size: 14px;
}

.related-blog {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  margin-top: 20px;
  color: #252525;
  transition: transform 0.24s ease;
}

.related-blog:hover {
  transform: translateX(4px);
}

.related-blog img {
  grid-row: span 2;
  width: 86px;
  height: 76px;
  object-fit: cover;
  background: #fbf8f5;
}

.related-blog span {
  align-self: end;
  color: #252525;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.related-blog time {
  align-self: start;
  color: #b68a63;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.65;
  text-transform: uppercase;
}

.blog-detail-loading-shell {
  display: none;
}

body.page-loading .blog-detail-layout > :not(.blog-detail-loading-shell) {
  display: none;
}

body.page-loading .blog-detail-loading-shell {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
  width: 100%;
}

.blog-detail-skeleton-article {
  padding: 38px 42px 46px;
  border: 1px solid rgba(155, 106, 77, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(52, 36, 30, 0.07);
}

.blog-detail-skeleton-back {
  width: 188px;
  height: 40px;
}

.blog-detail-skeleton-kicker {
  width: 182px;
  height: 14px;
  margin-top: 36px;
}

.blog-detail-skeleton-title {
  height: 46px;
  margin-top: 14px;
}

.blog-detail-skeleton-title.xl {
  width: 82%;
}

.blog-detail-skeleton-title.lg {
  width: 68%;
}

.blog-detail-skeleton-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e3df;
}

.blog-detail-skeleton-meta-line {
  width: 112px;
  height: 14px;
}

.blog-detail-skeleton-meta-line.short {
  width: 96px;
}

.blog-detail-skeleton-hero {
  width: 100%;
  height: 520px;
  margin-top: 34px;
}

.blog-detail-skeleton-body {
  margin-top: 34px;
}

.blog-detail-skeleton-copy {
  width: 100%;
  height: 17px;
  margin-top: 14px;
}

.blog-detail-skeleton-copy.short {
  width: 76%;
}

.blog-detail-skeleton-subtitle {
  width: 240px;
  height: 28px;
  margin-top: 38px;
}

.blog-detail-skeleton-side {
  position: sticky;
  top: 116px;
  padding: 24px;
  border: 1px solid rgba(155, 106, 77, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(52, 36, 30, 0.06);
}

.blog-detail-skeleton-side-title {
  width: 180px;
  height: 28px;
  margin-bottom: 14px;
}

.blog-detail-skeleton-related {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.blog-detail-skeleton-related-image {
  width: 86px;
  height: 76px;
}

.blog-detail-skeleton-related-copy {
  min-width: 0;
}

.blog-detail-skeleton-related-title {
  width: 100%;
  height: 16px;
  margin-top: 8px;
}

.blog-detail-skeleton-related-date {
  width: 94px;
  height: 12px;
  margin-top: 14px;
}

.copyright .wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.copyright .wrapper span {
  position: static;
}

@media (max-width: 900px) {
  .blog-layout,
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-main {
    margin-top: 190px;
    padding-bottom: 84px;
  }

  .blog-article {
    padding: 28px 22px 34px;
  }

  .blog-article h1 {
    font-size: clamp(28px, 8.5vw, 42px);
  }

  .blog-meta {
    gap: 8px 16px;
    padding-bottom: 18px;
  }

  .blog-hero-image,
  .blog-body {
    margin-top: 26px;
  }

  .blog-body {
    font-size: 16px;
    line-height: 1.8;
  }

  .blog-body h2 {
    margin-top: 32px;
    font-size: 22px;
    padding-left: 14px;
  }

  .blog-body h2::after {
    left: 14px;
    width: 70px;
  }

  .related-blogs {
    position: static;
  }

  .blog-side {
    position: static;
  }

  body.page-loading .blog-detail-loading-shell {
    grid-template-columns: 1fr;
  }

  .blog-detail-skeleton-article {
    padding: 28px 22px 34px;
  }

  .blog-detail-skeleton-title {
    height: 38px;
  }

  .blog-detail-skeleton-title.xl {
    width: 92%;
  }

  .blog-detail-skeleton-title.lg {
    width: 84%;
  }

  .blog-detail-skeleton-hero {
    height: 360px;
    margin-top: 26px;
  }
}

@media (max-width: 640px) {
  .blog-main {
    margin-top: 172px;
  }

  .blog-card {
    gap: 14px;
    min-height: auto;
    padding: 10px;
  }

  .blog-image {
    min-height: 220px;
  }

  .blog-copy {
    padding: 2px 0 0;
  }

  .blog-copy h3 {
    font-size: 19px;
    line-height: 1.28;
  }

  .blog-copy p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.68;
  }

  .blog-more {
    margin-top: 18px;
  }

  .detail-back {
    margin-bottom: 18px;
  }

  .blog-kicker {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .blog-article h1 {
    margin-top: 12px;
    font-size: clamp(26px, 10vw, 36px);
    line-height: 1.16;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .blog-detail-loading-shell,
  body.page-loading .blog-detail-loading-shell {
    gap: 22px;
  }

  .blog-detail-skeleton-kicker {
    margin-top: 28px;
  }

  .blog-detail-skeleton-meta {
    flex-direction: column;
    gap: 8px;
  }

  .blog-detail-skeleton-hero {
    height: 260px;
  }

  .blog-detail-skeleton-body {
    margin-top: 26px;
  }

  .related-blogs h3 {
    font-size: 20px;
  }

  .related-blog {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .related-blog img,
  .blog-detail-skeleton-related-image {
    width: 72px;
    height: 64px;
  }
}
