/* ЮКОН — юридическая компания
   Graphite / warm off-white institutional style, PT Serif + PT Sans. */

:root {
  --bg: #F7F5F2;
  --bg-warm: #F1EDE7;
  --ink: #23262A;
  --graphite: #2A2E33;
  --graphite-soft: #4A4F55;
  --text: #3D4247;
  --text-muted: #5A6066;
  --text-faint: #6E7378;
  --text-faintest: #8A857D;
  --border: #E2DED8;
  --border-soft: #EFEBE6;
  --border-input: #D8D3CB;
  --accent: #9C4A2F;
  --accent-hover: #7E3A23;
  --accent-dark: #C97A54;
  --white: #ffffff;
  --footer-text: #B6B2AC;
  --footer-link: #E4E0DA;
  --footer-border: #3D4247;
  --count: #A8A29A;
  --num-muted: #C0A79A;

  --serif: 'PT Serif', Georgia, serif;
  --sans: 'PT Sans', system-ui, sans-serif;
  --mono: 'PT Mono', monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

input, button, textarea { font-family: inherit; font-size: inherit; }
::placeholder { color: #9E9890; }

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.diagonal-placeholder {
  background: repeating-linear-gradient(135deg, #EAE6E0 0 8px, #F2EFEA 8px 16px);
  border: 1px solid var(--border);
}

.placeholder-caption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faintest);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-top {
  padding: 14px 24px 12px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-right: auto;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.06em;
  color: var(--graphite);
}

.brand-tag {
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-block { text-align: right; line-height: 1.3; }
.phone-number { font-size: 17px; font-weight: 700; color: var(--graphite); }
.phone-hours { font-size: 12px; color: var(--text-faint); }

.btn-header {
  display: inline-block;
  background: var(--graphite);
  color: var(--bg);
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--graphite);
}
.btn-header:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

.site-nav {
  padding: 0 24px 10px;
}

.nav-list {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
  padding: 0;
}

.nav-item a {
  display: block;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  color: var(--graphite-soft);
  text-decoration: none;
}
.nav-item a:hover { color: var(--accent); }
.nav-item a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Hero (home) ---------- */

.hero { border-bottom: 1px solid var(--border); }

.hero-grid {
  padding: 56px 24px 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 48px;
  align-items: start;
}

.hero-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--graphite);
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 20px;
  max-width: 36ch;
  text-wrap: pretty;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 26px;
  max-width: 52ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  font-size: 15.5px;
  font-weight: 700;
  border: none;
}
.btn-primary:hover { background: var(--graphite); color: var(--bg); text-decoration: none; }

.hero-note {
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.4;
}

.practice-card {
  background: #fff;
  border: 1px solid var(--border);
}

.practice-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
}

.practice-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  font-size: 15.5px;
  color: inherit;
  text-decoration: none;
}
.practice-row:last-child { border-bottom: none; }
.practice-row:hover { background: #FAF8F5; color: var(--accent); text-decoration: none; }
.practice-row-count { color: var(--count); }

/* ---------- Section header ---------- */

.section { border-bottom: 1px solid var(--border); }

.section-inner { padding: 52px 24px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
  color: var(--graphite);
}

.section-desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 52ch;
  text-wrap: pretty;
}

/* ---------- Home: чем мы занимаемся ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: #fff;
  padding: 26px 24px 24px;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}
.service-card:hover { background: #FAF8F5; text-decoration: none; }

.service-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ---------- Why section (dark) ---------- */

.why-section { background: var(--graphite); color: #F1EEE9; }

.why-section .section-title { color: #fff; margin-bottom: 30px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px 40px;
}

.why-item { display: flex; gap: 16px; }

.why-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-dark);
  padding-top: 4px;
}

