/* ===== QuoteProof landing — Макет 2 (dark + lime) ===== */
/* Самодостатньо: системні шрифти (без CDN), mobile-first, контроль контрасту. */

:root {
  --bg-dark: #0e0f0c;
  --bg-dark-2: #16180f;
  --bg-card: #191b12;
  --bg-light: #f4f4ef;
  --bg-light-2: #ffffff;
  --lime: #c6f048;
  --lime-deep: #b4e02f;
  --green-deep: #2f6d1c; /* читабельний зелений для тексту на СВІТЛОМУ фоні */
  --ink: #14160f;
  --ink-soft: #4c4f45;
  --white: #ffffff;
  --muted-dark: #b7bbad;
  --line-dark: #2a2c22;
  --line-light: #e3e3da;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --script: "Segoe Script", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --shadow: 0 20px 50px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--white);
  background: var(--bg-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--ink);
  padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex-direction: column; text-align: center;
  padding: 15px 22px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, filter .12s ease;
  line-height: 1.2;
}
.btn small { font-weight: 500; font-size: .78rem; opacity: .8; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-sm { flex-direction: row; padding: 10px 16px; font-size: .9rem; }
.btn-sm small { display: none; }
.ico { font-size: 1.05em; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,15,12,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.25rem; }
.brand-mark { display: inline-flex; }
.brand-name { color: var(--white); letter-spacing: -.02em; }
.brand-name.small { font-size: 1rem; }
.main-nav { display: none; gap: 22px; margin-left: 8px; }
.main-nav a { color: var(--muted-dark); font-size: .95rem; font-weight: 600; }
.main-nav a:hover { color: var(--white); }
.header-cta { display: none; gap: 10px; margin-left: auto; }

.nav-toggle {
  margin-left: auto; width: 44px; height: 44px; display: inline-flex; flex-direction: column;
  justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2px; background: var(--white); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 6px; padding: 14px 20px 22px; border-bottom: 1px solid var(--line-dark); }
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav a:not(.btn) { color: var(--muted-dark); font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-nav .btn { margin-top: 8px; }

/* ===== Hero ===== */
.hero { background: radial-gradient(120% 80% at 80% 0%, #1b1e12 0%, var(--bg-dark) 55%); padding: 44px 0 56px; }

/* Hero з реальним фото (Makets / фото Павла) */
.hero.has-photo { position: relative; overflow: hidden; }
.hero.has-photo .wrap { position: relative; z-index: 2; }
.hero-photo {
  position: absolute; inset: 0; z-index: 1;
  background: url("img/hero-bathroom.jpg") center right / cover no-repeat;
  opacity: .5;
}
/* Затемнення зліва — щоб заголовок читався (контраст AA) */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(14,15,12,.92) 34%, rgba(14,15,12,.55) 62%, rgba(14,15,12,.35) 100%);
}
@media (max-width: 899px) {
  /* На мобільному фото — лише тонка підкладка, щоб текст лишався головним */
  .hero-photo { opacity: .28; background-position: center; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(14,15,12,.72) 0%, rgba(14,15,12,.88) 100%); }
}

/* Реальні фото «до/після» */
.ba { margin: 0; position: relative; border-radius: 8px; overflow: hidden; background: #dfe0d6; }
.ba img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ba figcaption {
  position: absolute; left: 6px; bottom: 6px;
  background: rgba(14,15,12,.82); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px;
}
.hero-grid { display: grid; gap: 40px; }
.eyebrow { color: var(--lime); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 3.6rem); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; font-weight: 800; }
.hero h1 .hl { color: var(--lime); position: relative; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 6px; background: var(--lime); opacity: .35; border-radius: 4px; }
.lede { color: var(--muted-dark); font-size: 1.08rem; max-width: 46ch; margin: 0 0 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 26px 0 0; }
.trust-row li { color: var(--white); font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.trust-row li::before { content: "✓"; color: var(--lime); font-weight: 800; }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; padding-top: 10px; }
.phone {
  width: 240px; background: #0b0c09; border: 8px solid #24261b; border-radius: 34px;
  padding: 16px 14px; box-shadow: var(--shadow);
}
.phone-title, .phone-sub { font-size: .78rem; color: var(--muted-dark); margin: 0 0 10px; font-weight: 700; }
.phone-sub { margin-top: 16px; }
.status-list, .progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status-list li { display: flex; justify-content: space-between; align-items: center; background: #14160e; border-radius: 9px; padding: 8px 10px; font-size: .8rem; }
.status-list li small { color: var(--muted-dark); font-size: .68rem; }
.status-list li::after { content: "✓"; color: #6a6d5f; font-weight: 800; margin-left: 8px; }
.status-list li.accepted { background: rgba(198,240,72,.14); border: 1px solid rgba(198,240,72,.4); }
.status-list li.accepted::after { content: "✓"; color: var(--lime); }
.progress-list li { font-size: .78rem; color: var(--muted-dark); padding-left: 20px; position: relative; }
.progress-list li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 800; }
.deposit-card {
  position: absolute; left: 0; bottom: 40px; background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); text-align: left;
}
.deposit-card p { margin: 0; font-size: .72rem; color: var(--ink-soft); }
.deposit-card strong { font-size: 1.2rem; }
.deposit-card .tick { position: absolute; right: 10px; top: 10px; color: var(--green-deep); font-weight: 800; }
.scribble { position: absolute; right: -4px; bottom: 6px; color: var(--lime); font-family: var(--script); font-size: 1.05rem; transform: rotate(-6deg); text-align: center; }

/* ===== Sections ===== */
.section { padding: 60px 0; }
.section.dark { background: var(--bg-dark); }
.section.light { background: var(--bg-light); color: var(--ink); }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 800; color: var(--ink-soft); margin: 0 0 10px; }
.section.dark .kicker, .kicker.lime { color: var(--lime); }
.kicker.center { text-align: center; }
.section-title { font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.1; margin: 0 0 34px; letter-spacing: -.02em; font-weight: 800; }
.section-title.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; }
.section.light .lede.dark-lede { color: var(--ink-soft); }

