/* Capital Legal — Прямая линия адвоката
   Namespace: .cl-line. Палитра адаптирована под CSS capitallegal.ru: #AA645A, #F7F3F1, #FBF8F7, #E8DEDB, #111111. */

.cl-line {
  --cl-bg: #ffffff;
  --cl-bg-warm: #f7f3f1;
  --cl-card: #ffffff;
  --cl-card-soft: #fbf8f7;
  --cl-text: #111111;
  --cl-muted: #4a4a4a;
  --cl-faint: #6b6b6b;
  --cl-accent: #aa645a;
  --cl-accent-hover: #8f4f47;
  --cl-border: #e8dedb;
  --cl-dark: #111111;
  --cl-dark-2: #1d1b1b;
  --cl-gold-soft: #d7b98f;
  --cl-radius-lg: 30px;
  --cl-radius-md: 18px;
  --cl-radius-sm: 10px;
  --cl-shadow: 0 26px 70px rgba(17, 17, 17, 0.14);
  --cl-shadow-dark: 0 24px 70px rgba(0, 0, 0, 0.36);
  background: var(--cl-bg);
  color: var(--cl-text);
  font-family: 'Roboto Flex', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
}

.cl-line *,
.cl-line *::before,
.cl-line *::after {
  box-sizing: border-box;
}

.cl-line a {
  color: inherit;
}

.cl-line-container {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.cl-line h1,
.cl-line h2,
.cl-line h3,
.cl-line p {
  margin-top: 0;
}

.cl-line h1 {
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 650;
  margin-bottom: 28px;
}

.cl-line h2 {
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 650;
  margin-bottom: 24px;
}

.cl-line h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin-bottom: 12px;
}

.cl-line p {
  color: var(--cl-muted);
  font-size: 17px;
  line-height: 1.62;
  margin-bottom: 16px;
}

.cl-line [data-line-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: transform, opacity;
}

.cl-line [data-line-animate].is-visible {
  opacity: 1;
  transform: none;
}

.cl-line-brand {
  color: var(--cl-accent);
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.cl-line-kicker,
.cl-line-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--cl-accent);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 18px;
}

.cl-line-badge::before,
.cl-line-kicker::before {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.cl-line-badge--dark {
  color: var(--cl-gold-soft);
}

.cl-line-lead {
  font-size: clamp(22px, 3vw, 36px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.86) !important;
  margin-bottom: 28px !important;
}

.cl-line-note {
  font-size: 15px !important;
  color: var(--cl-faint) !important;
}

.cl-line-small,
.cl-line-micro,
.cl-line-confidential {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.cl-line-micro {
  color: rgba(255, 255, 255, 0.68) !important;
}

.cl-line-confidential {
  color: rgba(255, 255, 255, 0.82) !important;
  padding-left: 16px;
  border-left: 2px solid rgba(215, 185, 143, 0.75);
}

/* Buttons */
.cl-line-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0 20px;
}

.cl-line-actions--center {
  justify-content: center;
}

.cl-line-btn,
.cl-line-save {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.cl-line-btn {
  padding: 18px 28px;
  color: #ffffff;
  background: var(--cl-accent);
  border: 1px solid var(--cl-accent);
  box-shadow: 0 14px 34px rgba(170, 100, 90, 0.36);
}

.cl-line-btn:hover,
.cl-line-btn:focus-visible {
  background: var(--cl-accent-hover);
  border-color: var(--cl-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(143, 79, 71, 0.38);
}

.cl-line-btn--dark {
  color: #ffffff;
  background: var(--cl-dark);
  border-color: var(--cl-dark);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.18);
}

.cl-line-btn--dark:hover,
.cl-line-btn--dark:focus-visible {
  background: var(--cl-accent);
  border-color: var(--cl-accent);
}

.cl-line-btn__icon {
  font-size: 17px;
  line-height: 1;
}

.cl-line-save {
  padding: 17px 22px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cl-line-save:hover,
.cl-line-save:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cl-line-save--light {
  color: rgba(255, 255, 255, 0.86);
}

/* Hero */
.cl-line-hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(110px, 14vw, 170px) 0 92px;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 18%, rgba(170, 100, 90, 0.36), transparent 34%),
    linear-gradient(135deg, #111111 0%, #1b1818 54%, #2a201f 100%);
}

.cl-line-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%);
}

