/*
Theme Name: Лёгкий Патронаж Ногинск Child
Theme URI: https://example.com/
Description: Child-тема для сервиса «Лёгкий Патронаж Ногинск».
Author: Project Team
Version: 1.0.0
Text Domain: lpn
Template: twentytwentyfour
*/

:root {
  --lpn-blue: #2f6f96;
  --lpn-accent: #2f8f73;
  --lpn-bg: #f5f7fa;
  --lpn-surface: #ffffff;
  --lpn-border: #d9e3eb;
  --lpn-text: #213241;
  --lpn-muted: #5f7284;
  --lpn-danger: #9f3f3f;
  --lpn-shadow: 0 10px 28px rgba(26, 52, 72, 0.08);
  --lpn-radius: 14px;
  --lpn-space-1: 8px;
  --lpn-space-2: 16px;
  --lpn-space-3: 24px;
  --lpn-space-4: 32px;
  --lpn-space-5: 48px;
  --lpn-space-6: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--lpn-text);
  background: var(--lpn-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
button,
input,
select,
textarea,
summary {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.home .wp-block-post-title,
body.home .entry-title,
body.home h1.entry-title,
body.home .page-title,
body.home .wp-block-query-title,
body.home .entry-header,
body.home main > .wp-block-group:first-child h1,
body.home .wp-site-blocks main h1.wp-block-heading {
  display: none !important;
}

body.home h1:not(.lp-hero__title) {
  display: none !important;
}

* {
  box-sizing: border-box;
}

a {
  color: #245f86;
}

a:hover {
  color: #1f536f;
}

h1,
h2,
h3 {
  color: #1f2e3b;
  margin: 0 0 var(--lpn-space-2);
  line-height: 1.25;
}

h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

p {
  margin: 0 0 var(--lpn-space-2);
}

.lpn-text-limit {
  max-width: 760px;
}

.lpn-container {
  width: min(1400px, 100% - 48px);
  margin-inline: auto;
}

body.home .wp-site-blocks,
body.home .wp-site-blocks > * {
  max-width: 100% !important;
}

.lpn-page {
  padding-bottom: calc(var(--lpn-space-6) + 72px);
}

.lpn-main-content {
  padding-top: var(--lpn-space-4);
}

.lpn-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6edf3;
}

.lpn-header-inner {
  min-height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--lpn-space-2);
  flex-wrap: nowrap;
}

.lpn-logo {
  text-decoration: none;
  color: #1f4d6e;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  order: 2;
  justify-self: center;
  text-align: center;
  padding: 8px 14px;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(26, 52, 72, 0.08);
}

.lpn-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  min-width: 0;
  order: 1;
  justify-self: start;
  overflow-x: auto;
}

.lpn-nav a {
  text-decoration: none;
  color: #34576f;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.lpn-nav a:hover,
.lpn-nav a.is-active {
  color: #245f86;
  border-color: #245f86;
}

.lpn-header-actions {
  display: flex;
  align-items: center;
  gap: var(--lpn-space-1);
  flex-wrap: nowrap;
  order: 3;
  justify-self: end;
}

.lpn-phone {
  text-decoration: none;
  font-weight: 700;
  color: #294c64;
  white-space: nowrap;
}

.lpn-section {
  background: var(--lpn-surface);
  border: 1px solid var(--lpn-border);
  border-radius: var(--lpn-radius);
  box-shadow: var(--lpn-shadow);
  padding: var(--lpn-space-4);
  margin-bottom: var(--lpn-space-3);
}

.lp-hero {
  background: linear-gradient(145deg, #3d7397, #3f8b77);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lpn-space-3);
  align-items: center;
}

.lp-hero h1,
.lp-hero h2,
.lp-hero h3,
.lp-hero p {
  color: #ffffff;
}

.lp-hero__title {
  font-size: clamp(32px, 3.2vw, 42px);
  line-height: 1.18;
  margin-bottom: 12px;
}

.lp-hero__text {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.lp-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.lp-hero__badges {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lp-hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #eaf6fb;
}

.lpn-eyebrow {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
  font-weight: 600;
  color: #d8edf7;
  margin-bottom: var(--lpn-space-1);
}

.lpn-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lpn-space-1);
  margin: var(--lpn-space-2) 0;
}

.lpn-trust-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 13px;
  padding: 6px 10px;
}

.lpn-chip-icon {
  font-style: normal;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  line-height: 1;
}

.lpn-hero-media {
  min-height: 300px;
}

.lp-hero__media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
}

.lpn-hero-benefits {
  margin: var(--lpn-space-2) 0 0;
  padding-left: 20px;
}

.lpn-hero-benefits li {
  margin-bottom: 8px;
  color: #e6f4fb;
}

