/*
Theme Name: Panicfree V2
Theme URI: https://panicfree.ru/
Description: Новый дизайн сайта panicfree.ru — BEM, mobile-first, design tokens.
Author: Panicfree Team
Version: 2.0.0
Text Domain: panicfree-v2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========================================
   PANICFREE.RU — Design System v2
   Чистая пересборка, BEM, mobile-first
   ======================================== */

/* ----------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------- */
:root {
  /* Backgrounds */
  --bg-primary: #F8F4F0;
  --bg-secondary: #E6DFD3;

  /* Accents */
  --accent-secondary: #6FBAB6;
  --accent-secondary-text: #3D8A86;
  --accent-dark: #3B6B6D;
  --accent-darker: #2E5557;

  /* Warm palette */
  --warm-peach: #EECAAF;
  --warm-coral: #D4685C;
  --warm-coral-hover: #C04E42;

  /* Text */
  --text-dark: #3B6B6D;
  --text-body: #4A6B6D;
  --text-light: #5A7F81;
  --white: #FFFFFF;

  /* Specific element colors */
  --check-icon-bg: #72BBB7;
  --test-border: #72BBB7;
  --test-gradient-start: #5BA8A4;
  --test-gradient-end: #72BBB7;
  --read-more-color: #f09687;

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Lora', serif;

  /* Shape */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 4px 24px rgba(59, 107, 109, 0.08);
  --shadow-card: 0 2px 16px rgba(59, 107, 109, 0.06);

  /* Layout */
  --container: 1100px;
  --section-gap: clamp(64px, 10vw, 120px);

  /* Motion */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ----------------------------------------
   2. RESET
   ---------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font: inherit;
}


/* ----------------------------------------
   3. BASE TYPOGRAPHY
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--accent-secondary);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(111, 186, 182, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-body);
}


/* ----------------------------------------
   4. LAYOUT
   ---------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-gap) 0;
}

.section--white {
  background: var(--white);
}

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


/* ----------------------------------------
   5. SKIP LINK (a11y)
   ---------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--text-dark);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 500;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}


/* ----------------------------------------
   6. SECTION HEADER
   ---------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-secondary-text);
  margin-bottom: 12px;
}

.section-header__title {
  margin-bottom: 16px;
}

.section-header__desc {
  font-size: 1.0625rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ----------------------------------------
   7. BUTTONS
   ---------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 44px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--warm-coral);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--warm-coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 104, 92, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--warm-coral);
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  border: 2px solid var(--bg-secondary);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
}

.btn-secondary:focus-visible {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--read-more-color);
  background: transparent;
  border: 2px solid var(--read-more-color);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(240, 150, 135, 0.08);
  transform: translateY(-2px);
}

.btn-outline:focus-visible {
  outline: 3px solid var(--read-more-color);
  outline-offset: 3px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--white);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 107, 109, 0.12);
}


/* ----------------------------------------
   8. BREADCRUMBS
   ---------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.breadcrumbs__link {
  color: var(--accent-secondary-text);
  transition: color var(--transition);
}

.breadcrumbs__link:hover {
  color: var(--text-dark);
}

.breadcrumbs__separator {
  color: var(--text-light);
  user-select: none;
}

.breadcrumbs__current {
  color: var(--text-body);
}


/* ----------------------------------------
   9. HEADER
   ---------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 244, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 107, 109, 0.06);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: 0 2px 16px rgba(59, 107, 109, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-dark);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-cta {
  margin-left: 8px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}

.burger__line {
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger--open .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger--open .burger__line:nth-child(2) {
  opacity: 0;
}

.burger--open .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ----------------------------------------
   10. FOOTER
   ---------------------------------------- */