/* Problem */
.problem-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.problem { display: flex; gap: 14px; align-items: flex-start; }
.problem .p-ico { font-size: 1.5rem; flex: none; }
.problem p { margin: 0; color: var(--ink-soft); font-weight: 500; }

/* Flow */
.flow-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; counter-reset: none; }
.flow-grid li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.flow-grid .step-n { font-family: var(--script); color: var(--green-deep); font-size: 1.5rem; font-weight: 700; }
.flow-grid .step-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 1px solid var(--line-light); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.flow-grid .done-tag { justify-content: center; font-family: var(--script); color: var(--green-deep); font-size: 1.3rem; }

/* Feature cards */
.feature-cards { display: grid; gap: 22px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 28px; }
.feature-card h3 { font-size: 1.5rem; line-height: 1.15; margin: 6px 0 18px; }
.check-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 28px; color: var(--muted-dark); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--lime); font-weight: 800; }
.section.light .check-list.small li { color: var(--ink); }
/* Галочки на БІЛОМУ фоні: лайм там блідий → насичений зелений + більший */
.section.light .check-list.small li::before {
  color: var(--green-deep);
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 900;
}
.mini-mock { background: var(--white); color: var(--ink); border-radius: 14px; padding: 16px; }
.mm-title { font-weight: 700; font-size: .85rem; margin: 0 0 12px; }
.mm-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-light); font-size: .82rem; }
.mm-row em { color: var(--green-deep); font-style: normal; font-weight: 700; }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ph-img { aspect-ratio: 4/3; background: linear-gradient(135deg,#dfe0d6,#c9cbbf); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #6c6f60; font-size: .72rem; font-weight: 700; }
.mm-line { height: 8px; background: var(--line-light); border-radius: 4px; margin: 10px 0; }
.sign { font-family: var(--script); font-size: 1.25rem; color: var(--ink); }

/* Міні-звіт: «Work completed» → підпис. Розділено, щоб не зливалось */
.report-mock .mm-done {
  margin: 14px 0 2px; padding-top: 12px;
  border-top: 1px solid var(--line-light);
  display: flex; align-items: center; gap: 7px;
}
.report-mock .mm-done::before {
  content: "✓"; color: var(--green-deep); font-weight: 900; font-size: 1rem;
}
.signoff-mini { margin: 0 0 2px; font-size: .72rem; color: var(--ink-soft); }
.report-mock .sign { display: block; line-height: 1.3; }

/* Example report */
.report-grid { display: grid; gap: 34px; align-items: start; }
.link-arrow { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.report-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); }
.report-head { background: var(--bg-dark); color: var(--white); padding: 22px; }
.report-head h4 { margin: 4px 0 14px; font-size: 1.3rem; }
.report-head dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .82rem; }
.report-head dt { color: var(--muted-dark); }
.report-body { padding: 22px; }
.signoff-text { font-size: .85rem; color: var(--ink-soft); margin: 4px 0 10px; }

