.wp-theme-bidzilya {
  --bsp-public-ink: #07133b;
  --bsp-public-surface: #f0f5f7;
  --bsp-public-stroke: #dbe5eb;
  --bsp-public-accent: #52b0cd;
}

.wp-theme-bidzilya :is(.btn-primary, .btn-secondary, .btn-thirdy) {
  border-radius: 8px;
}

.wp-theme-bidzilya .btn.btn-primary {
  color: var(--bsp-public-ink);
}

.wp-theme-bidzilya .btn.btn-primary:hover {
  color: var(--bsp-public-ink);
  background-color: #80c8dc;
  border-color: #80c8dc;
}

.wp-theme-bidzilya :is(.btn, .bsp-home-phone, .bsp-certificate-preview, .bsp-appointment-address a):focus-visible {
  outline: 2px solid #246a83;
  outline-offset: 3px;
}

.wp-theme-bidzilya :is(.hero-section, .services-section, .feedback-section) :focus-visible {
  outline-color: var(--bsp-public-accent);
}

.bsp-public-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-button .bsp-home-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-button .bsp-home-phone svg { color: var(--bsp-public-accent); }

.wp-theme-bidzilya .bsp-home-hero.hero-section {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-block-size: min(550px, calc(100svh - 145px));
  padding-block: 48px;
}

.bsp-home-hero > .container { position: relative; }

.bsp-home-hero .hero-wrap {
  display: grid;
  justify-content: start;
  gap: 20px;
  width: min(100%, 565px);
}

.bsp-home-hero .hero-heading {
  margin: 0;
  letter-spacing: 0;
  text-align: start;
  overflow-wrap: anywhere;
}

.bsp-home-hero .hero-heading .bsp-home-hero-name {
  display: block;
  font-size: 52px;
  line-height: 1.08;
  text-wrap: balance;
}

.bsp-home-hero .hero-heading .bsp-home-hero-specialty {
  display: block;
  margin-top: 10px;
  color: #8bd4e7;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.22;
}

.bsp-home-hero .hero-content {
  max-width: 49ch;
  margin: 0;
  color: #dce8f3;
  font-size: 17px;
  line-height: 1.5;
  text-align: start;
}

.bsp-home-hero .hero-content > :last-child,
.bsp-home-hero .hero-content ul > li:last-child { margin-bottom: 0; }

.bsp-home-hero .hero-button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  width: 100%;
  max-width: 100%;
}

.bsp-home-hero .hero-button .btn {
  width: auto;
  min-height: 50px;
  max-width: 100%;
  padding: 10px 18px;
  white-space: normal;
}

.bsp-home-hero .hero-button .bsp-home-phone {
  justify-content: flex-start;
  margin-top: 0;
}

.bsp-home-hero-media {
  position: absolute;
  inset: 0 0 0 max(38%, calc((100% - var(--container)) / 2 + 465px));
  z-index: -1;
  display: block;
  mask-image: linear-gradient(to right, transparent, #000 30%);
}

.bsp-home-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% top;
}

@media (min-width: 981px) and (max-width: 1250px) {
  .bsp-home-hero .hero-wrap { max-width: 53%; }
  .bsp-home-hero .hero-heading .bsp-home-hero-name { font-size: 44px; }
  .bsp-home-hero-media { inset-inline-start: 49%; }
  .bsp-home-hero-media img { object-position: 57% top; }
}

@media (max-width: 980px) {
  .wp-theme-bidzilya .bsp-home-hero.hero-section {
    display: block;
    min-block-size: 0;
    padding-block: 30px 0;
  }
  .bsp-home-hero .hero-wrap { gap: 14px; }
  .bsp-home-hero .hero-heading .bsp-home-hero-name { font-size: 42px; }
  .bsp-home-hero-media {
    position: relative;
    inset: auto;
    z-index: auto;
    margin-top: 16px;
    aspect-ratio: 12 / 5;
    mask-image: none;
  }
  .bsp-home-hero-media img { position: absolute; inset: 0; }
}

