:root{
  --bg: #1f1300;
  --header: #628e10;
  --footer: #3f1313;
  --link: #ffffff;
  --cta-play: #dbac00;
  --cta-reg: #607a00;
  --radius: 12px;
  --font: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  --content-max: 1200px;
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;padding:0}

body{
  min-height:100vh;           
  display:flex;                
  flex-direction:column;
  background:var(--bg);
  color:#e5e7eb;
  font-family:var(--font);
  line-height:1.5;
}

a{color:var(--link);text-decoration:none}

.container{
  width:min(100%, var(--content-max));
  margin-inline:auto;
  padding-inline:clamp(12px, 4vw, 24px);
}

/* ========== Header ========== */
.site-header{background:var(--header);position:sticky;top:0;z-index:50}
.site-header__wrapper{display:flex;align-items:center;justify-content:space-between;height:72px}
.site-header__logo img{display:block;height:36px;object-fit:contain}

.site-header__menu{display:flex;gap:12px;align-items:center}
.header-menu{display:flex;gap:16px;list-style:none;margin:0;padding:0}
.header-menu a{
  padding:10px 12px;
  border-radius:var(--radius);
  display:block;
  transition:transform .15s ease, background .2s ease, box-shadow .2s ease;
  font-weight:600;
}
.header-menu a:hover{
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,.15)
}

.site-header__button{
  padding:10px 14px;
  border-radius:var(--radius);
  background:var(--cta-play);
  color:#fff;
  border:1px solid rgba(255,255,255,.15);
  font-weight:600;
  transition:
    transform .15s ease,
    background .2s ease,
    box-shadow .2s ease,
    opacity .2s ease,
    filter .2s ease;
}
.site-header__button--register{ background:var(--cta-reg); }
.site-header__button:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  filter: brightness(1.06);
}
.site-header__button:active{
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  filter: brightness(1.0);
}
.site-header__button:focus-visible{
  outline: 2px solid rgba(255,255,255,.55);
  outline-offset: 2px;
}

.site-header__burger{
  display:none;
  background:transparent;
  border:0;
  cursor:pointer;
  z-index:60;
  position:relative;
  width:32px;
  height:32px
}
.site-header__burger span{
  display:block;
  width:22px;
  height:2px;
  background:#fff;
  margin:4px auto;
  border-radius:1px;
  transition:.3s
}

.site-header__burger .burger-x{display:none;position:absolute;inset:0;margin:auto}
.site-header__burger.active span{opacity:0;transform:translateY(-4px)}
.site-header__burger.active .burger-x{display:block}

.mobile-menu{
  position:fixed;inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6)), var(--header);
  display:flex;justify-content:center;align-items:flex-start;
  transform:translateY(-100%);
  transition:transform .32s ease;
  z-index:55;
}
.mobile-menu.open{transform:translateY(0)}
.mobile-menu__inner{
  width:100%;
  max-width:720px;
  margin-top:8px;
  padding:20px clamp(12px, 4vw, 24px) 32px;
}
.mobile-menu__header{
  display:flex;justify-content:center;align-items:center;margin-bottom:16px
}
.mobile-menu__logo img{display:block;height:32px}

.mobile-menu__list{
  list-style:none;padding:0;margin:0;
  display:flex;flex-direction:column;gap:18px;align-items:center;text-align:center
}
.mobile-menu__list a{
  font-size:18px;
  display:inline-block;
  padding:10px 14px;
  border-radius:var(--radius);
  transition:transform .15s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
  font-weight:600;
}
.mobile-menu__list a:hover{
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,.25)
}

.site-main{
  padding-block:clamp(16px, 3vw, 24px);
  flex:1 0 auto;  
  min-height:0;    
}

/* ========== Page wrappers ========== */
.page__title{margin:0 0 12px;font-size:28px}
.page__body{
  background:rgba(255,255,255,.04);
  padding:16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius)
}

