/* ============================================
   Bathroom Remodeling – Design System
   Light theme, mobile-first, accessible
   ============================================ */

:root {
  --bg-page: #f8f7fb;
  --bg-card: #ffffff;
  --text-primary: #2d2a36;
  --text-secondary: #5c5866;
  --text-muted: #78738a;
  --accent-navy: #5c5a72;
  --accent-navy-light: #6d6b85;
  --accent-teal: #6d6b85;
  --accent-cta: #7c5cbf;
  --accent-cta-hover: #6a4dad;
  --border: #e8e6ed;
  --shadow-sm: 0 1px 4px rgba(45,42,54,0.06);
  --shadow-md: 0 6px 20px rgba(45,42,54,0.08);
  --shadow-lg: 0 12px 48px rgba(45,42,54,0.1);
  --radius: 12px;
  --radius-lg: 18px;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 72px;
  --floating-cta-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 2px;
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

main {
  position: relative;
  z-index: 0;
}

.section {
  padding: 3rem 0;
  position: relative;
  z-index: 0;
  background: var(--bg-page);
}

@media (max-width: 767px) {
  .section {
    padding: 2rem 0;
  }
}

.section--lg {
  padding: 4rem 0;
}

/* ========== About Us (after hero) ========== */
.about-us {
  position: relative;
  background: var(--bg-page);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.about-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cta), var(--accent-navy));
  opacity: 0.9;
}

.about-us-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  max-width: 480px;
  height: 100%;
  background: linear-gradient(135deg, rgba(124, 92, 191, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.about-us-inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 0;
}

.about-us-head {
  text-align: center;
  margin-bottom: 1rem;
}

.about-us-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cta);
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  background: rgba(124, 92, 191, 0.12);
  border-radius: 100px;
}

.about-us-title {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.about-us-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 2.5rem;
  line-height: 1.7;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Layout: 2 cards in first row, 1 wide card in second row */
.about-us-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .about-us-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .about-us-card--wide {
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 0 auto;
  }
}

.about-us-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

/* Colored top bar on each card */
.about-us-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cta), var(--accent-navy));
  opacity: 0.85;
}

.about-us-card--1::before { background: linear-gradient(90deg, #7c5cbf, #6a4dad); }
.about-us-card--2::before { background: linear-gradient(90deg, #6d6b85, #5c5a72); }
.about-us-card--wide::before { background: linear-gradient(90deg, #5c5a72, #7c5cbf); }

.about-us-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(124, 92, 191, 0.3);
}

.about-us-card-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(124, 92, 191, 0.35);
  line-height: 1;
}

.about-us-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.75rem 0.75rem;
}

.about-us-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 191, 0.14), rgba(124, 92, 191, 0.06));
  color: var(--accent-cta);
  transition: transform 0.3s ease, background 0.3s ease;
}

.about-us-card:hover .about-us-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(124, 92, 191, 0.2), rgba(124, 92, 191, 0.1));
}

.about-us-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.about-us-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  padding: 0 1.75rem 1.75rem;
  line-height: 1.58;
}

.about-us-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.about-us-cta .btn {
  min-width: 168px;
}

/* ========== Scroll-анімації по всьому сайту: плавно зліва / справа / знизу ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-from-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animate-from-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-from-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animate-from-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo:hover {
  text-decoration: none;
  color: var(--accent-navy);
}

.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* Desktop nav */
.nav-desktop {
  display: none;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-desktop a {
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius);
  }

  .nav-desktop a:hover {
    color: var(--accent-navy);
    text-decoration: none;
    background: var(--bg-page);
  }
}

/* CTA in header – desktop */
.header-cta {
  display: none;
}

@media (min-width: 992px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent-cta);
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
  }

  .header-cta:hover {
    background: var(--accent-cta-hover);
    text-decoration: none;
    color: #fff !important;
  }

  .header-cta:focus-visible {
    outline: 2px solid var(--accent-navy);
    outline-offset: 2px;
  }
}