.cl-line-hero__glow {
  position: absolute;
  right: -180px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(170, 100, 90, 0.28);
  filter: blur(80px);
}

.cl-line-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.66fr);
  gap: 64px;
  align-items: center;
}

.cl-line-hero__content p:not(.cl-line-lead):not(.cl-line-micro):not(.cl-line-confidential) {
  color: rgba(255, 255, 255, 0.74);
  max-width: 820px;
}

.cl-line-hero__people {
  display: grid;
  gap: 22px;
}

.cl-line-person {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  border-radius: var(--cl-radius-lg);
  box-shadow: var(--cl-shadow-dark);
}

.cl-line-person__photo-wrap,
.cl-line-lawyer__photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(170,100,90,.32), rgba(255,255,255,.08));
}

.cl-line-person__photo-wrap {
  width: 118px;
  height: 144px;
  border-radius: 22px;
}

.cl-line-person__photo-wrap img,
.cl-line-lawyer__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cl-line-person__photo-wrap.is-empty::after,
.cl-line-lawyer__photo.is-empty::after {
  content: 'Фото';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.cl-line-person h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cl-line-person p {
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: 14px;
  line-height: 1.45;
}

/* Sections */
.cl-line-section {
  padding: clamp(78px, 9vw, 128px) 0;
  background: var(--cl-bg);
}

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

.cl-line-section--dark,
.cl-line-section--confidential,
.cl-line-final {
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 16%, rgba(170, 100, 90, 0.26), transparent 35%),
    linear-gradient(135deg, #111111 0%, #1e1a1a 100%);
}

.cl-line-section--dark .cl-line-heading h2,
.cl-line-section--confidential h2,
.cl-line-final h2 {
  color: #ffffff;
}

.cl-line-section--dark p,
.cl-line-section--confidential p,
.cl-line-final p {
  color: rgba(255,255,255,.74);
}

.cl-line-heading {
  max-width: 880px;
  margin-bottom: 48px;
}

.cl-line-heading--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cl-line-heading--center .cl-line-badge {
  margin-left: auto;
  margin-right: auto;
}

.cl-line-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cl-line-card-grid--five .cl-line-card:nth-child(4),
.cl-line-card-grid--five .cl-line-card:nth-child(5) {
  grid-column: span 1;
}

.cl-line-card,
.cl-line-situation,
.cl-line-mini,
.cl-line-direction {
  position: relative;
  min-height: 100%;
  padding: 28px;
  background: var(--cl-card);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-md);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.cl-line-card:hover,
.cl-line-situation:hover,
.cl-line-mini:hover,
.cl-line-direction:hover {
  transform: translateY(-4px);
  border-color: rgba(170, 100, 90, 0.42);
  box-shadow: var(--cl-shadow);
}

.cl-line-card__mark {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(170,100,90,.18), rgba(170,100,90,.04)),
    var(--cl-card-soft);
  border: 1px solid rgba(170, 100, 90, 0.24);
}

.cl-line-card__mark::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  margin: 13px;
  border-radius: 50%;
  background: var(--cl-accent);
  box-shadow: 0 0 0 6px rgba(170,100,90,.13);
}

.cl-line-repeat {
  margin-top: 42px;
  display: flex;
  justify-content: center;
}

.cl-line-repeat--dark .cl-line-btn {
  background: var(--cl-accent);
  border-color: var(--cl-accent);
}

/* Situations */
.cl-line-situations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cl-line-situation {
  padding-left: 34px;
}

.cl-line-situation::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cl-accent), rgba(170,100,90,.08));
}

/* Steps */
.cl-line-steps {
  display: grid;
  gap: 18px;
}

.cl-line-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 30px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--cl-radius-md);
  backdrop-filter: blur(18px);
}

.cl-line-step > span {
  color: var(--cl-gold-soft);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.cl-line-step h3 {
  color: #ffffff;
  margin-bottom: 8px;
}

.cl-line-step p {
  margin: 0;
  color: rgba(255,255,255,.66);
}

/* Lawyers */
.cl-line-lawyers {
  display: grid;
  gap: 28px;
}

.cl-line-lawyer {
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-lg);
  box-shadow: 0 16px 50px rgba(17,17,17,.06);
}

.cl-line-lawyer__photo {
  min-height: 420px;
}

