:root {
  --color-primary: #ff7675;
  --color-secondary: #ff9999;
  --color-accent: #fff5e6;
  --color-bg: #fff9f6;
  --color-text: #2d2a26;
  --color-muted: #6b6560;
  --color-border: #f0e4dc;
  --color-white: #ffffff;
  --font-display: "Rubik", sans-serif;
  --font-body: "Mulish", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --gfc-page-w: 1120px;
  --gfc-header-h: 72px;
  --gfc-radius: 12px;
  --gfc-shadow: 0 10px 28px rgba(45, 42, 38, 0.08);
}

@media (max-width: 768px) {
  :root { --gfc-header-h: 64px; }
}

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html { scroll-padding-top: var(--gfc-header-h); }

body {
  margin: 0;
  padding-top: var(--gfc-header-h);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

a { color: var(--color-primary); }
a:hover { color: #e55b5a; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  font-weight: 700;
}

p { margin: 0 0 var(--space-md); }

ul, ol { margin: 0 0 var(--space-md); padding-left: 1.2rem; }

code {
  font-size: 0.9em;
  background: var(--color-accent);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

[hidden] { display: none !important; }

.gfc-o-container {
  width: min(100% - 2rem, var(--gfc-page-w));
  margin-inline: auto;
}

.gfc-u-narrow {
  width: min(100%, 680px);
  margin-inline: auto;
}

.gfc-u-narrow .gfc-c-section__title,
.gfc-u-narrow h1 { text-wrap: balance; }

.gfc-c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--gfc-header-h);
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gfc-c-header a,
.gfc-c-header a:visited { color: var(--color-text); }

.gfc-c-header__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: var(--gfc-header-h);
}

.gfc-c-header__logo {
  display: block;
  flex-shrink: 0;
  order: 1;
}

.gfc-c-header__logo img {
  width: 180px;
  height: auto;
  display: block;
}

.gfc-c-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: nowrap;
  order: 2;
}

.gfc-c-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.gfc-c-nav a.gfc-is-active { color: var(--color-primary); }

.gfc-c-header__cta {
  order: 3;
  margin-left: auto;
  flex-shrink: 0;
}

.gfc-c-header a.gfc-c-btn,
.gfc-c-header a.gfc-c-btn:visited {
  color: var(--color-white);
}

.gfc-c-burger {
  display: block;
  width: 44px;
  height: 44px;
  margin-left: 0.35rem;
  order: 4;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.gfc-c-burger span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--color-text);
  border-radius: 2px;
}

.gfc-c-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.gfc-c-drawer {
  display: block;
  position: fixed;
  z-index: 210;
  background: var(--color-bg);
  overflow-y: auto;
  visibility: hidden;
  transition: transform .28s ease, opacity .28s ease, visibility .28s;
}

.gfc-c-drawer a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
}

.gfc-c-drawer a:hover {
  background: rgba(255, 118, 117, 0.1);
  color: var(--color-primary);
}

.gfc-c-drawer .gfc-c-btn {
  margin: 12px 20px 20px;
  width: calc(100% - 40px);
  justify-content: center;
}

.gfc-c-drawer__label {
  margin: 0;
  padding: 8px 20px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.gfc-c-drawer__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
}

.gfc-c-drawer--top {
  top: var(--gfc-header-h);
  left: auto;
  right: 1rem;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(28rem, calc(100dvh - var(--gfc-header-h) - 1.25rem));
  padding: 48px 0 12px;
  border-radius: 0 0 14px 14px;
  border: 1px solid #eadfd6;
  border-top: 0;
  transform: translateY(-12px);
  opacity: 0;
  box-shadow: 0 18px 40px rgba(45, 42, 38, 0.16);
}

.gfc-c-drawer__dup {
  display: none;
}

