/**
 * Layout overrides for our own templates only (`body.xa-layout`).
 *
 * Reason: the Elementor kit stylesheet targets headings with a higher specificity
 * (`.elementor-kit-59 h2`), which was inflating our H1 to 72px and card titles to
 * 48px. Scoping every override to `body.xa-layout` fixes our pages without touching
 * the legacy Elementor pages that still rely on the kit.
 */

/* ---------- type scale ---------- */

body.xa-layout h1,
body.xa-layout h2,
body.xa-layout h3,
body.xa-layout h4 {
  letter-spacing: normal;
  text-transform: none;
}

body.xa-layout .h-hero {
  font-size: 48px !important;
  line-height: 1.14 !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: var(--navy) !important;
}

body.xa-layout .h-section {
  font-size: 38px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--navy) !important;
}

body.xa-layout .h-lg {
  font-size: 28px !important;
  line-height: 1.28 !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: var(--navy) !important;
}

body.xa-layout .h-md {
  font-size: 22px !important;
  line-height: 1.32 !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
}

body.xa-layout .h-sm {
  font-size: 17px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
}

body.xa-layout .card__title {
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere;
}

body.xa-layout .tile__title {
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

body.xa-layout .door-series-card__title {
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: var(--navy, #0f172a) !important;
}

body.xa-layout .lead {
  font-size: 18px !important;
  line-height: 1.65 !important;
  color: #334155 !important;
}

body.xa-layout .p {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
}

body.xa-layout .p-sm {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
}

body.xa-layout .eyebrow {
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
}

body.xa-layout .eyebrow.h2,
body.xa-layout h2.eyebrow {
  font-size: 12px !important;
}

/* ---------- buttons: readable label on the red ground ---------- */

body.xa-layout .btn--primary,
body.xa-layout .btn--primary:visited {
  background: #e60012 !important;
  color: #ffffff !important;
  border-color: #e60012 !important;
}

body.xa-layout .btn--primary:hover {
  background: #c30010 !important;
  border-color: #c30010 !important;
  color: #ffffff !important;
}

body.xa-layout .btn--primary * {
  color: #ffffff !important;
}

body.xa-layout .btn--secondary {
  background: #ffffff !important;
  color: #132843 !important;
  border-color: #cbd6e2 !important;
}

body.xa-layout .btn--secondary:hover {
  color: #e60012 !important;
  border-color: #e60012 !important;
}

/* ---------- language switcher above any injected widget ---------- */

.lang {
  position: relative;
  z-index: 20;
}

/* GTranslate is no longer used for switching; hide its floating control. */
#gt_float_wrapper,
.gtranslate_wrapper,
.gt_container {
  display: none !important;
}

/* ---------- narrow screens: Russian labels are longer ---------- */

@media (max-width: 1439px) {
  [lang="ru"] body.xa-layout .nav__link,
  [lang="ru"] .nav__link {
    font-size: 12px !important;
    padding-inline: 5px !important;
    letter-spacing: 0 !important;
  }
}

/* ---------- media: show the whole product instead of cropping ---------- */

body.xa-layout .card__media img,
body.xa-layout .tile__media img {
  object-fit: contain !important;
  background: #ffffff;
}

body.xa-layout .card__media {
  background: #ffffff;
}

/* ---------- long-form copy ---------- */

body.xa-layout .prose {
  max-width: 980px !important;
}

body.xa-layout .prose p {
  font-size: 15px !important;
  line-height: 1.85 !important;
}

/* ---------- responsive type scale (the fixed 48px leaked into mobile) ---------- */

@media (max-width: 767px) {
  body.xa-layout .h-hero {
    font-size: 31px !important;
    line-height: 1.2 !important;
  }
  body.xa-layout .h-section {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }
  body.xa-layout .h-lg {
    font-size: 22px !important;
    line-height: 1.32 !important;
  }
  body.xa-layout .h-md {
    font-size: 19px !important;
    line-height: 1.38 !important;
  }
  body.xa-layout .h-sm {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  body.xa-layout .lead {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.xa-layout .h-hero {
    font-size: 40px !important;
    line-height: 1.16 !important;
  }
  body.xa-layout .h-section {
    font-size: 30px !important;
    line-height: 1.22 !important;
  }
}

/* ---------- accordion questions must wrap, not clip ---------- */

body.xa-layout .acc__q,
body.xa-layout .acc__q > span {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.xa-layout .acc__q > span {
  flex: 1 1 auto;
  min-width: 0;
}

body.xa-layout .acc__q {
  min-width: 0;
  height: auto;
}
/* ---------- button reset: Elementor kit + Hello reset were repainting every button ----------
   .elementor-kit-9 button { background:#E66445; color:#fff } and
   hello-elementor reset [type="button"] { border:1px solid #CC3366 } both outrank our
   component classes, on every page. Reset them inside our layout scope only. */

body.xa-layout button,
body.xa-layout [type="button"],
body.xa-layout .menu-btn,
body.xa-layout .acc__q,
body.xa-layout .tab,
body.xa-layout .gallery__thumb,
body.xa-layout .drawer__toggle,
body.xa-layout .drawer__flat {
  background-color: transparent !important;
  border-color: var(--line-strong) !important;
  color: var(--navy) !important;
}

body.xa-layout .acc__q {
  background-color: #ffffff !important;
}

body.xa-layout .acc__row[data-open="true"] .acc__q {
  color: var(--accent) !important;
}

body.xa-layout .acc__row[data-open="true"] .acc__icon,
body.xa-layout .acc__icon {
  color: var(--fg-subtle) !important;
}

body.xa-layout .acc__row[data-open="true"] .acc__icon {
  color: var(--accent) !important;
}

body.xa-layout .menu-btn,
body.xa-layout .icon-btn {
  background-color: #ffffff !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--navy) !important;
}

body.xa-layout .tab {
  border-color: transparent !important;
}

body.xa-layout .tab[aria-selected="true"] {
  background-color: var(--accent-wash) !important;
  color: var(--accent) !important;
  border-bottom-color: var(--accent) !important;
}

body.xa-layout .gallery__thumb {
  border: 1px solid var(--line) !important;
  background-color: var(--surface) !important;
}

body.xa-layout .gallery__thumb[aria-pressed="true"] {
  border-color: var(--accent) !important;
}

/* ---------- very small screens: keep the headline to four lines ---------- */

@media (max-width: 479px) {
  body.xa-layout .h-hero {
    font-size: 27px !important;
    line-height: 1.22 !important;
  }
}
/* ---------- image loading: fade in when decoded, never flash a blank box ---------- */

body.xa-layout img {
  opacity: 0;
  transition: opacity 320ms ease-out;
}

body.xa-layout img.xa-loaded,
body.xa-layout .hero__media img {
  opacity: 1;
}

body.xa-layout .media-frame,
body.xa-layout .card__media,
body.xa-layout .tile__media,
body.xa-layout .gallery__main {
  background: #f4f6f9;
}

body.xa-layout .hero__media img {
  object-position: center 45%;
}

/* ---------- finishes strip (own product textures) ---------- */

body.xa-layout .finishes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

@media (min-width: 768px) {
  body.xa-layout .finishes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body.xa-layout .finishes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

body.xa-layout .finish {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f4f6f9;
}

body.xa-layout .finish img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease-out;
}

body.xa-layout .finish:hover img {
  transform: scale(1.05);
}

body.xa-layout .finish span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(to top, rgba(11, 27, 48, 0.82), rgba(11, 27, 48, 0));
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ---------- video / VR frame ---------- */

body.xa-layout .vr-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #0b1b30;
  overflow: hidden;
}

body.xa-layout .vr-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

body.xa-layout .hero__watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
}

body.xa-layout .hero__watch:hover {
  border-bottom-color: #fff;
}
/* ---------- 360 showroom card ---------- */

body.xa-layout .vr-card {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

@media (min-width: 768px) {
  body.xa-layout .vr-card {
    grid-template-columns: 1.6fr 1fr;
    align-items: stretch;
  }
}

body.xa-layout .vr-card > img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

body.xa-layout .vr-card__body {
  display: grid;
  gap: var(--s-sm);
  align-content: center;
  padding: var(--s-lg);
}

body.xa-layout .vr-card__body .btn {
  justify-self: start;
}
/* ---------- click-to-load 360 viewer ---------- */

body.xa-layout .vr-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1b30;
  overflow: hidden;
}

body.xa-layout .vr-embed > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

body.xa-layout .vr-embed__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: var(--s-md);
}

body.xa-layout .vr-embed__hint {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  letter-spacing: 0.02em;
}

body.xa-layout .vr-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

body.xa-layout .vr-embed.is-loaded > img,
body.xa-layout .vr-embed.is-loaded .vr-embed__overlay {
  display: none;
}

/* ---------- company film ---------- */

body.xa-layout .film {
  border: 1px solid var(--line);
  background: #0b1b30;
  aspect-ratio: 16 / 9;
}

body.xa-layout .film video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0b1b30;
}
/* =========================================================================
   Typography revision, modelled on vicaima.com/en: lighter display weights,
   tighter optical tracking, wider micro-labels, more airy body copy.
   No fonts, images or code are taken from that site.
   ========================================================================= */

body.xa-layout {
  font-size: 16px !important;
  line-height: 1.68 !important;
  color: #334155 !important;
}

body.xa-layout .h-hero {
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.12 !important;
  color: var(--navy) !important;
}

body.xa-layout .h-section {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.18 !important;
  color: var(--navy) !important;
}

body.xa-layout .h-lg {
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.25 !important;
  color: var(--navy) !important;
}

body.xa-layout .h-md {
  font-weight: 600 !important;
  letter-spacing: -0.012em !important;
  line-height: 1.3 !important;
  color: var(--navy) !important;
}

body.xa-layout .h-sm {
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  line-height: 1.4 !important;
  color: var(--navy) !important;
}

body.xa-layout .lead {
  font-size: 18px !important;
  line-height: 1.65 !important;
  color: #334155 !important;
  max-width: 68ch;
}

body.xa-layout .p {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
  max-width: 72ch;
}

body.xa-layout .p-sm {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
  max-width: 72ch;
}

body.xa-layout .eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  font-weight: 600 !important;
}

