:root {
  --pink: #e91e8c;
  --purple: #7b2d8e;
  --blue: #00a0e3;
  --green: #3cb54a;
  --yellow: #ffed00;
  --orange: #f7941d;
  --red: #ed1c24;
  --viber: #7360f2;
  --telegram: #26a5e4;
  --dark: #1a1a2e;
  --light: #f8f9ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: "Nunito", sans-serif;
  margin: 0;
  overflow-x: hidden;
  background: var(--dark);
}

h1,
h2,
h3 {
  font-family: "Comfortaa", cursive;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--pink),
    var(--purple),
    var(--blue),
    var(--green)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated background shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--pink);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}
.shape-2 {
  width: 250px;
  height: 250px;
  background: var(--blue);
  top: 60%;
  right: -5%;
  animation-delay: 2s;
}
.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--green);
  bottom: 10%;
  left: 30%;
  animation-delay: 4s;
}
.shape-4 {
  width: 180px;
  height: 180px;
  background: var(--purple);
  top: 20%;
  right: 20%;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 6rem;
  overflow-x: clip;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: white;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-viber {
  background: linear-gradient(135deg, #7360f2, #8e7ff3);
  color: white;
  box-shadow: 0 10px 30px rgba(115, 96, 242, 0.4);
}

.btn-viber:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(115, 96, 242, 0.5);
}

.btn-telegram {
  background: linear-gradient(135deg, #26a5e4, #45b8f0);
  color: white;
  box-shadow: 0 10px 30px rgba(38, 165, 228, 0.4);
}

.btn-telegram:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(38, 165, 228, 0.5);
}

.btn img.icon {
  width: 24px;
  height: 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  height: 40px;
}

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: white;
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
}

/* Phone Mockup */
.phone-container {
  display: flex;
  justify-content: center;
  perspective: 1000px;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    135deg,
    var(--pink),
    var(--purple),
    var(--blue),
    var(--green)
  );
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: glowPulse 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #2a2a40, #1a1a2e);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3);
  transform: rotateY(-10deg) rotateX(5deg);
  animation: phonePulse 4s ease-in-out infinite;
}

@keyframes phonePulse {
  0%,
  100% {
    transform: rotateY(-10deg) rotateX(5deg);
  }
  50% {
    transform: rotateY(-5deg) rotateX(3deg);
  }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a2e;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.phone-content {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.scroll-content {
  animation: scrollUp 30s linear infinite;
}

@keyframes scrollUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.collage-item {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.collage-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.collage-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 4px 0;
  display: block;
}

.diagonal-strike {
  position: relative;
  display: inline-block;
}

.diagonal-strike::after {
  content: "";
  position: absolute;
  left: -5%;
  top: 50%;
  width: 110%;
  height: 3px;
  background: rgba(255, 255, 255, 0.8);
  transform: rotate(-12deg);
}

/* Diagonal Section */
.diagonal-section {
  background: var(--light);
  position: relative;
  padding: 8rem 2rem 6rem;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  margin-top: -5rem;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Promo Section */
.promo-section {
  background: var(--dark);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.promo-section .floating-shapes {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
}
.promo-section .floating-shapes .shape {
  opacity: 0.4;
}

.promo-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.promo-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.promo-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 1rem;
}

.promo-section .subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.promo-box {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.promo-code {
  font-family: "Comfortaa", cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(255, 237, 0, 0.1);
  padding: 1rem 2rem;
  border-radius: 12px;
  display: inline-block;
  border: 2px dashed var(--yellow);
  letter-spacing: 3px;
}

.promo-discount {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.promo-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Pricing Section */
.pricing-section {
  background: linear-gradient(180deg, var(--light) 0%, white 100%);
  padding: 6rem 2rem;
  position: relative;
}

.pricing-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--dark);
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

.pricing-cards {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: "Найкраща ціна";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--dark);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-duration {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-price span {
  font-size: 1.2rem;
  font-weight: 400;
}

.pricing-card:not(.featured) .pricing-price {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 2rem;
}

.pricing-card.featured .btn {
  background: white;
  color: var(--purple);
}

/* Contact Section */
.contact-section {
  background: var(--dark);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.contact-section .floating-shapes .shape {
  opacity: 0.2;
}

.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: white;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
  font-size: 1.1rem;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(233, 30, 140, 0.4);
}

/* Footer */
footer {
  background: #0f0f1a;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  width: 120px;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a.viber {
  background: var(--viber);
}
.social-links a.telegram {
  background: var(--telegram);
}

.social-links a:hover {
  transform: translateY(-5px);
}

.social-links svg {
  width: 24px;
  height: 24px;
  color: white;
}

.copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Popup Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  max-width: 480px;
  text-align: center;
  position: relative;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #e0e0e0;
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--green), #2ecc71);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.modal-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.modal h3 {
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.modal p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-buttons .btn {
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .phone-mockup {
    transform: rotateY(0) rotateX(0);
  }

  @keyframes phonePulse {
    0%,
    100% {
      transform: rotateY(0) rotateX(0);
    }
    50% {
      transform: rotateY(0) rotateX(0) scale(1.02);
    }
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-details {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 4rem 1.5rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .diagonal-section {
    padding: 6rem 1.5rem 5rem;
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }

  .promo-box {
    padding: 1.5rem;
  }

  .promo-code {
    font-size: 1.5rem;
    padding: 0.75rem 1.5rem;
  }

  .modal {
    padding: 2rem;
  }
}
