:root {
  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --panel: #132038;
  --panel-2: #182a48;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9eef8;
  --muted: #9fb0cb;
  --accent: #ff6b2c;
  --accent-2: #ffb020;
  --blue: #37a7ff;
  --green: #35d07f;
  --radius: 18px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.78);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.logo {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--accent); }
.logo-script {
  font-family: "Comforter Brush", cursive;
  font-style: normal;
  font-size: 26px;
  letter-spacing: 0;
  color: var(--blue);
  margin-left: 4px;
  opacity: 0.9;
}
.logo-ball {
  display: inline-block;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--accent-2), var(--accent) 60%, #d43f00);
  color: transparent !important;
  box-shadow: 0 0 14px rgba(255, 107, 44, 0.6);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 13px;
  border-radius: 999px;
  transition: 0.2s;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255, 107, 44, 0.16); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(11,18,32,0.96) 8%, rgba(11,18,32,0.72) 48%, rgba(11,18,32,0.35)),
    linear-gradient(to top, var(--bg) 2%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; }

.hero-kicker {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  border: 1px solid rgba(255, 176, 32, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero h1 span {
  display: block;
  font-size: clamp(20px, 3vw, 34px);
  color: var(--accent);
  letter-spacing: 4px;
  margin-top: 12px;
}
.hero-sub-script {
  display: block;
  font-family: "Comforter Brush", cursive;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 1px;
  text-transform: none;
  color: var(--blue);
  line-height: 1.1;
  margin-top: 14px;
  opacity: 0.95;
}
.hero-text { max-width: 560px; color: var(--muted); font-size: 17px; margin: 22px 0 30px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.25s;
  cursor: pointer;
  border: 0;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b0d02;
  box-shadow: 0 10px 30px rgba(255, 107, 44, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(255, 107, 44, 0.5); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.stat b { display: block; font-family: "Oswald", sans-serif; font-size: 38px; color: #fff; line-height: 1; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-2); }
.section-dark { background: linear-gradient(180deg, #0a1526, #0b1220); }

.section-head { max-width: 720px; margin-bottom: 46px; }
.kicker {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
}
/* Декоративные шрифты из подключённой пары */
.font-script { font-family: "Comforter Brush", cursive; font-weight: 400; }
.font-gothic { font-family: "UnifrakturMaguntia", serif; font-weight: 400; }
.section h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.1;
}
.section-desc { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

h3 { font-family: "Oswald", sans-serif; font-weight: 600; letter-spacing: 0.5px; font-size: 22px; }

/* ---------- Rules ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.rule-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}
.rule-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.3s;
}
.rule-card:hover { transform: translateY(-6px); border-color: rgba(255,107,44,0.4); box-shadow: var(--shadow); }
.rule-card:hover::before { transform: scaleX(1); }
.rule-icon { font-size: 30px; margin-bottom: 12px; }
.rule-card h3 { margin-bottom: 10px; color: #fff; }
.rule-card p { color: var(--muted); font-size: 15px; }
.rule-card b { color: var(--accent-2); }

.info-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.info-item {
  background: rgba(55, 167, 255, 0.07);
  border-left: 3px solid var(--blue);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
}
.info-item b { display: block; color: var(--blue); margin-bottom: 4px; }
.info-item span { color: var(--muted); font-size: 14.5px; }

/* ---------- Technique ---------- */
.tech-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: start;
}
.tech-photo { position: sticky; top: 90px; }
.tech-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.photo-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.tech-accordion details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: 0.25s;
}
.tech-accordion details[open] { border-color: rgba(255, 107, 44, 0.45); background: var(--panel-2); }
.tech-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}
.tech-accordion summary::-webkit-details-marker { display: none; }
.tech-accordion summary em { color: var(--muted); font-style: normal; font-weight: 500; font-size: 14px; margin-left: auto; }
.tech-accordion .num {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b0d02;
  font-weight: 800;
}
.tech-body { padding: 0 22px 22px 68px; color: var(--muted); font-size: 15.3px; }
.tech-body ul { margin: 10px 0 10px 18px; }
.tech-body li { margin-bottom: 6px; }
.tech-body b { color: var(--text); }
.tip {
  background: rgba(53, 208, 127, 0.1);
  border: 1px dashed rgba(53, 208, 127, 0.5);
  color: #9ff0c6;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  margin-top: 12px;
}

.roles { margin-top: 54px; }
.roles h3 { margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1.5px; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.role {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  transition: 0.2s;
}
.role:hover { background: rgba(255, 107, 44, 0.1); transform: translateY(-4px); }
.role b { display: block; color: var(--accent-2); margin-bottom: 6px; font-size: 16px; }
.role span { color: var(--muted); font-size: 13.6px; }

/* ---------- History ---------- */
.history-top {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 54px;
}
.history-photo img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  filter: saturate(0.95);
}
.history-story h3 { color: var(--accent); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1.5px; }
.history-story p { color: var(--muted); margin-bottom: 14px; font-size: 16px; }
.history-story b { color: var(--text); }

.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 92px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--blue));
}
.tl-item { display: flex; gap: 34px; padding: 14px 0; position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 78px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.25);
}
.tl-year {
  width: 70px;
  flex: none;
  font-family: "Oswald", sans-serif;
  font-size: 21px;
  color: var(--accent-2);
  text-align: right;
  padding-top: 2px;
}
.tl-body { color: var(--muted); font-size: 15.5px; padding-left: 6px; }
.tl-body b { color: var(--text); }

