@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black: #050607;
  --gunmetal: #1A1F24;
  --gunmetal-2: #11151A;
  --steel: #C8CED3;
  --orange: #FF4A1F;
  --ember: #FF7A3D;
  --warning: #D7261E;
  --text: #DCE1E6;
  --text-2: #8C96A0;
  --text-3: #5A646E;
  --border: rgba(200, 206, 211, 0.12);
  --border-strong: rgba(200, 206, 211, 0.22);
  --cta-gradient: linear-gradient(135deg, #FF7A3D 0%, #FF4A1F 100%);
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
}

html.hide #preloader {
  display: none;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--black);
  overflow-x: hidden;
  position: relative;
}

body.fixed {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 206, 211, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 206, 211, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

#preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#preloader img {
  width: 80px;
  height: 80px;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(5, 6, 7, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 10px 0;
  position: relative;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav .nav-link {
  padding: 10px 14px;
}

.nav .nav-link::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav .nav-link:hover::before {
  transform: scaleX(1);
}

.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 110;
  padding: 0;
}

.burger-btn span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--steel);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.burger-btn span:nth-child(1) { top: 14px; }
.burger-btn span:nth-child(2) { top: 21px; }
.burger-btn span:nth-child(3) { top: 28px; }

.burger-btn.act span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 24px 40px;
}

#mobile-menu .nav-link {
  padding: 6px 0;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu .nav-link {
  font-size: 18px;
  letter-spacing: 0.1em;
}

.mobile-menu__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu__close:hover {
  border-color: var(--orange);
  transform: rotate(90deg);
}

.mobile-menu__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--steel);
  transition: background 0.2s ease;
}

.mobile-menu__close:hover span {
  background: var(--orange);
}

.mobile-menu__close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cta-gradient);
  border: 0;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  position: relative;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 32px rgba(255, 74, 31, 0.28);
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 40px rgba(255, 74, 31, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--text);
  box-shadow: none;
}

/* SECTION */
.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--orange);
}

.section-title {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.section-lead {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-h) + 80px) 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(255, 74, 31, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__content {
  position: relative;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  background: rgba(26, 31, 36, 0.6);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 28px;
}

.hero__tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero__title .accent {
  color: var(--orange);
  position: relative;
}

.hero__text {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 560px;
}

.hero__text:last-of-type {
  margin-bottom: 36px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero__character {
  max-height: 620px;
  width: auto;
  filter: drop-shadow(0 24px 60px rgba(255, 74, 31, 0.18));
  position: relative;
  z-index: 2;
}

.hero__frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  pointer-events: none;
}

.hero__frame::before,
.hero__frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--orange);
}

.hero__frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.hero__frame::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

/* LANDSCAPE */
.landscape {
  background: var(--gunmetal-2);
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landscape__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.landscape__image {
  position: relative;
}

.landscape__image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
}

.landscape__image::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid var(--orange);
  z-index: -1;
  opacity: 0.4;
}

.landscape__close {
  color: var(--text-2);
  font-size: 16px;
  margin-top: 24px;
}

.terrain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.terrain-card {
  padding: 22px;
  background: var(--gunmetal);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.terrain-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.terrain-card__name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terrain-card__name::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange);
  flex-shrink: 0;
}

.terrain-card__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* HOW IT WORKS */
.how {
  background: var(--black);
}

.how__lead {
  margin-bottom: 0;
}

.how__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}

.how__image {
  position: relative;
}

.how__image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
}

.how__image::before {
  content: '';
  position: absolute;
  top: -14px;
  right: -14px;
  width: 80px;
  height: 80px;
  border-top: 1px solid var(--orange);
  border-right: 1px solid var(--orange);
  pointer-events: none;
}

.tools__image {
  margin: 28px 0 24px;
  position: relative;
}

.tools__image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
}

.tools__image::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: -14px;
  width: 80px;
  height: 80px;
  border-bottom: 1px solid var(--orange);
  border-left: 1px solid var(--orange);
  pointer-events: none;
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.action-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--gunmetal);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.action-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.action-card__num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--orange);
  background: rgba(255, 74, 31, 0.08);
}

.action-card__text {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.how__note {
  padding: 28px 32px;
  border-left: 3px solid var(--orange);
  background: var(--gunmetal-2);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}

/* TOOLS */
.tools {
  background: var(--gunmetal-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tools__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

.tools__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-card {
  padding: 26px 28px;
  background: var(--gunmetal);
  border: 1px solid var(--border);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.tool-card:hover {
  border-color: var(--orange);
  transform: translateX(4px);
}

.tool-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 74, 31, 0.08);
  border: 1px solid rgba(255, 74, 31, 0.4);
  flex-shrink: 0;
}

.tool-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
}

.tool-card__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 6px;
}

