/* ============================================
   DiMax CPA - Modern Premium Design
   ============================================ */

/* CSS Variables for consistent theming */
:root {
  /* Primary palette */
  --accent-primary: #7cff5a;
  --accent-secondary: #00ffd5;
  --accent-gradient: linear-gradient(135deg, #7cff5a 0%, #00ffd5 100%);
  
  /* Dark palette */
  --bg-dark: #0a0f0d;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.05);
  
  /* Border colors */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(124, 255, 90, 0.3);
  
  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Shadows & Glows */
  --glow-accent: 0 0 60px rgba(124, 255, 90, 0.15);
  --glow-button: 0 8px 32px rgba(124, 255, 90, 0.4);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  
  /* Animation timing */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Base Styles & Typography
   ============================================ */
html,
body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-dark);
  scroll-behavior: smooth;
}

.wrapper {
  min-height: 100%;
  width: 100%;
  overflow: hidden;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 255, 90, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 255, 213, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(124, 255, 90, 0.05) 0%, transparent 50%),
    var(--bg-dark);
  background-attachment: fixed;
  position: relative;
}

/* Animated background grid pattern */
.wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 650px) {
  .wrapper {
    background: 
      radial-gradient(ellipse 100% 50% at 50% 0%, rgba(124, 255, 90, 0.1) 0%, transparent 50%),
      var(--bg-dark);
  }
}

.blur__wrapper--blur {
  transition: filter 0.3s ease;
}

.container {
  max-width: 1370px;
  padding: 0 20px;
  margin: 0 auto;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* ============================================
   Header
   ============================================ */
.header {
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 15, 13, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.header--modal {
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 1;
  visibility: visible;
  position: fixed;
  z-index: 99;
  width: 100%;
  top: 0;
  transition: var(--transition-smooth);
}

.header--modal::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.header--modal:not(.active) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
}

.header--modal .header__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  margin-top: 60px;
}

.header--modal .header__nav a {
  padding: 15px 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.header--modal .header__nav a:last-child {
  margin-bottom: 0;
}

.header--modal .header__nav a::after {
  display: none;
}

.header--modal .header__btn-box {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  position: relative;
  z-index: 20;
  max-width: 280px;
}

.header__inner {
  display: flex;
  align-items: center;
  padding: 0 70px;
  padding-right: 60px;
}

@media (max-width: 1300px) {
  .header__inner {
    padding: 0;
  }
}

@media (max-width: 1050px) {
  .header__inner {
    padding: 15px 0;
  }
}

.header__logo {
  margin-right: 70px;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 0 20px rgba(124, 255, 90, 0.2));
}

.header__logo:hover {
  filter: drop-shadow(0 0 30px rgba(124, 255, 90, 0.4));
  transform: scale(1.02);
}

@media (max-width: 1300px) {
  .header__logo {
    margin-right: 20px;
  }
}

@media (max-width: 1050px) {
  .header__logo {
    width: 61px;
    height: 56px;
  }
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__nav a {
  transition: var(--transition-smooth);
  position: relative;
  display: block;
  padding: 48px 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.header__nav a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: translateX(-50%);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.header__nav a:hover {
  color: var(--accent-primary);
}

.header__nav a:hover::after {
  width: 100%;
  left: 0;
  transform: translateX(0);
}

.header__nav a:last-child {
  margin-right: 0;
}

@media (max-width: 1300px) {
  .header__nav a {
    padding: 48px 10px;
  }
}

@media (max-width: 1050px) {
  .header__nav {
    display: none;
  }
}

.header__btn-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 374px;
  gap: 14px;
}

.header__btn-box img {
  margin-left: 10px;
}

@media (max-width: 1050px) {
  .header__btn-box {
    display: none;
  }
}

/* ============================================
   Burger Menu
   ============================================ */
.burger {
  width: 30px;
  height: 24px;
  margin-left: auto;
  display: none;
  position: relative;
  z-index: 101;
}

.burger span {
  position: relative;
  display: block;
  height: 2px;
  width: 100%;
  background-color: transparent;
  border-radius: 2px;
}

.burger span::after {
  transition: var(--transition-smooth);
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  background: var(--accent-gradient);
  height: 2px;
  width: 30px;
  border-radius: 2px;
  transform: rotate(45deg);
}

.burger span::before {
  transition: var(--transition-smooth);
  content: "";
  position: absolute;
  left: 0px;
  top: 0px;
  background: var(--accent-gradient);
  height: 2px;
  width: 30px;
  border-radius: 2px;
  transform: rotate(-45deg);
}

.burger:not(.active) span {
  transition: var(--transition-smooth);
  background: var(--accent-gradient);
}

.burger:not(.active) span::after {
  transition: var(--transition-smooth);
  top: -10px;
  transform: rotate(0deg);
  background: var(--text-primary);
}

.burger:not(.active) span::before {
  transition: var(--transition-smooth);
  top: 10px;
  transform: rotate(0deg);
  background: var(--text-primary);
}

@media (max-width: 1050px) {
  .burger {
    display: block;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn-ghost {
  padding: 16px 28px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 255, 90, 0.1);
}

.btn-ghost:hover::before {
  opacity: 1;
}

.btn-green {
  padding: 16px 28px;
  font-weight: 600;
  font-size: 14px;
  color: #0a0f0d;
  border-radius: 100px;
  width: 100%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-button);
}

.btn-green::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.btn-green:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(124, 255, 90, 0.5);
}

