/* @font-face {
  font-family: "Montserrat";
  src: url('<?php echo get_template_directory_uri(); ?>/fonts/Montserrat/Montserrat-Regular.ttf');
} */
:root,
[data-theme="light"] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --color-bg: #f7f2ee;
  --color-surface: #fbf8f5;
  --color-surface-2: #f3ede8;
  --color-surface-offset: #ebe1da;
  --color-border: rgba(62, 45, 38, 0.13);
  --color-divider: rgba(62, 45, 38, 0.08);
  --color-text: #30251f;
  --color-text-muted: #75665f;
  --color-text-faint: #a6958d;
  --color-primary: #7a5c52;
  --color-primary-hover: #63483f;
  --color-primary-highlight: #ede0d8;
  --color-success: #586b52;
  --color-text-inverse: #fffaf7;
  --shadow-sm: 0 1px 2px rgba(46, 31, 24, 0.05);
  --shadow-md: 0 10px 30px rgba(46, 31, 24, 0.08);
  --shadow-lg: 0 22px 60px rgba(46, 31, 24, 0.12);
  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.15rem;
  --radius-xl: 1.75rem;
  --radius-full: 999px;
  --content-default: 1200px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] {
  --color-bg: #171311;
  --color-surface: #201a17;
  --color-surface-2: #28211d;
  --color-surface-offset: #312823;
  --color-border: rgba(255, 245, 239, 0.12);
  --color-divider: rgba(255, 245, 239, 0.08);
  --color-text: #efe5df;
  --color-text-muted: #c2b2a8;
  --color-text-faint: #8f7e76;
  --color-primary: #c59d8b;
  --color-primary-hover: #ddb4a3;
  --color-primary-highlight: rgba(197, 157, 139, 0.15);
  --color-success: #92a58a;
  --color-text-inverse: #1a1411;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.36);
}
*,
:before,
:after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  background: var(--color-bg);
  color: var(--color-text);
}
main{
  font-family: var(--font-body);
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.container {
  width: min(calc(100% - 2rem), var(--content-default));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  z-index: 200;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--color-bg) 78%, transparent);
  border-bottom: 1px solid var(--color-divider);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
}
.brand-mark {
  color: var(--color-primary);
}
.brand small {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  justify-content: flex-end;

}
.nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 50%;
  color: var(--color-text);
}
/* Бургер-кнопка по умолчанию скрыта */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
      padding:0 0 20px 0;
}
.eyebrow {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0 0 2.3rem;
  padding-top: 16px;
}
h1 {
  font-size: clamp(3rem, 7vw, 3.8rem);
  max-width: 21ch;
  color: #2B2B2B !important
}
h2 {
  font-size: var(--text-2xl);
}
h3 {
  font-size: var(--text-xl);
}
.kvlf {
  font-size: 48px;
  margin: 0;
}
.hero p {
  max-width: 58ch;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
}
.hero-card {
  position: relative;
  min-height: 590px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-end;

  max-height: 620px;
}
.portrait-badge {
  position: relative;
  z-index: 1;
  max-width: 24ch;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 245, 0.88);
  backdrop-filter: blur(10px);
  color: #2d211c;
  box-shadow: var(--shadow-md);
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.95rem 1.3rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}
.section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}
.section.alt {
  background: var(--color-surface);
}
.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-8);
  align-items: end;
  margin-bottom: var(--space-8);
}
.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}
.bold2 {
  font-weight: 600;
}
.card1 ul {
  margin: 0;
}
.card1 li::marker {
  font-size: 1.3em;
}
.card2 {
  gap: 0;
}
.cntr_btn {
  display: block;
  margin-inline: auto;
  width: 300px;
  margin-top: 30px;
}
.method-grid,
.issues-grid,
.blog-grid,
.values-grid,
.steps-grid,
.faq-grid {
  display: grid;
  gap: var(--space-4);
}
.method-grid {
  grid-template-columns: 1.1fr 0.9fr;
      gap: 50px;
}
.panel,
.card,
.step,
.blog-card,
.service-card,
.faq-item,
.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel {
  padding: var(--space-8);
}
.method-aside {
  padding: var(--space-8);
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.spiral {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(122, 92, 82, 0.08) 21%,
    transparent 22%,
    rgba(122, 92, 82, 0.06) 33%,
    transparent 34%,
    rgba(122, 92, 82, 0.05) 46%,
    transparent 47%
  );
}
.spiral svg {
  width: 70%;
  color: var(--color-primary);
}
.issues-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: linear-gradient(
    180deg,
    var(--color-surface),
    var(--color-surface-2)
  );
}
.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-primary-highlight);
  display: grid;
  place-items: center;
  color: var(--color-primary);
}
.muted {
  color: var(--color-text-muted);
}
.service-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.service-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.card2 {
  gap: 0;
}
.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pill {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
}
.values-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.value-card,
.step,
.blog-card,
.faq-item {
  padding: var(--space-6);
}
.steps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.step button {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
.step strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--color-primary);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.blog-cover {
  aspect-ratio: 1.4;
  border-radius: calc(var(--radius-lg) - 0.35rem);
  margin-bottom: var(--space-4);
  background: linear-gradient(
    135deg,
    rgba(122, 92, 82, 0.13),
    rgba(88, 107, 82, 0.2)
  );
  border: 1px solid var(--color-divider);
}
.blog-card:nth-child(2) .blog-cover {
  background: linear-gradient(
    135deg,
    rgba(88, 107, 82, 0.18),
    rgba(122, 92, 82, 0.1)
  );
}
.blog-card:nth-child(3) .blog-cover {
  background: linear-gradient(
    135deg,
    rgba(122, 92, 82, 0.18),
    rgba(197, 157, 139, 0.18)
  );
}
.res {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}
/* Карточки в списке статей и на главной (блок блога) */
.blog-card {
    display: flex;
    flex-direction: column;
}
.blog-card .btn {
    margin-top: auto;
    align-self: flex-start; /* кнопка не будет растягиваться на всю ширину */
}
.m_cards{
      display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.res a {
  width: 220px;
  padding: 0;
  height: 50px;
  background-color: #a6958d;
}
.contact-wrap {
  max-width: 600px;
}
.contact-card {
  padding: var(--space-8);
  background: linear-gradient(
    180deg,
    var(--color-surface),
    var(--color-surface-2)
  );
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.contact-list {
  display: grid;
  gap: var(--space-3);
  /* margin-top: var(--space-5); */
  grid-template-columns: 1fr 1fr 1fr;
  justify-items: center;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  width: 72px;
}
form {
  display: grid;
  gap: var(--space-4);
}
label {
  display: grid;
  gap: 0.45rem;
  font-size: var(--text-sm);
  font-weight: 700;
}
input,
textarea {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}
textarea {
  min-height: 140px;
  resize: vertical;
}
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-divider);
  color: var(--color-text-muted);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.wpcf7-form {
gap: 0;


}
.wpcf7-form p {
    margin: 0; /* убрать лишние отступы */
}
@media (max-width: 1100px) {
  .section-head,
  .method-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .issues-grid,
  .blog-grid,
  .service-wrap,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}
@media (max-width: 880px) {
  .menu-toggle {
    display: flex;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid #a6958d3d;
  }
  .nav.nav-open {
    display: flex;
  }
  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-divider);
  }
}
@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .header-row {
    align-items: center;
  }
  .hero-card {
    min-height: 1000px;
  }

  .issues-grid,
  .blog-grid,
  .service-wrap,
  .values-grid,
  .steps-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
        display: block;
        margin-inline: auto;
        max-width: 270px;
        text-align: center;
  }
  .res a{
    padding: 10px;
  }
}

