/* Стили плагинов и мелкие доработки, которых нет в теме Astra. */

/* Yoast SEO: хлебные крошки (Astra: astra_entry_top) */
.ast-breadcrumbs-wrapper { margin-bottom: 1.5em; font-size: 0.93em; }
.ast-breadcrumbs-wrapper #breadcrumbs { margin: 0; }
.ast-breadcrumbs-wrapper .breadcrumb_last { color: var(--ast-global-color-3); }
.ast-separate-container .ast-article-post .ast-breadcrumbs-wrapper,
.ast-separate-container .ast-article-single .ast-breadcrumbs-wrapper { margin-top: -0.5em; }

/* Yoast: блоки FAQ и How-To */
.schema-faq-section { margin-bottom: 1.5em; }
.schema-faq-question { display: block; font-size: 1.1em; margin-bottom: 0.3em; }
.schema-how-to-steps { padding-left: 1.5em; }
.schema-how-to-step { margin-bottom: 1em; }
.schema-how-to-step-name { display: block; font-weight: 700; }
.schema-how-to-total-time { font-style: italic; }

/* CoBlocks: карта */
.wp-block-coblocks-map { margin-bottom: 1.5em; }
.wp-block-coblocks-map iframe { display: block; width: 100%; border: 0; }

/* Встраивание видео YouTube */
.wp-block-embed iframe { max-width: 100%; }
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper { position: relative; }
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 50%; }
.wp-block-embed.wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { padding-top: 56.25% !important; }
.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before { padding-top: 75% !important; }

/* Astra Widgets: адрес и соцсети */
.ast-widget-address-wrapper .address, .ast-widget-address-wrapper .phone, .ast-widget-address-wrapper .email { margin-bottom: 0.5em; }
.astra-widget-social-profiles-inner.inline ul { display: flex; flex-wrap: wrap; gap: 0.6em; padding: 0; margin: 0; list-style: none; }
.astra-widget-social-profiles-inner .ast-widget-icon { display: inline-flex; align-items: center; justify-content: center; }
.astra-widget-social-profiles-inner .ast-widget-icon svg { width: 30px; height: 30px; fill: #ffffff; transition: fill 0.2s; }
.astra-widget-social-profiles-inner a:hover .ast-widget-icon svg { fill: var(--ast-global-color-0); }
#secondary .astra-widget-social-profiles-inner .ast-widget-icon svg { fill: var(--ast-global-color-3); }

/* Список виджетов с разделителями, как в Astra */
.widget ul { margin-left: 0; list-style: none; }

/* Call Now Button (плагин call-now-button): видна только на телефонах */
#callnowbutton { display: none; }
@media screen and (max-width: 650px) {
  #callnowbutton {
    display: flex; align-items: center; gap: 10px;
    position: fixed; right: 20px; bottom: 15px; z-index: 10;
    text-decoration: none;
  }
  #callnowbutton .cnb-circle {
    width: 65px; height: 65px; border-radius: 50%;
    background: #000000; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
  }
  #callnowbutton .cnb-circle svg { width: 30px; height: 30px; fill: #ffffff; }
  #callnowbutton .cnb-text {
    background: #000000; color: #ffffff; font-size: 15px; line-height: 1;
    padding: 10px 14px; border-radius: 18px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  }
  #callnowbutton:active .cnb-circle { transform: scale(0.95); }
}

/* Ссылки «Метки» в записи */
.ast-terms-link a { text-decoration: none; }

.entry-content img { height: auto; }

/* Главная: блок «Команда ЯрБуксир» */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2em 1.5em;
  margin-bottom: 2em;
}
.team-member { text-align: center; }
.team-member .wp-block-image { margin: 0 0 0.8em; }
.team-member .wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.team-member .wp-block-image figcaption { display: none; }
.team-member h2 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin: 0 0 0.2em; }
.team-member h3 { font-size: clamp(0.95rem, 2vw, 1.15rem); margin: 0 0 0.3em; font-weight: 400; }
.team-member p { margin: 0; font-size: 0.93em; }
.team-photo { width: 100%; min-height: clamp(220px, 45vw, 430px); }
@media (max-width: 700px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5em 1em; }
}

/* Главная: блоки «Наши услуги» — картинка с текстом и галереи */
.home .wp-block-media-text { margin-bottom: 1em; }
.home .wp-block-media-text__media img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.home .wp-block-gallery .blocks-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 1em;
  margin-bottom: 1.5em;
}
.home .wp-block-gallery .blocks-gallery-item { width: auto; margin: 0; }
.home .wp-block-gallery .blocks-gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 600px) {
  .home .wp-block-media-text .wp-block-media-text__content { padding: 1em 0.5em; }
  .home .wp-block-media-text.has-background .wp-block-media-text__content { padding: 1em; }
  .home .wp-block-gallery .blocks-gallery-grid { gap: 0.5em; }
}