/* Mobile: phone icon + burger */
.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 992px) {
  .header-mobile-actions {
    display: none;
  }
}

.phone-btn-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-navy);
  color: #fff;
  border-radius: var(--radius);
  border: none;
  flex-shrink: 0;
}

.phone-btn-mobile:hover,
.phone-btn-mobile:focus-visible {
  background: var(--accent-navy-light);
  color: #fff;
  text-decoration: none;
}

.phone-btn-mobile svg {
  width: 22px;
  height: 22px;
}

.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.burger:hover {
  background: var(--bg-page);
}

.burger:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 2px;
}

.burger svg {
  width: 24px;
  height: 24px;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-card);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.mobile-menu-close:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 2px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius);
}

.mobile-menu a:hover {
  background: var(--bg-page);
  text-decoration: none;
}

.body-menu-open {
  overflow: hidden;
}

/* ========== Hero (як у референсі: z-index -1, контент наїжджає зверху) ========== */
.hero {
  position: relative;
  top: 0;
  left: 0;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  z-index: -1;
  background: #2d2a36 url('images/hero-back.webp') center/cover no-repeat;
}

/* Фіксований фон — zoom при скролі вниз, віддалення при скролі вгору */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  background: #2d2a36 url('images/hero-back.webp') center/cover no-repeat;
  background-size: cover;
  background-position: center center;
  transform: scale(1);
  z-index: 0;
  pointer-events: none;
}

/* Затемнення: opacity 0 на початку, зростає при скролі вниз */
.hero-shade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Постійний легкий оверлей для читабельності */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Плавний перехід внизу героя — як туман у наступну секцію */
.hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to top, var(--bg-page) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 767px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero-bg,
  .hero-shade {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero-inner {
    padding: calc(var(--header-h) + 1rem) 1rem 3.5rem 1rem;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-text h1 {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    margin-bottom: 0.75rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
  }
  .hero-sub {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    opacity: 0.95;
  }
  .hero .trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 0.75rem;
    margin-top: 0.75rem;
  }
  .hero .trust-badge {
    font-size: 0.8125rem;
    gap: 0.4rem;
  }
  .hero .trust-badge svg {
    width: 18px;
    height: 18px;
  }
  .hero-right-image-wrap {
    max-width: 100%;
    margin-top: 0.5rem;
    max-height: 28vh;
    min-height: 140px;
    overflow: hidden;
    border-radius: var(--radius-lg);
  }
  .hero-right-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-arrow {
    bottom: 0.75rem;
  }
}

@media (min-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem 2rem 5rem;
    gap: 4rem;
    align-items: center;
  }
}

.hero-content {
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 760px;
  opacity: 0;
  animation: hero-text-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hero-text-in {
  0% {
    opacity: 0;
    transform: translateY(-200px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: 1.2rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* Hero справа — картинка, заїжджає збоку */
.hero-right-image-wrap {
  position: relative;
  max-width: 560px;
  opacity: 0;
  animation: hero-form-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.hero-right-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@keyframes hero-form-in {
  0% {
    opacity: 0;
    transform: translateX(220px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Trust badges (inside hero) */
.hero .trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.hero .trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
}

.hero .trust-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Bouncy scroll arrow */
.hero-arrow {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  margin-left: -25px;
  width: 50px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: #fff;
}

.hero-arrow:hover {
  color: #fff;
  opacity: 0.9;
}

.hero-arrow-bouncy {
  animation: hero-arrow-bounce 2.5s infinite ease-in-out;
}

@keyframes hero-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-12px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-6px); }
  60%, 100% { transform: translateY(0); }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-navy);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent-cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-cta-hover);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--accent-navy);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--accent-navy-light);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent-navy);
  border: 2px solid var(--accent-navy);
}

.btn-outline:hover {
  background: var(--accent-navy);
  color: #fff;
  text-decoration: none;
}

/* ========== Cards ========== */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Our Services: scroll animation stagger */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-image {
  aspect-ratio: 16/10;
  background: var(--bg-page);
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.card-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--accent-cta);
}