@media (max-width: 550px) {
  .hero-card {
    min-height: 100px;
  }
}
/* --------------------------------------------------------------------------------- */

/* ==========================================================================
   Раздел 1: Обо мне (Дополнение)
   ========================================================================== */
/* .about-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
} */
.cd2 {
  max-height: 1000px;
  border-radius: inherit;
}
.cd2 img {
  object-position: bottom;
}

.about-hero-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Раздел 2: Образование и подход (Таймлайн)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: var(--space-8) auto 0;
  padding: 1rem 0;
}

/* Центральная вертикальная линия */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--color-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: var(--space-6);
  display: flex;
}

/* Точки на линии */
.timeline-item::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background-color: var(--color-primary);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

/* Выравнивание по сторонам */
.timeline-item.left {
  left: 0;
  justify-content: flex-end;
  padding-right: var(--space-8);
  text-align: right;
}

.timeline-item.left::after {
  right: -6px;
}

.timeline-item.right {
  left: 50%;
  justify-content: flex-start;
  padding-left: var(--space-8);
  text-align: left;
}

.timeline-item.right::after {
  left: -6px;
}

.timeline-content {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
      line-height: normal;
}

/* ==========================================================================
   Раздел 3: Ценности
   ========================================================================== */
.values-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.values-list li {
  position: relative;
  padding-left: 2rem;
  font-size: var(--text-lg);
  font-weight: 400;
}

.values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

/* ==========================================================================
   Раздел 4: Профессиональные достижения
   ========================================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.achievement-card {
  background: #46352e; /* Темно-коричневый оттенок из макета */
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .achievement-card {
  background: var(--color-surface-2);
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-offset);
}

