@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --guide-ink: #123d2d;
  --guide-ink-soft: #526c62;
  --guide-green: #1f7653;
  --guide-green-dark: #12452f;
  --guide-mint: #def1e5;
  --guide-sage: #eef5ec;
  --guide-sand: #f3ead7;
  --guide-paper: #fbfaf5;
  --guide-white: #fff;
  --guide-line: rgba(18, 61, 45, 0.14);
  --guide-shadow: 0 22px 65px rgba(25, 70, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--guide-ink);
  background:
    radial-gradient(circle at 8% 0, rgba(190, 232, 204, 0.55), transparent 31rem),
    radial-gradient(circle at 92% 26rem, rgba(239, 220, 178, 0.38), transparent 29rem),
    var(--guide-paper);
  font-family: "DM Sans", system-ui, sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.guide-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  border-radius: 999px;
  background: var(--guide-green-dark);
  transform: translateY(-150%);
}

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

.guide-main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 84px;
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--guide-ink-soft);
  font-size: 0.84rem;
}

.guide-breadcrumb a {
  font-weight: 700;
  text-decoration: none;
}

.guide-breadcrumb a:hover,
.guide-breadcrumb a:focus-visible {
  text-decoration: underline;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--guide-shadow);
}

.guide-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 84px);
}

.guide-kicker {
  margin: 0 0 14px;
  color: var(--guide-green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.guide-hero h1,
.guide-hub-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.05rem, 6.5vw, 6rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.guide-hero h1 em {
  color: var(--guide-green);
  font-style: italic;
  font-weight: 600;
}

.guide-lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--guide-ink-soft);
  font-size: clamp(1.04rem, 1.6vw, 1.23rem);
  line-height: 1.75;
}

.guide-hero-actions,
.guide-cta-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.guide-button-primary {
  color: #fff;
  border-color: var(--guide-green);
  background: var(--guide-green);
}

.guide-button:hover,
.guide-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(18, 61, 45, 0.12);
}

.guide-hero-visual {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background-color: var(--guide-mint);
  background-position: center;
  background-size: cover;
}

.guide-hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(13, 48, 34, 0.72));
}

.guide-hero-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
}