/* ---------- Terms ---------- */
.terms-toolbar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; align-items: center; }
#termSearch {
  flex: 1;
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}
#termSearch:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.18); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.chip:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b0d02;
  border-color: transparent;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.term-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  transition: 0.22s;
  animation: fadeUp 0.35s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.term-card:hover { transform: translateY(-4px); border-color: rgba(55, 167, 255, 0.5); box-shadow: var(--shadow); }
.term-card .term-name { font-weight: 800; color: #fff; font-size: 16.5px; }
.term-card .term-en { color: var(--blue); font-size: 13px; font-style: italic; margin-left: 6px; font-weight: 500; }
.term-card .term-cat {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(255, 176, 32, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.term-card p { color: var(--muted); font-size: 14.3px; margin-top: 9px; }
.empty-msg { color: var(--muted); text-align: center; padding: 30px; }

.gestures-block { margin-top: 58px; }
.gestures-block h3 { text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.gestures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.gesture {
  background: linear-gradient(160deg, rgba(255,107,44,0.09), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  transition: 0.22s;
}
.gesture:hover { transform: translateY(-5px); border-color: rgba(255, 107, 44, 0.5); }
.gesture-ico { font-size: 28px; margin-bottom: 10px; }
.gesture b { display: block; color: #fff; margin-bottom: 6px; font-size: 16.5px; }
.gesture span { color: var(--muted); font-size: 14.3px; }

/* ---------- Tournaments ---------- */
.tour-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}
.tour-hero img { width: 100%; height: clamp(220px, 34vw, 380px); object-fit: cover; }
.tour-hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 46px 26px 20px;
  background: linear-gradient(to top, rgba(6,10,18,0.95), transparent);
}
.tour-hero-caption b { display: block; font-family: "Oswald", sans-serif; font-size: clamp(20px, 3vw, 30px); letter-spacing: 1px; }
.tour-hero-caption span { color: var(--accent-2); font-weight: 600; }

.tour-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

.tour-list { display: grid; gap: 14px; }
.tour-card {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  transition: 0.22s;
  animation: fadeUp 0.35s ease both;
}
.tour-card:hover { transform: translateX(6px); border-color: rgba(255, 176, 32, 0.5); box-shadow: var(--shadow); }

.tour-date {
  text-align: center;
  background: rgba(255, 107, 44, 0.1);
  border: 1px solid rgba(255, 107, 44, 0.35);
  border-radius: 12px;
  padding: 10px 6px;
}
.tour-date b { display: block; font-family: "Oswald", sans-serif; font-size: 27px; color: var(--accent-2); line-height: 1.1; }
.tour-date span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.tour-info h4 { font-size: 18px; color: #fff; font-weight: 800; margin-bottom: 5px; }
.tour-info p { color: var(--muted); font-size: 14.5px; }
.tour-info .tour-place { color: var(--blue); font-size: 13.5px; margin-top: 4px; }

.tour-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-ru { background: rgba(53, 208, 127, 0.14); color: var(--green); border: 1px solid rgba(53, 208, 127, 0.4); }
.tag-world { background: rgba(55, 167, 255, 0.14); color: var(--blue); border: 1px solid rgba(55, 167, 255, 0.4); }
.tag-hot { background: rgba(255, 107, 44, 0.16); color: var(--accent); border: 1px solid rgba(255, 107, 44, 0.45); }

.tour-note { margin-top: 26px; color: var(--muted); font-size: 14.5px; }
.tour-note b { color: var(--accent-2); }

/* ---------- CTA & Footer ---------- */
.cta {
  background: linear-gradient(135deg, var(--accent), #ff8f2c 55%, var(--accent-2));
  padding: 46px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-family: "Oswald", sans-serif; font-size: clamp(26px, 4vw, 38px); color: #1b0d02; text-transform: uppercase; }
.cta-script {
  display: block;
  font-family: "Comforter Brush", cursive;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  text-transform: none;
  letter-spacing: 1px;
  color: #6b3208;
  margin-top: 4px;
}
.logo-gothic {
  font-family: "UnifrakturMaguntia", serif;
  font-style: normal;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 6px;
}
.cta p { color: rgba(27, 13, 2, 0.75); font-weight: 600; }
.cta .btn-primary { background: #101a2c; color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,0.3); }

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--muted); font-size: 14.5px; }
.footer-nav a:hover { color: var(--accent); }
.site-footer p { color: #6b7c99; font-size: 13.5px; }

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b0d02;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 0.3s;
  z-index: 50;
  box-shadow: 0 10px 26px rgba(255, 107, 44, 0.4);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .tech-layout { grid-template-columns: 1fr; }
  .tech-photo { position: static; }
  .history-top { grid-template-columns: 1fr; }
  .tour-card { grid-template-columns: 96px 1fr; }
  .tour-card .tour-tag { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(11, 18, 32, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 14px;
    gap: 4px;
    transform: translateY(-130%);
    transition: 0.35s;
    z-index: 55;
  }
  .nav.open { transform: none; }
  .nav a { padding: 13px 16px; font-size: 16px; }
  .burger { display: block; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: auto; padding-top: 130px; }
  .hero-stats { gap: 22px; }
  .stat b { font-size: 30px; }
  .section { padding: 64px 0; }

  .timeline { padding-left: 4px; }
  .timeline::before { left: 76px; }
  .tl-item::before { left: 62px; }
  .tl-year { width: 58px; font-size: 18px; }
  .tl-item { gap: 30px; }

  .tech-body { padding-left: 22px; }
  .tour-card { grid-template-columns: 1fr; text-align: left; }
  .tour-date { width: 130px; }
}