.btn-green:hover::before {
  opacity: 1;
}

.btn-green:active {
  transform: translateY(-1px) scale(0.98);
}

/* ============================================
   Main Section (Hero)
   ============================================ */
.section {
  padding-bottom: 100px;
  position: relative;
}

.section:first-child {
  padding-top: 60px;
}

@media (max-width: 650px) {
  .section:first-child {
    padding-top: 20px;
  }
}

@media (max-width: 650px) {
  .section {
    padding-bottom: 40px;
  }
}

.main-section__inner {
  display: grid;
  grid-template-columns: minmax(300px, 726px) minmax(200px, 385px);
  justify-content: space-between;
  padding: 70px;
  padding-top: 56px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Decorative gradient orb */
.main-section__inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 255, 90, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.main-section__inner h1 {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.6;
  max-width: 550px;
  font-family: "Unbounded", sans-serif;
  margin-bottom: 50px;
  letter-spacing: -0.02em;
}

@media (max-width: 1050px) {
  .main-section__inner h1 {
    max-width: none;
  }
}

@media (max-width: 650px) {
  .main-section__inner h1 {
    font-size: 18px;
    margin-bottom: 16px;
  }
}

@media (max-width: 1050px) {
  .main-section__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .main-section__inner {
    padding: 24px;
    border-radius: 24px;
  }
}

.main-section__btn-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-section__btn-box .btn-green {
  padding: 22px 32px;
}

@media (max-width: 650px) {
  .main-section__btn-box .btn-green {
    padding: 18px 24px;
  }
}

.main-section__btn-box .btn-green img {
  margin-left: 16px;
  transition: var(--transition-smooth);
}

.main-section__btn-box .btn-green:hover img {
  transform: translateX(4px) translateY(-4px);
}

.main-section__btn-box .btn-ghost {
  padding: 22px 32px;
}

@media (max-width: 650px) {
  .main-section__btn-box .btn-ghost {
    padding: 18px 24px;
  }
}

@media (max-width: 1050px) {
  .main-section__btn-box {
    margin-top: 20px;
  }
}

@media (max-width: 650px) {
  .main-section__btn-box {
    margin-top: 16px;
    flex-direction: column;
    gap: 10px;
  }
}

.main-section__descr {
  background: rgba(124, 255, 90, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(124, 255, 90, 0.15);
  padding: 30px;
  position: relative;
  max-height: 138px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.main-section__descr:hover {
  border-color: rgba(124, 255, 90, 0.3);
  background: rgba(124, 255, 90, 0.08);
}

.main-section__descr p {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
  font-family: "Unbounded", sans-serif;
}

@media (max-width: 650px) {
  .main-section__descr p {
    font-size: 12px;
    max-width: 200px;
  }
}

.main-section__descr img {
  position: absolute;
  top: -34px;
  right: 50px;
  filter: drop-shadow(0 10px 30px rgba(124, 255, 90, 0.3));
}

@media (max-width: 650px) {
  .main-section__descr img {
    top: -10px;
    right: 0px;
  }
}

/* ============================================
   Web Section (Advantages)
   ============================================ */
.web__inner {
  padding: 70px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  position: relative;
  box-shadow: var(--shadow-card);
}

@media (max-width: 650px) {
  .web__inner {
    padding: 24px;
    border-radius: 24px;
  }
}

.web__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 12px;
}

.web__content-item {
  padding: 24px 24px 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  position: relative;
  min-height: 160px;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.web__content-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
}

.web__content-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.web__content-item:hover::before {
  opacity: 1;
}

.web__content-item h3 {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  max-width: 194px;
  margin-top: 8px;
}

@media (max-width: 650px) {
  .web__content-item h3 {
    font-size: 14px;
    margin-top: 0;
  }
}

.web__content-item p {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  max-width: 194px;
  margin-top: 10px;
  color: var(--text-secondary);
}

@media (max-width: 650px) {
  .web__content-item p {
    font-size: 12px;
    margin-top: 8px;
  }
}

.web__content-item span {
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  top: 15px;
  right: 15px;
  font-family: "Unbounded", sans-serif;
}

@media (max-width: 650px) {
  .web__content-item span {
    font-size: 36px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 650px) {
  .web__content-item {
    padding: 20px;
    min-height: 120px;
  }
}

.web__content-item--green {
  border: 1px solid var(--accent-primary);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 255, 90, 0.15) 0%, rgba(0, 255, 213, 0.1) 100%);
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  transition: var(--transition-smooth);
  box-shadow: 0 0 60px rgba(124, 255, 90, 0.15);
}

.web__content-item--green:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 80px rgba(124, 255, 90, 0.25);
}

