/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: May 07 2026 | 10:33:51 */
/* =====================================================
   ШКОЛА ДЕТЕКТИВОВ ЗДОРОВОГО ПИТАНИЯ — Landing Page
   Paste into: WordPress › Appearance › Customize › Additional CSS
   All rules are scoped to .landing-detective so they
   won't bleed into other pages.
   ===================================================== */

/* --- Design tokens (aligned with Twenty Twenty-Four) --- */
.landing-detective {
  --lp-dark:    #111111;
  --lp-white:   #ffffff;
  --lp-base:    #f9f9f9;
  --lp-cream:   #faf5f0;
  --lp-text:    #2a2a2a;
  --lp-muted:   #636363;
  --lp-beige:   #cfcabe;
  --lp-tan:     #c2a990;
  --lp-orange:  #d8613c;   /* primary CTA / accent */
  --lp-sage:    #b1c5a4;
  --lp-radius:  0.5rem;
  --lp-section: clamp(3.5rem, 7vw, 6rem);
  --lp-gutter:  clamp(1.25rem, 5vw, 2.5rem);

  /* --- Animation tuning --- */
  --lp-anim-rise:  48px;   /* vertical travel of the rise animation */
  --lp-anim-dur:   0.65s;  /* duration (hero load + scroll animations) */
  --lp-anim-start: 5%;     /* scroll: % of element in viewport when animation begins */
  --lp-anim-end:   62%;    /* scroll: % of element in viewport when animation ends   */
}

/* =====================================================
   OUTER WRAPPER
   ===================================================== */

.landing-detective.wp-block-group {
  padding: 0 !important;
}

/* =====================================================
   SECTION STRUCTURE
   Every direct-child Group = one section.
   Non-developers add new Groups here, styling is automatic.
   ===================================================== */

.landing-detective > .wp-block-group {
  padding-top:    var(--lp-section);
  padding-bottom: var(--lp-section);
  padding-left:   var(--lp-gutter);
  padding-right:  var(--lp-gutter);
  /*width: 100%;*/
  /*max-width: 100% !important;*/
  box-sizing: border-box;
}

/* Constrained inner column (WP adds this automatically
   when you choose "Constrained" layout on the block) */
.landing-detective > .wp-block-group > .wp-block-group__inner-container {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Alternating section backgrounds */
.landing-detective > .wp-block-group:nth-child(odd)  { background-color: var(--lp-white); }
.landing-detective > .wp-block-group:nth-child(even) { background-color: var(--lp-base);  }

/* =====================================================
   HERO — first section, always dark
   ===================================================== */

.landing-detective > .wp-block-group:first-child {
  background-color: var(--lp-dark) !important;
  padding-top:    clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(5rem, 12vw, 9rem);
  text-align: center;
}

.landing-detective > .wp-block-group:first-child .wp-block-group__inner-container {
  max-width: 760px;
}

.landing-detective > .wp-block-group:first-child h1 {
  color: var(--lp-white);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

/* Eyebrow line (first paragraph before the H1) */
.landing-detective > .wp-block-group:first-child > .wp-block-group__inner-container > p:first-child,
.landing-detective > .wp-block-group:first-child p.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lp-tan);
  margin-bottom: 0.75rem;
}

.landing-detective > .wp-block-group:first-child p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: none;
}

/* =====================================================
   FINAL CTA — last section, always dark
   ===================================================== */

.landing-detective > .wp-block-group:last-child {
  background-color: var(--lp-dark) !important;
  text-align: center;
}

.landing-detective > .wp-block-group:last-child h2 { color: var(--lp-white); }
.landing-detective > .wp-block-group:last-child p  { color: rgba(255,255,255,0.75); max-width: none; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

.landing-detective h1,
.landing-detective h2 {
  font-family: Cardo, Georgia, serif;
  color: var(--lp-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.landing-detective h2.wp-block-heading {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 1.2rem;
}

.landing-detective h3.wp-block-heading {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--lp-dark);
  margin-bottom: 0.75rem;
}

/* Eyebrow / section label: any H4 or first H3 in a section */
.landing-detective h4.wp-block-heading,
.landing-detective > .wp-block-group .wp-block-group__inner-container > h3.wp-block-heading:first-child {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lp-orange);
  margin-bottom: 0.5rem;
}

.landing-detective p {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.72;
  color: var(--lp-text);
}

.landing-detective strong { color: var(--lp-dark); }

/* =====================================================
   LISTS — auto-styled, no class needed
   ===================================================== */

.landing-detective .wp-block-list,
.landing-detective ul:not([class*="wp-block"]),
.landing-detective ol:not([class*="wp-block"]) {
  padding-left: 0;
  list-style: none;
}

.landing-detective .wp-block-list li,
.landing-detective ul:not([class*="wp-block"]) li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.65;
  color: var(--lp-text);
}