body.gfc-is-nav-open { overflow: hidden; }
body.gfc-is-nav-open .gfc-c-overlay { opacity: 1; visibility: visible; }
body.gfc-is-nav-open .gfc-c-drawer--top {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

@media (min-width: 769px) {
  .gfc-c-overlay {
    background: rgba(45, 42, 38, 0.28);
  }
}

@media (max-width: 768px) {
  .gfc-c-nav { display: none; }
  .gfc-c-header__cta { display: none; }
  .gfc-c-header__logo { order: 1; margin-right: auto; }
  .gfc-c-burger { order: 2; margin-left: 0; }
  .gfc-c-header__logo img { width: 120px; }

  .gfc-c-drawer__dup { display: block; }
  .gfc-c-drawer__dup.gfc-c-btn { display: inline-flex; }
  .gfc-c-drawer__label { display: none; }

  .gfc-c-drawer--top {
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100dvh - var(--gfc-header-h));
    border: 0;
    border-radius: 0;
    padding: 56px 0 16px;
    box-shadow: var(--gfc-shadow);
  }

  .gfc-c-overlay {
    background: rgba(0, 0, 0, 0.45);
  }
}

.gfc-c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 4px 0 #e8d9c8;
  transition: transform .12s ease, box-shadow .12s ease;
}

.gfc-c-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #e8d9c8;
}

.gfc-c-btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 0 #e05554;
}

.gfc-c-btn--primary:active { box-shadow: 0 1px 0 #e05554; }

a.gfc-c-btn--primary,
a.gfc-c-btn--primary:visited { color: var(--color-white); }

.gfc-c-hero a.gfc-c-btn,
.gfc-c-hero a.gfc-c-btn:visited { color: var(--color-text); }
.gfc-c-hero a.gfc-c-btn--primary,
.gfc-c-hero a.gfc-c-btn--primary:visited { color: var(--color-white); }

.gfc-c-cta a.gfc-c-btn--primary,
.gfc-c-cta a.gfc-c-btn--primary:visited { color: var(--color-white); }

.gfc-c-card {
  background: var(--color-white);
  padding: var(--space-lg);
  box-shadow: var(--gfc-shadow);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.gfc-c-hero {
  position: relative;
  padding: var(--space-xl) 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(255, 153, 153, 0.35), transparent 55%),
    linear-gradient(160deg, var(--color-accent) 0%, var(--color-bg) 55%, #ffe8e0 100%);
  opacity: 0;
}

.gfc-c-hero.gfc-is-in {
  animation: gfc-k-fade .7s ease both;
}

.gfc-c-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--space-xl);
  align-items: center;
}

.gfc-c-hero__title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  max-width: 18ch;
}

.gfc-c-hero__text { color: var(--color-muted); max-width: 40rem; }

.gfc-c-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gfc-c-hero__caption {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: var(--space-sm);
}

.gfc-c-device {
  display: flex;
  align-items: stretch;
  width: min(100%, 400px);
  margin-inline: auto;
  padding: 12px 14px 12px 10px;
  border-radius: 22px;
  background: #2d2a26;
  box-shadow: 0 18px 40px rgba(45, 42, 38, 0.25);
  border: 3px solid #1a1816;
}

.gfc-c-device__notch {
  flex: 0 0 10px;
  width: 10px;
  align-self: center;
  height: 42%;
  margin: 0 8px 0 0;
  background: #1a1816;
  border-radius: 0 8px 8px 0;
}

.gfc-c-device__screen {
  flex: 1 1 auto;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  min-width: 0;
}

.gfc-c-device__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0b0b0b;
}

.gfc-c-section {
  padding: var(--space-xl) 0;
  opacity: 0;
}

.gfc-c-section.gfc-is-in {
  animation: gfc-k-fade .65s ease both;
}

.gfc-c-section.gfc-is-in h2.gfc-c-section__title::after,
.gfc-c-section.gfc-is-in .gfc-u-narrow > h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  margin-top: 0.55rem;
  background: currentColor;
  animation: gfc-k-line .6s ease both;
}

