/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */


/* ==========================================================================
   1. ПЕРЕМЕННЫЕ (CSS VARIABLES)
   ========================================================================== */

:root {
  --rb-theme-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(0, 0, 0, 0.07);
  --theme-border-radius: 4px;
  --row-border-radius: var(--theme-border-radius:);
  --rb-scene-mobile-overlay: 0.5;
  --row-border-radius: 4px;
}


/* ==========================================================================
   2. ШАПКА (HEADER)
   ========================================================================== */

.menu-country a {
  color: var(--theme-palette-color-3) !important;
  font-weight: 900 !important;
  font-size: 12px !important;
}

.ct-header [data-id="menu"] .sub-menu {
  padding: 10px 0;
}




/* ==========================================================================
   3. ГЛАВНЫЙ ЭКРАН (HERO SECTION)
   ========================================================================== */

.hero-section ul, .hero-section .page-description{
  max-width: 600px;
}


.hero-section ul {
  --rb-list-size: 1.25rem;
  --rb-list-top: 0rem;
  --rb-list-pad: 2rem;
  --rb-list-gap: 0.75rem;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.hero-section ul > li {
  position: relative;
  padding-left: var(--rb-list-pad);
  margin-bottom: 0.85rem;
  min-height: 1.4rem;
}

.hero-section ul li:before {
  position: absolute;
  left: 0;
  top: var(--rb-list-top);
  width: var(--rb-list-size);
  height: var(--rb-list-size);
  box-sizing: border-box;
  line-height: var(--rb-list-size);
  text-align: center;
  font-size: calc(var(--rb-list-size) * 0.95);
  font-weight: 600;
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc(var(--rb-list-size) * 0.75);
  transition: background-color 0.2s, border-color 0.2s;
}

.hero-section ul li:before {
  content: "";
  border-radius: 4px;
  background-color: var(--theme-palette-color-1, currentColor);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* Мобильный: по умолчанию */
.home .is-hero {
  padding-top: 140px !important;
  padding-bottom: 40px !important;
}

/* Планшет: от 768px */
@media (min-width: 768px) {
  .home .is-hero {
    padding-top: 160px !important;
    padding-bottom: 60px !important;
  }
}

/* Десктоп: от 1024px */
@media (min-width: 1024px) {
  .home .is-hero {
    padding-top: 240px !important;
    padding-bottom: 90px !important;
  }
}

.hero-section[data-type=type-2]>[class*=ct-container] {
  text-align: left;
}

@media (max-width: 768px) {
  :root {
    --wp--preset--spacing--70: 2.25rem !important;
    --wp--preset--spacing--80: 2.25rem !important;
  }

  .hero-section[data-type=type-2]>[class*=ct-container] {
    padding-bottom: 30px !important;
  }
}

@media (max-width: 1025px) {
  .wp-block-columns.is-hero-columns {
    flex-wrap: wrap !important;
  }

  .wp-block-columns.is-hero-columns > .wp-block-column {
    flex-basis: 100% !important;
  }
}


@media (min-width: 1260px) {

  .hero-section >  header {
    position: relative !important;
  }

  .hero-section >  header  > .ct-entry-content-block {
    position: absolute !important;
    right: 0;
    max-width: 500px !important;
  }
}

@media (min-width: 1260px) {
  header h1.page-title,
  header .ct-dynamic-data-layer {
    max-width: 600px !important;
  }
}

/* ==========================================================================
   4. ФОРМЫ (FORMS)
   ========================================================================== */

.cf7-inline .form-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.cf7-inline .form-row > * {
  min-width: 0px;
}

.cf7-inline input,
.cf7-inline select,
.cf7-inline textarea {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .cf7-inline .form-row {
    grid-template-columns: 1fr;
  }
}

.cargo-form {
  width: 100%;
}

.cargo-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: start;
}

.cargo-form__col {
  min-width: 0;
}

.cargo-form__col > *:last-child {
  margin-bottom: 0;
}

.cargo-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.cargo-form .wpcf7-response-output {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .cargo-form__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.is-dark input,
.is-dark input::placeholder {
  color: var(--theme-palette-color-6) !important;
}

.hero-section .is-page-title-form {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .is-page-title-form  p {
    padding-top: 30px;
  }
}

.wpcf7 label {
  margin-bottom: 20px;
  /* color: var(--theme-palette-color-3);*/
}

.wpcf7-checkbox {
  display: block;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .wpcf7-list-item {
    display: block;
    padding-left: 0;
    margin-left: 0;
  }
}

.is-form-logistics label {
  color: var(--theme-palette-color-3) !important;
}

.is-form-logistics input::placeholder {
  font-weight: 400;
}

.is-form-logistics .rb-legal-consent {
  margin-top: 20px;
}


/* ==========================================================================
   5. КОМПОНЕНТЫ (COMPONENTS)
   ========================================================================== */

[data-cards=boxed] .entry-card,
[data-cards=cover] .entry-card {
  --theme-box-shadow: var(--rb-theme-box-shadow);
}

.wp-block-group.bage-jur-only {
  position: relative;
}

.wp-block-group.bage-jur-only::after {
  content: "Работаем только с юридическими лицами";
  position: absolute;
  top: -20px;
  right: -10px;
  z-index: 10;
  text-transform: uppercase;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--theme-palette-color-4);
  color: #FFF;
  font-size: 12px;
  line-height: 1.5;
}

.swiper-container-outer {
  border: 1px solid var(--theme-palette-color-4);
  border-radius: 20px !important;
}

.wp-block-gutsliders-any-content .gutslider-content-inner {
  max-width: 100%;
}

/* Баннер-ссылка: весь блок кликабелен, кроме вложенных кнопок Gutenberg */

/* 1. Базовый контейнер */
.banner-cover-link {
  position: relative;
  cursor: pointer;
  background-color: #FFF;
}

/* 2. Невидимый слой-ссылка ТОЛЬКО на первую НЕ-кнопочную ссылку */
.banner-cover-link a:not(.wp-block-button__link):first-of-type::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

/* 3. Отключаем псевдоэлемент у всех остальных ссылок и вложенных <a> */
.banner-cover-link a ~ a::after,
.banner-cover-link a a::after {
  display: none !important;
}

/* 4. Слой контента поверх невидимой ссылки */
.banner-cover-link .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  pointer-events: none; /* клики проходят сквозь текст к слою z-index: 1 */
}

