:root{
    --color-white:#FFF;
    --color-white-hover:rgb(163,16,16);
    --color-dark:#000;
    --color-black:#212121;
    --color-green: #005a5c;
    --color-grey: #777777;
    --color-beige: #f2e9e1;
    --color-orange: #e6b89c;

    --bg-beige: #f2e9e1;
    --bg-button: #e6b89c;
    --bg-green: #005a5c;
    --bg-grey: #777777;
    --bg-white:#FFF;
    --bg-black:#212121;
    --bg-orange:#e6b89c;
  }

@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


.roboto-condensed {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.pt-sans {
  font-family: "PT Sans", sans-serif;
  font-style: normal;
}


.color-white, .link-white {color: var(--color-white);}
.link-white:hover {opacity: .6;transition: all 1s; }
.color-black, .link-black {color: var(--color-black);}
.color-grey,  .link-grey {color: var(--color-grey);}
.color-green {color: var(--color-green);}
.color-orange {color: var(--color-orange);}


.bg-grey {
  background: var(--bg-grey);
}
.bg-green {
  background: var(--bg-green);
}
.bg-white {
  background: var(--bg-white);
}
.bg-lightgrey {
  background: var(--bg-black);
}
.bg-black {
  background: var(--bg-black);
}

.fw-100 {font-weight: 100}
.fw-200 {font-weight: 200}
.fw-300 {font-weight: 300}
.fw-400 {font-weight: 400}
.fw-500 {font-weight: 500}
.fw-600 {font-weight: 600}
.fw-700 {font-weight: 700}
.fw-900 {font-weight: 900}

.line-height-120 {line-height: 120%;}


.fs-10 { font-size: 10px; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-17 { font-size: 17px; }
.fs-18 { font-size: 18px; }
.fs-19 { font-size: 19px; }
.fs-20 { font-size: 20px; }
.fs-21 { font-size: 21px; }
.fs-22 { font-size: 22px; }
.fs-23 { font-size: 23px; }
.fs-24 { font-size: 24px; }
.fs-25 { font-size: 25px; }
.fs-26 { font-size: 26px; }
.fs-27 { font-size: 27px; }
.fs-28 { font-size: 28px; }
.fs-29 { font-size: 29px; }
.fs-30 { font-size: 30px; }
.fs-36 { font-size: 36px; }

p {
    margin-top: 0;
    margin-bottom: 0rem;
}



html {
  	margin: 0;
  	padding: 0;
}


a, a:link, a:visited, a:hover, a:focus, a:active {
outline: 0 none;
text-decoration: none;
}

img {
border: 0 none;
outline: 0 none;
text-decoration: none;
}

body {
  position: relative;
  font-family: "PT Sans", sans-serif;
  background: var(--bg-beige);
  font-size: 20px;
}

input:focus { outline: none; }
textarea:focus { outline: none; }

::-webkit-input-placeholder {color:#919396;}
::-moz-placeholder          {color:#919396;}/* Firefox 19+ */
:-moz-placeholder           {color:#919396;}/* Firefox 18- */
:-ms-input-placeholder      {color:#919396;}

:focus::-webkit-input-placeholder {color: transparent;opacity 1s ease;}
:focus::-moz-placeholder          {color: transparent;opacity 1s ease;}
:focus:-moz-placeholder           {color: transparent;opacity 1s ease;}
:focus:-ms-input-placeholder      {color: transparent;opacity 1s ease;}


.content, .content_mobile {
  width: 90%;
  margin: 0 auto;

}





/* Стили для Header */
.header {
    display: flex;
    justify-content: space-between; /* Распределяет элементы по краям */
    align-items: center;
    padding: 20px 40px;
    width: 100%;
    font-size: 20px;
}

.logo img {
    width: 80px;
}

/* Стили для Меню */
.menu {
    display: flex; /* Делаем меню флекс-контейнером */
    gap: 25px; /* Расстояние между пунктами */
}

.menu-item {
    color: var(--color-black);
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s;
    font-style: normal;
}

.menu-item:hover {
    opacity: .8;
}

.menu-toggle {display: none;}

/* Стили для блока контактов и кнопки */
.contacts {
    display: flex; /* Делаем контакты флекс-контейнером */
    gap: 20px; /* Расстояние между телефоном, иконкой и кнопкой */
    align-items: center;
}

.contact-item {
    color: var(--color-black);
    text-decoration: none;
    font-size: 1rem;
}

.contact-item img {
  width: 36px;
  height: auto;
}

.social-link img {
    vertical-align: middle; /* Выравнивание иконки */
}

.btn-record, .btn-record-green {
    display: inline-block;
    padding: 16px 80px 16px 40px;
    background-color: var(--bg-orange); /* Красный цвет кнопки */
    color: var(--color-white);
    text-decoration: none;
    border-radius: 40px;
    transition: background-color 0.3s;
    position: relative;
}

.btn-record-green {
    background-color: var(--bg-green); /* Красный цвет кнопки */
}

.btn-record:before, .btn-record-green:before {
  /* Создаем пустой блок */
  content: '';
  display: inline-block;

  /* Картинка иконки */
  background-image: url('http://psy21veka.ru/wp-content/uploads/sites/2/sites/2/2026/05/row.webp');
  background-size: 30px auto; /* Картинка впишется в блок */
  background-repeat: no-repeat;
  background-position: center 13px;
  background-color: var(--color-white);
  border-radius: 100px;
  /* Позиционирование */
  position: absolute;
  right: 15px; /* Отступ от левого края кнопки */
  top: 50%;
  transform: translateY(-50%); /* Вертикальное выравнивание по центру */

  /* Размеры иконки */
  width: 46px;
  height: 46px;
}

.btn-record-green:before {
  background-image: url('http://psy21veka.ru/wp-content/uploads/sites/2/sites/2/2026/05/row-orange.webp');
  right: 8px; /* Отступ от левого края кнопки */
}

.btn-record:hover {
  background-color: var(--bg-green);
}
.btn-record-green:hover {
  background-color: var(--bg-orange);
}

.btn-record:hover:before {
  background-image: url('http://psy21veka.ru/wp-content/uploads/sites/2/sites/2/2026/05/row-orange.webp');
}

.btn-record-green:hover:before {
  background-image: url('http://psy21veka.ru/wp-content/uploads/sites/2/sites/2/2026/05/row.webp');
}


.btn-green {
  display: block;
  padding: 16px 0px 16px 0px;
  background-color: var(--bg-green); /* Красный цвет кнопки */
  color: var(--color-white);
  text-decoration: none;
  text-align: center;
  border-radius: 40px;
  transition: background-color 0.3s;
  position: relative;
}

.btn-white {
  display: block;
  padding: 16px 0px 16px 0px;
  background-color: var(--bg-white); /* Красный цвет кнопки */
  color: var(--color-black);
  text-decoration: none;
  text-align: center;
  border-radius: 40px;
  transition: background-color 0.3s;
  position: relative;
}


.btn-green:before, .btn-white:before{
  /* Создаем пустой блок */
  content: '';
  display: inline-block;

  /* Картинка иконки */
  background-image: url('http://psy21veka.ru/wp-content/uploads/sites/2/sites/2/2026/05/row-orange.webp');
  background-size: 30px auto; /* Картинка впишется в блок */
  background-repeat: no-repeat;
  background-position: center 13px;
  /* Позиционирование */
  position: absolute;
  right: 15px; /* Отступ от левого края кнопки */
  top: 50%;
  transform: translateY(-50%); /* Вертикальное выравнивание по центру */

  /* Размеры иконки */
  width: 46px;
  height: 46px;
}



.btn-green:hover, .btn-white:hover {
    background-color: var(--bg-orange); /* Красный цвет кнопки */
}

.round, .round img {
    border-radius: 40px;
}
/* Основной контент */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 40px;
}

.badge {
  background: var(--bg-grey);
  padding: 8px 30px;
  border-radius: 40px;
  display: inline-block !important;
  font-size: 16px;
  font-weight: 100
}
.free-consultation {
  font-weight: bold;
  color: var(--color-green);
  font-size: 20px;
  margin-left: 30px;
}

.intro-text {
  font-size: 24px;
  color: var(--color-green);
}

.hero-title, .h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 68px;
  font-weight: bold;
  color: var(--color-green);
}

.description {
  font-size: 24px;
}

.block-ya {
  position: relative;
}

.block-ya:before {
  content: '';
  background-image: url(http://psy21veka.ru/wp-content/uploads/sites/2/sites/2/2026/05/knopka.webp);
  background-repeat: no-repeat;
  background-size: cover;
  left: 0; top: -30px;
  position: absolute;
  width: 50px; height: 73px;
}

.person-img  {
  background: var(--color-white);
  padding: 20px;
  border-radius: 40px;
  width: 72%;
  transform: rotate(12deg); /* Против часовой стрелки на 20° */
  transition: transform 0.3s ease; /* Плавный переход */
  position: absolute;
  top: -80px;
  right: 70px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.person-img img {  border-radius: 40px;}

.person-img .wp-element-caption {
  text-align: center;
}

.diplom h3 {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 30px;
  font-weight: bold;
}

.diplom .block {
  padding: 30px 30px 30px;
  position: relative;
  display: flex;
  gap: 20px
}

.diplom .block img {
  width: 100px;
  height: auto;
  border-radius: 0px !important;
}

.diplom .block img.width {
  width: 160px;
}




/* Основная карточка */
.pcard {
    margin: auto;
    background-color: var(--color-white);
    border-radius: 40px;
    padding: 20px;
}

/* Заголовок карточки */
.card-header {
    padding: 16px;
}

.card-header h2, .signs-section h3, .result-section h3 {
    font-size: 36px;
    line-height: 1.2;
    color: var(--color-green);
    margin-top: 0;
    font-weight: bold;
    font-family: "Roboto Condensed", sans-serif;
}

.card-header p {
    font-size: 24px;
    margin-top: 8px;
}

/* Блок с признаками */
.signs-section {
    padding: 16px;
    font-size: 24px;
}


.sign-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
    padding-left: 40px;
}

.sign-item:before {
  content: '';
  position: absolute;
  background-image: url(http://psy21veka.ru/wp-content/uploads/sites/2/sites/2/2026/05/row-orange.webp);
  background-repeat: no-repeat;
  background-position: center center; /* Центровка изображения */
  background-size: cover;
  width: 26px;top: 12px;
  height: 21px;left:0;
}

.sign-text {
    font-size: 24px;
}

/* Результат раздела */
.result-section {    padding: 16px;}


.result-desc {
    font-size: 14px;
    margin-top: 8px;
}

.vflex {
  display: flex;               /* Включаем Flexbox */
  flex-direction: column;       /* Располагаем элементы вертикально */
  justify-content: center;     /* Центрирование по вертикали */
  align-items: center;
  height: 100%;
}

.pc .pcard {
  display: flex;
  flex-direction: column; /* Вертикальное расположение */
  justify-content: space-between; /* Распределение по вертикали */
  min-height: 800px; /* Минимальная высота контейнера */
}

.pc .pgrey {
  margin: auto;
  background-color: var(--color-grey);
  border-radius: 40px;
  padding: 20px;
  color: var(--color-white);
}

.pc .pgrey h2 {
  color: var(--color-white);
}

.pgrey  .sign-item:before {
    background-image: url(http://psy21veka.ru/wp-content/uploads/sites/2/sites/2/2026/05/row-white.webp);
}

.firm-block {
  background-image: url(http://psy21veka.ru/wp-content/uploads/sites/2/sites/2/2026/05/log.webp);
  background-position: right top 30px;
  background-repeat: no-repeat;
  background-size: 675px auto;
  padding: 30px 0;
}

.firm-block-sub {
  width: 65%;
  padding: 75px 40px;
}

.ya {
  position: absolute;
  right: -200px;
    top: -35px;
}

.ya img {
  height: 430px;
  width: auto;
}

.accordion {
    --bs-accordion-color: var(--bs-body-color);
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: transparent;
    --bs-accordion-border-width: transparent;
}

.accordion-header {
  color: var(--color-grey);
  text-transform: uppercase;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: bold;
  position: relative;
}

.accordion-header:after {
  content: '+';
  font-size: 80px;
  position: absolute;
  font-weight: bold;
  color: var(--color-grey);
  right: 0;
  top: 50%;                 /* Центр по вертикали */

    transform: translateY(-50%) rotate(45deg); /* Поворот на 45 градусов */
  font-family: "PT Sans", sans-serif;
}

/* Повернуть на 45° при открытии аккордеона */
.accordion-header.collapsed:after {
  transform: translateY(-50%); /* Точная вертикальная центровка */
}

.accordion-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-grey);
  cursor: pointer;
}

/* Общий контейнер отзывов */
.rev  {
  height: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: column
}

.heaotz {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 20px;
}



.heaotz .data {
  color: var(--color-grey);
  font-size: 12px;
  font-weight: normal;
}

.heaotz .size-full {width: 90px;}

.heaotz  a {
  font-size: 12px;
  font-weight: normal;
    text-transform: lowercase;
}


.mainModal {
  display: none;
  right: 0;
  position: fixed;
  top: 0;
  padding: 30px 20px;
  background: var(--bg-orange);
  height: 100vh;
  min-height: 800px;
  width: 30%;
  z-index: +9999;
}

.modal-close {
  text-align: right
}

.mainModal.active {
  display: block;
}

/* Базовые стили для кнопки */
.m-close {
    /* Убираем стандартные стили браузера */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;

    /* Позиционируем относительно себя, чтобы псевдоэлементы легли поверх */
    position: relative;

    /* Задаем размер кнопки */
    width: 40px;
    height: 40px;

    /* Центрирование линий внутри кнопки */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Цвет линий */
    color: #333; /* Основной цвет крестика */

    /* Радиус скругления для фона */
    border-radius: 50%;

    /* Переход для плавной анимации при наведении */
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: rgba(0, 0, 0, 0.05); /* Легкое затемнение фона */
}

/* Стили для состояния при наведении */
.m-close:hover {
    background-color: rgba(0, 0, 0, 0.10); /* Легкое затемнение фона */
}

/* Создаем первую линию (горизонтальную) */
.m-close::before,
.m-close::after {
    content: '';
    position: absolute;
    background-color: inherit; /* Берет цвет из .m-close (color) */
}

/* Стили для горизонтальной линии */
.m-close::before {
    width: 24px;  /* Длина линии */
    height: 2px;  /* Толщина линии */
}

/* Стили для вертикальной линии */
.m-close::after {
    width: 2px;   /* Толщина линии */
    height: 24px; /* Длина линии */
}

/* Анимация при наведении на кнопку */
.m-close:hover::before {
    transform-origin: center left; /* Точка вращения - левый край */
    transform: rotate(45deg);      /* Поворот на 45 градусов */
}

.m-close:hover::after {
    transform-origin: top center;  /* Точка вращения - верхний край */
    transform: rotate(45deg);      /* Поворот на 45 градусов */
}


/* Основной контейнер формы */
.form-page {

    align-items: center;               /* Центровка по горизонтали */
    gap: 20px;                       /* Интервал между полями */
    padding: 20px;                    /* Внутренние отступы */
    margin-top: 30px;                  /* Центровка по горизонтали */

}

/* Поля ввода */
.form-page input {
    width: 100%;                      /* Поле на всю ширину */
    padding: 20px;                    /* Внутренние отступы */
    border-radius: 20px;               /* Скруглённые углы */
    background-color: var(--bg-beige);        /* Светло-серый фон */
    font-size: 16px;                  /* Размер шрифта */
    outline: none;
    border: 0;                  /* Без выделения при фокусе */
    margin-bottom: 15px;
}

.form-page input[type="submit"] {
  background: transparent;
  color: var(--color-whte);
  padding: 0px;
    margin-bottom: 0px;
}
.form-page .btn-green {
    position: relative;}

.wpcf7-spinner {
    right: 20px;
    top: 50%;
    transform: translateY(-50%); /* Вертикальное выравнивание по центру */
    position: absolute;
}

.contact{
display: flex;               /* Включаем Flexbox */
flex-direction: column;       /* Располагаем элементы вертикально */
justify-content: center;     /* Центрирование по вертикали */
height: 100%;
}

.phone a {
  position: relative;
  color: var(--color-green);
  font-size: 48px;
  font-weight: bold;
  font-family: "Roboto Condensed", sans-serif;
}

.phone a:before {
  /* Путь к изображению */
  content: "";
  background-image: url('http://psy21veka.ru/wp-content/uploads/sites/2/sites/2/2026/05/ph.webp');

  display: inline-block;

  /* Размеры должны соответствовать размеру картинки */
  width: 40px;
  height: 40px;

  margin-right: 12px;

  /* Чтобы фоновая картинка была видна */
  background-size: contain; /* или cover, в зависимости от задачи */
  background-repeat: no-repeat;
}

.adress {
  position: relative;
  color: var(--color-black);
  font-size: 48px;
  padding: 0 0 0 48px
}

.adress:before {
  /* Путь к изображению */
  content: "";
  background-image: url('http://psy21veka.ru/wp-content/uploads/sites/2/sites/2/2026/05/resurs-4@2x.webp');

  display: inline-block;

  /* Размеры должны соответствовать размеру картинки */
  width: 40px;
  height: 40px;

  margin-right: 12px;
  position: absolute;
  left: 0;
  top: 10%;

  /* Чтобы фоновая картинка была видна */
  background-size: contain; /* или cover, в зависимости от задачи */
  background-repeat: no-repeat;
}

footer {
  text-align: center;
}

footer nav.menu {
  display: inline-block!important;
}



footer .logo {
  width: 100px;
}

footer .vk {
  width: 40px;
  margin-top: 20px;
}


/* Стили для модального окна */
.form-popup {
    /* Позиционируем относительно body */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Скрываем по умолчанию */
    display: none;

    /* Создаем оверлей (затемнение) */
    background-color: rgba(0, 0, 0, 0.5);

    /* Центрируем форму внутри оверлея */
    justify-content: center;
    align-items: center;
}
/* --- АДАПТИВНОСТЬ (МЕДИАЗАПРОСЫ) --- */
@media (max-width: 1200px) {
  .hero-title, .h2 {
    font-size: 48px;
  }
  .card-header h2, .signs-section h3, .result-section h3 {
      font-size: 30px;
  }
  .card-header p {
      font-size: 20px;
  }
  .sign-text {
      font-size: 20px;
  }
  .description {
      font-size: 20px;
  }
  .diplom h3 {
      font-size: 24px;
  }
  nav.menu {display: none;}
  .firm-block-sub {
      width: 85%;
  }
}

/* --- АДАПТИВНОСТЬ (МЕДИАЗАПРОСЫ) --- */
@media (max-width: 768px) {

    /* На мобильных устройствах меняем направление на колонку */
    .header {
        align-items: center; /* Прижимаем к левому краю внутри колонки */
        justify-content: center;
        padding: 15px 20px;
        gap: 15px; /* Отступ между логотипом, кнопкой и контактами */
    }

    /* Блок контактов и меню теперь занимают всю ширину */
    .contacts, .menu {
        width: 50%;

        justify-content: space-between; /* Для контактов на моб. версиях */
    }

    /* Меню скрываем по умолчанию на моб. устройствах */
    .menu {
        display: none;
        flex-direction: column; /* Вертикальный список в выпадашке */
        width: 100%;
      }
      .menu.active { /* Показываем, когда класс active добавлен через JS */
          display: flex;
      }

      .menu-item {
          text-align: center; /* Центрируем пункты меню в выпадашке */
          width: 100%;
      }

      /* Стили для кнопки записи на моб. устройствах (растягиваем на всю ширину) */
      .btn-record {
          width: 100%;
          text-align: center;

      }

      /* Кнопка гамбургера и контакты теперь в одной строке с логотипом (если нужно)
         или просто следуют друг за другом по порядку в коде.
         Порядок задается через 'order' в HTML, но здесь мы просто убираем лишние стили. */

         .otz {
             display: block
         }

         .cli   {
           margin-top: 20px;
         }
         .intro-text, .description {margin-bottom: 50px}
         .person-img {

             position: relative;
             top: 0px;
             right: -50px;
         }

         .pc .pcard {

             min-height: 600px;
         }
         .ya {
             position: relative;
             right: 0px;
             top: 20px;
             text-align: center;
         }
         .firm-block-sub {
             width: 100%;
         }
         .accordion-item {
             padding-right: 30px;
         }
         .mainModal {
             width: 80%;
         }

         .contact-item   span {display: none}
}

/* --- АДАПТИВНОСТЬ (МЕДИАЗАПРОСЫ) --- */
@media (max-width: 575.98px) {
  .hero-title, .h2 {
    font-size: 30px;
  }
  .card-header h2, .signs-section h3, .result-section h3 {
      font-size: 24px;
  }
  .sign-text {
      font-size: 16px;
  }
  .fs-36 {
      font-size: 30px;
  }
  .fs-30 {
      font-size: 25px;
  }
  .fs-24 {
      font-size: 20px;
  }

  .hero-content {
      padding: 10px 15px;
}

      .contacts, .menu {
          width: 70%;
          justify-content: flex-end;
      }
      .badge {
           word-wrap: break-word; /* Или overflow-wrap: break-word; */
           overflow-wrap: break-word;
        white-space: normal;
           margin-bottom: 20px;
           width: 100%;
      }
      .btn-record, .btn-record-green {
          display: inline-block;
          padding: 10px 60px 10px 20px;
    display: block !important;
        }


      .contact-item img.img-vk {
        display: none !important;
      }

      header .btn-record.open-form   span {
        display: none;

      }

      header .btn-record.open-form {
        padding: 0px 20px 0px 10px;
        width: auto;
      }
          .btn-record:before, .btn-record-green:before {
              background-size: 20px auto;
              width: 36px;
              height: 36px;
          }
          .logo img {
              width: 60px;
          }

        footer nav.menu    {display: none!important}

        .ya img {
            height: auto;
            width: auto;}
      .accordion-header:after {font-size: 40px;}
      .phone a, .adress {font-size: 26px; }
         .contact-item   span {display: none}

}
