/* ===================================================
   CINEMATIC — Beauty Autopilot Template
   Тёмный терминал / хакерская эстетика
   =================================================== */

/* ----- Variables & Reset ----- */
:root {
  --bg-primary: #0a0e14;
  --bg-secondary: #0f1620;
  --bg-terminal: #0c111a;
  --bg-card: #111a28;
  --border: #1a2740;
  --border-active: #00d4ff;

  --cyan: #00d4ff;
  --cyan-dim: #0099bb;
  --cyan-glow: #00d4ff33;
  --green: #00ff88;
  --green-dim: #00aa55;
  --blue: #4488ff;
  --gray: #6688aa;
  --gray-dim: #334455;
  --text: #c8d6e5;
  --text-dim: #6688aa;
  --text-bright: #e8f0ff;
  --accent: #ff4444;

  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Menlo', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 6px;
  --glow: 0 0 15px var(--cyan-glow);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 255, 136, 0.02) 0%, transparent 50%),
    var(--bg-primary);
}

::selection { background: var(--cyan); color: var(--bg-primary); }

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-bright); text-shadow: 0 0 8px var(--cyan-glow); }

/* ----- Scanline overlay ----- */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.015) 2px,
    rgba(0, 212, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.brand-mark {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--cyan-glow);
}

.brand-mark::before {
  content: '> ';
  color: var(--green);
  font-weight: 400;
}

.brand-city {
  font-size: 0.75rem;
  color: var(--gray-dim);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--gray);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  border-color: var(--border-active);
  background: rgba(0, 212, 255, 0.05);
}

/* ----- Main container ----- */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ----- Hero Section ----- */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: -2rem;
  right: -2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before {
  content: '█';
  color: var(--green);
  animation: blink 1s step-end infinite;
}

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

.hero h1 {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero h1 .highlight {
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  border-left: 2px solid var(--gray-dim);
  padding-left: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ----- Buttons ----- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s;
}

.button:hover {
  background: var(--cyan);
  color: var(--bg-primary);
  box-shadow: var(--glow);
  text-shadow: none;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--gray-dim);
  background: transparent;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s;
}

.ghost-button:hover {
  border-color: var(--text-dim);
  color: var(--text-bright);
  background: rgba(255,255,255,0.03);
}

/* ----- Hero Meta / Advantages ----- */
.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.hero-meta > div {
  background: var(--bg-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-meta strong {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--cyan);
}

.hero-meta span {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ----- Terminal divider ----- */
.terminal-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  color: var(--gray-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.terminal-divider::before,
.terminal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-dim), transparent);
}

/* ----- Section Titles ----- */
.section-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::after {
  content: '//';
  color: var(--gray-dim);
  font-weight: 400;
}

.section-subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 2rem;
}

/* ----- Services Grid ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-card);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gray-dim);
  transition: background 0.3s;
}

.service-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.service-card:hover::before {
  background: var(--cyan);
}

.service-card h2 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.service-card .price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--cyan);
  font-weight: 700;
}

.service-card .duration {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.service-card .description {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.service-card .button {
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
}

/* ----- Gallery ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: all 0.3s;
}

.gallery-item:hover {
  border-color: var(--border-active);
  box-shadow: var(--glow);
}

.gallery-item picture {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  filter: saturate(0.8) contrast(1.1);
}

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

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border);
}

.gallery-item figcaption::before {
  content: '# ';
  color: var(--cyan-dim);
}

/* ----- Team / Masters ----- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.master-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: all 0.3s;
  text-align: center;
}

.master-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--glow);
}

.master-card picture {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.master-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) contrast(1.2);
  transition: filter 0.4s, transform 0.4s;
}

.master-card:hover img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.03);
}

.master-card h2 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin: 1rem 0 0.25rem;
}

.master-card .specialty {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.master-card .bio {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0 1rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.master-card .experience {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green-dim);
  padding: 0 1rem 1.25rem;
}

/* ----- Service Detail ----- */
.service-detail {
  max-width: 800px;
  margin: 0 auto;
}

.service-detail picture {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.service-detail img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.85) contrast(1.1);
}

.service-detail h1 {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.service-detail .price {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-detail .duration {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.service-detail .description {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ----- Contacts Page ----- */
.contacts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contacts-content { grid-template-columns: 1fr; }
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacts-info dl {
  display: grid;
  gap: 1rem;
}

.contacts-info dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contacts-info dd {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-bright);
  margin-top: 0.25rem;
}

.contacts-info dd a {
  color: var(--cyan);
  font-weight: 600;
}

.qr-bot {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--bg-card);
}

.qr-bot img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.qr-bot figcaption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ----- Footer ----- */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-dim);
}

.footer-inner .prompt {
  color: var(--green);
}

.footer-inner .prompt::before {
  content: '$ ';
}

/* ----- Typing effect (optional, class-based) ----- */
.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--cyan);
  animation: typing 2s steps(30) forwards, blink-cursor 0.8s step-end infinite;
  max-width: fit-content;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-cursor {
  50% { border-color: transparent; }
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 0.75rem 0; gap: 0.5rem; }
  .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section-subtitle { font-size: 1.5rem; }
}