.card a.card-link:hover {
  text-decoration: none;
  color: var(--accent-cta-hover);
}

/* ========== Section titles ========== */
.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
}

.section-subtitle {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Service page: section with accent line under title */
.service-section .section-title {
  position: relative;
  padding-bottom: 0.75rem;
}

.service-section .section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-cta), transparent);
}

.service-section.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.service-section .section-subtitle {
  margin-bottom: 1.5rem;
}

/* ========== How We Work — фігурний таймлайн під стиль сайту ========== */
.how-we-work {
  position: relative;
  background: var(--bg-page);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.how-we-work::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cta), var(--accent-navy));
  opacity: 0.9;
}

.how-we-work-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 480px;
  height: 100%;
  background: radial-gradient(ellipse 80% 60% at 70% 30%, rgba(124, 92, 191, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

.how-we-work-head {
  text-align: center;
  margin-bottom: 0.5rem;
}

.how-we-work-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cta);
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  background: rgba(124, 92, 191, 0.12);
  border-radius: 100px;
}

.how-we-work-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.how-we-work-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
}

/* Горизонтальний флоу з нодами та картками */
.how-we-work-flow {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 0;
}

@media (min-width: 640px) {
  .how-we-work-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

@media (min-width: 992px) {
  .how-we-work-flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: start;
  }
}

.how-we-work-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .how-we-work-step {
    align-items: center;
  }
}

/* Нода: круг з градієнтом + іконка */
.how-we-work-step-node {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: linear-gradient(145deg, var(--accent-cta), var(--accent-cta-hover));
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(124, 92, 191, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-we-work-step:hover .how-we-work-step-node {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(124, 92, 191, 0.4);
}

.how-we-work-step-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.98);
  line-height: 1;
}

/* Картка під нодою */
.how-we-work-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 280px;
  width: 100%;
}

.how-we-work-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cta), var(--accent-navy));
  opacity: 0.8;
}

.how-we-work-step:hover .how-we-work-step-card {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(124, 92, 191, 0.25);
}

.how-we-work-step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.how-we-work-step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* З’єднуюча лінія між кроками (тільки десктоп, 4 колонки) */
.how-we-work-connector {
  display: none;
}

@media (min-width: 992px) {
  .how-we-work-connector {
    display: block;
    position: absolute;
    top: 35px;
    left: calc(50% + 38px);
    width: calc(50% - 38px);
    height: 2px;
    background: linear-gradient(90deg, rgba(124, 92, 191, 0.45), rgba(124, 92, 191, 0.15));
    border-radius: 1px;
    pointer-events: none;
  }

  .how-we-work-step:last-child .how-we-work-connector {
    display: none;
  }
}

/* ========== Portfolio — карусель як Featured Services (6 карток) ========== */
.portfolio-slider-section {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.portfolio-slider-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8e4f0 0%, #f0edf5 35%, #e2deec 70%, #d8d4e4 100%);
  z-index: -1;
}

