/* ============================================
   orentis.ru — Glassmorphism theme
   ============================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --glass-blur: 12px;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --accent: #6c63ff;
  --accent-hover: #8b83ff;
  --bg-start: #0f0c29;
  --bg-mid: #302b63;
  --bg-end: #24243e;
  --radius: 16px;
  --max-width: 1200px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-mid), var(--bg-end));
}

/* ----- Glassmorphism utility ----- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* ----- Background gradient & particles ----- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-mid), var(--bg-end));
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* ----- Container ----- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav { display: flex; gap: 32px; }
.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.2s;
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ----- Button ----- */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--glass-border);
}
.btn--primary {
  background: rgba(108, 99, 255, 0.3);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: rgba(108, 99, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.3);
}

/* ----- Sections ----- */
.section { padding: 100px 0; }
.section__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ----- Cards (services) ----- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}
.card__icon { font-size: 2.5rem; margin-bottom: 16px; }
.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ----- About ----- */
.about {
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.about__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.stat__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ----- Contact ----- */
.contact {
  padding: 48px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}
.contact__phone { font-size: 1.5rem; font-weight: 600; margin-top: 16px; }
.contact__email { font-size: 1.2rem; color: var(--accent); }

/* ----- Footer ----- */
.footer {
  border-radius: 0;
  border-bottom: none;
  border-left: none;
  border-right: none;
  text-align: center;
  padding: 24px 0;
}
.footer__inner {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ----- Particles animation ----- */
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
  .nav { gap: 16px; }
  .nav__link { font-size: 0.85rem; }
  .hero__title { font-size: 1.8rem; }
  .cards { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .about, .contact { padding: 32px 20px; }
}