/* yaroshevich.pro — design mockup v2
   Layout: postnikov.ai-inspired (sidebar + main, wider canvas)
   Style: justinjackson.ca-inspired (off-white, serif body, teal accent, no ASCII decor)
   Tokens locked in Reports/yaroshevich_pro_decisions.csv */

:root {
  --bg: #FAFAF7;
  --text: #1A1A1A;
  --muted: #666666;
  --accent: #0E7C7B;
  --accent-hover: #0a5e5d;
  --border: #E5E5E0;

  --font-body: Georgia, "Times New Roman", serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --sidebar-width: 240px;
  --content-width: 880px;
  --reading-width: 680px;
  --base-size: 18px;
  --line-height: 1.6;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--base-size);
  line-height: var(--line-height);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ───── Layout: sidebar + main ───── */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 64px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 96px;
  align-items: start;
}

aside.sidebar {
  position: sticky;
  top: 32px;
  align-self: start;
}

main.main {
  max-width: var(--content-width);
  min-width: 0;
}

main.main.reading { max-width: var(--reading-width); }

/* ───── Sidebar ───── */
.brand {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 40px;
}

.brand .role {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar nav .group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar nav .group-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.sidebar nav a {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  line-height: 1.4;
}

.sidebar nav a:hover { color: var(--accent); }

.sidebar nav a.active {
  font-weight: 700;
  color: var(--accent);
}

/* ───── Headings ───── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: 36px; margin-top: 0; }
h2 { font-size: 24px; margin-top: 56px; }
h3 { font-size: 20px; margin-top: 32px; }

/* ───── Body links ───── */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-hover); }

p { margin: 0 0 20px; }

/* ───── Hero (Профиль) ───── */
.hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.hero img.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.hero .intro h1 { font-size: 28px; margin-bottom: 4px; }
.hero .intro .role-tag {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* ───── Services list (3 cards on profile) ───── */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: white;
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 4px;
  transition: border-color 0.15s;
}

.service-card:hover { border-color: var(--accent); }

.service-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.service-card a.more {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ───── Companies grid (logos under hero) ───── */
.companies-label {
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 24px;
  margin-bottom: 12px;
}

.companies {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 32px;
  padding: 8px 0;
}

.companies img {
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: opacity 0.2s, filter 0.2s;
}

.companies img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ───── About block (under hero, above companies) ───── */
.about-block {
  margin: 8px 0 24px;
}

.about-block p { margin: 0 0 16px; }

.about-subtitle {
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 24px;
  margin-bottom: 12px;
}

.about-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.about-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ───── Competencies (6 indexed items) ───── */
.competencies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  margin: 16px 0;
  font-family: var(--font-heading);
}

.competencies .item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 16px;
}

.competencies .num {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  min-width: 28px;
}

/* ───── Posts list (bulleted, no cards) ───── */
ul.posts {
  list-style: disc;
  padding-left: 20px;
  margin: 16px 0 0;
}

ul.posts li { margin: 0 0 12px; padding: 0; }

ul.posts .date {
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 14px;
  margin-left: 8px;
}

/* ───── Article body ───── */
article p { margin: 0 0 20px; }
article ul, article ol { padding-left: 24px; margin: 0 0 20px; }
article li { margin-bottom: 8px; }

article blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

article code {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 16px;
  background: rgba(14, 124, 123, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
}

.post-meta {
  font-family: var(--font-heading);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.post-meta .dot { margin: 0 8px; }

/* ───── CTA block ───── */
.cta {
  background: white;
  border: 1px solid var(--border);
  padding: 24px;
  margin: 32px 0;
  border-radius: 4px;
}

.cta h3 { margin-top: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: white !important;
  text-decoration: none !important;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--accent-hover); }

/* ───── Form ───── */
form.contact {
  background: white;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 4px;
  margin: 32px 0;
}

form.contact label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

form.contact input,
form.contact textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  margin-bottom: 16px;
}

form.contact input:focus,
form.contact textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

/* ───── Pricing tiers ───── */
.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.tier {
  background: white;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 4px;
}

.tier h3 { margin-top: 0; }

.tier .price {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 16px;
}

.tier ul { padding-left: 18px; }
.tier li { margin-bottom: 6px; }

/* ───── FAQ ───── */
.faq details {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.faq details:last-child { border-bottom: 1px solid var(--border); }

.faq summary {
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--muted);
}

.faq details[open] summary::after { content: "−"; }

.faq details > p:first-of-type { margin-top: 12px; }

/* ───── Page footer (inside main) ───── */
footer.site {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--muted);
}

footer.site a { color: var(--muted); }

/* ───── Mobile: collapse sidebar to top ───── */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 16px 64px;
  }
  aside.sidebar {
    position: static;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .brand { margin-bottom: 24px; }
  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  .sidebar nav .group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
    align-items: baseline;
  }
  .sidebar nav .group-title { width: 100%; }
  .competencies { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .companies { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .service-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  h1 { font-size: 28px; }
  .hero { flex-direction: column; gap: 16px; }
}

@media (max-width: 500px) {
  h2 { font-size: 22px; margin-top: 48px; }
}