.gfc-c-section__title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.gfc-c-section__lead {
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.gfc-c-rank__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.gfc-c-rank__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  grid-template-areas:
    "pos pos pos"
    "icon name preview"
    "icon dev preview"
    "icon desc preview"
    "icon facts preview"
    "note note note"
    "actions actions actions";
  gap: 0.5rem 1.25rem;
  align-items: start;
  min-width: 0;
}

.gfc-c-rank__item .gfc-c-app__icon { grid-area: icon; }
.gfc-c-rank__item .gfc-c-rank__pos { grid-area: pos; }
.gfc-c-rank__item .gfc-c-rank__name { grid-area: name; margin: 0; min-width: 0; }
.gfc-c-rank__item .gfc-c-rank__dev { grid-area: dev; margin: 0; color: var(--color-muted); min-width: 0; }
.gfc-c-rank__item .gfc-c-rank__desc { grid-area: desc; margin: 0; min-width: 0; }
.gfc-c-rank__item .gfc-c-rank__facts { grid-area: facts; margin: 0; font-size: 0.95rem; color: var(--color-muted); min-width: 0; overflow-wrap: anywhere; }
.gfc-c-rank__item .gfc-c-app__frame { grid-area: preview; }
.gfc-c-rank__item .gfc-c-rank__note { grid-area: note; margin: 0; font-size: 0.9rem; color: var(--color-muted); }
.gfc-c-rank__item .gfc-c-rank__actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.gfc-c-rank__pos {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  font-size: 0.85rem;
}

.gfc-c-app__icon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--color-accent);
}

.gfc-c-app__frame {
  width: 200px;
  max-width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: 12px;
  overflow: hidden;
}

.gfc-c-app__frame--review {
  width: 280px;
  height: 280px;
  margin: var(--space-md) 0;
}

.gfc-c-app__preview {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gfc-c-app__facts {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.gfc-c-app__facts li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

.gfc-c-app__checked {
  font-weight: 700;
  font-size: 0.95rem;
}

.gfc-c-app__note { color: var(--color-muted); font-size: 0.95rem; }

.gfc-c-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-md);
}

.gfc-c-chip {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
}

.gfc-c-chip.gfc-is-on {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.gfc-c-ratings__chart {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gfc-c-ratings__row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 3rem;
  gap: 0.75rem;
  align-items: center;
}

.gfc-c-ratings__label { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.gfc-c-ratings__track {
  height: 12px;
  background: var(--color-accent);
  border-radius: 999px;
  overflow: hidden;
}

.gfc-c-ratings__bar {
  display: block;
  height: 100%;
  width: var(--gfc-rating, 0%);
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 999px;
}

.gfc-c-ratings__track--empty {
  display: flex;
  align-items: center;
  padding-inline: 0.75rem;
  height: auto;
  min-height: 32px;
}

.gfc-c-ratings__muted {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

.gfc-c-ratings__val { font-weight: 700; text-align: right; }

.gfc-c-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--color-secondary);
}

.gfc-c-timeline li {
  position: relative;
  padding: 0 0 var(--space-lg) var(--space-lg);
}

.gfc-c-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}

.gfc-c-timeline time {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.gfc-c-faq__list { display: flex; flex-direction: column; gap: 0.65rem; }

.gfc-c-faq__q {
  width: 100%;
  min-height: 54px;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-text);
}

.gfc-c-faq__q::after {
  content: "+";
  float: right;
  font-weight: 700;
}

.gfc-c-faq__q[aria-expanded="true"]::after { content: "–"; }

.gfc-c-faq__a {
  padding: 0.75rem 0.25rem 0.25rem;
  color: var(--color-muted);
}

.gfc-c-faq--compact { margin-bottom: var(--space-xl); }

.gfc-c-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--color-accent), var(--color-bg));
}

.gfc-c-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  background: #2d2a26;
  color: #f7f2ee;
}