body.xa-layout .mono,
body.xa-layout .idx {
  letter-spacing: 0.12em !important;
}

body.xa-layout .nav__link {
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
}

body.xa-layout .btn {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
}

body.xa-layout .card,
body.xa-layout .tile,
body.xa-layout .form,
body.xa-layout .spec,
body.xa-layout .acc,
body.xa-layout .side-tree,
body.xa-layout .gallery__main,
body.xa-layout .gallery__thumb,
body.xa-layout .media-frame,
body.xa-layout .data-band,
body.xa-layout .step,
body.xa-layout .qitem {
  border-radius: 0 !important;
}

body.xa-layout .tile__title,
body.xa-layout .card__title {
  letter-spacing: -0.005em !important;
}

/* ---------- animated gradient: hero veil, slow and subtle ---------- */

@property --xa-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 120deg;
}

body.xa-layout .hero__scrim {
  background: linear-gradient(
    var(--xa-angle, 120deg),
    rgba(11, 27, 48, 0.9) 0%,
    rgba(11, 27, 48, 0.55) 38%,
    rgba(230, 0, 18, 0.18) 62%,
    rgba(11, 27, 48, 0.02) 82%
  );
  background-size: 220% 220%;
  animation: xa-gradient-shift 22s ease-in-out infinite alternate;
}