/* ========== Footer ========== */
.site-footer{
  background:var(--footer);
  border-top:1px solid rgba(255,255,255,.1);
  width:100%;
  padding-block:clamp(16px, 3vw, 24px);
  margin-top:auto;   
  flex-shrink:0;    
}
.site-footer__copyright{margin:0;color:#cbd5e1;font-size:14px}

/* ========== Play btn subtle motion (optional) ========== */
.site-header__button:not(.site-header__button--register):not(:hover){
  animation:shake 1.5s ease-in-out infinite;
}
@keyframes shake{
  0%,100%{transform:translateX(0)}
  10%{transform:translateX(-4px) rotate(-1.5deg)}
  20%{transform:translateX(4px) rotate(1.5deg)}
  30%{transform:translateX(-3px) rotate(-1deg)}
  40%{transform:translateX(3px) rotate(1deg)}
  50%{transform:translateX(0)}
}

/* ========== Reduce motion ========== */
@media (prefers-reduced-motion: reduce){
  .header-menu a,
  .site-header__button,
  .mobile-menu__list a{transition:none}
  .site-header__button:not(.site-header__button--register):not(:hover){animation:none}
  table a{ transition:none }
}

/* ========== Responsive ========== */
@media (max-width: 900px){
  .header-menu, .site-header__button{display:none}
  .site-header__burger{display:block}
}

body.menu-open{overflow:hidden}

/* ========== Global tables ========== */
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:
    linear-gradient(90deg, var(--cta-play), var(--cta-reg)) top/100% 3px no-repeat,
    rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  overflow:hidden;
  margin:clamp(12px, 2.5vw, 20px) 0;
  font-size:clamp(14px, 1.6vw, 16px);
  display:block;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

caption{
  caption-side:top;
  text-align:left;
  padding:12px 14px;
  font-weight:700;
  color:var(--link);
}

thead th{
  background:
    linear-gradient(0deg, rgba(255,255,255,.04), rgba(255,255,255,.04)),
    var(--header);
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:.875em;
}

th, td{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:top;
  text-align:left;
  white-space:normal;
  word-break:break-word;
}

tr:last-child td{ border-bottom:0 }
tbody tr:nth-child(2n) td{ background:rgba(255,255,255,.02); }
tbody tr:hover td{ background:rgba(255,255,255,.05); }
tr > :first-child{ font-weight:600; white-space:nowrap; width:40%; }

table a{
  color:var(--link);
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.25);
  transition:border-color .2s ease, opacity .2s ease;
}
table a:hover{ border-bottom-color: rgba(255,255,255,.6); opacity:.95; }
thead tr:first-child th:first-child{ border-top-left-radius:calc(var(--radius)); }
thead tr:first-child th:last-child{  border-top-right-radius:calc(var(--radius)); }

/* ========== Hero ========== */
.hero{
  position:relative;
  width:100%;
  aspect-ratio:3 / 2;
  border-radius:var(--radius);
  overflow:hidden;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  margin-block:clamp(12px, 3vw, 24px);
  z-index:0;
}
.hero > img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transform:scale(1);
  transition:transform .6s ease, filter .6s ease;
  z-index:0;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.15));
  opacity:.8;
  transition:opacity .3s ease;
  pointer-events:none;
  z-index:1;
}
.hero:hover > img{
  transform:scale(1.06);
  filter:saturate(1.05) contrast(1.05) brightness(.95);
}
.hero:hover::after{ opacity:.65 }

