/* ========================================================================
   region.css
   Region overrides + extracted inline styles (HOME / region sections only)
   Goal: override service-page.css only inside region blocks
   ======================================================================== */


/* =========================================================
   0) Small utilities
   ========================================================= */
.region-ic-mr-8 { margin-right: 8px; }
.region-ic-mr-6 { margin-right: 6px; }

.region-mt-14 { margin-top: 14px; }
.region-mt-10 { margin-top: 10px; }


/* =========================================================
   1) Region "light card" fixes (scoped)
   Applies ONLY inside region sections
   ========================================================= */
.region-services .aw-card--light,
.region-photos .aw-card--light,
.region-faq .aw-card--light {
  color: #111;
}

.region-services .aw-card--light p,
.region-services .aw-card--light .aw-section-subtitle,
.region-photos .aw-card--light p,
.region-photos .aw-card--light .aw-section-subtitle,
.region-faq .aw-card--light p,
.region-faq .aw-card--light .aw-section-subtitle {
  color: #555;
}

.region-services .aw-card--light h1,
.region-services .aw-card--light h2,
.region-services .aw-card--light h3,
.region-services .aw-card--light h4,
.region-photos .aw-card--light h1,
.region-photos .aw-card--light h2,
.region-photos .aw-card--light h3,
.region-photos .aw-card--light h4,
.region-faq .aw-card--light h1,
.region-faq .aw-card--light h2,
.region-faq .aw-card--light h3,
.region-faq .aw-card--light h4 {
  color: #111;
}

/* Outline кнопки на світлому фоні (тільки в регіональних секціях) */
.region-services .aw-card--light .aw-btn.aw-btn-outline-primary,
.region-photos .aw-card--light .aw-btn.aw-btn-outline-primary,
.region-faq .aw-card--light .aw-btn.aw-btn-outline-primary {
  color: #0a7f87;
  border-color: rgba(0, 196, 204, 0.55);
  background: rgba(0, 196, 204, 0.08);
}
.region-services .aw-card--light .aw-btn.aw-btn-outline-primary:hover,
.region-photos .aw-card--light .aw-btn.aw-btn-outline-primary:hover,
.region-faq .aw-card--light .aw-btn.aw-btn-outline-primary:hover {
  background: rgba(0, 196, 204, 0.16);
}

/* Іконки FontAwesome в світлих картках (обмежено регіоном) */
.region-services .aw-card--light i.fa,
.region-services .aw-card--light i.fa-solid,
.region-services .aw-card--light i.fa-regular,
.region-services .aw-card--light i.fa-brands,
.region-photos .aw-card--light i.fa,
.region-photos .aw-card--light i.fa-solid,
.region-photos .aw-card--light i.fa-regular,
.region-photos .aw-card--light i.fa-brands,
.region-faq .aw-card--light i.fa,
.region-faq .aw-card--light i.fa-solid,
.region-faq .aw-card--light i.fa-regular,
.region-faq .aw-card--light i.fa-brands {
  color: inherit;
}


/* =========================================================
   2) Shared section head (title + actions)
   ========================================================= */
.region-section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.region-section-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.region-h2-reset{ margin: 0; }


/* =========================================================
   3) Shared layout helpers / grids
   ========================================================= */
.region-grid{ display: grid; }
.region-grid-gap-12{ gap: 12px; }

.region-grid-3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px){
  .region-grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px){
  .region-grid-3{ grid-template-columns: 1fr; }
}

.region-grid-4{
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px){
  .region-grid-4{ grid-template-columns: repeat(2, 1fr); }
}

.region-grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){
  .region-grid-2{ grid-template-columns: 1fr; }
}


/* =========================================================
   4) Cards look (services + faq)
   ========================================================= */
.region-card-soft{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}


/* =========================================================
   5) Services (HOME)
   ========================================================= */
.region-services{ padding-top: 12px; }

.region-services-subtitle{
  margin: 8px 0 0;
  max-width: 78ch;
}

/* service cards */
.region-service-card{
  position: relative;
  background: linear-gradient(180deg, #ffffff, #fafafa);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 14px 14px 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.region-service-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(420px 220px at 15% 0%, rgba(0,196,204,.12), rgba(0,0,0,0)),
    radial-gradient(380px 200px at 90% 20%, rgba(60,130,255,.10), rgba(0,0,0,0));
  pointer-events:none;
  opacity: .9;
}
.region-service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
  background: #ffffff;
}

