/*
Theme Name: LawPoint Pro
Theme URI: https://example.com/lawpoint-pro
Author: OpenAI
Author URI: https://openai.com
Description: Премиальная одностраничная WordPress-тема для юридической практики по семейному, трудовому и наследственному праву.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: lawpoint-pro
*/

:root {
  --lp-bg: #f4efe8;
  --lp-surface: rgba(255, 251, 246, 0.84);
  --lp-surface-solid: #fffaf4;
  --lp-surface-dark: #17191f;
  --lp-text: #1f2430;
  --lp-text-soft: #5f6573;
  --lp-line: rgba(31, 36, 48, 0.1);
  --lp-gold: #b58447;
  --lp-gold-deep: #8e6330;
  --lp-gold-soft: #e4c69a;
  --lp-white: #ffffff;
  --lp-radius-lg: 32px;
  --lp-radius-md: 22px;
  --lp-radius-sm: 16px;
  --lp-shadow: 0 30px 80px rgba(20, 24, 33, 0.12);
  --lp-container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--lp-text);
  background:
    radial-gradient(circle at 15% 15%, rgba(181, 132, 71, 0.18), transparent 24%),
    radial-gradient(circle at 90% 5%, rgba(23, 25, 31, 0.07), transparent 20%),
    linear-gradient(180deg, #f8f2ea 0%, #efe7dc 100%);
}

body.admin-bar .lp-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lp-site {
  overflow: clip;
}

.lp-container {
  width: min(calc(100% - 32px), var(--lp-container));
  margin: 0 auto;
}

.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(248, 243, 236, 0.82);
  border-bottom: 1px solid rgba(31, 36, 48, 0.08);
}

.lp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  max-width: 260px;
  line-height: 0;
}

.lp-brand__logo {
  width: 60px;
  height: 60px;
  max-width: none;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 6px 14px rgba(23, 25, 79, 0.08));
}

.custom-logo {
  width: 60px;
  height: 60px;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: center;
}

.lp-brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  line-height: normal;
}

.lp-brand__name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: #202433;
}

.lp-brand__tag {
  color: var(--lp-gold-deep);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.1;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.lp-nav a {
  position: relative;
}

.lp-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--lp-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.lp-nav a:hover::after,
.lp-nav a:focus-visible::after {
  transform: scaleX(1);
}

.lp-header__contact {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lp-phone-group,
.lp-mobile-menu__contacts,
.lp-contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-phone {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.lp-mobile-menu__contacts {
  margin-bottom: 14px;
}

.lp-mobile-menu__contacts a,
.lp-contact-links a {
  width: fit-content;
}

.lp-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.lp-burger span,
.lp-burger::before,
.lp-burger::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--lp-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.lp-burger span {
  top: 23px;
}

.lp-burger[aria-expanded="true"]::before {
  top: 23px;
  transform: translateX(-50%) rotate(45deg);
}

.lp-burger[aria-expanded="true"] span {
  opacity: 0;
}

.lp-burger[aria-expanded="true"]::after {
  top: 23px;
  transform: translateX(-50%) rotate(-45deg);
}

.lp-burger::before {
  top: 16px;
}

.lp-burger::after {
  top: 30px;
}

.lp-mobile-menu {
  display: none;
  padding-bottom: 18px;
}

.lp-mobile-menu__panel {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 250, 243, 0.96);
  border: 1px solid rgba(31, 36, 48, 0.06);
  box-shadow: 0 24px 44px rgba(20, 24, 33, 0.08);
}

.lp-mobile-menu nav {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.lp-mobile-menu.is-open {
  display: block;
}

.lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lp-gold) 0%, #d1a46b 100%);
  color: var(--lp-white);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 36px rgba(181, 132, 71, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.lp-button:hover,
.lp-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(181, 132, 71, 0.26);
}

.lp-button--ghost {
  background: transparent;
  color: var(--lp-text);
  border-color: rgba(31, 36, 48, 0.12);
  box-shadow: none;
}

.lp-button--ghost:hover,
.lp-button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.72);
}

.lp-main {
  position: relative;
}

.lp-hero {
  padding: 82px 0 44px;
}

.lp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(181, 132, 71, 0.12);
  color: var(--lp-gold-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lp-hero h1,
.lp-section h2,
.lp-cta__title {
  margin: 0;
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.lp-hero h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.lp-lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--lp-text-soft);
  font-size: 1.08rem;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.lp-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.lp-metric,
.lp-panel,
.lp-form-card,
.lp-cta {
  border: 1px solid rgba(31, 36, 48, 0.08);
  box-shadow: var(--lp-shadow);
}

.lp-metric {
  padding: 20px;
  border-radius: var(--lp-radius-md);
  background: rgba(255, 251, 246, 0.8);
}

.lp-metric strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.8rem;
  line-height: 1;
}

.lp-hero-card {
  position: relative;
  min-height: 560px;
  padding: 32px;
  border-radius: var(--lp-radius-lg);
  background:
    linear-gradient(180deg, rgba(19, 22, 30, 0.96), rgba(31, 35, 46, 0.93)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)'%3E%3Cpath d='M100 80h400v440H100z'/%3E%3Cpath d='M150 130h300v340H150z'/%3E%3Cpath d='M200 180h200v240H200z'/%3E%3C/g%3E%3C/svg%3E") center/cover;
  color: #f8f2ea;
  overflow: hidden;
}