.tool-card__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.tools__footer {
  margin-top: 32px;
  color: var(--text-2);
  font-size: 16px;
}

/* RIVERS */
.rivers {
  background: var(--black);
}

.rivers__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.rivers__image {
  position: relative;
}

.rivers__image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
}

.rivers__list {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rivers__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--gunmetal);
  border-left: 2px solid var(--orange);
  font-size: 15px;
  color: var(--text);
}

.rivers__list li::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-top: 6px;
  flex-shrink: 0;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.rivers__close {
  color: var(--text-2);
  font-size: 16px;
  margin-top: 8px;
}

/* FAQ */
.faq {
  background: var(--gunmetal-2);
  border-top: 1px solid var(--border);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}

.faq-item {
  background: var(--gunmetal);
  border: 1px solid var(--border);
  position: relative;
}

.faq-item__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-item__head:hover {
  background: rgba(255, 74, 31, 0.04);
}

.faq-item__num {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.faq-item__q {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  position: relative;
  flex-shrink: 0;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--orange);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item__icon::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.faq-item__icon::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.faq-item.open .faq-item__icon::before {
  transform: translateX(-50%) scaleY(0);
}

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item__inner {
  padding: 0 28px 26px 28px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 4px;
}

.faq-item.open .faq-item__body {
  max-height: 500px;
}

/* FOOTER */
.footer {
  background: var(--gunmetal-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  max-width: 360px;
}

.footer__brand .logo {
  margin-bottom: 20px;
}

.footer__brand p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.footer__col h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a {
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
  position: relative;
}

.footer__col a:hover {
  color: var(--orange);
  padding-left: 8px;
}

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.footer__bottom a {
  color: var(--text-2);
}

.footer__bottom a:hover {
  color: var(--orange);
}

/* LEGAL */
.legal-page {
  padding: calc(var(--header-h) + 80px) 0 100px;
  min-height: 100vh;
  background: var(--black);
  position: relative;
}

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  background: var(--gunmetal);
  border: 1px solid var(--border);
  padding: 56px;
}

.legal-content h1 {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}

.legal-content h3,
.legal-content h4 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--orange);
  margin: 36px 0 16px;
}

.legal-content h3 {
  font-size: 22px;
  text-transform: uppercase;
}

.legal-content p,
.legal-content li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content strong {
  color: var(--text);
}

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 16px;
  list-style: disc;
}

.legal-content a {
  color: var(--orange);
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .hero__title { font-size: 52px; }
  .section-title { font-size: 40px; }
  .section { padding: 100px 0; }
  .hero__grid { gap: 40px; }
  .landscape__grid,
  .rivers__grid,
  .tools__grid { gap: 48px; }
}

@media (max-width: 930px) {
  .nav { display: none; }
  .burger-btn { display: block; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .container { padding: 0 20px; }
  .header { padding: 10px 0; }
  .header.scrolled { padding: 6px 0; }
  .logo img { height: 36px; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 60px) 0 60px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .hero__character { max-height: 380px; }
  .hero__title { font-size: 42px; }
  .section { padding: 80px 0; }
  .section-title { font-size: 32px; }
  .landscape__grid,
  .tools__grid,
  .rivers__grid { grid-template-columns: 1fr; gap: 36px; }
  .how__head { grid-template-columns: 1fr; gap: 32px; }
  .how__image::before,
  .tools__image::after { display: none; }
  .landscape__image::before { display: none; }
  .terrain-list { grid-template-columns: 1fr; }
  .how__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-content { padding: 36px 24px; }
  .legal-content h1 { font-size: 32px; }
}

@media (max-width: 640px) {
  .hero__title { font-size: 34px; }
  .section-title { font-size: 26px; }
  .btn { padding: 14px 22px; font-size: 12px; }
  .action-card { padding: 22px; gap: 16px; }
  .action-card__num { width: 48px; height: 48px; font-size: 26px; }
  .tool-card { padding: 22px; gap: 16px; }
  .tool-card__icon { width: 48px; height: 48px; }
  .faq-item__head { padding: 20px 22px; gap: 14px; }
  .faq-item__inner { padding: 22px 22px 24px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
