/*
  G8G Game Club — clean, content-first design
  --------------------------------------------------
  White background, system fonts, very few effects.
  Layout colours, spacing, and maximum content width
  can be edited here without touching any HTML page.
*/

:root {
  --background: #ffffff;
  --text: #20242b;
  --muted: #525a67;
  --border: #dfe3e8;
  --soft: #f7f8fa;
  --link: #1455a0;
  --link-hover: #0c356c;
  --max-width: 1060px;
  --radius: 6px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.65 var(--font);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.13rem;
  margin-bottom: 9px;
}

p {
  margin-bottom: 16px;
  color: var(--muted);
}

em {
  font-style: normal;
}

strong,
b {
  font-weight: 650;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #79a9ee;
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.skip-link:focus {
  top: 10px;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-width: 145px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-wordmark {
  display: inline-flex;
  gap: 4px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand-wordmark > span {
  color: var(--text);
}

.desktop-nav {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(10px, 1.6vw, 23px);
}

.desktop-nav a {
  color: #38404a;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--link);
}

.desktop-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  border: 1px solid var(--link);
  color: #ffffff;
  background: var(--link);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  color: #ffffff;
  background: var(--link-hover);
}

.menu-toggle {
  display: none;
  width: 39px;
  height: 39px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: #242b34;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 8px 0 12px;
}

.mobile-menu a {
  display: flex;
  justify-content: space-between;
  padding: 10px 2px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #eef0f2;
}

/* Homepage opening and essential app facts */
.home-hero {
  padding: 54px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  max-width: 810px;
}

.hero-lede,
.page-intro {
  font-size: 1.075rem;
  max-width: 780px;
}

.eyebrow,
.mini-label,
.process-no,
.provider-badge,
.count-pill {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.eyebrow-mark {
  display: none;
}

.hero-actions,
.closing-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 25px 0 12px;
}

.button {
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--link);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.button-dark {
  background: var(--link);
  color: #ffffff;
}

.button-dark:hover {
  background: var(--link-hover);
  color: #ffffff;
}

.button-outline,
.button-light {
  background: #ffffff;
  color: var(--link);
}

.button-outline:hover,
.button-light:hover {
  background: #f3f7fd;
}

.hero-footnote {
  font-size: 12px;
}

.spec-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--soft);
}

.spec-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 19px 0;
  gap: 14px;
}

.spec-row > div {
  min-width: 0;
}

.spec-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.spec-row strong {
  display: block;
  font-size: 15px;
}

/* Content blocks and page headers */
.section {
  padding-top: 42px;
  padding-bottom: 14px;
}

.section.top-tight {
  padding-top: 20px;
}

.section-heading {
  max-width: 850px;
}

.section-heading.two-col-head {
  display: block;
}

.section-heading p,
.page-intro {
  max-width: 780px;
}

.page-hero {
  padding: 44px 0 14px;
}

.page-hero h1 {
  max-width: 880px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 15px;
}

.breadcrumb a {
  color: var(--link);
}

/* Lists and app category explanations */
.fact-grid,
.values-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 36px;
  margin-top: 24px;
}

.fact-card,
.values-grid article,
.process-grid article {
  padding: 13px 0 12px;
  border-top: 1px solid var(--border);
}

.fact-card p,
.values-grid p,
.process-grid p {
  margin-bottom: 0;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.2fr);
  gap: 42px;
}

.category-stack {
  border-top: 1px solid var(--border);
}

.category-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 16px;
  gap: 15px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  text-decoration: none;
}

.category-line strong {
  color: var(--text);
}

.category-line span:not(.category-index) {
  font-size: 13px;
  color: var(--muted);
}

.category-index {
  display: none;
}

.category-line b {
  color: var(--link);
}

.editorial-panel {
  background: var(--soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 38px;
}

.editorial-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: 30px;
}

.editorial-inner h2 em {
  font-style: normal;
}

.editorial-inner a {
  font-weight: 600;
}

.final-section {
  padding-bottom: 55px;
}

/* Text-heavy informational pages */
.two-column-article {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 38px;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.75fr);
  gap: 42px;
}

.details-table {
  margin: 20px 0 30px;
  border-top: 1px solid var(--border);
}

.details-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) minmax(0, 1fr);
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.details-table [role="cell"]:first-child {
  color: var(--muted);
}

