
/* Basic reset & variables */
*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  --orange: #f29d38;
  --blue: #00bfff;
  --dark: #000;
  --light: #fff;
}
html {
  scroll-behavior: smooth;
}

/* Body & typography */
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--light);
  background-color: var(--dark);
  overflow-x: hidden;
}

/* Fixed header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(8px);
  background-color: rgba(0,0,0,0.6);
  z-index: 1000;
}
.logo {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-register {
  text-decoration: none;
  color: var(--dark);
  background: var(--orange);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: opacity .2s;
}
.btn-register:hover { opacity: 0.85; }
.btn-registe {
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  background: var(--orange);
  padding: 10px 20px;
  margin: 10px;
  border-radius: 999px;
  font-weight: 900;
  transition: opacity .2s;
}
.btn-registe:hover { opacity: 0.85; }

/* Global block styles */
.block {
  position: relative;
  padding: 120px 40px;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.block h1,
.block h2 { margin: 0 0 20px 0; }

/* Gradient semicircle background */
.block::before {
  content: "";
  position: absolute;
  width: 1500px;
  height: 1500px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.9;
  z-index: -1;
}

/* Specific blocks */
.hero {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.hero::before {
  background: radial-gradient(circle at left top, var(--blue) 0%, transparent 70%);
  top: -250px;
  left: -250px;
}
.hero .text { max-width: 45%; }
.phone-mock { background: rgba(255,255,255,0.07); width: 280px; height: 540px; border-radius: 24px; }

/* What is block */
.what-is {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.what-is::before {
  background: radial-gradient(circle at right top, var(--orange) 0%, transparent 70%);
  top: -250px;
  right: -250px;
}
.what-is .text { max-width: 45%; }
.laptop-mock { background: rgba(255,255,255,0.07); width: 400px; height: 260px; border-radius: 16px; }

/* Features */
.features::before {
  background: radial-gradient(circle at left center, var(--blue) 0%, transparent 70%);
  top: 0;
  left: -300px;
}
.features ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
}
.features li { margin: 12px 0; }

/* Reviews */
.reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 180px; /* offset header and bg */
}
.reviews::before {
  background: radial-gradient(circle at top center, var(--blue) 0%, transparent 70%);
  top: -350px;
  left: 50%;
  transform: translateX(-50%);
}
.image {
  width: 40%;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
  max-width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .image {
    width: 90%;
    max-width: 320px;
    height: auto;
  }
}
.review {
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.05);
  padding: 30px 20px;
  border-radius: 20px;
  max-width: 1240px;
}
.avatar {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  margin: 0 auto 16px;
}

/* Makers */
.makers {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.makers::before {
  background: radial-gradient(circle at left center, var(--blue) 0%, transparent 70%);
  top: 0;
  left: -300px;
}
.makers .text { max-width: 45%; }
.tablet-mock { background: rgba(255,255,255,0.07); width: 360px; height: 480px; border-radius: 20px; }

/* Contact */
.contact::before {
  background: radial-gradient(circle at bottom right, var(--orange) 0%, transparent 70%);
  bottom: -300px;
  right: -300px;
}
.contact p { margin: 8px 0; }

/* Adaptive */
@media (max-width: 960px) {
  .hero, .what-is, .makers {
    flex-direction: column;
    text-align: center;
  }
  .hero .text, .what-is .text, .makers .text {
    max-width: 100%;
    margin-bottom: 40px;
  }
}

/* Spacing fix for fixed header */
body { padding-top: 80px; }
/* ---- Регистрационный блок ---- */
.registration-block .text {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.reg-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  gap: 10px;
}

.reg-form input,
.reg-form select {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: #f29d38;
  width: 100%;
}

.reg-form input::placeholder {
  color: #aaa;
}

.phone-group {
  display: flex;
  gap: 10px;
}

.phone-group select {
  flex: 1;
}
.phone-group input {
  flex: 2;
}

/* Попап */
.popup-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(0,0,0,0.85);
  border: 2px solid var(--orange);
  padding: 24px 28px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(242, 157, 56, 0.3);
  max-width: 300px;
  color: #fff;
  display: none;
  z-index: 999;
}
.popup-message button {
  margin-top: 18px;
  padding: 10px 18px;
  border: none;
  background: var(--orange);
  color: var(--dark);
  border-radius: 999px;
  cursor: pointer;
}
.popup-close {
  position: absolute;
  top: 6px;
  right: 12px;
  cursor: pointer;
  font-weight: bold;
  color: #aaa;
}