.web__content-item--green img {
  position: absolute;
  top: 30px;
  right: 30px;
  transition: var(--transition-smooth);
}

.web__content-item--green:hover img {
  transform: translateX(4px) translateY(-4px);
}

.web__content-item--green p {
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: none;
  margin: 0;
}

/* ============================================
   Top Section (Products)
   ============================================ */
.top__banner {
  padding: 60px 70px;
  margin-bottom: 30px;
  border-radius: 32px;
  background-image: 
    linear-gradient(135deg, rgba(10, 15, 13, 0.7) 0%, rgba(10, 15, 13, 0.3) 100%),
    url("../images/top-bg.webp");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.top__banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(10, 15, 13, 0.95) 0%, transparent 70%);
  pointer-events: none;
}

.top__banner p {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 745px;
  position: relative;
  z-index: 1;
}

@media (max-width: 650px) {
  .top__banner p {
    font-size: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
  }
}

.top__banner .btn-green {
  max-width: 350px;
  padding: 22px 32px;
  position: relative;
  z-index: 1;
}

.top__banner .btn-green img {
  margin-left: 20px;
}

@media (max-width: 650px) {
  .top__banner .btn-green {
    max-width: none;
    padding: 18px 24px;
  }
}

@media (max-width: 650px) {
  .top__banner {
    padding: 24px;
    min-height: 320px;
    border-radius: 24px;
  }
}

.top__swiper {
  max-width: 1230px;
}

.top__slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(214px, 1fr));
  gap: 12px;
}

@media (max-width: 650px) {
  .top__slide-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.top__grid-item {
  padding-top: 26px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px 28px 20px 20px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.top__grid-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--glow-accent);
}

.top__grid-item h3 {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 650px) {
  .top__grid-item h3 {
    font-size: 14px;
  }
}

.top__grid-item p {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  margin: auto 0;
  color: var(--text-secondary);
  padding: 8px 0;
}

@media (max-width: 650px) {
  .top__grid-item p {
    font-size: 11px;
  }
}

.top__grid-item button {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: #0a0f0d;
  padding: 16px 20px;
  background: var(--accent-gradient);
  border-radius: 0 0 20px 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  transition: var(--transition-smooth);
}