.info-side,
.info-sidebar,
.note-card,
.contact-side {
  background: var(--soft);
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.note-card h2,
.note-card h3 {
  font-size: 1.16rem;
}

.faq-block {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.download-faq-section {
  padding-top: 8px;
}

.download-faq-section .faq-items {
  width: 100%;
}

.download-faq-section .faq-items summary {
  display: block;
  width: 100%;
  padding: 2px 0;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .download-faq-section {
    padding-top: 4px;
  }

  .download-faq-section .faq-block {
    max-width: none;
  }

  .download-faq-section .faq-items details {
    padding: 14px 0;
  }

  .download-faq-section .faq-items summary {
    padding-right: 4px;
    line-height: 1.45;
  }

  .download-faq-section .faq-items details p {
    margin-top: 9px;
  }
}

.faq-items {
  border-top: 1px solid var(--border);
}

.faq-items details {
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}

.faq-items summary {
  cursor: pointer;
  font-weight: 650;
}

.faq-items details p {
  margin: 10px 0 0;
}

.legal-page {
  max-width: 900px;
}

.legal-page h2 {
  font-size: 1.22rem;
  margin-top: 29px;
}

.legal-page ul,
.info-layout ul,
.two-column-article ul {
  padding-left: 23px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.8fr);
  gap: 40px;
}

.contact-email,
.footer-email {
  overflow-wrap: anywhere;
}

.contact-email {
  display: inline-block;
  margin: 4px 0 16px;
  font-size: 20px;
  font-weight: 650;
}

/* APK page supporting information */
.aside-panel {
  align-self: start;
  padding: 20px 22px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.aside-panel h2,
.aside-panel h3 {
  font-size: 1.15rem;
}

/* Games directory: unobtrusive filters and readable grouped lists */
.directory-intro-extra {
  max-width: 800px;
  margin-top: 4px;
  font-size: 14px;
}

.directory-toolbar {
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.search-control label,
.filter-control > span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 590px);
  padding: 0 12px;
  border: 1px solid #c8d1dc;
  border-radius: var(--radius);
}

.search-field > span {
  color: var(--muted);
  font-size: 22px;
}

.search-field input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 43px;
  border: 0;
  background: transparent;
  color: var(--text);
}

.search-field input:focus {
  outline: none;
}

.search-field:focus-within {
  outline: 2px solid #78a9e4;
  outline-offset: 1px;
}

.filter-control {
  margin-top: 15px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-buttons button {
  padding: 7px 12px;
  border: 1px solid #cdd5de;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
}

.filter-buttons button[aria-pressed="true"] {
  background: var(--link);
  color: #ffffff;
  border-color: var(--link);
}

.filter-feedback {
  margin: 12px 0 0;
  font-size: 12px;
}

.catalog-list {
  padding-top: 12px;
}

.catalog-group,
.slots-heading {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.catalog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.catalog-heading > div {
  flex: 0 1 45%;
}

.catalog-heading > p {
  flex: 1;
  max-width: 570px;
}

.slots-heading {
  padding-bottom: 12px;
}

.provider-meta {
  display: flex;
  align-items: start;
  gap: 15px;
}

.provider-meta > div:nth-child(2) {
  flex: 1;
}

.provider-meta h3 {
  margin-bottom: 3px;
}

.provider-meta p {
  margin-bottom: 11px;
}

.provider-badge,
.count-pill {
  margin-top: 4px;
  white-space: nowrap;
}

.game-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 6px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.game-pills li {
  padding: 5px 0 5px 16px;
  position: relative;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.game-pills li::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  top: 17px;
  left: 3px;
  border-radius: 50%;
  background: #74859b;
}

.catalog-note {
  max-width: 100%;
}

.empty-results {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

/* Footer */
.site-footer {
  margin-top: 50px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1.1fr;
  gap: 28px;
}

.footer-name {
  display: inline-block;
  font-size: 19px;
  font-weight: 750;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 9px;
}

.footer-dot {
  color: var(--link);
}

.footer-intro p,
.footer-status p {
  font-size: 13px;
}

.footer-email {
  font-size: 13px;
}

.footer-links .footer-heading,
.footer-status .footer-heading {
  display: block;
  font-size: 13px;
  margin-bottom: 9px;
}

.footer-links a {
  display: block;
  margin: 7px 0;
  font-size: 13px;
  text-decoration: none;
}

.status-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  margin-top: 25px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* Mobile and tablet */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    gap: 14px;
    justify-content: space-between;
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu:not([hidden]) {
    display: block;
  }

  .home-hero {
    padding-top: 34px;
  }

  .spec-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 30px);
  }

  body {
    font-size: 15px;
  }

  .nav-cta {
    padding: 8px 10px;
    font-size: 12px;
  }

  .header-inner {
    gap: 9px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 37px;
    height: 37px;
  }

  .brand-wordmark {
    font-size: 19px;
  }

  .page-hero {
    padding-top: 30px;
  }

  .hero-lede,
  .page-intro {
    font-size: 16px;
  }

  .section {
    padding-top: 30px;
  }

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

  .fact-grid,
  .values-grid,
  .process-grid,
  .section-split,
  .editorial-inner,
  .two-column-article,
  .info-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .category-line {
    grid-template-columns: minmax(0, 1fr) 18px;
    gap: 4px;
  }

  .category-line strong,
  .category-line span:not(.category-index) {
    grid-column: 1;
  }

  .category-line b {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .catalog-heading {
    display: block;
  }

  .game-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }

  .provider-meta {
    gap: 9px;
  }

  .footer-main {
    gap: 20px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin: 3px 0;
  }
}