.lpn-hero-cta,
.lpn-doc-actions {
  display: flex;
  gap: var(--lpn-space-1);
  flex-wrap: wrap;
}

.lpn-grid {
  display: grid;
  gap: var(--lpn-space-2);
}

.lpn-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.lpn-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lpn-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.lpn-grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.lpn-grid-middle {
  align-items: center;
}

.lpn-step-card,
.lpn-service-card,
.lpn-feature-item,
.lpn-review-card,
.lpn-note-card,
.lpn-price-card {
  background: #fff;
  border: 1px solid var(--lpn-border);
  border-radius: 12px;
  padding: var(--lpn-space-2);
}

.lpn-step-card strong {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ebf1f6;
  color: #254d68;
  margin-bottom: var(--lpn-space-1);
}

.lpn-price-card-featured {
  border-color: #bfd7d0;
  background: #f7fcfa;
}

.lpn-price-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #1f6e57;
  background: #e3f3ed;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.lpn-price {
  font-size: 30px;
  line-height: 1.15;
  color: #1e5d83;
  margin-bottom: 8px;
}

.lpn-note-card ul,
.lpn-list-tight,
.lpn-two-col-list ul {
  margin: 0;
  padding-left: 18px;
}

.lpn-note-card li,
.lpn-list-tight li,
.lpn-two-col-list li {
  margin-bottom: 8px;
}

.lpn-two-col-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--lpn-space-2);
}

.lpn-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #e7f3ee;
  color: #1f6c55;
  font-weight: 700;
}

.lpn-feature-item p {
  margin: 6px 0 0;
}

.lpn-subtitle {
  margin-top: var(--lpn-space-4);
}

.lpn-review-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.lpn-review-card h3 {
  margin-top: 10px;
  margin-bottom: 6px;
}

.lpn-gallery img,
.lpn-photo-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--lpn-border);
  aspect-ratio: 14 / 10;
  object-fit: cover;
}

.lpn-map-wrap {
  border: 1px solid var(--lpn-border);
  border-radius: 12px;
  overflow: hidden;
}

.lpn-map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.lpn-faq-list {
  display: grid;
  gap: 10px;
}

.lpn-faq-list details {
  border: 1px solid var(--lpn-border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.lpn-faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.lpn-faq-list p {
  margin-top: 10px;
  margin-bottom: 0;
  color: #385063;
}

.lpn-final-cta {
  text-align: center;
}

.lpn-final-cta .lpn-hero-cta {
  justify-content: center;
}

.lpn-pill {
  display: inline-block;
  border-radius: 999px;
  background: #edf3f7;
  color: #355267;
  font-size: 13px;
  padding: 6px 10px;
  margin: 2px;
}

.lpn-form {
  background: #fff;
  border: 1px solid var(--lpn-border);
  border-radius: 12px;
  padding: var(--lpn-space-2);
}

.lpn-wizard-progress {
  margin-bottom: var(--lpn-space-2);
}

.lpn-wizard-progress p {
  margin: 0 0 8px;
  font-weight: 600;
}

.lpn-wizard-progressbar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e7edf3;
  overflow: hidden;
}

#lpn_wizard_progress_fill {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #2f6f96, #2f8f73);
  transition: width .25s ease;
}

.lpn-wizard-form {
  position: relative;
  padding-bottom: 88px;
}

.lpn-wizard-step {
  display: none;
}

.lpn-wizard-step.is-active {
  display: block;
}

.lpn-wizard-step h3 {
  margin-bottom: 8px;
}

.lpn-select-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 12px;
}

.lpn-hours-grid {
  grid-template-columns: repeat(4, minmax(64px, 1fr));
}

.lpn-select-btn {
  min-height: 48px;
  border: 1px solid #c6d6e3;
  border-radius: 12px;
  background: #fff;
  color: #2a4f68;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.lpn-select-btn:hover {
  border-color: #7ba0ba;
}

.lpn-select-btn.is-active {
  border-color: #2f8f73;
  background: #e9f5f0;
  color: #245f4b;
}

.lpn-hours-title {
  margin-top: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}

