/* =======================Fonts======================= */
@font-face{
  font-family: "Jura";
  src: url("./components/fonts/Jura/Jura.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Ethnocentric rus-lat";
  src: url("./components/fonts/Ethnocentric rus-lat/Ethnocentric rus-lat extra-expanded Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Inter";
  src: url("./components/fonts/Inter/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "FingerPaint-Regular";
  src: url("./components/fonts/FingerPaint/FingerPaint-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
/* =======================Base======================= */
:root{
  --page-bg: #000000;
  --header-radius: 26px;
  --glass: rgba(0,0,0,.55);
  --glass-2: rgba(0,0,0,.35);
  --text: rgba(255,255,255,.85);
  --text-dim: rgba(255,255,255,.72);
  --accent: #39ff14;
}
*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--page-bg);
  color: #fff;
  overflow-x: hidden;
}
a{ color:inherit; }

/* ==============================================Header============================================== */

:root{ --menu-fs: 30px; }
.site-header{
  position: fixed; 
  top: 10px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 52px;
  pointer-events: none;   /* важно */
}

.header-bar{
  height: 76px;
  border-radius: var(--header-radius);
  background:
    radial-gradient(120% 220% at 50% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.52));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  pointer-events: auto;   /* клики работают */
}

.nav{
  display:flex;
  align-items:center;
  gap: 220px;
  min-width: 380px;
}
.nav.right{ justify-content: flex-end; }
.nav.left{ justify-content: flex-start; }

.nav-link,
.nav-btn{
  font-family: "Jura", sans-serif;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: color .18s ease;
}

.nav-link:hover,
.nav-btn:hover{ color: #01FF01; }

.logo{
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.logo img{
  height: 52px;
  width:auto;
  display:block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.5));
}

/* ===== CONTACTS (только hover) ===== */
.contacts{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* триггер */
.contacts__trigger{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  transition: color .18s ease;
}

/* Контакты: зелёный на hover */
.contacts:hover .contacts__trigger{
  color: #01FF01;
}

/* ===== CSS-стрелка вместо SVG ===== Цвет берётся из currentColor (т.е. как цвет "Контакты") */
.contacts__arrow{
  display: inline-block;

  width: calc(var(--menu-fs) * 0.33);
  height: calc(var(--menu-fs) * 0.33);

  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;

  transform: rotate(45deg);          /* вниз */
  transform-origin: 50% 50%;
  transition: transform .18s ease, border-color .18s ease;
  opacity: .95;
}


/* "противоположное направление" при hover (вверх) */
.contacts:hover .contacts__arrow{
  transform: rotate(-135deg);        /* вверх */
}

/* текст внутри (чтобы был Jura 30) */
.contacts__trigger .nav-link{
  font-family: "Jura", sans-serif;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: .06em;
  line-height: 1;
}

/* ===== Плашка contacts_hint ===== */
.contacts__hint{
  position: absolute;
  top: calc(100% + 34px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);

  width: 380px;
  padding: 16px 18px;
  border-radius: 20px;

  background: rgba(0,0,0,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,.55);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility 0s linear .18s;
}

/* Показ только при наведении */
.contacts:hover .contacts__hint{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility 0s;
}

/* Заголовок "Апрель → Октябрь" */
.contacts__season{
  font-family: "Jura", sans-serif;
  font-weight: 500;
  font-size: 20px;              /* Jura 30 */
  letter-spacing: .06em;
  line-height: 1.1;
  color: rgba(255,255,255,.9);
  margin-bottom: 15px;
  text-align: center;
}

/* Строки */
.contacts__row{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.contacts__row:last-child{ margin-bottom: 0; }


/* Зеленые бейджи "Пн" / "Вт–Вс" */
.contacts__badge{
  font-family: "Jura", sans-serif;
  font-weight: 500;
  font-size: 20px;              /* Jura 30 */
  letter-spacing: .04em;
  line-height: 1;

  padding: 6px 16px;
  border-radius: 999px;

  background: #01FF01;
  color: #000;
}

/* Значения справа */
.contacts__value{
  font-family: "Jura", sans-serif;
  font-weight: 500;
  font-size: 20px;              /* Jura 30 */
  letter-spacing: .04em;
  line-height: 1.1;
  color: rgba(255,255,255,.9);
}

/* ========== Бургер кнопка ========== */
.burger{
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
}

.burger span{
  width: 26px;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* активное состояние */
body.menu-open .burger span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ========== Мобильное меню (оверлей) ========== */
.mnav{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .18s;
  z-index: 2000;
}

body.menu-open .mnav{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .18s ease, visibility 0s;
}

.mnav__panel{
  height: 100%;
  width: 100%;
  background: rgba(15,15,15,.95);
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
  position: relative;
  padding: 22px 18px;
}

.mnav__close{
  position: absolute;
  right: 14px;
  top: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.9);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* сетка как в примере: 2 колонки на телефоне можно оставить 1 */
.mnav__grid{
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

/* шрифт везде Jura */
.mnav a,
.mnav__phone,
.mnav__work-title,
.mnav__address,
.mnav__work-row span{
  font-family: "Jura", sans-serif;
  font-weight: 500;
  letter-spacing: .06em;
}

.mnav__col a{
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,.88);
  font-size: 18px;
  padding: 10px 0;
  transition: color .15s ease;
}

.mnav__col a:hover{
  color: #01FF01;
}

/* телефон */
.mnav__phone{
  font-size: 22px;
  color: rgba(255,255,255,.92);
  margin-bottom: 14px;
}

/* соц кружки (можешь заменить на svg/иконки) */
.mnav__social{
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.mnav__soc{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #01FF01;
  color: #000;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-family: "Jura", sans-serif;
  font-weight: 500;
}

/* блок времени работы */
.mnav__work-title{
  font-size: 14px;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
}

.mnav__work-row{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mnav__badge{
  background: #01FF01;
  color: #000;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}

.mnav__address{
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,255,255,.78);
}
/* Кнопка наверх */
.hero__to-top{
  position: fixed;
  right: 34px;
  bottom: 34px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
  text-decoration: none;
  z-index: 900;
  transition: transform .15s ease;
}
.hero__to-top:hover{ 
  transform: translateY(-5px); 
}
.hero__to-top img{
  width: 48px;
  height: 48px;
  display: block;
}

/* =========контейнер под фиксированный хедер========= */
.rules-page{
  padding-top: 120px; /* чтобы не залезало под header fixed */
}

.rules-wrap{
  width: min(1180px, calc(100% - 120px));
  margin: 0 auto 100px;
}

@media (max-width: 900px){
  .rules-wrap{ width: calc(100% - 24px); }
}

/* pill */
.rules-pill{
  width: fit-content;
  margin: 0 auto 26px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(1,255,1,.35);

  background:
    radial-gradient(120% 220% at 50% 0%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(0,0,0,.70), rgba(0,0,0,.45));

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);

  display:flex;
  align-items:center;
  gap: 12px;

  animation: pillPulse 3.2s ease-in-out infinite;
}

.rules-pill img{ width: 22px; height: 22px; display:block; }
.rules-pill span{
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #01FF01;
}

@keyframes pillPulse{
  0%,100%{ filter: brightness(.85); opacity: .90; }
  50%{ filter: brightness(1.15); opacity: 1; }
}

.rules-h1{
  margin: 0 0 8px;
  font-family:"Inter", sans-serif;
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.02em;
  color: #01FF01;
}
.rules-sub{
  margin: 0 0 22px;
  font-family:"Inter", sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: rgba(255,255,255,.72);
}

/* cards */
.rules-grid{
  display:grid;
}

.r-card{
  border-radius: 22px;
  padding: 18px 18px;
  background: linear-gradient(180deg, rgba(0,255,1,.08), rgba(0,0,0,0) 50%),
              rgba(22,27,26,.78);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  border: 1px solid rgba(1,255,1,.18);

  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items:flex-start;
  margin-bottom: 24px;
}

.r-card__icon{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(1,255,1,.12);
  border: 1px solid rgba(1,255,1,.25);
  display:grid;
  place-items:center;
}
.r-card__icon img{ width: 26px; height: 26px; display:block; }

.r-card__title{
  margin: 2px 0 10px;
  font-family:"Inter", sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.92);
}

.r-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.70);
  font-family:"Inter", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
}
.r-list li{ margin: 7px 0; }
.r-list li::marker{ color:#01FF01; }

/* instruction block title */
.rules-instr{
  margin-top: 60px;
}

.rules-h2{
  margin: 0 0 6px;
  font-family:"Inter", sans-serif;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: #01FF01;
}

.rules-sub2{
  margin: 0 0 18px;
  font-family:"Inter", sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: rgba(255,255,255,.62);
}

.r-card--lite{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,0) 55%),
    rgba(12,16,16,.70);
}

/* controls kv */
.r-kv{
  display:grid;
  gap: 8px;
  color: rgba(255,255,255,.70);
  font-family:"Inter", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height:1.45;
}
.r-kv b{ color:#01FF01; font-weight: 500; }

/* modes */
.r-modes{ display:grid; gap: 12px; }
.mode__name{
  color:#01FF01;
  font-family:"Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}
.mode__desc{
  color: rgba(255,255,255,.68);
  font-family:"Inter", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height:1.45;
}

/* активный пункт меню */
.nav-link.is-active{
  color: #01FF01 !important;
}
/* ==============================================Footer============================================== */
/* ===== Footer ===== */
.footer{
  margin-top: 100px;              /* отступ от предыдущей секции */
  background: #D9D9D9;
  color:#000;
  padding: 48px 0 22px;
}

.footer__inner{
  margin: 0 100px;                /* как просил: немного уже */
  display:grid;
  grid-template-columns: 1.15fr 0.9fr 1.35fr 0.9fr;
  gap: 60px;
  align-items:start;
}

.footer__title{
  margin: 0 0 22px;
  font-family:"Inter", sans-serif;
  font-weight:500;                 /* Medium */
  font-size:26px;
  color:#000;
}

.footer__text{
  font-family:"Inter", sans-serif;
  font-weight:300;                 /* Light */
  font-size:14px;
  color:#000;
  line-height:1.35;
}

.footer__brand .footer__text{
  margin: 10px 0 22px;
}

.footer__logo{
  width: 210px;
  height:auto;
  display:block;
}

.footer__item{
  display:flex;
  gap: 16px;
  align-items:flex-start;
  margin: 14px 0;
}

.footer__item--top{ margin-top: 8px; }

.footer__ico{
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display:block;
  margin-top: 2px;
}

.footer__link{
  text-decoration:none;
  color:inherit;
}

.footer__link:hover .footer__text{
  text-decoration: underline;
  text-underline-offset: 6px;
}

.footer__socials{
  display:flex;
  gap: 18px;
  margin-top: 18px;
}

.footer__social{
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background:#2F2F2F;
  display:grid;
  place-items:center;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.footer__social img{
  width: 34px;
  height: 34px;
  display:block;
  filter: brightness(100);
}

.footer__social:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}

.footer__line{
  height: 2px;
  background:#000;
  margin: 34px 100px 12px;
  opacity: .85;
}

.footer__copy{
  text-align:center;
  font-family:"Inter", sans-serif;
  font-weight:300;
  font-size:20px;
  color:#000;
  margin: 0 100px;
}
