:root {
  --navy: #0b2145;
  --red: #ef233c;
  --text: #4c5870;
  --line: #e9edf2;
  --soft-red: #fff5f6;
  --cream: #faf8f5;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(11, 33, 69, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  background: #ffffff;

  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  width: min(1200px, calc(100% - 40px));

  min-height: 82px;

  margin: 0 auto;

  display: flex;
  align-items: center;

  gap: 30px;
}

.brand img {
  width: 180px;
  max-height: 58px;

  object-fit: contain;
}

.main-nav {
  margin-left: auto;

  display: flex;
  align-items: center;

  gap: 28px;
}

.main-nav a {
  position: relative;

  color: var(--navy);

  text-decoration: none;

  font-size: 13px;
}

.main-nav a:hover {
  color: var(--red);
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 12px 20px;

  border-radius: 999px;

  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-red {
  background: var(--red);
  color: #ffffff;

  box-shadow:
    0 8px 20px
    rgba(239, 35, 60, 0.16);
}

.header-cta {
  min-width: 155px;
}

.article-shell {
  width: min(1200px, calc(100% - 40px));

  margin: 0 auto;

  padding-top: 20px;
}

.breadcrumbs {
  min-height: 42px;

  display: flex;
  align-items: center;

  gap: 9px;

  overflow: hidden;

  color: #768297;

  font-size: 12px;

  white-space: nowrap;
}

.breadcrumbs a {
  color: var(--navy);

  text-decoration: none;
}

.article-hero {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.04fr);

  gap: 44px;

  align-items: center;

  padding: 34px 0 42px;
}

.eyebrow {
  display: block;

  margin-bottom: 13px;

  color: var(--red);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.17em;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;

  color: var(--navy);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  line-height: 1.08;
}

.article-hero h1 {
  max-width: 600px;

  margin-bottom: 22px;

  font-size:
    clamp(
      42px,
      4.2vw,
      62px
    );

  letter-spacing: -0.025em;
}

.article-hero-copy > p {
  max-width: 600px;

  margin-bottom: 22px;

  color: var(--text);

  font-size: 17px;

  line-height: 1.7;
}

.article-meta {
  display: flex;

  flex-wrap: wrap;

  gap: 24px;

  margin: 22px 0;

  color: #68758a;

  font-size: 13px;
}

.hero-tags,
.tag-cloud {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;
}

.hero-tags a,
.tag-cloud a {
  padding: 6px 14px;

  border-radius: 999px;

  background: #fff0f1;

  color: var(--red);

  text-decoration: none;

  font-size: 11px;
}

.article-hero-image {
  position: relative;

  min-height: 355px;

  overflow: hidden;

  border-radius: 15px;

  background: var(--cream);
}

.article-hero-image img {
  width: 100%;
  height: 355px;

  object-fit: cover;
}

.image-note {
  position: absolute;

  top: 24px;
  right: 26px;

  color: var(--navy);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 22px;

  font-style: italic;

  text-align: right;
}

.image-note small {
  display: block;

  font-size: 13px;
}

.image-note b {
  display: block;

  color: var(--red);

  font-size: 21px;
}

.article-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 2fr)
    minmax(280px, 0.88fr);

  gap: 34px;

  align-items: start;
}

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

.article-content p,
.article-content li {
  color: var(--text);

  font-size: 16px;

  line-height: 1.72;
}

.article-content > p:first-of-type {
  font-size: 17px;
}

.article-content h2 {
  margin:
    46px
    0
    16px;

  font-size: 32px;

  letter-spacing: -0.02em;

  scroll-margin-top: 110px;
}

.article-content h2::before {
  content: "";

  display: inline-block;

  width: 4px;
  height: 28px;

  margin-right: 12px;

  border-radius: 4px;

  background: var(--red);

  vertical-align: -3px;
}

.article-content h3 {
  margin:
    34px
    0
    12px;

  font-size: 25px;
}

.article-content a {
  color: #cf1e34;

  text-decoration-thickness: 1px;

  text-underline-offset: 3px;
}

.toc {
  margin-bottom: 36px;

  padding: 25px 28px;

  border:
    1px solid
    #f4e9ea;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #fff7f7,
      #ffffff
    );
}

.toc h2 {
  margin:
    0
    0
    15px;

  font-size: 22px;
}

.toc h2::before {
  display: none;
}

.toc ol {
  margin: 0;

  padding-left: 24px;
}

.toc li {
  margin: 5px 0;
}

.toc a {
  color: var(--navy);
}

.article-steps {
  counter-reset: articleSteps;

  margin: 24px 0;

  padding: 0;

  list-style: none;
}

.article-steps li {
  position: relative;

  min-height: 54px;

  padding:
    12px
    0
    12px
    54px;

  border-bottom:
    1px solid
    var(--line);
}

.article-steps li::before {
  counter-increment:
    articleSteps;

  content:
    counter(articleSteps);

  position: absolute;

  top: 10px;
  left: 0;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #ffe7e9;

  color: var(--red);

  font-weight: 800;
}

.check-list {
  padding: 0;

  list-style: none;
}

.check-list li {
  position: relative;

  margin: 9px 0;

  padding-left: 30px;
}

.check-list li::before {
  content: "✓";

  position: absolute;

  left: 0;
  top: 0;

  color: var(--red);

  font-weight: 900;
}

.article-callout {
  margin: 34px 0;

  padding: 25px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 24px;

  border-left:
    4px solid
    var(--red);

  border-radius: 14px;

  background:
    linear-gradient(
      120deg,
      #fff7f8,
      #ffffff
    );
}

