/* ReputeCore — main stylesheet */
:root {
  --ink: #14202b;
  --ink-2: #24364a;
  --mint: #3ee0b0;
  --mint-600: #2bc99b;
  --mint-light: #d9f5ea;
  --mint-shadow: #bfeedd;
  --green: #0b6b57;
  --green-dark: #084d3f;
  --beige: #f4f2ee;
  --muted: #3a4651;
  --gray: #5d6873;
  --light: #cdd5db;
  --border: #dcdad5;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 9vw, 112px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
address { font-style: normal; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 200; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(64px, 8vw, 96px) 0; }
.section--beige { background: var(--beige); }
.section--dark { background: var(--ink); color: #fff; }
.section--mint { background: var(--mint-light); }

.eyebrow { margin: 0; font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: .08em; text-transform: uppercase; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--mint); }
.eyebrow--dot { display: flex; align-items: center; gap: 10px; }
.eyebrow--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

.h1 { font-size: clamp(38px, 6vw, 70px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 20px 0 24px; text-wrap: balance; }
.h1--page { font-size: clamp(36px, 5vw, 60px); margin: 14px 0 20px; }
.h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 14px 0 0; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 16px 28px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 18px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--mint); color: #0d1a14; }
.btn--primary:hover { background: var(--mint-600); color: #0d1a14; }
.btn--bordered { border-color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: #eef2f4; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 6px 18px -14px rgba(20,32,43,.35); }
.header__inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo__tag { margin-top: 4px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); }
.nav { margin-left: auto; display: flex; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); }
.burger:hover { background: var(--mint-light); }

.mobile-menu { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: #fff; display: flex; flex-direction: column; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.mobile-menu__top { display: flex; align-items: center; min-height: var(--header-h); padding-top: 14px; padding-bottom: 14px; }
.mobile-menu .logo, .mobile-menu .logo:hover { color: #fff; }
.mobile-menu .logo__mark { background: var(--mint); }
.menu-close { margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--mint); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.menu-close:hover { background: var(--ink-2); }
.mobile-menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding-top: 24px; padding-bottom: 24px; }
.mobile-menu__nav a { color: #fff; text-decoration: none; font-size: clamp(30px, 8vw, 48px); font-weight: 800; letter-spacing: -.03em; padding: 8px 0; }
.mobile-menu__nav a:hover, .mobile-menu__nav a[aria-current="page"] { color: var(--mint); }
.mobile-menu__contacts { display: flex; flex-direction: column; gap: 10px; padding-bottom: 40px; font-size: 17px; color: var(--light); }
.mobile-menu__contacts a { color: var(--mint); font-weight: 700; text-decoration: none; }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: min(720px, 88vh); overflow: hidden; background: var(--ink); color: #fff; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,20,28,.92) 0%, rgba(12,20,28,.8) 42%, rgba(12,20,28,.15) 78%); }
.hero__content { position: relative; z-index: 1; padding-top: clamp(72px, 10vw, 112px); padding-bottom: clamp(72px, 10vw, 112px); }
.hero__text { max-width: 660px; }
.hero__lead { color: #e3e8ec; max-width: 580px; margin-bottom: 40px; }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.promise { border-left: 4px solid var(--mint); padding: 4px 0 4px 28px; }
.promise h2 { margin: 0; font-size: clamp(28px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.promise p { margin: 12px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Split layouts */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px); align-items: center; }
.photo { border-radius: 24px; overflow: hidden; box-shadow: 16px 16px 0 var(--mint-shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--portrait { aspect-ratio: 4 / 5; max-width: 520px; width: calc(100% - 16px); }
.photo--wide { aspect-ratio: 3 / 2; box-shadow: -16px 16px 0 var(--mint-shadow); margin-left: 16px; }
.checklist { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.checklist li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; align-items: start; }
.check { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.checklist h3 { margin: 6px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.checklist p { margin: 6px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.about p:not(.eyebrow) { margin: 0 0 18px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.about .h2 { margin-bottom: 24px; }

/* Audience */
.audience-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: end; margin-bottom: 56px; }
.photo-plain { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; }
.photo-plain img { width: 100%; height: 100%; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--beige); border-radius: 20px; padding: 32px; }
.card h3 { margin: 0 0 12px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Steps */
.section-head--center { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head--center .lead { margin-top: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: clamp(28px, 3vw, 40px); box-shadow: 0 10px 30px -18px rgba(20,32,43,.25); }
.step__num { width: 56px; height: 56px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.step h3 { margin: 28px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.step p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.pricing p { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--light); }
.pricing .eyebrow { margin: 0; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.price strong { font-size: clamp(48px, 6vw, 76px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price strong.accent { color: var(--mint); }
.price span { font-size: 22px; color: var(--light); }
.pricing .price-note { font-size: 17px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__lead { margin-top: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--beige); border-radius: 16px; }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 20px 24px; cursor: pointer; font-size: 18px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green); }
.faq-icon { position: relative; flex-shrink: 0; width: 32px; height: 32px; margin-left: auto; border-radius: 50%; background: var(--ink); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--mint); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item p { margin: 0; padding: 0 24px 24px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* CTA */
.cta { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta .h2 { margin: 0 0 18px; font-size: clamp(32px, 4.6vw, 56px); }
.cta p { margin: 0 0 36px; max-width: 560px; font-size: 19px; line-height: 1.6; color: #2a3640; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.info-label { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.info-value { font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; word-break: break-word; }
.info-address { font-size: 19px; line-height: 1.55; }
.form-card { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 20px 50px -30px rgba(20,32,43,.35); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__title { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 17px; font-weight: 400; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--mint-light); }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.field--check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; flex-shrink: 0; accent-color: var(--ink); }
.form .btn { align-self: flex-start; margin-top: 6px; }
.form-status { padding: 14px 16px; border-radius: 12px; font-size: 16px; line-height: 1.5; }
.form-status.is-error { background: #fdeaea; color: #8a1c1c; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; outline: none; }
.success__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.success h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.success p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Legal */
.page-head { background: var(--beige); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-head .h1 { margin-bottom: 16px; }
.page-head__date { margin: 0; font-size: 17px; color: var(--muted); }
.legal { padding-top: clamp(48px, 6vw, 80px); padding-bottom: var(--section); }
.legal__body { max-width: 760px; }
.legal__body h2 { margin: 44px 0 14px; font-size: clamp(22px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.02em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { font-size: 17px; line-height: 1.7; color: #2a3640; }
.legal__body p { margin: 0 0 14px; }
.legal__body ul { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }

/* 404 */
.notfound { display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); background: var(--beige); }
.notfound__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); }
.notfound .lead { margin-bottom: 36px; max-width: 520px; }
.notfound__num { text-align: center; font-size: clamp(120px, 22vw, 280px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.notfound__num span { color: var(--mint); -webkit-text-stroke: 3px var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: var(--light); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; font-size: 16px; line-height: 1.7; }
.footer__brand { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.footer__about { margin: 8px 0 0; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; gap: 4px; }
.footer__title { margin-bottom: 6px; font-weight: 700; color: #fff; }
.site-footer a { color: var(--light); text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid #2a3846; font-size: 14px; }
.footer__bottom span { margin-right: auto; }
.footer__bottom a { text-decoration: underline; }

/* Responsive */
@media (max-width: 1023px) {
  .nav { display: none; }
  .burger { display: flex; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .hero::after { background: rgba(12,20,28,.78); }
  .promises, .split, .audience-head, .steps, .pricing, .contact, .notfound__grid { grid-template-columns: minmax(0, 1fr); }
  .photo--portrait { max-width: 480px; }
  .photo--wide { margin-left: 16px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .notfound__num { order: -1; text-align: left; }
}
@media (max-width: 599px) {
  .cards, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { width: 100%; }
  .form .btn { align-self: stretch; }
  .footer__bottom span { width: 100%; }
  .card { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
