.guide-page {
  min-height: 100vh;
}

.guide-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.guide-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.guide-header__brand img {
  width: 44px;
  height: auto;
}

.guide-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.guide-header__nav a {
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.guide-header__nav a:hover,
.guide-breadcrumb a:hover,
.guide-related__card:hover h3 {
  text-decoration: underline;
}

.guide-language {
  position: relative;
  font-size: 14px;
  font-weight: 700;
}

.guide-language summary {
  padding: 8px 26px 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.7);
  position: relative;
}

.guide-language summary::-webkit-details-marker {
  display: none;
}

.guide-language summary::after {
  content: '⌄';
  position: absolute;
  right: 10px;
  top: 6px;
}

.guide-language[open] summary::after {
  transform: rotate(180deg);
}

.guide-language__menu {
  width: 168px;
  padding: 8px;
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(3, 7, 18, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(3, 7, 18, 0.14);
}

.guide-language__menu a {
  padding: 9px 10px;
  border-radius: 10px;
}

.guide-language__menu a:hover,
.guide-language__menu a[aria-current='page'] {
  background: var(--white-gray);
  text-decoration: none;
}

.guide-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 40px 0;
}

.guide-breadcrumb {
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(3, 7, 18, 0.66);
  font-size: 13px;
  line-height: 22px;
}

.guide-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: center;
  margin-bottom: 56px;
}

.guide-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.guide-hero__eyebrow {
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: 0.06em;
}

.guide-hero__title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.42;
}

.guide-hero__lead {
  font-size: 18px;
  line-height: 30px;
}

.guide-hero__image {
  min-height: 0;
  aspect-ratio: 3 / 2;
  background: var(--white);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.guide-article {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-section {
  padding: 24px;
  background: var(--white);
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 32px;
}

.guide-section:nth-child(even) .guide-section__media {
  order: 2;
}

.guide-section__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
}

.guide-section__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.guide-section__content {
  min-width: 0;
}

.guide-section h2 {
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 40px;
}

.guide-section p,
.guide-section li {
  font-size: 16px;
  line-height: 29px;
}

.guide-section p + p {
  margin-top: 12px;
}

.guide-section ul,
.guide-section ol {
  margin-top: 16px;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.guide-section li::marker {
  color: var(--orange);
  font-weight: 800;
}

.guide-tip {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(234, 88, 12, 0.09);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 26px;
}

.guide-related {
  margin-top: 56px;
}

.guide-related__title {
  margin-bottom: 20px;
  font-size: 28px;
  line-height: 40px;
}

.guide-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-related__card {
  min-height: 0;
  padding: 0;
  background: var(--white);
  border-radius: 20px;
  color: var(--black);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.guide-related__thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.guide-related__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.guide-related__card:hover .guide-related__thumb img {
  transform: scale(1.025);
}

.guide-related__content {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-related__card span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.guide-related__card h3 {
  font-size: 17px;
  line-height: 27px;
}

.guide-cta {
  margin-top: 56px;
  padding: 48px;
  background: var(--black);
  border-radius: 32px;
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.guide-cta h2 {
  font-size: 30px;
  line-height: 42px;
}

.guide-cta p {
  max-width: 620px;
  font-size: 16px;
  line-height: 27px;
}

@media (max-width: 768px) {
  .guide-header {
    padding: 22px 24px;
  }

  .guide-header__nav > a:not(.guide-header__download) {
    display: none;
  }

  .guide-header__download {
    font-size: 14px;
  }

  .guide-main {
    padding: 28px 24px 0;
  }

  .guide-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }

  .guide-hero__title {
    font-size: 32px;
    line-height: 46px;
  }

  .guide-hero__lead {
    font-size: 16px;
    line-height: 27px;
  }

  .guide-hero__image {
    border-radius: 24px;
  }

  .guide-hero__image img {
    height: 100%;
  }

  .guide-section {
    padding: 18px;
    border-radius: 22px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .guide-section:nth-child(even) .guide-section__media {
    order: 0;
  }

  .guide-section__media {
    border-radius: 16px;
  }

  .guide-section h2 {
    font-size: 23px;
    line-height: 34px;
  }

  .guide-section p,
  .guide-section li {
    font-size: 15px;
    line-height: 27px;
  }

  .guide-related {
    margin-top: 40px;
  }

  .guide-related__grid {
    grid-template-columns: 1fr;
  }

  .guide-related__card {
    min-height: auto;
  }

  .guide-cta {
    margin-top: 40px;
    padding: 36px 24px;
    border-radius: 26px;
  }

  .guide-cta h2 {
    font-size: 24px;
    line-height: 36px;
  }
}

@media (max-width: 420px) {
  .guide-header__brand span {
    display: none;
  }

  .guide-header__nav {
    gap: 0;
  }
}
