:root {
  --brand-gold: #fed403;
  --text-color: #000000;
  --header-glass: rgba(8, 12, 20, 0.42);
  --header-glass-scroll: rgba(8, 12, 20, 0.62);
  --section-dark: #12223B;
  --section-dark-mid: #152a45;
  --section-dark-deep: #0a1220;
  --section-light: #ffffff;
  --section-light-alt: #f4f7fb;
  --section-light-muted: #eef2f7;
}

/* ============================================================
   Ритм секцій + декор (узори, блики, текстури)
   ============================================================ */

/* Спільні патерни */
:root {
  --pat-dots-light: radial-gradient(circle, rgba(18, 34, 59, 0.07) 1px, transparent 1px);
  --pat-dots-dark: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  --pat-grid-light: linear-gradient(rgba(18, 34, 59, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 34, 59, 0.04) 1px, transparent 1px);
  --pat-grid-dark: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

@keyframes agrodar-gold-shimmer {
  0%, 100% { background-position: 0% 0%; opacity: 1; }
  50% { background-position: 0% 100%; opacity: 0.88; }
}

@keyframes agrodar-ring-drift {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.85; }
  50% { transform: rotate(6deg) scale(1.04); opacity: 1; }
}

@keyframes agrodar-glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

@keyframes agrodar-float-soft {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  #cta-box.cta-box::before,
  #cta-box.cta-box::after,
  #about-us.about-us::before,
  .our-service::after,
  .why-choose-us::before {
    animation: none !important;
  }
}

#about-us.about-us,
.why-choose-us,
.our-faqs,
.contact-us,
.our-service,
.our-projects,
.our-testimonial,
.our-blog,
.main-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* CTA: overflow visible — фото людини не обрізається */
#cta-box.cta-box {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

#about-us.about-us > .container,
.why-choose-us > .container,
#cta-box.cta-box > .container,
.our-faqs > .container,
.contact-us > .container,
.our-service > .light-bg-section,
.our-projects > .light-bg-section,
.our-testimonial > .container,
.our-blog > .container,
.main-footer > .container {
  position: relative;
  z-index: 1;
}

/* —— About: світлий + крапки + золотий блік —— */
#about-us.about-us {
  background-color: var(--section-light);
  background-image:
    var(--pat-dots-light),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(254, 212, 3, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 40% 35% at 4% 92%, rgba(61, 122, 184, 0.1) 0%, transparent 58%);
  background-size: 22px 22px, auto, auto;
}

#about-us.about-us::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(254, 212, 3, 0.22);
  border-radius: 50%;
  animation: agrodar-ring-drift 18s ease-in-out infinite;
  pointer-events: none;
}

#about-us.about-us::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--brand-gold) 50%, transparent 95%);
  opacity: 0.55;
  pointer-events: none;
}

/* —— Services: темний + сітка + арка + watermark —— */
.our-service {
  background-color: var(--section-dark) !important;
  background-image:
    var(--pat-grid-dark),
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(254, 212, 3, 0.11) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(61, 122, 184, 0.14) 0%, transparent 55%),
    linear-gradient(168deg, #1a3150 0%, var(--section-dark) 46%, #0c1728 100%) !important;
  background-size: 48px 48px, auto, auto, auto !important;
}

.our-service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../images/our-service-bg.png") right top no-repeat;
  background-size: min(520px, 55vw) auto;
  opacity: 0.07;
  pointer-events: none;
}

.our-service::after {
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  top: 12%;
  height: 42%;
  border: 1px solid rgba(254, 212, 3, 0.12);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 18% 18% 0 0;
  animation: agrodar-glow-breathe 10s ease-in-out infinite;
  pointer-events: none;
}

/* —— Why choose: світлий + діагональні смуги —— */
.why-choose-us {
  background-color: var(--section-light-alt);
  background-image:
    repeating-linear-gradient(
      -42deg,
      transparent,
      transparent 36px,
      rgba(18, 34, 59, 0.025) 36px,
      rgba(18, 34, 59, 0.025) 37px
    ),
    var(--pat-dots-light),
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(254, 212, 3, 0.1) 0%, transparent 60%);
  background-size: auto, 20px 20px, auto;
}