@media (max-width: 380px) {
  .nav-cta span {
    display: none;
  }

  .nav-cta {
    padding: 7px 8px;
  }

  .brand-wordmark {
    font-size: 17px;
  }

  .game-pills {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Readable, SEO-focused games directory enhancements */
.game-guide {
  padding-top: 10px;
  padding-bottom: 6px;
}

.game-guide h2,
.game-faq h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.game-guide > p,
.game-faq > p {
  max-width: 780px;
}

.catalog-jump-links,
.provider-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 14px;
  padding: 10px 0;
}

.catalog-jump-links a,
.provider-links a {
  color: var(--link);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.provider-links {
  width: 100%;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Keep the extended provider descriptions readable across device widths. */
.provider-content {
  flex: 1;
  min-width: 0;
}

.provider-meta h3 {
  font-size: clamp(20px, 2vw, 24px);
}

.catalog-group,
.slots-heading {
  scroll-margin-top: 90px;
}

.game-faq {
  padding-top: 32px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
}

.faq-item p {
  padding-top: 10px;
  margin-bottom: 0;
  max-width: 820px;
}

.game-faq-footer {
  margin-top: 20px;
}

@media (max-width: 600px) {
  .catalog-jump-links,
  .provider-links {
    gap: 10px 16px;
  }
}

.provider-meta > div {
  flex: 1;
  min-width: 0;
}

/* Footer navigation: clear, compact, and keyboard accessible. */
.footer-links .footer-heading, .footer-status .footer-heading {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 9px;
  color: var(--text);
}
.footer-links a:focus-visible, .footer-email:focus-visible, .footer-name:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

/* Download CTA placement and full-width APK content */
.top-download-actions {
  margin-top: 20px;
  margin-bottom: 0;
}

.info-layout.info-layout-full {
  display: block;
  max-width: 880px;
}

.download-status {
  font-size: 13px;
  color: var(--muted);
}

/* On mobile/tablet, the Download CTA lives at the end of the three-dot menu. */
@media (max-width: 900px) {
  .nav-end > .nav-cta { display: none; }
  /* Keep the Download page item aligned like the other mobile navigation links.
     The separate Download G8G Game CTA below is intentionally unchanged. */
  #mobile-menu > a[href="download.html"] {
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: var(--text);
    background: transparent;
    font-weight: 400;
    text-align: left;
  }
}

/* Download link in mobile navigation matches all other menu items. */
@media (max-width: 900px) {
  #mobile-menu > a.mobile-download-link,
  #mobile-menu > a.mobile-download-link:link,
  #mobile-menu > a.mobile-download-link:visited,
  #mobile-menu > a.mobile-download-link:hover,
  #mobile-menu > a.mobile-download-link:active {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #20242b;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #eef0f2;
    box-shadow: none;
    font-size: inherit;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
  }
  #mobile-menu > a.mobile-download-link > span { color: inherit; }
}


/* Mobile three-dot menu: match the desktop Download G8G Game CTA exactly. */
@media (max-width: 900px) {
  #mobile-menu > a.mobile-download-link,
  #mobile-menu > a.mobile-download-link:link,
  #mobile-menu > a.mobile-download-link:visited {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 12px auto 4px;
    padding: 11px 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--link);
    color: #ffffff;
    border: 1px solid var(--link);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
  }
  #mobile-menu > a.mobile-download-link:hover,
  #mobile-menu > a.mobile-download-link:active {
    background-color: var(--link-hover);
    color: #ffffff;
    border-color: var(--link-hover);
  }
  #mobile-menu > a.mobile-download-link > span { color: inherit; }
}

/* Account access section */
.account-access .account-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .account-access .account-facts {
    grid-template-columns: 1fr;
  }
}

/* Account access section */
.account-access .account-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .account-access .account-facts { grid-template-columns: 1fr; } }


/* Download-page content blocks */
.intro-callout {
  border: 1px solid var(--border);
  background: var(--soft);
  padding: 22px;
  margin-bottom: 26px;
}
.intro-callout strong { display: block; font-size: 1.12rem; margin-bottom: 7px; }
.intro-callout p { margin-bottom: 16px; }

@media (max-width: 900px) {
  .mobile-menu { display: block; }
  .mobile-menu .mobile-download-link {
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid var(--link);
    background: var(--link);
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius);
  }
  .mobile-menu .mobile-download-link:hover { color: #fff; background: var(--link-hover); }
}


/* Homepage image slider */
.home-slider {
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.slider-heading {
  display: none;
}

.slider {
  position: relative;
  width: min(100%, 380px);
  margin-inline: auto;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f7f8fa;
}

.slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f4f7;
}

.slide {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.slide[hidden] {
  display: none;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
}

.slider-control:hover,
.slider-control:focus-visible {
  background: #ffffff;
  color: var(--link);
}

.slider-prev { left: 14px; }
.slider-next { right: 14px; }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  z-index: 2;
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #aab1bb;
  cursor: pointer;
}

.slider-dot.is-active {
  background: var(--link);
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-slider {
    max-width: 380px;
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .home-hero {
    padding-top: 34px;
    gap: 22px;
  }

  .home-slider {
    width: min(100%, 340px);
  }

  .slider {
    width: 100%;
  }

  .slider-control {
    width: 32px;
    height: 32px;
    font-size: 23px;
  }

  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
}