.lpn-wizard-nav {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.lpn-wizard-nav .lpn-btn {
  min-width: 140px;
}

.lpn-summary-card {
  border: 1px solid var(--lpn-border);
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px;
}

.lpn-summary-card p {
  margin-bottom: 8px;
}

.lpn-wizard-price-float {
  position: sticky;
  bottom: 8px;
  z-index: 5;
  margin-top: 14px;
  border: 1px solid #d2dee8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lpn-wizard-price-float strong {
  font-size: 20px;
  color: #245f4b;
}

.lpn-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.lpn-form input,
.lpn-form select,
.lpn-form textarea {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 12px;
  border: 1px solid #c9d6e1;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
}

.lpn-form input:focus,
.lpn-form select:focus,
.lpn-form textarea:focus {
  outline: none;
  border-color: #5e88a8;
  box-shadow: 0 0 0 4px rgba(47, 111, 150, 0.14);
}

.lpn-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.lpn-btn-primary {
  background: var(--lpn-accent);
  border-color: var(--lpn-accent);
  color: #fff;
}

.lpn-btn-primary:hover {
  background: #297d65;
  border-color: #297d65;
  color: #fff;
}

.lpn-btn-secondary {
  background: transparent;
  border-color: #95b2c6;
  color: #2e5269;
}

.lpn-btn-secondary:hover {
  background: #edf3f7;
}

.lpn-btn-ghost {
  background: transparent;
  border-color: #c9d6e1;
  color: #2b526b;
}

.lpn-btn-ghost:hover {
  background: #edf3f7;
}

#lpn_booking-form .lpn-btn {
  width: 100%;
}

.lpn-booking-note {
  color: #7a3b3b;
  font-weight: 600;
}

.lpn-price-total {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: #225f49;
}

.lpn-muted {
  color: var(--lpn-muted);
  font-size: 14px;
}

.lpn-status {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
}

.lpn-status-paid { background: #e1f5ec; color: #1f6d53; }
.lpn-status-pending { background: #fff4d8; color: #7a5a0a; }
.lpn-status-failed { background: #fde8e8; color: #8f3333; }

.lpn-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}

.lpn-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lpn-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(245, 247, 250, 0.96);
  border-top: 1px solid #d9e3eb;
}

.lpn-mobile-cta {
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.lpn-mobile-cta .lpn-btn {
  flex: 1;
}

@media (max-width: 1024px) {
  .lpn-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
    display: flex;
    grid-template-columns: none;
  }

  .lpn-logo {
    order: 1;
    justify-self: auto;
    box-shadow: none;
    border-radius: 10px;
  }

  .lpn-nav {
    order: 2;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    padding-bottom: 2px;
  }

  .lpn-header-actions {
    order: 3;
    width: auto;
    flex-wrap: nowrap;
  }

  .lpn-hero {
    grid-template-columns: 1fr;
  }

  .lp-hero {
    grid-template-columns: 1fr;
  }

  .lp-hero__media {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .lpn-container {
    width: min(1240px, 100% - 32px);
  }

  .lpn-main-content {
    padding-top: var(--lpn-space-3);
  }

  .lpn-section {
    padding: var(--lpn-space-3);
  }

  .lpn-hero {
    padding: var(--lpn-space-3);
  }

  .lp-hero {
    padding: var(--lpn-space-3);
  }

  .lp-hero__badges {
    grid-template-columns: 1fr;
  }

  .lpn-price {
    font-size: 26px;
  }

  .lpn-map-wrap iframe {
    min-height: 260px;
  }

  .lpn-mobile-cta {
    display: flex;
  }

  .lpn-wizard-form {
    padding-bottom: 92px;
  }

  .lpn-select-grid {
    grid-template-columns: 1fr;
  }

  .lpn-hours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lpn-wizard-step {
    min-height: 58vh;
  }
}

@media (max-width: 480px) {
  .lpn-container {
    width: min(1240px, 100% - 24px);
  }

  body {
    font-size: 16px;
    line-height: 1.55;
  }

  h1 {
    font-size: clamp(25px, 8vw, 32px);
  }

  h2 {
    font-size: 24px;
  }

  .lpn-section,
  .lpn-hero,
  .lp-hero {
    padding: var(--lpn-space-2);
  }

  .lpn-phone {
    width: auto;
    text-align: left;
  }

  .lpn-header-actions .lpn-btn {
    width: 100%;
  }

  .lpn-hero-benefits {
    font-size: 16px;
  }

  .lp-hero__title {
    font-size: clamp(27px, 7vw, 34px);
  }

  .lp-hero__text {
    font-size: 16px;
  }

  .lpn-nav {
    gap: 10px;
  }

  .lpn-nav a {
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .lpn-header-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

  .lpn-logo {
    font-size: 17px;
  }

  .lpn-nav {
    order: 3;
    width: 100%;
    padding-bottom: 4px;
  }

  .lpn-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .lpn-phone {
    grid-column: 1 / -1;
    font-size: 15px;
  }

  .lpn-header-actions .lpn-btn {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
    padding: 10px 12px;
  }

  .lpn-hero h1 {
    font-size: clamp(24px, 8.2vw, 30px);
  }
}

@media (max-width: 360px) {
  .lpn-container {
    width: min(1240px, 100% - 20px);
  }

  .lpn-nav a {
    font-size: 12.5px;
  }

  .lpn-header-actions {
    grid-template-columns: 1fr;
  }

  .lpn-phone {
    font-size: 14px;
  }

  .lpn-header-actions .lpn-btn {
    font-size: 14px;
  }
}
