/* ===== Animated gradient angle ===== */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ===== Variables ===== */
:root {
  --bg: #0a0a0f;
  --bg-light: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --accent: #7ce68a;
  --accent-start: #d4e857;
  --accent-end: #5eeaa0;
  --gradient: linear-gradient(135deg, #d4e857, #5eeaa0);
  --accent-glow: rgba(94, 234, 160, 0.12);
  --white: #ffffff;
  --text: #e8e8ec;
  --text-secondary: #9a9aad;
  --border: rgba(255,255,255,0.08);
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'SF Pro Display', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.01em;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== PREMIUM TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  font-feature-settings: 'cv05' on, 'cv11' on, 'ss01' on;
}

h1 {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h4 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
}

p {
  line-height: 1.75;
  letter-spacing: -0.005em;
  font-weight: 400;
}

/* Large lead text */
.lead-text {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

/* Small caps for labels */
.label-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Gradient text helper */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== GRAIN TEXTURE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 900;
  opacity: 0.4;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Stagger animation for cards */
.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }
.card:nth-child(4) { transition-delay: 0.3s; }
.principle:nth-child(2) { transition-delay: 0.15s; }
.principle:nth-child(3) { transition-delay: 0.3s; }
.principle:nth-child(4) { transition-delay: 0.45s; }

/* ===== Utility ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section {
  padding: 120px 0;
  position: relative;
}
.section--alt {
  background: var(--bg-light);
}

/* ===== PREMIUM SECTION DIVIDERS ===== */
.section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(94, 234, 160, 0.3) 20%,
    rgba(94, 234, 160, 0.6) 50%,
    rgba(94, 234, 160, 0.3) 80%,
    transparent
  );
}

.section--alt::after {
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent
  );
}

/* ===== PREMIUM BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, #d4e857 0%, #5eeaa0 50%, #7ce68a 100%);
  color: #0a0a0f;
  box-shadow: 0 4px 20px rgba(94, 234, 160, 0.25),
              0 0 40px rgba(94, 234, 160, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn--primary:hover::before {
  left: 100%;
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(94, 234, 160, 0.4),
              0 0 60px rgba(94, 234, 160, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(94, 234, 160, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(94, 234, 160, 0.15);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: var(--transition);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}
.logo:hover .logo-img {
  opacity: 0.8;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-text span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}
.nav__links a:hover { color: var(--white); }
.nav__phone {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.nav__phone:hover { color: var(--white); }
.nav__cta { margin-left: 8px; }

/* Language switch */
.lang-switch {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.lang-switch:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero__image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scaleX(-1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 50%, rgba(94, 234, 160, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(212, 232, 87, 0.06) 0%, transparent 50%),
    linear-gradient(135deg,
      rgba(17,24,39,0.88) 0%,
      rgba(17,24,39,0.75) 30%,
      rgba(17,24,39,0.8) 70%,
      rgba(17,24,39,0.88) 100%
    );
  z-index: 1;
}

/* Animated light gradient overlay */
.hero__light-animation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      transparent 0%,
      rgba(94, 234, 160, 0.12) 20%,
      rgba(212, 232, 87, 0.08) 40%,
      rgba(94, 234, 160, 0.15) 60%,
      rgba(255, 160, 80, 0.1) 80%,
      transparent 100%
    ),
    radial-gradient(ellipse at 50% 50%, rgba(94, 234, 160, 0.08), transparent 70%);
  background-size: 400% 400%, 100% 100%;
  animation: lightMove 20s ease-in-out infinite;
  opacity: 0.7;
}

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


.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero__content {
  max-width: 900px;
  width: 100%;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(17, 24, 39, 0.08);
  padding: 60px 70px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.hero__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(94, 234, 160, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  background-origin: border-box;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.15;
  text-shadow:
    0 2px 40px rgba(0,0,0,0.6),
    0 0 80px rgba(94, 234, 160, 0.1);
  word-spacing: 0.05em;
}

.hero p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(232, 232, 236, 0.85);
  margin-bottom: 40px;
  max-width: 100%;
  line-height: 1.75;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }


/* ===== PREMIUM Section Headers ===== */
.section__header {
  text-align: center;
  max-width: 1400px;
  margin: 0 auto 80px;
}

.section__header h6 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(94, 234, 160, 0.15);
  border-radius: 24px;
}

.section__header h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.2;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.section__header p {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--text-secondary);
  line-height: 1.75;
  letter-spacing: -0.01em;
  font-weight: 400;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== Principles (About) ===== */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.principle {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.principle:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 160, 0.25);
  box-shadow: 0 8px 30px rgba(94, 234, 160, 0.08);
}
.principle__icon {
  width: 64px;
  height: 64px;
  background: var(--accent-glow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 20px;
}
.principle h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.principle p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: -0.005em;
  font-weight: 400;
}

