/* ================================
   CSS Reset & Variables
================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
  font-family: 'Geologica';
  src: url('fonts/Geologica-VariableFont.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bright: #5D1032;
  --dark: #1C0811;
  --white: #fff;
  --transparent-white-05: rgba(255,255,255,0.05);
  --transparent-white-03: rgba(255,255,255,0.03);
}

body {
  font-family: 'Geologica', sans-serif;
  background: radial-gradient(circle at center, var(--bright), var(--dark));
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

.background-overlay {
  padding: 2rem;
  padding-bottom: 0;
  background: linear-gradient(145deg, var(--transparent-white-03), rgba(255,255,255,0.01));
  backdrop-filter: blur(4px);
  min-height: 100vh;
}

.site-footer {
  flex-shrink: 0;
  padding-bottom: 0;  /* No space under */
}

/* ================================
   Header / Branding
================================ */
.main-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.brand {
  font-size: 9rem;
  font-weight: 900;
  letter-spacing: 0.2rem;
  color: rgba(255,255,255,0.12);
  position: relative;
  z-index: 0;
}
.tagline {
  font-size: 1.3rem;
  letter-spacing: 0.4rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  margin-top: -1rem;
}

@media (max-width: 700px) {
  .tagline {
    font-size: 0.85rem;
    letter-spacing: 0.12rem;
    margin-top: 0.2rem;
    margin-bottom: 0.6rem;
    color: rgba(255,255,255,0.65); /* lighter */
    text-align: center;
    line-height: 1.2;
  }
}


/* ================================
   Navbar
================================ */
/* ============ Navbar Base ============= */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  position: relative;
  z-index: 10;
  flex-direction: row;
}
.navbar ul {
  display: flex;
  gap: 2rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--white);
  border-radius: 50px;
  list-style: none;
  background: transparent;
  transition: none;
  margin: 0;
}
.navbar li { margin: 0; }
.navbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}
.navbar a:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 8px rgba(255,255,255,0.4),
              0 0 20px rgba(255,255,255,0.15) inset;
  text-shadow: 0 0 4px var(--white);
}

/* HAMBURGER ICON - HIDDEN ON DESKTOP */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 36px;
  height: 36px;
  margin: 0 auto;
}
.navbar-toggle span {
  height: 4px;
  width: 100%;
  background: var(--white);
  margin: 4px 0;
  border-radius: 3px;
  display: block;
  transition: 0.3s;
}

/* MOBILE NAVBAR */
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 1.1rem 0 1.2rem 0;
    position: relative;
    z-index: 100;
    width: 100vw;
  }
  .navbar-toggle {
    display: flex;
    margin: 0 auto 0.6rem auto; /* center, with space below */
  }
  .navbar ul {
    position: static;
    background: var(--dark);
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.14);  /* slightly thicker for modern look */
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: none;
    flex-direction: column;
    align-items: stretch;     /* <-- STRETCH, not center */
    gap: 0.2rem;
    padding: 0.7rem 0.7rem;   /* even left/right padding */
    margin: 0 auto;
    width: 95vw;
    max-width: 370px;
    z-index: 1200;
    animation: dropdownFadeIn 0.23s;
  }
  .navbar ul.show {
    display: flex;
  }
  .navbar a {
    font-size: 1.06rem;
    padding: 0.6rem 0.5rem;      /* top/bottom and left/right */
    border-radius: 10px;
    width: 100%;                 /* fill the dropdown width! */
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    text-align: center;
    display: block;
  }
  .navbar li {
    width: 100%;
    margin: 0;
  }
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-18px);}
  to { opacity: 1; transform: translateY(0);}
}

/* ================================
   Hero / How Section
================================ */
.how-section {
  max-width: 900px;
  margin: auto;
  background: var(--transparent-white-05);
  border-radius: 20px;
  padding: 2rem 3rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
}
.how-section h2 {
  font-size: 2.2rem;
  
}
.description {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.start-button {
  text-decoration: none;
  padding: 0.7rem 1.6rem;
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 30px;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}
.start-button:hover {
  background: var(--white);
  color: var(--bright);
  box-shadow: 0 0 8px var(--white), 0 0 20px rgba(255,255,255,0.35);
}
.feature-list {
  list-style-position: inside;
  padding: 0;
  margin: 1.5rem auto 0 auto;
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-list li { text-align: center; }

/* ================================
   Screenshot Gallery
================================ */
.screenshots {
  max-width: 1000px;
  margin: 4rem auto 2rem;
  text-align: center;
}
.screenshots h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}
.screenshot-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.screenshot-card {
  width: 280px;
  height: 180px;
  background: var(--transparent-white-05);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
  border-radius: 15px;
}
.screenshot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}
.screenshot-card img:hover { transform: scale(1.06); }

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(30, 10, 20, 0.38);  /* прозрачный, слегка бордово-фиолетовый как сайт */
  backdrop-filter: blur(16px);          /* размывает то, что под модалкой! */
  -webkit-backdrop-filter: blur(16px);  /* поддержка для Safari */
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}
.modal-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  background: #222;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.8rem;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  z-index: 10;
}


/* ================================
   Team (About Page)
================================ */
.team-section {
  display: flex;
  flex-wrap: nowrap;    /* No wrap! */
  justify-content: center;
  align-items: flex-start;
  gap: 2.2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  overflow-x: auto;     /* Enable horizontal scroll if too narrow */
}

.team-card {
  flex: 1 1 160px;
  max-width: 210px;      /* Shrink max width to fit 5 in a row */
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  padding: 1rem 0 1.2rem 0;
  border-radius: 18px;
  box-shadow: none;
  border: none;
  margin: 0 0.6rem 2rem 0.6rem;
}

