/*
 * Front page. Ported from the approved mock-up
 * (etalon-2026-09-11/C-compact.html). Shared furniture is in redesign.css.
 */

.fwd-app{display:grid;grid-template-columns:264px minmax(0,1fr);gap:var(--s3);
  padding-top:var(--s3);align-items:start}
.fwd-board{min-width:0}
.fwd-board .fwd-sheet + .fwd-sheet,.fwd-board .fwd-sheet + .fwd-recruit,
.fwd-board .fwd-recruit + .fwd-sheet{margin-top:var(--s4)}

/* the column of ages: light, because the header above it is already dark */
.fwd-rail{background:var(--surface);border-radius:12px;overflow:hidden;position:sticky;top:24px;
  box-shadow:var(--sh)}
.fwd-rail h3{margin:0;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);padding:15px 20px;border-bottom:1px solid var(--hair)}
.fwd-rail a{color:inherit;text-decoration:none}
.fwd-all{display:flex;align-items:center;gap:6px;padding:14px 20px;font-size:13px;font-weight:700;
  color:var(--navy-2)}
.fwd-all:hover{background:var(--surface-2);color:var(--gold-ink)}

/* one age: the leading three and a game */
.fwd-ag{position:relative;border-bottom:1px solid var(--hair)}
.fwd-agh{display:flex;justify-content:space-between;align-items:baseline;padding:14px 20px 6px;
  font-size:18px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.fwd-agh span{font-size:12px;font-weight:500;color:var(--faint)}
/* the league tabs: three of them have to fit one line of a 264px column */
.fwd-lgt{display:flex;flex-wrap:wrap;gap:2px;padding:2px 12px 6px}
.fwd-lgt button{font:inherit;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center;
  padding:4px 8px;border-radius:6px;font-size:12.5px;font-weight:600;color:var(--ink-2)}
.fwd-lgt button:focus,.fwd-lgt button:active{background:none}
.fwd-lgt button:hover{background:var(--surface-2);color:var(--ink)}
.fwd-lgt button.fwd-on,.fwd-lgt button.fwd-on:hover,.fwd-lgt button.fwd-on:focus{background:var(--navy);color:#fff}
.fwd-lgp[hidden]{display:none}
.fwd-mini{padding:2px 12px 4px}
.fwd-mini .fwd-r{display:grid;grid-template-columns:12px 20px minmax(0,1fr) auto;align-items:center;
  gap:10px;padding:6px 8px;border-radius:7px;font-size:14px;color:var(--ink)}
.fwd-mini .fwd-r:hover{background:var(--surface-2)}
.fwd-mini .fwd-p{font-size:12px;font-weight:700;color:var(--faint);text-align:center}
/* between cups the places are final, so they get the medal colours — darkened
   for a white ground */
.fwd-mini .fwd-p--m1{color:var(--gold-ink)}
.fwd-mini .fwd-p--m2{color:#6B7489}
.fwd-mini .fwd-p--m3{color:#9A5F33}
.fwd-mini img{width:20px;height:20px;object-fit:contain}
.fwd-rail .fwd-nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.fwd-mini .fwd-o{font-weight:800;font-variant-numeric:tabular-nums}
.fwd-more{display:inline-flex;align-items:center;gap:5px;margin:0 20px 12px;font-size:12.5px;
  font-weight:700;color:var(--navy-2)}
.fwd-more:hover{color:var(--gold-ink)}
/* the game of the age: one line per team, as in the table above it. Warm and
   dashed, with its heading on a band — the same as the «next cup» card */
.fwd-nxt{display:block;margin:2px 12px 14px;padding:0 12px 6px;border:1px dashed #E8C77A;
  border-radius:9px;background:var(--gold-soft);overflow:hidden}
.fwd-nxt:hover{background:#FBEBC8}
.fwd-nxt i,.fwd-soon i{display:block;font-style:normal;font-size:11px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;color:var(--gold-ink);background:#FAE6B8;border-bottom:1px dashed #E8C77A;
  margin:0 -12px 6px;padding:8px 12px 7px}
.fwd-nxt__r{display:grid;grid-template-columns:20px minmax(0,1fr) 26px;gap:8px;align-items:center;
  padding:4px 0;font-size:14px;color:var(--ink-2)}
.fwd-nxt__r img{width:20px;height:20px;object-fit:contain}
.fwd-rail .fwd-nxt__r .fwd-nm{white-space:normal;line-height:1.25}
/* the winner is told by the bold line, the score itself stays plain */
.fwd-nxt__r b{font-weight:800;font-size:14px;text-align:center;border-radius:5px;padding:2px 0;
  background:#fff;color:var(--muted);font-variant-numeric:tabular-nums}
.fwd-nxt__r--w{font-weight:700;color:var(--ink)}
.fwd-nxt__r--w b{color:var(--ink)}
.fwd-done{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 20px 14px;
  font-size:13px;color:var(--muted)}
.fwd-done span{display:inline-flex;align-items:center;gap:4px}
.fwd-done:hover{color:var(--ink)}
.fwd-soon{margin:14px 12px 4px;padding:0 12px 10px;border-radius:9px;border:1px dashed #E8C77A;
  background:var(--gold-soft);overflow:hidden;font-size:13px;line-height:1.45;color:var(--ink-2)}
.fwd-soon b{display:block;color:var(--ink);font-size:15px;margin:2px 0 4px}

/* the day of games */
/* the day is a heading like any other on the page («Таблицы и шахматки»…) */
.fwd-head h1{margin:0;font-size:21px;font-weight:800;letter-spacing:-.025em}
/* the day before, under a match day: its results until today's are in */
.fwd-head--prev{border-top:1px solid var(--hair);margin-top:var(--s2)}
.fwd-live{position:relative;padding-left:18px;color:var(--win);font-weight:800;font-size:11px;
  letter-spacing:.06em;text-transform:uppercase}
.fwd-live::before{content:"";position:absolute;left:0;top:50%;width:8px;height:8px;margin-top:-4px;
  border-radius:50%;background:var(--win);animation:fwd-blink 1.6s ease-in-out infinite}
@keyframes fwd-blink{0%,100%{opacity:1}50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.fwd-live::before{animation:none}}

.fwd-agehd{display:flex;align-items:baseline;gap:10px;padding:18px 20px 6px}
.fwd-agehd b{font-size:15px;font-weight:800;letter-spacing:-.01em}
.fwd-agehd span{font-size:13px;color:var(--faint)}
.fwd-mt{grid-template-columns:52px minmax(0,1fr) auto minmax(0,1fr) 128px}
.fwd-mt:last-child{border-bottom:0}
/* the last game of a day: the line between the days is the heading's own */
.fwd-mt:has(+ .fwd-head){border-bottom:0}
.fwd-tm{font-size:13px;color:var(--faint);font-variant-numeric:tabular-nums}
.fwd-mt__a,.fwd-mt__b{gap:12px}
.fwd-mt img{width:32px;height:32px}
.fwd-n{overflow-wrap:break-word;hyphens:auto;font-weight:600}
.fwd-sc{font-size:26px;letter-spacing:-.03em;min-width:76px;color:var(--ink)}
/* a played score: warm and dashed, like the game of the age in the column */
.fwd-sc:not(.fwd-sc--soon){padding:3px 10px;border:1px dashed #E8C77A;border-radius:8px;
  background:var(--gold-soft);line-height:1.15}
/* a game ahead: the time with a clock in a cool dashed frame — the shape of
   a score, but plainly not one */
.fwd-sc--soon{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:15px;
  font-weight:700;color:#4A5D86;border:1px dashed #AFC0DE;border-radius:8px;background:#EEF2FA;padding:4px 10px;min-width:0;
  --fwd-clock:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='8' cy='8' r='6.2'/%3E%3Cpath d='M8 4.6V8l2.2 1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.fwd-sc--soon::before{content:"";width:14px;height:14px;flex:0 0 auto;background:currentColor;
  -webkit-mask:var(--fwd-clock) center/contain no-repeat;mask:var(--fwd-clock) center/contain no-repeat}
.fwd-lgx{text-align:right;font-size:12px;letter-spacing:.05em;text-transform:uppercase;
  color:var(--faint);font-weight:700;line-height:1.3}

/* between cups */
.fwd-pause{padding:36px 20px 40px;text-align:center}
.fwd-pause h3{margin:0 0 10px;font-size:24px;font-weight:800;letter-spacing:-.025em}
.fwd-pause p{margin:0 auto;max-width:52ch;color:var(--ink-2)}

/* the cards of the ages: one per age, each leading to its table and cross-table */
.fwd-tcards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--hair)}
.fwd-tc{display:flex;flex-direction:column;gap:4px;padding:16px 20px 18px;
  border-right:1px solid var(--hair-2);color:inherit;text-decoration:none}
.fwd-tc:last-child{border-right:0}
.fwd-tc:hover{background:var(--surface-2)}
.fwd-tc b{font-size:22px;font-weight:800;letter-spacing:-.025em;line-height:1.1}
.fwd-tl{font-size:14px;font-weight:600;color:var(--ink-2)}
.fwd-tn{font-size:13px;color:var(--faint)}
.fwd-tc .fwd-go{margin-top:auto;padding-top:12px;display:inline-flex;align-items:center;gap:5px;
  font-size:13.5px;font-weight:700;color:var(--navy-2);justify-content:flex-start;text-align:left}
.fwd-tc:hover .fwd-go{color:var(--gold-ink)}
/* the entrants as a stack of crests, the progress as a bar */
.fwd-crests{display:flex;margin:12px 0 14px;padding-left:8px}
.fwd-crests img,.fwd-crests i{width:42px;height:42px;border-radius:50%;background:#fff;border:2px solid #fff;
  box-shadow:0 0 0 1px var(--hair);object-fit:contain;margin-left:-8px;padding:3px}
.fwd-crests i{display:grid;place-items:center;font-style:normal;font-size:13px;font-weight:800;
  color:var(--muted);background:var(--surface-2)}
.fwd-bar{height:6px;border-radius:3px;background:var(--hair-2);overflow:hidden;margin-bottom:6px}
.fwd-bar i{display:block;height:100%;background:var(--navy);border-radius:3px}
.fwd-bar--done i{background:var(--win)}

/* the coming games */
.fwd-nx{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:var(--s2);align-items:center;
  padding:14px 20px;border-top:1px solid var(--hair-2);color:inherit;text-decoration:none}
.fwd-nx:hover{background:var(--surface-2)}
.fwd-dt{background:var(--navy);color:#fff;border-radius:9px;padding:8px 12px;text-align:center;min-width:62px}
.fwd-dt b{display:block;font-size:18px;font-weight:800;line-height:1}
.fwd-dt span{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.72);
  font-weight:700}
.fwd-pr{font-size:15px;font-weight:600}
.fwd-nx .fwd-sub{display:block;font-size:12px;letter-spacing:.05em;text-transform:uppercase;
  color:var(--faint);font-weight:700;margin-top:3px}
.fwd-tm2{font-weight:800;font-size:17px;color:var(--navy);font-variant-numeric:tabular-nums}

/* recruitment */
/* Blue with two lights — a bright blue one from the top right and the gold
   of the button from the bottom left — and the crest, sharp and faint, turned
   and cut by the right edge. */
.fwd-recruit{margin-top:var(--s4);color:#fff;border-radius:12px;padding:36px 32px;
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(59,110,240,.75), transparent 60%),
    radial-gradient(50% 130% at 0% 100%, rgba(245,166,35,.40), transparent 60%),
    var(--navy);
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--s3);align-items:center;
  position:relative;overflow:hidden;isolation:isolate}
.fwd-recruit::after{content:"";position:absolute;right:-30px;top:50%;width:360px;height:360px;margin-top:-140px;
  z-index:-1;pointer-events:none;opacity:.13;transform:rotate(-10deg);
  background:url("../img/logo-eagle.png") center/contain no-repeat}
.fwd-recruit h2{margin:0 0 10px;font-size:28px;font-weight:800;letter-spacing:-.03em}
.fwd-recruit p{margin:0;color:rgba(255,255,255,.78);max-width:54ch}
.fwd-btn{background:var(--gold);color:var(--navy-900);font-weight:800;font-size:15.5px;padding:15px 30px;
  border-radius:10px;white-space:nowrap;display:inline-block;text-decoration:none}
.fwd-btn:focus,.fwd-btn:active{background:var(--gold)}
.fwd-btn:hover{background:var(--gold-2);color:var(--navy-900)}
/* the way to sign up: the first phone as the button, the second one and VK
   quieter under it */
.fwd-recruit .fwd-recruit__how{color:#fff;font-weight:600}
.fwd-recruit__act{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:280px}
.fwd-recruit__act .fwd-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-variant-numeric:tabular-nums}
.fwd-recruit__act .fwd-btn svg{width:18px;height:18px;flex:0 0 auto}
/* the light comes from the button itself: wherever it lands, the glow is behind it */
.fwd-recruit__act .fwd-btn{box-shadow:0 0 0 1px rgba(245,166,35,.35),0 6px 28px rgba(245,166,35,.45),0 0 72px 12px rgba(245,166,35,.22)}
.fwd-recruit__act .fwd-phones{align-items:stretch}
/* the numbers once shown: the same gold plate as the button, a line each */
.fwd-phones__list{display:flex;flex-direction:column;background:var(--gold);border-radius:12px;padding:4px;
  box-shadow:0 0 0 1px rgba(245,166,35,.35),0 6px 28px rgba(245,166,35,.45),0 0 72px 12px rgba(245,166,35,.22)}
.fwd-phones__num{display:flex;align-items:center;justify-content:center;gap:10px;padding:11px 20px;border-radius:9px;
  color:var(--navy-900);font-weight:800;font-size:15.5px;text-decoration:none;font-variant-numeric:tabular-nums}
.fwd-phones__num + .fwd-phones__num{border-top:1px solid rgba(11,19,48,.15)}
.fwd-phones__num:hover,.fwd-phones__num:focus{background:var(--gold-2);color:var(--navy-900)}
.fwd-phones__num svg{width:18px;height:18px;flex:0 0 auto}
.fwd-recruit__vk{text-align:center;font-size:14px;font-weight:600;color:rgba(255,255,255,.78);
  text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.35)}
.fwd-recruit__vk:hover{color:var(--gold)}

/* a quick pick of an age on a narrow screen */
.fwd-mstrip{display:none;gap:8px;overflow-x:auto;padding:0 0 var(--s2);scrollbar-width:none;
  -webkit-overflow-scrolling:touch}
.fwd-mstrip::-webkit-scrollbar{display:none}
.fwd-mstrip a{flex:0 0 auto;background:#fff;border:1px solid var(--hair);border-radius:9px;
  padding:10px 15px;font-weight:700;font-size:14.5px;box-shadow:var(--sh);color:inherit;text-decoration:none}
.fwd-mstrip a:last-child{margin-right:16px}
.fwd-mstrip a span{display:block;font-size:11.5px;font-weight:600;color:var(--muted);margin-top:2px}

@media (max-width:1080px){
  .fwd-app{grid-template-columns:1fr}
  .fwd-board{order:1}
  .fwd-rail{order:2;position:static}
  .fwd-mstrip{display:flex}
}
@media (max-width:820px){
  .fwd-recruit{grid-template-columns:1fr}
}
@media (max-width:760px){
  .fwd-tcards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fwd-tc:nth-child(2n){border-right:0}
  .fwd-tc:nth-child(-n+2){border-bottom:1px solid var(--hair-2)}
}
@media (max-width:620px){
  /* the ages one under another: the age and its leagues by the crests, the
     bar across, the count and the link under it */
  .fwd-tcards{grid-template-columns:1fr}
  .fwd-tc{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center;padding:14px 16px;
    border-right:0;border-bottom:1px solid var(--hair-2)}
  .fwd-tc:nth-child(-n+2){border-bottom:1px solid var(--hair-2)}
  .fwd-tc:last-child{border-bottom:0}
  .fwd-tc b,.fwd-tc .fwd-tl{grid-column:1}
  .fwd-tc .fwd-crests{grid-column:2;grid-row:1/3;margin:0}
  .fwd-tc .fwd-crests img,.fwd-tc .fwd-crests i{width:34px;height:34px}
  .fwd-tc .fwd-bar{grid-column:1/-1;margin:6px 0 0}
  .fwd-tc .fwd-go{grid-column:2;margin:0;padding:0}
  .fwd-agehd{padding:16px 16px 4px}
  .fwd-mt{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;padding:12px 16px}
  .fwd-tm{grid-column:1/4;font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
  .fwd-lgx{grid-column:1/4;text-align:left}
  .fwd-mt img{width:24px;height:24px}
  .fwd-mt__a,.fwd-mt__b{gap:8px}
  .fwd-n{font-size:14px}
  .fwd-sc{font-size:22px;min-width:56px}
  .fwd-sc--soon{font-size:14px;padding:4px 8px}
  .fwd-recruit{padding:26px 20px}
  .fwd-recruit h2{font-size:23px}
  .fwd-recruit::after{width:300px;height:300px;margin-top:-110px;right:-70px}
}
