/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  --navy: #013364;
  --mid-navy: #194e80;
  --logo-blue: #1a389a;
  --red: #d21621;
  --dark-red: #a90005;
  --orange: #ff8c00;
  --black: #000000;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #c6c6c6;
  --off-white: #f3f3f3;
  --pale-blue: #d1dfef;
  --input-bg: #efefef;
  --white: #ffffff;
  --fb-blue: #445a97;
  --pin-red: #d02c2c;

  --font: "Roboto", Arial, Helvetica, sans-serif;

  --page-width: 1440px;
  --content-max: 1340px;
  --content-col: 851px;
  --gutter: 50px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 20px;
  line-height: 1.5;
  color: var(--medium-gray);
  background: var(--white);
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
}

.btn--login {
  background: var(--mid-navy);
  color: var(--white);
  width: 131px;
  height: 59px;
  border-radius: 6px;
}

.btn--watch {
  background: var(--red);
  color: var(--white);
  width: 131px;
  height: 59px;
  border-radius: 6px;
}

.btn--order-now {
  background: var(--white);
  color: var(--black);
  height: 59px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 18px;
}

.btn--buy {
  background: var(--navy);
  color: var(--white);
  width: 298px;
  height: 60px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.header {
  background: var(--navy);
  height: 109px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: block;
  flex-shrink: 0;
}

.header__logo img {
  width: 126px;
  height: auto;
}

.header__actions {
  display: flex;
  gap: 20px;
  margin-left: auto;
  margin-right: 34px;
}

.header__menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   PROMO BAR
   ═══════════════════════════════════════════ */
.promo-bar {
  background: var(--red);
  min-height: 84px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 109px;
  z-index: 99;
}

.promo-bar__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
}

.promo-bar__text {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

/* ═══════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════ */
.main {
  max-width: var(--page-width);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   ARTICLE HERO (headline / byline / social)
   ═══════════════════════════════════════════ */
.article-hero {
  padding: 40px var(--gutter) 0;
}

.article-hero__headline {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  text-align: center;
  max-width: 1093px;
  margin: 0 auto 28px;
}

.article-hero__meta {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.article-hero__byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-hero__avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  flex-shrink: 0;
}

.article-hero__byline-by {
  font-size: 22px;
  font-weight: 400;
  color: var(--medium-gray);
}

.article-hero__byline-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

/* Social sharing icons */
.article-hero__social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.social-icon:hover {
  opacity: 0.85;
}

.social-icon--fb {
  background: var(--fb-blue);
}
.social-icon--x {
  background: var(--black);
}
.social-icon--generic {
  background: var(--black);
}
.social-icon--pin {
  background: var(--pin-red);
}
.social-icon--navy {
  background: var(--navy);
}
.social-icon--footer {
  background: rgba(255, 255, 255, 0.2);
}
.social-icon--footer:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ═══════════════════════════════════════════
   ARTICLE BODY WRAP (single centered column)
   ═══════════════════════════════════════════ */
.article-body-wrap {
  max-width: var(--content-col);
  margin: 0 auto;
  padding: 34px var(--gutter) 0;
}

.article-hero__figure {
  position: relative;
  width: 100%;
  margin: 0 0 34px;
}

.article-hero__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
}

.article-hero__video {
  aspect-ratio: 848 / 614;
  object-fit: cover;
}

.article-hero__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}

.article-hero__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

/* ═══════════════════════════════════════════
   ARTICLE BODY TEXT
   ═══════════════════════════════════════════ */
.article-body {
  margin-bottom: 52px;
}

.article-body p {
  font-size: 20px;
  font-weight: 400;
  color: var(--medium-gray);
  line-height: 1.3;
}

.article-body p + p {
  margin-top: 1.5em;
}

.article-body__conclusion {
  font-size: 20px;
  font-weight: 400;
  color: var(--medium-gray);
  line-height: 1.3;
  margin-bottom: 60px;
}

/* ═══════════════════════════════════════════
   PRODUCT BOX (centered)
   ═══════════════════════════════════════════ */
.product-box {
  margin: 0 auto 48px;
  display: flex;
  justify-content: center;
}

.product-box__inner {
  background: var(--off-white);
  border-radius: 13px;
  padding: 12px;
  width: 320px;
}

.product-box__img {
  width: 298px;
  height: 298px;
  border-radius: 9px;
  margin: 0 auto 12px;
  object-fit: cover;
}

.product-box__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.product-box__stars {
  display: flex;
  gap: 2px;
}

.product-box__rating-num {
  font-size: 20px;
  font-weight: 400;
  color: var(--medium-gray);
}

.product-box__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.product-box__orders {
  font-size: 18px;
  font-weight: 400;
  color: var(--medium-gray);
  margin-bottom: 12px;
}

.product-box__price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.product-box__price-old {
  font-size: 30px;
  font-weight: 700;
  color: var(--light-gray);
  text-decoration: line-through;
}

.product-box__price-new {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
}

/* ═══════════════════════════════════════════
   RELATED ARTICLES
   ═══════════════════════════════════════════ */
.related {
  margin-bottom: 60px;
}

.related__heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 24px;
}

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

.related__card {
  width: 100%;
}

