:root {
      --home-bg: #f8fafc;
      --home-text: #0f172a;
      --home-muted: #475569;
      --home-border: #dbe3ef;
      --home-card: rgba(255, 255, 255, 0.88);
      --home-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
      --home-radius: 18px;
      --home-header-h: 76px;
    }

    * { box-sizing: border-box; }

    body[data-feature="home"] {
      margin: 0;
      overflow-x: hidden;
      background:
        radial-gradient(circle at 20% 0%, rgba(99, 102, 241, 0.08), transparent 32%),
        radial-gradient(circle at 90% 15%, rgba(245, 158, 11, 0.10), transparent 26%),
        var(--home-bg);
      color: var(--home-text);
    }

    body[data-feature="home"] .page {
      display: block;
      padding: calc(var(--home-header-h) + 28px) 24px 22px;
      min-height: auto;
    }

    body[data-feature="home"] .principal {
      width: 100%;
      max-width: 1480px;
      margin: 0 auto;
    }

    select {
      font-family: 'NotoColorEmojiLimited', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    }

    .topbar {
      position: fixed;
      inset: 0 0 auto 0;
      z-index: 1000;
      min-height: var(--home-header-h);
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 12px 24px;
      background: rgba(255, 255, 255, 0.92);
      border-bottom: 1px solid var(--home-border);
      box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
      backdrop-filter: blur(12px);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      flex: 0 0 auto;
      min-width: 220px;
      color: var(--home-text);
      font-weight: 800;
      font-size: 1.45rem;
      text-decoration: none;
    }

    .brand__logoWrap {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      overflow: hidden;
      border: 1px solid var(--home-border);
      border-radius: 13px;
      background: #fff;
    }

    .brand__logo {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .desktop-nav {
      flex: 1 1 auto;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nav-item {
      position: relative;
    }

    .nav-link,
    .nav-drop-button {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 0 16px;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--home-text);
      font: inherit;
      font-weight: 650;
      text-decoration: none;
      cursor: pointer;
    }

    .nav-link.active {
      color: #0f5bd6;
      box-shadow: inset 0 -3px #0f5bd6;
    }

    .nav-drop-button::after {
      content: '⌄';
      font-size: 1rem;
      transform: translateY(-2px);
    }

    .submenu {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      min-width: 240px;
      padding: 10px;
      border: 1px solid var(--home-border);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: var(--home-shadow);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-6px);
      transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    }

    .nav-item:hover .submenu,
    .nav-item.open .submenu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .submenu a {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 44px;
      padding: 10px 12px;
      border-radius: 9px;
      color: var(--home-text);
      text-decoration: none;
      font-weight: 500;
    }

    .submenu a:hover,
    .submenu a:focus {
      background: #f1f5f9;
      outline: none;
    }

    .submenu .sep {
      height: 1px;
      margin: 8px 4px;
      background: var(--home-border);
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 0 0 auto;
    }

    #selLang,
    .icon-button,
    .menu-toggle {
      min-height: 44px;
      border: 1px solid var(--home-border);
      border-radius: 10px;
      background: rgba(255,255,255,0.92);
      color: var(--home-text);
      font-size: 1rem;
    }

    #selLang { padding: 0 12px; }

    .icon-button,
    .menu-toggle {
      min-width: 44px;
      padding: 0 12px;
      cursor: pointer;
    }

    .menu-toggle { display: none; }

    .mobile-panel {
      display: none;
      position: fixed;
      top: var(--home-header-h);
      left: 12px;
      right: 12px;
      z-index: 999;
      max-height: calc(100vh - var(--home-header-h) - 24px);
      overflow: auto;
      padding: 12px;
      border: 1px solid var(--home-border);
      border-radius: 16px;
      background: rgba(255,255,255,.98);
      box-shadow: var(--home-shadow);
    }

    .mobile-panel:not([hidden]) { display: block; }

    .mobile-panel details {
      border-bottom: 1px solid #eef2f7;
      padding: 4px 0;
    }

    .mobile-panel summary,
    .mobile-panel > a {
      display: flex;
      align-items: center;
      min-height: 46px;
      padding: 8px 10px;
      border-radius: 10px;
      color: var(--home-text);
      text-decoration: none;
      font-weight: 700;
      cursor: pointer;
    }

    .mobile-panel .mobile-sub a {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 42px;
      margin-left: 10px;
      padding: 8px 10px;
      border-radius: 9px;
      color: var(--home-text);
      text-decoration: none;
    }

    .home-hero {
      position: relative;
      width: 100%;
      max-width: none;
      margin: 0;
      min-height: 330px;
      display: flex;
      align-items: center;
      overflow: hidden;
      padding: 42px 36px;
      border: 1px solid var(--home-border);
      border-radius: var(--home-radius);
      background:
        linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 34%, rgba(255,255,255,.38) 58%, rgba(255,255,255,.16) 100%),
        radial-gradient(circle at 79% 42%, rgba(180, 127, 63, .25), transparent 12%),
        linear-gradient(135deg, #eef4ff 0%, #ffffff 42%, #d9e3f2 100%);
      box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
    }

    .home-hero::after {
      content: '♟';
      position: absolute;
      right: 12%;
      bottom: -18px;
      font-size: clamp(12rem, 25vw, 25rem);
      line-height: .8;
      color: rgba(15, 23, 42, .14);
      filter: blur(.2px);
      pointer-events: none;
    }

    .home-hero__content {
      position: relative;
      z-index: 1;
      max-width: 660px;
    }

    .home-hero h1 {
      margin: 0 0 16px;
      font-size: clamp(2rem, 4vw, 3.7rem);
      line-height: 1.12;
      letter-spacing: -0.045em;
    }

    .home-hero p {
      max-width: 620px;
      margin: 0;
      color: var(--home-muted);
      font-size: clamp(1rem, 1.45vw, 1.25rem);
      line-height: 1.55;
    }

    .section-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 20px;
      margin-top: 24px;
    }

    .section-card {
      min-height: 360px;
      padding: 20px;
      border: 1px solid var(--home-border);
      border-radius: var(--home-radius);
      background: var(--home-card);
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
    }

    .section-card--play { background: linear-gradient(145deg, rgba(245,243,255,.95), rgba(255,255,255,.92)); border-color: #ddd6fe; }
    .section-card--train { background: linear-gradient(145deg, rgba(240,253,244,.95), rgba(255,255,255,.92)); border-color: #bbf7d0; }
    .section-card--study { background: linear-gradient(145deg, rgba(239,246,255,.95), rgba(255,255,255,.92)); border-color: #bfdbfe; }
    .section-card--learn { background: linear-gradient(145deg, rgba(255,251,235,.95), rgba(255,255,255,.92)); border-color: #fde68a; }

    .section-head {
      display: grid;
      grid-template-columns: 58px 1fr;
      gap: 14px;
      align-items: center;
      margin-bottom: 14px;
    }

    .section-icon {
      font-size: 2.9rem;
      line-height: 1;
      text-align: center;
    }

    .section-card h2 {
      margin: 0 0 6px;
      font-size: 1.55rem;
      letter-spacing: -0.02em;
    }

    .section-card p {
      margin: 0 0 22px;
      color: var(--home-muted);
      line-height: 1.5;
    }

    .card-links {
      display: grid;
      gap: 8px;
    }

    .card-links a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 46px;
      padding: 10px 14px;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      background: rgba(255,255,255,.88);
      color: var(--home-text);
      text-decoration: none;
      font-weight: 550;
    }

    .card-links a::after { content: '›'; font-size: 1.5rem; color: #64748b; }
    .card-links a:hover,
    .card-links a:focus { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08); outline: none; }

    .home-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-top: 22px;
      padding: 16px 8px 0;
      color: var(--home-muted);
    }

    .footer-links,
    .footer-social {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .home-footer a {
      color: var(--home-muted);
      text-decoration: none;
      font-weight: 550;
    }

    .home-footer a:hover { color: var(--home-text); }

    #btnInstallCta { display: none; }

    @media (max-width: 1180px) {
      .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .brand { min-width: auto; }
    }

    @media (max-width: 860px) {
      :root { --home-header-h: 68px; }
      .topbar { padding: 10px 12px; gap: 10px; }
      .brand__name { font-size: 1.05rem; }
      .brand__logoWrap { width: 44px; height: 44px; }
      .desktop-nav { display: none; }
      .menu-toggle { display: inline-block; }
      .nav-right { margin-left: auto; gap: 6px; }
      #selLang { max-width: 92px; }
      body[data-feature="home"] .page { padding: calc(var(--home-header-h) + 14px) 12px 18px; }
      .home-hero { min-height: 300px; padding: 28px 22px; }
      .home-hero::after { right: 0; opacity: .65; }
      .section-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
      .section-card { min-height: auto; }
      .home-footer { flex-direction: column; align-items: flex-start; }
    }

    @media (max-width: 460px) {
      .brand__name { display: none; }
      .home-hero h1 { font-size: 1.85rem; }
      .home-hero p { font-size: 1rem; }
      .section-head { grid-template-columns: 46px 1fr; }
      .section-icon { font-size: 2.25rem; }
      .icon-button { min-width: 40px; padding: 0 10px; }
    }