.guide-hero-note strong {
  display: block;
  max-width: 440px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.guide-hero-note span {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(13, 48, 34, 0.3);
  font-size: 0.74rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.guide-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 24px;
  background: var(--guide-line);
}

.guide-facts div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.guide-facts strong,
.guide-facts span {
  display: block;
}

.guide-facts strong {
  font-family: "Playfair Display", serif;
  font-size: 1.32rem;
}

.guide-facts span {
  margin-top: 5px;
  color: var(--guide-ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  margin-top: 72px;
}

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

.guide-section {
  padding: 0 0 66px;
  scroll-margin-top: 104px;
}

.guide-section + .guide-section {
  padding-top: 66px;
  border-top: 1px solid var(--guide-line);
}

.guide-section h2,
.guide-hub-section h2 {
  max-width: 820px;
  margin: 0 0 24px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 4.7vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.guide-section h3 {
  margin: 32px 0 10px;
  font-size: 1.15rem;
}

.guide-section p,
.guide-section li {
  color: var(--guide-ink-soft);
  font-size: 1.01rem;
  line-height: 1.78;
}

.guide-section p {
  margin: 0 0 18px;
}

.guide-section a:not(.guide-button):not(.guide-card) {
  color: var(--guide-green-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.guide-toc {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--guide-line);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.84);
}

.guide-toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.guide-toc a {
  color: var(--guide-ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.guide-toc a:hover,
.guide-toc a:focus-visible {
  color: var(--guide-green);
}

.guide-route,
.guide-method {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: route;
}

.guide-route li,
.guide-method li {
  position: relative;
  padding: 22px 22px 22px 74px;
  border: 1px solid var(--guide-line);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.82);
  counter-increment: route;
}

.guide-route li::before,
.guide-method li::before {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--guide-green-dark);
  border-radius: 50%;
  background: var(--guide-mint);
  content: counter(route, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 800;
}

.guide-route strong,
.guide-method strong {
  display: block;
  margin-bottom: 5px;
  color: var(--guide-ink);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 28px;
}

.guide-card {
  display: flex;
  min-width: 0;
  min-height: 230px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  overflow: hidden;
  color: var(--guide-ink);
  border: 1px solid var(--guide-line);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--guide-sage), #fff);
  text-decoration: none;
}

.guide-card:nth-child(2n) {
  background: linear-gradient(145deg, var(--guide-sand), #fff);
}

.guide-card span {
  margin-bottom: auto;
  color: var(--guide-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.guide-card strong {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  line-height: 1.07;
}

.guide-card small {
  margin-top: 9px;
  color: var(--guide-ink-soft);
  line-height: 1.5;
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: rgba(31, 118, 83, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 17px 36px rgba(18, 61, 45, 0.1);
}

.guide-note {
  margin-top: 26px;
  padding: 22px 24px;
  border-left: 4px solid var(--guide-green);
  border-radius: 0 18px 18px 0;
  background: var(--guide-mint);
}

.guide-note p:last-child {
  margin-bottom: 0;
}

.guide-table-wrap {
  margin-top: 25px;
  overflow-x: auto;
  border: 1px solid var(--guide-line);
  border-radius: 22px;
  background: #fff;
}

.guide-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.guide-table th,
.guide-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--guide-line);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  color: var(--guide-green-dark);
  background: var(--guide-sage);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-faq details {
  border-top: 1px solid var(--guide-line);
}

.guide-faq details:last-child {
  border-bottom: 1px solid var(--guide-line);
}

.guide-faq summary {
  padding: 20px 4px;
  cursor: pointer;
  font-weight: 800;
}

.guide-faq details p {
  padding: 0 4px 20px;
}

.guide-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-top: 16px;
  padding: clamp(30px, 5vw, 58px);
  color: #fff;
  border-radius: 31px;
  background: linear-gradient(135deg, var(--guide-green-dark), var(--guide-green));
  box-shadow: var(--guide-shadow);
}

.guide-cta h2 {
  max-width: 700px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1;
}

.guide-cta p {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.guide-cta .guide-button {
  color: var(--guide-green-dark);
  background: #fff;
}

.guide-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px 20px;
  color: var(--guide-ink-soft);
  border-top: 1px solid var(--guide-line);
  font-size: 0.84rem;
}

.guide-footer a {
  font-weight: 700;
  text-decoration: none;
}

.guide-hub-hero {
  max-width: 940px;
  padding: clamp(48px, 10vw, 120px) 0 72px;
}

.guide-hub-hero p:last-child {
  max-width: 720px;
  color: var(--guide-ink-soft);
  font-size: 1.15rem;
  line-height: 1.75;
}

.guide-hub-section {
  padding: 54px 0;
  border-top: 1px solid var(--guide-line);
}

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

.guide-hub-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 29px;
  background: linear-gradient(150deg, var(--guide-mint), #fff);
  text-decoration: none;
}

.guide-hub-card:nth-child(2n) {
  background: linear-gradient(150deg, var(--guide-sand), #fff);
}

.guide-hub-card small {
  margin-bottom: auto;
  color: var(--guide-green);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-hub-card strong {
  max-width: 530px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.guide-hub-card span {
  margin-top: 17px;
  color: var(--guide-ink-soft);
  line-height: 1.6;
}

.guide-hub-card:hover,
.guide-hub-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--guide-shadow);
}

@media (max-width: 980px) {
  .guide-hero {
    grid-template-columns: 1fr;
  }

  .guide-hero-visual {
    min-height: 420px;
    order: -1;
  }

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

  .guide-toc {
    position: static;
    order: -1;
  }

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

@media (max-width: 720px) {
  .guide-main {
    width: min(100% - 20px, 1240px);
    padding-top: 14px;
  }

  .guide-breadcrumb {
    overflow: hidden;
    white-space: nowrap;
  }

  .guide-breadcrumb span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .guide-hero {
    border-radius: 25px;
  }

  .guide-hero-copy {
    padding: 30px 22px 36px;
  }

  .guide-hero-visual {
    min-height: 300px;
  }

  .guide-hero-note {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

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

  .guide-layout {
    gap: 36px;
    margin-top: 50px;
  }

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

  .guide-card {
    min-height: 200px;
  }

  .guide-route li,
  .guide-method li {
    padding: 20px 18px 20px 64px;
  }

  .guide-route li::before,
  .guide-method li::before {
    left: 15px;
  }

  .guide-cta {
    grid-template-columns: 1fr;
    align-items: start;
    border-radius: 25px;
  }
}

@media (max-width: 440px) {
  .guide-hero h1,
  .guide-hub-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .guide-hero-actions,
  .guide-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .guide-hero-note span {
    display: none;
  }
}

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