.related__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 272 / 173;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}
.related__card-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: var(--white);
  margin-top: 80px;
}

.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 60px var(--gutter) 0;
  display: flex;
  gap: 124px;
}

.footer__brand {
  max-width: 433px;
}

.footer__logo {
  width: 173px;
  height: auto;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__col-heading {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 20px;
  font-weight: 400;
  transition: opacity 0.15s;
}

.footer__links a:hover {
  opacity: 0.7;
}

.footer__divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 50px 0 18px;
}

.footer__bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 400;
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 20px;
  font-weight: 400;
  transition: opacity 0.15s;
}

.footer__legal a:hover {
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET & BELOW: <1024px
   ═══════════════════════════════════════════ */
@media (max-width: 1023px) {
  :root {
    --gutter: 24px;
  }

  .promo-bar__inner {
    gap: 24px;
  }

  .article-hero__headline {
    font-size: 32px;
    max-width: 100%;
  }

  .footer__inner {
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer__brand {
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE: <768px
   ═══════════════════════════════════════════ */
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  html,
  body {
    overflow-x: clip;
    font-size: 16px;
  }

  .header {
    height: 56px;
  }

  .header__inner {
    padding: 0 12px;
  }

  .header__logo img {
    width: 56px;
  }

  .header__actions {
    gap: 6px;
    margin-right: 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  .btn--login,
  .btn--watch {
    width: auto;
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .header__menu-toggle {
    padding: 2px;
  }

  .header__menu-toggle svg {
    width: 24px;
    height: 16px;
  }

  /* Promo bar */
  .promo-bar {
    min-height: 0;
    top: 56px;
  }

  .promo-bar__inner {
    gap: 12px;
    text-align: center;
  }

  .promo-bar__text {
    font-size: 14px;
  }

  .btn--order-now {
    height: 34px;
    font-size: 14px;
  }

  .article-hero {
    padding: 20px 0 0;
  }

  .article-hero__headline {
    font-size: 24px;
    text-align: center;
    padding: 0 var(--gutter);
    line-height: 1.3;
  }

  .article-hero__meta {
    justify-content: center;
    padding: 0 var(--gutter);
  }

  .article-hero__byline-name,
  .article-hero__byline-by {
    font-size: 15px;
  }

  .article-hero__byline-by {
    display: inline;
    margin-right: 4px;
  }

  .article-hero__avatar {
    width: 40px;
    height: 40px;
  }

  .article-hero__social {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 var(--gutter);
    gap: 8px;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }

  .social-icon svg {
    width: 14px;
    height: 14px;
  }

  .article-body-wrap {
    padding: 40px var(--gutter) 0;
  }

  .article-hero__figure {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .article-hero__play {
    width: 56px;
    height: 56px;
  }

  .article-hero__play svg {
    width: 20px;
    height: 24px;
  }

  .article-body {
    margin-bottom: 32px;
  }

  .article-body p,
  .article-body__conclusion {
    font-size: 16px;
    line-height: 1.5;
  }

  .article-body__conclusion {
    margin-bottom: 40px;
  }

  .product-box {
    margin-bottom: 32px;
  }

  .product-box__inner {
    width: 100%;
    max-width: 320px;
  }

  .product-box__img {
    width: 100%;
    height: auto;
  }

  .product-box__price-old,
  .product-box__price-new {
    font-size: 22px;
  }

  .btn--buy {
    width: 100%;
    height: 48px;
    font-size: 18px;
  }

  .product-box__rating-num {
    font-size: 18px;
  }

  .related {
    margin-bottom: 40px;
  }

  .related__heading {
    font-size: 22px;
    margin-bottom: 8px;
  }

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

  .related__card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-top: 1px solid #dddddd;
    padding: 14px 0;
    width: 100%;
  }

  .related__card:last-child {
    border-bottom: 1px solid #dddddd;
  }

  .related__card img {
    width: 120px;
    min-width: 120px;
    height: 76px;
    aspect-ratio: auto;
    object-fit: cover;
    margin-bottom: 0;
  }

  .related__card-text {
    font-size: 15px;
  }

  .footer {
    margin-top: 40px;
  }

  .footer__inner {
    display: grid;
    gap: 28px;
    padding: 36px var(--gutter) 0;
  }

  .footer__brand {
    max-width: 100%;
    flex-basis: auto;
    grid-column: 1 / -1;
  }

  .footer__logo {
    width: 120px;
    margin-bottom: 24px;
  }

  .footer__col-heading {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .footer__links {
    gap: 8px;
  }

  .footer__links a {
    font-size: 15px;
  }

  .footer__divider {
    margin: 30px 0 14px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 var(--gutter) 36px;
    font-size: 13px;
  }

  .footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer__legal a {
    font-size: 13px;
  }

  .social-icon--footer svg {
    width: 14px;
    height: auto;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL PHONES: <370px
   ═══════════════════════════════════════════ */
@media (max-width: 370px) {
  .article-hero__headline {
    font-size: 21px;
  }

  .related__card img {
    width: 100px;
    min-width: 100px;
    height: 64px;
  }

  .btn--login,
  .btn--watch {
    padding: 0 8px;
    font-size: 12px;
  }
}