.footer {
  background: var(--accent-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}


/* ----------------------------------------
   11. PAGE HERO (inner pages)
   ---------------------------------------- */
.page-hero {
  padding: 48px 0 32px;
}

.page-hero__title {
  margin-bottom: 12px;
}

.page-hero__desc {
  font-size: 1.0625rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}


/* ----------------------------------------
   12. HERO (home)
   ---------------------------------------- */
.hero {
  padding: 48px 0 64px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-secondary-text);
  background: rgba(111, 186, 182, 0.12);
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero__title {
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__illustration {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
}

/* Floating cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dark);
  animation: float 6s ease-in-out infinite;
}

.floating-card--top-right {
  top: 5%;
  right: -10%;
  animation-delay: 0s;
}

.floating-card--bottom-left {
  bottom: 15%;
  left: -10%;
  animation-delay: -2s;
}

.floating-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.floating-card__icon--green {
  background: rgba(111, 186, 182, 0.15);
}

.floating-card__icon--peach {
  background: rgba(238, 202, 175, 0.3);
}


/* ----------------------------------------
   13. BENEFITS
   ---------------------------------------- */
.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.benefit-card__icon--green {
  background: rgba(111, 186, 182, 0.15);
}

.benefit-card__icon--teal {
  background: rgba(59, 107, 109, 0.1);
}

.benefit-card__icon--peach {
  background: rgba(238, 202, 175, 0.25);
}

.benefit-card__title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.benefit-card__text {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
}


/* ----------------------------------------
   14. SITUATIONS (tag pills)
   ---------------------------------------- */
.situations__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.situation-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  border-radius: 40px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.situation-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.situation-pill__icon {
  font-size: 1.125rem;
}


/* ----------------------------------------
   15. HOW IT WORKS (3 steps)
   ---------------------------------------- */
.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px 32px 80px;
  box-shadow: var(--shadow-card);
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--test-gradient-start), var(--test-gradient-end));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card__title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.step-card__text {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
}


/* ----------------------------------------
   16. RESULTS (checklist)
   ---------------------------------------- */
.results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.results__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.results__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.check-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--check-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.check-item__icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--white);
  stroke-width: 2.5;
  fill: none;
}

.check-item__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
}


/* ----------------------------------------
   17. TESTS CTA (gradient card)
   ---------------------------------------- */
.tests-cta {
  background: linear-gradient(135deg, var(--test-gradient-start), var(--test-gradient-end));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: var(--white);
}

.tests-cta__title {
  color: var(--white);
  margin-bottom: 16px;
}

.tests-cta__text {
  font-size: 1.0625rem;
  opacity: 0.92;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.tests-cta__image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 4px solid rgba(255, 255, 255, 0.3);
}


/* ----------------------------------------
   18. ARTICLES PREVIEW (home)
   ---------------------------------------- */
.articles-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.articles-preview__more {
  text-align: center;
  margin-top: 32px;
}


/* ----------------------------------------
   19. ARTICLE CARD
   ---------------------------------------- */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.article-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
}

.article-card__date {
  color: var(--text-light);
}

.article-card__tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-secondary-text);
  background: rgba(111, 186, 182, 0.1);
  border-radius: 20px;
}

.article-card__title {
  font-size: 1.125rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Article typography per Lev */
.article-card__title--page {
  font-size: 2rem;
  font-weight: 700;
}

.article-card__subtitle {
  font-size: 1.5rem;
  font-weight: 600;
}

.article-card__excerpt {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-card__read-more {
  display: inline-block;
  margin-top: auto;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--read-more-color);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.article-card__read-more:hover {
  background: #d4786b;
  transform: translateY(-1px);
}

.article-card__read-more:focus-visible {
  outline: 2px solid var(--read-more-color);
  outline-offset: 4px;
  border-radius: var(--radius);
}


/* ----------------------------------------
   20. ARTICLES GRID (materials page)
   ---------------------------------------- */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}


/* ----------------------------------------
   21. TEST CARD (tests catalog)
   ---------------------------------------- */
.tests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.test-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--test-border);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.test-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.test-card__desc {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.test-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* ----------------------------------------
   22. TEST DETAIL (individual test page)
   ---------------------------------------- */
.test-detail {
  max-width: 800px;
}

.test-info-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.test-info-box__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-info-box__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.test-info-box__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
}

.test-detail h2 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.test-detail p {
  font-size: 1rem;
  line-height: 1.7;
}

.test-detail ul {
  margin: 12px 0 16px;
  padding-left: 0;
}

.test-detail li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.6;
}

.test-detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
}

.test-detail__cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--bg-secondary);
  text-align: center;
}

.test-scales__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.test-scales__item {
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.test-scales__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
}


/* ----------------------------------------
   23. TEAM SECTION (about page)
   ---------------------------------------- */
.team-section__subtitle {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
  font-style: italic;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.team-card__info {
  padding: 24px;
}

.team-card__name {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-secondary-text);
  margin-bottom: 12px;
}

