.guide-rac-page,
.guide-detail-page {
  --guide-blue: #4738de;
  --guide-lavender: #e4e6ff;
  --guide-red: #ec1c24;
  --guide-peach: #ffd2c3;
  --guide-text: #111827;
  background: #f7f7f7;
  color: var(--guide-text);
  font-family: 'Poppins', sans-serif;
}

.guide-hero {
  background: var(--guide-peach);
  padding: 58px 20px 28px;
  text-align: center;
}

.guide-hero__inner {
  max-width: 980px;
  margin: 0 auto;
}

.guide-hero h1,
.guide-detail-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--guide-text);
}

.guide-hero h1 {
  text-transform: uppercase;
}

.guide-hero h1::first-letter {
  color: inherit;
}

.guide-hero p {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.65;
}

.guide-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 660px;
  margin: 0 auto -24px;
  position: relative;
  z-index: 2;
}

.guide-stat {
  min-height: 96px;
  padding: 18px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(71, 56, 222, 0.12);
}

.guide-stat strong,
.guide-stat__icon {
  display: block;
  color: var(--guide-blue);
  font-size: 24px;
}

.guide-stat__icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.guide-stat span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.3;
}

.guide-hero__image {
  width: min(100%, 920px);
  height: 280px;
  display: block;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 10px;
}

.guide-cards {
  padding: 64px 20px;
}

.guide-cards__inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.guide-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8dcf6;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.guide-card > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 8px 0;
  padding: 0 8px;
  border-radius: 12px;
}

.guide-card__body {
  padding: 22px 22px 24px;
}

.guide-card h2 {
  max-width: 390px;
  margin: 0 0 10px;
  color: #222743;
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.guide-card h2::first-letter {
  color: inherit;
}
.guide-card h2 span {
  color: #9C0418;
}

.guide-card p {
  margin: 0 0 16px;
  color: #5b6175;
  font-size: 12px;
  line-height: 1.6;
}

.guide-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.guide-card li a,
.guide-local__grid a,
.guide-detail-content aside a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--guide-lavender);
  color: var(--guide-blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.guide-card__more {
  display: inline-block;
  margin-top: 18px;
  color: #111827;
  font-size: 11px;
  text-decoration: underline;
}

.guide-local {
  background: var(--guide-blue);
  padding: 60px 20px 70px;
  color: #fff;
  text-align: center;
}

.guide-category-cta {
  padding: 58px 20px 64px;
  background: var(--guide-accent, var(--guide-blue));
  color: #fff;
  text-align: center;
}

.guide-category-cta__inner {
  max-width: 820px;
  margin: 0 auto;
}

.guide-category-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
}

.guide-category-cta p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.86);
}

.guide-category-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  background: #bff574;
  color: var(--guide-blue);
  font-weight: 500;
  text-decoration: none;
  border: 2px solid #bff574;
  transition: all 0.25s;
}

.guide-category-cta a:hover {
  background: #E4E6FF;
  color: var(--guide-blue);
  border-color: #E4E6FF;
}

.guide-local__inner {
  max-width: 980px;
  margin: 0 auto;
}

.guide-local h2 {
  margin: 0 0 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 48px;
  font-weight: 500;
}

.guide-local p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
}

.guide-local__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 44px;
}

.guide-local__grid a {
  background: #fff;
  color: var(--guide-blue);
}

.guide-detail-hero {
  background: var(--guide-peach);
  padding: 64px 20px;
}

.guide-detail-hero__inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 60px;
  align-items: center;
}

.guide-detail-hero__back {
  color: var(--guide-accent, var(--guide-red));
  font-weight: 700;
  text-decoration: none;
}

.guide-detail-hero p {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
}

.guide-detail-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 16px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--guide-blue);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.guide-detail-hero__cta:hover {
  background: #E4E6FF;
  color: var(--guide-blue);
}

.guide-detail-hero img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 14px;
}

.guide-detail-content {
  padding: 64px 20px 84px;
  background: #fff;
}

.guide-detail-content__inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 58px;
}

.guide-detail-content article p {
  color: #30364b;
  font-size: 16px;
  line-height: 1.8;
}

.guide-detail-tip {
  margin-top: 30px;
  padding: 24px;
  border-radius: 16px;
  background: var(--guide-lavender);
}

.guide-detail-content aside {
  display: grid;
  align-content: start;
  gap: 12px;
}

.guide-detail-content aside h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.guide-sub-hero {
  padding: 70px 20px 64px;
  background: var(--guide-peach);
}

.guide-sub-hero__inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 80px;
  align-items: center;
}

.guide-sub-hero h1 {
  max-width: 430px;
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.08;
}

