:root {
  --primary-color: #b23256;
  --primary-color-hover: #902845;
  --primary-gradient: linear-gradient(135deg, #b23256 0%, #d44d71 100%);
  --secondary-color: #ac9a73;
  --text-main: #333333;
  --text-gray: #4f4f4f;
  --text-light: #828282;
  --text-white: #ffffff;
  --bg-body: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #333333;
  --font-heading: "Prata", "Didot", "Bodoni MT", "Times New Roman", serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --container-width: 1200px;
  --container-padding: 20px;
  --header-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(178, 50, 86, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container-width), calc(100% - var(--container-padding) * 2));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-color);
  color: var(--text-white);
  font-weight: 700;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: var(--header-height);
  color: var(--text-white);
}

.site-header__container {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
  font-weight: 800;
}

.site-logo__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 22px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav__list a:not(.btn) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 700;
}

.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-white);
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn--primary {
  background: var(--primary-gradient);
  box-shadow: 0 14px 32px rgba(178, 50, 86, 0.28);
}

.btn--primary:hover {
  background: var(--primary-color-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn--lg {
  min-width: 230px;
  min-height: 54px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(178, 50, 86, 0.55);
  outline-offset: 3px;
}

.hero-section {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 132px 20px 84px;
  color: var(--text-white);
  text-align: center;
  background-image: linear-gradient(135deg, rgba(37, 33, 30, 0.76), rgba(37, 33, 30, 0.3)), var(--hero-image, linear-gradient(135deg, #5f3d48, #d7b7a3));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__content {
  max-width: 990px;
}

.hero__content h1,
.page-hero h1 {
  margin: 0 0 28px;
  font-family: var(--font-heading);
  font-size: clamp(42px, 8vw, 88px);
  line-height: 1.05;
  font-weight: 400;
}

.hero__content p,
.page-hero p {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.page-hero {
  padding: 150px 0 82px;
  color: var(--text-white);
  background: linear-gradient(135deg, rgba(37, 33, 30, 0.82), rgba(37, 33, 30, 0.48)), var(--page-hero-image, linear-gradient(135deg, #6c3c4e, #b8848a));
  background-position: center;
  background-size: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 8px;
}

.section {
  padding: 74px 0;
}

.section__header {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section__header h2,
.feature-content h2,
.cta-section h2 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 400;
}

.section__header p {
  margin: 0 0 12px;
  color: var(--text-gray);
}

.problem-grid,
.feature-grid,
.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.problem-list {
  display: grid;
  gap: 16px;
}

.problem-list div,
.step-card,
.blog-list-item,
.content-frame,
.about-value-grid article {
  border-radius: var(--radius-md);
  background: var(--text-white);
  box-shadow: var(--shadow-card);
}

.problem-list div {
  padding: 22px;
}

.problem-list strong,
.problem-list span {
  display: block;
}

.steps-container,
.about-value-grid,
.content-faq-grid,
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  overflow: hidden;
}

.step-card img,
.blog-list-item__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.step-card h3,
.step-card p,
.blog-list-item__body,
.about-value-grid article {
  padding: 0 24px 24px;
}

.step-card h3 {
  margin: 24px 0 10px;
}

.feature-section {
  background: var(--bg-light);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 31 / 26;
  object-fit: cover;
}

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

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--primary-color);
}

.content-frame {
  padding: clamp(28px, 5vw, 56px);
}

.page-layout {
  max-width: 960px;
}

.article-kicker,
.blog-list-item__category {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-block + .article-block {
  margin-top: 42px;
}

.article-block h2 {
  margin: 0 0 16px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.25;
}

.article-block p {
  color: var(--text-gray);
}

.takeaway-box {
  border-left: 4px solid var(--primary-color);
  padding: 24px;
  background: var(--bg-light);
}

.content-table,
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #ececec;
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-light);
  color: var(--primary-color);
}

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

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

.blog-list-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
}

.blog-list-item--featured {
  grid-template-columns: 300px minmax(0, 1fr);
}

.blog-sidebar {
  display: grid;
  gap: 24px;
}

.blog-match-card,
.blog-popular {
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--text-white);
  box-shadow: var(--shadow-card);
}

.blog-popular-post {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.blog-popular-post img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.content-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-faq-grid article,
.cluster-card,
.page-cta {
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--bg-light);
}

.cluster-card {
  color: var(--primary-color);
  font-weight: 700;
}

.blog-list-extra {
  grid-column: 1 / -1;
}

.resource-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ececec;
}