.top__grid-item:hover button {
  background: linear-gradient(135deg, #8fff6a 0%, #00ffe5 100%);
}

.top__grid-item button img {
  margin-right: 8px;
}

.top__grid-item button span {
  display: flex;
  align-items: center;
}

.top__grid-item button span:last-child {
  font-weight: 700;
  margin-left: 12px;
  white-space: nowrap;
}

@media (max-width: 650px) {
  .top__grid-item button {
    margin-top: 15px;
    flex-direction: column;
    padding: 12px 16px;
    font-size: 12px;
  }
  
  .top__grid-item button span:last-child {
    margin-left: 0;
    margin-top: 4px;
  }
}

@media (max-width: 650px) {
  .top__grid-item {
    padding-top: 16px;
    border-radius: 20px 20px 16px 16px;
  }
}

.top__grid-imgs {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.top__grid-imgs::before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 255, 90, 0.1) 0%, transparent 70%);
  display: block;
  position: absolute;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.top__grid-imgs img {
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

.top__grid-item:hover .top__grid-imgs img {
  transform: scale(1.05);
}

@media (max-width: 650px) {
  .top__grid-imgs img {
    max-width: 127px;
    max-height: 127px;
  }
}

@media (max-width: 650px) {
  .top__grid-imgs {
    max-width: 127px;
    max-height: 127px;
  }
}

/* Swiper Navigation */
.btns {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  gap: 8px;
}

.top__swiper-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: static;
  max-width: max-content;
  margin: 0;
}

.swiper-pagination-bullet {
  width: 44px;
  height: 44px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  line-height: 44px;
  border-radius: 12px;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  margin: 0 !important;
  transition: var(--transition-smooth);
}

.swiper-pagination-bullet:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.swiper-pagination-bullet-active {
  background: var(--accent-gradient);
  color: #0a0f0d;
  border-color: transparent;
  box-shadow: var(--glow-button);
}

.top__swiper-prev,
.top__swiper-next {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.top__swiper-prev:hover,
.top__swiper-next:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.top__swiper-prev::after,
.top__swiper-next::after {
  content: "";
}

.top__swiper-prev svg,
.top__swiper-next svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ============================================
   Reviews Section
   ============================================ */
.reviews .section-title {
  text-align: left;
}

@media (max-width: 850px) {
  .reviews .section-title {
    font-size: 30px;
    margin-bottom: 16px;
  }
}

@media (max-width: 650px) {
  .reviews .section-title {
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
  }
}

.reviews .container {
  max-width: 1230px;
  position: relative;
}

@media (max-width: 650px) {
  .reviews .container {
    padding-right: 0;
  }
}

.reviews .btn-green {
  max-width: 350px;
  padding: 22px 32px;
  margin: 0 auto;
  margin-top: 40px;
}

.reviews .btn-green img {
  margin-left: 20px;
}

@media (max-width: 650px) {
  .reviews .btn-green {
    max-width: 320px;
    margin-right: 20px;
  }
}

@media (max-width: 360px) {
  .reviews .btn-green {
    margin-left: 0;
  }
}

.reviews__swiper {
  position: static;
}

.reviews__slide-wrapper {
  display: flex;
  flex-direction: column;
  padding: 32px;
  max-width: 392px;
  border-radius: 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
  height: 100%;
}

.reviews__slide-wrapper:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-accent);
}

.reviews__slide-wrapper h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 4px;
  margin-left: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 650px) {
  .reviews__slide-wrapper h3 {
    font-size: 16px;
    margin-bottom: 2px;
  }
}

.reviews__slide-wrapper h4 {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  margin-left: 20px;
  color: var(--text-secondary);
}

@media (max-width: 650px) {
  .reviews__slide-wrapper h4 {
    font-size: 12px;
    margin-bottom: 12px;
  }
}

.reviews__slide-wrapper p {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.8;
  padding: 24px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
  flex-grow: 1;
}

@media (max-width: 650px) {
  .reviews__slide-wrapper p {
    font-size: 12px;
    padding: 16px;
  }
}

@media (max-width: 650px) {
  .reviews__slide-wrapper {
    padding: 20px;
    border-radius: 20px;
  }
}

.reviews__swiper-pagination {
  position: static;
  max-width: max-content;
  margin: 0 14px;
}