.why-choose-us::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: -40px;
  right: 8%;
  border: 2px solid rgba(18, 34, 59, 0.06);
  border-radius: 24px;
  transform: rotate(12deg);
  animation: agrodar-float-soft 9s ease-in-out infinite;
  pointer-events: none;
}

/* —— Projects: темний + хвиляста лінія знизу —— */
.our-projects {
  background-color: var(--section-dark) !important;
  background-image:
    var(--pat-dots-dark),
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(61, 122, 184, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(254, 212, 3, 0.09) 0%, transparent 52%),
    linear-gradient(175deg, #142438 0%, var(--section-dark) 52%, #0a1525 100%) !important;
  background-size: 26px 26px, auto, auto, auto !important;
}

.our-projects::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../images/our-projects-bg.png") left bottom no-repeat;
  background-size: min(480px, 50vw) auto;
  opacity: 0.08;
  pointer-events: none;
}

.our-projects::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0%, transparent 100%);
  pointer-events: none;
}

/* —— CTA: світлий + золота смуга + людина внизу (ПК) —— */
#cta-box.cta-box {
  background-color: #fafbfd !important;
  background-image:
    var(--pat-grid-light),
    radial-gradient(ellipse 50% 80% at 88% 100%, rgba(254, 212, 3, 0.16) 0%, transparent 58%),
    linear-gradient(118deg, rgba(254, 212, 3, 0.12) 0%, transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%) !important;
  background-size: 40px 40px, auto, auto, auto !important;
  border-top: none;
  border-bottom: none;
}

#cta-box.cta-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand-gold) 0%, #f5a800 50%, var(--brand-gold) 100%);
  background-size: 100% 200%;
  animation: agrodar-gold-shimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

#cta-box.cta-box::after {
  content: '';
  position: absolute;
  right: 6%;
  bottom: 18%;
  width: clamp(180px, 22vw, 280px);
  height: clamp(180px, 22vw, 280px);
  border: 1px dashed rgba(18, 34, 59, 0.14);
  border-radius: 50%;
  animation: agrodar-ring-drift 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

#cta-box.cta-box .section-title h2 {
  color: var(--section-dark);
}

#cta-box.cta-box .section-title p {
  color: rgba(18, 34, 59, 0.72);
}

#cta-box.cta-box .section-btn .btn-default:hover {
  border-color: var(--section-dark);
}

@media (min-width: 992px) {
  #cta-box.cta-box {
    padding-top: 90px !important;
    padding-bottom: 0 !important;
  }

  #cta-box.cta-box > .container {
    padding-bottom: 0;
  }

  #cta-box.cta-box .row {
    align-items: stretch;
    min-height: 300px;
  }

  #cta-box.cta-box .col-lg-5 {
    position: relative;
    min-height: 280px;
  }

  #cta-box.cta-box .cta-box-image {
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 2;
    line-height: 0;
    text-align: right;
    pointer-events: none;
  }

  #cta-box.cta-box .cta-box-image::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 62%;
    height: 14px;
    background: radial-gradient(ellipse, rgba(18, 34, 59, 0.18) 0%, transparent 72%);
    pointer-events: none;
    z-index: -1;
  }

  #cta-box.cta-box .cta-box-image img {
    display: block;
    width: auto;
    max-width: min(460px, 38vw);
    height: auto;
    margin: 0;
    vertical-align: bottom;
  }
}

/* —— Testimonials: темний + лапки-водяний знак —— */
.our-testimonial {
  background-color: var(--section-dark) !important;
  background-image:
    var(--pat-grid-dark),
    radial-gradient(ellipse 55% 45% at 50% 110%, rgba(254, 212, 3, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #0f1c30 0%, var(--section-dark) 40%, #152a45 100%) !important;
  background-size: 44px 44px, auto, auto !important;
}

.our-testimonial::before {
  content: '“';
  position: absolute;
  top: 40px;
  left: 4%;
  font-size: clamp(120px, 18vw, 220px);
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(254, 212, 3, 0.07);
  pointer-events: none;
  user-select: none;
}

/* —— FAQ: світлий + ілюстрація + м'який узор —— */
.our-faqs {
  background-color: var(--section-light-muted) !important;
  background-image:
    var(--pat-dots-light),
    radial-gradient(ellipse 45% 40% at 100% 0%, rgba(233, 247, 254, 0.9) 0%, transparent 65%),
    url("../images/our-faqs-bg.png") !important;
  background-position: 0 0, 0 0, right bottom !important;
  background-repeat: repeat, no-repeat, no-repeat !important;
  background-size: 24px 24px, auto, auto !important;
}

.our-faqs::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 34, 59, 0.1), transparent);
}