/* whole-card click */
.region-service-hit{
  position:absolute;
  inset:0;
  z-index:1;
  border-radius: 18px;
}
.region-service-card *{
  position: relative;
  z-index:2;
}

/* top row */
.region-service-top{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}

/* base icon box */
.region-service-ic{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.region-service-ic i{ font-size: 18px; }

.region-service-head{
  min-width: 0;
  flex:1;
}

.region-h3{
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: .1px;
}

.region-p{ margin: 0; }

/* pills */
.region-service-meta-line{
  margin-top: 8px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.region-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .12);
  border: 1px solid rgba(15, 23, 42, .18);
  color: #0b1220;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.region-pill i{
  opacity: 1;
  color: #0b1220;
}
.region-pill b{ font-weight: 800; }

.region-pill--ok{
  background: rgba(0, 196, 204, .18);
  border-color: rgba(0, 196, 204, .38);
  color: #064e53;
}
.region-pill--ok i{ color: #064e53; }

/* desc */
.region-service-p{
  margin-top: 10px;
  color: var(--aw-text-700, #2b2b2b);
  line-height: 1.5;
  max-width: 70ch;
}

/* bottom row */
.region-service-bottom{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.region-btn-compact{
  padding: 10px 12px;
  border-radius: 12px;
}

/* make sure "hit area" doesn’t steal button clicks */
.region-service-bottom a,
.region-service-bottom button,
.region-service-bottom .aw-btn{
  position: relative;
  z-index: 3;
}

/* "Детальніше" */
.aw-service-more{
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  opacity: .85;
}
.aw-service-more:hover{
  opacity: 1;
  text-decoration: underline;
}

/* FIX: текст у карточках послуг був "невидимий" через opacity/колір */
.region-service-card .region-service-meta-line,
.region-service-card .aw-service-more,
.region-service-card .aw-service-more:visited {
  opacity: 1 !important;
  color: var(--aw-text-700, #2b2b2b) !important;
}
.region-service-card .region-h3 {
  color: var(--aw-text-900, #111) !important;
}
.region-service-card .region-service-p,
.region-service-card .region-p {
  opacity: 1 !important;
  color: var(--aw-text-700, #2b2b2b) !important;
}
.region-service-card .aw-service-more:hover {
  color: var(--aw-primary-700, #0a7) !important;
  text-decoration: underline;
}


/* =========================================================
   6) Photos preview (HOME)
   ========================================================= */
.region-photos{ padding-top: 16px; }

.region-card-photos{
  background: #f6f7f9;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.region-photos-subtitle{
  margin: 8px 0 0;
  max-width: 70ch;
}

/* tile look */
.region-photo-tile{
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f6f8;
  aspect-ratio: 4 / 3;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.region-photo-tile:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
}
.region-photo-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FIX: "Усі фото" button text visibility (HOME only) */
.region-photos .aw-btn.aw-btn-outline-primary{
  color: #0b5f66 !important;
  border-color: #2ccbd3 !important;
  background: rgba(0, 196, 204, 0.12) !important;
  font-weight: 700;
}
.region-photos .aw-btn.aw-btn-outline-primary i{
  color: #0b5f66 !important;
  opacity: 1 !important;
}
.region-photos .aw-btn.aw-btn-outline-primary:hover{
  background: rgba(0, 196, 204, 0.22) !important;
  color: #063f44 !important;
}


/* =========================================================
   7) FAQ (HOME)
   ========================================================= */
.region-faq{ padding-top: 12px; }

.region-faq-subtitle{
  margin: 8px 0 0;
  max-width: 72ch;
}

.region-faq-item{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fafafa;
  padding: 12px 14px;
}
.region-faq-item > summary::-webkit-details-marker{ display: none; }

.region-faq-summary{
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.region-faq-chevron{
  opacity: .6;
  transition: .2s ease;
}
.region-faq-item[open]{ background: #ffffff; }
.region-faq-item[open] .region-faq-chevron{ transform: rotate(180deg); }

.region-faq-body{
  margin-top: 10px;
  line-height: 1.55;
}


/* =========================================================
   8) Footer small spacing extracted
   ========================================================= */
.region-footer-city{ margin-top: 10px; }
.region-footer-cta{ margin-top: 10px; }


/* =========================================================
   9) FORCE LIGHT for 3 blocks: Services / Photos / FAQ (HOME)
   ========================================================= */
.region-services .aw-card.aw-card--light,
.region-photos  .aw-card.aw-card--light,
.region-faq     .aw-card.aw-card--light{
  background: #fff !important;
  color: #111 !important;
}

.region-services .aw-card.aw-card--light::before,
.region-photos  .aw-card.aw-card--light::before,
.region-faq     .aw-card.aw-card--light::before,
.region-services .aw-card.aw-card--light::after,
.region-photos  .aw-card.aw-card--light::after,
.region-faq     .aw-card.aw-card--light::after{
  content: none !important;
}

.region-services .aw-card.aw-card--light h1,
.region-services .aw-card.aw-card--light h2,
.region-services .aw-card.aw-card--light h3,
.region-services .aw-card.aw-card--light h4,
.region-photos  .aw-card.aw-card--light h1,
.region-photos  .aw-card.aw-card--light h2,
.region-photos  .aw-card.aw-card--light h3,
.region-photos  .aw-card.aw-card--light h4,
.region-faq     .aw-card.aw-card--light h1,
.region-faq     .aw-card.aw-card--light h2,
.region-faq     .aw-card.aw-card--light h3,
.region-faq     .aw-card.aw-card--light h4{
  color: #111 !important;
  opacity: 1 !important;
}

.region-services .aw-card.aw-card--light p,
.region-services .aw-card.aw-card--light .aw-section-subtitle,
.region-photos  .aw-card.aw-card--light p,
.region-photos  .aw-card.aw-card--light .aw-section-subtitle,
.region-faq     .aw-card.aw-card--light p,
.region-faq     .aw-card.aw-card--light .aw-section-subtitle{
  color: #555 !important;
  opacity: 1 !important;
}

.region-services .aw-card.aw-card--light i,
.region-photos  .aw-card.aw-card--light i,
.region-faq     .aw-card.aw-card--light i{
  color: inherit !important;
  opacity: 1 !important;
}


/* =========================================================
   10) HERO (HOME)
   ========================================================= */
.region-hero{
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  margin-top: 0 !important;
  padding-top: 0 !important;

  background: #0f3f45;
  overflow: hidden;
}

/* Gradient bg overlay (optional) */
.region-hero-bg{
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(60,130,255,.18), rgba(0,0,0,0)),
    radial-gradient(700px 350px at 85% 30%, rgba(0,200,170,.14), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,0));
  pointer-events:none;
  z-index:0;
}

/* Card as centered container */
.region-hero .region-hero-card{
  position: relative;
  z-index: 1;

  max-width: 1280px;
  margin: 0 auto;

  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  overflow: visible !important;
}
.region-hero .region-hero-card::before,
.region-hero .region-hero-card::after{
  content: none !important;
}

/* Layout */
.region-hero-layout{
  position:relative;
  z-index:1;

  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: stretch;

  padding: 28px 16px 32px;
}

/* Side breathing space */
.region-hero-left{
  padding-left: 30px;
  padding-right: 24px;
}
.region-hero-right{
  display:flex;
  align-items: stretch;
  padding-left: 30px;
  padding-right: 30px;
}

/* Kicker chips */
.region-hero-kicker{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom: 10px;
}

.region-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  font-size: 13px;
  line-height: 1;
}

/* Typography readability */
.region-hero .region-hero-title,
.region-hero .region-hero-subtitle,
.region-hero .region-hero-bullets,
.region-hero .region-hero-note,
.region-hero .region-hero-trust {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.region-hero-title{
  margin: 6px 0 10px;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  letter-spacing: 0.2px;
}
.region-hero-title span{
  display:block;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
  font-weight: 600;
}

.region-hero-subtitle{
  margin: 0 0 12px;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  line-height: 1.55;
}

/* Bullets */
.region-hero-bullets{
  list-style:none;
  padding:0;
  margin: 0 0 14px;
  display:grid;
  gap: 8px;
}
.region-hero-bullets li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0,0,0,.20);
}
.region-hero-bullets i{
  margin-top: 2px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
}

/* Actions */
.region-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 12px;
}
.region-hero-btn{ white-space: nowrap; }

/* Trust */
.region-hero-trust{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.region-trust-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}
.region-trust-title{
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
}
.region-trust-text{
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  font-size: 12px;
  margin-top: 2px;
}

/* Media */
.region-hero-media{
  position:relative;
  border-radius: 12px;
  overflow:hidden;
  min-height: 320px;
  width:100%;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none !important;
}
.region-hero-img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
}

/* Badge */
.region-hero-badge{
  position:absolute;
  top: 12px;
  left: 12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

/* Overlay (bottom) */
.region-hero-overlay{
  position:absolute;
  left: 12px;
  right: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}
.region-hero-overlay--bottom{
  bottom: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background: rgba(0,0,0,.50);
}

/* bottom mini */
.region-hero-mini{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.region-hero-mini-title{
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 2px rgba(0,0,0,.50);
  font-weight: 800;
  font-size: 13px;
  line-height:1.2;
}
.region-hero-mini-text{
  color: rgba(255,255,255,.84);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  font-size: 12px;
  margin-top: 2px;
}
.region-hero-mini-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight: 800;
  font-size: 13px;
  text-decoration:none;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 2px rgba(0,0,0,.50);
}
.region-hero-mini-link:hover{
  color: rgba(255,255,255,1);
}

/* optional light hero card helper */
.region-hero-light{
  background:linear-gradient(180deg, rgba(255,190,0,.10) 0%, rgba(255,255,255,1) 55%);
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 10px 30px rgba(15,23,42,.08);
}

/* =========================================================
   11) HERO responsive
   ========================================================= */
@media (min-width: 1200px){
  .region-hero-left{
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 980px){
  .region-hero-layout{
    grid-template-columns: 1fr;
    padding: 22px 14px 26px;
  }
  .region-hero-media{ min-height: 260px; }
  .region-hero-trust{ grid-template-columns: 1fr; }

  .region-hero-left{
    padding-left: 16px;
    padding-right: 16px;
  }
  .region-hero-right{
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 680px){
  .region-hero-left{
    padding-left: 16px;
    padding-right: 16px;
  }
  .region-hero-right{
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* =========================================================
   12) Global container background fix (safe)
   + HERO should stick to header (remove top gap)
   ========================================================= */
.aw-main{
  background: transparent !important;
  padding-top: 0 !important;
}

.aw-main > .aw-container{
  padding-top: 0 !important;
}

.aw-section.region-hero{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.aw-main > .aw-container > .region-hero:first-child{
  margin-top: 0 !important;
}
/* =========================================================
   FIX: FAQ text is white on white (override service-page.css)
   Scoped ONLY to region FAQ block
   ========================================================= */

.region-faq .aw-card.aw-card--light,
.region-faq .aw-card.aw-card--light *{
  text-shadow: none; /* safe */
}

/* Заголовок питання (summary) */
.region-faq .region-faq-item,
.region-faq .region-faq-summary{
  color: var(--aw-text-900, #111) !important;
  opacity: 1 !important;
}

/* Текст відповіді */
.region-faq .region-faq-body{
  color: var(--aw-text-700, #2b2b2b) !important;
  opacity: 1 !important;
}

/* Якщо в answer прилетить html (a, strong, ul...) — теж зробимо читабельним */
.region-faq .region-faq-body *{
  color: inherit !important;
  opacity: 1 !important;
}

/* Посилання в FAQ */
.region-faq .region-faq-body a{
  color: var(--aw-primary-700, #0a7f87) !important;
  text-decoration: underline;
}

/* Chevron / іконки в summary */
.region-faq .region-faq-summary .region-faq-chevron,
.region-faq .region-faq-summary i,
.region-faq .region-faq-item i.fa,
.region-faq .region-faq-item i.fa-solid,
.region-faq .region-faq-item i.fa-regular,
.region-faq .region-faq-item i.fa-brands{
  color: var(--aw-text-700, #2b2b2b) !important;
  opacity: 1 !important;
}

/* На всяк випадок: якщо aw-faq-item/summary стилізовані десь ще */
.region-faq details.aw-faq-item,
.region-faq details.aw-faq-item > summary{
  color: var(--aw-text-900, #111) !important;
  opacity: 1 !important;
}

.region-faq details.aw-faq-item[open] .region-faq-body{
  color: var(--aw-text-700, #2b2b2b) !important;
}

/* Фон елемента FAQ (щоб точно не був темним/прозорим) */
.region-faq .region-faq-item{
  background: #fafafa !important;
}

.region-faq .region-faq-item[open]{
  background: #ffffff !important;
}