.hero__btn{
  position:absolute;
  left:50%;
  bottom:clamp(12px, 6%, 28px); 
  transform:translateX(-50%);
  display:inline-flex; align-items:center; justify-content:center;

  width:clamp(160px, 30%, 240px);
  max-width:70%;
  padding:14px 20px;

  background:var(--cta-play);
  color:#fff; text-decoration:none; font-weight:700;
  text-transform:uppercase; letter-spacing:.03em;

  border-radius:var(--radius);
  border:0;                              
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  isolation:isolate;
  transition:transform .2s ease, box-shadow .3s ease, filter .3s ease;
  z-index:10;                           
}
.hero__btn::before{
  content:"";
  position:absolute;
  inset:-8px;                            
  border-radius:inherit;
  background:var(--cta-play);
  filter:blur(14px);
  opacity:.6;
  z-index:-1;
  transition:opacity .2s ease, filter .2s ease, transform .2s ease;
  animation:featherPulse 2.2s ease-in-out infinite;
}
@keyframes featherPulse{
  0%,100%{ opacity:.6; filter:blur(14px) }
  50%    { opacity:.85; filter:blur(18px) }
}
.hero__btn:hover{
  transform:translateX(-50%) translateY(-2px) scale(1.02);
  box-shadow:0 16px 40px rgba(0,0,0,.45);
}
.hero__btn:hover::before{
  opacity:.8; filter:blur(16px); transform:scale(1.02);
}
.hero__btn:active{
  transform:translateX(-50%) translateY(0) scale(.99);
  box-shadow:0 10px 20px rgba(0,0,0,.3);
}
.hero__btn:active::before{ opacity:.5; filter:blur(12px); transform:scale(.995) }
.hero__btn:focus-visible{ outline:2px solid #fff; outline-offset:3px }

/* ====== HOME SPLIT ====== */
@media (min-width: 901px){
  .site-main.container{ display:block } 

  @supports selector(:has(*)) {
    .site-main.container:has(.hero){
      --splitH: clamp(300px, 34vh, 500px);
      display:grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: var(--splitH) auto;
      column-gap: clamp(16px, 2vw, 24px);
      row-gap: clamp(8px, 1.2vw, 16px); 
      align-items:start;
      min-height:0;
    }
    .site-main.container:has(.hero) .hero{
      grid-column:1; grid-row:1;
      margin:0; height:var(--splitH); aspect-ratio:auto;
    }
    .site-main.container:has(.hero) .hero > img{ height:100% }

    .site-main.container:has(.hero) .home-content{ display:contents }

    .site-main.container:has(.hero) .home-content table:first-of-type{
      grid-column:2; grid-row:1;
      height:var(--splitH);
      max-height:var(--splitH);
      margin:0;
      border-radius:var(--radius);
      overflow:auto;
      display:flex;            
      flex-direction:column;
      min-height:0;
    }
    .site-main.container:has(.hero) .home-content table:first-of-type thead{ flex:0 0 auto; }
    .site-main.container:has(.hero) .home-content table:first-of-type tbody{
      display:grid;            
      grid-auto-rows: 1fr;
      flex:1 1 auto;
      min-height:0;
    }
    .site-main.container:has(.hero) .home-content table:first-of-type tbody tr{
      display:grid;
      grid-template-columns: 0.4fr 0.6fr;
      align-items:center;
      min-height:0;
    }
    .site-main.container:has(.hero) .home-content table:first-of-type tr > :first-child{ width:auto; }

    .site-main.container:has(.hero) .home-content > *:not(table:first-of-type){
      grid-column:1 / -1;
      margin-top:0;
    }
    .site-main.container:has(.hero) .home-content > *:not(table:first-of-type),
    .site-main.container:has(.hero) .home-content > *:not(table:first-of-type) *{
      columns: initial !important;
      -webkit-columns: initial !important;
      column-count: 1 !important;
      column-width: auto !important;
      column-gap: normal !important;
      column-rule: none !important;
      break-inside: auto;
    }
  }
}

@media (max-width: 900px){
  @supports selector(:has(*)) {
    .site-main.container:has(.hero){ --splitH-m: clamp(240px, 40vh, 420px) }
    .site-main.container:has(.hero) .hero{
      height: var(--splitH-m);
      aspect-ratio: auto;
      margin-bottom: clamp(10px, 2.5vw, 16px);
    }
    .site-main.container:has(.hero) .hero > img{ height:100% }
    .site-main.container:has(.hero) .home-content{ display:contents }
    .site-main.container:has(.hero) .home-content table:first-of-type{
      display: table;
      width:100%;
      table-layout: fixed;
      height: var(--splitH-m);
      max-height: var(--splitH-m);
      overflow:auto;
      margin:0;
      border-radius: var(--radius);
    }
    .site-main.container:has(.hero) .home-content table:first-of-type thead{ display: table-header-group }
    .site-main.container:has(.hero) .home-content table:first-of-type tbody{ display: table-row-group }
    .site-main.container:has(.hero) .home-content table:first-of-type tr{ display: table-row }
    .site-main.container:has(.hero) .home-content table:first-of-type th,
    .site-main.container:has(.hero) .home-content table:first-of-type td{ display: table-cell }
    .site-main.container:has(.hero) .home-content table:first-of-type td,
    .site-main.container:has(.hero) .home-content table:first-of-type th{
      border-bottom:1px solid rgba(255,255,255,.06);
    }
    .site-main.container:has(.hero) .home-content table:first-of-type tr:last-child td{ border-bottom:0 }
    .site-main.container:has(.hero) .home-content table:first-of-type tbody tr:nth-child(2n) td{
      background:rgba(255,255,255,.02);
    }
  }
}

.home-content img{
  max-width:100%;
  width:auto;
  height:auto;
  display:block;
  margin:clamp(8px,1.2vw,14px) auto;
  object-fit:contain;
  border-radius:var(--radius);
}
.home-content img[width],
.home-content img[height]{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
}
.home-content table img{
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto;
  object-fit:contain;
}
.home-content figure{ margin:clamp(10px,1.8vw,18px) auto; }
.home-content figure > img{ width:100%; height:auto; display:block; }
.home-content figcaption{
  text-align:center;
  font-size:14px;
  color:#cbd5e1;
  margin-top:6px;
}

.site-main.container > *{ min-width:0; }

/* ========== GENERIC PAGE  ========== */
.generic-page{
  display:block;
  width:100%;
  max-width:800px;
  margin:0 auto;
  padding:0 16px 80px; 
}
.generic-page img:first-of-type{
  display:block;
  width:100%;
  max-width:800px;
  margin:0 auto 24px auto;
  border-radius:var(--radius);
  object-fit:cover;
}
.generic-page p,
.generic-page h1,
.generic-page h2,
.generic-page h3,
.generic-page ul,
.generic-page ol{
  line-height:1.6;
  color:#e5e7eb;
  text-align:left;
  margin-bottom:16px;
}
.generic-page ul,
.generic-page ol{ padding-left:20px; }

/* ===== Reviews ===== */
.reviews{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 28px);
  margin-block: clamp(16px, 3vw, 32px);
}
.reviews > h1{
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
}
.reviews > article{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 16px);
  position: relative;
  overflow: hidden;
}
.reviews > article::before{
  content:"“";
  position:absolute;
  top:-10px; left:10px;
  font-size: 64px;
  line-height: 1;
  color: rgba(255,255,255,.06);
  pointer-events:none;
}
.reviews > article h2{
  margin: 0 0 8px;
  font-size: clamp(16px, 1.8vw, 18px);
  color:#fff;
}
.reviews > article p{
  margin:0;
  color:#e5e7eb;
}
.reviews > article img{
  max-width:100%;
  height:auto;
  display:block;
  margin-top:10px;
  border-radius: var(--radius);
}

