
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-muted: #f1ece5;
  --text: #1f1f1f;
  --text-soft: #6f6a63;
  --line: #ddd3c8;
  --accent: #202020;
  --shadow: 0 16px 40px rgba(31, 31, 31, 0.06);
  --radius: 24px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(247, 244, 239, 0.88);
  border-bottom: 1px solid rgba(221, 211, 200, 0.6);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img, .footer-logo {
  width: 180px;
  height: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.site-nav a, .header-phone, .footer-contacts a {
  color: var(--text-soft);
  transition: color .2s ease;
}
.site-nav a:hover, .header-phone:hover, .footer-contacts a:hover { color: var(--text); }
.header-phone { white-space: nowrap; font-size: 14px; }
.hero { padding: 104px 0 80px; }
.hero-inner {
  background: linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.74)), var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 88px;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.05;
}
h1 { font-size: clamp(42px, 7vw, 82px); max-width: 980px; }
h2 { font-size: clamp(32px, 4vw, 54px); margin-bottom: 16px; }
h3 { font-size: 28px; margin-bottom: 16px; }
.hero-text {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: 18px;
  color: var(--text-soft);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.section { padding: 72px 0; }
.section-muted { background: rgba(255,255,255,0.45); border-top: 1px solid rgba(221,211,200,0.7); border-bottom: 1px solid rgba(221,211,200,0.7); }
.section-head { margin-bottom: 28px; }
.practice-grid, .publication-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.practice-card, .publication-card, .info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.practice-card {
  padding: 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.practice-card p { color: var(--text-soft); margin: 0 0 24px; }
.practice-card a, .publication-card span:last-child {
  margin-top: auto;
  font-weight: 600;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: start;
}
.info-card { padding: 32px; }
.info-card ul { margin: 0; padding-left: 18px; color: var(--text-soft); }
.info-card li + li { margin-top: 12px; }
.publication-card {
  padding: 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.publication-type {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.logo-row img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.site-footer {
  padding: 34px 0 46px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-copy { color: var(--text-soft); margin: 14px 0 0; font-size: 14px; }
.footer-contacts {
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.footer-social img {
  width: 26px;
  height: 26px;
  opacity: 0.7;
}
@media (max-width: 980px) {
  .site-nav { display: none; }
  .hero-inner { padding: 56px 32px; }
  .practice-grid, .publication-grid, .split, .logo-row, .footer-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .header-inner { min-height: 72px; }
  .brand img, .footer-logo { width: 150px; }
  .hero { padding: 72px 0 48px; }
  .hero-inner { padding: 40px 22px; border-radius: 24px; }
  h1 { font-size: 42px; }
  .hero-text { font-size: 16px; }
  .practice-card, .publication-card, .info-card { padding: 24px; }
}


.site-nav a[aria-current="page"] {
  color: var(--text);
}


/* Secondary page */
.page-hero { padding: 88px 0 46px; }
.page-hero-inner {
  padding: 72px 0 28px;
  border-bottom: 1px solid var(--line);
}
.lead {
  max-width: 820px;
  margin-top: 24px;
  font-size: 19px;
  color: var(--text-soft);
}
.content-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.side-note {
  position: sticky;
  top: 110px;
  padding: 22px 0;
}
.side-note-title {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.side-nav a {
  color: var(--text-soft);
  transition: color .2s ease;
}
.side-nav a:hover { color: var(--text); }
.side-nav {
  display: grid;
  gap: 12px;
  font-size: 15px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 42px 42px 26px;
}
.article-block + .article-block {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid rgba(221, 211, 200, 0.7);
}
.article-card p,
.article-list,
.faq-list p,
.principle-list p {
  max-width: 760px;
  color: var(--text-soft);
}
.principle-list {
  display: grid;
  gap: 26px;
  margin-top: 26px;
}
.article-list {
  margin: 0 0 22px;
  padding-left: 20px;
}
.article-list li + li { margin-top: 10px; }
.faq-list {
  display: grid;
  gap: 14px;
}
details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfaf7;
  padding: 18px 20px;
}
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
details p { margin: 14px 0 4px; }

@media (max-width: 980px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .side-note {
    position: static;
    padding: 0;
  }
  .article-card {
    padding: 30px 24px 18px;
  }
}
@media (max-width: 640px) {
  .page-hero { padding: 70px 0 26px; }
  .page-hero-inner { padding: 40px 0 18px; }
  .lead { font-size: 17px; }
  .article-block + .article-block { margin-top: 30px; padding-top: 30px; }
}