.team-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 22px rgba(0,0,0,0.13);
  border: 4px solid rgba(255,255,255,0.1);
  display: block;
  transition: transform 0.23s;
}
.team-card img:hover {
  transform: scale(1.045);
}

/* Name and role styling */
.team-card h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.16rem;
  font-weight: 700;
  text-align: center;
}
.team-card p {
  margin: 0;
  font-size: 1.01rem;
  font-weight: 400;
  text-align: center;
  opacity: 0.93;
}

/* --- Responsive: stack on mobile, smaller avatars --- */
@media (max-width: 900px) {
  .team-section {
    flex-wrap: wrap; /* allow wrap on small screens */
    gap: 1.1rem;
    padding: 1rem 0.4rem;
  }
  .team-card {
    min-width: 140px;
    max-width: 210px;
    padding: 0.7rem 0 1rem 0;
  }
}
@media (max-width: 600px) {
  .team-section {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
  }
  .team-card {
    width: 95vw;
    min-width: 0;
    max-width: 98vw;
    margin: 0 0 2rem 0;
  }
}

/* ================================
   Pricing Area
================================ */
.pricing-area {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 3rem auto;
  max-width: 1100px;
}
.plan-card {
  background: var(--transparent-white-05);
  border: 2px solid var(--bright);
  border-radius: 25px;
  padding: 2.5rem 2rem;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}
.plan-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.plan-card .price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.plan-card ul {
  list-style: none;
  line-height: 1.7;
  margin-bottom: 2rem;
  padding: 0;
}
.plan-card button {
  background: var(--bright);
  border: none;
  color: var(--white);
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  margin-top: auto;
}
.plan-card button:hover {
  background: var(--white);
  color: var(--bright);
}
@media (max-width: 1050px) {
  .pricing-area { gap: 1rem; }
  .plan-card { width: 220px; min-height: 300px; padding: 1.5rem 1rem; }
}
@media (max-width: 700px) {
  .pricing-area { flex-direction: column; gap: 1.2rem; max-width: 98vw; }
  .plan-card { width: 98vw; min-height: unset; }
}

/* ================================
   Registration Form
================================ */
.form-container {
  max-width: 450px;
  margin: 3rem auto;
  background: var(--transparent-white-05);
  padding: 2.5rem 3rem;
  border-radius: 25px;
  text-align: center;
  border: 2px solid var(--bright);
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
}
.form-container h2 { margin-bottom: 1.5rem; }
.form-container label {
  display: block;
  text-align: left;
  margin-bottom: 0.3rem;
}
.form-container input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: none;
  margin-bottom: 1rem;
}
.form-container button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 30px;
  background: var(--bright);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.form-container button:hover {
  background: var(--white);
  color: var(--bright);
}
@media (max-width: 700px) {
  .form-container {
    max-width: 98vw;
    padding: 1.2rem 0.4rem;
    font-size: 0.98rem;
  }
}

/* ================================
   Contact
================================ */
.contact-section {
  max-width: 900px;
  margin: 1.3rem auto 0 auto;            /* closer to previous section */
  background: var(--transparent-white-05);
  padding: 2.4rem 3rem 2.2rem 3rem;
  border-radius: 28px;
  text-align: center;
  border: 2px solid var(--bright);
  box-shadow: 0 0 30px rgba(0,0,0,0.13);
}

.contact-section h2 {
  margin-bottom: 1.3rem;
  font-size: 2.1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1.1rem;
  padding: 0.78rem 1.1rem;
  border-radius: 13px;
  border: none;
  font-size: 1.05rem;
  background: rgb(66,4,34);   /* soft purple bg */
  color: #fff;
  transition: background 0.23s, box-shadow 0.18s;
  box-shadow: 0 2px 10px rgba(93,16,50,0.08) inset;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--bright);
  background: rgba(93,16,50,0.21);
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form button {
  background: var(--bright);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-size: 1.11rem;
  padding: 0.8rem 2.6rem;
  cursor: pointer;
  margin-top: 0.7rem;
  transition: background 0.3s, color 0.3s;
}
.contact-form button:hover {
  background: var(--white);
  color: var(--bright);
}

/* Responsive styles for tablet */
@media (max-width: 950px) {
  .contact-section {
    max-width: 95vw;
    padding: 1.8rem 1.5rem 1.4rem 1.5rem;
    font-size: 1rem;
  }
}

/* Responsive styles for mobile */
@media (max-width: 600px) {
  .contact-section {
    max-width: 99vw;
    padding: 1rem 0.1rem;
    border-radius: 15px;
    margin-top: 0.9rem;
  }
  .contact-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
    padding: 0.62rem 0.7rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
  }
  .contact-form button {
    font-size: 1.03rem;
    padding: 0.7rem 1.5rem;
    border-radius: 15px;
  }
}

/* ================================
   Footer
================================ */
.site-footer {
  width: 100vw;                  /* force full width */
  margin: 4rem 0 0 0;            /* remove auto (center) margin */
  background: var(--dark);
  padding: 2rem 0 1.5rem 0;      /* zero left/right padding, more bottom */
  text-align: center;
  font-size: 0.97rem;
  border-radius: 0;
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.site-footer nav ul {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  list-style: none;
  margin-bottom: 1rem;
  padding: 0;
}
.site-footer a {
  color: var(--white);
  text-decoration: none;
}
.site-footer p { opacity: 0.75; }

/* ================================
   General Responsiveness
================================ */
@media (max-width: 1200px) {
  .how-section { padding: 2rem 1rem; }
}
@media (max-width: 700px) {
  html { font-size: 95%; }
  body { padding: 0; }
  .background-overlay { padding: 1rem 0.2rem; }
  .brand { font-size: 2.3rem; }
  .how-section h2 { font-size: 1.5rem; }
  .screenshots { margin: 1.5rem auto 1rem; }
}