.team-card__motto {
  font-style: italic;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-light);
  padding: 12px 0;
  border-top: 1px solid var(--bg-secondary);
  border-bottom: 1px solid var(--bg-secondary);
  margin-bottom: 16px;
}

.team-card__bio {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-body);
}

.team-card__bio p {
  margin-bottom: 8px;
}


/* ----------------------------------------
   24. PAGE CONTENT (privacy, etc.)
   ---------------------------------------- */
.page-content {
  max-width: 800px;
  padding-bottom: var(--section-gap);
}

.page-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content p {
  line-height: 1.7;
}

.page-content ul {
  margin: 8px 0 16px;
  padding-left: 0;
}

.page-content li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
}


/* ----------------------------------------
   25. WAVE SEPARATOR
   ---------------------------------------- */
.wave-separator {
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}

.wave-separator svg {
  width: 100%;
  height: 100%;
}

.wave-separator--flip {
  transform: scaleY(-1);
}


/* ----------------------------------------
   26. PREVIEW BANNER
   ---------------------------------------- */
.preview-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--warm-coral);
  color: var(--white);
  text-align: center;
  padding: 10px 48px 10px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.preview-banner__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}


/* ----------------------------------------
   27. ANIMATIONS
   ---------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-stagger--visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-stagger--visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger--visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-stagger--visible > *:nth-child(4) { transition-delay: 0.3s; }
.fade-in-stagger--visible > *:nth-child(5) { transition-delay: 0.4s; }
.fade-in-stagger--visible > *:nth-child(6) { transition-delay: 0.5s; }
.fade-in-stagger--visible > *:nth-child(7) { transition-delay: 0.6s; }
.fade-in-stagger--visible > *:nth-child(8) { transition-delay: 0.7s; }

.fade-in-stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}


/* ----------------------------------------
   28. RESPONSIVE — min-width: 600px (tablet)
   ---------------------------------------- */
@media (min-width: 600px) {
  .container {
    padding: 0 32px;
  }

  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tests-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results__grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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


/* ----------------------------------------
   29. RESPONSIVE — min-width: 900px (desktop)
   ---------------------------------------- */
@media (min-width: 900px) {
  .container {
    padding: 0 40px;
  }

  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .articles-preview__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tests-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ----------------------------------------
   30. RESPONSIVE — mobile overrides
   ---------------------------------------- */
@media (max-width: 599px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
    margin-bottom: 16px;
  }

  .hero__illustration {
    max-width: 280px;
  }

  .floating-card {
    display: none;
  }

  .hero .btn-primary,
  .hero .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .test-info-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    background: var(--bg-primary);
    box-shadow: -4px 0 24px rgba(59, 107, 109, 0.12);
    transition: right var(--transition);
    z-index: 1000;
    padding: 24px;
  }

  .nav--open {
    right: 0;
  }

  /* Overlay backdrop behind mobile menu */
  .nav--open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
  }

  .nav__link {
    font-size: 1.125rem;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }

  .nav-cta .btn-primary {
    width: 100%;
  }

  .burger {
    display: flex;
  }
}


/* ----------------------------------------
   31. REDUCED MOTION
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .fade-in-stagger > * {
    opacity: 1;
    transform: none;
  }

  .floating-card {
    animation: none;
  }
}


/* ----------------------------------------
   32. WORDPRESS-SPECIFIC OVERRIDES
   ---------------------------------------- */

/* WP admin bar offset */
body.admin-bar .header {
  top: 32px;
}

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

/* WP nav menu integration */
.nav .menu-item a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

.nav .menu-item a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  transition: width var(--transition);
}

.nav .menu-item a:hover,
.nav .current-menu-item a {
  color: var(--text-dark);
}

.nav .menu-item a:hover::after,
.nav .current-menu-item a::after {
  width: 100%;
}

.nav .menu-item a:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav .nav-cta-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 44px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--warm-coral);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav .nav-cta-item a:hover {
  background: var(--warm-coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 104, 92, 0.25);
}

.nav .nav-cta-item a::after {
  display: none;
}

/* WP block editor content styling */
.entry-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.entry-content p {
  line-height: 1.7;
}

.entry-content ul,
.entry-content ol {
  margin: 8px 0 16px;
  padding-left: 0;
}

.entry-content li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  line-height: 1.6;
}

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

.entry-content ol {
  counter-reset: list-counter;
}

.entry-content ol li {
  counter-increment: list-counter;
}

