/*
 * V317 page-wide daytime photographic background with transparent glass panels.
 * Hebrew blocks share one right edge; Russian blocks share one left edge.
 * Direction follows the document language: RTL for HE and LTR for RU.
 */
html {
  background: #f7f3ed;
}

body {
  position: relative;
  isolation: isolate;
  background: transparent !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)),
    url("/assets/tashkent-day-page-bg-v311.webp") center top / cover no-repeat;
}

header {
  background: rgba(5, 31, 55, 0.94) !important;
  border-bottom-color: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

header .brand,
header .brand-title,
header .nav-links,
header .nav-links a,
header .lang-switch,
header .lang-switch a,
header .header-contact-strip,
header .header-contact-strip a {
  color: #fff !important;
}

header .brand-title {
  color: #e8b75d !important;
}

header .brand-sub,
header .header-contact-strip {
  color: rgba(255, 255, 255, 0.76) !important;
}

header .header-contact-strip {
  background: rgba(3, 23, 42, 0.48) !important;
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

html[lang="he"] body .hero,
html[lang="ru"] body .hero {
  min-height: 610px !important;
  display: grid;
  align-items: center;
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(4, 28, 52, 0.94) 0%,
    rgba(4, 28, 52, 0.76) 38%,
    rgba(4, 28, 52, 0.2) 70%,
    rgba(4, 28, 52, 0.04) 100%
  );
}

html[lang="he"][dir="rtl"] body .hero {
  background: linear-gradient(
    270deg,
    rgba(4, 28, 52, 0.94) 0%,
    rgba(4, 28, 52, 0.76) 38%,
    rgba(4, 28, 52, 0.2) 70%,
    rgba(4, 28, 52, 0.04) 100%
  );
}

.hero .hero-grid {
  display: block !important;
}

.hero .hero-grid > div:first-child {
  width: min(610px, 100%);
  max-width: 610px !important;
}

html[dir="rtl"] .hero .hero-grid > div:first-child {
  margin-inline-start: auto;
}

.hero aside {
  display: none !important;
}

.hero h1,
.hero .lead,
.hero p {
  color: #fff !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.22);
}

.hero .btn-primary {
  color: #102638 !important;
  background: linear-gradient(135deg, #f0c66d, #dca84e) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22) !important;
}

main > section:not(.hero):not(.contact) > .container {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 24px 70px rgba(7, 33, 52, 0.14);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

:is(.card, .route, .form, .faq-item, .seo-content, .service-audience-v171, .seo-journey-v267) {
  background: rgba(255, 255, 255, 0.52) !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 14px 38px rgba(7, 33, 52, 0.11) !important;
  backdrop-filter: blur(15px) saturate(118%);
  -webkit-backdrop-filter: blur(15px) saturate(118%);
}

:is(.dark-box, .contact-box) {
  background: rgba(5, 31, 55, 0.66) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
}

:is(.dark-box, .contact-box) :is(.meta-item, .contact-direct a) {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.field :is(input, select, textarea) {
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

footer {
  background: rgba(255, 255, 255, 0.36) !important;
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}

body .faq-section {
  padding-block: 46px !important;
  background: transparent !important;
}

html[dir="rtl"] :is(header .container, main > section > .container, footer .container) {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] :is(.cards-3, .routes, .faq-grid, .contact-box) {
  direction: rtl;
}

html[dir="ltr"] :is(header .container, main > section > .container, footer .container) {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] :is(.cards-3, .routes, .faq-grid, .contact-box) {
  direction: ltr;
}

@media (min-width: 769px) {
  html[dir="rtl"] .contact > .container {
    margin-inline-start: max(
      20px,
      calc((100vw - var(--max) - 16px) / 2)
    ) !important;
    margin-inline-end: auto !important;
  }

  html[dir="rtl"] .hero > .container {
    width: var(--max) !important;
    max-width: var(--max) !important;
    margin-inline-start: max(
      20px,
      calc((100vw - var(--max) - 16px) / 2)
    ) !important;
    margin-inline-end: auto !important;
  }

  html[dir="rtl"] .hero .hero-grid > div:first-child {
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
  }

  html[dir="ltr"] .contact > .container {
    margin-inline-start: max(
      20px,
      calc((100vw - var(--max) - 16px) / 2)
    ) !important;
    margin-inline-end: auto !important;
  }

  html[dir="ltr"] .hero > .container {
    width: var(--max) !important;
    max-width: var(--max) !important;
    margin-inline-start: max(
      20px,
      calc((100vw - var(--max) - 16px) / 2)
    ) !important;
    margin-inline-end: auto !important;
  }

  html[dir="ltr"] .hero .hero-grid > div:first-child {
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
  }
}

@media (min-width: 769px) and (max-width: 1219px) {
  html[dir="rtl"] .hero > .container,
  html[dir="ltr"] .hero > .container {
    width: calc(100vw - 56px) !important;
    max-width: none !important;
  }
}

@media (max-width: 760px) {
  body::before {
    background:
      linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
      url("/assets/tashkent-day-page-bg-v311-mobile.webp") center top / cover no-repeat;
  }

  .hero,
  html[dir="rtl"] .hero {
    min-height: 610px !important;
    background: linear-gradient(
      180deg,
      rgba(4, 28, 52, 0.9) 0%,
      rgba(4, 28, 52, 0.66) 62%,
      rgba(4, 28, 52, 0.3) 100%
    ) !important;
  }

  .hero .hero-grid > div:first-child {
    width: 100%;
  }

  main > section:not(.hero):not(.contact) > .container {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.4) !important;
  }

  :is(.card, .route, .form, .faq-item, .seo-content, .service-audience-v171, .seo-journey-v267) {
    background: rgba(255, 255, 255, 0.64) !important;
  }

  body .faq-section {
    padding-block: 36px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    transform: none;
  }
}