@media (max-width: 767px) {
  .bsp-home-hero .hero-heading .bsp-home-hero-name { font-size: 34px; }
  .bsp-home-hero .hero-heading .bsp-home-hero-specialty {
    margin-top: 7px;
    font-size: 21px;
  }
  .bsp-home-hero .hero-content { font-size: 16px; }
  .bsp-home-hero-media { aspect-ratio: 5 / 3; }
  .bsp-home-hero-media img { object-position: center 25%; }
}

.wp-theme-bidzilya #feedback {
  scroll-margin-top: 106px;
}

.bsp-appointment-address {
  max-width: 460px;
  margin-top: 24px;
  padding: 18px 20px;
  border-inline-start: 2px solid var(--bsp-public-accent);
  background: #091b41;
  color: #fff;
  text-align: start;
}

.bsp-appointment-address .bsp-appointment-address-label {
  margin: 0 0 6px;
  font-weight: 700;
}

.bsp-appointment-address address {
  font-style: normal;
  line-height: 1.5;
}

.bsp-appointment-address a {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  color: #9bdcf0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wp-theme-bidzilya #feedback .wpcf7-form :is(input, select, textarea):not([type="hidden"]) {
  border-radius: 8px;
}

.wp-theme-bidzilya #services .services-item__wrap {
  border-radius: 8px;
}

.wp-theme-bidzilya #services .services-item__title {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  margin-inline: 20px;
  text-align: start;
}

.wp-theme-bidzilya #services .services-item__title svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  color: var(--bsp-public-ink);
  background: #dbeef4;
}

.wp-theme-bidzilya #services .services-item__title span {
  overflow-wrap: anywhere;
}

.wp-theme-bidzilya .blog-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--bsp-public-stroke);
  border-radius: 8px;
  background: #fff;
}

.wp-theme-bidzilya .blog-item__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: var(--bsp-public-surface);
}

.wp-theme-bidzilya .blog-item__title {
  overflow-wrap: anywhere;
}

.wp-theme-bidzilya .blog-item__wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wp-theme-bidzilya .blog-item__button {
  margin-top: auto;
}

.wp-theme-bidzilya .bsp-wide-blog > .page-body-main {
  flex: 1 1 100%;
  min-width: 0;
}

.wp-theme-bidzilya .bsp-wide-blog .blog-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.wp-theme-bidzilya .bsp-wide-blog .blog-item {
  width: 100%;
  max-width: none;
}

.bsp-certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.bsp-certificates-full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bsp-certificates-grid .bsp-certificate-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--bsp-public-stroke);
  border-radius: 8px;
  background: #fff;
  color: var(--bsp-public-ink);
}

.bsp-certificate-card .bsp-certificate-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bsp-public-surface);
}

.bsp-certificate-card .bsp-certificate-preview img {
  position: absolute;
  inset: 12px;
  display: block;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
}

.bsp-certificate-card figcaption {
  display: grid;
  gap: 6px;
  padding: 16px;
  overflow-wrap: anywhere;
}

.bsp-certificate-card figcaption h3 {
  margin: 0;
  color: inherit;
  font-size: 17px;
  line-height: 1.4;
}

.bsp-certificate-card figcaption p {
  margin: 0;
  color: #40516a;
  font-size: 14px;
  line-height: 1.45;
}

.bsp-certificates-link { text-align: center; }
.bsp-certificates-link .btn { gap: 8px; }

@media (max-width: 1023px) {
  .wp-theme-bidzilya .bsp-wide-blog .blog-items,
  .bsp-certificates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .wp-theme-bidzilya .bsp-wide-blog .blog-items,
  .bsp-certificates-featured { grid-template-columns: minmax(0, 1fr); }
  .bsp-certificates-full { gap: 12px; }
  .wp-theme-bidzilya #feedback { scroll-margin-top: 76px; }
  .bsp-appointment-address { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-theme-bidzilya #services .services-item__inner { transition: none; }
}