.entry-content ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--accent-secondary-text);
}

.entry-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.entry-content a {
  color: var(--accent-secondary-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.entry-content a:hover {
  color: var(--text-dark);
}

/* WP alignments */
.aligncenter {
  display: block;
  margin: 24px auto;
}

.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}

.alignright {
  float: right;
  margin: 0 0 16px 24px;
}

.alignwide {
  max-width: calc(var(--container) + 100px);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* WP footer menus integration */
.footer__wp-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
  display: block;
  padding: 4px 0;
}

.footer__wp-links a:hover {
  color: var(--white);
}

.footer__wp-links li {
  padding-left: 0;
}

.footer__wp-links li::before {
  display: none;
}

/* WP pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.pagination .page-numbers.current {
  background: var(--accent-secondary);
  color: var(--white);
}

.pagination .page-numbers:hover:not(.current) {
  background: var(--bg-secondary);
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 16px;
}

/* Featured image in single */
.post-thumbnail {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
}

/* Tag/category badges in single */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-secondary);
}

.post-tags a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-secondary-text);
  background: rgba(111, 186, 182, 0.1);
  border-radius: 20px;
  transition: background var(--transition);
}

.post-tags a:hover {
  background: rgba(111, 186, 182, 0.2);
}

/* Article card thumbnail */
.article-card__thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Related posts section */
.related-posts {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--bg-secondary);
}

.related-posts__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: center;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .related-posts__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----------------------------------------
   WP Comments — Russian styling
   ---------------------------------------- */
.comments-area {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--bg-secondary);
}

.comments-area .comments-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.comments-area .comment-list {
  list-style: none;
  padding: 0;
}

.comments-area .comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--bg-secondary);
}

.comments-area .comment-author {
  font-weight: 600;
  color: var(--text-dark);
}

.comments-area .comment-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.comments-area .comment-body p {
  margin-top: 8px;
  line-height: 1.6;
}

.comments-area .comment-respond {
  margin-top: 32px;
}

.comments-area .comment-reply-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.comments-area .comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--bg-secondary);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--transition);
  margin-bottom: 16px;
}

.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-secondary);
}

.comments-area .comment-form .form-submit .submit {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent-secondary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.comments-area .comment-form .form-submit .submit:hover {
  background: var(--accent-dark);
}

/* Nested / threaded comments */
.comments-area .comment .children {
  margin-left: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--bg-secondary);
}

.comments-area .comment .children .comment {
  margin-top: 16px;
}

.comments-area .no-comments {
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  padding: 24px 0;
}

.comments-area .comment-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-secondary);
}

/* ----------------------------------------
   Online tests — pf-* component styles
   ---------------------------------------- */

/* Form container */
.pf-test-form {
  max-width: 760px;
  margin: 0 auto;
}

/* Progress bar */
.pf-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.pf-progress-fill {
  height: 100%;
  background: var(--accent-dark);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.pf-progress-text {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* Questions */
.pf-question {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bg-secondary);
}

.pf-question:last-child {
  border-bottom: none;
}

.pf-question-text {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--text-dark);
}

/* Answer options — vertical layout (Ирина #8) */
.pf-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-option {
  display: block;
  padding: 12px 16px;
  border: 2px solid var(--bg-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.pf-option:hover {
  border-color: var(--accent-dark);
  background: rgba(240, 150, 135, 0.04);
}

/* Hide native radio/checkbox inside option labels */
.pf-option input[type="radio"],
.pf-option input[type="checkbox"] {
  display: none;
}

/* Selected answer — #f09687 + bold (Ирина #9) */
.pf-option.selected,
.pf-option:has(input:checked) {
  border-color: var(--read-more-color);
  background: rgba(240, 150, 135, 0.08);
  color: var(--read-more-color);
  font-weight: 700;
}

/* Part headers (STAI two-part test) */
.pf-test-part-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 32px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-secondary);
}

/* Outline button variant */
.pf-btn-outline {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: var(--accent-dark);
  border: 2px solid var(--accent-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.pf-btn-outline:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* Submit button */
.pf-submit-wrap {
  text-align: center;
  margin-top: 32px;
}

.pf-submit-btn,
.pf-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.pf-submit-btn:hover,
.pf-btn:hover {
  background: var(--accent-darker);
}

/* Results */
.pf-result {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  text-align: center;
}

.pf-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.pf-interpretation {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.pf-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}