.reviews__swiper-pagination span {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

.reviews__swiper-pagination span:first-child {
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reviews__swiper-navigation {
  display: flex;
  align-items: center;
  position: absolute;
  right: 15px;
  top: 20px;
}

@media (max-width: 850px) {
  .reviews__swiper-navigation {
    top: 9px;
  }
}

@media (max-width: 650px) {
  .reviews__swiper-navigation {
    position: static;
    justify-content: center;
    margin-top: 20px;
  }
}

.reviews__swiper-prev,
.reviews__swiper-next {
  cursor: pointer;
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.reviews__swiper-prev:hover,
.reviews__swiper-next:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.reviews__swiper-prev::after,
.reviews__swiper-next::after {
  content: "";
}

.reviews__swiper-prev svg,
.reviews__swiper-next svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ============================================
   Telegram Section
   ============================================ */
.tg__content {
  padding: 60px;
  background: linear-gradient(135deg, rgba(46, 165, 222, 0.15) 0%, rgba(72, 191, 248, 0.1) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(72, 191, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1230px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.tg__content::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(72, 191, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.tg__content a {
  padding: 16px 45px;
  box-shadow: 0 15px 50px rgba(67, 186, 243, 0.3);
  background: linear-gradient(135deg, #2aa1da 0%, #48bff8 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  height: auto;
  border-radius: 100px;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}

.tg__content a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(67, 186, 243, 0.4);
}

.tg__content a img {
  margin-right: 24px;
}

@media (max-width: 650px) {
  .tg__content a img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
  }
}

.tg__content a span {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #fff;
}

@media (max-width: 650px) {
  .tg__content a span {
    font-size: 16px;
  }
}

@media (max-width: 650px) {
  .tg__content a {
    border-radius: 50px;
    padding: 12px 24px;
  }
}

@media (max-width: 1050px) {
  .tg__content {
    flex-direction: column;
    align-items: center;
    padding: 40px;
    gap: 24px;
  }
}

@media (max-width: 650px) {
  .tg__content {
    padding: 24px;
    border-radius: 24px;
  }
}

.tg__content-descr {
  max-width: 514px;
  position: relative;
  z-index: 1;
}

.tg__content-descr h2 {
  font-weight: 600;
  font-size: 36px;
  line-height: 1.4;
  margin-bottom: 12px;
  font-family: "Unbounded", sans-serif;
}

@media (max-width: 1050px) {
  .tg__content-descr h2 {
    text-align: center;
  }
}

@media (max-width: 650px) {
  .tg__content-descr h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }
}

.tg__content-descr p {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

@media (max-width: 1050px) {
  .tg__content-descr p {
    text-align: center;
    margin-bottom: 0;
  }
}

@media (max-width: 650px) {
  .tg__content-descr p {
    font-size: 13px;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  max-width: 1230px;
  margin: 0 auto;
  padding-bottom: 20px;
}

@media (max-width: 1050px) {
  .footer__inner {
    flex-direction: column;
    align-items: start;
  }
}

.footer__logo {
  margin-right: 70px;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 0 20px rgba(124, 255, 90, 0.2));
}

.footer__logo:hover {
  filter: drop-shadow(0 0 30px rgba(124, 255, 90, 0.4));
}

@media (max-width: 1300px) {
  .footer__logo {
    margin-right: 20px;
  }
}

@media (max-width: 1050px) {
  .footer__logo {
    width: 61px;
    height: 56px;
    position: absolute;
  }
}

.footer__nav {
  display: flex;
  align-items: center;
}

.footer__nav a {
  transition: var(--transition-smooth);
  position: relative;
  display: block;
  padding: 28px 20px;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer__nav a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: translateX(-50%);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

@media (max-width: 1050px) {
  .footer__nav a::after {
    display: none;
  }
}

.footer__nav a:hover {
  color: var(--accent-primary);
}

.footer__nav a:hover::after {
  width: 100%;
  left: 0;
  transform: translateX(0);
}

.footer__nav a:last-child {
  margin-right: 0;
}

@media (max-width: 1300px) {
  .footer__nav a {
    padding: 28px 10px;
  }
}

@media (max-width: 1050px) {
  .footer__nav a {
    padding: 10px 0;
  }
}

@media (max-width: 1050px) {
  .footer__nav {
    flex-direction: column;
    align-items: end;
    margin-left: auto;
    margin-bottom: 20px;
  }
}

.footer__btn-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 374px;
  gap: 14px;
}

.footer__btn-box img {
  margin-left: 10px;
}

@media (max-width: 1050px) {
  .footer__btn-box {
    max-width: none;
    margin-bottom: 30px;
  }
}

@media (max-width: 450px) {
  .footer__btn-box {
    flex-direction: column;
    gap: 14px;
  }
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 20px;
  max-width: 1230px;
  margin: 0 auto;
}

.footer__row a {
  transition: var(--transition-smooth);
}

.footer__row a:hover {
  color: var(--text-secondary);
}

.footer__row a:last-child {
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

@media (max-width: 650px) {
  .footer__row {
    flex-direction: column;
    gap: 16px;
    font-size: 13px;
    text-align: center;
  }
}

/* ============================================
   Registration Form
   ============================================ */
.registration {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.registration__form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.98) 100%);
  width: 100%;
  max-width: 450px;
  border-radius: 28px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 1;
  visibility: visible;
  transition: var(--transition-smooth);
  position: relative;
}

.registration__form-wrapper h2 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 32px;
  text-align: center;
}

@media (max-width: 500px) {
  .registration__form-wrapper h2 {
    font-size: 20px;
    margin-bottom: 24px;
  }
}

.registration__form-wrapper a:nth-last-child(2) {
  margin-top: 24px;
}

.registration__form-wrapper a:last-child {
  margin-top: 16px;
}

.registration__form-wrapper--hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
}

.registration__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  padding-bottom: 24px;
  position: relative;
}

.registration__form label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  background: #fff;
  padding-right: 20px;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.registration__form label:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(124, 255, 90, 0.15);
}

@media (max-width: 500px) {
  .registration__form label {
    margin-bottom: 10px;
    padding-left: 10px;
  }
}

.registration__form input {
  width: 100%;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: #1a1a1a;
}

.registration__form input::placeholder {
  color: #999;
}

@media (max-width: 500px) {
  .registration__form input {
    padding: 12px;
    font-size: 14px;
  }
}

.registration__form::before {
  content: "";
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #ddd 50%, transparent 100%);
  position: absolute;
  bottom: 0;
}

@media (max-width: 500px) {
  .registration__form {
    padding-bottom: 16px;
  }
}

.btn--black {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin-top: 24px;
  padding: 16px;
  width: 100%;
  transition: var(--transition-smooth);
}

.btn--black:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

@media (max-width: 500px) {
  .btn--black {
    font-size: 14px;
    margin-top: 16px;
  }
}

.btn-reg--green {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: center;
  color: #0a0f0d;
  padding: 16px;
  background: var(--accent-gradient);
  box-shadow: var(--glow-button);
  width: 100%;
  border-radius: 14px;
  transition: var(--transition-smooth);
}

.btn-reg--green:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(124, 255, 90, 0.5);
}

