@font-face {
  font-family: 'Foglihten No06';
  src: url('../fonts/FoglihtenNo06.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Header follows the metallic tone of the new logo; the rest stays gold. */
.site-header .header-inner {
  border: 1px solid rgba(192, 192, 192, 0.28);
}

.site-header .main-nav .menu li a,
.site-header .header-address,
.site-header .header-phone {
  color: #c0c0c0;
}

.site-header .main-nav .menu li a:hover,
.site-header .main-nav .menu li.current-menu-item a,
.site-header .main-nav .menu li.current_page_item a,
.site-header .header-address:hover,
.site-header .header-phone:hover {
  color: #e8e8e8;
}

.site-header .header-address svg,
.site-header .header-phone svg {
  color: #c0c0c0;
  stroke: currentColor;
}

.site-header .header-social a {
  border-color: rgba(192, 192, 192, 0.35);
}

.site-header .header-social a:hover {
  border-color: #e8e8e8;
  background: rgba(232, 232, 232, 0.08);
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.figma-section h2,
.property-strip__header h2,
.services-showcase__title,
.lead-panel__text h2,
.faq-section h2,
.sborka-quiz__head h2,
.sborka-about__title,
.property-card-title {
  font-family: 'Foglihten No06', 'PT Serif', Georgia, serif !important;
  font-weight: 400 !important;
}

.platforms-section > .container {
  width: 100%;
  max-width: var(--container-width);
}

/* Keep imported property photos visible in the mobile card layout. */
@media (max-width: 720px) {
  .property-card-image,
  .property-card-image a {
    display: block !important;
    width: 100% !important;
    height: clamp(220px, 62vw, 280px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .property-card-image img,
  .property-card-photo,
  .property-card-photo--fallback {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

.sborka-design__decor {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: clamp(28px, 5vw, 64px);
  background: #000;
}

.sborka-design__video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.services-showcase__card--new-buildings {
  grid-column: 1 / -1;
  min-height: 150px;
}

.services-showcase__card {
  min-height: 270px;
}

.services-showcase__content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services-showcase__content em {
  flex: 1;
}

@media (hover: hover) and (min-width: 721px) {
  .hero-cta,
  .figma-button,
  .sborka-about__button,
  .sborka-quiz__next,
  .lead-form__submit,
  .catalog-filter__submit,
  .woocommerce .button,
  .woocommerce button.button {
    background: transparent !important;
    border: 1px solid #d3b95e !important;
    color: #d3b95e !important;
    box-shadow: none !important;
  }

  .hero-cta:hover,
  .figma-button:hover,
  .sborka-about__button:hover,
  .sborka-quiz__next:hover,
  .lead-form__submit:hover,
  .catalog-filter__submit:hover,
  .woocommerce .button:hover,
  .woocommerce button.button:hover {
    background: transparent !important;
    border-color: #e8d776 !important;
    color: #e8d776 !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
  }

  .services-showcase__more:hover {
    color: #d3b95e;
    text-decoration: underline;
    background: transparent;
    box-shadow: none;
    transform: none;
    filter: none;
  }

  .services-showcase__card:hover {
    transform: none;
  }
}

.services-showcase__more {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Quiet metallic outline, with only a subtle one-pixel hover lift. */
.hero-cta,
.figma-button,
.sborka-about__button,
.sborka-quiz__next,
.lead-form__submit,
.catalog-filter__submit,
.woocommerce .button,
.woocommerce button.button,
.services-showcase__more,
.property-strip__arrow,
.company-video-arrow,
.property-strip__header > a {
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  background: linear-gradient(#0d2117, #0d2117) padding-box, var(--metallic-silver) border-box !important;
  color: #d3d3d3 !important;
  box-shadow: none !important;
  transform: translateY(0) !important;
  filter: none !important;
  transition: transform 0.18s ease !important;
}

.services-showcase__more {
  border: 0 !important;
  background: transparent !important;
}

.hero-cta:hover,
.figma-button:hover,
.sborka-about__button:hover,
.sborka-quiz__next:hover,
.lead-form__submit:hover,
.catalog-filter__submit:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.services-showcase__more:hover,
.property-strip__arrow:hover,
.company-video-arrow:hover,
.property-strip__header > a:hover {
  border-color: transparent !important;
  background: linear-gradient(#0d2117, #0d2117) padding-box, var(--metallic-silver) border-box !important;
  color: #d3d3d3 !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
  filter: none !important;
}

.services-showcase__more:hover {
  background: transparent !important;
}

.sborka-design__head-logo { display: none; }

.sborka-design__decor .sborka-design__logo {
  display: block;
  width: min(100%, 140px);
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

.sborka-design__grid {
  align-items: stretch;
  grid-auto-rows: minmax(220px, auto);
}

.sborka-design__decor,
.sborka-design__card {
  min-height: 220px;
  height: 100%;
  box-sizing: border-box;
}

.services-showcase__card--new-buildings {
  position: relative;
  overflow: hidden;
  background: url('../images/services/new-buildings-desktop.png') center / cover no-repeat;
}

.services-showcase__card--new-buildings::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 19, 13, 0.9), rgba(7, 19, 13, 0.38));
}

.services-showcase__card--new-buildings .services-showcase__content {
  position: relative;
  z-index: 1;
}

.service-popup[hidden] {
  display: none;
}

.service-popup {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.service-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.service-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 42px;
  background: linear-gradient(145deg, #12241b, #07120c);
  border: 1px solid rgba(211, 185, 94, 0.55);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.service-popup__dialog h2 {
  margin: 8px 0 10px;
}

.service-popup__lead {
  margin-bottom: 22px;
}

.service-popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #f0f0f0;
  font-size: 28px;
  cursor: pointer;
}

.service-popup__form {
  display: grid;
  gap: 12px;
}

.service-popup__form input[type="text"],
.service-popup__form input[type="tel"],
.service-popup__form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(240, 240, 240, 0.18);
  background: #1e1e1e;
  color: #f0f0f0;
  font: inherit;
}

.service-popup__form textarea {
  resize: vertical;
}

.service-popup__consent {
  display: flex;
  gap: 8px;
  color: rgba(240, 240, 240, 0.68);
  font-size: 12px;
}

.service-popup__status {
  min-height: 22px;
  margin: 0;
  color: #d5bb60;
}

body.service-popup-open {
  overflow: hidden;
}

@media (hover: none), (max-width: 720px) {
  .hero-cta:hover,
  .figma-button:hover,
  .sborka-about__button:hover,
  .sborka-quiz__next:hover,
  .lead-form__submit:hover,
  .catalog-filter__submit:hover,
  .woocommerce .button:hover,
  .woocommerce button.button:hover,
  .services-showcase__more:hover,
  .property-strip__arrow:hover,
  .company-video-arrow:hover {
    filter: none;
    transform: none;
    box-shadow: none;
  }

  .hero-cta:focus,
  .figma-button:focus,
  .sborka-about__button:focus,
  .sborka-quiz__next:focus,
  .lead-form__submit:focus,
  .catalog-filter__submit:focus,
  .woocommerce .button:focus,
  .woocommerce button.button:focus,
  .services-showcase__more:focus,
  .property-strip__arrow:focus,
  .company-video-arrow:focus {
    outline: none;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .services-showcase__card--new-buildings {
    min-height: 130px;
  }

  .service-popup {
    padding: 14px;
  }

  .service-popup__dialog {
    padding: 34px 20px 24px;
  }
}

.sborka-design__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sborka-design__head-logo {
  width: clamp(82px, 9vw, 132px);
  height: auto;
  flex: 0 0 auto;
}

.reviews-section .figma-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.reviews-heading-rating {
  width: 265px;
  max-width: 42vw;
  height: auto;
  flex: 0 0 auto;
}

@media (min-width: 721px) and (max-width: 1366px) {
  .property-strip {
    padding-right: 16px;
    padding-left: 16px;
  }

  .property-strip__inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .property-strip__scroller {
    grid-auto-columns: minmax(0, calc((100% - 36px) / 3));
    min-width: 0;
  }

  .property-strip__scroller--woocommerce .property-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .property-strip__scroller--woocommerce .property-card-image {
    height: clamp(190px, 19vw, 240px);
  }
}

/* Single property page: switch before the laptop sidebar becomes cramped. */
@media (max-width: 1366px) {
  .single-property-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .single-property-details > main,
  .single-property-sidebar,
  .single-property-gallery,
  .single-property-gallery > * {
    min-width: 0;
    max-width: 100%;
  }

  .single-property-sidebar {
    position: static;
    width: 100%;
  }
}

.specs-list li {
  gap: 20px;
  min-width: 0;
}

.specs-list li span {
  min-width: 0;
}

.specs-list li span:last-child {
  max-width: 68%;
  overflow-wrap: anywhere;
  text-align: right;
}

@media (max-width: 600px) {
  .single-property-gallery .gallery-main {
    height: min(68vw, 320px);
  }

  .single-property-details .property-card {
    padding: 20px !important;
  }

  .specs-list li {
    align-items: flex-start;
    gap: 12px;
  }

  .specs-list li span:last-child {
    max-width: 60%;
  }
}

@media (max-width: 720px) {
  .sborka-design__head,
  .reviews-section .figma-section-header {
    align-items: flex-start;
  }

  .sborka-design__head-logo {
    width: 72px;
  }

  .reviews-heading-rating {
    width: 148px;
    max-width: 45vw;
  }
}

@media (max-width: 640px) {
  .services-showcase__card--new-buildings {
    background-image: url('../images/services/new-buildings-mobile.png');
  }
}

/* Final laptop sizing: cards must fit the visible carousel viewport. */
@media (min-width: 721px) and (max-width: 1366px) {
  .property-strip__inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .property-strip__scroller {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-auto-columns: calc((100% - 36px) / 3) !important;
    scroll-padding-left: 0;
  }

  .property-strip__scroller--woocommerce .property-card,
  .property-strip__scroller--woocommerce .property-card.woocommerce {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .property-strip__scroller--woocommerce .property-card-title,
  .property-strip__scroller--woocommerce .property-card-title a {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .property-strip__scroller--woocommerce .property-card-body {
    min-width: 0;
    overflow: hidden;
  }
}