/* —— Blog: темний + золоті акценти по кутах —— */
.our-blog {
  background-color: var(--section-dark) !important;
  background-image:
    var(--pat-dots-dark),
    radial-gradient(circle at 0% 0%, rgba(254, 212, 3, 0.1) 0%, transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(61, 122, 184, 0.12) 0%, transparent 32%),
    linear-gradient(160deg, var(--section-dark-mid) 0%, var(--section-dark) 100%) !important;
  background-size: 22px 22px, auto, auto, auto !important;
}

.our-blog::before,
.our-blog::after {
  content: '';
  position: absolute;
  width: 64px;
  height: 64px;
  border-color: rgba(254, 212, 3, 0.25);
  border-style: solid;
  pointer-events: none;
}

.our-blog::before {
  top: 28px;
  left: 28px;
  border-width: 2px 0 0 2px;
}

.our-blog::after {
  bottom: 28px;
  right: 28px;
  border-width: 0 2px 2px 0;
}

/* —— Contact: блакитний + хвилі —— */
.contact-us {
  background-color: var(--secondary-color, #E9F7FE) !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q30 0 60 20 T120 20' fill='none' stroke='%2312223B' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(254, 212, 3, 0.12) 0%, transparent 55%),
    url("../images/contact-us-bg.png") !important;
  background-position: 0 0, 0 0, center center !important;
  background-repeat: repeat-x, no-repeat, no-repeat !important;
  background-size: 240px 80px, auto, cover !important;
}

/* —— Footer: глибокий + зірки-крапки —— */
.main-footer {
  background-color: var(--section-dark-deep) !important;
  background-image:
    var(--pat-dots-dark),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(254, 212, 3, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0e1929 0%, var(--section-dark-deep) 100%) !important;
  background-size: 20px 20px, auto, auto !important;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
  opacity: 0.7;
  pointer-events: none;
}

/* Текст на темних секціях */
.our-service .section-title h2,
.our-service .section-title p,
.our-projects .section-title h2,
.our-projects .section-title p,
.our-testimonial .section-title h2,
.our-testimonial .section-title p,
.our-blog .section-title h2,
.our-blog .section-title p {
  color: #ffffff;
}

.our-service .section-title h3,
.our-projects .section-title h3,
.our-testimonial .section-title h3,
.our-blog .section-title h3 {
  color: rgba(255, 255, 255, 0.92);
}

/* Картки на темному */
.our-testimonial .testimonial-item,
.our-blog .blog-item {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.our-testimonial .testimonial-slider .swiper-pagination .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.our-testimonial .testimonial-slider .swiper-pagination .swiper-pagination-bullet-active,
.our-blog .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--brand-gold);
}

.our-blog .swiper-pagination .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

/* Живіші картки на темному (ПК) */
@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
  .our-testimonial .testimonial-item,
  .our-blog .blog-item {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  .our-testimonial .testimonial-item:hover,
  .our-blog .blog-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  }

  .why-choose-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .why-choose-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(18, 34, 59, 0.1);
    border-color: rgba(254, 212, 3, 0.35);
  }
}

