/* ===== Design Tokens ===== */
:root {
  --bg: #e9e9e6;
  --surface: #f4f4f2;
  --ink: #16171a;
  --ink-soft: #55565b;
  --line: #cfcfca;
  --accent: #1f4fd8;
  --accent-ink: #ffffff;
  --radius: 4px;
  --maxw: 1240px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow {
  transform: translate(2px, -2px);
}
.btn-solid {
  background: var(--ink);
  color: var(--bg);
}
.btn-solid:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 0.8rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--font-display);
}
.brand-mark {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
}
.brand-reg {
  font-size: 0.7rem;
  color: var(--ink-soft);
}
.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: auto;
}
.nav a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav a:hover {
  color: var(--ink);
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu a {
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.btn {
  border-bottom: none;
  margin-top: 12px;
  justify-content: center;
}

/* ===== Hero ===== */
.hero {
  padding: 56px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 11vw, 9rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin-top: 24px;
  text-wrap: balance;
}
.hero-figure {
  display: flex;
  justify-content: flex-end;
  margin: -0.15em 0 0;
  line-height: 0.8;
  pointer-events: none;
}
.hero-figure-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 26vw, 20rem);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-soft);
  text-stroke: 1.5px var(--ink-soft);
}
.hero-figure-pct {
  font-size: 0.42em;
  vertical-align: super;
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-top: -1.5em;
}
.hero-desc {
  max-width: 460px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===== Stats ===== */
.stats {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 40px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat:first-child {
  padding-left: 24px;
}
.stat:last-child {
  border-right: none;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-suffix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin-top: 4px;
}
.stat-label {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ===== Section head ===== */
.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow-invert {
  color: var(--bg);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ===== Method ===== */
.method {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.lead {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 32px;
}
.method-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.method-list li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.method-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.method-list-k {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  padding-top: 3px;
}
.method-list h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.method-list p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.method-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.method-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.method-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  background: var(--ink);
  color: var(--bg);
  padding: 20px 22px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 18px;
}
.method-badge-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
}
.method-badge-text {
  font-size: 0.85rem;
  color: #cfd0d4;
}

/* ===== Services ===== */
.services {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--surface);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: background 0.18s ease, color 0.18s ease;
}
.service-card:hover {
  background: var(--ink);
  color: var(--bg);
}
.service-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.service-card:hover .service-index {
  color: var(--bg);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 18px 0 10px;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex: 1;
}
.service-card:hover p {
  color: #cfd0d4;
}
.service-price {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.service-card-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.service-card-accent .service-index,
.service-card-accent p {
  color: rgba(255, 255, 255, 0.75);
}
.service-card-accent:hover {
  background: var(--ink);
}

/* ===== Showcase ===== */
.showcase {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.showcase-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.showcase-media {
  border-radius: var(--radius);
  overflow: hidden;
}
.showcase-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.showcase-text p {
  color: var(--ink-soft);
  margin: 20px 0 28px;
  font-size: 1.05rem;
}

/* ===== Process ===== */
.process {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.process-list li {
  background: var(--surface);
  padding: 32px 26px 40px;
}
.process-step {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--line);
  display: block;
  line-height: 1;
}
.process-list h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 20px 0 8px;
}
.process-list p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ===== Reviews ===== */
.reviews {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.review blockquote {
  font-size: 1.05rem;
  line-height: 1.5;
}
.review figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.review figcaption strong {
  font-family: var(--font-display);
}
.review figcaption span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ===== Contact ===== */
.contact {
  background: var(--ink);
  color: var(--bg);
  padding: 88px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-text .section-title {
  color: var(--bg);
}
.contact-text p {
  color: #b9bac0;
  margin: 20px 0 28px;
  font-size: 1.05rem;
  max-width: 440px;
}
.contact-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
}
.contact-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== Form ===== */
.lead-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-full {
  grid-column: 1 / -1;
}
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}
.field .optional {
  color: var(--ink-soft);
  font-weight: 400;
}
.field input,
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field input.invalid,
.field.invalid input {
  border-color: #c8342f;
}
.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 400 !important;
  color: var(--ink-soft) !important;
  cursor: pointer;
}
.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.error {
  font-size: 0.8rem;
  color: #c8342f;
  min-height: 1em;
}
.form-success {
  grid-column: 1 / -1;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-weight: 600;
  padding: 14px;
  border-radius: var(--radius);
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg);
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand-mark {
  font-size: 1.4rem;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.footer-col a,
.footer-col span {
  display: block;
  padding: 5px 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .header-meta {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 0;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .method-grid,
  .showcase-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: none;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .container {
    padding: 0 18px;
  }
  .hero {
    padding: 36px 0 48px;
  }
  .method,
  .services,
  .showcase,
  .process,
  .reviews,
  .contact {
    padding: 56px 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .lead-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