@media (max-width: 500px) {
  .btn-reg--green {
    font-size: 14px;
  }
}

.btn-reg:last-child {
  margin-top: 24px !important;
}

/* ============================================
   Utility Classes
   ============================================ */
.green-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.4;
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: -0.02em;
}

@media (max-width: 650px) {
  .section-title {
    font-size: 20px;
    margin-bottom: 24px;
  }
}

/* Smooth scroll anchor offset for sticky header */
section[id] {
  scroll-margin-top: 100px;
}

/* Selection styling */
::selection {
  background: rgba(124, 255, 90, 0.3);
  color: #fff;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-section__inner,
.web__inner,
.top__banner,
.reviews__slide-wrapper,
.tg__content {
  animation: fadeInUp 0.8s ease-out;
}

/* Staggered animation for grid items */
.web__content-item:nth-child(1) { animation-delay: 0.1s; }
.web__content-item:nth-child(2) { animation-delay: 0.15s; }
.web__content-item:nth-child(3) { animation-delay: 0.2s; }
.web__content-item:nth-child(4) { animation-delay: 0.25s; }
.web__content-item:nth-child(5) { animation-delay: 0.3s; }
.web__content-item:nth-child(6) { animation-delay: 0.35s; }
.web__content-item:nth-child(7) { animation-delay: 0.4s; }
.web__content-item:nth-child(8) { animation-delay: 0.45s; }

.web__content-item {
  animation: fadeInUp 0.6s ease-out both;
}
