/* andrewzhukov.io — personal brand site
   Ported from Claude Design "Адаптивный дизайн сайта". Mobile-first, no build step.
   Palette: warm off-white #FAF9F6, deep green accent #1E4636, dark green #14241C. */

:root {
  --bg: #FAF9F6;
  --bg-soft: #F2F0EA;
  --ink: #17181A;
  --ink-2: #262829;
  --muted: #494C4D;
  --muted-2: #4A4D4E;
  --faint: #7B7E7C;
  --faint-2: #8A8C82;
  --accent: #1E4636;
  --accent-hover: #163528;
  --accent-soft: #7FB79B;
  --dark: #14241C;
  --line: #E6E3DC;
  --line-2: #E6E2DB;
  --line-3: #E9E6DF;
  --card: #ffffff;
  --badge-bg: #EAF0EC;
  --badge-line: #D5E3DA;
  --input-bg: #FCFBF8;
  --input-line: #D9D5CC;
  --soon-line: #CFCABE;
  --soon-bg: #EDEAE2;
  --soon-ink: #9A9C92;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Golos Text', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
input, textarea, button, select { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

.kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--on-dark { background: #fff; color: var(--dark); }
.btn--on-dark:hover { background: #ECE9DF; }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.header__right { display: flex; align-items: center; gap: 30px; }
.nav { display: none; align-items: center; gap: 30px; }
.nav a { color: var(--muted-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--input-line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; }

.mobile-nav { display: none; border-bottom: 1px solid var(--line); background: var(--bg); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.mobile-nav .btn { margin: 16px 0 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 40px); scroll-margin-top: 84px; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); scroll-margin-top: 84px; }
.hero__inner { max-width: 860px; }
.hero .kicker { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 26px;
}
.hero__sub {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
  color: #44474A;
  margin: 0 0 36px;
  max-width: 640px;
}
.hero__subline { font-size: 15px; line-height: 1.55; color: var(--faint); margin: 22px 0 0; max-width: 560px; }

/* ---------- Services ---------- */
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 16px 0 clamp(36px, 5vw, 52px);
  max-width: 760px;
}
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 34px);
}
.card__bar { width: 30px; height: 4px; background: var(--accent); border-radius: 2px; margin-bottom: 22px; }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; }
.card p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0; }

/* ---------- Approach (dark) ---------- */
.approach { background: var(--dark); padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 40px); scroll-margin-top: 84px; }
.approach__inner { max-width: 820px; margin: 0 auto; }
.approach .kicker { color: var(--accent-soft); margin-bottom: 18px; display: block; }
.approach h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; color: #F3F1EA; margin: 0 0 clamp(28px, 4vw, 40px); }
.approach__body { display: flex; flex-direction: column; gap: 22px; font-size: clamp(17px, 1.7vw, 19px); line-height: 1.65; color: #C2CFC8; }
.approach__body p { margin: 0; }

/* ---------- About ---------- */
.about__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; grid-template-columns: 1fr; }
.about .kicker { display: block; margin-bottom: 18px; }
.about__text { font-size: clamp(18px, 2vw, 23px); line-height: 1.6; color: var(--ink-2); font-weight: 500; margin: 0; }
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  border: 1px solid #E2DED5;
  overflow: hidden;
  background: #ECE9E1;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Cases ---------- */
.cases__head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 16px 0 clamp(32px, 4.5vw, 48px); }
.cases__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.case {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: clamp(26px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.badge--case { color: var(--accent); background: var(--badge-bg); border: 1px solid var(--badge-line); }
.badge--soon { color: var(--soon-ink); background: var(--soon-bg); margin-bottom: 14px; }
.case h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin: 0; }
.case__body { display: grid; gap: 22px; grid-template-columns: 1fr; }
.case__label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--faint-2); margin-bottom: 8px; }
.case__body p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.case__result { border-left: 3px solid var(--accent); padding-left: 16px; }
.case__result .case__label { color: var(--accent); }
.case__result p { color: var(--ink-2); font-weight: 500; }
.case--soon { border: 1px dashed var(--soon-line); background: transparent; justify-content: center; min-height: 200px; gap: 0; }
.case--soon p { font-size: 16px; line-height: 1.55; color: var(--faint-2); margin: 0; }

/* ---------- Process ---------- */
.process h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 16px 0 clamp(40px, 5vw, 60px); }
.steps { display: grid; gap: 32px; grid-template-columns: 1fr; }
.step__n { font-size: clamp(34px, 4vw, 46px); font-weight: 600; color: var(--accent); letter-spacing: -0.02em; line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
.step p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- CTA banner (dark) ---------- */
.cta-banner { background: var(--dark); padding: clamp(64px, 9vw, 108px) clamp(20px, 5vw, 40px); scroll-margin-top: 84px; }
.cta-banner__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.cta-banner .kicker { color: var(--accent-soft); margin-bottom: 20px; display: block; }
.cta-banner h2 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; color: #F3F1EA; margin: 0 0 34px; }

/* ---------- Form ---------- */
.form-section { padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 40px); scroll-margin-top: 84px; }
.form-section__inner { max-width: 620px; margin: 0 auto; }
.form-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: clamp(28px, 4vw, 44px); }
.form-card h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 28px; }
.lead-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
.field label { display: block; font-size: 14px; font-weight: 600; color: #3C3E3F; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--input-line);
  border-radius: 9px;
  background: var(--input-bg);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; line-height: 1.55; min-height: 132px; }
/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: 14px; color: var(--faint); text-align: center; margin: 6px 0 0; }
.form-consent a { color: var(--muted); text-decoration: underline; }
.form-error {
  display: none;
  background: #FBEDEA;
  border: 1px solid #E7C3BB;
  color: #9A3412;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14.5px;
  line-height: 1.5;
}
.form-error.show { display: block; }
.form-error a { color: #7C2D12; text-decoration: underline; }

.form-success { display: none; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: clamp(36px, 5vw, 56px); text-align: center; }
.form-success.show { display: block; }
.form-success__check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--badge-bg); border: 1px solid var(--badge-line);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.form-success__check div { width: 18px; height: 10px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); margin-top: -4px; }
.form-success h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.form-success p { font-size: 16px; line-height: 1.6; color: #5C5F60; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(32px, 5vw, 48px) clamp(20px, 5vw, 40px); }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer__brand { font-size: 15px; font-weight: 600; color: #3C3E3F; }
.site-footer__brand small { display: block; font-weight: 400; color: var(--faint-2); margin-top: 4px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer__links a { font-size: 14.5px; color: #6E716F; }
.site-footer__links a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 40px) clamp(64px, 8vw, 96px); }
.legal__back { display: inline-block; margin-bottom: 22px; font-weight: 500; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 .4em; }
.legal h2 { font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; letter-spacing: -0.01em; margin: 32px 0 .4em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal .draft-note { background: #FBF5E3; border: 1px solid #E8D8A2; border-radius: 14px; padding: 16px 18px; color: #6B5410; margin-bottom: 28px; font-size: 15px; line-height: 1.6; }
.legal .warn { color: #9A6310; font-weight: 600; }
.legal .placeholder { background: #FBF0CC; padding: 1px 6px; border-radius: 5px; }
.legal__foot { margin-top: 36px; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .case__body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* gray divider before "Что сделал" — mirrors the green one before "Результат" */
  .case__body > div:nth-child(2) { border-left: 3px solid var(--input-line); padding-left: 16px; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  body { font-size: 18px; }
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .about__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

@media (min-width: 1000px) {
  .cases__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case--main { grid-column: span 3; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
