/* =====================================================================
   home.web.css — Desktop (≥900px) homepage styles.
   Loaded only via media query in views_home.php so mobile is untouched.

   Design tokens (from spec):
     #101010  page/dark bg, button bg
     #FF501C  brand orange (active nav, hero titles)
     #FAF8F7  footer bg
     #5C5C5C  secondary text
     #201C14  footer text
     #63605B  placeholder / borders
     #D3D2D0  carousel button border
     #333333  button hover
     #E9E8E7  footer divider
   ===================================================================== */

/* ---- App-shell override (mobile shell wraps everything as a phone-frame;
       desktop needs to break out of that and go full-bleed) -------------- */
.app-shell {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #101010;
  min-height: 100vh;
}
body { background: #101010; }

/* ---- Web font (gfb) — WOFF2 with TTF fallback for older browsers --- */
@font-face {
  font-family: "gfb";
  src: url("../fonts/gfb-400.woff2") format("woff2"),
       url("../fonts/gfb-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "gfb";
  src: url("../fonts/gfb-500.woff2") format("woff2"),
       url("../fonts/gfb-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "gfb";
  src: url("../fonts/gfb-600.woff2") format("woff2"),
       url("../fonts/gfb-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Base ---------------------------------------------------------- */
.web-only {
  background: #101010;
  color: #fff;
  font-family: "gfb", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
}
.web-only *,
.web-only *::before,
.web-only *::after { box-sizing: border-box; }
.web-only a { text-decoration: none; }
.web-only img { display: block; max-width: 100%; }
.web-only button { font-family: inherit; cursor: pointer; }

/* ---- Buttons ------------------------------------------------------- */
.web-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.web-btn--primary { background: #FFFFFF; color: #101010; }
.web-btn--primary:hover { background: #f1f1f1; }

.web-btn--dark { background: #101010; color: #fff; }
.web-btn--dark:hover { background: #333333; }

.web-btn--outline {
  background: transparent;
  color: #101010;
  border: 2px solid #101010;
}
.web-btn--outline:hover { background: #f6f1f0; }

.web-btn--listen {
  background: #fff;
  color: #101010;
  width: 165px;
}
.web-btn--listen:hover { background: #f1f1f1; }
.web-btn__icon { flex: 0 0 13px; }
.web-btn__icon--pause,
.web-btn__label-pause { display: none; }
.web-btn--listen[data-listen-state="playing"] .web-btn__icon--play,
.web-btn--listen[data-listen-state="playing"] .web-btn__label-play { display: none; }
.web-btn--listen[data-listen-state="playing"] .web-btn__icon--pause,
.web-btn--listen[data-listen-state="playing"] .web-btn__label-pause { display: inline; }

/* ===================================================================
   1) HEADER (#101010 bg, 64px tall, full-bleed)
   =================================================================== */
.web-header {
  background: #101010;
  height: 64px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
}
.web-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.web-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.web-header__logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}
.web-header__logo-dot { color: #FF501C; }

.web-header__search {
  position: relative;
  width: 600px;
  max-width: 600px;
  height: 40px;
  background: #fff;
  border: 1px solid #63605B;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 20px;
  flex: 0 1 600px;
}
.web-header__search-input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  color: #16171B;
  font-family: inherit;
}
.web-header__search-input::placeholder { color: #797772; }
.web-header__search-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.web-header__nav {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}
.web-header__nav-link {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  line-height: 40px;
  transition: color .15s ease;
}
.web-header__nav-link:hover,
.web-header__nav-link.is-active { color: #FF501C; }

.web-header__lang {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  position: relative;
}
.web-header__lang-divider {
  display: inline-block;
  width: 1px;
  height: 23px;
  background: #5C5C5C;
}
.web-header__lang-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.web-header__lang-caret {
  transition: transform .15s ease;
}
.web-header__lang[aria-expanded="true"] .web-header__lang-caret,
.web-header__lang-btn[aria-expanded="true"] .web-header__lang-caret {
  transform: rotate(180deg);
}

/* Dropdown menu */
.web-header__lang-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  margin: 0;
  padding: 6px;
  min-width: 160px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 200;
}
.web-header__lang-btn[aria-expanded="true"] + .web-header__lang-menu {
  display: block;
}
.web-header__lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 14px;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}
.web-header__lang-option:hover { background: #2a2a2a; }
.web-header__lang-option.is-active { color: #FF501C; }
.web-header__lang-option-code {
  font-size: 12px;
  font-weight: 600;
  color: #797772;
  min-width: 24px;
}
.web-header__lang-option.is-active .web-header__lang-option-code { color: #FF501C; }

/* ===================================================================
   2) HERO (showcase + promo)
   The featured book on the right is positioned absolutely so it can
   extend UP into the showcase area (its vertical center sits roughly
   at the showcase/promo boundary).
   =================================================================== */
.web-hero { background: #101010; position: relative; }

/* a) Showcase: 2 auto-scrolling rows of book covers
      Spec: 1440x348 outer, 2 rows of 160x160 cards, 20px gaps,
            278x348 fade overlays left & right. */
.web-hero__showcase {
  position: relative;
  width: 100%;
  height: 348px;
  overflow: hidden;
}
.web-hero__row {
  height: 164px;       /* 160 cover + 4px (2px border allowance top/bottom) */
  overflow: hidden;
  position: relative;
}
.web-hero__row + .web-hero__row { margin-top: 20px; }
.web-hero__row-track {
  display: flex;
  gap: 20px;
  height: 100%;
  align-items: center;
  width: max-content;
  animation: web-hero-scroll 60s linear infinite;
}
.web-hero__row-track--reverse {
  animation-direction: reverse;
}
.web-hero__row:hover .web-hero__row-track { animation-play-state: paused; }

.web-hero__cover {
  width: 164px;
  height: 164px;
  padding: 2px;        /* room for active-state 2px white border */
  border-radius: 10px;
  flex-shrink: 0;
  cursor: pointer;
  transition: padding 0.1s ease;
}
.web-hero__cover img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}
.web-hero__cover:active {
  outline: 2px solid #fff;
  outline-offset: -2px;
  border-radius: 10px;
}

@keyframes web-hero-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.web-hero__fade {
  position: absolute;
  top: 0;
  width: 278px;
  height: 100%;
  pointer-events: none;
}
.web-hero__fade--left {
  left: 0;
  background: linear-gradient(to left, rgba(16,16,16,0) 0%, #101010 100%);
}
.web-hero__fade--right {
  right: 0;
  background: linear-gradient(to right, rgba(16,16,16,0) 0%, #101010 100%);
}

/* b) Promo split: text left, featured book right */
.web-hero__promo {
  width: 100%;
  height: 390px;
}
.web-hero__promo-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 48px 0 64px;
  display: flex;
  align-items: flex-start;
  gap: 64px;
  justify-content: space-between;
}
.web-hero__left {
  flex: 1 1 656px;
  max-width: 656px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.web-hero__title {
  font-size: 74px;
  line-height: 1.1;
  font-weight: 600;
  color: #FF501C;
  margin: 0;
  letter-spacing: -1.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.web-hero__subtitle {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #fff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.web-hero__left .web-btn { margin-top: 24px; margin-bottom: 40px; }

.web-hero__right {
  position: relative;
  right: 64px;
  z-index: 10;
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.web-hero__featured {
  display: block;
  width: 400px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}
.web-hero__featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================================================
   3) GOFREEBOOKS ORIGINALS (50/50 split, cream bg)
   Uses the same outer container (1440 + 120px side padding) as carousel
   rows, authors and footer — so the left edge of the image aligns with
   the left edge of "Trending" / "Authors" titles below.
   =================================================================== */
.web-originals {
  /* Spec: 1312 max-width centered, 64 top/bottom padding, 24 column gap. */
  color: #101010;
  max-width: 1312px;
  margin: 0 auto;
  padding: 64px 0;
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.web-originals__visual {
  flex: 1 1 0;
  min-width: 0;
  height: 483px;
  border-radius: 12px;
  overflow: hidden;
}
.web-originals__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.web-originals__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 0 8px;
}
.web-originals__title {
  font-size: 74px;
  line-height: 1;
  font-weight: 600;
  color: #FF501C;
  margin: 0;
  max-width: 446px;
}
.web-originals__desc {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #5C5C5C;
  margin: 0;
  max-width: 448px;
}
.web-originals__text .web-btn { align-self: flex-start; margin-top: 8px; }

/* Originals + carousel rows + authors run on a warm off-white area.
   Hero stays dark. */
.web-home {
  background: #FFFBFA;
  padding-bottom: 64px;
}

/* ===================================================================
   4) HORIZONTAL BOOK CAROUSEL ROWS
   =================================================================== */
.web-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 56px;
  position: relative;
}
.web-row:first-of-type { padding-top: 0; }
.web-row__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.web-row__title {
  font-size: 25px;
  font-weight: 500;
  color: #101010;
  margin: 0;
}
.web-row__more {
  font-size: 15px;
  font-weight: 400;
  color: #101010;
}
.web-row__more:hover { text-decoration: underline; }

.web-row__viewport {
  position: relative;
}
.web-row__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 0; /* room for hover shadow */
}
.web-row__track::-webkit-scrollbar { display: none; }

/* Carousel nav buttons (42x42 circles) */
.web-row__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #D3D2D0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.web-row__nav:hover,
.web-row__nav:focus-visible { border-color: #101010; outline: none; }
.web-row__nav--prev { left: -21px; }
.web-row__nav--next { right: -21px; }
.web-row__nav.is-hidden { display: none; }

/* Book card — Figma spec (192x380):
     - Card: 192 wide × 380 tall, rounded
     - Backplate (top): height 153px, colored from books.back_color
     - Cover: 132 × 174, top:24, horizontally centered → extends to y=198
       so the bottom ~45px overlaps the white area
     - Rest of card (y=153–380) is white with title + author + meta */
.web-card {
  flex: 0 0 192px;
  width: 192px;
  height: 350px;
  color: #101010;
  text-decoration: none;
  position: relative;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow .2s ease;

  /* Flex column so title/author sit together at the top of the text
     area and the meta row anchors to the bottom of the card. */
  display: flex;
  flex-direction: column;

  --card-tint: #EBEAE6;
}
.web-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.web-card__link {
  display: block;
  color: #101010;
  text-decoration: none;
  position: relative;
  z-index: 1;
  padding-top: 24px;          /* cover starts 24px from card top */
  flex: 1 1 auto;             /* take the space above the meta row */
  min-height: 0;
}

/* Colored backplate fills the top 153px of the card. */
.web-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 153px;
  background: var(--card-tint);
  z-index: 0;
}

.web-card__cover {
  width: 132px;
  height: 174px;
  margin: 0 auto;
  position: relative;
  z-index: 2;             /* above backplate */
  display: flex;
  align-items: center;
  justify-content: center;
}
.web-card__cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.web-card__title {
  margin: 14px 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: #101010;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Reserve exactly 2 lines so author always sits in the same place
     regardless of title length. */
  height: 2.5em;
}
.web-card__author {
  margin: 2px 16px 0;
  font-size: 13px;
  font-weight: 400;
  color: #5C5C5C;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta row: ★ duration (left) · format icons (right).
   Pinned to the bottom of the card (margin-top: auto pushes it down). */
.web-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: auto 16px 14px;     /* top:auto → stick to bottom; bottom:14px */
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.web-card__duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5C5C5C;
  font-size: 13px;
}
.web-card__star { flex-shrink: 0; }

/* Format icons reuse the existing repo SVGs (listen.svg, read_now.svg)
   via CSS mask so we can recolor without touching the source files. */
.web-card__formats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.web-card__fmt {
  display: inline-block;
  background-color: #101010;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
}
.web-card__fmt--audio {
  width: 16px;
  height: 16px;
  -webkit-mask-image: url('../images/icons/listen.svg');
          mask-image: url('../images/icons/listen.svg');
}
.web-card__fmt--ebook {
  width: 14px;
  height: 18px;
  -webkit-mask-image: url('../images/icons/read_now.svg');
          mask-image: url('../images/icons/read_now.svg');
}

/* ===================================================================
   5) AUTHORS SLIDER
   =================================================================== */
.web-authors {
  padding: 64px 0 0;
}
.web-authors__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
.web-authors__title {
  font-size: 74px;
  font-weight: 600;
  color: #FF501C;
  margin: 0 0 24px;
}
.web-authors__viewport { margin-bottom: 24px; }
.web-authors__track {
  gap: 0;  /* author cards have built-in 14px padding all around */
}

.web-author-card {
  flex: 0 0 228px;
  width: 228px;
  height: 286px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000514;
  text-decoration: none;
}
.web-author-card__avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: 0 9px 28px rgba(0,0,0,0.5);
  margin-bottom: 9px;
}
.web-author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.web-author-card__name {
  font-size: 20px;
  font-weight: 500;
  color: #000514;
  text-align: center;
  line-height: 1.2;
  max-width: 200px;
}

.web-authors__desc {
  font-size: 16px;
  font-weight: 400;
  color: #5C5C5C;
  margin: 24px 0 24px;
  max-width: 800px;
}

/* ===================================================================
   6) APP PROMO BANNER (1440 outer + 120px side padding = 1200 inner)
   =================================================================== */
.web-app-banner {
  /* Spec: 1312 max-width centered, 64px top margin from prior section. */
  max-width: 1312px;
  margin: 64px auto 0;
  padding: 0;
  display: flex;
  gap: 32px;
  align-items: stretch;
}
.web-app-banner__image {
  flex: 1 1 0;
  min-width: 0;
  height: 483px;
  border-radius: 12px;
  overflow: hidden;
}
.web-app-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.web-app-banner__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 0 8px;
}
.web-app-banner__title {
  font-size: 74px;
  line-height: 0.975;
  font-weight: 600;
  color: #FF501C;
  margin: 0;
  letter-spacing: -1.05px;
}
.web-app-banner__desc {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  color: #5C5C5C;
  margin: 0;
  letter-spacing: -0.02px;
}
.web-app-banner__text .web-btn { align-self: flex-start; }

/* ===================================================================
   7) FOOTER
   =================================================================== */
.web-footer {
  background: #FAF8F7;
  color: #201C14;
}
.web-footer__inner {
  /* Spec: 1248px container (12-col grid, 24 gap). 40 top, 34 bottom. */
  max-width: 1248px;
  min-width: 320px;
  margin: 0 auto;
  padding: 40px 0 34px;
}

.web-footer__cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: start;
}
/* 12-col layout: About 2 + Explore 2 + Legal 2 + Social 2 + Apps 4 = 12. */
.web-footer__col {
  grid-column: span 2;
  min-width: 0;
}
.web-footer__col--apps {
  grid-column: span 4;
  min-width: 0;
}
.web-footer__col-title {
  /* Spec: Regular 15px, 16px gap to first link below. */
  font-size: 15px;
  font-weight: 400;
  color: #201C14;
  margin: 0 0 16px;
}
.web-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.web-footer__list li { padding: 0; }
.web-footer__link {
  /* Spec: 180px Fill × 34px Hug hitbox, padding 4 top / 8 bottom,
     Regular 13px #201C14. */
  display: block;
  padding: 4px 0 8px;
  font-size: 13px;
  font-weight: 400;
  color: #201C14;
  line-height: 22px;
}
.web-footer__link:hover { text-decoration: underline; }

.web-footer__list--social .web-footer__link--social {
  /* Spec: icon + text row, padding-bottom 11.5 (≈12), gap 12 between
     icon and text, 12.7px Regular, line-height 22. */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 12px;
  font-size: 12.7px;
  line-height: 22px;
}
.web-footer__link--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Apps column (Get our free apps) — exact spec dimensions */
.web-footer__qr {
  /* Spec: 78×78, with 16px gap from the column title above. */
  width: 78px;
  height: 78px;
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
}
.web-footer__qr-caption {
  /* "Scan to download" — sits 16px below the QR, 16px above App Store. */
  font-size: 10.7px;
  color: #201C14;
  margin: 0 0 16px;
}
.web-footer__app-btn {
  /* Spec: 144 × 44 each, 12px gap between App Store and Google Play. */
  display: block;
  width: 144px;
  height: 44px;
  margin-bottom: 12px;
}
.web-footer__app-btn:last-child {
  /* 32px gap from Google Play to the sub-footer divider. */
  margin-bottom: 32px;
}
.web-footer__app-btn svg { display: block; }

.web-footer__divider {
  /* Spec: 1px tall, color #E9E8E7, spans the 1200 inner area. */
  border: 0;
  border-top: 1px solid #E9E8E7;
  margin: 0;
  height: 1px;
}

.web-footer__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
}
.web-footer__sub-links {
  /* Spec: left link group ("Audiobooks • eBooks • Collection • Categories"),
     line-height 18, font 11 Regular. */
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 18px;
}
.web-footer__sub-links li[aria-hidden="true"] { color: #201C14; font-size: 11px; }
.web-footer__sub-link {
  font-size: 11px;
  font-weight: 400;
  color: #201C14;
  line-height: 18px;
}
.web-footer__sub-link:hover { text-decoration: underline; }

.web-footer__sub-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #201C14;
}
.web-footer__lang-label {
  font-size: 10.5px;
}
.web-footer__lang-wrap {
  position: relative;
  display: inline-block;
}
.web-footer__lang-btn {
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  font-size: 11px;
  font-weight: 500;
  color: #201C14;
  cursor: pointer;
  font-family: inherit;
}
.web-footer__lang-caret {
  transition: transform .15s ease;
}
.web-footer__lang-btn[aria-expanded="true"] .web-footer__lang-caret {
  transform: rotate(180deg);
}

.web-footer__lang-menu {
  list-style: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  margin: 0;
  padding: 4px;
  min-width: 140px;
  background: #fff;
  border: 1px solid #E9E8E7;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 50;
}
.web-footer__lang-btn[aria-expanded="true"] + .web-footer__lang-menu {
  display: block;
}
.web-footer__lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: #201C14;
  border-radius: 6px;
  text-decoration: none;
}
.web-footer__lang-option:hover { background: #F5F3F1; }
.web-footer__lang-option.is-active { color: #FF501C; }
.web-footer__lang-option-code {
  font-size: 11px;
  font-weight: 600;
  color: #797772;
  min-width: 18px;
}
.web-footer__lang-option.is-active .web-footer__lang-option-code { color: #FF501C; }
.web-footer__sub-dot { color: #201C14; }
.web-footer__copy { color: #63605B; }

/* ===================================================================
   Responsive fallback: gracefully shrink under 1440px
   =================================================================== */
@media (max-width: 1440px) {
  .web-header__inner,
  .web-hero__promo-inner,
  .web-authors__inner,
  .web-footer__inner { padding-left: 24px; padding-right: 24px; }
  .web-originals { padding: 112px 24px 64px; }
  .web-row { padding-left: 24px; padding-right: 24px; }
  .web-app-banner { margin-left: 24px; margin-right: 24px; }
}

@media (max-width: 1100px) {
  .web-hero__promo-inner { flex-direction: column; }
  .web-hero__right { align-self: center; }
  .web-originals,
  .web-app-banner { flex-direction: column; }
  .web-originals__visual,
  .web-originals__text,
  .web-app-banner__image,
  .web-app-banner__text { max-width: 100%; flex-basis: auto; height: auto; }
  .web-hero__title,
  .web-originals__title,
  .web-authors__title,
  .web-app-banner__title { font-size: 56px; }
}
