/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

:root {
  --bg: #030303;
  --bg-card: #131313;
  --accent: #91fe02;
  --white: #ffffff;
  --gray: #c3c3c3;
  --dark: #160d16;
  --purple: #a900d8;
  --radius-section: 24px;
  --radius-card: 30px;
  --radius-sm: 15px;
  --radius-pill: 100px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 68px;
  line-height: 86px;
  text-transform: uppercase;
  text-align: center;
}

.purple {
  color: var(--purple);
}

.green {
  color: var(--accent);
}

/* ===== HERO (shared wrapper) ===== */
.hero {
  padding: 30px;
}

.hero-inner {
  background: var(--bg-card);
  border-radius: var(--radius-section);
  padding: 60px 70px 70px;
  position: relative;
  overflow: hidden;
  min-height: 940px;
}

/* ===== HEADER & NAV ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 96px;
}

.header-fixed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 70px;
  background: rgba(3, 3, 3, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.header-fixed.visible {
  opacity: 1;
  pointer-events: auto;
}

.header-fixed .logo { width: 215px; height: 24px; object-fit: contain; }
.header-fixed .nav { display: flex; align-items: center; gap: 30px; }
.header-fixed .nav a { font-size: 17px; color: var(--white); transition: color 0.2s; white-space: nowrap; }
.header-fixed .nav a:hover, .header-fixed .nav a.active { color: var(--accent); }
.header-fixed .btn-outline-green { padding: 12px 30px; border: 1px solid var(--accent); border-radius: var(--radius-pill); color: var(--accent); font-size: 16px; }

.logo {
  width: 215px;
  height: 24px;
  object-fit: contain;
}

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

.nav a {
  font-size: 17px;
  color: var(--white);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 0;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown.open .arrow-down {
  transform: rotate(180deg);
}

.arrow-down {
  transition: transform 0.2s;
  width: 20px;
  height: 20px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  color: var(--gray);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline-green {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 15px 27px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-outline-green:hover {
  background: var(--accent);
  color: var(--dark);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ===== SOCIAL ICONS ===== */
.social-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent);
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-icon:hover {
  background: rgba(145, 254, 2, 0.15);
}

.social-icon svg,
.social-icon .social-svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.whatsapp-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.whatsapp-icon .social-svg {
  position: absolute;
  top: 0;
  left: 0;
}

.whatsapp-icon .whatsapp-inner {
  width: 5px;
  height: 5px;
  top: 6px;
  left: 6px;
}

/* ===== BUTTONS ===== */
.btn-outline-green-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 15px 40px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline-green-sm:hover {
  background: var(--accent);
  color: var(--dark);
}

/* ===== CONTACTS ===== */
.contacts {
  padding: 100px 30px 0;
}

.contacts-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacts-top {
  display: flex;
  gap: 60px;
  padding: 70px;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.contacts-left {
  flex: 1;
}

.contacts-title {
  text-align: left;
  margin-bottom: 30px;
}

.contacts-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.contacts-buttons-row {
  display: flex;
  gap: 12px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--dark);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.contact-btn:hover {
  opacity: 0.85;
}

.contact-btn-arrow {
  width: 12px;
  height: 12px;
}

.contacts-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 15px;
  color: var(--gray);
}

.contacts-nav a:hover {
  color: var(--accent);
}

.contacts-nav span {
  color: var(--gray);
  opacity: 0.5;
}

.contacts-info {
  margin-bottom: 24px;
}

.contacts-info h4 {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contacts-info p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.5;
}

.contacts-right {
  width: 600px;
  flex-shrink: 0;
}

.contacts-map {
  width: 100%;
  height: 484px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(145, 254, 2, 0.3);
}