.resource-link-list li {
  border-bottom: 1px solid #ececec;
}

.resource-link-list li:nth-child(odd) {
  border-right: 1px solid #ececec;
}

.resource-link-list a {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.resource-link-list a:hover {
  background: var(--bg-light);
}

.page-cta,
.cta-section {
  text-align: center;
}

.cta-section {
  padding: 80px 0;
  color: var(--text-white);
  background: var(--bg-dark);
}

.site-footer {
  padding: 58px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--bg-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--text-white);
  font-size: 15px;
}

.footer-grid a:not(.site-logo) {
  display: block;
  margin: 8px 0;
}

@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav__list {
    display: none;
  }

  .hero-section {
    min-height: 560px;
  }

  .problem-grid,
  .feature-section,
  .about-story-grid,
  .blog-index-layout,
  .blog-list-item,
  .blog-list-item--featured {
    grid-template-columns: 1fr;
  }

  .steps-container,
  .about-value-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 52px 0;
  }

  .hero__content h1,
  .page-hero h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .hero__actions,
  .steps-container,
  .about-value-grid,
  .content-faq-grid,
  .cluster-grid,
  .resource-link-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .resource-link-list li:nth-child(odd) {
    border-right: 0;
  }

  .btn,
  .hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-white);
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.hamburger-icon::before {
  transform: translateY(-8px);
}

.hamburger-icon::after {
  transform: translateY(6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::before {
  transform: translateY(0) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::after {
  transform: translateY(-2px) rotate(-45deg);
}

@media (max-width: 980px) {
  .site-nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 24px;
    background: rgba(51, 51, 51, 0.98);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  }

  .site-nav__list.is-open {
    display: flex;
  }

  .site-nav__list li {
    width: 100%;
  }

  .site-nav__list a:not(.btn),
  .site-nav__list .btn {
    width: 100%;
    justify-content: flex-start;
  }
}

.content-index-section {
  padding-top: 64px;
}

.article-block ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  margin: 14px 0 0;
  color: var(--text-gray);
}

.article-block li {
  line-height: 1.75;
}

.content-index-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 56px;
  align-items: start;
}

.content-index-main {
  min-width: 0;
}

.content-index-item {
  margin: 0 0 48px;
}

.content-index-item h2 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--primary-color);
}

.content-index-item h2 a {
  color: inherit;
}

.content-index-item h2 a:hover,
.content-index-more:hover,
.popular-post:hover {
  color: var(--primary-color);
}

.content-index-item__row {
  display: grid;
  grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.content-index-item__media {
  display: block;
  background: #f4f4f4;
}

.content-index-item__media img {
  display: block;
  width: 100%;
  aspect-ratio: 520 / 340;
  object-fit: cover;
}

.content-index-item__body p {
  margin: 0;
  color: var(--text-gray);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.content-index-more {
  color: var(--primary-color);
  font-weight: 700;
  white-space: nowrap;
}

.content-index-sidebar {
  position: sticky;
  top: 24px;
  min-width: 0;
}

.match-filter-card {
  border: 1px solid #dedede;
  background: #fff;
}

.match-filter-card h2 {
  margin: 0;
  padding: 18px 20px;
  background: var(--text-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}

.match-filter-form {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.match-filter-field label,
.match-filter-label {
  display: block;
  margin: 0 0 8px;
  color: var(--text-dark);
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}

.match-filter-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #dedede;
  border-radius: 0;
  background: #fff;
  color: #1d1d1d;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
}

.match-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.match-filter-button {
  min-height: 54px;
  border: 0;
  background: #1b1b1b;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.match-filter-button:hover {
  background: var(--primary-color);
}

.popular-posts-card {
  margin-top: 52px;
}

.popular-posts-card h2 {
  margin: 0 0 18px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

.popular-post {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.popular-post img {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: cover;
}

.child-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.child-pagination__button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #ececec;
  border-radius: 0;
  color: var(--text-dark);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.child-pagination__button.is-active {
  border-color: var(--primary-color);
  color: var(--text-white);
  background: var(--primary-color);
}

@media (max-width: 980px) {
  .content-index-layout {
    grid-template-columns: 1fr;
  }

  .content-index-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .content-index-section {
    padding-top: 44px;
  }

  .content-index-item {
    margin-bottom: 40px;
  }

  .content-index-item h2 {
    margin-bottom: 16px;
    font-size: 28px;
  }

  .content-index-item__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .content-index-item__body p {
    font-size: 16px;
  }

  .match-filter-card h2 {
    font-size: 26px;
  }
}