@keyframes xa-gradient-shift {
  0% {
    --xa-angle: 108deg;
    background-position: 0% 50%;
  }
  50% {
    --xa-angle: 132deg;
    background-position: 60% 40%;
  }
  100% {
    --xa-angle: 118deg;
    background-position: 100% 60%;
  }
}

/* CTA: a travelling sheen on hover only, never at rest */
body.xa-layout .btn--primary {
  position: relative;
  overflow: hidden;
}

body.xa-layout .btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 620ms ease;
  pointer-events: none;
}

body.xa-layout .btn--primary:hover::after {
  transform: translateX(120%);
}

@media (prefers-reduced-motion: reduce) {
  body.xa-layout .hero__scrim {
    animation: none;
  }
  body.xa-layout .btn--primary::after {
    display: none;
  }
}

/* ---------- virtual tours: factory 360 and showroom 360 kept apart ---------- */

body.xa-layout .hero__tours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  margin-top: 4px;
}

body.xa-layout .hero__tours .hero__watch {
  margin-top: 0;
}

/* anchor targets sit below the sticky header */
body.xa-layout #factory-360,
body.xa-layout #showroom-360,
body.xa-layout #tours {
  scroll-margin-top: 104px;
}

body.xa-layout .tour-grid {
  display: grid;
  gap: var(--s-md);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  body.xa-layout .tour-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-lg);
  }
}