/* Orange dot bullet */
.landing-detective .wp-block-list li::before,
.landing-detective ul:not([class*="wp-block"]) li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--lp-orange);
}

/* =====================================================
   BUTTONS — CTA style applied automatically
   ===================================================== */

.landing-detective .wp-block-button__link,
.landing-detective .wp-element-button {
  background-color: var(--lp-orange) !important;
  color: var(--lp-white) !important;
  border: none !important;
  border-radius: var(--lp-radius) !important;
  padding: 1rem 2.2rem !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.landing-detective .wp-block-button__link:hover {
  background-color: #c0502a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(216, 97, 60, 0.4);
}

.landing-detective .wp-block-buttons {
  margin-top: 2rem;
}

/* Center buttons in centered sections */
.landing-detective > .wp-block-group:first-child .wp-block-buttons,
.landing-detective > .wp-block-group:last-child .wp-block-buttons {
  justify-content: center;
}

/* Outline / secondary button variant */
.landing-detective .wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  border: 2px solid var(--lp-orange) !important;
  color: var(--lp-orange) !important;
}
.landing-detective .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--lp-orange) !important;
  color: var(--lp-white) !important;
}

/* =====================================================
   SEPARATOR
   ===================================================== */

.landing-detective hr.wp-block-separator {
  border: none;
  border-top: 2px solid var(--lp-beige);
  margin: 0 auto 1.5rem;
  max-width: 60px;
}

/* =====================================================
   COLUMNS — auto card styling
   (applies to bonuses, pricing, any multi-col layout)
   ===================================================== */

.landing-detective .wp-block-columns {
  gap: 1.5rem;
  align-items: stretch;
}