.why-title { font-size: 17.5px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.why-desc { font-size: 14.5px; line-height: 1.55; color: var(--footer-text); }

/* ---------- Cases ---------- */

.cases-note { font-family: var(--mono); font-size: 12px; color: var(--accent); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.case-card { background: #fff; padding: 26px 24px; }

.case-label {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.case-amount {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 10px;
}

.case-desc { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.team-grid.team-grid--narrow { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.team-photo {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: end;
  padding: 12px;
}

.team-name { font-size: 16.5px; font-weight: 700; margin-top: 14px; color: var(--graphite); }
.team-role { font-size: 14px; color: var(--text-faint); margin-top: 3px; }

/* ---------- Testimonials ---------- */

.testimonials-section { background: var(--bg-warm); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-quote {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  text-wrap: pretty;
}

.testimonial-author { margin-top: auto; font-size: 14px; color: var(--text-faint); }

/* ---------- Breadcrumb / service page ---------- */

.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faintest);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--accent); }

.service-hero { border-bottom: 1px solid var(--border); background: #fff; }

.service-hero-inner { padding: 44px 24px 46px; }

.service-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 44px;
}

.page-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--graphite);
  text-wrap: balance;
}

.page-subtitle { font-size: 18px; line-height: 1.45; color: var(--text); margin: 0; }

.service-hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-hero-text p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

.service-hero-text .btn-primary { align-self: start; margin-top: 6px; padding: 12px 22px; font-size: 15px; }
.service-hero-text .btn-primary:hover { background: var(--graphite); color: #fff; }

.service-list-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 24px;
  color: var(--graphite);
}

.service-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-item { background: #fff; padding: 22px 24px; }

.service-item-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.service-item-num { font-family: var(--mono); font-size: 11.5px; color: var(--num-muted); }

.service-item-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--graphite);
  line-height: 1.25;
}

.service-item-desc {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--text-muted);
  padding-left: 26px;
  text-wrap: pretty;
}

/* ---------- CTA band (dark, bottom of service pages) ---------- */

.cta-band { background: var(--graphite); }

.cta-band-grid {
  padding: 44px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.cta-band-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.cta-band-desc { font-size: 15.5px; line-height: 1.55; color: var(--footer-text); max-width: 48ch; text-wrap: pretty; }

.cta-band-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: end;
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
}
.btn-cta:hover { background: var(--bg); color: var(--graphite); text-decoration: none; }

.phone-pill {
  border: 1px solid #55595E;
  color: #F1EEE9;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- About ---------- */

.about-hero { border-bottom: 1px solid var(--border); background: #fff; }
.about-hero-inner { padding: 44px 24px 48px; }
.about-hero .page-subtitle { margin: 0 0 32px; max-width: 60ch; }

.about-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.about-intro-grid p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Contacts ---------- */

.contacts-section { border-bottom: 1px solid var(--border); background: #fff; }
.contacts-inner { padding: 44px 24px 52px; }
.contacts-inner .page-title { margin-bottom: 32px; }

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-rows { display: flex; flex-direction: column; }

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: 1px solid var(--border); }

.contact-label { font-size: 14px; color: var(--text-faintest); }
.contact-value { font-size: 15.5px; color: var(--graphite); text-align: right; }

.map-placeholder {
  min-height: 300px;
  display: flex;
  align-items: end;
  padding: 14px;
}

/* ---------- Lead form ---------- */

.lead-section { background: var(--bg-warm); border-top: 1px solid var(--border); }
.lead-inner { padding: 52px 24px; }

.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}

.lead-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 12px;
  color: var(--graphite);
}

.lead-desc { font-size: 16.5px; line-height: 1.5; color: var(--text-muted); margin: 0; max-width: 44ch; }

.lead-form { display: flex; gap: 12px; flex-wrap: wrap; }

.lead-input {
  flex: 1 1 160px;
  padding: 14px 16px;
  border: 1px solid var(--border-input);
  background: #fff;
  font-size: 15.5px;
  color: var(--graphite);
}

.lead-submit {
  flex: 0 0 auto;
  padding: 14px 28px;
  background: var(--graphite);
  color: var(--bg);
  border: none;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
}
.lead-submit:hover { background: var(--accent); color: #fff; }

.lead-disclaimer { flex: 1 1 100%; font-size: 13px; color: var(--text-faintest); line-height: 1.5; }

.lead-success {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px 26px;
}

.lead-success-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 8px;
}

.lead-success-desc { font-size: 15px; line-height: 1.55; color: var(--text-muted); }

/* ---------- Footer ---------- */

.site-footer { background: var(--graphite); color: var(--footer-text); }

.footer-grid {
  padding: 46px 24px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}

.footer-brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand-desc { font-size: 14px; line-height: 1.6; max-width: 34ch; text-wrap: pretty; }

.footer-col-title {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faintest);
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a { color: var(--footer-link); }
.footer-links a:hover { color: var(--accent-dark); text-decoration: none; }

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  color: var(--footer-link);
}
.footer-contacts .muted { color: var(--text-faintest); }

.footer-bottom-wrap { padding: 0 24px 40px; }

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-faintest);
}

