:root {
  --rd-blog-ink: #16252c;
  --rd-blog-muted: #63747c;
  --rd-blog-line: #dce6e8;
  --rd-blog-surface: #f4f8f8;
  --rd-blog-accent: #0f657e;
  --rd-blog-accent-dark: #094c61;
  --rd-blog-radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--rd-blog-ink);
  background: #fff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

body > #site-menu {
  min-height: 72px;
}

.rd-blog-skip {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--rd-blog-accent);
  border-radius: 8px;
  transform: translateY(-150%);
}

.rd-blog-skip:focus {
  transform: translateY(0);
}

.rd-blog-main {
  width: min(1180px, calc(100% - 40px));
  min-height: 60vh;
  margin: 0 auto;
  padding: 62px 0 96px;
}

.rd-blog-hero {
  max-width: 850px;
  margin-bottom: 52px;
}

.rd-blog-context {
  margin-bottom: 26px;
}

.rd-blog-context a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--rd-blog-accent);
  border: 1px solid var(--rd-blog-line);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.rd-blog-context a:hover {
  color: var(--rd-blog-accent-dark);
  border-color: var(--rd-blog-accent);
  background: var(--rd-blog-surface);
}

.rd-blog-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--rd-blog-accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rd-blog-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.rd-blog-hero > p:last-child {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--rd-blog-muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.rd-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.rd-post-card {
  overflow: hidden;
  border: 1px solid var(--rd-blog-line);
  border-radius: var(--rd-blog-radius);
  background: #fff;
  box-shadow: 0 18px 54px rgba(22, 65, 78, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rd-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(22, 65, 78, 0.14);
}

.rd-post-card__image {
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0d526a, #38a0a5);
  text-decoration: none;
}

.rd-post-card__image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.rd-post-card:hover .rd-post-card__image img {
  transform: scale(1.025);
}

.rd-post-card__image span {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rd-post-card__body {
  padding: 28px;
}

.rd-post-card time,
.rd-article__meta {
  color: var(--rd-blog-muted);
  font-size: 0.88rem;
}

.rd-post-card h2 {
  margin: 9px 0 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.rd-post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.rd-post-card__excerpt {
  color: var(--rd-blog-muted);
}

.rd-post-card__excerpt > *:first-child {
  margin-top: 0;
}

.rd-post-card__excerpt > *:last-child {
  margin-bottom: 0;
}

.rd-post-card__more {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 22px;
  color: var(--rd-blog-accent);
  font-weight: 750;
  text-decoration: none;
}

.rd-posts__empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--rd-blog-muted);
  background: var(--rd-blog-surface);
  border-radius: var(--rd-blog-radius);
}

.rd-pagination {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
}

.rd-pagination a {
  color: var(--rd-blog-accent);
  font-weight: 700;
  text-decoration: none;
}

.rd-pagination span {
  color: var(--rd-blog-muted);
}

.rd-article {
  width: min(820px, 100%);
  margin: 0 auto;
}

.rd-article__header {
  margin-bottom: 36px;
}

.rd-article__back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--rd-blog-accent);
  font-weight: 700;
  text-decoration: none;
}

.rd-article h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.rd-article__meta {
  display: flex;
  gap: 18px;
  margin-top: 22px;
}

.rd-article__cover {
  margin: 0 0 44px;
  overflow: hidden;
  border-radius: var(--rd-blog-radius);
}

.rd-article__cover img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.rd-article__content {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.22rem);
}

.rd-article__content p {
  margin: 0 0 1.25em;
}

.rd-article__content ul,
.rd-article__content ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.rd-article__content ul {
  list-style: disc;
}

.rd-article__content ol {
  list-style: decimal;
}

.rd-article__content li + li {
  margin-top: 0.45em;
}

.rd-article__content h2,
.rd-article__content h3 {
  margin: 2em 0 0.65em;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.rd-article__content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.rd-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.rd-article__content a {
  color: var(--rd-blog-accent);
}

.rd-article__content blockquote {
  margin: 2em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--rd-blog-accent);
  color: var(--rd-blog-accent-dark);
  background: var(--rd-blog-surface);
}

.rd-article__content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  scrollbar-width: thin;
}

.rd-article__content th,
.rd-article__content td {
  min-width: 130px;
  padding: 13px 15px;
  border: 1px solid var(--rd-blog-line);
  text-align: left;
  vertical-align: top;
}

.rd-article__content th {
  color: var(--rd-blog-accent-dark);
  background: var(--rd-blog-surface);
  font-weight: 700;
}

.rd-article__content tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--rd-blog-surface) 55%, white);
}

.rd-neighborhood-map {
  margin: 2em 0;
}

.rd-neighborhood-map h2 {
  margin-top: 0;
}

.rd-neighborhood-map iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 760px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .rd-article h1 {
    font-size: clamp(1.72rem, 7vw, 2.05rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
  }

  .rd-article__content {
    font-size: 1rem;
  }

  .rd-article__content table {
    display: table;
    overflow: visible;
    border-collapse: separate;
    border-spacing: 0 14px;
    font-size: 0.95rem;
  }

  .rd-article__content thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .rd-article__content tbody,
  .rd-article__content tr,
  .rd-article__content td {
    display: block;
    width: 100%;
  }

  .rd-article__content tr {
    padding: 14px 16px;
    border: 1px solid var(--rd-blog-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 35, 43, 0.08);
  }

  .rd-article__content th,
  .rd-article__content td {
    min-width: 0;
  }

  .rd-article__content td {
    display: grid;
    grid-template-columns: minmax(112px, 42%) 1fr;
    gap: 12px;
    align-items: start;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--rd-blog-line) 72%, transparent);
    text-align: left !important;
  }

  .rd-article__content td:last-child {
    border-bottom: 0;
  }

  .rd-article__content td::before {
    color: var(--rd-blog-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .rd-article__content td:nth-child(1)::before {
    content: "Район";
  }

  .rd-article__content td:nth-child(2)::before {
    content: "Стоимость";
  }

  .rd-article__content td:nth-child(3)::before {
    content: "Пляж";
  }

  .rd-article__content td:nth-child(4)::before {
    content: "Метро";
  }

  .rd-article__content td:nth-child(5)::before {
    content: "Экскурсии";
  }

  .rd-article__content td:nth-child(6)::before {
    content: "Компромисс";
  }

  .rd-article__content td:first-child {
    grid-template-columns: 1fr;
    padding-top: 0;
    color: var(--rd-blog-accent-dark);
    font-size: 1.06rem;
    font-weight: 800;
  }

  .rd-article__content td:first-child::before {
    content: none;
  }

  .rd-article__content tbody tr:nth-child(even) td {
    background: transparent;
  }

  .rd-neighborhood-map {
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 0 12px;
  }

  .rd-neighborhood-map iframe {
    height: 820px;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(18, 35, 43, 0.14);
  }
}

.rd-article__taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--rd-blog-line);
}

.rd-article__taxonomy a {
  padding: 7px 12px;
  color: var(--rd-blog-accent);
  background: var(--rd-blog-surface);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
}

@media (max-width: 760px) {
  .rd-blog-main {
    width: min(100% - 28px, 1180px);
    padding-top: 38px;
  }

  .rd-posts {
    grid-template-columns: 1fr;
  }

  .rd-post-card__image,
  .rd-post-card__image img {
    min-height: 210px;
  }

  .rd-pagination {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
}