.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: #fffaf7;
  margin: 0 0 var(--space-2);
  padding-top: 0;
  font-weight: 600;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--text-sm);
  color: #d6c5bc;
  transition: opacity 0.2s ease;
}

.card-link:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Адаптивность (Брейкпоинты в соответствии с вашим файлом)
   ========================================================================== */

@media (max-width: 720px) {
  /* Таймлайн переходит в левую колонку */
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    width: 100%;
    margin-bottom: var(--space-5);
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    justify-content: flex-start;
    padding-left: 2.5rem;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 3px;
  }

  /* Карточки достижений: 1 в ряд */
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------------------------- */

/* ==========================================================================
   Раздел 2: Принципы (Списки)
   ========================================================================== */
/* Сбрасываем отступы, добавляем кастомные маркеры-точки */
.method-aside .values-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.fnt_mtd {
  font-size: 21px;
}

.method-aside .values-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 20px;
  padding-bottom: 15px;
}

.method-aside .values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(
    --color-primary-faint
  ); /* Или var(--color-text-muted) */
  background: #c5b6ae; /* Цвет точки из макета */
}

/* ==========================================================================
   Раздел 3: Вертикальные этапы
   ========================================================================== */
.vertical-steps {
  position: relative;
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-left: 20px;
}

/* Сама вертикальная линия */
.vertical-steps::before {
  content: "";
  position: absolute;
  left: 5px; /* Центрируем под точки */
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: #4b3028;
}

.v-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-left: 25px;
}

/* Точки на линии */
.v-step::before {
  content: "";
  position: absolute;
  left: -19px; /* Сдвиг влево на линию */
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4b3028;
  z-index: 2;
}

.v-step-num {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: #7a5c52;
  min-width: 35px;
  font-weight: 500;
}

.v-step-text {
  font-size: var(--text-lg);
  font-weight: 500;
}

/* ==========================================================================
   Раздел 4: Карточки с цифрами
   ========================================================================== */
.requests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.req-card {
  background: #503d35; /* Темный цвет карточек из макета */
  color: #fffaf7;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-4) 0 var(--space-4); /* Снизу паддинг 0 для цифры */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

[data-theme="dark"] .req-card {
  background: var(--color-surface-2);
}

.req-card p {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  position: relative;
  z-index: 2;
  margin: 5px;
}

/* Крупная цифра внизу карточки */
.req-num {
  font-family: "Montserrat";
  font-size: 3.8rem;
  font-weight: 500;
  line-height: 0.75;
  color: var(--color-bg); /* Цвет цифры сливается с фоном страницы */
  align-self: flex-start; /* Прижимаем влево */
  margin-left: 2px; /* Немного сдвигаем за край */
  margin-bottom: -1px; /* Прижимаем вплотную к низу */
  user-select: none;
}

/* ==========================================================================
   Раздел 5: Горизонтальная линия с блоками
   ========================================================================== */
.transform-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-top: var(--space-6);
  max-width: 900px;
      margin-inline: auto;
}

/* Горизонтальная линия */
.transform-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--color-text);
  z-index: 1;
}

.t-block {
  background: var(--color-surface-offset); /* Бежевый фон блоков */
  border: 1px solid var(--color-border); /* Легкая граница для четкости */
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  position: relative;
  z-index: 2;
  min-width: 200px;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 500;
}

[data-theme="dark"] .t-block {
  background: var(--color-surface);
}

/* ==========================================================================
   Адаптивность (Брейкпоинты)
   ========================================================================== */
@media (max-width: 1100px) {
  /* Сетка 4х2 превращается в 2х4 на планшетах */
  .requests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  /* Сетка карточек в 1 колонку на мобилках */
  .requests-grid {
    grid-template-columns: 1fr;
  }

  /* Горизонтальная линия превращается в вертикальную на мобилках */
  .transform-timeline {
    flex-direction: column;
    gap: var(--space-4);
  }

  .transform-timeline::before {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
  }

  .t-block {
    width: 100%;
    min-width: auto;
  }
}


/* Контейнер формы на странице контактов */
.elementor-widget-shortcode .wpcf7 {
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-width: 500px;
}
.elementor-widget-shortcode .wpcf7 form {
    display: grid;
    gap: var(--space-4);
}
.elementor-widget-shortcode .wpcf7 label {
    display: grid;
    gap: 0.45rem;
    font-size: var(--text-sm);
    font-weight: 700;
}
.elementor-widget-shortcode .wpcf7 input,
.elementor-widget-shortcode .wpcf7 textarea {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
}
.elementor-widget-shortcode .wpcf7 input[type="submit"] {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border: none;
    border-radius: var(--radius-full);
    min-height: 48px;
    cursor: pointer;
    font-weight: 700;
}