/* Форма */
.reviews__form{ grid-column:1 / -1; }
.reviews__form{
  --card-pad: clamp(16px, 2.4vw, 22px);
  --field-gap: 12px;

  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 18px);
  padding: var(--card-pad);

  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.reviews__form-title{
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-weight: 700;
  font-size: clamp(18px, 2.1vw, 24px);
  color: var(--link);
}
.reviews__form .field{
  grid-column: 1 / -1;
  display:flex;
  flex-direction:column;
  gap: var(--field-gap);
}
@media (min-width: 901px){
  .reviews__form .field:nth-of-type(1){ grid-column: span 6; }
  .reviews__form .field:nth-of-type(2){ grid-column: span 6; }
  .reviews__form .field:nth-of-type(3){ grid-column: 1 / -1; }
}
.reviews__form label, .reviews__form .label{
  font-size: 13px;
  letter-spacing: .02em;
  color: #cbd5e1;
}
.reviews__form input[type="text"],
.reviews__form textarea{
  width:100%;
  padding: 12px 14px;
  color:#e5e7eb;
  background: linear-gradient(0deg, rgba(255,255,255,.03), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  border-radius: calc(var(--radius) - 2px);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  caret-color:#fff;
}
.reviews__form textarea{ min-height: 140px; resize: vertical; }
.reviews__form input::placeholder,
.reviews__form textarea::placeholder{ color: rgba(255,255,255,.45) }
.reviews__form .field:focus-within input[type="text"],
.reviews__form .field:focus-within textarea{
  border-color: rgba(255,255,255,.28);
  box-shadow:
    0 0 0 3px rgba(255,255,255,.06),
    0 0 0 1.5px color-mix(in hsl, var(--cta-play) 60%, var(--cta-reg));
}
.reviews__form input:invalid,
.reviews__form textarea:invalid{
  border-color: color-mix(in hsl, var(--cta-reg) 70%, #000);
}

/* Stars */
.stars{
  --size: 22px;
  display:inline-flex;
  gap:8px;
  direction: rtl;
}
.stars input{ position:absolute; left:-9999px }
.stars label{
  width:var(--size); height:var(--size);
  display:inline-block; cursor:pointer;
  transform: translateZ(0);
}
.stars label::before{
  content:"★";
  display:block; line-height:1;
  font-size: var(--size);
  color: rgba(255,255,255,.25);
  transition: transform .15s ease, color .18s ease, filter .18s ease;
}
.stars label:hover::before,
.stars label:hover ~ label::before{
  color: var(--cta-reg);
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 0 6px rgba(255,255,255,.15));
}
.stars input:checked ~ label::before{
  background: linear-gradient(90deg, var(--cta-play), var(--cta-reg));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(0,0,0,.25));
}

/* Actions */
.form-actions{
  grid-column: 1 / -1;
  display:flex; align-items:center; gap:12px;
  margin-top: 4px;
}
.btn-submit{
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  color:#fff;
  font-weight:700;
  background: linear-gradient(90deg, var(--cta-play), var(--cta-reg));
  box-shadow:
    0 8px 18px rgba(0,0,0,.35),
    0 0 0 rgba(0,0,0,0);
  transition: transform .15s ease, box-shadow .22s ease, filter .22s ease, opacity .2s ease;
}
.btn-submit:hover{
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(0,0,0,.45),
    0 0 22px color-mix(in hsl, var(--cta-play) 50%, var(--cta-reg));
}
.btn-submit:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0,0,0,.3);
}
.btn-submit:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}
.form-note{
  margin:0;
  font-size:12px;
  color:#cbd5e1;
  opacity:.9;
}

/* Tiny polish */
.reviews__form .field > *{ min-width:0 }
.reviews__form :focus-visible{ outline:2px solid rgba(255,255,255,.5); outline-offset:2px }
@media (prefers-reduced-motion: reduce){
  .reviews__form *, .btn-submit, .stars label::before{ transition:none }
}