.article-callout h3 {
  margin:
    4px
    0
    8px;

  font-size: 25px;
}

.article-callout p {
  margin: 0;
}

.article-sidebar {
  display: grid;

  gap: 18px;
}

.side-card {
  padding: 23px;

  border:
    1px solid
    var(--line);

  border-radius: 14px;

  background: #ffffff;

  box-shadow:
    var(--shadow);
}

.side-card h3 {
  margin-bottom: 18px;

  font-size: 24px;
}

.side-card h3 span {
  display: inline-block;

  width: 34px;
  height: 2px;

  margin-left: 8px;

  background: var(--red);

  vertical-align: middle;
}

.related-card {
  display: grid;

  grid-template-columns:
    86px
    1fr;

  gap: 13px;

  padding: 13px 0;

  border-top:
    1px solid
    var(--line);

  text-decoration: none;
}

.related-card:first-of-type {
  border-top: 0;
}

.related-card img {
  width: 86px;
  height: 70px;

  border-radius: 9px;

  object-fit: cover;
}

.related-card strong {
  display: block;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 17px;

  line-height: 1.22;
}

.related-card small {
  display: block;

  margin-top: 7px;

  color: #8994a6;

  font-size: 11px;
}

.consultation {
  background:
    linear-gradient(
      145deg,
      #fff6f7,
      #ffffff
    );
}

.consultation h3 {
  margin-bottom: 12px;

  font-size: 31px;
}

.consultation p {
  color: var(--text);
}

.full {
  width: 100%;

  margin:
    8px
    0
    17px;
}

.contact-list {
  margin: 0;

  padding: 0;

  color: var(--text);

  list-style: none;
}

.contact-list li {
  padding: 7px 0;

  font-size: 13px;
}

.contact-list a {
  text-decoration: none;
}

.site-footer {
  margin-top: 70px;

  padding:
    46px
    20px
    18px;

  background: var(--navy);

  color: #ffffff;
}

.footer-grid {
  max-width: 1200px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    1.7fr
    1fr
    1.2fr
    1fr;

  gap: 40px;
}

.footer-logo {
  width: 170px;

  padding: 6px;

  border-radius: 6px;

  background: #ffffff;
}

.footer-grid p {
  max-width: 320px;

  color: #d6deea;

  font-size: 13px;
}

.footer-grid h4 {
  margin-bottom: 12px;

  color: #ffffff;

  font-family:
    Arial,
    sans-serif;

  font-size: 12px;
}

.footer-grid a {
  display: block;

  margin: 7px 0;

  color: #d6deea;

  text-decoration: none;

  font-size: 12px;
}

.footer-bottom {
  max-width: 1200px;

  margin:
    28px
    auto
    0;

  padding-top: 18px;

  display: flex;

  justify-content:
    space-between;

  gap: 20px;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.12
    );

  color: #aebbd0;

  font-size: 10px;
}

.tag-intro {
  max-width: 760px;

  padding:
    56px
    0
    34px;
}

.tag-intro h1 {
  margin-bottom: 15px;

  font-size: 52px;
}

.tag-intro h1 em {
  color: var(--red);

  font-style: normal;
}

.tag-intro p {
  color: var(--text);

  font-size: 17px;
}

.tag-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;
}

.tag-card {
  overflow: hidden;

  border:
    1px solid
    var(--line);

  border-radius: 14px;

  background: #ffffff;

  box-shadow:
    var(--shadow);
}

.tag-card > a {
  text-decoration: none;
}

.tag-card img {
  width: 100%;
  height: 210px;

  object-fit: cover;
}

.tag-card-body {
  padding: 20px;
}

.tag-card small {
  color: #8b95a5;

  font-size: 11px;
}

.tag-card h2 {
  margin:
    8px
    0
    10px;

  font-size: 25px;
}

.tag-card p {
  color: var(--text);

  font-size: 14px;
}

.tag-card span {
  color: var(--red);

  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {

  .main-nav {
    display: none;
  }

  .brand img {
    width: 150px;
  }

  .header-cta {
    margin-left: auto;
  }

  .article-hero {
    grid-template-columns:
      1fr;
  }

  .article-hero-image {
    order: -1;
  }

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

  .article-sidebar {
    grid-template-columns:
      1fr 1fr;
  }

  .tag-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .footer-grid {
    grid-template-columns:
      1fr 1fr;
  }

}

@media (max-width: 620px) {

  .article-shell {
    width:
      calc(100% - 28px);
  }

  .nav-wrap {
    width:
      calc(100% - 28px);
  }

  .header-cta {
    min-width: auto;

    padding:
      10px
      13px;

    font-size: 11px;
  }

  .article-hero {
    gap: 20px;

    padding-top: 20px;
  }

  .article-hero h1 {
    font-size: 39px;
  }

  .article-hero-copy > p {
    font-size: 15px;
  }

  .article-hero-image {
    min-height: 245px;
  }

  .article-hero-image img {
    height: 245px;
    min-height: 245px;
  }

  .image-note {
    top: 17px;
    right: 18px;

    font-size: 17px;
  }

  .article-content h2 {
    font-size: 27px;
  }

  .article-callout {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

  .article-sidebar,
  .tag-grid,
  .footer-grid {
    grid-template-columns:
      1fr;
  }

  .footer-bottom {
    flex-direction:
      column;
  }

}