.contacts-big {
  position: relative;
  z-index: 1;
  padding: 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.big-phone,
.big-email {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  color: var(--accent);
  transition: opacity 0.2s;
  display: block;
  white-space: nowrap;
  opacity: 0.7;
  font-size: clamp(24px, 5.5vw, 80px);
}

.big-phone:hover,
.big-email:hover {
  opacity: 1;
}

/* ===== GLOWS (shared) ===== */
.glow {
  position: absolute;
  width: 938px;
  height: 938px;
  pointer-events: none;
  z-index: 0;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Hero glow (used by index + trade-in) */
.glow-hero {
  top: 80px;
  right: -300px;
  background-image: url('assets/glow-green-1.svg');
}

/* Advantages glows (used by index + trade-in) */
.glow-adv-tr {
  top: -350px;
  right: -200px;
  background-image: url('assets/glow-purple.svg');
}

.glow-adv-bl {
  bottom: -250px;
  left: -400px;
  background-image: url('assets/glow-purple-2.svg');
}

.glow-contacts-tr {
  top: -300px;
  right: -150px;
  width: 634px;
  height: 634px;
  background-image: url('assets/glow-purple-2.svg');
}

.glow-contacts-bl {
  bottom: -200px;
  left: -300px;
  width: 338px;
  height: 338px;
  background-image: url('assets/glow-purple.svg');
}

/* ===== CALLBACK ===== */
.callback {
  padding: 100px 30px 0;
}

.callback-inner {
  background: var(--accent);
  border-radius: var(--radius-card);
  padding: 70px;
  min-height: 426px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.callback-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 68px;
  line-height: 86px;
  text-transform: uppercase;
  color: var(--dark);
}

.callback-form {
  position: relative;
  align-self: flex-end;
  margin-top: 40px;
}

.callback-form input {
  background: transparent;
  border: 1px solid #160d16;
  border-radius: 30px;
  padding: 16px 240px 16px 20px;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  width: 553px;
  outline: none;
}

.callback-form input::placeholder {
  color: var(--dark);
  opacity: 0.4;
}

.btn-dark {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  background: #160d16;
  color: var(--white);
  border: 1px solid #160d16;
  border-radius: 40px;
  padding: 0 40px;
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-dark:hover {
  opacity: 0.85;
}

/* ===== MODAL FORM ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--dark);
  border-radius: var(--radius-card);
  padding: 30px 70px 35px;
  width: 550px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 0.6;
}

.modal-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--white);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 28px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-field label {
  font-size: 14px;
  color: var(--gray);
}

.modal-field input {
  background: var(--white);
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  outline: none;
  width: 100%;
}

.modal-field input:focus,
.modal-field textarea:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.modal-field textarea {
  background: var(--white);
  border: none;
  border-radius: 20px;
  padding: 12px 20px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  outline: none;
  width: 100%;
  min-height: 60px;
  resize: vertical;
}

.modal-radio-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-radio-group legend {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}

.modal-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 0;
}

.modal-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray);
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.modal-radio input[type="radio"]:checked {
  border-color: var(--accent);
}

.modal-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.modal-radio span {
  font-size: 16px;
  color: var(--white);
}

.modal-submit {
  width: 100%;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 50px;
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 12px;
}

.modal-submit:hover {
  opacity: 0.85;
}

/* ===== ERROR TOAST ===== */
.error-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #ff3b3b;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}

.error-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ===== SUCCESS MESSAGE MODAL ===== */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.success-overlay.open {
  display: flex;
}

.success-modal {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 40px 50px;
  width: 550px;
  text-align: center;
  animation: successAppear 0.3s ease;
}

@keyframes successAppear {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.success-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.success-text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 28px;
}

.success-text strong {
  color: var(--white);
}

.success-close {
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 50px;
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.success-close:hover {
  opacity: 0.85;
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px 100px 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #c0c0c0;
  line-height: 1.5;
}

/* ===== MOBILE NAV ===== */
.nav.open {
  display: flex;
}

/* ===== RESPONSIVE (shared) ===== */
@media (max-width: 1400px) {
  .header {
    margin-bottom: 60px;
  }

  .header-fixed {
    padding: 15px 30px;
  }

  .logo,
  .header-fixed .logo {
    width: 170px;
    height: 20px;
  }

  .nav,
  .header-fixed .nav {
    gap: 20px;
  }

  .nav a,
  .header-fixed .nav a {
    font-size: 14px;
  }

  .nav-dropdown-menu a {
    font-size: 13px;
    padding: 8px 16px;
  }

  .nav-dropdown-menu {
    min-width: 200px;
  }

  .btn-outline-green {
    padding: 10px 20px;
    font-size: 14px;
  }

  .header-fixed .btn-outline-green {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 1200px) {
  .header-fixed {
    padding: 12px 20px;
  }

  .logo,
  .header-fixed .logo {
    width: 150px;
    height: 18px;
  }

  .nav,
  .header-fixed .nav {
    gap: 15px;
  }

  .nav a,
  .header-fixed .nav a {
    font-size: 13px;
  }

  .btn-outline-green {
    padding: 8px 16px;
    font-size: 13px;
  }

  .header-fixed .btn-outline-green {
    padding: 8px 16px;
    font-size: 13px;
  }

  .section-title,
  .callback-title {
    font-size: 48px;
    line-height: 60px;
  }

  .contacts-top {
    flex-direction: column;
  }

  .contacts-right {
    width: 100%;
  }
}

@media (max-width: 1050px) {
  .header-fixed {
    padding: 15px 20px;
  }

  .header-fixed .btn-outline-green {
    display: none;
  }

  .header-fixed .burger {
    display: flex;
    z-index: 101;
  }

  .header-fixed .nav {
    display: none;
  }

  .header-fixed .nav.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 3, 3, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 100;
  }

  .header-fixed .nav.open a {
    font-size: 24px;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 3, 3, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 100;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 24px;
  }

  .nav a:hover {
    color: inherit;
  }

  .nav-dropdown-menu a:hover {
    color: var(--gray);
    background: none;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s, max-height 0.3s, margin-top 0.3s, visibility 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    margin-top: 12px;
  }

  .nav-dropdown-menu a {
    padding: 4px 0;
    font-size: 18px;
    text-align: center;
    color: var(--gray);
  }

  .burger {
    display: flex;
    z-index: 101;
  }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .header .btn-outline-green {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 15px;
  }

  .hero-inner {
    padding: 30px;
    min-height: auto;
  }

  .section-title {
    font-size: 36px;
    line-height: 44px;
  }

  .contacts {
    padding: 60px 15px 0;
  }

  .contacts-top {
    padding: 30px 20px;
  }

  .contacts-big {
    padding: 0 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .big-phone,
  .big-email {
    display: flex;
    justify-content: center;
  }

  .contacts-map {
    height: 242px;
  }


  .contacts-title {
    font-size: 36px;
    line-height: 44px;
  }

  .callback {
    padding: 30px 15px 0;
  }

  .callback-inner {
    padding: 30px 20px;
    min-height: auto;
  }

  .callback-title {
    font-size: 32px;
    line-height: 40px;
  }

  .callback-form {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .callback-form input {
    width: 100%;
    padding-right: 20px;
    font-size: 14px;
  }

  .btn-dark {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px 20px;
    font-size: 14px;
    text-align: center;
  }

  .modal {
    width: calc(100% - 30px);
    padding: 30px 20px 36px;
  }

  .modal-title {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .modal-submit {
    width: 100%;
    padding: 16px 20px;
  }

  .success-modal {
    width: calc(100% - 30px);
    padding: 30px 20px;
  }

  .success-title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .footer {
    padding: 40px 15px 20px;
  }

  .footer-top {
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .footer-socials {
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-children.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-children.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-children.revealed > *:nth-child(3) { transition-delay: 0.1s; }
.reveal-children.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-children.revealed > *:nth-child(5) { transition-delay: 0.2s; }
.reveal-children.revealed > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-children.revealed > *:nth-child(n+7) { transition-delay: 0.3s; }

.reveal-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}