/* Переходи між секціями — м'яка хвиля */
.our-service,
.our-projects,
.our-testimonial,
.our-blog {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#about-us.about-us,
.why-choose-us,
.our-faqs,
.contact-us {
  box-shadow: inset 0 1px 0 rgba(18, 34, 59, 0.05);
}

/* Шапка: прозора темна з blur (перекриває мобільні перевизначення) */
header.main-header,
header.main-header .header-sticky {
  background: var(--header-glass) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

header.main-header .header-sticky.active {
  background: var(--header-glass-scroll) !important;
}

header.main-header .main-menu ul li a {
  color: #fff !important;
}

header.main-header .main-menu ul li a:hover,
header.main-header .main-menu ul li a:focus {
  color: var(--brand-gold) !important;
}

header.main-header .header-btn .btn-default {
  background: var(--brand-gold) !important;
  color: #0a0a0a !important;
  padding: 16px 22px !important;
  font-size: 15px;
}

header.main-header .header-btn .btn-default::before,
header.main-header .header-btn .btn-default::after {
  display: none !important;
}

header.main-header .header-btn .btn-default:hover,
header.main-header .header-btn .btn-default:focus {
  background: #fee533 !important;
  color: #0a0a0a !important;
}

/* Hero заходить під прозору шапку — видно blur */
.hero,
.hero.bg-section.hero-slider {
  margin-top: 0 !important;
}

/* Подвал: золотые заголовки и соцсети (как стрелки) */
.main-footer .footer-links h3 {
  color: var(--brand-gold);
}

.main-footer .footer-links ul li:hover a {
  color: var(--brand-gold);
}

.main-footer .footer-copyright .footer-social-links ul li a {
  color: var(--brand-gold);
  border-color: var(--brand-gold);
}

.main-footer .footer-copyright .footer-social-links ul li a:hover {
  color: var(--white-color, #fff);
  border-color: var(--white-color, #fff);
}

/* Hero: підзаголовок білий на першому екрані */
.hero-content .section-title h3 {
  color: #ffffff;
}

/* Жовта зірочка біля назв блоків */
.section-title h3::before {
  content: '★ ';
  color: var(--brand-gold);
}

.hero-content .section-title h3::before,
.cta-box .section-title h3::before {
  content: none;
}

/* Кнопки hero — однакова ширина */
.hero-content-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
}

.hero-content-body .btn-default {
  min-width: 280px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.hero-content-body .btn-default.btn-highlighted {
  margin-left: 0;
}

.hero-slider-layout .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--brand-gold);
}

/* Hero slider: однакова висота слайдів, точки внизу на фото (мобільна) */
/* About: на телефоні спочатку текст, потім зображення */
@media (max-width: 991.98px) {
  #about-us.about-us > .container > .row {
    display: flex;
    flex-direction: column;
  }

  #about-us.about-us > .container > .row > .col-lg-7 {
    order: 1;
  }

  #about-us.about-us > .container > .row > .col-lg-5 {
    order: 2;
  }

  #about-us.about-us .about-image {
    margin-bottom: 0;
    margin-top: 30px;
  }
}