.portfolio-slider-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(124, 92, 191, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-slider-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -15%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(92, 90, 114, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-slider-container {
  max-width: 920px;
  margin: 0 auto;
}

.portfolio-slider-title {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.portfolio-slider-description {
  text-align: left;
  max-width: 560px;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.portfolio-slider-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  background: #2d2a36;
  box-shadow: 0 24px 56px rgba(45, 42, 54, 0.12), 0 0 0 1px rgba(124, 92, 191, 0.08);
  border-radius: 24px;
  overflow: hidden;
}

@media (min-width: 900px) {
  .portfolio-slider-wrap {
    height: 420px;
  }
}

/* Затемнений фон — два шари для плавного кросфейду */
.portfolio-slider-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2d2a36;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.portfolio-slider-bg-image--visible {
  opacity: 1;
}

.portfolio-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.portfolio-slider-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  height: 100%;
  padding: 2rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  .portfolio-slider-inner {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem 2rem 4.5rem;
    gap: 2rem;
  }
}

.portfolio-slider-copy {
  color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-slider-copy.is-changing {
  opacity: 0;
  transform: translateY(-10px);
}

.portfolio-slider-slide-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.portfolio-slider-slide-desc {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 420px;
}

.btn-portfolio-slide {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  border: none;
  text-decoration: none;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.btn-portfolio-slide:hover {
  background: #fff;
  color: var(--text-primary);
  text-decoration: none;
}

.portfolio-slider-visual {
  position: relative;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-slider-slide {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.portfolio-slider-item {
  position: absolute;
  width: 200px;
  height: 250px;
  top: 50%;
  transform: translate(0, -50%);
  left: 50%;
  margin-left: -100px;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(45, 42, 54, 0.2);
  background-position: 50% 50%;
  background-size: cover;
  transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: pointer;
}

.portfolio-slider-slide .portfolio-slider-item:nth-child(1),
.portfolio-slider-slide .portfolio-slider-item:nth-child(2) {
  top: 0;
  left: 0;
  margin-left: 0;
  transform: none;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  box-shadow: none;
}

.portfolio-slider-slide .portfolio-slider-item:nth-child(3) {
  left: 50%;
  margin-left: 10px;
}

.portfolio-slider-slide .portfolio-slider-item:nth-child(4) {
  left: calc(50% + 220px);
  margin-left: 0;
}

.portfolio-slider-slide .portfolio-slider-item:nth-child(5) {
  left: calc(50% + 440px);
  margin-left: 0;
}

.portfolio-slider-slide .portfolio-slider-item:nth-child(n + 6) {
  left: calc(50% + 660px);
  margin-left: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 699px) {
  .portfolio-slider-wrap {
    height: 340px;
  }

  .portfolio-slider-item {
    width: 160px;
    height: 200px;
    margin-left: -80px;
  }

  .portfolio-slider-slide .portfolio-slider-item:nth-child(3) {
    left: 50%;
    margin-left: 5px;
  }

  .portfolio-slider-slide .portfolio-slider-item:nth-child(4) {
    left: calc(50% + 175px);
  }

  .portfolio-slider-slide .portfolio-slider-item:nth-child(5) {
    left: calc(50% + 350px);
  }

  .portfolio-slider-slide .portfolio-slider-item:nth-child(n + 6) {
    left: calc(50% + 525px);
  }
}

.portfolio-slider-item:hover {
  filter: brightness(1.03);
}

.portfolio-slider-item:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 2px;
}

.portfolio-slider-wrap.portfolio-slider--transitioning .portfolio-slider-nav {
  pointer-events: none;
}

.portfolio-slider-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.portfolio-slider-prev,
.portfolio-slider-next {
  width: 44px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.portfolio-slider-prev:hover,
.portfolio-slider-next:hover {
  background: #fff;
  border-color: #fff;
  transform: scale(1.08);
}

.portfolio-slider-prev:focus-visible,
.portfolio-slider-next:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-height: 85vh;
  width: auto;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: var(--bg-page);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 2px;
}

/* ========== Testimonials — у стилі прикладу з декоративним SVG і картками ========== */
.testimonials-section {
  position: relative;
  background: linear-gradient(180deg, #e8e4f0 0%, #f0edf5 50%, #e2deec 100%);
  padding: 4rem 0 4.5rem;
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  color: var(--accent-cta);
  opacity: 0.85;
}

.testimonials-svg {
  position: absolute;
  width: 420px;
  height: 320px;
  max-width: 90vw;
}

.testimonials-svg--1 {
  top: -40px;
  right: -60px;
}

.testimonials-svg--2 {
  bottom: -30px;
  left: -80px;
  width: 320px;
  height: 240px;
  opacity: 0.6;
}

.testimonials-shape--tri1 {
  animation: testimonials-float 38s ease-in-out infinite;
}

.testimonials-shape--tri2 {
  animation: testimonials-float 14s ease-in-out infinite reverse;
}

.testimonials-shape--rect {
  animation: testimonials-float 25s ease-in-out infinite 1s;
}

@keyframes testimonials-float {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-1.5deg); }
  75% { transform: rotate(1.5deg); }
}

.testimonials-container {
  position: relative;
  z-index: 1;
}

.testimonials-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.testimonials-subtitle {
  margin-bottom: 2rem;
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  position: relative;
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 191, 0.15);
  box-shadow: 0 8px 32px rgba(45, 42, 54, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(124, 92, 191, 0.12);
}

.testimonial-quote-icon {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent-cta);
  opacity: 0.35;
  font-family: Georgia, serif;
}

.testimonial-text {
  margin: 0 0 1.25rem;
  padding-left: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-style: normal;
}

.testimonial-author::before {
  content: '— ';
  color: var(--accent-cta);
  opacity: 0.8;
}

/* ========== FAQ Accordion ========== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-trigger:hover {
  background: var(--bg-page);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: -2px;
}

.faq-trigger::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex-shrink: 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq-trigger svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.is-open .faq-trigger::after {
  transform: rotate(-135deg);
}

.faq-item.is-open .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.25rem 1rem;
}

.faq-content-inner {
  padding-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item .faq-content {
  display: none;
}

.faq-item.is-open .faq-content {
  display: block;
}

/* ========== CTA blocks ========== */
.cta-block {
  background: var(--accent-navy);
  color: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-block h2,
.cta-block h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.35rem;
}

.cta-block p {
  margin: 0 0 1.25rem;
  opacity: 0.95;
}

.cta-block .btn {
  background: var(--accent-cta);
  color: #fff;
}

.cta-block .btn:hover {
  background: var(--accent-cta-hover);
  color: #fff;
  text-decoration: none;
}

/* ========== Footer ========== */
.footer {
  position: relative;
  z-index: 10;
  background: var(--text-primary);
  color: #fff;
  padding: 3rem 0 0;
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand p {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-contact a {
  color: #fff;
  opacity: 0.9;
}

.footer-contact a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.footer ul a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-disclaimer {
  padding: 1.5rem 0;
}

.footer-disclaimer p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 900px;
}

/* ========== Floating Call button (mobile) ========== */
.floating-cta {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  height: var(--floating-cta-h);
  background: var(--accent-cta);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.floating-cta.is-visible {
  transform: translateX(-50%) translateY(0);
}

.floating-cta:hover {
  color: #fff;
  text-decoration: none;
  background: var(--accent-cta-hover);
}

.floating-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .floating-cta {
    display: none;
  }
}

.floating-cta svg {
  width: 22px;
  height: 22px;
}

/* ========== Forms (contact, etc.) ========== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c53030;
}

.form-group .error-msg {
  font-size: 0.85rem;
  color: #c53030;
  margin-top: 0.25rem;
}

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.modal p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

.modal .btn {
  width: 100%;
}

/* ========== Page hero (inner pages) ========== */
.page-hero {
  background: var(--accent-navy);
  color: #fff;
  padding: 2.5rem 0;
}

.page-hero .container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.page-hero p {
  margin: 0;
  opacity: 0.95;
  max-width: 600px;
}

@media (max-width: 767px) {
  .page-hero {
    padding: 1.75rem 0;
  }
  .page-hero h1 {
    font-size: 1.5rem;
  }
  .page-hero p {
    font-size: 0.95rem;
  }
}

/* ========== Service page hero (with image from card) ========== */
.service-hero {
  background: linear-gradient(135deg, var(--accent-navy) 0%, var(--accent-navy-light) 100%);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}

.service-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.service-hero-content {
  padding: 0;
}

.service-hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: #fff;
}

.service-hero-content p {
  margin: 0;
  opacity: 0.95;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Service page animated sections (stages, description blocks) */
.service-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.service-steps li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.75rem;
  counter-increment: step;
}

.service-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-cta);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-steps li strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.service-steps li p,
.service-steps li:not(:has(p)) {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .service-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-feature h4 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: var(--text-primary);
}

.service-feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== Service block: image + text (designer layout) ========== */
.service-section {
  position: relative;
  transition: background 0.4s ease;
}

.service-section:nth-of-type(even) {
  background: var(--bg-card);
}

.service-section:nth-of-type(even) .service-block--card {
  background: var(--bg-page);
}

.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .service-block {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .service-block--reverse {
    direction: rtl;
  }

  .service-block--reverse > * {
    direction: ltr;
  }

  .service-block--reverse .service-block__content {
    text-align: right;
  }

  .service-block--reverse .section-title::after {
    left: auto;
    right: 0;
    background: linear-gradient(90deg, transparent, var(--accent-cta));
  }

  .service-block--reverse.text-center .section-title::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent-cta), transparent);
  }
}

