:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --text: #ffffff;
  --muted: #a3a3a3;
  --border: #262626;
  --accent: #ffffff;
  --accent-text: #000000;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(0, 0, 0, 0.75);
  --radius: 14px;
  --max: 1200px;
}
:root[data-theme="light"] {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #ececec;
  --text: #0a0a0a;
  --muted: #555555;
  --border: #dcdcdc;
  --accent: #0a0a0a;
  --accent-text: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --header-bg: rgba(245, 245, 245, 0.85);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f5f5;
    --surface: #ffffff;
    --surface-2: #ececec;
    --text: #0a0a0a;
    --muted: #555555;
    --border: #dcdcdc;
    --accent: #0a0a0a;
    --accent-text: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --header-bg: rgba(245, 245, 245, 0.85);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-style: italic; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--muted); }
ul { padding: 0; margin: 0; list-style: none; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { margin-bottom: 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.img-ph, .logo-ph, .avatar-ph {
  background: var(--surface-2);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  width: 100%;
}
.logo-ph, .avatar-ph { width: auto; border-radius: 50%; flex-shrink: 0; }
.logo-ph { border-radius: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; background: var(--accent); color: var(--accent-text); }
.btn-block { width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; }
.brand .logo-ph { width: 56px !important; height: 56px !important; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.main-nav a:not(.btn):hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle, .menu-toggle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.theme-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.hero { padding: clamp(60px, 9vw, 110px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.1rem; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 40px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.hero-stats strong { display: block; font-size: 1.8rem; font-weight: 800; }
.hero-stats span { font-size: 0.85rem; color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card, .price-card, .testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .price-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-num { display: block; font-size: 0.85rem; font-weight: 800; color: var(--muted); margin-bottom: 20px; letter-spacing: 0.1em; }
.card p { font-size: 0.95rem; margin: 0; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 24px; }
.price strong { font-size: 2.6rem; font-weight: 800; color: var(--text); }
.price span { color: var(--muted); }
.price-card ul { margin-bottom: 32px; flex: 1; }
.price-card li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.work-item { margin: 0; }
.work-item .img-ph { margin-bottom: 14px; transition: transform 0.4s ease; }
.work-item:hover .img-ph { transform: scale(1.02); }
.work-item figcaption { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.steps li { border-top: 2px solid var(--border); padding-top: 24px; }
.steps span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  margin-bottom: 18px;
}
.steps p { font-size: 0.95rem; margin: 0; }
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 24px; }
.testimonial p { color: var(--text); font-size: 1.02rem; margin: 0; font-style: italic; }
.testimonial footer { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial footer strong { display: block; font-size: 0.95rem; }
.testimonial footer span { font-size: 0.85rem; color: var(--muted); }
.avatar-ph { width: 56px; height: 56px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { margin-bottom: 10px; }
.contact-info a { font-weight: 700; color: var(--text); border-bottom: 2px solid var(--accent); }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.field.error input, .field.error select, .field.error textarea { border-color: #e11d48; }
.form-status { font-size: 0.9rem; margin: 0; min-height: 1.2em; font-weight: 600; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: #e11d48; }
.site-footer { border-top: 1px solid var(--border); padding: 48px 0; }
.footer-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-wrap p { margin: 0; font-size: 0.9rem; }
.social { display: flex; gap: 24px; }
.social a { font-weight: 700; font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.social a:hover { color: var(--text); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
    gap: 18px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .section-head { margin-bottom: 36px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .brand .logo-ph { width: 44px !important; height: 44px !important; }
  .hero-stats { gap: 24px; }
  .contact-form { padding: 24px; }
  .nav-wrap { height: 70px; }
  .main-nav { top: 70px; }
  .btn { width: 100%; }
  .hero-cta .btn { width: auto; flex: 1 1 auto; }
  .price-card, .card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