.landing-detective .wp-block-column {
  background: var(--lp-white);
  border: 1px solid var(--lp-beige);
  border-radius: var(--lp-radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.landing-detective .wp-block-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
}

/* Highlight middle column (pricing "best value") */
.landing-detective .wp-block-columns .wp-block-column:nth-child(2) {
  border-color: var(--lp-orange);
  border-width: 2px;
  box-shadow: 0 6px 28px rgba(216, 97, 60, 0.14);
}

/* Push CTA button to bottom of column */
.landing-detective .wp-block-column .wp-block-buttons {
  margin-top: auto;
  padding-top: 1.5rem;
}

/* Price number styling */
.landing-detective .wp-block-column h3.wp-block-heading:first-child {
  font-size: 1rem;
  color: var(--lp-muted);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

/* =====================================================
   QUOTES / TESTIMONIALS
   ===================================================== */

.landing-detective .wp-block-quote {
  border-left: 3px solid var(--lp-orange);
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  margin: 1.25rem 0;
  background: var(--lp-white);
  border-radius: 0 var(--lp-radius) var(--lp-radius) 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.landing-detective .wp-block-quote p {
  font-style: italic;
  color: var(--lp-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: none;
  margin-bottom: 0;
}

.landing-detective .wp-block-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--lp-tan);
  font-style: normal;
  font-weight: 600;
}

/* Testimonials in columns — remove the card + quote double styling */
.landing-detective .wp-block-column .wp-block-quote {
  background: transparent;
  box-shadow: none;
  padding-left: 1.25rem;
}

/* =====================================================
   FAQ / DETAILS ACCORDION
   ===================================================== */

.landing-detective .wp-block-details {
  border: 1px solid var(--lp-beige);
  border-radius: var(--lp-radius);
  padding: 0;
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
  background: var(--lp-white);
}

.landing-detective .wp-block-details[open] {
  border-color: var(--lp-tan);
}

.landing-detective .wp-block-details summary {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--lp-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.landing-detective .wp-block-details summary::-webkit-details-marker { display: none; }

.landing-detective .wp-block-details summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  color: var(--lp-orange);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.22s ease;
}

.landing-detective .wp-block-details[open] summary::after {
  transform: rotate(45deg);
}

.landing-detective .wp-block-details > p,
.landing-detective .wp-block-details .wp-block-paragraph {
  padding: 0 1.5rem 1.25rem;
  color: var(--lp-muted);
  font-size: 0.98rem;
  margin: 0;
}

/* =====================================================
   MEDIA TEXT (author bio block)
   ===================================================== */

.landing-detective .wp-block-media-text {
  gap: 3rem;
  align-items: center;
  background: transparent !important;
}

.landing-detective .wp-block-media-text .wp-block-media-text__media img {
  border-radius: 50%;
  object-fit: cover;
  width: 180px;
  height: 180px;
}

/* =====================================================
   IMAGES
   ===================================================== */

.landing-detective .wp-block-image img {
  border-radius: var(--lp-radius);
  max-width: 100%;
  height: auto;
  display: block;
}

/* Rounded portrait variant */
.landing-detective .wp-block-image.is-style-rounded img,
.landing-detective .wp-block-column .wp-block-image img {
  border-radius: 50%;
  width: 90px;
  height: 90px;
  object-fit: cover;
  margin: 0 auto 1rem;
}

/* =====================================================
   WEEK / CURRICULUM numbering
   ===================================================== */

.landing-detective .wp-block-details summary em {
  color: var(--lp-orange);
  font-style: normal;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

/* Hero child elements fade in on load — two selectors to handle WP 6.x with or without __inner-container */
.landing-detective > .wp-block-group:first-child > :not(.wp-block-group__inner-container),
.landing-detective > .wp-block-group:first-child > .wp-block-group__inner-container > * {
  animation: lp-rise var(--lp-anim-dur) ease both;
}
.landing-detective > .wp-block-group:first-child > :nth-child(2):not(.wp-block-group__inner-container),
.landing-detective > .wp-block-group:first-child > .wp-block-group__inner-container > :nth-child(2) { animation-delay: 0.1s; }
.landing-detective > .wp-block-group:first-child > :nth-child(3):not(.wp-block-group__inner-container),
.landing-detective > .wp-block-group:first-child > .wp-block-group__inner-container > :nth-child(3) { animation-delay: 0.2s; }
.landing-detective > .wp-block-group:first-child > :nth-child(4):not(.wp-block-group__inner-container),
.landing-detective > .wp-block-group:first-child > .wp-block-group__inner-container > :nth-child(4) { animation-delay: 0.32s; }

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(var(--lp-anim-rise)); }
  to   { opacity: 1; transform: translateY(0);                   }
}

/* Scroll-driven entrance for all non-hero sections
   (Chrome 115+, Firefox 128+, degrades gracefully in older browsers) */
@supports (animation-timeline: view()) {
  .landing-detective > .wp-block-group:not(:first-child):not(:last-child) {
    animation: lp-rise var(--lp-anim-dur) ease both;
    animation-timeline: view();
    animation-range: entry var(--lp-anim-start) entry var(--lp-anim-end);
  }

  .landing-detective .wp-block-column {
    animation: lp-rise var(--lp-anim-dur) ease both;
    animation-timeline: view();
    animation-range: entry var(--lp-anim-start) entry var(--lp-anim-end);
  }

  .landing-detective .wp-block-quote {
    animation: lp-rise var(--lp-anim-dur) ease both;
    animation-timeline: view();
    animation-range: entry var(--lp-anim-start) entry var(--lp-anim-end);
  }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
  .landing-detective .wp-block-columns {
    flex-direction: column !important;
  }
  .landing-detective .wp-block-column {
    /*width: 100% !important;*/
    /*min-width: 100% !important;*/
  }
  .landing-detective .wp-block-columns .wp-block-column:nth-child(2) {

  }
  .landing-detective > .wp-block-group {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .landing-detective .wp-block-media-text {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .landing-detective .wp-block-media-text .wp-block-media-text__media img {
    width: 130px;
    height: 130px;
    margin: 0 auto;
  }

  .landing-detective .wp-block-details summary {
    align-items: baseline;
  }
  .landing-detective .wp-block-details summary em {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .landing-detective .wp-block-details summary span {
    flex: 1;
    text-align: right;
  }
}