body.xa-layout .tour-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

body.xa-layout .tour-card:hover,
body.xa-layout .tour-card:focus-visible {
  border-color: var(--navy-deep);
  box-shadow: 0 10px 28px rgba(11, 27, 48, 0.1);
  transform: translateY(-2px);
}

body.xa-layout .tour-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1b30;
}

body.xa-layout .tour-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms ease;
}

body.xa-layout .tour-card:hover .tour-card__media img {
  transform: scale(1.04);
}

body.xa-layout .tour-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 27, 48, 0.86);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
}

body.xa-layout .tour-card__body {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: var(--s-md) var(--s-md) var(--s-lg);
}

body.xa-layout .tour-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

body.xa-layout .tour-card__body .h-sm {
  margin: 0;
}

body.xa-layout .tour-card__go {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-deep);
}

body.xa-layout .tour-card:hover .tour-card__go {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  body.xa-layout .tour-card,
  body.xa-layout .tour-card__media img {
    transition: none;
  }
  body.xa-layout .tour-card:hover {
    transform: none;
  }
  body.xa-layout .tour-card:hover .tour-card__media img {
    transform: none;
  }
}
/* English paragraphs inside RTL pages: keep sentence punctuation on the correct side. */
body.xa-layout .tour-card__body p,
body.xa-layout .tour-card__body h3,
body.xa-layout .tour-card__tag,
body.xa-layout .tour-card__go,
body.xa-layout .vr-card__body p {
  unicode-bidi: plaintext;
}

/* ---------- language switcher lives on the dark top bar ----------
   The generic control reset painted it navy on a navy bar, which made EN/ES/RU/AR
   disappear. Restate the intended light palette here, scoped to the top bar. */

body.xa-layout .topbar .lang__item {
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

body.xa-layout .topbar .lang__item:hover,
body.xa-layout .topbar .lang__item:focus-visible {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.55) !important;
}

body.xa-layout .topbar .lang__item[aria-current="true"] {
  color: #ffffff !important;
  border-bottom-color: var(--accent) !important;
}

body.xa-layout .topbar .topbar__contacts a {
  color: rgba(255, 255, 255, 0.72) !important;
}

body.xa-layout .topbar .topbar__contacts a:hover {
  color: #ffffff !important;
}

/* ---------- Homepage Hero with Clean Modern Factory Panoramic Banner ---------- */
body.xa-layout .hero__media img {
  object-position: right center !important;
}

@media (min-width: 1024px) {
  body.xa-layout .hero__media {
    height: 64vh !important;
    min-height: 520px !important;
    max-height: 680px !important;
  }
  body.xa-layout .hero__scrim {
    display: block !important;
    background: linear-gradient(
      95deg,
      rgba(15, 23, 42, 0.88) 0%,
      rgba(15, 23, 42, 0.72) 32%,
      rgba(15, 23, 42, 0.38) 50%,
      rgba(15, 23, 42, 0.08) 66%,
      rgba(15, 23, 42, 0) 78%
    ) !important;
    animation: none !important;
  }
  body.xa-layout .hero__plate {
    align-items: center !important;
    padding-top: var(--s-sm) !important;
  }
  body.xa-layout .hero__copy {
    max-width: 580px !important;
  }
  body.xa-layout .hero__plate .h-hero {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  }
  body.xa-layout .hero__plate .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4) !important;
    font-size: 16px !important;
    line-height: 1.68 !important;
  }
  body.xa-layout .hero__plate .eyebrow {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  }
  body.xa-layout .hero__plate .chip {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    backdrop-filter: blur(4px) !important;
  }
  body.xa-layout .hero__plate .btn--secondary {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
    backdrop-filter: blur(4px) !important;
  }
  body.xa-layout .hero__plate .btn--secondary:hover {
    background: #ffffff !important;
    color: var(--navy) !important;
    border-color: #ffffff !important;
  }
  body.xa-layout .hero__plate .hero__watch {
    color: rgba(255, 255, 255, 0.88) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  }
  body.xa-layout .hero__plate .hero__watch:hover {
    color: #ffffff !important;
  }
}

