/* === Reset & Variables === */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #FF6B35;
  --pink: #FF2E63;
  --purple: #7B2FF7;
  --cyan: #00D4FF;
  --yellow: #FFD700;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --text: #e0e0e0;
  --text-muted: #a0a0b0;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.08);
}

/* === Base === */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(123, 47, 247, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

header.scrolled {
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  transition: width .3s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  width: 100%;
}

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

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: .3s;
}

/* === Hero === */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(26, 26, 46, 0.6) 50%, rgba(26, 26, 46, 0.85) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: .5px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s;
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 46, 99, 0.4);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === Sections === */

section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 107, 53, 0.15);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* === About === */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  display: block;
  aspect-ratio: 1344 / 768;
  object-fit: cover;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100%;
  height: 100%;
  max-width: 480px;
  border: 2px solid rgba(255, 107, 53, 0.3);
  border-radius: 24px;
  z-index: -1;
}

.about-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-tags span {
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* === Services Grid (index) === */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--purple));
  opacity: 0;
  transition: opacity .3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 107, 53, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: transform .3s;
}

.service-card:hover img {
  transform: scale(1.03);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

a.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-price {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(255, 215, 0, 0.12);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 600;
}

/* === Contact === */

.contact-wrapper {
  margin-top: 48px;
}

.contact-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
}

.contact-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.contact-card > p {
  color: #666;
  margin-bottom: 32px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  padding: 14px 32px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  border: 1px solid transparent;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: transform .3s, box-shadow .3s;
}

.contact-email:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 46, 99, 0.4);
}

.contact-email-text {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

[data-email-user] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  padding: 14px 32px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  border: 1px solid transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: transform .3s, box-shadow .3s;
}

[data-email-user]:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 46, 99, 0.4);
}

.contact-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

.contact-messengers [data-email-user],
.contact-messengers .contact-email {
  margin-top: 0;
}

[data-messenger-type] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  border: 1px solid transparent;
  color: #fff;
  transition: transform .3s, box-shadow .3s;
}

[data-messenger-type]:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 46, 99, 0.4);
}

[data-messenger-type] img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.ya-form-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.ya-form-wrapper iframe {
  width: 100% !important;
  max-width: 650px;
}

/* === Footer === */

footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 14px;
}

footer a {
  color: var(--cyan);
  text-decoration: none;
  transition: color .2s;
}

footer a:hover {
  text-decoration: underline;
  color: var(--orange);
}

/* === Animations === */

.animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .7s ease, transform .7s ease;
}

.animate-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .7s ease, transform .7s ease;
}

.animate-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger > * {
  transition-delay: calc(var(--i, 0) * .1s);
}

.stagger > *:nth-child(1) { --i: 0; }
.stagger > *:nth-child(2) { --i: 1; }
.stagger > *:nth-child(3) { --i: 2; }
.stagger > *:nth-child(4) { --i: 3; }

/* === Skip Link === */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--orange);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  z-index: 10001;
  transition: top .3s;
}

.skip-link:focus {
  top: 0;
}

/* === Back to Top === */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s, box-shadow .3s;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(255, 46, 99, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 6px 24px rgba(255, 46, 99, 0.5);
}

/* === Typewriter === */

#typewriter {
  display: inline;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--cyan);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* === Process === */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.process-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform .3s, border-color .3s;
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 53, 0.3);
}

.process-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* === Video Lazy === */

.video-lazy {
  position: relative;
  width: 100%;
  height: 220px;
  background: #000;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  cursor: pointer;
}

.video-lazy img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .85;
  transition: opacity .3s;
}

.video-lazy:hover img {
  opacity: 1;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.video-lazy:hover .video-play-btn {
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 4px;
}

/* === Telegram Link === */

.telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background .3s, transform .3s;
}

.telegram-link:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.telegram-link svg {
  width: 20px;
  height: 20px;
}

/* === Final CTA === */

.final-cta {
  padding: 80px 0;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* === Focus === */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* === Testimonials === */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 107, 53, 0.25);
}

.testimonial-stars {
  color: var(--yellow);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-border);
}

.testimonial-author strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 13px;
}

/* === FAQ === */

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .3s;
}

.faq-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
}

.faq-item[open] {
  border-color: rgba(255, 107, 53, 0.4);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--orange);
  transition: transform .3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: #fff;
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* === Cookie Consent === */

#cookie-consent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

#cookie-consent.show {
  opacity: 1;
  pointer-events: all;
}

#cookie-consent .modal {
  background: rgba(26, 26, 46, 0.97);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

#cookie-consent .modal h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

#cookie-consent .modal p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

#cookie-consent .modal a {
  color: var(--cyan);
}

#cookie-consent .modal button {
  padding: 12px 32px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: opacity .2s;
}

#cookie-consent .modal button:hover {
  opacity: .9;
}

#cookie-reject {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--text-muted) !important;
  padding: 12px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s;
}

#cookie-reject:hover {
  opacity: .9;
  background: rgba(255, 255, 255, 0.05) !important;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* === Responsive === */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image {
    text-align: center;
  }

  .about-image img {
    max-width: 100%;
  }

  .hero-stats {
    gap: 24px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }

  .portfolio-preview-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}
