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

:root {
  --bg: #faf9f7;
  --bg-2: #f2ede6;
  --bg-deep: #1a1220;
  --bg-deep-2: #231730;
  --border: #e2d9ce;
  --text: #1a1210;
  --text-muted: #6b5c4a;
  --accent: #7a3f8c;
  --accent-2: #c4822a;
  --accent-hover: #692f7a;
  --accent-light: rgba(122, 63, 140, 0.1);
  --white: #ffffff;
  --radius: 4px;
  --font-head: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
section.bg-deep { background: var(--bg-deep); }

/* ── HEADER ─────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
header.scrolled {
  background: rgba(250, 249, 247, 0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); transition: color 0.3s; }
header.scrolled .logo { color: var(--text); }
.logo-icon { width: 36px; height: 36px; color: #c49fd4; flex-shrink: 0; }
header.scrolled .logo-icon { color: var(--accent); }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.01em; }
.logo-sub { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; margin-top: 2px; }

nav { display: flex; align-items: center; gap: 32px; }
nav a { text-decoration: none; font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.8); transition: color 0.2s; }
header.scrolled nav a { color: var(--text-muted); }
nav a:hover { color: var(--white) !important; }
header.scrolled nav a:hover { color: var(--text) !important; }
nav a.nav-cta {
  color: var(--white) !important; background: var(--accent);
  padding: 8px 20px; border-radius: var(--radius); transition: background 0.2s;
}
nav a.nav-cta:hover { background: var(--accent-hover) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }
header.scrolled .nav-toggle span { background: var(--text); }

/* ── HERO ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 100vh;
  background: linear-gradient(135deg, #1a1220 0%, #2e1a40 55%, #1f1530 100%);
  z-index: -2;
}
body::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c49fd4' fill-opacity='0.025'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1; pointer-events: none;
}

.hero-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #c49fd4; background: rgba(196,159,212,0.12);
  border: 1px solid rgba(196,159,212,0.25);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(3.8rem, 7.5vw, 6.5rem);
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: #c49fd4;
}

.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.55);
  max-width: 460px; margin-bottom: 40px; line-height: 1.8;
}

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

.hero-visual {
  display: flex; justify-content: center; align-items: center;
  color: rgba(196,159,212,0.15);
}
.hero-visual svg { width: min(320px, 100%); height: auto; }

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center;
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; text-decoration: none;
  letter-spacing: 0.03em; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-light { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn-light:hover { background: rgba(255,255,255,0.18); }

/* ── SECTION HEADS ──────────────────────────────── */
.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 12px; }
h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--text); margin-bottom: 16px; line-height: 1.1; letter-spacing: -0.01em; }
.section-intro { font-size: 1rem; color: var(--text-muted); max-width: 580px; margin: 0 auto; margin-bottom: 48px; line-height: 1.8; }

/* ── SERVICES ───────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.service-card:hover { box-shadow: 0 10px 40px rgba(122,63,140,0.1); transform: translateY(-2px); }
.service-icon { width: 42px; height: 42px; color: var(--accent); margin-bottom: 18px; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--text); margin-bottom: 10px; letter-spacing: 0.01em; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }

/* ── ATELIER ────────────────────────────────────── */
.bg-deep .eyebrow { color: #c49fd4; }
.bg-deep h2 { color: var(--white); }
.bg-deep .atelier-text > p { color: rgba(255,255,255,0.55); margin-bottom: 18px; font-size: 0.95rem; line-height: 1.8; }
.bg-deep .atelier-text .btn { margin-top: 12px; }

.atelier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.atelier-text h2 { text-align: left; }

.atelier-features { display: flex; flex-direction: column; gap: 20px; }
.feature {
  display: flex; gap: 16px; padding: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); align-items: flex-start;
}
.feature-icon { width: 32px; height: 32px; color: #c49fd4; flex-shrink: 0; }
.feature-icon svg { width: 100%; height: 100%; }
.feature strong { display: block; color: var(--white); font-size: 0.875rem; margin-bottom: 4px; }
.feature p { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* ── KONTAKT ────────────────────────────────────── */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.kontakt-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }

.kb h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
address { font-style: normal; font-size: 0.9rem; color: var(--text-muted); line-height: 1.9; }
.kb ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.kb ul li { display: flex; flex-direction: column; gap: 2px; }
.kb ul li span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.kb ul li a { color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.kb ul li a:hover { color: var(--accent); }
.kb ul li .no-link { color: var(--text); font-size: 0.9rem; }

.kontakt-map { display: flex; flex-direction: column; gap: 8px; }
.kontakt-map iframe { width: 100%; height: 360px; border: 1px solid var(--border); border-radius: var(--radius); }
.map-link { font-size: 0.8rem; color: var(--text-muted); text-align: right; text-decoration: none; transition: color 0.2s; }
.map-link:hover { color: var(--accent); }

/* ── FOOTER ─────────────────────────────────────── */
footer { background: var(--bg-deep); padding: 36px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; }
.footer-brand strong { display: block; color: var(--white); font-size: 0.9rem; margin-bottom: 2px; }
.footer-brand span { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); }

/* ── MODAL ──────────────────────────────────────── */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 40px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.modal-box h2 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 20px; font-weight: 600; }
.modal-box h3 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 20px 0 8px; }
.modal-box p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.modal-box a { color: var(--accent); }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--text); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .atelier-grid { grid-template-columns: 1fr; gap: 48px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .kontakt-blocks { grid-template-columns: 1fr; }
  nav { display: none; position: fixed; inset: 0; top: 68px; background: var(--bg-deep); flex-direction: column; justify-content: center; align-items: center; gap: 36px; }
  body.nav-open nav { display: flex; }
  nav a { font-size: 1.2rem; color: rgba(255,255,255,0.8) !important; }
  nav a.nav-cta { color: var(--white) !important; }
  .nav-toggle { display: flex; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