.service-block__content {
  min-width: 0;
}

.service-block__content p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-block__content ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-block__content li {
  margin-bottom: 0.5rem;
}

.service-block__content li strong {
  color: var(--text-primary);
}

.service-block__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-block:hover .service-block__image {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.service-block__image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-block__image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  pointer-events: none;
}

/* Steps in a card with soft bg */
.service-steps-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .service-steps-wrap {
    padding: 2.5rem 2.5rem 2.5rem 3.5rem;
  }
}

.service-steps-wrap .service-steps {
  margin: 0;
}

.service-steps-wrap .service-steps li {
  margin-bottom: 1.5rem;
}

.service-steps-wrap .service-steps li:last-child {
  margin-bottom: 0;
}

/* Features grid with accent bar on cards */
.service-features-wrap {
  margin-top: 1.5rem;
}

.service-feature {
  position: relative;
  padding-left: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: visible;
}

.service-feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-cta), var(--accent-cta-hover));
}

.service-feature h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* Section divider (subtle) */
.service-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
  border: none;
}

/* ========== Content blocks ========== */
.content-block {
  margin-bottom: 2rem;
}

.content-block h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.content-block h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.2rem;
}

.content-block ul,
.content-block ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.content-block li {
  margin-bottom: 0.35rem;
}