.cl-line-lawyer__body {
  padding: 42px;
}

.cl-line-lawyer__role {
  color: var(--cl-accent) !important;
  font-weight: 650;
}

.cl-line-lawyer ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cl-line-lawyer li {
  position: relative;
  padding-left: 26px;
  color: var(--cl-muted);
  line-height: 1.4;
}

.cl-line-lawyer li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cl-accent);
}

/* Split */
.cl-line-split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.cl-line-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cl-line-mini:last-child {
  grid-column: 1 / -1;
}

.cl-line-directions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cl-line-direction {
  background: var(--cl-card-soft);
}

/* Confidential + final */
.cl-line-section--confidential {
  padding: 96px 0;
}

.cl-line-confidential-box {
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--cl-radius-lg);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}

.cl-line-confidential-box h2,
.cl-line-final h2 {
  max-width: 820px;
}

.cl-line-confidential-box p,
.cl-line-final p {
  max-width: 820px;
}

.cl-line-final {
  padding: clamp(86px, 10vw, 138px) 0;
  text-align: center;
}

.cl-line-final .cl-line-badge,
.cl-line-final h2,
.cl-line-final p {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.cl-line-footer {
  padding: 48px 0 54px;
  color: #ffffff;
  background: #0f0e0e;
}

.cl-line-footer p {
  color: rgba(255,255,255,.66);
}

.cl-line-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.cl-line-footer__links {
  display: grid;
  gap: 12px;
  min-width: 280px;
}

.cl-line-footer__links a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 14px;
}

.cl-line-footer__links a:hover {
  color: #ffffff;
}

.cl-line-footer__phone,
.cl-line-footer__micro {
  font-size: 13px !important;
}

.cl-line-footer__micro {
  margin: 24px 0 0;
  max-width: 920px;
}

/* Sticky mobile CTA */
.cl-line-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.9);
  border-top: 1px solid var(--cl-border);
  backdrop-filter: blur(18px);
}

.cl-line-sticky__btn {
  width: 100%;
  min-height: 54px;
}

/* Unavailable */
.cl-line-unavailable {
  min-height: 70vh;
  display: grid;
  align-items: center;
  padding: 120px 0;
  background: var(--cl-bg-warm);
}

.cl-line-unavailable h1 {
  color: var(--cl-text);
  max-width: 860px;
}

.cl-line-unavailable p {
  max-width: 680px;
}

@media (max-width: 1120px) {
  .cl-line-hero__grid,
  .cl-line-split {
    grid-template-columns: 1fr;
  }

  .cl-line-hero__people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cl-line-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cl-line-container {
    width: min(100% - 32px, 1240px);
  }

  .cl-line {
    padding-bottom: 76px;
  }

  .cl-line h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .cl-line h2 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .cl-line p {
    font-size: 16px;
  }

  .cl-line-hero {
    padding: 104px 0 68px;
  }

  .cl-line-hero__grid,
  .cl-line-hero__people,
  .cl-line-card-grid,
  .cl-line-situations,
  .cl-line-directions,
  .cl-line-mini-grid {
    grid-template-columns: 1fr;
  }

  .cl-line-person {
    grid-template-columns: 92px 1fr;
    border-radius: 22px;
  }

  .cl-line-person__photo-wrap {
    width: 92px;
    height: 112px;
  }

  .cl-line-lawyer {
    grid-template-columns: 1fr;
  }

  .cl-line-lawyer__photo {
    min-height: 360px;
  }

  .cl-line-lawyer__body {
    padding: 28px;
  }

  .cl-line-step {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .cl-line-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cl-line-btn,
  .cl-line-save {
    width: 100%;
  }

  .cl-line-footer__grid {
    grid-template-columns: 1fr;
  }

  .cl-line-sticky {
    display: block;
  }
}

@media (max-width: 480px) {
  .cl-line-section {
    padding: 68px 0;
  }

  .cl-line-card,
  .cl-line-situation,
  .cl-line-mini,
  .cl-line-direction {
    padding: 22px;
    border-radius: 16px;
  }

  .cl-line-heading {
    margin-bottom: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-line [data-line-animate],
  .cl-line-btn,
  .cl-line-save,
  .cl-line-card,
  .cl-line-situation,
  .cl-line-mini,
  .cl-line-direction {
    transition: none !important;
  }
}
