/* ===== Волна — кастомні стилі поверх шаблона ===== */

html { scroll-behavior: smooth; }
[id="top"] { position: absolute; top: 0; }
#poslugy, #pro-klub, #zanyattya, #napryamky, #vidguky, #kontakty, #faq { scroll-margin-top: 100px; }

/* логотип */
.site-branding img.custom-logo { height: 52px; width: auto; max-width: none; }
#mobile-header .site-branding img.custom-logo { height: 42px; }

/* ---- контактна картка (замість форми) ---- */
.volna-contact-card {
  background: #fff;
  border-radius: 18px;
  padding: 8px 0 4px;
}
.volna-contact-list { list-style: none; margin: 0 0 26px; padding: 0; }
.volna-contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 13px 0;
  border-bottom: 1px solid #e6ecf2;
}
.volna-contact-list li:last-child { border-bottom: 0; }
.volna-contact-list .vc-k {
  flex: 0 0 150px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7a8895;
  font-weight: 500;
}
.volna-contact-list .vc-v {
  flex: 1 1 220px;
  font-size: 17px;
  line-height: 1.5;
  color: #12212f;
  font-weight: 500;
  text-decoration: none;
}
.volna-contact-list a.vc-v:hover { color: #4186bf; text-decoration: underline; }

.volna-btn {
  display: inline-block;
  margin: 0 12px 12px 0;
  padding: 15px 34px;
  border-radius: 15px;
  background: #4186bf;
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.volna-btn:hover { background: #12212f; transform: translateY(-2px); }
.volna-btn-alt { background: #12212f; }
.volna-btn-alt:hover { background: #4186bf; }

/* ---- FAQ ---- */
.volna-faq-section {
  background: #f5f7f9;
  padding: 90px 20px 100px;
}
.volna-faq-inner { max-width: 900px; margin: 0 auto; }
.volna-eyebrow {
  text-align: center;
  margin: 0 0 6px;
  color: #4186bf;
  font-size: 16px;
  letter-spacing: .04em;
}
.volna-faq-title {
  text-align: center;
  margin: 0 0 44px;
  font-family: 'Bungee', 'Unbounded', sans-serif;
  font-size: 46px;
  line-height: 1.15;
  color: #12212f;
  text-transform: uppercase;
}
.volna-faq-item {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 24px rgba(18, 33, 47, .06);
  overflow: hidden;
}
.volna-faq-q {
  cursor: pointer;
  list-style: none;
  padding: 22px 62px 22px 26px;
  position: relative;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  color: #12212f;
}
.volna-faq-q::-webkit-details-marker { display: none; }
.volna-faq-q::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: #4186bf;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
}
.volna-faq-item[open] .volna-faq-q::after { content: "–"; background: #12212f; }
.volna-faq-a { padding: 0 26px 24px; }
.volna-faq-a p { margin: 0; font-size: 17px; line-height: 1.7; color: #4d5c69; }

@media (max-width: 767px) {
  .volna-faq-section { padding: 60px 16px 70px; }
  .volna-faq-title { font-size: 32px; }
  .volna-faq-q { font-size: 17px; padding: 18px 56px 18px 20px; }
  .volna-contact-list .vc-k { flex: 0 0 100%; }
  .volna-btn { width: 100%; text-align: center; margin-right: 0; }
}

/* соцпосилання у футері */
.volna-social { list-style: none; margin: 0; padding: 0; }
.volna-social li { margin-bottom: 8px; }

/* ===== українська типографіка: прибираємо capitalize з тіла тексту ===== */
.main-navigation .menu a,
.header-navigation .menu a,
.header-contact-item,
.header-button,
.elementor-widget-text-editor p,
.elementor-widget-text-editor,
.uc_text, .uc_paragraph, .uc_post_title,
.ue-text, .ue-text p, .ue_title, .ue_subtitle,
.site-footer p, .site-footer li, .site-footer a, .site-footer .widget-title,
.volna-contact-card, .volna-contact-card *,
.volna-faq-section, .volna-faq-section *,
.wp-block-list a, .wp-block-paragraph {
  text-transform: none !important;
}

/* ===== шапка: щоб меню вміщалось в один рядок ===== */
.header-navigation .menu > li > a { padding-left: 14px; padding-right: 14px; font-size: 15px; }
.site-header-main-section-left { flex: 1 1 auto; min-width: 0; }
.site-main-header-inner-wrap .site-header-item-main-navigation { min-width: 0; }
@media (min-width: 1025px) and (max-width: 1400px) {
  .header-navigation .menu > li > a { padding-left: 9px; padding-right: 9px; font-size: 14px; }
  .header-contact-item { font-size: 22px !important; }
  .header-button { padding-left: 26px !important; padding-right: 26px !important; }
}

/* заголовки віджетів теж без capitalize */
.uc_title, .uc_content_box_title { text-transform: none !important; }
.volna-contact-list .vc-k { letter-spacing: .06em !important; }

/* слайдер: текст без capitalize */
#rev_slider_1_1 rs-layer, rs-module rs-layer { text-transform: none !important; }

/* ---- меню в один рядок (перебиваємо inline-стилі теми) ---- */
#site-navigation .header-menu-container > ul.menu > li > a,
#main-header .header-navigation .menu > li > a {
  padding-left: 13px !important;
  padding-right: 13px !important;
  font-size: 15px !important;
}
#site-navigation .header-menu-container > ul.menu { flex-wrap: nowrap !important; }
@media (max-width: 1180px) and (min-width: 1025px) {
  #site-navigation .header-menu-container > ul.menu > li > a { padding-left: 8px !important; padding-right: 8px !important; font-size: 14px !important; }
  .header-contact-item { font-size: 19px !important; }
}

/* мобільне меню */
#mobile-drawer a, #mobile-drawer .menu a { text-transform: none !important; }

/* лічильники: числа з одиницями довші за англійські — зменшуємо кегль */
.elementor-element-bc66d2c .elementor-heading-title {
  font-size: 52px !important;
  line-height: 1.15 !important;
  white-space: nowrap;
}
.elementor-element-bc66d2c .elementor-widget-text-editor p { font-size: 15px !important; }
@media (max-width: 1024px) {
  .elementor-element-bc66d2c .elementor-heading-title { font-size: 38px !important; }
}
@media (max-width: 767px) {
  .elementor-element-bc66d2c .elementor-heading-title { font-size: 34px !important; }
}

/* мобільні заголовки: українські слова довші — зменшуємо кегль і забороняємо розрив слова */
@media (max-width: 767px) {
  .elementor-heading-title,
  .volna-faq-title,
  h1, h2 {
    word-break: normal !important;
    overflow-wrap: break-word;
    hyphens: none;
  }
  .elementor-widget-heading .elementor-heading-title { font-size: clamp(24px, 7.6vw, 36px) !important; line-height: 1.15 !important; }
  .elementor-element-bc66d2c .elementor-heading-title { font-size: 30px !important; }
  rs-layer { word-break: normal !important; }
}
@media (max-width: 480px) {
  .elementor-widget-heading .elementor-heading-title { font-size: clamp(22px, 7.2vw, 30px) !important; }
}