/* Benefits */
.benefit-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.benefit { background: var(--bg-card); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px; }
.benefit .b-ico { font-size: 1.7rem; }
.benefit h4 { margin: 12px 0 8px; color: var(--lime); font-size: 1.1rem; }
.benefit p { margin: 0; color: var(--muted-dark); font-size: .92rem; }

/* Focus band — «не ще одна all-in-one платформа» */
.focus-band { padding: 52px 0; border-top: 1px solid var(--line-dark); }
.focus-inner .section-title { max-width: 20ch; margin-bottom: 16px; }
.focus-inner .lede { max-width: 62ch; margin-bottom: 26px; }
.focus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.focus-list li { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--lime); }
.focus-list strong { font-size: 1.02rem; }
.focus-list span { color: var(--muted-dark); font-size: .93rem; }

/* Intro-абзац під заголовком секції */
.section-title + .intro { margin-top: -18px; margin-bottom: 30px; max-width: 62ch; }

/* Built for */
.built-for { background: var(--lime); color: var(--ink); padding: 44px 0; }
.built-inner { display: grid; gap: 26px; }
.built-copy h3 { font-size: 1.6rem; margin: 0 0 8px; }
.built-copy p { margin: 0; font-weight: 600; }
.trades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.trades li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; }
.trades li span { font-size: 1.3rem; }

/* Demo */
.demo-grid { display: grid; gap: 30px; }
.testimonial { margin: 0; background: var(--bg-dark); color: var(--white); border-radius: var(--radius-lg); padding: 30px; }
.testimonial p { font-size: 1.2rem; font-weight: 600; margin: 0 0 14px; }
.testimonial cite { color: var(--lime); font-style: normal; font-weight: 700; font-size: .9rem; }
.demo-cta h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0 0 20px; }
.trust-row.dark-trust li { color: var(--ink); }
.trust-row.dark-trust li::before { color: var(--green-deep); }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--white); border: 1px solid var(--line-light); border-radius: 12px; padding: 4px 18px; }
.faq-list summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--green-deep); font-size: 1.4rem; font-weight: 800; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 16px; color: var(--ink-soft); }

/* Footer CTA */
.footer-cta { background: var(--bg-dark); border-top: 1px solid var(--line-dark); padding: 56px 0; }
.footer-cta-inner { text-align: center; }
.footer-cta h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 26px; }
.footer-cta .hl { color: var(--lime); }

/* Footer */
.site-footer { background: #0a0b08; padding: 30px 0; border-top: 1px solid var(--line-dark); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--muted-dark); font-size: .9rem; }
.footer-nav a:hover { color: var(--white); }
.copyright { color: #6a6d5f; font-size: .82rem; margin: 0; width: 100%; }

/* Footer legal / privacy */
.footer-legal { border-top: 1px solid var(--line-dark); margin-top: 22px; padding-top: 22px; max-width: 780px; }
.footer-legal h2 { font-size: 1rem; color: var(--white); margin: 0 0 10px; }
.footer-legal p { color: var(--muted-dark); font-size: .9rem; line-height: 1.6; margin: 0 0 10px; }
.footer-legal .privacy-warn { color: var(--lime); font-weight: 600; }
.footer-legal .privacy-note { color: #8b8f80; font-size: .84rem; margin-bottom: 0; }

/* ===== Responsive ===== */
@media (min-width: 620px) {
  .problem-grid { grid-template-columns: repeat(2,1fr); }
  .benefit-grid { grid-template-columns: repeat(2,1fr); }
  .flow-grid { grid-template-columns: repeat(3,1fr); }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .main-nav, .header-cta { display: flex; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero { padding: 64px 0 80px; }
  .feature-cards { grid-template-columns: 1fr 1fr; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .benefit-grid { grid-template-columns: repeat(5,1fr); }
  .flow-grid { grid-template-columns: repeat(6,1fr); }
  .focus-list { grid-template-columns: repeat(3,1fr); gap: 26px; }
  .built-inner { grid-template-columns: .9fr 1.1fr; align-items: center; }
  .trades { grid-template-columns: repeat(3,1fr); }
  .demo-grid { grid-template-columns: .9fr 1.1fr; align-items: center; }
  .footer-cta { padding: 72px 0; }
}
@media (min-width: 1100px) {
  .copyright { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
