/* Inner pages hero: hard cap height to prevent Elementor large paddings. */
body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type {
  height: 176px !important;
  min-height: 176px !important;
  max-height: 176px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type > .elementor-container {
  height: 100% !important;
  min-height: 0 !important;
  align-items: center !important;
}

body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type > .elementor-container > .elementor-column {
  display: flex;
  align-items: center;
}

body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type .elementor-widget-wrap.elementor-element-populated {
  width: 100%;
  justify-content: center;
  align-content: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type .elementor-widget-icon-list {
  display: none !important;
}

body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type .elementor-widget-heading {
  margin-bottom: 0 !important;
}

body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type .elementor-widget-heading .elementor-heading-title {
  margin: 0 !important;
}

body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type .elementor-widget-text-editor {
  width: 100%;
}

body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type .elementor-widget-text-editor .elementor-widget-container {
  max-width: 860px;
  margin: 10px auto 0;
  text-align: center;
}

body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type .elementor-widget-text-editor p {
  margin: 0;
  color: #fff !important;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.6;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1024px) {
  body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type {
    height: 156px !important;
    min-height: 156px !important;
    max-height: 156px !important;
  }
}

@media (max-width: 767px) {
  body:not(.home) [data-elementor-type="wp-page"] > .elementor-section:first-of-type {
    height: 148px !important;
    min-height: 148px !important;
    max-height: 148px !important;
  }
}

.swal2-container.darinov-synthesia-overlay {
  z-index: 10000 !important;
  background: rgba(11, 11, 11, 0.88) !important;
}

.swal2-container.darinov-synthesia-overlay .swal2-popup.darinov-synthesia-popup {
  width: auto !important;
  max-width: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.swal2-container.darinov-synthesia-overlay .swal2-popup.darinov-synthesia-popup .darinov-synthesia-html {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.swal2-container.darinov-synthesia-overlay .swal2-popup .jkit-swal-closeButton,
.swal2-container.darinov-synthesia-overlay .swal2-popup .swal2-close {
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  transform: none !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff !important;
  z-index: 10001 !important;
}

.darinov-synthesia-frame {
  position: relative;
  overflow: hidden;
  width: min(1066px, calc(100vw - 32px), calc((100vh - 96px) * 16 / 9));
  max-height: calc(100vh - 96px);
  aspect-ratio: 1920 / 1080;
  margin: 0 auto;
  background: #000;
  border-radius: 22px;
}

.darinov-synthesia-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none !important;
  max-height: none !important;
  border: 0;
  padding: 0;
  margin: 0;
}

@media (max-width: 767px) {
  .swal2-container.darinov-synthesia-overlay .swal2-popup .jkit-swal-closeButton,
  .swal2-container.darinov-synthesia-overlay .swal2-popup .swal2-close {
    top: 10px !important;
    right: 10px !important;
  }

  .darinov-synthesia-frame {
    width: min(calc(100vw - 16px), calc((100vh - 76px) * 16 / 9));
    max-height: calc(100vh - 76px);
    border-radius: 16px;
  }
}

.elementor-97 .elementor-element.elementor-element-14e20ce3:not(.elementor-motion-effects-element-type-background),
.elementor-97 .elementor-element.elementor-element-14e20ce3 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-152 .elementor-element.elementor-element-248d5a71:not(.elementor-motion-effects-element-type-background),
.elementor-152 .elementor-element.elementor-element-248d5a71 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-142 .elementor-element.elementor-element-5350780b:not(.elementor-motion-effects-element-type-background),
.elementor-142 .elementor-element.elementor-element-5350780b > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-178 .elementor-element.elementor-element-25034050:not(.elementor-motion-effects-element-type-background),
.elementor-178 .elementor-element.elementor-element-25034050 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: url("cta/bckg.webp") !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.elementor-97 .elementor-element.elementor-element-14e20ce3 > .elementor-background-overlay,
.elementor-152 .elementor-element.elementor-element-248d5a71 > .elementor-background-overlay,
.elementor-142 .elementor-element.elementor-element-5350780b > .elementor-background-overlay,
.elementor-178 .elementor-element.elementor-element-25034050 > .elementor-background-overlay {
  background-color: #1c130b !important;
  opacity: 0.58 !important;
}

/* SEO helper blocks inserted before the footer: keep charter spacing and readability. */
section.darinov-seo-block {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 72px !important;
}

section.darinov-seo-block .elementor-widget-text-editor .elementor-widget-container {
  max-width: 980px;
}

section.darinov-seo-block .elementor-widget-text-editor ul {
  margin-top: 14px;
}

@media (max-width: 1024px) {
  section.darinov-seo-block {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 56px !important;
  }
}

@media (max-width: 767px) {
  section.darinov-seo-block {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 40px !important;
  }
}

.darinov-form-panel {
  background: linear-gradient(180deg, #f8f1e7 0%, #fff 100%);
  border: 1px solid rgba(77, 38, 10, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(32, 17, 0, 0.08);
  padding: 28px;
}

.darinov-form-panel h3 {
  margin: 0 0 8px;
  color: #201100;
  font-size: 28px;
}

.darinov-form-panel p {
  margin: 0 0 20px;
  color: #6b625a;
}

.darinov-form {
  display: grid;
  gap: 16px;
}

.darinov-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.darinov-form-field {
  display: grid;
  gap: 8px;
}

.darinov-form-field-full {
  grid-column: 1 / -1;
}

.darinov-form-legal {
  margin: 0;
  color: #6b625a;
  font-size: 14px;
  line-height: 1.6;
}

.darinov-form label {
  color: #4d260a;
  font-weight: 700;
  font-size: 14px;
}

.darinov-form input,
.darinov-form select,
.darinov-form textarea {
  width: 100%;
  border: 1px solid rgba(77, 38, 10, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #201100;
}

.darinov-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: #9e6726;
}

.darinov-form textarea {
  min-height: 150px;
  resize: vertical;
}

.darinov-form input:focus,
.darinov-form select:focus,
.darinov-form textarea:focus {
  outline: 0;
  border-color: #c0843d;
  box-shadow: 0 0 0 4px rgba(192, 132, 61, 0.14);
}

.darinov-form-captcha-shell {
  display: block;
}

.darinov-form-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1.53fr) minmax(110px, 0.55fr);
  gap: 14px;
  align-items: center;
}

.darinov-form-captcha-question {
  border-radius: 16px;
  border: 1px solid rgba(77, 38, 10, 0.12);
  background: linear-gradient(180deg, rgba(253, 187, 122, 0.14), rgba(255, 255, 255, 0.96));
  color: #201100;
  font-weight: 700;
  padding: 10px 12px 10px 18px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.darinov-form-captcha-question span {
  flex: 1;
  white-space: nowrap;
}

.darinov-form button.darinov-form-captcha-refresh {
  width: 42px;
  height: 42px;
  border: 0;
  background: #9e6726;
  color: #201100;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.darinov-form button.darinov-form-captcha-refresh:hover,
.darinov-form button.darinov-form-captcha-refresh:focus-visible {
  background: #7a4a17;
  color: #201100;
}

.darinov-form-captcha-refresh svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: #201100;
}

.darinov-form-consent {
  display: grid;
  gap: 10px;
}

.darinov-form-consent-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.darinov-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.darinov-form button {
  border: 0;
  border-radius: 16px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #c0843d, #9e6726);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(158, 103, 38, 0.22);
}

.darinov-form button[disabled] {
  opacity: 0.68;
  cursor: wait;
}

.darinov-form-status {
  margin: 0;
  min-height: 24px;
  color: #4d260a;
}

.darinov-form-status.is-error {
  color: #a12626;
}

.darinov-form-hp {
  position: absolute;
  left: -9999px;
}

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

  .darinov-form-captcha-row {
    grid-template-columns: 1fr;
  }

  .darinov-form-panel {
    padding: 22px;
  }
}

:root {
  --darinov-header-bg: rgb(32, 17, 0);
  --darinov-header-bg-soft: rgb(32, 17, 0);
  --darinov-logo-max-h: 60px;
}

.elementor-location-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1200 !important;
}

.elementor-location-header [data-id="c8f8999"] {
  background-color: var(--darinov-header-bg) !important;
  overflow: hidden !important;
  max-height: 140px;
  opacity: 1;
  transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease, margin 0.2s ease;
}

.elementor-location-header [data-id="637aa8a0"] .elementor-icon-list-icon i {
  color: #fff !important;
}

.elementor-location-header [data-id="637aa8a0"] .elementor-icon-list-icon svg {
  fill: #fff !important;
  width: 1em !important;
  height: 1em !important;
  display: inline-block !important;
}

.elementor-location-header [data-id="2924a609"] .elementor-icon-list-text {
  color: #fff !important;
}

.elementor-location-header [data-id="6fa3de43"] {
  position: sticky !important;
  top: 0 !important;
  z-index: 1201 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  background-color: var(--darinov-header-bg) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  transition: none !important;
  transform: none !important;
}

.elementor-location-header [data-id="6fa3de43"].hide-sticky {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.elementor-location-header [data-id="b70bc94"] {
  background-color: var(--darinov-header-bg) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: none !important;
  opacity: 1 !important;
}

.elementor-location-header [data-id="b70bc94"]::before {
  background-color: var(--darinov-header-bg) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
}

.elementor-location-header [data-id="2a79f8bd"] .elementor-widget-container {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
  overflow: visible !important;
}

.elementor-location-header [data-id="59737c2a"],
.elementor-location-header [data-id="59737c2a"] .elementor-widget-wrap,
.elementor-location-header [data-id="2a79f8bd"] {
  overflow: visible !important;
}

.elementor-location-header [data-id="2a79f8bd"] .elementor-widget-container img,
.elementor-location-header [data-id="1cf447d5"] .jkit-nav-site-title .jkit-nav-logo img {
  object-fit: contain !important;
  max-height: var(--darinov-logo-max-h) !important;
  height: auto !important;
  width: auto !important;
  max-width: 240px !important;
}

.elementor-location-header [data-id="1cf447d5"] .jkit-nav-site-title .jkit-nav-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
}

.elementor-location-header .darinov-desktop-brand-link,
.elementor-location-header .darinov-menu-brand-link,
.elementor-location-header [data-id="1cf447d5"] .jkit-nav-site-title .jkit-nav-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: fit-content !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  padding: 4px 0.35em 4px 0 !important;
  text-decoration: none !important;
}

.elementor-location-header .darinov-brand-text {
  font-family: "Gantai", Heebo, Lato, sans-serif !important;
  font-size: calc(var(--darinov-logo-max-h) * 0.5) !important;
  font-weight: 800 !important;
  letter-spacing: 0.15em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  padding-right: 0.1em !important;
}

.elementor-location-header [data-id="2a79f8bd"] .elementor-widget-container .darinov-brand-text,
.elementor-location-header [data-id="1cf447d5"] .jkit-nav-site-title .jkit-nav-logo .darinov-brand-text {
  color: #fdbb7a !important;
}

.elementor-location-header [data-id="1cf447d5"] .jkit-hamburger-menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

@media (min-width: 1025px) {
  .elementor-location-header [data-id="b70bc94"] > .elementor-container {
    display: flex !important;
    align-items: center !important;
  }

  .elementor-location-header [data-id="59737c2a"] {
    width: 34% !important;
  }

  .elementor-location-header [data-id="7cad5f45"] {
    width: 44% !important;
  }

  .elementor-location-header [data-id="4883f62d"] {
    width: 22% !important;
  }

  .elementor-location-header [data-id="1cf447d5"] .jkit-menu > li > a {
    white-space: nowrap !important;
  }

  .elementor-location-header.darinov-header-compact [data-id="c8f8999"] {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
  }

  .elementor-location-header.darinov-header-compact [data-id="c8f8999"] .elementor-container {
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .elementor-location-header.darinov-header-compact [data-id="6fa3de43"] {
    top: 0 !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 1024px) {
  .elementor-location-header [data-id="1cf447d5"] .jkit-hamburger-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .elementor-location-header [data-id="1cf447d5"] .jkit-nav-identity-panel .jkit-nav-site-title .jkit-nav-logo .darinov-brand-text {
    color: #4d260a !important;
  }

  .elementor-location-header [data-id="6fa3de43"] {
    top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 767px) {
  .elementor-location-footer .elementor-element.elementor-element-67a297f img {
    width: auto !important;
    max-width: 140px !important;
    max-height: 48px !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* Services page: force card 1 to match cards 2/3 behavior */
.elementor-152 .elementor-element.elementor-element-25d0c39b .jeg-elementor-kit.jkit-icon-box .jkit-icon-box-wrapper {
  background-color: #ffffff !important;
  text-align: left !important;
  padding: 40px 40px 0 40px !important;
  box-shadow: 0 3px 15px 0 rgba(0, 0, 0, 0.1) !important;
}

.elementor-152 .elementor-element.elementor-element-25d0c39b .jeg-elementor-kit.jkit-icon-box:hover .jkit-icon-box-wrapper {
  background-color: var(--e-global-color-accent) !important;
  padding: 0 40px 40px 40px !important;
}

.elementor-152 .elementor-element.elementor-element-25d0c39b .jeg-elementor-kit.jkit-icon-box .title {
  color: var(--e-global-color-primary) !important;
}

.elementor-152 .elementor-element.elementor-element-25d0c39b .jeg-elementor-kit.jkit-icon-box .icon-box.icon-box-body .icon-box-description {
  color: var(--e-global-color-text) !important;
}

.elementor-152 .elementor-element.elementor-element-25d0c39b .jeg-elementor-kit.jkit-icon-box:hover .title,
.elementor-152 .elementor-element.elementor-element-25d0c39b .jeg-elementor-kit.jkit-icon-box:hover .icon-box.icon-box-body .icon-box-description {
  color: #ffffff !important;
}

.elementor-152 .elementor-element.elementor-element-25d0c39b .jeg-elementor-kit.jkit-icon-box .icon-box > .icon {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  width: 60px !important;
  color: #9e6726 !important;
}

.elementor-152 .elementor-element.elementor-element-25d0c39b .jeg-elementor-kit.jkit-icon-box .icon-box > .icon svg,
.elementor-152 .elementor-element.elementor-element-25d0c39b .jeg-elementor-kit.jkit-icon-box .icon-box > .icon img {
  width: 40px !important;
}
