/* Latest Posts → сетка карточек */
ul.wp-block-latest-posts__list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  ul.wp-block-latest-posts__list > li {
    flex: 1 1 calc(33.333% - 30px) !important; /* 3 в ряд */
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  
  ul.wp-block-latest-posts__list > li:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
  }
  
  /* Картинка сверху */
  .wp-block-latest-posts__featured-image img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;  /* перекрываем инлайн max-width:225px */
    max-height: none !important; /* перекрываем инлайн max-height:225px */
    border-radius: 8px;
    display: block;
    margin: 0 0 10px 0;
  }
  
  /* Заголовок, дата, отрывок */
  a.wp-block-latest-posts__post-title {
    display: block;
    font-weight: 600;
    font-size: 1.1em;
    margin: 8px 0 6px;
    text-decoration: none;
  }
  a.wp-block-latest-posts__post-title:hover { text-decoration: underline; }
  
  .wp-block-latest-posts__post-date {
    display: block;
    color: #777;
    font-size: .9em;
    margin-bottom: 8px;
  }
  
  .wp-block-latest-posts__post-excerpt {
    font-size: .95em;
    line-height: 1.45;
  }
  
  body.home h1 {
    display: inline; /* чтобы фон шёл по длине текста */
    background-color: rgb(255 82 0 / 49%); /* можно заменить на свой */
  }


  /* Белая панель (по желанию) */
.form-panel{
    background:#fff;
    border-radius:24px;
    padding:24px 28px;
  }

 /* контейнер формы */
.wpcf7 .cf7-one-row{
    display:grid;
    /* имя | телефон | лейбл | чекбоксы | кнопка */
    grid-template-columns:
      minmax(170px, 1fr)
      minmax(170px, 1fr)
      minmax(180px, auto)
      minmax(260px, 1fr)
      max-content;
    align-items:center;
    column-gap:20px;
  }
  
  /* поля */
  .wpcf7 .cf7-one-row .f input[type="text"],
  .wpcf7 .cf7-one-row .f input[type="tel"]{
    width:100%;
    border:none;
    border-bottom:2px solid #cfd6e3;
    padding:10px 2px;
    font-size:16px;
    background:transparent;
    outline:none;
  }
  
  /* подпись и чекбоксы */
  .wpcf7 .cf7-one-row .label{
    font-size:20px; font-weight:700; line-height:1.2;
    /* разрешаем перенос, чтобы всё уместилось */
    white-space:normal;
  }
  .wpcf7 .cf7-one-row .checks .wpcf7-list-item{ display:inline-flex; align-items:center; margin-right:18px; }
  .wpcf7 .cf7-one-row .checks .wpcf7-list-item-label{ margin-left:8px; font-size:18px; }
  
  /* кнопка 
  .wpcf7 .cf7-one-row .btn input[type="submit"]{
    padding:12px 22px; border-radius:14px; font-weight:800;
    background:#f59f00; color:#111; border:0; white-space:nowrap; cursor:pointer;
  }*/
  .wpcf7 .cf7-one-row .btn input[type="submit"]:hover{ filter:brightness(.95); }

  
  .wpcf7 .cf7-one-row .f input[type="text"],
  .wpcf7 .cf7-one-row .f input[type="tel"],
  .wpcf7 .cf7-one-row .f input[type="email"],
  .wpcf7 .cf7-one-row textarea{
    border: 0 !important;
    border-bottom: 2px solid #cfd6e3 !important; /* тонкая линия снизу */
    background: transparent;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
  }
  .wpcf7 .cf7-one-row .f input:focus,
  .wpcf7 .cf7-one-row textarea:focus{
    border-bottom-color:#00173b !important;
  }
  

  /* Карточка попапа */
.consult-popup{
    background:#fff;
    color:#111;
    max-width:720px;
    width:100%;
    margin:0 auto;
    border-radius:28px;
    padding:32px 28px 22px;
    position:relative;
    box-shadow:0 30px 80px rgba(0,0,0,.25);
  }
  
  /* Закрыть (если нужно своё) */
  .consult-popup .cp-close{
    position:absolute; top:14px; right:16px;
    width:36px; height:36px; line-height:36px;
    text-align:center; font-size:28px; font-weight:600;
    border:0; background:transparent; cursor:pointer;
  }
  
  /* Заголовок и подзаголовок */
  .consult-popup .cp-title{
    margin:8px 0 12px;
    font-size:40px; line-height:1.05; font-weight:900; letter-spacing:.3px;
    text-align:center;
  }
  .consult-popup .cp-sub{
    margin:0 auto 18px;
    max-width:540px;
    text-align:center;
    font-size:18px; line-height:1.5; color:#333;
  }
  
  /* ===== Стилизация Contact Form 7 внутри попапа ===== */
  .consult-popup .wpcf7 form{
    display:block; /* вертикальная колонка */
  }
  .consult-popup .wpcf7 p{ margin:0 0 16px; }
  
  /* поля: только нижняя линия */
  .consult-popup .wpcf7 input[type="text"],
  .consult-popup .wpcf7 input[type="email"],
  .consult-popup .wpcf7 input[type="tel"],
  .consult-popup .wpcf7 textarea{
    width:100%;
    background:transparent;
    border:0;
    border-bottom:2px solid #d5dae3;
    padding:12px 2px;
    font-size:18px;
    outline:none;
    border-radius:0;
  }
  .consult-popup .wpcf7 input:focus,
  .consult-popup .wpcf7 textarea:focus{
    border-bottom-color:#00173b;
  }
  
  /* чекбоксы списком */
  .consult-popup .wpcf7 .wpcf7-list-item{
    display:flex; align-items:center; margin:8px 0;
  }
  .consult-popup .wpcf7 .wpcf7-list-item-label{ margin-left:10px; font-size:18px; }
  
  /* кнопка */
  .consult-popup .wpcf7 input[type="submit"]{
    width:100%;
    background:#000;
    color:#fff;
    border:0;
    border-radius:14px;
    padding:16px 24px;
    font-weight:800;
    font-size:18px;
    cursor:pointer;
  }
  .consult-popup .wpcf7 input[type="submit"]:hover{ filter:brightness(.9); }
  
  /* политика */
  .consult-popup .cp-policy{
    margin:12px 0 0;
    font-size:13px; line-height:1.45; color:#555; text-align:center;
  }
  .consult-popup .cp-policy a{ color:#00173b; text-decoration:underline; }
  
  /* адаптив */
  @media (max-width: 540px){
    .consult-popup{ padding:24px 18px 16px; border-radius:22px; }
    .consult-popup .cp-title{ font-size:30px; }
    .consult-popup .cp-sub{ font-size:16px; }
  }
  