.content-block p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

/* ========== Table (privacy) ========== */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}

th {
  background: var(--bg-page);
  font-weight: 600;
}

/* ========== Contact page — нова сторінка без картки, двоколонка ========== */
.contact-page-section {
  padding: 2.5rem 0 4rem;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-page-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-info-block .section-title {
  margin-bottom: 0.5rem;
}

.contact-info-lead {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 191, 0.12);
  color: var(--accent-cta);
  border-radius: var(--radius);
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-list a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
}

.contact-info-list a:hover {
  color: var(--accent-cta);
  text-decoration: underline;
}

.contact-info-hours span:last-child {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form-wrap .section-title {
  margin-bottom: 0.5rem;
}

.contact-form-wrap .section-subtitle {
  margin-bottom: 1.5rem;
}

.contact-form--page {
  max-width: 100%;
}

@media (max-width: 767px) {
  .contact-page-section {
    padding: 1.5rem 0 3rem;
  }
  .contact-page-grid {
    gap: 2rem;
  }
  .contact-info-icon {
    width: 40px;
    height: 40px;
  }
  .contact-info-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ========== Map placeholder ========== */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  background: var(--bg-page);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== Sticky CTA bar (service pages) ========== */
.sticky-cta-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  z-index: 50;
}

.sticky-cta-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-cta-bar .btn {
  flex-shrink: 0;
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========== Cookie consent modal ========== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-consent-inner {
  position: relative;
  max-width: 560px;
  width: 100%;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(124,92,191,0.15);
  padding: 1.75rem 1.5rem;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent.is-visible .cookie-consent-inner {
  transform: translateY(0);
}

.cookie-consent-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--accent-cta), var(--accent-navy));
}

.cookie-consent-title {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 0.25rem;
}

.cookie-consent-desc {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cookie-consent-desc a {
  font-weight: 600;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent-actions .btn {
  flex: 1;
  min-width: 140px;
}