.gfc-c-footer__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.gfc-c-footer__tag { margin: 0; max-width: 36rem; color: #d8d0c8; }

.gfc-c-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.gfc-c-footer__links a,
.gfc-c-footer__link {
  color: #fff5e6;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.gfc-c-footer__legal,
.gfc-c-footer__copy {
  margin: 0;
  max-width: 48rem;
  font-size: 0.9rem;
  color: #bdb4ac;
}

.gfc-c-cookie {
  display: none;
}

.gfc-c-cookie:not([hidden]) {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 110;
  gap: 12px;
  align-items: stretch;
}

.gfc-c-cookie--corner:not([hidden]) {
  bottom: 16px;
  left: 16px;
  max-width: 360px;
  padding: 1rem 1.1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--gfc-shadow);
  border-radius: 12px;
}

.gfc-c-cookie p { margin: 0; font-size: 0.95rem; }

.gfc-c-cookie__actions .gfc-c-btn {
  box-shadow: none;
  width: 100%;
}

.gfc-c-library {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0;
}

.gfc-c-library__item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.gfc-c-library__item h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.gfc-c-library__item a { text-decoration: none; color: var(--color-text); }
.gfc-c-library__item a:hover { color: var(--color-primary); }

.gfc-c-library__excerpt {
  margin: 0 0 0.5rem;
  color: var(--color-muted);
}

.gfc-c-library time { font-size: 0.85rem; color: var(--color-muted); }

.gfc-c-crumbs {
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.gfc-c-crumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.gfc-c-crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--color-muted);
}

.gfc-c-review__facts {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-lg);
  margin: var(--space-lg) 0 var(--space-xl);
  max-width: var(--gfc-page-w);
}

.gfc-c-review__app { margin-top: 0; }

.gfc-c-article h2 { margin-top: var(--space-xl); }

.gfc-c-data {
  margin: var(--space-lg) auto;
  max-width: var(--gfc-page-w);
}

.gfc-c-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

.gfc-c-form__label { font-weight: 700; }

.gfc-c-form__input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: var(--color-white);
  margin-bottom: 0.75rem;
}

textarea.gfc-c-form__input { min-height: 140px; resize: vertical; }

.gfc-c-form__note { color: var(--color-primary); font-weight: 600; }

.gfc-c-contact { margin-bottom: var(--space-lg); }

@keyframes gfc-k-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gfc-k-line {
  from { width: 0; }
  to { width: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gfc-c-hero,
  .gfc-c-section { opacity: 1; animation: none !important; }
  .gfc-c-section.gfc-is-in h2.gfc-c-section__title::after,
  .gfc-c-section.gfc-is-in .gfc-u-narrow > h2::after { animation: none; width: 3rem; }
  .gfc-c-btn { transition: none; }
  .gfc-c-overlay,
  .gfc-c-drawer { transition: none; }
}

@media (max-width: 900px) {
  .gfc-c-hero__grid { grid-template-columns: 1fr; }
  .gfc-c-rank__item {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "pos pos"
      "icon name"
      "icon dev"
      "desc desc"
      "facts facts"
      "preview preview"
      "note note"
      "actions actions";
  }
  .gfc-c-rank__item .gfc-c-app__frame {
    width: 200px;
    height: 240px;
    margin: 16px auto 0;
  }
  .gfc-c-rank__item .gfc-c-app__icon {
    width: 72px;
    height: 72px;
  }
  .gfc-c-ratings__row {
    grid-template-columns: 1fr;
  }
  .gfc-c-ratings__val { text-align: left; }
}

@media (max-width: 520px) {
  .gfc-c-hero__actions .gfc-c-btn { width: 100%; }
  .gfc-c-review__facts { grid-template-columns: 1fr; }
  .gfc-c-cookie--corner:not([hidden]) {
    left: 12px;
    right: 12px;
    max-width: none;
  }
  .gfc-c-app__icon {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .gfc-c-rank__item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pos"
      "icon"
      "name"
      "dev"
      "desc"
      "facts"
      "preview"
      "note"
      "actions";
  }
}