.lp-hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
}

.lp-hero-card > * {
  position: relative;
  z-index: 1;
}

.lp-hero-card__label {
  color: var(--lp-gold-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lp-hero-card__title {
  margin: 18px 0 14px;
  font-size: 2rem;
  line-height: 1.05;
}

.lp-hero-card__list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.lp-hero-card__list div {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.lp-hero-card__list strong {
  display: block;
  margin-bottom: 6px;
}

.lp-section {
  padding: 54px 0;
}

.lp-section__head {
  max-width: 760px;
  margin-bottom: 28px;
}

.lp-section h2 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
}

.lp-section__text {
  margin-top: 12px;
  color: var(--lp-text-soft);
}

.lp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lp-panel {
  padding: 30px;
  border-radius: var(--lp-radius-md);
  background: var(--lp-surface);
  backdrop-filter: blur(18px);
}

.lp-panel h3 {
  margin: 0 0 12px;
  font-size: 1.42rem;
  line-height: 1.12;
}

.lp-panel p {
  margin: 0;
  color: var(--lp-text-soft);
}

.lp-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.lp-list li {
  position: relative;
  padding-left: 20px;
  color: var(--lp-text-soft);
}

.lp-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-gold);
}

.lp-cta {
  padding: 24px 28px;
  border-radius: var(--lp-radius-lg);
  background: linear-gradient(135deg, #1a1d25 0%, #333948 100%);
  color: #f9f4ed;
}

.lp-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.lp-cta__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.08;
}

.lp-cta__text {
  margin-top: 8px;
  font-size: 0.98rem;
  color: rgba(249, 244, 237, 0.76);
}

.lp-cta .lp-button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(181, 132, 71, 0.2);
}

.lp-steps .lp-panel {
  position: relative;
  padding-top: 86px;
}

.lp-step-number {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(181, 132, 71, 0.14);
  color: var(--lp-gold-deep);
  font-weight: 700;
}

.lp-contact {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
}

.lp-contact-stack {
  display: grid;
  gap: 18px;
}

.lp-contact-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-gold-deep);
}

.lp-form-card {
  padding: 30px;
  border-radius: var(--lp-radius-lg);
  background: rgba(255, 251, 246, 0.88);
}

.lp-form-card h3 {
  margin: 0 0 12px;
  font-size: 1.72rem;
}

.lp-form-card p {
  margin: 0 0 18px;
  color: var(--lp-text-soft);
}

.lp-form {
  display: grid;
  gap: 14px;
}

.lp-form-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 36, 48, 0.08);
  overflow: hidden;
}

.lp-form-progress__bar {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--lp-gold) 0%, #d1a46b 100%);
  transition: width 0.22s ease;
}

.lp-form-step {
  display: none;
  gap: 14px;
}

.lp-form-step.is-active {
  display: grid;
}

.lp-form select {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(31, 36, 48, 0.12);
  border-radius: var(--lp-radius-sm);
  background: #fff;
  color: var(--lp-text);
}

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

.lp-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.lp-form input,
.lp-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(31, 36, 48, 0.12);
  border-radius: var(--lp-radius-sm);
  background: #fff;
  color: var(--lp-text);
}

.lp-form textarea {
  min-height: 150px;
  resize: vertical;
}

.lp-form__hint {
  color: var(--lp-text-soft);
  font-size: 0.92rem;
}

.lp-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.lp-alert--success {
  background: rgba(36, 116, 72, 0.12);
  color: #1b5d3a;
}

.lp-alert--error {
  background: rgba(150, 41, 41, 0.11);
  color: #8a2222;
}

.lp-footer {
  padding: 22px 0 42px;
  color: var(--lp-text-soft);
  font-size: 0.94rem;
}

.lp-footer__logo {
  width: 132px;
  height: auto;
  display: block;
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .lp-nav,
  .lp-header__contact .lp-button {
    display: none;
  }

  .lp-phone-group {
    display: none;
  }

  .lp-burger {
    display: inline-flex;
  }

  .lp-hero__grid,
  .lp-contact,
  .lp-cta__grid,
  .lp-grid-3 {
    grid-template-columns: 1fr;
  }

  .lp-hero-card {
    min-height: auto;
  }
}

@media (max-width: 782px) {
  body.admin-bar .lp-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .lp-header__inner {
    min-height: 68px;
  }

  .lp-brand {
    gap: 10px;
    max-width: 190px;
  }

  .lp-brand__logo {
    width: 48px;
    height: 48px;
  }

  .custom-logo {
    width: 48px;
    height: 48px;
  }

  .lp-brand__name {
    font-size: 0.92rem;
    letter-spacing: 0.1em;
  }

  .lp-brand__tag {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .lp-hero {
    padding-top: 54px;
  }

  .lp-metrics {
    grid-template-columns: 1fr;
  }

  .lp-panel,
  .lp-cta,
  .lp-form-card,
  .lp-hero-card {
    padding: 24px;
  }

  .lp-steps .lp-panel {
    padding-top: 78px;
  }
}