@media (max-width: 991.98px) {
  .hero.bg-section.hero-slider {
    padding: 0 !important;
    overflow: hidden;
    background: #0e0d1b;
  }

  .hero-slider-layout,
  .hero-slider-layout .swiper {
    position: relative;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 520px;
    max-height: none;
    max-width: 100%;
    overflow: hidden !important;
  }

  .hero-slider-layout .swiper-wrapper {
    height: 100% !important;
  }

  .hero-slider-layout .swiper-slide {
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .hero-slider-layout .hero-slide {
    height: 100% !important;
    min-height: 100% !important;
    width: 100%;
    max-width: 100%;
    padding: calc(68px + 24px) 16px 104px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow-x: hidden !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .hero-slider-layout .hero-slide .container {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-slider-layout .hero-slide .row,
  .hero-slider-layout .hero-slide .col-lg-12 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .hero-content {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-content .section-title {
    overflow: visible;
    margin-bottom: 0;
  }

  .hero-content .section-title h3 {
    line-height: 1.35;
    margin-bottom: 14px;
    overflow: visible;
    hyphens: none;
  }

  .hero-content .section-title h3::before,
  .hero-content .section-title h3::after {
    content: none !important;
    display: none !important;
  }

  /* SplitText у hero — без зсуву символів (артефакт «/» зникає) */
  .hero-content .text-anime-style-3,
  .hero-content .text-anime-style-3 .split-line,
  .hero-content .text-anime-style-3 div,
  .hero-content .text-anime-style-3 span {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    perspective: none !important;
  }

  .hero-content .section-title h1.text-anime-style-3 {
    perspective: none !important;
    margin-bottom: 12px;
  }

  .hero-content-body {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-top: 20px;
    padding-bottom: 6px;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .hero-content-body .btn-default {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-slider-layout .swiper-pagination {
    position: absolute !important;
    bottom: max(14px, env(safe-area-inset-bottom, 14px)) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10;
    transform: none !important;
    line-height: 0;
    pointer-events: none;
  }

  .hero-slider-layout .swiper-pagination .swiper-pagination-bullet {
    pointer-events: auto;
  }
}

a, a:active, a:focus {
  color: inherit;
  text-decoration: none;
  transition-timing-function: ease-in-out;
  -ms-transition-timing-function: ease-in-out;
  -moz-transition-timing-function: ease-in-out;
  -webkit-transition-timing-function: ease-in-out;
  -o-transition-timing-function: ease-in-out;
  transition-duration: .2s;
  -ms-transition-duration: .2s;
  -moz-transition-duration: .2s;
  -webkit-transition-duration: .2s;
  -o-transition-duration: .2s;
}

.hero {
  margin-top: 0;
}

.our-blog .swiper-slide {
  height: unset;
}

.testimonial-slider .swiper-slide {
  display: flex;
  height: unset;
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: none;
}

.contact-form__submit:disabled {
  background: #8fa3b8 !important;
  border-color: #8fa3b8 !important;
  color: #fff !important;
}

.main-logo {
  height: 50px;
  width: auto;
  max-width: min(280px, 55vw);
  object-fit: contain;
  display: block;
}

.footer-logo img,
.footer-logo svg {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991.98px) {
  header.main-header,
  header.main-header .header-sticky.active {
    background: var(--header-glass) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  header.main-header .navbar {
    width: 100%;
    padding: 0;
  }

  header.main-header .navbar > .container-fluid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 14px;
    gap: 12px;
    min-height: 68px;
  }

  header.main-header .navbar-brand {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .header-action-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  }

  .header-action-btn:hover,
  .header-action-btn:focus-visible {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
  }

  .header-action-btn i {
    font-size: 20px;
    line-height: 1;
  }

  .header-action-btn__icon--menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
  }

  .header-action-btn__icon--menu span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
  }

  .main-logo {
    height: 44px;
    max-width: min(220px, 56vw);
    margin: 0;
  }

  .hero {
    margin-top: 0;
  }
}

/* * {
  outline: 2px solid lime;
  } */

  html.with-fancybox {
    overflow: clip
  }


@media (min-width: 992px) {
  .hero.bg-section {
    max-height: unset;
  }

  .hero {
    margin-top: 0;
  }

  /* Hero slider — ПК: фото на всю висоту під шапкою */
  .hero.bg-section.hero-slider {
    padding: 0 !important;
    overflow: hidden;
    background-color: #0e0d1b;
  }

  .hero.hero-slider .hero-slider-layout {
    height: 100vh;
    min-height: 640px;
  }

  .hero-slider-layout .swiper {
    position: relative;
    height: 100%;
    overflow: hidden;
  }

  .hero-slider-layout .swiper-wrapper,
  .hero-slider-layout .swiper-slide {
    height: 100%;
  }

  .hero-slider-layout .hero-slide {
    height: 100% !important;
    min-height: 100% !important;
    padding: 140px 0 96px !important;
    box-sizing: border-box;
  }

  .hero.hero-slider .hero-slider-layout .hero-slide .hero-slider-image {
    height: 100%;
    min-height: 100%;
  }

  .hero.hero-slider .hero-slider-layout .hero-slide .hero-slider-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero-slider-layout .swiper-pagination {
    bottom: 32px !important;
    z-index: 10;
  }

  /* Шапка ПК: логотип і кнопка */
  header.main-header .navbar-brand {
    margin-left: 24px;
  }

  header.main-header .main-logo {
    height: 58px;
    max-width: 300px;
  }

  header.main-header .header-btn {
    margin-right: 20px;
  }
}

fancybox__slide:has(.modile-menu):before, .fancybox__slide:has(.modile-menu):after {
  content: unset;
}
.mobile-close {
  position: absolute;
  top: 4px !important;
  left: 10px !important;
  font-size: 40px;
  line-height: 1;
}
.modile-menu {
  padding: 35px 15px 15px !important;
  display: none;
  height: 100%;
  align-self: end !important;
  width: 320px;
  overflow-y: auto;
}
.modile-menu ul {

  list-style-type: none;
}
.modile-menu > ul > li {
  padding: 10px 0;
  border-bottom: 1px solid #d8d8d8;
  text-align: end;
  font-size: 18px;
}
.modile-menu > ul > li:first-child{
  border-bottom: none;
}
.modile-menu > ul > li:last-child {
  border-bottom: none;
}
.modile-menu ul li:hover {
  border-color: var(--primary-color, #12223B);
}

.header-social-style1 {
  margin-top: 25px;
  list-style-type: none;
  padding: 0;
  display: flex
;
  align-items: center;
  gap: 10px;
}

.butn {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: normal;
  padding: 16px 30px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  transition: all 250ms ease-in-out;
  color: #ffffff;
  background-color: var(--primary-color, #12223B);
  border: none;
  will-change: transform;
  transition: color 0.3s ease, border-color 0.3s ease, background-position 0.3s ease, background-color 0s linear 0.3s;
}

/* ——— Форми та контакти ——— */
.contact-form__grid {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}

.contact-form .form-group {
  margin-bottom: 0;
}

.contact-form .form-control {
  padding: 14px 4px;
  font-size: 16px;
  line-height: 1.4;
  border-bottom-width: 2px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.contact-form .form-control:focus {
  border-bottom-color: var(--primary-color, #12223B);
  opacity: 1;
}

.contact-form .form-control::placeholder {
  opacity: 0.45;
}

.contact-form .form-control.form-control--error,
.vj-middle-form input.form-control--error {
  border-bottom-color: #c0392b !important;
  border-color: #c0392b !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.vj-complex-v1__form-label:has(input.form-control--error) {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}

.contact-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.contact-form__submit {
  margin: 0;
  flex-shrink: 0;
}

.contact-form__social.contact-us-links ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  text-align: inherit;
}

.contact-form__social.contact-us-links ul li {
  display: block;
  margin: 0;
}

.contact-form__social.contact-us-links ul li a {
  height: 44px;
  width: 44px;
}

.contact-form__social.contact-us-links ul li a:hover {
  border-color: var(--primary-color, #12223B);
  color: var(--primary-color, #12223B);
  background-color: var(--secondary-color, #E9F7FE);
}

@media (max-width: 767.98px) {
  .contact-form {
    padding: 32px 24px;
  }

  .contact-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form__submit {
    width: 100%;
    text-align: center;
  }

  .contact-form__social.contact-us-links ul {
    justify-content: center;
  }
}

/* ——— Кнопки: без «залипания» hover на телефоне ——— */
@media (hover: hover) and (pointer: fine) {
  .btn-default:hover {
    background: transparent;
  }

  .btn-default:hover::before {
    transform: translate(-27px, -50%);
  }

  .btn-default:hover::after {
    width: 106%;
  }

  .btn-default.btn-highlighted:hover {
    border-color: var(--accent-color);
  }

  .header-btn .btn-default:hover {
    color: var(--primary-color);
  }
}

.btn-default:active,
.btn-default:focus-visible {
  background: var(--accent-color-button);
  color: var(--white-color);
  outline: none;
}

.btn-default:active::after,
.btn-default:focus-visible::after,
.contact-form__submit.btn-default::after,
button.btn-default::after {
  width: 0 !important;
}

.contact-form__submit.btn-default:hover,
.contact-form__submit.btn-default:focus,
button.btn-default:hover,
button.btn-default:focus,
a.btn-default:hover,
a.btn-default:focus {
  background: var(--accent-color-button) !important;
  color: var(--white-color) !important;
}

a.btn-default:hover::after,
a.btn-default:focus::after,
a.btn-default:active::after {
  width: 0 !important;
}

a.btn-default.btn-highlighted:hover,
a.btn-default.btn-highlighted:focus {
  background-color: transparent !important;
  color: var(--white-color) !important;
}

a.btn-default.btn-highlighted:hover::after,
a.btn-default.btn-highlighted:focus::after {
  width: 0 !important;
}

.contact-form__submit.btn-default:disabled:hover,
.contact-form__submit.btn-default:disabled:focus,
button.btn-default:disabled:hover,
button.btn-default:disabled:focus {
  background: #8fa3b8 !important;
  border-color: #8fa3b8 !important;
}

/* ——— Модалки та форми на мобільному ——— */
@media (max-width: 575.98px) {
  .vj-middle {
    width: min(460px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    border-radius: 16px;
  }

  .vj-middle__form-area {
    padding: 36px 22px 24px;
  }

  .vj-middle-form input,
  .contact-form .form-control {
    font-size: 16px;
  }

  .vj-middle__order-button,
  .vj-complex-v1__button-submit {
    width: 100%;
  }

  .btn-default {
    padding: 16px 48px 16px 20px;
    font-size: 16px;
  }

  .header-btn .btn-default {
    padding: 14px 20px;
  }
}

@media (max-width: 569px) {
  .vj-complex-v1__form {
    flex-direction: column;
    align-items: stretch;
  }

  .vj-complex-v1__form-label {
    padding: 12px 14px;
    margin-left: 0 !important;
    width: 100% !important;
  }

  .vj-complex-v1__button-submit {
    width: 100%;
  }

  .vj-bottom-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

.fancybox__container .vj-middle,
.fancybox__container .vj-complex-v1 {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  .fancybox__container:has(.vj-middle) .fancybox__slide {
    padding: 12px;
    align-items: center;
  }

  .fancybox__container:has(.vj-middle) .fancybox__content {
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto !important;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .fancybox__container:has(.vj-complex-v1) .fancybox__slide {
    padding: 0;
    align-items: flex-end;
  }

  .fancybox__container:has(.vj-complex-v1) .fancybox__content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .fancybox__container .vj-middle {
    max-height: min(90dvh, 90vh);
    margin-bottom: 0;
    border-radius: 16px;
  }

  .fancybox__container .vj-complex-v1 {
    max-height: min(88dvh, 88vh);
    margin-bottom: 0;
    border-radius: 16px 16px 0 0;
  }

  .vj-middle__form-area {
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  }

  .contact-form .form-control:focus {
    scroll-margin-bottom: 120px;
  }

  .vj-middle-form input:focus {
    scroll-margin-bottom: 120px;
  }
}

/* Картка переваг — тільки телефон (на ПК прихована) */
.why-stats-card-mobile {
  display: none;
}

/* ============================================================
   Тільки телефон (max 767px) — ПК не чіпаємо
   ============================================================ */
@media (max-width: 767.98px) {

  /* Hero: перевизначення custom.css (767px) */
  .hero.bg-section,
  .hero.bg-section.hero-slider {
    padding: 0 !important;
  }

  .hero-slider-layout .hero-slide {
    padding-top: calc(68px + 20px) !important;
    padding-bottom: 104px !important;
  }

  .hero-content .section-title p {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.45;
  }

  .hero-content .section-title h1.text-anime-style-3 {
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.15;
  }

  /* Декор секцій — менше на маленькому екрані */
  #about-us.about-us::before,
  .why-choose-us::before,
  #cta-box.cta-box::after,
  .our-service::after {
    display: none;
  }

  .our-testimonial::before {
    font-size: 100px;
    top: 16px;
    left: 0;
  }

  .our-blog::before,
  .our-blog::after {
    width: 40px;
    height: 40px;
  }

  /* ——— 1. Блок «Реалізація» ——— */
  .our-projects {
    padding-bottom: 40px !important;
  }

  .our-projects .row:has(.project-item) {
    counter-reset: project-step;
    gap: 20px 0;
  }

  .our-projects .project-item {
    counter-increment: project-step;
    position: relative;
    height: auto;
    margin-bottom: 0;
    text-align: left;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(18, 34, 59, 0.1);
    border: 1px solid rgba(18, 34, 59, 0.08);
  }

  .our-projects .project-item::before {
    content: counter(project-step, decimal-leading-zero);
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gold);
    color: #12223B;
    font-size: 15px;
    font-weight: 800;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(254, 212, 3, 0.45);
    line-height: 1;
  }

  .our-projects .project-image {
    border-radius: 0;
  }

  .our-projects .project-image img {
    border-radius: 0;
    aspect-ratio: 16 / 10;
  }

  .our-projects .project-item .project-image a::before {
    border-radius: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.35) 100%);
  }

  .our-projects .project-body {
    position: static;
    transform: none;
    right: auto;
    left: auto;
    bottom: auto;
    padding: 18px 20px 22px;
    background: #fff;
  }

  .our-projects .project-body-title h3 {
    color: #12223B;
    font-size: 20px;
    margin-bottom: 0;
    padding-left: 0;
    line-height: 1.3;
  }

  .our-projects .project-body-title h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    margin-top: 12px;
    background: var(--brand-gold);
    border-radius: 2px;
  }

  .our-projects .project-footer-btn {
    width: 100%;
    margin-top: 24px;
    padding: 0 15px;
    text-align: center;
  }

  /* ——— 2. Блок «Наші переваги» (картка як на референсі) ——— */
  .why-choose-us {
    padding-bottom: 30px !important;
  }

  .why-choose-us .why-choose-desktop-grid {
    display: none !important;
  }

  .why-stats-card-mobile {
    display: block;
    margin-bottom: 8px;
  }

  .why-stats-card {
    background: #f0f1f3;
    border-radius: 20px;
    padding: 28px 22px 0;
    overflow: hidden;
  }

  .why-stats-card__big-number {
    margin: 0 0 6px;
    font-size: clamp(44px, 11vw, 52px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #000;
  }

  .why-stats-card__big-label {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: #000;
  }

  .why-stats-card__divider {
    height: 1px;
    margin: 0 0 18px;
    background: #c8ccd2;
  }

  .why-stats-card__lead {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.55;
    color: #000;
  }

  .why-stats-card__bottom {
    display: flex;
    align-items: stretch;
    margin: 0 -22px;
    min-height: 300px;
  }

  .why-stats-card__media {
    flex: 0 0 40%;
    max-width: 40%;
    min-height: 300px;
  }

  .why-stats-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: 55% center;
  }

  .why-stats-card__numbers {
    flex: 1;
    min-width: 0;
    padding: 18px 14px 22px 12px;
    background: #f0f1f3;
  }

  .why-stats-card__numbers-title {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    color: #000;
  }

  .why-stats-card__stat {
    padding: 13px 0;
    border-bottom: 1px solid #c8ccd2;
  }

  .why-stats-card__stat:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .why-stats-card__stat-value {
    margin: 0 0 4px;
    font-size: clamp(26px, 7vw, 32px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #000;
  }

  .why-stats-card__stat-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #000;
  }

  /* ——— 3. Клікабельні зображення (послуги / ангари) ——— */
  .our-service [data-fancybox] {
    cursor: pointer;
  }

  .our-service [data-fancybox] .service-item {
    cursor: pointer;
  }

  .our-service [data-fancybox] .service-image {
    position: relative;
  }

  .our-service [data-fancybox] .service-image a::after {
    content: '→';
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gold);
    color: #12223B;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    animation: mobile-tap-hint-pulse 2s ease-in-out infinite;
  }

  @keyframes mobile-tap-hint-pulse {
    0%, 100% {
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    }
    50% {
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), 0 0 0 5px rgba(254, 212, 3, 0.4);
    }
  }

  .our-service [data-fancybox] .service-item .service-image a::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45) 100%);
  }

  .our-service [data-fancybox] .service-body {
    transform: translateY(55%);
    bottom: 8px;
    right: 20px;
    left: 20px;
  }

  .our-service [data-fancybox] .service-body-title h3 {
    font-size: 18px;
    margin-bottom: 0;
    padding-right: 52px;
  }

  /* ——— CTA: на телефоні без фото людини ——— */
  #cta-box.cta-box .col-lg-5,
  #cta-box.cta-box .cta-box-image {
    display: none !important;
  }
}