/* 5. Возвращаем интерактивность всем ссылкам внутри */
.banner-cover-link .wp-block-cover__inner-container a {
  pointer-events: auto;
}

/* 6. Кнопки Gutenberg должны быть ВЫШЕ невидимого слоя, чтобы кликались отдельно */
.banner-cover-link a.wp-block-button__link {
  position: relative;
  z-index: 3;
}

/* 7. СБРОС СТИЛЕЙ: ТОЛЬКО для обычных ссылок (кнопки полностью игнорируются) */
.banner-cover-link a:not(.wp-block-button__link),
.banner-cover-link a:not(.wp-block-button__link):hover,
.banner-cover-link a:not(.wp-block-button__link):visited,
.banner-cover-link a:not(.wp-block-button__link):active,
.banner-cover-link a:not(.wp-block-button__link):focus {
  color: inherit !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: none !important;
}

/* 8. Мягкий фокус для доступности (опционально) */
.banner-cover-link a:not(.wp-block-button__link):focus-visible {
  outline: 2px dashed currentColor !important;
  outline-offset: 2px;
}


/* ==========================================================================
   6. СТРАНИЦЫ / КОНТЕНТ
   ========================================================================== */

.ct-no-results {
  padding-top: 150px !important;
}

@media (max-width: 768px) {
  .ct-no-results {
    padding-top: 100px !important;
  }
}


/* ==========================================================================
   7. ПОДВАЛ (FOOTER)
   ========================================================================== */

/* Специфичных стилей для подвала пока нет — добавляйте сюда */


/* ==========================================================================
   8. УТИЛИТЫ (UTILITIES)
   ========================================================================== */

@media (min-width: 1000px) and (max-width: 1199.98px) {
  .rb-hide-desktop {
    display: none !important;
  }
}

.single-rb_services .wp-block-group {
  margin-bottom: 3.5rem;
}