.guide-sub-hero p {
  max-width: 560px;
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.75;
}

.guide-sub-hero__cta,
.guide-sub-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--guide-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.guide-sub-hero__cta:hover,
.guide-sub-cta a:hover {
  background: #E4E6FF;
  color: var(--guide-blue);
}

.guide-sub-hero__stats {
  display: grid;
  gap: 16px;
}

.guide-sub-list {
  padding: 66px 20px;
  background: #f7f7f7;
}

.guide-sub-list__inner {
  max-width: 980px;
  margin: 0 auto;
}

.guide-sub-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 70px;
  padding: 38px 0;
  border-top: 1px solid #d9dce8;
}

.guide-sub-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.guide-sub-row h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.08;
}

.guide-sub-row h2::first-letter {
  color: var(--guide-accent, var(--guide-red));
}

.guide-sub-row p {
  margin: 0 0 12px;
  color: #464b5f;
  font-size: 14px;
  line-height: 1.65;
}

.guide-sub-row__more {
  color: #222743;
  font-size: 12px;
  text-decoration: underline;
}

.guide-sub-row__links {
  display: grid;
  gap: 10px;
  align-content: start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-sub-row__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--guide-lavender);
  color: var(--guide-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.guide-sub-cta {
  margin: 34px 0;
  padding: 42px 28px;
  border-radius: 14px;
  background: var(--guide-blue);
  color: #fff;
  text-align: center;
}

.guide-sub-cta h3 {
  margin: 0 0 20px;
  font-size: clamp(24px, 4vw, 34px);
}

.guide-sub-cta a {
  background: var(--guide-accent, var(--guide-red));
}

.guide-sub-cta p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.faq-hero .guide-detail-hero__inner {
  align-items: center;
}

.faq-hero__panel {
  min-height: 260px;
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 22px 55px rgba(17, 24, 39, 0.14);
}

.faq-hero__panel span {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--guide-accent, var(--guide-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
}

.faq-list {
  padding: 64px 24px 78px;
  background: #fff;
}

.faq-list__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
}

.faq-list__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-list__item {
  border: 1px solid #dfe3ff;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.faq-list__item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  color: var(--guide-text);
  font-size: 18px;
  font-weight: 800;
}

.faq-list__item summary::-webkit-details-marker {
  display: none;
}

.faq-list__item summary::after {
  content: "+";
  float: right;
  color: var(--guide-accent, var(--guide-blue));
  font-size: 24px;
  line-height: 1;
}

.faq-list__item[open] summary::after {
  content: "-";
}

.faq-list__item p {
  margin: 0;
  padding: 0 24px 22px;
  color: #3b4151;
  font-size: 16px;
  line-height: 1.7;
}

.faq-list__aside {
  align-self: start;
  position: sticky;
  top: 24px;
  border-radius: 12px;
  background: var(--guide-lavender);
  padding: 24px;
}

.faq-list__aside h2 {
  margin: 0 0 18px;
  font-size: 20px;
  color: var(--guide-text);
}

.faq-list__aside a {
  display: block;
  padding: 11px 0;
  color: var(--guide-blue);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .guide-hero {
    padding-top: 34px;
  }

  .guide-hero__stats,
  .guide-cards__inner,
  .guide-local__grid,
  .guide-detail-hero__inner,
  .guide-detail-content__inner,
  .faq-list__inner {
    grid-template-columns: 1fr;
  }

  .guide-hero__stats {
    max-width: 320px;
    margin-bottom: 18px;
  }

  .guide-hero__image {
    height: 210px;
  }

  .guide-cards {
    padding: 42px 18px;
  }

  .guide-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .guide-card > img {
    height: 160px;
  }

  .guide-card h2,
  .guide-card p {
    text-align: center;
  }

  .guide-detail-hero__inner,
  .guide-detail-content__inner {
    gap: 28px;
  }

  .guide-detail-hero img {
    height: 240px;
  }

  .faq-hero__panel {
    min-height: 180px;
  }

  .faq-hero__panel span {
    width: 120px;
    height: 120px;
    font-size: 32px;
  }

  .faq-list {
    padding: 42px 18px 56px;
  }

  .faq-list__aside {
    position: static;
  }

  .guide-sub-hero__inner,
  .guide-sub-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-sub-hero,
  .guide-sub-list {
    padding-inline: 18px;
  }

  .guide-sub-hero__intro,
  .guide-sub-row__text {
    text-align: center;
  }

  .guide-sub-hero h1,
  .guide-sub-hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .guide-sub-hero__stats {
    max-width: 320px;
    margin: 0 auto;
  }

  .guide-sub-row {
    padding: 34px 0;
  }
}
