/* Visual layer based on the supplied new-site reference. Existing content,
   navigation destinations, forms and price-card markup remain unchanged. */
:root {
  --os-sky: #2e9bd6;
  --os-sky-deep: #17618f;
  --os-sky-soft: #e9f5fc;
  --os-mist: #f4f8fb;
  --os-ink: #1d2a33;
  --os-muted: #65798a;
  --os-red: #e23d2e;
  --os-line: #dce8f0;
  --os-shadow: 0 18px 40px rgba(23, 97, 143, .1);
}

html { scroll-behavior: auto; overflow-x: clip; }
body { overflow-x: clip; }
body #page { max-width: 100%; overflow-x: clip; }
body #page .container { width: min(calc(100% - 32px), 1320px) !important; max-width: 1320px !important; }
body .modern-header,
body .intro-section-6,
body .content-section,
body .contact-section,
body .testimonial-section {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Two-level header: identity/contact above the existing SEO navigation. */
body .modern-header.nav-wrp {
  position: relative !important;
  top: auto !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  background: #fff !important;
  border: 0;
  box-shadow: none;
  z-index: 100;
}
.modern-header > .container { position: relative; max-width: 1200px; padding-top: 12px; }
.modern-header .nav-header {
  display: flex !important;
  align-items: center;
  float: none !important;
  width: auto !important;
  height: 68px !important;
  padding: 0 0 12px !important;
  margin: 0 !important;
}
.modern-header .navbar-brand {
  display: inline-flex !important;
  float: none !important;
  align-items: center;
  gap: 12px;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--os-ink) !important;
  text-decoration: none;
}
.modern-header .navbar-brand img { display: block; width: auto !important; height: 46px !important; max-width: 72px; object-fit: contain; }
.modern-header .brand-copy { display: block; line-height: 1.25; white-space: nowrap; }
.modern-header .brand-copy strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--os-ink); }
.modern-header .brand-copy small { display: block; margin-top: 3px; font-size: 12px; color: var(--os-muted); }
.modern-header .nav-handle { display: none !important; }
.modern-header .nav.vm-item {
  display: block !important;
  float: none !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 -15px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.modern-header .nav-other {
  display: flex !important;
  flex-direction: row-reverse;
  align-items: center;
  gap: 24px;
  position: absolute !important;
  top: 12px;
  right: 15px;
  float: none !important;
  height: 56px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.modern-header .nav-other .social-icons,
.modern-header .nav-other .call-us { float: none !important; display: block !important; margin: 0 !important; padding: 0 !important; height: auto !important; }
.modern-header .call-us,
.modern-header .call-us a { color: var(--os-ink) !important; font-size: 19px !important; line-height: 1.3; font-weight: 800 !important; text-decoration: none; white-space: nowrap; }
.modern-header .zamer {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 19px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--os-red) !important;
  box-shadow: 0 10px 24px rgba(226, 61, 46, .22);
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.modern-header .nav-links {
  display: flex !important;
  align-items: center;
  gap: 5px;
  float: none !important;
  width: 100% !important;
  min-height: 54px;
  margin: 0 !important;
  padding: 8px 15px !important;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  background: var(--os-sky-soft);
  border-top: 1px solid var(--os-line);
  border-bottom: 1px solid var(--os-line);
  scrollbar-width: thin;
  scrollbar-width: none;
}
.modern-header .nav-links::-webkit-scrollbar { display: none; }
.modern-header .nav-links li { display: block !important; float: none !important; flex: 0 0 auto; margin: 0 !important; padding: 0 !important; }
.modern-header .nav-links li a {
  display: block !important;
  height: auto !important;
  padding: 7px 12px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  color: var(--os-sky-deep) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  text-decoration: none;
  white-space: nowrap;
}
.modern-header .nav-links li a:hover,
.modern-header .nav-links li a:focus { background: #fff !important; color: var(--os-sky-deep) !important; }
body .prob { display: none !important; height: 0 !important; }

/* Photograph-led opening section, retaining the existing copy and buttons. */
body .intro-section.intro-section-6 {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(460px, calc(100svh - 240px)) !important;
  padding: 44px 0 30px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #23445a;
}
body .intro-section-6 > .container { position: relative; z-index: 2; height: auto !important; min-height: 0 !important; }
body .intro-section-6 .info-wrp {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: min(100%, 900px) !important;
  max-width: 900px;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  color: #fff;
  text-shadow: 0 2px 18px rgba(4, 22, 36, .48);
  transform: none !important;
}
body .intro-section-6 .bg-section { position: absolute !important; inset: 0; width: 100% !important; max-width: 100%; height: 100% !important; z-index: 0; overflow: hidden; background-size: cover !important; background-position: center 43% !important; background-repeat: no-repeat !important; }
body.site-home .intro-section-6 .bg-section { background-image: url('/images/party_intro1.webp'); }
body .intro-section-6 .bg-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,26,40,.88) 0%, rgba(5,26,40,.62) 30%, rgba(5,26,40,.2) 56%, transparent 82%);
}
body .intro-section-6 .bg-section b { display: none; }
body .intro-section-6 h1.main-text {
  margin: 18px 0 14px !important;
  padding: 0;
  color: #fff !important;
  font-size: clamp(36px, 4vw, 54px) !important;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-transform: none;
}
body .intro-section-6 .sub-text { max-width: 850px; margin: 0 0 10px !important; color: #e5f2fa !important; font-size: clamp(16px, 1.7vw, 18px) !important; line-height: 1.43; }
body .intro-section-6 .sub-text:first-of-type { color: #fff !important; font-size: 14px !important; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
body .intro-section-6 .btn { display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; min-height: 46px; padding: 11px 22px !important; margin: 6px 8px 6px 0 !important; border-radius: 999px !important; font-size: 15px !important; font-weight: 700; line-height: 1.2; text-shadow: none; }
body .intro-section-6 .btn2 { background: var(--os-red) !important; border-color: var(--os-red) !important; color: #fff !important; box-shadow: 0 10px 24px rgba(226,61,46,.26); }
body .intro-section-6 .btn1 { background: #fff !important; border-color: #fff !important; color: var(--os-sky-deep) !important; }

/* Four reference facts directly below the photograph. */
body .os-facts { position: relative; z-index: 1; padding: 0 !important; background: var(--os-sky-deep); color: #fff; }
body .os-facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 16px; padding-bottom: 16px; }
body .os-facts-grid::before, body .os-facts-grid::after { content: none !important; display: none !important; }
body .os-facts-grid > div { min-width: 0; }
body .os-facts-grid b { display: block; color: #fff; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.16; font-weight: 800; }
body .os-facts-grid span { display: block; margin-top: 5px; color: #d1e7f4; font-size: 14px; line-height: 1.3; }

/* Reference palette on sections without altering product price-card styling. */
body .content-section { background: #fff; }
body .content-section:nth-of-type(even) { background: var(--os-mist); }
body .content-section,
body .contact-section,
body .testimonial-section { color: var(--os-ink); }
body .content-section .title,
body .content-section h2:not(.hd),
body .product-section > .container > .title,
body .contact-section .title,
body .slider-section .title,
body .testimonial-section .title {
  color: var(--os-ink);
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -.025em;
  text-transform: none;
}
body .content-section .title,
body .product-section > .container > .title { font-size: clamp(28px, 3vw, 38px); line-height: 1.18; }
body .content-section .title-sub { color: var(--os-muted); font-size: 17px; line-height: 1.65; }
body .content-section a:not(.btn),
body .contact-section a:not(.btn) { color: var(--os-sky-deep); }
body .content-section .info-box6 {
  height: 100%;
  padding: 20px;
  border: 1px solid var(--os-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(23,97,143,.08);
}
body .content-section .info-box6 .hd { color: var(--os-ink); font-weight: 750; }
body .content-section .info-box6 .sub-txt { color: var(--os-muted); }
/* Bootstrap's clearfix pseudo-elements must not occupy cells in CSS grids. */
body .os-contact-layout .row::before,
body .os-contact-layout .row::after { content: none !important; display: none !important; }
/* Keep product photographs and their captions on a consistent card baseline. */
body .product-section .product-box1 { height: 100%; }
body .product-section .product-box1 .img { height: 300px; overflow: hidden; background: #fff; }
body .product-section .product-box1 .img > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
body .product-section .product-box1 .img > a img { display: block; width: 100%; height: 100%; object-fit: contain; }
body .product-section .product-box1 .info { min-height: 124px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
body .product-section .product-box1 .info .hd { margin: 0 !important; }
/* Keep existing contact details, replace only the bottom feedback form with map. */
body .os-contact-layout { background: var(--os-mist); }
body .os-contact-layout .container-fluid { padding: 64px 24px; }
body .os-contact-layout .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 24px; width: 100%; max-width: 1320px; margin: 0 auto !important; }
body .os-contact-layout .row > .l,
body .os-contact-layout .row > .r { float: none !important; width: auto !important; min-width: 0; height: auto !important; min-height: 0 !important; margin: 0; padding: 24px !important; border: 1px solid var(--os-line); border-radius: 22px; background: #fff; box-shadow: 0 6px 18px rgba(23,97,143,.08); }
body .os-contact-layout .l .content { margin: 0; padding: 14px !important; }
body .os-contact-layout .r > a[title="Автор Сайтов"] { display: none !important; }
body .os-map { color: var(--os-ink); }
body .os-contact-layout .l .title,
body .os-map-head .title { color: var(--os-ink) !important; font-size: clamp(28px, 2.5vw, 36px) !important; line-height: 1.2; }
body .os-map-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
body .os-map-head .title { margin: 0 0 5px; font-size: clamp(26px, 2.5vw, 34px); }
body .os-map-head p { margin: 0; color: var(--os-muted); font-size: 14px; line-height: 1.4; }
body .os-map-route { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 42px; padding: 10px 16px; border: 1px solid var(--os-line); border-radius: 999px; background: #fff; color: var(--os-sky-deep); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
body .os-map-route:hover { border-color: var(--os-sky); color: var(--os-sky-deep); }
body .os-map-frame { position: relative; height: 380px; overflow: hidden; border-radius: 15px; background: linear-gradient(135deg,#e7f1f7,#d8e8f2); }
body .os-map-frame iframe { position: relative; z-index: 2; display: block; width: 100%; height: 100%; border: 0; }
body .os-map-fallback { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; margin: 0; padding: 24px; color: var(--os-muted); text-align: center; line-height: 1.5; }
body .os-map-note { margin: 10px 0 0; color: var(--os-muted); font-size: 13px; }

@media (max-width: 767px) {
  .modern-header > .container { padding-top: 10px; }
  .modern-header .nav-header { height: 60px !important; }
  .modern-header .navbar-brand img { height: 38px !important; max-width: 54px; }
  .modern-header .brand-copy strong { font-size: 15px; }
  .modern-header .brand-copy small { font-size: 10px; }
  .modern-header .nav-other { top: 10px; height: 46px !important; }
  .modern-header .nav-other .social-icons { display: none !important; }
  .modern-header .call-us,
  .modern-header .call-us a { font-size: 14px !important; }
  .modern-header .nav-links { min-height: 48px; padding: 6px 15px !important; }
  body .intro-section.intro-section-6 { min-height: 0 !important; padding: 70px 0 36px; }
  body .intro-section-6 h1.main-text { font-size: clamp(31px, 8vw, 42px) !important; }
  body .intro-section-6 .sub-text { font-size: 16px !important; }
  body .os-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
  body .content-section, body .product-section, body .slider-section, body .testimonial-section { padding-top: 48px; padding-bottom: 48px; }
  body .product-section .product-box1 .img { height: min(72vw, 300px); }
  body .product-section .product-box1 .info { min-height: 108px; }
  body .os-contact-layout .container-fluid { padding: 36px 16px; }
  body .os-contact-layout .row { grid-template-columns: 1fr; gap: 16px; }
  body .os-contact-layout .row > .l,
  body .os-contact-layout .row > .r { padding: 18px !important; }
  body .os-map-head { align-items: flex-start; flex-direction: column; }
  body .os-map-frame { height: 340px; }
}

@media (max-width: 440px) {
  .modern-header .brand-copy small { display: none; }
  .modern-header .brand-copy strong { font-size: 11px; }
  .modern-header .navbar-brand img { height: 32px !important; max-width: 44px; }
  .modern-header .call-us,
  .modern-header .call-us a { font-size: 11px !important; }
  .modern-header .navbar-brand { gap: 6px; }
  body .intro-section.intro-section-6 { padding-top: 56px; }
  body .intro-section-6 .btn { font-size: 12px !important; min-height: 42px; padding: 9px 12px !important; margin: 5px 4px 5px 0 !important; }
  body .os-facts-grid b { font-size: 20px; }
  body .os-facts-grid span { font-size: 12px; }
}

@media (max-width: 360px) {
  body .intro-section.intro-section-6 { padding-top: 40px; padding-bottom: 26px; }
  body .intro-section-6 h1.main-text { font-size: 29px !important; }
  body .intro-section-6 .sub-text { font-size: 15px !important; }
}