/* ===== Cards Grid (Services) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;

}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.card:hover {
  border-color: transparent;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(94, 234, 160, 0.15),
              0 8px 30px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: var(--bg-card-hover);
}
/* Animated gradient border */
.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), #d4e857, #5eeaa0, transparent 40%, transparent 60%, #d4e857);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover::after {
  opacity: 1;
  animation: gradient-rotate 3s linear infinite;
}
@keyframes gradient-rotate {
  to { --angle: 360deg; }
}
.card__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255,255,255,0.08), transparent 60%);
  z-index: 10;
}
.card:hover .card__glare {
  opacity: 1;
}
.card__icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 20px;
}
a.card { display: block; text-decoration: none; color: inherit; }
.card h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
  letter-spacing: -0.005em;
  font-weight: 400;
}
.card__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}
a.card:hover .card__link { letter-spacing: 0.5px; }
.card__badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  background: var(--bg);
  color: var(--text);
  padding: 140px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
}
.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.page-hero__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

/* ===== Service Detail ===== */
.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.service-intro__text h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.service-intro__text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service-feature {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.service-feature:hover {
  border-color: rgba(94, 234, 160, 0.25);
}
.service-feature h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.service-feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Steps for service pages */
.service-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.service-step {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.service-step__num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0f;
  font-size: 20px;
  font-weight: 700;
}
.service-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.service-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  margin-bottom: 40px;
}
.back-link:hover { color: var(--accent); }

@media (max-width: 768px) {
  .service-intro { grid-template-columns: 1fr; }
  .service-features { grid-template-columns: 1fr; }
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--bg-light);
  padding: 64px 0;
  text-align: center;
  color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== Contact Form ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { padding-top: 8px; }
.contact-info__item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info__text h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--white); }
.contact-info__text p { font-size: 14px; color: var(--text-secondary); }
.contact-info__text a { color: var(--accent); transition: var(--transition); }
.contact-info__text a:hover { color: var(--accent-start); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text);
}
.form input::placeholder, .form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 234, 160, 0.12);
}
.form textarea { resize: vertical; min-height: 120px; }
.form label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
  color: var(--text);
}
.form__group { display: flex; flex-direction: column; gap: 4px; }
.form .btn { width: 100%; text-align: center; }

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  color: var(--white);
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.footer .logo-text { color: var(--white); }
.footer .logo-text span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
  max-width: 300px;
}
.footer__links {
  display: flex;
  gap: 28px;
}
.footer__links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer__bottom a { color: var(--text-secondary); transition: var(--transition); }
.footer__bottom a:hover { color: var(--white); }

/* ===== Grain noise overlay ===== */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
}

/* ===== SIDEBAR MOBILE MENU ===== */
@media (max-width: 1024px) {
  .nav__links, .nav__cta, .nav__phone { display: none; }
  .nav__toggle {
    display: flex;
    z-index: 1002;
    position: absolute;
    right: 24px;
    align-items: center;
  }
  .lang-switch {
    margin-right: 80px;
    z-index: 1002;
    position: relative;
  }

  /* Overlay */
  .nav.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    pointer-events: none;
  }

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

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

  /* Sidebar */
  .nav.open {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    background: linear-gradient(135deg, #16161f 0%, #1c1c28 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    z-index: 1001;
    padding: 100px 40px 60px;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    will-change: transform;
  }

  @keyframes slideInRight {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 50px;
    flex: 1;
    position: relative;
    z-index: 1002;
  }

  .nav.open .nav__links a {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    opacity: 1 !important;
    z-index: 1003 !important;
  }

  .nav.open .nav__links a:hover {
    color: var(--accent);
    padding-left: 8px;
  }

  /* Phone in mobile menu */
  .nav.open .nav__phone {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 32px;
    position: relative;
    z-index: 1002;
  }

  /* CTA button in mobile menu */
  .nav.open .nav__cta {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1002;
  }

  .nav.open .nav__cta .btn--primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px !important;
    border-radius: 8px !important;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    z-index: 100;
    color: #0a0a0f !important;
  }

  .nav.open .lang-switch {
    position: fixed !important;
    top: 24px !important;
    right: 100px !important;
    font-size: 14px;
    padding: 8px 16px;
    z-index: 1002;
    margin-right: 0 !important;
  }

  /* Hamburger to X animation */
  .nav.open .nav__toggle {
    position: fixed;
    right: 24px;
    top: 32px;
  }

  .nav__toggle span {
    transform-origin: center;
  }

  .nav.open .nav__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.open .nav__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .hero .container { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__graphic { width: 280px; height: 280px; }
  .hero__circle--1 { width: 280px; height: 280px; }
  .hero__circle--2 { width: 200px; height: 200px; top: 40px; left: 40px; }
  .hero__circle--3 { width: 120px; height: 120px; top: 80px; left: 80px; }
  .hero__icon--1 { top: 20px; right: 10px; }
  .hero__icon--2 { bottom: 30px; left: 0; }
  .hero__icon--3 { bottom: 20px; right: 20px; }
  .principles { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer__links { justify-content: center; }
}
